@viglet/viglet-design-system 2026.3.17 → 2026.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,38 +1,36 @@
1
1
  "use client";
2
2
  import { a as e, n as t, r as n, t as r } from "./utils-Fk5jmzzb.js";
3
3
  import { C as i, S as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as m, l as h, m as g, n as _, o as v, p as y, r as b, s as x, t as S, u as C, x as w } from "./badge-locale-BwsfyQJT.js";
4
- import { A as T, B as ee, C as te, D as E, E as D, F as O, G as k, H as A, I as j, J as M, K as N, L as P, M as F, N as I, O as L, P as ne, Q as re, R as ie, S as ae, T as oe, U as se, V as R, W as ce, X as le, Y as z, Z as ue, _ as de, a as B, b as fe, c as pe, d as me, f as he, g as ge, h as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as we, q as Te, s as Ee, t as De, u as Oe, v as ke, w as Ae, x as je, y as Me, z as Ne } from "./user.context-TpXsFyGy.js";
5
- import { FloatingFormulasBg as Pe } from "./floating-formulas-bg.es.js";
6
- import { i as Fe, n as Ie, r as Le } from "./products-Du9KB6Xl.js";
7
- import * as Re from "@radix-ui/react-accordion";
8
- import * as V from "react";
9
- import ze, { createContext as Be, useCallback as Ve, useContext as He, useEffect as H, useMemo as Ue, useRef as U, useState as We } from "react";
10
- import { Fragment as Ge, jsx as W, jsxs as G } from "react/jsx-runtime";
11
- import * as Ke from "@radix-ui/react-avatar";
12
- import { Slot as qe } from "@radix-ui/react-slot";
13
- import { cva as Je } from "class-variance-authority";
14
- import { useTranslation as K } from "react-i18next";
15
- import * as q from "@radix-ui/react-dialog";
16
- import { Drawer as Ye } from "vaul";
17
- import { Controller as Xe, FormProvider as Ze, useFormContext as Qe, useFormState as $e } from "react-hook-form";
18
- import * as et from "@radix-ui/react-label";
19
- import { IconAlertTriangle as tt, IconAlertTriangleFilled as nt, IconCheck as rt, IconCircleCheck as it, IconDeviceFloppy as at, IconLoader2 as ot, IconLogout as st, IconRefresh as ct, IconSettings as lt, IconTrash as ut, IconUserCircle as dt, IconX as ft } from "@tabler/icons-react";
20
- import * as pt from "@radix-ui/react-switch";
21
- import * as mt from "@radix-ui/react-hover-card";
22
- import * as ht from "@radix-ui/react-navigation-menu";
23
- import { Progress as gt } from "radix-ui";
4
+ import { $ as T, A as ee, B as te, C as ne, D as E, E as re, F as ie, G as D, H as O, I as k, J as A, K as j, L as M, M as N, N as P, O as F, P as ae, Q as oe, R as se, S as ce, T as le, U as ue, V as I, W as de, X as L, Y as fe, Z as pe, _ as R, a as me, b as he, c as ge, d as _e, et as ve, f as ye, g as be, h as xe, j as Se, k as Ce, l as we, m as Te, n as Ee, nt as De, o as Oe, p as ke, q as Ae, s as je, t as Me, tt as Ne, u as Pe, v as Fe, w as Ie, x as Le, y as Re, z as ze } from "./user.context-vCmnGlIb.js";
5
+ import { FloatingFormulasBg as Be } from "./floating-formulas-bg.es.js";
6
+ import { i as Ve, n as He, r as Ue } from "./products-Du9KB6Xl.js";
7
+ import * as We from "@radix-ui/react-accordion";
8
+ import * as z from "react";
9
+ import Ge, { createContext as Ke, useCallback as qe, useContext as Je, useEffect as B, useMemo as Ye, useRef as V, useState as Xe } from "react";
10
+ import { Fragment as Ze, jsx as H, jsxs as U } from "react/jsx-runtime";
11
+ import * as Qe from "@radix-ui/react-avatar";
12
+ import { Slot as $e } from "@radix-ui/react-slot";
13
+ import { cva as et } from "class-variance-authority";
14
+ import { useTranslation as W } from "react-i18next";
15
+ import * as G from "@radix-ui/react-dialog";
16
+ import { Drawer as K } from "vaul";
17
+ import { Controller as tt, FormProvider as nt, useFormContext as rt, useFormState as it } from "react-hook-form";
18
+ import * as at from "@radix-ui/react-label";
19
+ import { IconAlertTriangle as ot, IconAlertTriangleFilled as st, IconCheck as ct, IconCircleCheck as lt, IconDeviceFloppy as ut, IconLoader2 as dt, IconLogout as ft, IconRefresh as pt, IconSettings as mt, IconTrash as ht, IconUserCircle as gt, IconX as _t } from "@tabler/icons-react";
20
+ import * as vt from "@radix-ui/react-switch";
21
+ import * as yt from "@radix-ui/react-hover-card";
22
+ import * as q from "@radix-ui/react-navigation-menu";
23
+ import { Progress as bt } from "radix-ui";
24
24
  import * as J from "@radix-ui/react-select";
25
- import * as _t from "@radix-ui/react-separator";
26
- import * as vt from "@radix-ui/react-slider";
27
- import { ThemeProvider as yt, useTheme as bt } from "next-themes";
28
- import { useSonner as xt } from "sonner";
29
- import * as St from "@radix-ui/react-toggle";
30
- import * as Ct from "@radix-ui/react-toggle-group";
25
+ import * as xt from "@radix-ui/react-separator";
26
+ import * as St from "@radix-ui/react-slider";
27
+ import { ThemeProvider as Ct, useTheme as wt } from "next-themes";
28
+ import { useSonner as Tt } from "sonner";
31
29
  import Y from "axios";
32
- import { enUS as wt, ptBR as Tt } from "date-fns/locale";
33
- import * as Et from "xlsx";
30
+ import { enUS as Et, ptBR as Dt } from "date-fns/locale";
31
+ import * as Ot from "xlsx";
34
32
  //#region node_modules/lucide-react/dist/esm/icons/book.mjs
35
- var Dt = {
33
+ var kt = {
36
34
  name: "book",
37
35
  size: 24,
38
36
  node: [["path", {
@@ -40,8 +38,8 @@ var Dt = {
40
38
  key: "k3hazp"
41
39
  }]]
42
40
  };
43
- Dt.node;
44
- var Ot = i(Dt), kt = {
41
+ kt.node;
42
+ var At = i(kt), jt = {
45
43
  name: "chevron-down",
46
44
  size: 24,
47
45
  node: [["path", {
@@ -49,8 +47,8 @@ var Ot = i(Dt), kt = {
49
47
  key: "qrunsl"
50
48
  }]]
51
49
  };
52
- kt.node;
53
- var At = i(kt), jt = {
50
+ jt.node;
51
+ var Mt = i(jt), Nt = {
54
52
  name: "chevron-left",
55
53
  size: 24,
56
54
  node: [["path", {
@@ -58,8 +56,8 @@ var At = i(kt), jt = {
58
56
  key: "1wnfg3"
59
57
  }]]
60
58
  };
61
- jt.node;
62
- var Mt = i(jt), Nt = {
59
+ Nt.node;
60
+ var Pt = i(Nt), Ft = {
63
61
  name: "chevron-up",
64
62
  size: 24,
65
63
  node: [["path", {
@@ -67,8 +65,8 @@ var Mt = i(jt), Nt = {
67
65
  key: "153udz"
68
66
  }]]
69
67
  };
70
- Nt.node;
71
- var Pt = i(Nt), Ft = {
68
+ Ft.node;
69
+ var It = i(Ft), Lt = {
72
70
  name: "cloud",
73
71
  size: 24,
74
72
  node: [["path", {
@@ -76,8 +74,8 @@ var Pt = i(Nt), Ft = {
76
74
  key: "p7xjir"
77
75
  }]]
78
76
  };
79
- Ft.node;
80
- var It = i(Ft), Lt = {
77
+ Lt.node;
78
+ var Rt = i(Lt), zt = {
81
79
  name: "ellipsis",
82
80
  size: 24,
83
81
  node: [
@@ -102,8 +100,8 @@ var It = i(Ft), Lt = {
102
100
  ],
103
101
  aliases: ["more-horizontal"]
104
102
  };
105
- Lt.node;
106
- var Rt = i(Lt), zt = {
103
+ zt.node;
104
+ var Bt = i(zt), Vt = {
107
105
  name: "external-link",
108
106
  size: 24,
109
107
  node: [
@@ -121,8 +119,8 @@ var Rt = i(Lt), zt = {
121
119
  }]
122
120
  ]
123
121
  };
124
- zt.node;
125
- var Bt = i(zt), Vt = {
122
+ Vt.node;
123
+ var Ht = i(Vt), Ut = {
126
124
  name: "languages",
127
125
  size: 24,
128
126
  node: [
@@ -152,8 +150,8 @@ var Bt = i(zt), Vt = {
152
150
  }]
153
151
  ]
154
152
  };
155
- Vt.node;
156
- var Ht = i(Vt), Ut = {
153
+ Ut.node;
154
+ var Wt = i(Ut), Gt = {
157
155
  name: "layout-grid",
158
156
  size: 24,
159
157
  node: [
@@ -191,8 +189,8 @@ var Ht = i(Vt), Ut = {
191
189
  }]
192
190
  ]
193
191
  };
194
- Ut.node;
195
- var Wt = i(Ut), Gt = {
192
+ Gt.node;
193
+ var Kt = i(Gt), qt = {
196
194
  name: "menu",
197
195
  size: 24,
198
196
  node: [
@@ -210,8 +208,8 @@ var Wt = i(Ut), Gt = {
210
208
  }]
211
209
  ]
212
210
  };
213
- Gt.node;
214
- var Kt = i(Gt), qt = {
211
+ qt.node;
212
+ var Jt = i(qt), Yt = {
215
213
  name: "monitor",
216
214
  size: 24,
217
215
  node: [
@@ -239,8 +237,8 @@ var Kt = i(Gt), qt = {
239
237
  }]
240
238
  ]
241
239
  };
242
- qt.node;
243
- var Jt = i(qt), Yt = {
240
+ Yt.node;
241
+ var Xt = i(Yt), Zt = {
244
242
  name: "moon",
245
243
  size: 24,
246
244
  node: [["path", {
@@ -248,8 +246,8 @@ var Jt = i(qt), Yt = {
248
246
  key: "kfwtm"
249
247
  }]]
250
248
  };
251
- Yt.node;
252
- var Xt = i(Yt), Zt = {
249
+ Zt.node;
250
+ var Qt = i(Zt), $t = {
253
251
  name: "panel-left",
254
252
  size: 24,
255
253
  node: [["rect", {
@@ -265,8 +263,8 @@ var Xt = i(Yt), Zt = {
265
263
  }]],
266
264
  aliases: ["sidebar"]
267
265
  };
268
- Zt.node;
269
- var Qt = i(Zt), $t = {
266
+ $t.node;
267
+ var en = i($t), tn = {
270
268
  name: "sun",
271
269
  size: 24,
272
270
  node: [
@@ -310,51 +308,51 @@ var Qt = i(Zt), $t = {
310
308
  }]
311
309
  ]
312
310
  };
313
- $t.node;
314
- var en = i($t), tn = Re.Root, nn = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W(Re.Item, {
311
+ tn.node;
312
+ var nn = i(tn), rn = We.Root, an = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H(We.Item, {
315
313
  ref: n,
316
314
  className: r("border-b", e),
317
315
  ...t
318
316
  }));
319
- nn.displayName = "AccordionItem";
320
- var rn = V.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ W(Re.Header, {
317
+ an.displayName = "AccordionItem";
318
+ var on = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(We.Header, {
321
319
  className: "flex",
322
- children: /* @__PURE__ */ G(Re.Trigger, {
320
+ children: /* @__PURE__ */ U(We.Trigger, {
323
321
  ref: i,
324
322
  className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
325
323
  ...n,
326
- children: [t, /* @__PURE__ */ W(At, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
324
+ children: [t, /* @__PURE__ */ H(Mt, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })]
327
325
  })
328
326
  }));
329
- rn.displayName = Re.Trigger.displayName;
330
- var an = V.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ W(Re.Content, {
327
+ on.displayName = We.Trigger.displayName;
328
+ var sn = z.forwardRef(({ className: e, children: t, ...n }, i) => /* @__PURE__ */ H(We.Content, {
331
329
  ref: i,
332
330
  className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
333
331
  ...n,
334
- children: /* @__PURE__ */ W("div", {
332
+ children: /* @__PURE__ */ H("div", {
335
333
  className: r("pb-4 pt-0", e),
336
334
  children: t
337
335
  })
338
336
  }));
339
- an.displayName = Re.Content.displayName;
337
+ sn.displayName = We.Content.displayName;
340
338
  //#endregion
341
339
  //#region src/components/ui/avatar.tsx
342
- function on({ className: e, ...t }) {
343
- return /* @__PURE__ */ W(Ke.Root, {
340
+ function cn({ className: e, ...t }) {
341
+ return /* @__PURE__ */ H(Qe.Root, {
344
342
  "data-slot": "avatar",
345
343
  className: r("relative flex size-8 shrink-0 overflow-hidden rounded-full", e),
346
344
  ...t
347
345
  });
348
346
  }
349
- function sn({ className: e, ...t }) {
350
- return /* @__PURE__ */ W(Ke.Image, {
347
+ function ln({ className: e, ...t }) {
348
+ return /* @__PURE__ */ H(Qe.Image, {
351
349
  "data-slot": "avatar-image",
352
350
  className: r("aspect-square size-full", e),
353
351
  ...t
354
352
  });
355
353
  }
356
- function cn({ className: e, ...t }) {
357
- return /* @__PURE__ */ W(Ke.Fallback, {
354
+ function un({ className: e, ...t }) {
355
+ return /* @__PURE__ */ H(Qe.Fallback, {
358
356
  "data-slot": "avatar-fallback",
359
357
  className: r("bg-muted flex size-full items-center justify-center rounded-full", e),
360
358
  ...t
@@ -362,37 +360,37 @@ function cn({ className: e, ...t }) {
362
360
  }
363
361
  //#endregion
364
362
  //#region src/components/ui/breadcrumb.tsx
365
- function ln({ ...e }) {
366
- let { t } = K();
367
- return /* @__PURE__ */ W("nav", {
363
+ function dn({ ...e }) {
364
+ let { t } = W();
365
+ return /* @__PURE__ */ H("nav", {
368
366
  "aria-label": t("common.breadcrumb", { defaultValue: "Breadcrumb" }),
369
367
  "data-slot": "breadcrumb",
370
368
  ...e
371
369
  });
372
370
  }
373
- function un({ className: e, ...t }) {
374
- return /* @__PURE__ */ W("ol", {
371
+ function fn({ className: e, ...t }) {
372
+ return /* @__PURE__ */ H("ol", {
375
373
  "data-slot": "breadcrumb-list",
376
374
  className: r("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", e),
377
375
  ...t
378
376
  });
379
377
  }
380
- function dn({ className: e, ...t }) {
381
- return /* @__PURE__ */ W("li", {
378
+ function pn({ className: e, ...t }) {
379
+ return /* @__PURE__ */ H("li", {
382
380
  "data-slot": "breadcrumb-item",
383
381
  className: r("inline-flex items-center gap-1.5", e),
384
382
  ...t
385
383
  });
386
384
  }
387
- function fn({ asChild: e, className: t, ...n }) {
388
- return /* @__PURE__ */ W(e ? qe : "a", {
385
+ function mn({ asChild: e, className: t, ...n }) {
386
+ return /* @__PURE__ */ H(e ? $e : "a", {
389
387
  "data-slot": "breadcrumb-link",
390
388
  className: r("hover:text-foreground transition-colors", t),
391
389
  ...n
392
390
  });
393
391
  }
394
- function pn({ className: e, ...t }) {
395
- return /* @__PURE__ */ W("span", {
392
+ function hn({ className: e, ...t }) {
393
+ return /* @__PURE__ */ H("span", {
396
394
  "data-slot": "breadcrumb-page",
397
395
  role: "link",
398
396
  "aria-disabled": "true",
@@ -401,25 +399,25 @@ function pn({ className: e, ...t }) {
401
399
  ...t
402
400
  });
403
401
  }
404
- function mn({ children: e, className: t, ...n }) {
405
- return /* @__PURE__ */ W("li", {
402
+ function gn({ children: e, className: t, ...n }) {
403
+ return /* @__PURE__ */ H("li", {
406
404
  "data-slot": "breadcrumb-separator",
407
405
  role: "presentation",
408
406
  "aria-hidden": "true",
409
407
  className: r("[&>svg]:size-3.5", t),
410
408
  ...n,
411
- children: e ?? /* @__PURE__ */ W(ue, {})
409
+ children: e ?? /* @__PURE__ */ H(Ne, {})
412
410
  });
413
411
  }
414
- function hn({ className: e, ...t }) {
415
- let { t: n } = K();
416
- return /* @__PURE__ */ G("span", {
412
+ function _n({ className: e, ...t }) {
413
+ let { t: n } = W();
414
+ return /* @__PURE__ */ U("span", {
417
415
  "data-slot": "breadcrumb-ellipsis",
418
416
  role: "presentation",
419
417
  "aria-hidden": "true",
420
418
  className: r("flex size-9 items-center justify-center", e),
421
419
  ...t,
422
- children: [/* @__PURE__ */ W(Rt, { className: "size-4" }), /* @__PURE__ */ W("span", {
420
+ children: [/* @__PURE__ */ H(Bt, { className: "size-4" }), /* @__PURE__ */ H("span", {
423
421
  className: "sr-only",
424
422
  children: n("common.more", { defaultValue: "More" })
425
423
  })]
@@ -427,50 +425,50 @@ function hn({ className: e, ...t }) {
427
425
  }
428
426
  //#endregion
429
427
  //#region src/components/ui/card.tsx
430
- function gn({ className: e, ...t }) {
431
- return /* @__PURE__ */ W("div", {
428
+ function vn({ className: e, ...t }) {
429
+ return /* @__PURE__ */ H("div", {
432
430
  "data-slot": "card",
433
431
  className: r("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", e),
434
432
  ...t
435
433
  });
436
434
  }
437
- function _n({ className: e, ...t }) {
438
- return /* @__PURE__ */ W("div", {
435
+ function yn({ className: e, ...t }) {
436
+ return /* @__PURE__ */ H("div", {
439
437
  "data-slot": "card-header",
440
438
  className: r("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", e),
441
439
  ...t
442
440
  });
443
441
  }
444
- function vn({ className: e, ...t }) {
445
- return /* @__PURE__ */ W("div", {
442
+ function bn({ className: e, ...t }) {
443
+ return /* @__PURE__ */ H("div", {
446
444
  "data-slot": "card-title",
447
445
  className: r("leading-none font-semibold", e),
448
446
  ...t
449
447
  });
450
448
  }
451
- function yn({ className: e, ...t }) {
452
- return /* @__PURE__ */ W("div", {
449
+ function xn({ className: e, ...t }) {
450
+ return /* @__PURE__ */ H("div", {
453
451
  "data-slot": "card-description",
454
452
  className: r("text-muted-foreground text-sm", e),
455
453
  ...t
456
454
  });
457
455
  }
458
- function bn({ className: e, ...t }) {
459
- return /* @__PURE__ */ W("div", {
456
+ function Sn({ className: e, ...t }) {
457
+ return /* @__PURE__ */ H("div", {
460
458
  "data-slot": "card-action",
461
459
  className: r("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
462
460
  ...t
463
461
  });
464
462
  }
465
- function xn({ className: e, ...t }) {
466
- return /* @__PURE__ */ W("div", {
463
+ function Cn({ className: e, ...t }) {
464
+ return /* @__PURE__ */ H("div", {
467
465
  "data-slot": "card-content",
468
466
  className: r("px-6", e),
469
467
  ...t
470
468
  });
471
469
  }
472
- function Sn({ className: e, ...t }) {
473
- return /* @__PURE__ */ W("div", {
470
+ function wn({ className: e, ...t }) {
471
+ return /* @__PURE__ */ H("div", {
474
472
  "data-slot": "card-footer",
475
473
  className: r("flex items-center px-6 [.border-t]:pt-6", e),
476
474
  ...t
@@ -478,71 +476,71 @@ function Sn({ className: e, ...t }) {
478
476
  }
479
477
  //#endregion
480
478
  //#region src/components/ui/drawer.tsx
481
- function Cn({ ...e }) {
482
- return /* @__PURE__ */ W(Ye.Root, {
479
+ function Tn({ ...e }) {
480
+ return /* @__PURE__ */ H(K.Root, {
483
481
  "data-slot": "drawer",
484
482
  ...e
485
483
  });
486
484
  }
487
- function wn({ ...e }) {
488
- return /* @__PURE__ */ W(Ye.Trigger, {
485
+ function En({ ...e }) {
486
+ return /* @__PURE__ */ H(K.Trigger, {
489
487
  "data-slot": "drawer-trigger",
490
488
  ...e
491
489
  });
492
490
  }
493
- function Tn({ ...e }) {
494
- return /* @__PURE__ */ W(Ye.Portal, {
491
+ function Dn({ ...e }) {
492
+ return /* @__PURE__ */ H(K.Portal, {
495
493
  "data-slot": "drawer-portal",
496
494
  ...e
497
495
  });
498
496
  }
499
- function En({ ...e }) {
500
- return /* @__PURE__ */ W(Ye.Close, {
497
+ function On({ ...e }) {
498
+ return /* @__PURE__ */ H(K.Close, {
501
499
  "data-slot": "drawer-close",
502
500
  ...e
503
501
  });
504
502
  }
505
- function Dn({ className: e, ...t }) {
506
- return /* @__PURE__ */ W(Ye.Overlay, {
503
+ function kn({ className: e, ...t }) {
504
+ return /* @__PURE__ */ H(K.Overlay, {
507
505
  "data-slot": "drawer-overlay",
508
506
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
509
507
  ...t
510
508
  });
511
509
  }
512
- function On({ className: e, children: t, ...n }) {
513
- return /* @__PURE__ */ G(Tn, {
510
+ function An({ className: e, children: t, ...n }) {
511
+ return /* @__PURE__ */ U(Dn, {
514
512
  "data-slot": "drawer-portal",
515
- children: [/* @__PURE__ */ W(Dn, {}), /* @__PURE__ */ G(Ye.Content, {
513
+ children: [/* @__PURE__ */ H(kn, {}), /* @__PURE__ */ U(K.Content, {
516
514
  "data-slot": "drawer-content",
517
515
  className: r("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", e),
518
516
  ...n,
519
- children: [/* @__PURE__ */ W("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
517
+ children: [/* @__PURE__ */ H("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), t]
520
518
  })]
521
519
  });
522
520
  }
523
- function kn({ className: e, ...t }) {
524
- return /* @__PURE__ */ W("div", {
521
+ function jn({ className: e, ...t }) {
522
+ return /* @__PURE__ */ H("div", {
525
523
  "data-slot": "drawer-header",
526
524
  className: r("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", e),
527
525
  ...t
528
526
  });
529
527
  }
530
- function An({ className: e, ...t }) {
531
- return /* @__PURE__ */ W("div", {
528
+ function Mn({ className: e, ...t }) {
529
+ return /* @__PURE__ */ H("div", {
532
530
  "data-slot": "drawer-footer",
533
531
  className: r("mt-auto flex flex-col gap-2 p-4", e),
534
532
  ...t
535
533
  });
536
534
  }
537
- function jn({ className: e, ...t }) {
538
- return /* @__PURE__ */ W(Ye.Title, {
535
+ function Nn({ className: e, ...t }) {
536
+ return /* @__PURE__ */ H(K.Title, {
539
537
  "data-slot": "drawer-title",
540
538
  className: r("text-foreground font-semibold", e),
541
539
  ...t
542
540
  });
543
541
  }
544
- function Mn({ className: e, ...t }) {
545
- return /* @__PURE__ */ W(Ye.Description, {
542
+ function Pn({ className: e, ...t }) {
543
+ return /* @__PURE__ */ H(K.Description, {
546
544
  "data-slot": "drawer-description",
547
545
  className: r("text-muted-foreground text-sm", e),
548
546
  ...t
@@ -550,8 +548,8 @@ function Mn({ className: e, ...t }) {
550
548
  }
551
549
  //#endregion
552
550
  //#region src/components/ui/label.tsx
553
- function Nn({ className: e, ...t }) {
554
- return /* @__PURE__ */ W(et.Root, {
551
+ function Fn({ className: e, ...t }) {
552
+ return /* @__PURE__ */ H(at.Root, {
555
553
  "data-slot": "label",
556
554
  className: r("flex items-center gap-2 text-sm leading-none font-medium text-foreground select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
557
555
  ...t
@@ -559,17 +557,17 @@ function Nn({ className: e, ...t }) {
559
557
  }
560
558
  //#endregion
561
559
  //#region src/components/ui/form.tsx
562
- var Pn = Ze, Fn = V.createContext({}), In = ({ ...e }) => {
563
- let t = !!e.rules?.required, n = V.useMemo(() => ({
560
+ var In = nt, Ln = z.createContext({}), Rn = ({ ...e }) => {
561
+ let t = !!e.rules?.required, n = z.useMemo(() => ({
564
562
  name: e.name,
565
563
  required: t
566
564
  }), [e.name, t]);
567
- return /* @__PURE__ */ W(Fn.Provider, {
565
+ return /* @__PURE__ */ H(Ln.Provider, {
568
566
  value: n,
569
- children: /* @__PURE__ */ W(Xe, { ...e })
567
+ children: /* @__PURE__ */ H(tt, { ...e })
570
568
  });
571
- }, Ln = () => {
572
- let e = V.useContext(Fn), t = V.useContext(Rn), { getFieldState: n } = Qe(), r = $e({ name: e.name }), i = n(e.name, r);
569
+ }, zn = () => {
570
+ let e = z.useContext(Ln), t = z.useContext(Bn), { getFieldState: n } = rt(), r = it({ name: e.name }), i = n(e.name, r);
573
571
  if (!e) throw Error("useFormField should be used within <FormField>");
574
572
  let { id: a } = t;
575
573
  return {
@@ -581,35 +579,35 @@ var Pn = Ze, Fn = V.createContext({}), In = ({ ...e }) => {
581
579
  formMessageId: `${a}-form-item-message`,
582
580
  ...i
583
581
  };
584
- }, Rn = V.createContext({});
585
- function zn({ className: e, ...t }) {
586
- let n = V.useId(), i = V.useMemo(() => ({ id: n }), [n]);
587
- return /* @__PURE__ */ W(Rn.Provider, {
582
+ }, Bn = z.createContext({});
583
+ function Vn({ className: e, ...t }) {
584
+ let n = z.useId(), i = z.useMemo(() => ({ id: n }), [n]);
585
+ return /* @__PURE__ */ H(Bn.Provider, {
588
586
  value: i,
589
- children: /* @__PURE__ */ W("div", {
587
+ children: /* @__PURE__ */ H("div", {
590
588
  "data-slot": "form-item",
591
589
  className: r("grid gap-2", e),
592
590
  ...t
593
591
  })
594
592
  });
595
593
  }
596
- function Bn({ className: e, children: t, ...n }) {
597
- let { error: i, formItemId: a, required: o } = Ln();
598
- return /* @__PURE__ */ G(Nn, {
594
+ function Hn({ className: e, children: t, ...n }) {
595
+ let { error: i, formItemId: a, required: o } = zn();
596
+ return /* @__PURE__ */ U(Fn, {
599
597
  "data-slot": "form-label",
600
598
  "data-error": !!i,
601
599
  className: r("data-[error=true]:text-destructive", e),
602
600
  htmlFor: a,
603
601
  ...n,
604
- children: [t, o ? /* @__PURE__ */ W("span", {
602
+ children: [t, o ? /* @__PURE__ */ H("span", {
605
603
  className: "text-destructive",
606
604
  children: " *"
607
605
  }) : null]
608
606
  });
609
607
  }
610
- function Vn({ ...e }) {
611
- let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = Ln();
612
- return /* @__PURE__ */ W(qe, {
608
+ function Un({ ...e }) {
609
+ let { error: t, formItemId: n, formDescriptionId: r, formMessageId: i } = zn();
610
+ return /* @__PURE__ */ H($e, {
613
611
  "data-slot": "form-control",
614
612
  id: n,
615
613
  "aria-describedby": t ? `${r} ${i}` : `${r}`,
@@ -617,18 +615,18 @@ function Vn({ ...e }) {
617
615
  ...e
618
616
  });
619
617
  }
620
- function Hn({ className: e, ...t }) {
621
- let { formDescriptionId: n } = Ln();
622
- return /* @__PURE__ */ W("p", {
618
+ function Wn({ className: e, ...t }) {
619
+ let { formDescriptionId: n } = zn();
620
+ return /* @__PURE__ */ H("p", {
623
621
  "data-slot": "form-description",
624
622
  id: n,
625
623
  className: r("text-muted-foreground text-sm", e),
626
624
  ...t
627
625
  });
628
626
  }
629
- function Un({ className: e, ...t }) {
630
- let { error: n, formMessageId: i } = Ln(), a = n ? String(n?.message ?? "") : t.children;
631
- return a ? /* @__PURE__ */ W("p", {
627
+ function Gn({ className: e, ...t }) {
628
+ let { error: n, formMessageId: i } = zn(), a = n ? String(n?.message ?? "") : t.children;
629
+ return a ? /* @__PURE__ */ H("p", {
632
630
  "data-slot": "form-message",
633
631
  id: i,
634
632
  className: r("text-destructive text-sm", e),
@@ -638,63 +636,63 @@ function Un({ className: e, ...t }) {
638
636
  }
639
637
  //#endregion
640
638
  //#region src/components/ui/form-actions.tsx
641
- function Wn({ children: e, className: t }) {
642
- return /* @__PURE__ */ W("div", {
639
+ function Kn({ children: e, className: t }) {
640
+ return /* @__PURE__ */ H("div", {
643
641
  className: r("flex items-center justify-end gap-3 pt-4 border-t", t),
644
642
  children: e
645
643
  });
646
644
  }
647
- function Gn({ onClick: e, children: t, className: n }) {
648
- let { t: r } = K();
649
- return /* @__PURE__ */ G(v, {
645
+ function qn({ onClick: e, children: t, className: n }) {
646
+ let { t: r } = W();
647
+ return /* @__PURE__ */ U(v, {
650
648
  type: "button",
651
649
  variant: "outline",
652
650
  onClick: e,
653
651
  className: n,
654
- children: [/* @__PURE__ */ W(ft, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
652
+ children: [/* @__PURE__ */ H(_t, { className: "size-4" }), t ?? r("forms.formActions.cancel")]
655
653
  });
656
654
  }
657
- function Kn({ loading: e, disabled: t, children: n, className: r }) {
658
- let { t: i } = K();
659
- return /* @__PURE__ */ G(v, {
655
+ function Jn({ loading: e, disabled: t, children: n, className: r }) {
656
+ let { t: i } = W();
657
+ return /* @__PURE__ */ U(v, {
660
658
  type: "submit",
661
659
  disabled: t || e,
662
660
  className: r,
663
- children: [e ? /* @__PURE__ */ W(ot, { className: "size-4 animate-spin" }) : /* @__PURE__ */ W(at, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
661
+ children: [e ? /* @__PURE__ */ H(dt, { className: "size-4 animate-spin" }) : /* @__PURE__ */ H(ut, { className: "size-4" }), n ?? i("forms.formActions.saveChanges")]
664
662
  });
665
663
  }
666
- function qn({ onClick: e, children: t, className: n }) {
667
- let { t: i } = K();
668
- return /* @__PURE__ */ G(v, {
664
+ function Yn({ onClick: e, children: t, className: n }) {
665
+ let { t: i } = W();
666
+ return /* @__PURE__ */ U(v, {
669
667
  type: "button",
670
668
  variant: "outline",
671
669
  onClick: e,
672
670
  className: r("md:hidden text-destructive border-destructive/30 hover:bg-destructive/10 mr-auto", n),
673
- children: [/* @__PURE__ */ W(ut, { className: "size-4" }), t ?? i("forms.formActions.delete")]
671
+ children: [/* @__PURE__ */ H(ht, { className: "size-4" }), t ?? i("forms.formActions.delete")]
674
672
  });
675
673
  }
676
- Wn.Cancel = Gn, Wn.Submit = Kn, Wn.Delete = qn;
677
- var Jn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ W(zn, { children: /* @__PURE__ */ W("div", {
674
+ Kn.Cancel = qn, Kn.Submit = Jn, Kn.Delete = Yn;
675
+ var Xn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ H(Vn, { children: /* @__PURE__ */ H("div", {
678
676
  className: r("flex w-full flex-row items-center gap-4", e),
679
677
  ...t
680
678
  }) }), {
681
- Left: ({ className: e, ...t }) => /* @__PURE__ */ W("div", {
679
+ Left: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
682
680
  className: r("flex w-1/2 flex-col gap-1", e),
683
681
  ...t
684
682
  }),
685
- Right: ({ className: e, ...t }) => /* @__PURE__ */ W("div", {
683
+ Right: ({ className: e, ...t }) => /* @__PURE__ */ H("div", {
686
684
  className: r("flex w-1/2 justify-end", e),
687
685
  ...t
688
686
  }),
689
- Label: ({ className: e, ...t }) => /* @__PURE__ */ W(Bn, {
687
+ Label: ({ className: e, ...t }) => /* @__PURE__ */ H(Hn, {
690
688
  className: r(e),
691
689
  ...t
692
690
  }),
693
- Description: ({ className: e, ...t }) => /* @__PURE__ */ W(Hn, {
691
+ Description: ({ className: e, ...t }) => /* @__PURE__ */ H(Wn, {
694
692
  className: r(e),
695
693
  ...t
696
694
  })
697
- }), Yn = Je("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
695
+ }), Zn = et("peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", {
698
696
  variants: { variant: {
699
697
  default: [
700
698
  "data-[state=checked]:bg-gradient-to-r data-[state=checked]:from-[var(--vg-accent-fill-from)] data-[state=checked]:to-[var(--vg-accent-fill-to)]",
@@ -729,12 +727,12 @@ var Jn = Object.assign(({ className: e, ...t }) => /* @__PURE__ */ W(zn, { child
729
727
  } },
730
728
  defaultVariants: { variant: "default" }
731
729
  });
732
- function Xn({ className: e, variant: t, ...n }) {
733
- return /* @__PURE__ */ W(pt.Root, {
730
+ function Qn({ className: e, variant: t, ...n }) {
731
+ return /* @__PURE__ */ H(vt.Root, {
734
732
  "data-slot": "gradient-switch",
735
- className: r(Yn({ variant: t }), e),
733
+ className: r(Zn({ variant: t }), e),
736
734
  ...n,
737
- children: /* @__PURE__ */ W(pt.Thumb, {
735
+ children: /* @__PURE__ */ H(vt.Thumb, {
738
736
  "data-slot": "gradient-switch-thumb",
739
737
  className: r("bg-background pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:bg-primary-foreground")
740
738
  })
@@ -742,11 +740,11 @@ function Xn({ className: e, variant: t, ...n }) {
742
740
  }
743
741
  //#endregion
744
742
  //#region src/components/ui/glass-card.tsx
745
- var Zn = "rounded-2xl p-6 sm:p-8";
746
- function Qn({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
743
+ var $n = "rounded-2xl p-6 sm:p-8";
744
+ function er({ children: e, color: t, colorDark: n, className: i, style: a, ...o }) {
747
745
  let s = {};
748
- return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ W("div", {
749
- className: r("vig-glass-card", Zn, i),
746
+ return t && (s["--glass-card-color"] = t), n ? s["--glass-card-color-dark"] = n : t && (s["--glass-card-color-dark"] = t), /* @__PURE__ */ H("div", {
747
+ className: r("vig-glass-card", $n, i),
750
748
  style: {
751
749
  ...a ?? {},
752
750
  ...s
@@ -757,9 +755,9 @@ function Qn({ children: e, color: t, colorDark: n, className: i, style: a, ...o
757
755
  }
758
756
  //#endregion
759
757
  //#region src/components/ui/pulse-ring.tsx
760
- function $n({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
758
+ function tr({ children: e, color: t, colorDark: n, paused: i, className: a, style: o, ...s }) {
761
759
  let c = {};
762
- return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ W("div", {
760
+ return t && (c["--pulse-ring-color"] = t), n ? c["--pulse-ring-color-dark"] = n : t && (c["--pulse-ring-color-dark"] = t), /* @__PURE__ */ H("div", {
763
761
  className: r("vig-pulse-ring", !i && "vig-pulse-ring--active", a),
764
762
  style: {
765
763
  ...o ?? {},
@@ -771,116 +769,116 @@ function $n({ children: e, color: t, colorDark: n, paused: i, className: a, styl
771
769
  }
772
770
  //#endregion
773
771
  //#region src/components/ui/hover-card.tsx
774
- var er = mt.Root, tr = mt.Trigger, nr = V.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ W(mt.Content, {
772
+ var nr = yt.Root, rr = yt.Trigger, ir = z.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...i }, a) => /* @__PURE__ */ H(yt.Content, {
775
773
  ref: a,
776
774
  align: t,
777
775
  sideOffset: n,
778
776
  className: r("z-50 w-64 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),
779
777
  ...i
780
778
  }));
781
- nr.displayName = mt.Content.displayName;
779
+ ir.displayName = yt.Content.displayName;
782
780
  //#endregion
783
781
  //#region src/components/ui/navigation-menu.tsx
784
- function rr({ className: e, children: t, viewport: n = !0, ...i }) {
785
- let { t: a } = K();
786
- return /* @__PURE__ */ G(ht.Root, {
782
+ function ar({ className: e, children: t, viewport: n = !0, ...i }) {
783
+ let { t: a } = W();
784
+ return /* @__PURE__ */ U(q.Root, {
787
785
  "data-slot": "navigation-menu",
788
786
  "data-viewport": n,
789
787
  "aria-label": a("common.mainNavigation", { defaultValue: "Main navigation" }),
790
788
  className: r("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", e),
791
789
  ...i,
792
- children: [t, n && /* @__PURE__ */ W(lr, {})]
790
+ children: [t, n && /* @__PURE__ */ H(dr, {})]
793
791
  });
794
792
  }
795
- function ir({ className: e, ...t }) {
796
- return /* @__PURE__ */ W(ht.List, {
793
+ function or({ className: e, ...t }) {
794
+ return /* @__PURE__ */ H(q.List, {
797
795
  "data-slot": "navigation-menu-list",
798
796
  className: r("group flex flex-1 list-none items-center justify-center gap-1", e),
799
797
  ...t
800
798
  });
801
799
  }
802
- function ar({ className: e, ...t }) {
803
- return /* @__PURE__ */ W(ht.Item, {
800
+ function sr({ className: e, ...t }) {
801
+ return /* @__PURE__ */ H(q.Item, {
804
802
  "data-slot": "navigation-menu-item",
805
803
  className: r("relative", e),
806
804
  ...t
807
805
  });
808
806
  }
809
- var or = Je("group inline-flex h-(--vg-control-form) w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
810
- function sr({ className: e, children: t, ...n }) {
811
- return /* @__PURE__ */ G(ht.Trigger, {
807
+ var cr = et("group inline-flex h-(--vg-control-form) w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");
808
+ function lr({ className: e, children: t, ...n }) {
809
+ return /* @__PURE__ */ U(q.Trigger, {
812
810
  "data-slot": "navigation-menu-trigger",
813
- className: r(or(), "group", e),
811
+ className: r(cr(), "group", e),
814
812
  ...n,
815
813
  children: [
816
814
  t,
817
815
  " ",
818
- /* @__PURE__ */ W(At, {
816
+ /* @__PURE__ */ H(Mt, {
819
817
  className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
820
818
  "aria-hidden": "true"
821
819
  })
822
820
  ]
823
821
  });
824
822
  }
825
- function cr({ className: e, ...t }) {
826
- return /* @__PURE__ */ W(ht.Content, {
823
+ function ur({ className: e, ...t }) {
824
+ return /* @__PURE__ */ H(q.Content, {
827
825
  "data-slot": "navigation-menu-content",
828
826
  className: r("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", e),
829
827
  ...t
830
828
  });
831
829
  }
832
- function lr({ className: e, ...t }) {
833
- return /* @__PURE__ */ W("div", {
830
+ function dr({ className: e, ...t }) {
831
+ return /* @__PURE__ */ H("div", {
834
832
  className: r("absolute top-full left-0 isolate z-50 flex justify-center"),
835
- children: /* @__PURE__ */ W(ht.Viewport, {
833
+ children: /* @__PURE__ */ H(q.Viewport, {
836
834
  "data-slot": "navigation-menu-viewport",
837
835
  className: r("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", e),
838
836
  ...t
839
837
  })
840
838
  });
841
839
  }
842
- function ur({ className: e, ...t }) {
843
- return /* @__PURE__ */ W(ht.Link, {
840
+ function fr({ className: e, ...t }) {
841
+ return /* @__PURE__ */ H(q.Link, {
844
842
  "data-slot": "navigation-menu-link",
845
843
  className: r("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", e),
846
844
  ...t
847
845
  });
848
846
  }
849
- function dr({ className: e, ...t }) {
850
- return /* @__PURE__ */ W(ht.Indicator, {
847
+ function pr({ className: e, ...t }) {
848
+ return /* @__PURE__ */ H(q.Indicator, {
851
849
  "data-slot": "navigation-menu-indicator",
852
850
  className: r("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", e),
853
851
  ...t,
854
- children: /* @__PURE__ */ W("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
852
+ children: /* @__PURE__ */ H("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
855
853
  });
856
854
  }
857
855
  //#endregion
858
856
  //#region src/components/ui/pagination.tsx
859
- function fr({ className: e, ...t }) {
860
- let { t: n } = K();
861
- return /* @__PURE__ */ W("nav", {
857
+ function mr({ className: e, ...t }) {
858
+ let { t: n } = W();
859
+ return /* @__PURE__ */ H("nav", {
862
860
  role: "navigation",
863
861
  "aria-label": n("common.pagination", { defaultValue: "Pagination" }),
864
862
  className: r("mx-auto flex w-full justify-center", e),
865
863
  ...t
866
864
  });
867
865
  }
868
- var pr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W("ol", {
866
+ var hr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("ol", {
869
867
  ref: n,
870
868
  className: r("flex flex-row items-center gap-1", e),
871
869
  ...t
872
870
  }));
873
- pr.displayName = "PaginationContent";
874
- var mr = V.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ W("li", {
871
+ hr.displayName = "PaginationContent";
872
+ var gr = z.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ H("li", {
875
873
  ref: n,
876
874
  className: r("", e),
877
875
  ...t
878
876
  }));
879
- mr.displayName = "PaginationItem";
880
- function hr({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
881
- return /* @__PURE__ */ W("a", {
877
+ gr.displayName = "PaginationItem";
878
+ function _r({ className: e, isActive: t, size: n = "icon", children: i, ...a }) {
879
+ return /* @__PURE__ */ H("a", {
882
880
  "aria-current": t ? "page" : void 0,
883
- className: r(le({
881
+ className: r(ve({
884
882
  variant: t ? "outline" : "ghost",
885
883
  size: n
886
884
  }), t && "bg-accent text-accent-foreground", e),
@@ -888,33 +886,33 @@ function hr({ className: e, isActive: t, size: n = "icon", children: i, ...a })
888
886
  children: i
889
887
  });
890
888
  }
891
- function gr({ className: e, ...t }) {
892
- let { t: n } = K();
893
- return /* @__PURE__ */ G(hr, {
889
+ function vr({ className: e, ...t }) {
890
+ let { t: n } = W();
891
+ return /* @__PURE__ */ U(_r, {
894
892
  "aria-label": n("common.goToPreviousPage", { defaultValue: "Go to previous page" }),
895
893
  size: "default",
896
894
  className: r("gap-1 pl-2.5", e),
897
895
  ...t,
898
- children: [/* @__PURE__ */ W(Mt, { className: "h-4 w-4" }), /* @__PURE__ */ W("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
896
+ children: [/* @__PURE__ */ H(Pt, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", { children: n("common.previous", { defaultValue: "Previous" }) })]
899
897
  });
900
898
  }
901
- function _r({ className: e, ...t }) {
902
- let { t: n } = K();
903
- return /* @__PURE__ */ G(hr, {
899
+ function yr({ className: e, ...t }) {
900
+ let { t: n } = W();
901
+ return /* @__PURE__ */ U(_r, {
904
902
  "aria-label": n("common.goToNextPage", { defaultValue: "Go to next page" }),
905
903
  size: "default",
906
904
  className: r("gap-1 pr-2.5", e),
907
905
  ...t,
908
- children: [/* @__PURE__ */ W("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ W(ue, { className: "h-4 w-4" })]
906
+ children: [/* @__PURE__ */ H("span", { children: n("common.next", { defaultValue: "Next" }) }), /* @__PURE__ */ H(Ne, { className: "h-4 w-4" })]
909
907
  });
910
908
  }
911
- function vr({ className: e, ...t }) {
912
- let { t: n } = K();
913
- return /* @__PURE__ */ G("span", {
909
+ function br({ className: e, ...t }) {
910
+ let { t: n } = W();
911
+ return /* @__PURE__ */ U("span", {
914
912
  "aria-hidden": "true",
915
913
  className: r("flex h-9 w-9 items-center justify-center", e),
916
914
  ...t,
917
- children: [/* @__PURE__ */ W(Rt, { className: "h-4 w-4" }), /* @__PURE__ */ W("span", {
915
+ children: [/* @__PURE__ */ H(Bt, { className: "h-4 w-4" }), /* @__PURE__ */ H("span", {
918
916
  className: "sr-only",
919
917
  children: n("common.morePages", { defaultValue: "More pages" })
920
918
  })]
@@ -922,12 +920,12 @@ function vr({ className: e, ...t }) {
922
920
  }
923
921
  //#endregion
924
922
  //#region src/components/ui/progress.tsx
925
- function yr({ className: e, value: t, ...n }) {
926
- return /* @__PURE__ */ W(gt.Root, {
923
+ function xr({ className: e, value: t, ...n }) {
924
+ return /* @__PURE__ */ H(bt.Root, {
927
925
  "data-slot": "progress",
928
926
  className: r("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", e),
929
927
  ...n,
930
- children: /* @__PURE__ */ W(gt.Indicator, {
928
+ children: /* @__PURE__ */ H(bt.Indicator, {
931
929
  "data-slot": "progress-indicator",
932
930
  className: "h-full w-full flex-1 bg-primary transition-all",
933
931
  style: { transform: `translateX(-${100 - (t || 0)}%)` }
@@ -936,98 +934,98 @@ function yr({ className: e, value: t, ...n }) {
936
934
  }
937
935
  //#endregion
938
936
  //#region src/components/ui/select.tsx
939
- function br({ ...e }) {
940
- return /* @__PURE__ */ W(J.Root, {
937
+ function Sr({ ...e }) {
938
+ return /* @__PURE__ */ H(J.Root, {
941
939
  "data-slot": "select",
942
940
  ...e
943
941
  });
944
942
  }
945
- function xr({ ...e }) {
946
- return /* @__PURE__ */ W(J.Group, {
943
+ function Cr({ ...e }) {
944
+ return /* @__PURE__ */ H(J.Group, {
947
945
  "data-slot": "select-group",
948
946
  ...e
949
947
  });
950
948
  }
951
- function Sr({ ...e }) {
952
- return /* @__PURE__ */ W(J.Value, {
949
+ function wr({ ...e }) {
950
+ return /* @__PURE__ */ H(J.Value, {
953
951
  "data-slot": "select-value",
954
952
  ...e
955
953
  });
956
954
  }
957
- function Cr({ className: e, size: t = "default", children: n, ...i }) {
958
- return /* @__PURE__ */ G(J.Trigger, {
955
+ function Tr({ className: e, size: t = "default", children: n, ...i }) {
956
+ return /* @__PURE__ */ U(J.Trigger, {
959
957
  "data-slot": "select-trigger",
960
958
  "data-size": t,
961
959
  className: r("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-(--vg-control-form) data-[size=sm]:h-(--vg-control-dense) *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", e),
962
960
  ...i,
963
- children: [n, /* @__PURE__ */ W(J.Icon, {
961
+ children: [n, /* @__PURE__ */ H(J.Icon, {
964
962
  asChild: !0,
965
- children: /* @__PURE__ */ W(At, { className: "size-4 opacity-50" })
963
+ children: /* @__PURE__ */ H(Mt, { className: "size-4 opacity-50" })
966
964
  })]
967
965
  });
968
966
  }
969
- function wr({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
970
- return /* @__PURE__ */ W(J.Portal, { children: /* @__PURE__ */ G(J.Content, {
967
+ function Er({ className: e, children: t, position: n = "popper", align: i = "center", ...a }) {
968
+ return /* @__PURE__ */ H(J.Portal, { children: /* @__PURE__ */ U(J.Content, {
971
969
  "data-slot": "select-content",
972
970
  className: r("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", n === "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),
973
971
  position: n,
974
972
  align: i,
975
973
  ...a,
976
974
  children: [
977
- /* @__PURE__ */ W(Or, {}),
978
- /* @__PURE__ */ W(J.Viewport, {
975
+ /* @__PURE__ */ H(Ar, {}),
976
+ /* @__PURE__ */ H(J.Viewport, {
979
977
  className: r("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
980
978
  children: t
981
979
  }),
982
- /* @__PURE__ */ W(kr, {})
980
+ /* @__PURE__ */ H(jr, {})
983
981
  ]
984
982
  }) });
985
983
  }
986
- function Tr({ className: e, ...t }) {
987
- return /* @__PURE__ */ W(J.Label, {
984
+ function Dr({ className: e, ...t }) {
985
+ return /* @__PURE__ */ H(J.Label, {
988
986
  "data-slot": "select-label",
989
987
  className: r("text-muted-foreground px-2 py-1.5 text-xs", e),
990
988
  ...t
991
989
  });
992
990
  }
993
- function Er({ className: e, children: t, ...n }) {
994
- return /* @__PURE__ */ G(J.Item, {
991
+ function Or({ className: e, children: t, ...n }) {
992
+ return /* @__PURE__ */ U(J.Item, {
995
993
  "data-slot": "select-item",
996
994
  className: r("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
997
995
  ...n,
998
- children: [/* @__PURE__ */ W("span", {
996
+ children: [/* @__PURE__ */ H("span", {
999
997
  className: "absolute right-2 flex size-3.5 items-center justify-center",
1000
- children: /* @__PURE__ */ W(J.ItemIndicator, { children: /* @__PURE__ */ W(re, { className: "size-4" }) })
1001
- }), /* @__PURE__ */ W(J.ItemText, { children: t })]
998
+ children: /* @__PURE__ */ H(J.ItemIndicator, { children: /* @__PURE__ */ H(De, { className: "size-4" }) })
999
+ }), /* @__PURE__ */ H(J.ItemText, { children: t })]
1002
1000
  });
1003
1001
  }
1004
- function Dr({ className: e, ...t }) {
1005
- return /* @__PURE__ */ W(J.Separator, {
1002
+ function kr({ className: e, ...t }) {
1003
+ return /* @__PURE__ */ H(J.Separator, {
1006
1004
  "data-slot": "select-separator",
1007
1005
  className: r("bg-border pointer-events-none -mx-1 my-1 h-px", e),
1008
1006
  ...t
1009
1007
  });
1010
1008
  }
1011
- function Or({ className: e, ...t }) {
1012
- return /* @__PURE__ */ W(J.ScrollUpButton, {
1009
+ function Ar({ className: e, ...t }) {
1010
+ return /* @__PURE__ */ H(J.ScrollUpButton, {
1013
1011
  "data-slot": "select-scroll-up-button",
1014
1012
  className: r("flex cursor-default items-center justify-center py-1", e),
1015
1013
  ...t,
1016
- children: /* @__PURE__ */ W(Pt, { className: "size-4" })
1014
+ children: /* @__PURE__ */ H(It, { className: "size-4" })
1017
1015
  });
1018
1016
  }
1019
- function kr({ className: e, ...t }) {
1020
- return /* @__PURE__ */ W(J.ScrollDownButton, {
1017
+ function jr({ className: e, ...t }) {
1018
+ return /* @__PURE__ */ H(J.ScrollDownButton, {
1021
1019
  "data-slot": "select-scroll-down-button",
1022
1020
  className: r("flex cursor-default items-center justify-center py-1", e),
1023
1021
  ...t,
1024
- children: /* @__PURE__ */ W(At, { className: "size-4" })
1022
+ children: /* @__PURE__ */ H(Mt, { className: "size-4" })
1025
1023
  });
1026
1024
  }
1027
1025
  //#endregion
1028
1026
  //#region src/components/ui/separator.tsx
1029
- function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1030
- return /* @__PURE__ */ W(_t.Root, {
1027
+ function Mr({ className: e, orientation: t = "horizontal", decorative: n = !0, ...i }) {
1028
+ return /* @__PURE__ */ H(xt.Root, {
1031
1029
  "data-slot": "separator",
1032
1030
  decorative: n,
1033
1031
  orientation: t,
@@ -1037,75 +1035,75 @@ function Ar({ className: e, orientation: t = "horizontal", decorative: n = !0, .
1037
1035
  }
1038
1036
  //#endregion
1039
1037
  //#region src/components/ui/sheet.tsx
1040
- function jr({ ...e }) {
1041
- return /* @__PURE__ */ W(q.Root, {
1038
+ function Nr({ ...e }) {
1039
+ return /* @__PURE__ */ H(G.Root, {
1042
1040
  "data-slot": "sheet",
1043
1041
  ...e
1044
1042
  });
1045
1043
  }
1046
- function Mr({ ...e }) {
1047
- return /* @__PURE__ */ W(q.Trigger, {
1044
+ function Pr({ ...e }) {
1045
+ return /* @__PURE__ */ H(G.Trigger, {
1048
1046
  "data-slot": "sheet-trigger",
1049
1047
  ...e
1050
1048
  });
1051
1049
  }
1052
- function Nr({ ...e }) {
1053
- return /* @__PURE__ */ W(q.Close, {
1050
+ function Fr({ ...e }) {
1051
+ return /* @__PURE__ */ H(G.Close, {
1054
1052
  "data-slot": "sheet-close",
1055
1053
  ...e
1056
1054
  });
1057
1055
  }
1058
- function Pr({ ...e }) {
1059
- return /* @__PURE__ */ W(q.Portal, {
1056
+ function Ir({ ...e }) {
1057
+ return /* @__PURE__ */ H(G.Portal, {
1060
1058
  "data-slot": "sheet-portal",
1061
1059
  ...e
1062
1060
  });
1063
1061
  }
1064
- function Fr({ className: e, ...t }) {
1065
- return /* @__PURE__ */ W(q.Overlay, {
1062
+ function Lr({ className: e, ...t }) {
1063
+ return /* @__PURE__ */ H(G.Overlay, {
1066
1064
  "data-slot": "sheet-overlay",
1067
1065
  className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", e),
1068
1066
  ...t
1069
1067
  });
1070
1068
  }
1071
- function Ir({ className: e, children: t, side: n = "right", ...i }) {
1072
- let { t: o } = K();
1073
- return /* @__PURE__ */ G(Pr, { children: [/* @__PURE__ */ W(Fr, {}), /* @__PURE__ */ G(q.Content, {
1069
+ function Rr({ className: e, children: t, side: n = "right", ...i }) {
1070
+ let { t: o } = W();
1071
+ return /* @__PURE__ */ U(Ir, { children: [/* @__PURE__ */ H(Lr, {}), /* @__PURE__ */ U(G.Content, {
1074
1072
  "data-slot": "sheet-content",
1075
1073
  className: r("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", e),
1076
1074
  ...i,
1077
- children: [t, /* @__PURE__ */ G(q.Close, {
1075
+ children: [t, /* @__PURE__ */ U(G.Close, {
1078
1076
  className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
1079
- children: [/* @__PURE__ */ W(a, { className: "size-4" }), /* @__PURE__ */ W("span", {
1077
+ children: [/* @__PURE__ */ H(a, { className: "size-4" }), /* @__PURE__ */ H("span", {
1080
1078
  className: "sr-only",
1081
1079
  children: o("dialog.close", { defaultValue: "Close" })
1082
1080
  })]
1083
1081
  })]
1084
1082
  })] });
1085
1083
  }
1086
- function Lr({ className: e, ...t }) {
1087
- return /* @__PURE__ */ W("div", {
1084
+ function zr({ className: e, ...t }) {
1085
+ return /* @__PURE__ */ H("div", {
1088
1086
  "data-slot": "sheet-header",
1089
1087
  className: r("flex flex-col gap-1.5 p-4", e),
1090
1088
  ...t
1091
1089
  });
1092
1090
  }
1093
- function Rr({ className: e, ...t }) {
1094
- return /* @__PURE__ */ W("div", {
1091
+ function Br({ className: e, ...t }) {
1092
+ return /* @__PURE__ */ H("div", {
1095
1093
  "data-slot": "sheet-footer",
1096
1094
  className: r("mt-auto flex flex-col gap-2 p-4", e),
1097
1095
  ...t
1098
1096
  });
1099
1097
  }
1100
- function zr({ className: e, ...t }) {
1101
- return /* @__PURE__ */ W(q.Title, {
1098
+ function Vr({ className: e, ...t }) {
1099
+ return /* @__PURE__ */ H(G.Title, {
1102
1100
  "data-slot": "sheet-title",
1103
1101
  className: r("text-foreground font-semibold", e),
1104
1102
  ...t
1105
1103
  });
1106
1104
  }
1107
- function Br({ className: e, ...t }) {
1108
- return /* @__PURE__ */ W(q.Description, {
1105
+ function Hr({ className: e, ...t }) {
1106
+ return /* @__PURE__ */ H(G.Description, {
1109
1107
  "data-slot": "sheet-description",
1110
1108
  className: r("text-muted-foreground text-sm", e),
1111
1109
  ...t
@@ -1113,31 +1111,31 @@ function Br({ className: e, ...t }) {
1113
1111
  }
1114
1112
  //#endregion
1115
1113
  //#region src/components/ui/sidebar.tsx
1116
- var Vr = "sidebar_state", Hr = 604800, Ur = "16rem", Wr = "18rem", Gr = "3rem", Kr = "b", qr = V.createContext(null);
1117
- function Jr() {
1118
- let e = V.useContext(qr);
1114
+ var Ur = "sidebar_state", Wr = 604800, Gr = "16rem", Kr = "18rem", qr = "3rem", Jr = "b", Yr = z.createContext(null);
1115
+ function Xr() {
1116
+ let e = z.useContext(Yr);
1119
1117
  if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
1120
1118
  return e;
1121
1119
  }
1122
- function Yr() {
1123
- return V.useContext(qr);
1120
+ function Zr() {
1121
+ return z.useContext(Yr);
1124
1122
  }
1125
- function Xr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1126
- let c = _e(), [l, u] = V.useState(!1), [d, f] = V.useState(e), p = t ?? d, m = V.useCallback((e) => {
1123
+ function Qr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style: a, children: o, ...s }) {
1124
+ let c = Re(), [l, u] = z.useState(!1), [d, f] = z.useState(e), p = t ?? d, m = z.useCallback((e) => {
1127
1125
  let t = typeof e == "function" ? e(p) : e;
1128
- n ? n(t) : f(t), document.cookie = `${Vr}=${t}; path=/; max-age=${Hr}`;
1129
- }, [n, p]), h = V.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1126
+ n ? n(t) : f(t), document.cookie = `${Ur}=${t}; path=/; max-age=${Wr}`;
1127
+ }, [n, p]), h = z.useCallback(() => c ? u((e) => !e) : m((e) => !e), [
1130
1128
  c,
1131
1129
  m,
1132
1130
  u
1133
1131
  ]);
1134
- V.useEffect(() => {
1132
+ z.useEffect(() => {
1135
1133
  let e = (e) => {
1136
- e.key === Kr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1134
+ e.key === Jr && (e.metaKey || e.ctrlKey) && (e.preventDefault(), h());
1137
1135
  };
1138
1136
  return globalThis.addEventListener("keydown", e), () => globalThis.removeEventListener("keydown", e);
1139
1137
  }, [h]);
1140
- let g = p ? "expanded" : "collapsed", _ = V.useMemo(() => ({
1138
+ let g = p ? "expanded" : "collapsed", _ = z.useMemo(() => ({
1141
1139
  state: g,
1142
1140
  open: p,
1143
1141
  setOpen: m,
@@ -1154,15 +1152,15 @@ function Xr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1154
1152
  u,
1155
1153
  h
1156
1154
  ]);
1157
- return /* @__PURE__ */ W(qr.Provider, {
1155
+ return /* @__PURE__ */ H(Yr.Provider, {
1158
1156
  value: _,
1159
- children: /* @__PURE__ */ W(ke, {
1157
+ children: /* @__PURE__ */ H(ce, {
1160
1158
  delayDuration: 0,
1161
- children: /* @__PURE__ */ W("div", {
1159
+ children: /* @__PURE__ */ H("div", {
1162
1160
  "data-slot": "sidebar-wrapper",
1163
1161
  style: {
1164
- "--sidebar-width": Ur,
1165
- "--sidebar-width-icon": Gr,
1162
+ "--sidebar-width": Gr,
1163
+ "--sidebar-width-icon": qr,
1166
1164
  ...a
1167
1165
  },
1168
1166
  className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", i),
@@ -1172,9 +1170,9 @@ function Xr({ defaultOpen: e = !0, open: t, onOpenChange: n, className: i, style
1172
1170
  })
1173
1171
  });
1174
1172
  }
1175
- function Zr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1176
- let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Jr(), { t: f } = K();
1177
- if (n === "none") return /* @__PURE__ */ W("div", {
1173
+ function $r({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcanvas", position: i = "fixed", className: a, children: o, ...s }) {
1174
+ let { isMobile: c, state: l, openMobile: u, setOpenMobile: d } = Xr(), { t: f } = W();
1175
+ if (n === "none") return /* @__PURE__ */ H("div", {
1178
1176
  "data-slot": "sidebar",
1179
1177
  className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", a),
1180
1178
  ...s,
@@ -1182,10 +1180,10 @@ function Zr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1182
1180
  });
1183
1181
  if (c) {
1184
1182
  let { style: t, ...n } = s;
1185
- return /* @__PURE__ */ W(jr, {
1183
+ return /* @__PURE__ */ H(Nr, {
1186
1184
  open: u,
1187
1185
  onOpenChange: d,
1188
- children: /* @__PURE__ */ G(Ir, {
1186
+ children: /* @__PURE__ */ U(Rr, {
1189
1187
  "data-sidebar": "sidebar",
1190
1188
  "data-slot": "sidebar",
1191
1189
  "data-mobile": "true",
@@ -1193,34 +1191,34 @@ function Zr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1193
1191
  ...n,
1194
1192
  className: r("bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", a),
1195
1193
  style: {
1196
- "--sidebar-width": Wr,
1194
+ "--sidebar-width": Kr,
1197
1195
  ...t
1198
1196
  },
1199
- children: [/* @__PURE__ */ G(Lr, {
1197
+ children: [/* @__PURE__ */ U(zr, {
1200
1198
  className: "sr-only",
1201
- children: [/* @__PURE__ */ W(zr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ W(Br, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1202
- }), /* @__PURE__ */ W("div", {
1199
+ children: [/* @__PURE__ */ H(Vr, { children: f("sidebar.title", { defaultValue: "Sidebar" }) }), /* @__PURE__ */ H(Hr, { children: f("sidebar.description", { defaultValue: "Displays the mobile sidebar." }) })]
1200
+ }), /* @__PURE__ */ H("div", {
1203
1201
  className: "flex h-full w-full flex-col",
1204
1202
  children: o
1205
1203
  })]
1206
1204
  })
1207
1205
  });
1208
1206
  }
1209
- return /* @__PURE__ */ G("div", {
1207
+ return /* @__PURE__ */ U("div", {
1210
1208
  className: r("group peer text-sidebar-foreground hidden md:block", i === "absolute" && "relative"),
1211
1209
  "data-state": l,
1212
1210
  "data-collapsible": l === "collapsed" ? n : "",
1213
1211
  "data-variant": t,
1214
1212
  "data-side": e,
1215
1213
  "data-slot": "sidebar",
1216
- children: [/* @__PURE__ */ W("div", {
1214
+ children: [/* @__PURE__ */ H("div", {
1217
1215
  "data-slot": "sidebar-gap",
1218
1216
  className: r("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", t === "floating" || t === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)")
1219
- }), /* @__PURE__ */ W("div", {
1217
+ }), /* @__PURE__ */ H("div", {
1220
1218
  "data-slot": "sidebar-container",
1221
1219
  className: r("inset-y-0 z-10 hidden w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", i === "absolute" ? "h-full" : "h-svh", i === "absolute" ? "absolute" : "fixed", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t === "floating" || t === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", a),
1222
1220
  ...s,
1223
- children: /* @__PURE__ */ W("div", {
1221
+ children: /* @__PURE__ */ H("div", {
1224
1222
  "data-sidebar": "sidebar",
1225
1223
  "data-slot": "sidebar-inner",
1226
1224
  className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",
@@ -1229,11 +1227,11 @@ function Zr({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
1229
1227
  })]
1230
1228
  });
1231
1229
  }
1232
- function Qr({ className: e, onClick: t, ...n }) {
1233
- let i = Yr(), { t: a } = K();
1230
+ function ei({ className: e, onClick: t, ...n }) {
1231
+ let i = Zr(), { t: a } = W();
1234
1232
  if (!i) return null;
1235
1233
  let { toggleSidebar: o, isMobile: s } = i;
1236
- return /* @__PURE__ */ G(v, {
1234
+ return /* @__PURE__ */ U(v, {
1237
1235
  "data-sidebar": "trigger",
1238
1236
  "data-slot": "sidebar-trigger",
1239
1237
  variant: "ghost",
@@ -1243,15 +1241,15 @@ function Qr({ className: e, onClick: t, ...n }) {
1243
1241
  t?.(e), o();
1244
1242
  },
1245
1243
  ...n,
1246
- children: [W(s ? Kt : Qt, {}), /* @__PURE__ */ W("span", {
1244
+ children: [H(s ? Jt : en, {}), /* @__PURE__ */ H("span", {
1247
1245
  className: "sr-only",
1248
1246
  children: a("sidebar.toggle", { defaultValue: "Toggle Sidebar" })
1249
1247
  })]
1250
1248
  });
1251
1249
  }
1252
- function $r({ className: e, ...t }) {
1253
- let { toggleSidebar: n } = Jr(), { t: i } = K(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1254
- return /* @__PURE__ */ W("button", {
1250
+ function ti({ className: e, ...t }) {
1251
+ let { toggleSidebar: n } = Xr(), { t: i } = W(), a = i("sidebar.toggle", { defaultValue: "Toggle Sidebar" });
1252
+ return /* @__PURE__ */ H("button", {
1255
1253
  "data-sidebar": "rail",
1256
1254
  "data-slot": "sidebar-rail",
1257
1255
  "aria-label": a,
@@ -1262,102 +1260,102 @@ function $r({ className: e, ...t }) {
1262
1260
  ...t
1263
1261
  });
1264
1262
  }
1265
- function ei({ className: e, ...t }) {
1266
- return /* @__PURE__ */ W("main", {
1263
+ function ni({ className: e, ...t }) {
1264
+ return /* @__PURE__ */ H("main", {
1267
1265
  "data-slot": "sidebar-inset",
1268
1266
  className: r("bg-background relative flex w-full flex-1 flex-col", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", e),
1269
1267
  ...t
1270
1268
  });
1271
1269
  }
1272
- function ti({ className: e, ...t }) {
1273
- return /* @__PURE__ */ W(s, {
1270
+ function ri({ className: e, ...t }) {
1271
+ return /* @__PURE__ */ H(s, {
1274
1272
  "data-slot": "sidebar-input",
1275
1273
  "data-sidebar": "input",
1276
1274
  className: r("bg-background h-(--vg-control-dense) w-full shadow-none", e),
1277
1275
  ...t
1278
1276
  });
1279
1277
  }
1280
- function ni({ className: e, ...t }) {
1281
- return /* @__PURE__ */ W("div", {
1278
+ function ii({ className: e, ...t }) {
1279
+ return /* @__PURE__ */ H("div", {
1282
1280
  "data-slot": "sidebar-header",
1283
1281
  "data-sidebar": "header",
1284
1282
  className: r("flex flex-col gap-2 p-2", e),
1285
1283
  ...t
1286
1284
  });
1287
1285
  }
1288
- function ri({ className: e, ...t }) {
1289
- return /* @__PURE__ */ W("div", {
1286
+ function ai({ className: e, ...t }) {
1287
+ return /* @__PURE__ */ H("div", {
1290
1288
  "data-slot": "sidebar-footer",
1291
1289
  "data-sidebar": "footer",
1292
1290
  className: r("flex flex-col gap-2 p-2", e),
1293
1291
  ...t
1294
1292
  });
1295
1293
  }
1296
- function ii({ className: e, ...t }) {
1297
- return /* @__PURE__ */ W(Ar, {
1294
+ function oi({ className: e, ...t }) {
1295
+ return /* @__PURE__ */ H(Mr, {
1298
1296
  "data-slot": "sidebar-separator",
1299
1297
  "data-sidebar": "separator",
1300
1298
  className: r("bg-sidebar-border mx-2 w-auto", e),
1301
1299
  ...t
1302
1300
  });
1303
1301
  }
1304
- function ai({ className: e, ...t }) {
1305
- return /* @__PURE__ */ W("div", {
1302
+ function si({ className: e, ...t }) {
1303
+ return /* @__PURE__ */ H("div", {
1306
1304
  "data-slot": "sidebar-content",
1307
1305
  "data-sidebar": "content",
1308
1306
  className: r("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
1309
1307
  ...t
1310
1308
  });
1311
1309
  }
1312
- function oi({ className: e, ...t }) {
1313
- return /* @__PURE__ */ W("div", {
1310
+ function ci({ className: e, ...t }) {
1311
+ return /* @__PURE__ */ H("div", {
1314
1312
  "data-slot": "sidebar-group",
1315
1313
  "data-sidebar": "group",
1316
1314
  className: r("relative flex w-full min-w-0 flex-col p-2", e),
1317
1315
  ...t
1318
1316
  });
1319
1317
  }
1320
- function si({ className: e, asChild: t = !1, ...n }) {
1321
- return /* @__PURE__ */ W(t ? qe : "div", {
1318
+ function li({ className: e, asChild: t = !1, ...n }) {
1319
+ return /* @__PURE__ */ H(t ? $e : "div", {
1322
1320
  "data-slot": "sidebar-group-label",
1323
1321
  "data-sidebar": "group-label",
1324
1322
  className: r("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", e),
1325
1323
  ...n
1326
1324
  });
1327
1325
  }
1328
- function ci({ className: e, asChild: t = !1, ...n }) {
1329
- return /* @__PURE__ */ W(t ? qe : "button", {
1326
+ function ui({ className: e, asChild: t = !1, ...n }) {
1327
+ return /* @__PURE__ */ H(t ? $e : "button", {
1330
1328
  "data-slot": "sidebar-group-action",
1331
1329
  "data-sidebar": "group-action",
1332
1330
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "group-data-[collapsible=icon]:hidden", e),
1333
1331
  ...n
1334
1332
  });
1335
1333
  }
1336
- function li({ className: e, ...t }) {
1337
- return /* @__PURE__ */ W("div", {
1334
+ function di({ className: e, ...t }) {
1335
+ return /* @__PURE__ */ H("div", {
1338
1336
  "data-slot": "sidebar-group-content",
1339
1337
  "data-sidebar": "group-content",
1340
1338
  className: r("w-full text-sm", e),
1341
1339
  ...t
1342
1340
  });
1343
1341
  }
1344
- function ui({ className: e, ...t }) {
1345
- return /* @__PURE__ */ W("ul", {
1342
+ function fi({ className: e, ...t }) {
1343
+ return /* @__PURE__ */ H("ul", {
1346
1344
  "data-slot": "sidebar-menu",
1347
1345
  "data-sidebar": "menu",
1348
1346
  className: r("flex w-full min-w-0 flex-col gap-1", e),
1349
1347
  ...t
1350
1348
  });
1351
1349
  }
1352
- function di({ className: e, ...t }) {
1353
- return /* @__PURE__ */ W("li", {
1350
+ function pi({ className: e, ...t }) {
1351
+ return /* @__PURE__ */ H("li", {
1354
1352
  "data-slot": "sidebar-menu-item",
1355
1353
  "data-sidebar": "menu-item",
1356
1354
  className: r("group/menu-item relative", e),
1357
1355
  ...t
1358
1356
  });
1359
1357
  }
1360
- var fi = Je("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1358
+ var mi = et("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
1361
1359
  variants: {
1362
1360
  variant: {
1363
1361
  default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
@@ -1374,84 +1372,84 @@ var fi = Je("peer/menu-button flex w-full items-center gap-2 overflow-hidden rou
1374
1372
  size: "default"
1375
1373
  }
1376
1374
  });
1377
- function pi({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1378
- let c = e ? qe : "button", { isMobile: l, state: u } = Jr(), d = /* @__PURE__ */ W(c, {
1375
+ function hi({ asChild: e = !1, isActive: t = !1, variant: n = "default", size: i = "default", tooltip: a, className: o, ...s }) {
1376
+ let c = e ? $e : "button", { isMobile: l, state: u } = Xr(), d = /* @__PURE__ */ H(c, {
1379
1377
  "data-slot": "sidebar-menu-button",
1380
1378
  "data-sidebar": "menu-button",
1381
1379
  "data-size": i,
1382
1380
  "data-active": t,
1383
- className: r(fi({
1381
+ className: r(mi({
1384
1382
  variant: n,
1385
1383
  size: i
1386
1384
  }), o),
1387
1385
  ...s
1388
1386
  });
1389
- return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ G(ge, { children: [/* @__PURE__ */ W(Me, {
1387
+ return a ? (typeof a == "string" && (a = { children: a }), /* @__PURE__ */ U(he, { children: [/* @__PURE__ */ H(ne, {
1390
1388
  asChild: !0,
1391
1389
  children: d
1392
- }), /* @__PURE__ */ W(de, {
1390
+ }), /* @__PURE__ */ H(Le, {
1393
1391
  side: "right",
1394
1392
  align: "center",
1395
1393
  hidden: u !== "collapsed" || l,
1396
1394
  ...a
1397
1395
  })] })) : d;
1398
1396
  }
1399
- function mi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1400
- return /* @__PURE__ */ W(t ? qe : "button", {
1397
+ function gi({ className: e, asChild: t = !1, showOnHover: n = !1, ...i }) {
1398
+ return /* @__PURE__ */ H(t ? $e : "button", {
1401
1399
  "data-slot": "sidebar-menu-action",
1402
1400
  "data-sidebar": "menu-action",
1403
1401
  className: r("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 md:after:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", n && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", e),
1404
1402
  ...i
1405
1403
  });
1406
1404
  }
1407
- function hi({ className: e, ...t }) {
1408
- return /* @__PURE__ */ W("div", {
1405
+ function _i({ className: e, ...t }) {
1406
+ return /* @__PURE__ */ H("div", {
1409
1407
  "data-slot": "sidebar-menu-badge",
1410
1408
  "data-sidebar": "menu-badge",
1411
1409
  className: r("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
1412
1410
  ...t
1413
1411
  });
1414
1412
  }
1415
- function gi(e) {
1413
+ function vi(e) {
1416
1414
  let t = 0;
1417
1415
  for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) | 0;
1418
1416
  return Math.abs(t);
1419
1417
  }
1420
- function _i({ className: e, showIcon: t = !1, ...n }) {
1421
- let i = `${50 + gi(V.useId()) % 40}%`;
1422
- return /* @__PURE__ */ G("div", {
1418
+ function yi({ className: e, showIcon: t = !1, ...n }) {
1419
+ let i = `${50 + vi(z.useId()) % 40}%`;
1420
+ return /* @__PURE__ */ U("div", {
1423
1421
  "data-slot": "sidebar-menu-skeleton",
1424
1422
  "data-sidebar": "menu-skeleton",
1425
1423
  className: r("flex h-8 items-center gap-2 rounded-md px-2", e),
1426
1424
  ...n,
1427
- children: [t && /* @__PURE__ */ W(m, {
1425
+ children: [t && /* @__PURE__ */ H(m, {
1428
1426
  className: "size-4 rounded-md",
1429
1427
  "data-sidebar": "menu-skeleton-icon"
1430
- }), /* @__PURE__ */ W(m, {
1428
+ }), /* @__PURE__ */ H(m, {
1431
1429
  className: "h-4 max-w-(--skeleton-width) flex-1",
1432
1430
  "data-sidebar": "menu-skeleton-text",
1433
1431
  style: { "--skeleton-width": i }
1434
1432
  })]
1435
1433
  });
1436
1434
  }
1437
- function vi({ className: e, ...t }) {
1438
- return /* @__PURE__ */ W("ul", {
1435
+ function bi({ className: e, ...t }) {
1436
+ return /* @__PURE__ */ H("ul", {
1439
1437
  "data-slot": "sidebar-menu-sub",
1440
1438
  "data-sidebar": "menu-sub",
1441
1439
  className: r("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
1442
1440
  ...t
1443
1441
  });
1444
1442
  }
1445
- function yi({ className: e, ...t }) {
1446
- return /* @__PURE__ */ W("li", {
1443
+ function xi({ className: e, ...t }) {
1444
+ return /* @__PURE__ */ H("li", {
1447
1445
  "data-slot": "sidebar-menu-sub-item",
1448
1446
  "data-sidebar": "menu-sub-item",
1449
1447
  className: r("group/menu-sub-item relative", e),
1450
1448
  ...t
1451
1449
  });
1452
1450
  }
1453
- function bi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1454
- return /* @__PURE__ */ W(e ? qe : "a", {
1451
+ function Si({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, ...a }) {
1452
+ return /* @__PURE__ */ H(e ? $e : "a", {
1455
1453
  "data-slot": "sidebar-menu-sub-button",
1456
1454
  "data-sidebar": "menu-sub-button",
1457
1455
  "data-size": t,
@@ -1462,61 +1460,61 @@ function bi({ asChild: e = !1, size: t = "md", isActive: n = !1, className: i, .
1462
1460
  }
1463
1461
  //#endregion
1464
1462
  //#region src/components/ui/sticky-save-bar.tsx
1465
- var xi = {
1463
+ var Ci = {
1466
1464
  gray: "bg-gray-50 dark:bg-gray-950/30",
1467
1465
  blue: "bg-blue-50 dark:bg-blue-950/30",
1468
1466
  orange: "bg-orange-50 dark:bg-orange-950/30",
1469
1467
  green: "bg-green-50 dark:bg-green-950/30"
1470
1468
  };
1471
- function Si({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1472
- let { t: s } = K();
1473
- return /* @__PURE__ */ G("div", {
1474
- className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${xi[o]}`,
1475
- children: [/* @__PURE__ */ G("div", {
1469
+ function wi({ title: e, badges: t, actions: n, onCancel: r, loading: i, disabled: a, variant: o = "gray" }) {
1470
+ let { t: s } = W();
1471
+ return /* @__PURE__ */ U("div", {
1472
+ className: `sticky top-0 z-10 border rounded-lg px-4 py-3 flex items-center justify-between gap-4 ${Ci[o]}`,
1473
+ children: [/* @__PURE__ */ U("div", {
1476
1474
  className: "flex items-center gap-3 min-w-0",
1477
- children: [/* @__PURE__ */ W("h3", {
1475
+ children: [/* @__PURE__ */ H("h3", {
1478
1476
  className: "text-lg font-semibold text-foreground truncate",
1479
1477
  children: e
1480
- }), t && /* @__PURE__ */ W("div", {
1478
+ }), t && /* @__PURE__ */ H("div", {
1481
1479
  className: "flex items-center gap-1.5 shrink-0",
1482
1480
  children: t
1483
1481
  })]
1484
- }), /* @__PURE__ */ W("div", {
1482
+ }), /* @__PURE__ */ H("div", {
1485
1483
  className: "flex gap-2 shrink-0",
1486
- children: n ?? /* @__PURE__ */ G(Ge, { children: [/* @__PURE__ */ G(v, {
1484
+ children: n ?? /* @__PURE__ */ U(Ze, { children: [/* @__PURE__ */ U(v, {
1487
1485
  type: "submit",
1488
1486
  size: "sm",
1489
1487
  loading: i,
1490
1488
  disabled: a,
1491
- children: [/* @__PURE__ */ W(at, { className: "size-4" }), s("forms.formActions.saveChanges")]
1492
- }), r && /* @__PURE__ */ G(v, {
1489
+ children: [/* @__PURE__ */ H(ut, { className: "size-4" }), s("forms.formActions.saveChanges")]
1490
+ }), r && /* @__PURE__ */ U(v, {
1493
1491
  type: "button",
1494
1492
  variant: "outline",
1495
1493
  size: "sm",
1496
1494
  onClick: r,
1497
- children: [/* @__PURE__ */ W(ft, { className: "size-4" }), s("forms.formActions.cancel")]
1495
+ children: [/* @__PURE__ */ H(_t, { className: "size-4" }), s("forms.formActions.cancel")]
1498
1496
  })] })
1499
1497
  })]
1500
1498
  });
1501
1499
  }
1502
- function Ci({ children: e }) {
1503
- return /* @__PURE__ */ W(c, {
1500
+ function Ti({ children: e }) {
1501
+ return /* @__PURE__ */ H(c, {
1504
1502
  variant: "outline",
1505
1503
  className: "text-xs",
1506
1504
  children: e
1507
1505
  });
1508
1506
  }
1509
- Si.Badge = Ci;
1507
+ wi.Badge = Ti;
1510
1508
  //#endregion
1511
1509
  //#region src/components/ui/slider.tsx
1512
- function wi({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1513
- let l = V.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1510
+ function Ei({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100, "aria-label": o, "aria-labelledby": s, ...c }) {
1511
+ let l = z.useMemo(() => Array.isArray(n) ? n : Array.isArray(t) ? t : [i, a], [
1514
1512
  n,
1515
1513
  t,
1516
1514
  i,
1517
1515
  a
1518
1516
  ]);
1519
- return /* @__PURE__ */ G(vt.Root, {
1517
+ return /* @__PURE__ */ U(St.Root, {
1520
1518
  "data-slot": "slider",
1521
1519
  defaultValue: t,
1522
1520
  value: n,
@@ -1524,14 +1522,14 @@ function wi({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1524
1522
  max: a,
1525
1523
  className: r("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", e),
1526
1524
  ...c,
1527
- children: [/* @__PURE__ */ W(vt.Track, {
1525
+ children: [/* @__PURE__ */ H(St.Track, {
1528
1526
  "data-slot": "slider-track",
1529
1527
  className: r("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
1530
- children: /* @__PURE__ */ W(vt.Range, {
1528
+ children: /* @__PURE__ */ H(St.Range, {
1531
1529
  "data-slot": "slider-range",
1532
1530
  className: r("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
1533
1531
  })
1534
- }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ W(vt.Thumb, {
1532
+ }), Array.from({ length: l.length }, (e, t) => /* @__PURE__ */ H(St.Thumb, {
1535
1533
  "data-slot": "slider-thumb",
1536
1534
  "aria-label": o && l.length > 1 ? `${o} ${t + 1}` : o,
1537
1535
  "aria-labelledby": s,
@@ -1541,54 +1539,54 @@ function wi({ className: e, defaultValue: t, value: n, min: i = 0, max: a = 100,
1541
1539
  }
1542
1540
  //#endregion
1543
1541
  //#region src/components/ui/tree.tsx
1544
- var Ti = "/";
1545
- function Ei(e, t) {
1546
- return e === "" ? t : `${e}${Ti}${t}`;
1542
+ var Di = "/";
1543
+ function Oi(e, t) {
1544
+ return e === "" ? t : `${e}${Di}${t}`;
1547
1545
  }
1548
- function Di(e) {
1546
+ function ki(e) {
1549
1547
  return e.children !== void 0 && e.children.length > 0;
1550
1548
  }
1551
- function Oi(e, t, n) {
1552
- if (!n || !Di(e)) return {
1549
+ function Ai(e, t, n) {
1550
+ if (!n || !ki(e)) return {
1553
1551
  node: e,
1554
1552
  ids: t
1555
1553
  };
1556
1554
  let r = e.children?.length === 1 ? e.children[0] : void 0;
1557
- return r === void 0 || !Di(r) ? {
1555
+ return r === void 0 || !ki(r) ? {
1558
1556
  node: e,
1559
1557
  ids: t
1560
- } : Oi(r, [...t, r.id], n);
1558
+ } : Ai(r, [...t, r.id], n);
1561
1559
  }
1562
- function ki(e, t, n, r = "", i = 1) {
1560
+ function ji(e, t, n, r = "", i = 1) {
1563
1561
  let a = [];
1564
1562
  for (let o of e) {
1565
- let e = Oi(o, [o.id], n), s = e.ids.reduce((e, t) => Ei(e, t), r), c = Di(e.node);
1563
+ let e = Ai(o, [o.id], n), s = e.ids.reduce((e, t) => Oi(e, t), r), c = ki(e.node);
1566
1564
  a.push({
1567
1565
  key: s,
1568
1566
  node: e.node,
1569
1567
  ids: e.ids,
1570
1568
  level: i,
1571
1569
  hasChildren: c
1572
- }), c && t.has(s) && a.push(...ki(e.node.children ?? [], t, n, s, i + 1));
1570
+ }), c && t.has(s) && a.push(...ji(e.node.children ?? [], t, n, s, i + 1));
1573
1571
  }
1574
1572
  return a;
1575
1573
  }
1576
- function Ai(e) {
1577
- return e.ids.length > 1 ? e.ids.join(Ti) : e.node.label;
1574
+ function Mi(e) {
1575
+ return e.ids.length > 1 ? e.ids.join(Di) : e.node.label;
1578
1576
  }
1579
- function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1580
- let [f, p] = V.useState(i ?? []), m = V.useMemo(() => new Set(n ?? f), [n, f]), h = V.useMemo(() => ki(e, m, l), [
1577
+ function Ni({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedChange: a, selected: o, onSelect: s, renderAfter: c, compact: l = !0, className: u, ...d }) {
1578
+ let [f, p] = z.useState(i ?? []), m = z.useMemo(() => new Set(n ?? f), [n, f]), h = z.useMemo(() => ji(e, m, l), [
1581
1579
  e,
1582
1580
  m,
1583
1581
  l
1584
- ]), [g, _] = V.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = V.useRef(null), b = V.useCallback((e) => {
1582
+ ]), [g, _] = z.useState(null), v = h.some((e) => e.key === g) ? g : h[0]?.key ?? null, y = z.useRef(null), b = z.useCallback((e) => {
1585
1583
  n === void 0 && p(e), a?.(e);
1586
- }, [n, a]), x = V.useCallback((e, t) => {
1584
+ }, [n, a]), x = z.useCallback((e, t) => {
1587
1585
  let n = [...m];
1588
1586
  t !== m.has(e) && b(t ? [...n, e] : n.filter((t) => t !== e));
1589
- }, [m, b]), S = V.useCallback((e) => {
1587
+ }, [m, b]), S = z.useCallback((e) => {
1590
1588
  _(e), (y.current?.querySelector(`[data-tree-key="${CSS.escape(e)}"]`))?.focus();
1591
- }, []), C = V.useCallback((e) => {
1589
+ }, []), C = z.useCallback((e) => {
1592
1590
  let t = h.findIndex((e) => e.key === v), n = h[t];
1593
1591
  if (n === void 0) return;
1594
1592
  let r = (e) => {
@@ -1638,7 +1636,7 @@ function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1638
1636
  S,
1639
1637
  s
1640
1638
  ]);
1641
- return /* @__PURE__ */ W("div", {
1639
+ return /* @__PURE__ */ H("div", {
1642
1640
  ref: y,
1643
1641
  role: "tree",
1644
1642
  "aria-label": t,
@@ -1647,7 +1645,7 @@ function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1647
1645
  ...d,
1648
1646
  children: h.map((e) => {
1649
1647
  let t = e.hasChildren && m.has(e.key);
1650
- return /* @__PURE__ */ G("div", {
1648
+ return /* @__PURE__ */ U("div", {
1651
1649
  role: "treeitem",
1652
1650
  "data-tree-key": e.key,
1653
1651
  "aria-level": e.level,
@@ -1663,13 +1661,13 @@ function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1663
1661
  e.hasChildren && x(e.key, !t), s?.(e.key, e.node);
1664
1662
  },
1665
1663
  children: [
1666
- /* @__PURE__ */ W(ue, {
1664
+ /* @__PURE__ */ H(Ne, {
1667
1665
  "aria-hidden": "true",
1668
1666
  className: r("size-3.5 shrink-0 transition-transform", e.hasChildren ? "opacity-70" : "opacity-0", t && "rotate-90")
1669
1667
  }),
1670
- /* @__PURE__ */ W("span", {
1668
+ /* @__PURE__ */ H("span", {
1671
1669
  className: "min-w-0 truncate",
1672
- children: Ai(e)
1670
+ children: Mi(e)
1673
1671
  }),
1674
1672
  c?.(e.node, e.key)
1675
1673
  ]
@@ -1677,8 +1675,8 @@ function ji({ nodes: e, label: t, expanded: n, defaultExpanded: i, onExpandedCha
1677
1675
  })
1678
1676
  });
1679
1677
  }
1680
- function Mi(e, t = {}) {
1681
- let n = t.separator ?? Ti, r = [], i = /* @__PURE__ */ new Map();
1678
+ function Pi(e, t = {}) {
1679
+ let n = t.separator ?? Di, r = [], i = /* @__PURE__ */ new Map();
1682
1680
  for (let t of e) {
1683
1681
  let e = t.split(n).filter((e) => e !== ""), a = r, o = "";
1684
1682
  for (let t of e) {
@@ -1695,64 +1693,64 @@ function Mi(e, t = {}) {
1695
1693
  }
1696
1694
  //#endregion
1697
1695
  //#region src/components/ui/stepper.tsx
1698
- var Ni = Be({
1696
+ var Fi = Ke({
1699
1697
  completedSteps: [],
1700
1698
  allDone: !1
1701
1699
  });
1702
- function Pi({ completedSteps: e, children: t, className: n }) {
1700
+ function Ii({ completedSteps: e, children: t, className: n }) {
1703
1701
  let i = e.length > 0 && e.every(Boolean);
1704
- return /* @__PURE__ */ W(Ni.Provider, {
1702
+ return /* @__PURE__ */ H(Fi.Provider, {
1705
1703
  value: {
1706
1704
  completedSteps: e,
1707
1705
  allDone: i
1708
1706
  },
1709
- children: /* @__PURE__ */ G("div", {
1707
+ children: /* @__PURE__ */ U("div", {
1710
1708
  className: r("relative", n),
1711
- children: [/* @__PURE__ */ W("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1709
+ children: [/* @__PURE__ */ H("div", { className: "stepper-line absolute left-3.75 top-4 bottom-4 w-0.5 rounded-full" }), t]
1712
1710
  })
1713
1711
  });
1714
1712
  }
1715
- function Fi({ index: e, children: t, className: n }) {
1716
- let { completedSteps: i } = He(Ni), a = i[e] ?? !1, o = e + 1;
1717
- return /* @__PURE__ */ G("div", {
1713
+ function Li({ index: e, children: t, className: n }) {
1714
+ let { completedSteps: i } = Je(Fi), a = i[e] ?? !1, o = e + 1;
1715
+ return /* @__PURE__ */ U("div", {
1718
1716
  className: r("relative flex items-start gap-4 pb-8", n),
1719
- children: [/* @__PURE__ */ W("div", {
1717
+ children: [/* @__PURE__ */ H("div", {
1720
1718
  className: "flex flex-col items-center",
1721
- children: /* @__PURE__ */ W("div", {
1719
+ children: /* @__PURE__ */ H("div", {
1722
1720
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold transition-all duration-500", a ? "bg-emerald-500 text-white shadow-md shadow-emerald-500/30 scale-105" : "bg-primary text-primary-foreground"),
1723
- children: a ? /* @__PURE__ */ W(rt, { className: "h-4 w-4" }) : o
1721
+ children: a ? /* @__PURE__ */ H(ct, { className: "h-4 w-4" }) : o
1724
1722
  })
1725
- }), /* @__PURE__ */ W("div", {
1723
+ }), /* @__PURE__ */ H("div", {
1726
1724
  className: "flex-1 pt-0.5",
1727
1725
  children: t
1728
1726
  })]
1729
1727
  });
1730
1728
  }
1731
- function Ii({ readyLabel: e, pendingLabel: t, className: n }) {
1732
- let { allDone: i } = He(Ni), { t: a } = K(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1733
- return /* @__PURE__ */ G("div", {
1729
+ function Ri({ readyLabel: e, pendingLabel: t, className: n }) {
1730
+ let { allDone: i } = Je(Fi), { t: a } = W(), o = e ?? a("common.readyToSubmit"), s = t ?? a("common.completeAllSteps");
1731
+ return /* @__PURE__ */ U("div", {
1734
1732
  className: r("relative flex items-center gap-4", n),
1735
- children: [/* @__PURE__ */ W("div", {
1733
+ children: [/* @__PURE__ */ H("div", {
1736
1734
  className: "flex flex-col items-center",
1737
- children: /* @__PURE__ */ W("div", {
1735
+ children: /* @__PURE__ */ H("div", {
1738
1736
  className: r("relative z-10 flex h-8 w-8 items-center justify-center rounded-full transition-all duration-700", i ? "stepper-ready bg-emerald-500 text-white shadow-lg shadow-emerald-500/40 scale-110" : "bg-muted text-muted-foreground/40"),
1739
- children: /* @__PURE__ */ W(it, { className: "h-5 w-5" })
1737
+ children: /* @__PURE__ */ H(lt, { className: "h-5 w-5" })
1740
1738
  })
1741
- }), /* @__PURE__ */ W("span", {
1739
+ }), /* @__PURE__ */ H("span", {
1742
1740
  className: r("text-sm font-medium transition-all duration-500", i ? "text-emerald-700 dark:text-emerald-400" : "text-muted-foreground"),
1743
1741
  children: i ? o : s
1744
1742
  })]
1745
1743
  });
1746
1744
  }
1747
- Pi.Step = Fi, Pi.Completion = Ii;
1745
+ Ii.Step = Li, Ii.Completion = Ri;
1748
1746
  //#endregion
1749
1747
  //#region src/components/ui/switch.tsx
1750
- function Li({ className: e, ...t }) {
1751
- return /* @__PURE__ */ W(pt.Root, {
1748
+ function zi({ className: e, ...t }) {
1749
+ return /* @__PURE__ */ H(vt.Root, {
1752
1750
  "data-slot": "switch",
1753
1751
  className: r("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", e),
1754
1752
  ...t,
1755
- children: /* @__PURE__ */ W(pt.Thumb, {
1753
+ children: /* @__PURE__ */ H(vt.Thumb, {
1756
1754
  "data-slot": "switch-thumb",
1757
1755
  className: r("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")
1758
1756
  })
@@ -1760,61 +1758,61 @@ function Li({ className: e, ...t }) {
1760
1758
  }
1761
1759
  //#endregion
1762
1760
  //#region src/components/ui/table.tsx
1763
- function Ri({ className: e, ...t }) {
1764
- return /* @__PURE__ */ W("div", {
1761
+ function Bi({ className: e, ...t }) {
1762
+ return /* @__PURE__ */ H("div", {
1765
1763
  "data-slot": "table-container",
1766
1764
  className: "relative w-full overflow-x-auto",
1767
- children: /* @__PURE__ */ W("table", {
1765
+ children: /* @__PURE__ */ H("table", {
1768
1766
  "data-slot": "table",
1769
1767
  className: r("w-full caption-bottom text-sm", e),
1770
1768
  ...t
1771
1769
  })
1772
1770
  });
1773
1771
  }
1774
- function zi({ className: e, ...t }) {
1775
- return /* @__PURE__ */ W("thead", {
1772
+ function Vi({ className: e, ...t }) {
1773
+ return /* @__PURE__ */ H("thead", {
1776
1774
  "data-slot": "table-header",
1777
1775
  className: r("[&_tr]:border-b", e),
1778
1776
  ...t
1779
1777
  });
1780
1778
  }
1781
- function Bi({ className: e, ...t }) {
1782
- return /* @__PURE__ */ W("tbody", {
1779
+ function Hi({ className: e, ...t }) {
1780
+ return /* @__PURE__ */ H("tbody", {
1783
1781
  "data-slot": "table-body",
1784
1782
  className: r("[&_tr:last-child]:border-0", e),
1785
1783
  ...t
1786
1784
  });
1787
1785
  }
1788
- function Vi({ className: e, ...t }) {
1789
- return /* @__PURE__ */ W("tfoot", {
1786
+ function Ui({ className: e, ...t }) {
1787
+ return /* @__PURE__ */ H("tfoot", {
1790
1788
  "data-slot": "table-footer",
1791
1789
  className: r("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", e),
1792
1790
  ...t
1793
1791
  });
1794
1792
  }
1795
- function Hi({ className: e, ...t }) {
1796
- return /* @__PURE__ */ W("tr", {
1793
+ function Wi({ className: e, ...t }) {
1794
+ return /* @__PURE__ */ H("tr", {
1797
1795
  "data-slot": "table-row",
1798
1796
  className: r("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", e),
1799
1797
  ...t
1800
1798
  });
1801
1799
  }
1802
- function Ui({ className: e, ...t }) {
1803
- return /* @__PURE__ */ W("th", {
1800
+ function Gi({ className: e, ...t }) {
1801
+ return /* @__PURE__ */ H("th", {
1804
1802
  "data-slot": "table-head",
1805
1803
  className: r("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1806
1804
  ...t
1807
1805
  });
1808
1806
  }
1809
- function Wi({ className: e, ...t }) {
1810
- return /* @__PURE__ */ W("td", {
1807
+ function Ki({ className: e, ...t }) {
1808
+ return /* @__PURE__ */ H("td", {
1811
1809
  "data-slot": "table-cell",
1812
1810
  className: r("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", e),
1813
1811
  ...t
1814
1812
  });
1815
1813
  }
1816
- function Gi({ className: e, ...t }) {
1817
- return /* @__PURE__ */ W("caption", {
1814
+ function qi({ className: e, ...t }) {
1815
+ return /* @__PURE__ */ H("caption", {
1818
1816
  "data-slot": "table-caption",
1819
1817
  className: r("text-muted-foreground mt-4 text-sm", e),
1820
1818
  ...t
@@ -1822,91 +1820,20 @@ function Gi({ className: e, ...t }) {
1822
1820
  }
1823
1821
  //#endregion
1824
1822
  //#region src/components/ui/textarea.tsx
1825
- function Ki({ className: e, ...t }) {
1826
- return /* @__PURE__ */ W("textarea", {
1823
+ function Ji({ className: e, ...t }) {
1824
+ return /* @__PURE__ */ H("textarea", {
1827
1825
  "data-slot": "textarea",
1828
1826
  className: r("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", e),
1829
1827
  ...t
1830
1828
  });
1831
1829
  }
1832
1830
  //#endregion
1833
- //#region src/components/ui/toggle.tsx
1834
- var qi = Je("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
1835
- variants: {
1836
- variant: {
1837
- default: "bg-transparent",
1838
- outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
1839
- },
1840
- size: {
1841
- default: "h-(--vg-control-form) px-2 min-w-(--vg-control-form)",
1842
- sm: "h-(--vg-control-dense) px-1.5 min-w-(--vg-control-dense)",
1843
- lg: "h-(--vg-control-form) px-2.5 min-w-(--vg-control-form)"
1844
- }
1845
- },
1846
- defaultVariants: {
1847
- variant: "default",
1848
- size: "default"
1849
- }
1850
- });
1851
- function Ji({ className: e, variant: t, size: n, ...i }) {
1852
- return /* @__PURE__ */ W(St.Root, {
1853
- "data-slot": "toggle",
1854
- className: r(qi({
1855
- variant: t,
1856
- size: n,
1857
- className: e
1858
- })),
1859
- ...i
1860
- });
1861
- }
1862
- //#endregion
1863
- //#region src/components/ui/toggle-group.tsx
1864
- var Yi = V.createContext({
1865
- size: "default",
1866
- variant: "default",
1867
- spacing: 0
1868
- });
1869
- function Xi({ className: e, variant: t, size: n, spacing: i = 0, children: a, ...o }) {
1870
- return /* @__PURE__ */ W(Ct.Root, {
1871
- "data-slot": "toggle-group",
1872
- "data-variant": t,
1873
- "data-size": n,
1874
- "data-spacing": i,
1875
- style: { "--gap": i },
1876
- className: r("group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs", e),
1877
- ...o,
1878
- children: /* @__PURE__ */ W(Yi.Provider, {
1879
- value: {
1880
- variant: t,
1881
- size: n,
1882
- spacing: i
1883
- },
1884
- children: a
1885
- })
1886
- });
1887
- }
1888
- function Zi({ className: e, children: t, variant: n, size: i, ...a }) {
1889
- let o = V.useContext(Yi);
1890
- return /* @__PURE__ */ W(Ct.Item, {
1891
- "data-slot": "toggle-group-item",
1892
- "data-variant": o.variant || n,
1893
- "data-size": o.size || i,
1894
- "data-spacing": o.spacing,
1895
- className: r(qi({
1896
- variant: o.variant || n,
1897
- size: o.size || i
1898
- }), "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10", "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l", e),
1899
- ...a,
1900
- children: t
1901
- });
1902
- }
1903
- //#endregion
1904
1831
  //#region src/components/ui/viglet-avatar.tsx
1905
- var Qi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, $i = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1906
- Qi((e >> 16 & 255) / 255),
1907
- Qi((e >> 8 & 255) / 255),
1908
- Qi((e & 255) / 255)
1909
- ], ea = {
1832
+ var Yi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, Xi = (e) => e <= .0031308 ? 12.92 * e : 1.055 * e ** (1 / 2.4) - .055, X = (e) => [
1833
+ Yi((e >> 16 & 255) / 255),
1834
+ Yi((e >> 8 & 255) / 255),
1835
+ Yi((e & 255) / 255)
1836
+ ], Zi = {
1910
1837
  idle: {
1911
1838
  center: X(14916170),
1912
1839
  rim: X(11022874),
@@ -1932,8 +1859,8 @@ var Qi = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4, $i = (e)
1932
1859
  rim: X(11812382),
1933
1860
  glow: .42
1934
1861
  }
1935
- }, ta = 2;
1936
- function na(e) {
1862
+ }, Qi = 2;
1863
+ function $i(e) {
1937
1864
  let t = (1 + Math.sqrt(5)) / 2, n = [
1938
1865
  -1,
1939
1866
  t,
@@ -2069,12 +1996,12 @@ function na(e) {
2069
1996
  count: u
2070
1997
  };
2071
1998
  }
2072
- var ra = na(ta), ia = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2073
- function aa(e, t, n) {
2074
- let r = ia((n - e) / (t - e));
1999
+ var ea = $i(Qi), ta = (e) => e < 0 ? 0 : e > 1 ? 1 : e, Z = (e, t, n) => e + (t - e) * n;
2000
+ function na(e, t, n) {
2001
+ let r = ta((n - e) / (t - e));
2075
2002
  return r * r * (3 - 2 * r);
2076
2003
  }
2077
- var oa = .78, sa = [
2004
+ var ra = .78, ia = [
2078
2005
  [
2079
2006
  .59719,
2080
2007
  .35458,
@@ -2090,7 +2017,7 @@ var oa = .78, sa = [
2090
2017
  .13383,
2091
2018
  .83777
2092
2019
  ]
2093
- ], ca = [
2020
+ ], aa = [
2094
2021
  [
2095
2022
  1.60475,
2096
2023
  -.53108,
@@ -2106,182 +2033,182 @@ var oa = .78, sa = [
2106
2033
  -.07276,
2107
2034
  1.07602
2108
2035
  ]
2109
- ], la = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2110
- function ua(e, t, n, r) {
2111
- let i = t * oa, a = n * oa, o = r * oa;
2036
+ ], oa = (e) => (e * (e + .0245786) - 90537e-9) / (e * (.983729 * e + .432951) + .238081);
2037
+ function sa(e, t, n, r) {
2038
+ let i = t * ra, a = n * ra, o = r * ra;
2112
2039
  for (let t = 0; t < 3; t += 1) {
2113
- let [n, r, s] = sa[t];
2114
- e[t] = la(n * i + r * a + s * o);
2040
+ let [n, r, s] = ia[t];
2041
+ e[t] = oa(n * i + r * a + s * o);
2115
2042
  }
2116
2043
  let [s, c, l] = e;
2117
2044
  for (let t = 0; t < 3; t += 1) {
2118
- let [n, r, i] = ca[t];
2119
- e[t] = Math.round($i(ia(n * s + r * c + i * l)) * 255);
2045
+ let [n, r, i] = aa[t];
2046
+ e[t] = Math.round(Xi(ta(n * s + r * c + i * l)) * 255);
2120
2047
  }
2121
2048
  }
2122
2049
  function Q(e) {
2123
- let t = e * oa;
2124
- return Math.round($i(ia(la(t))) * 255);
2050
+ let t = e * ra;
2051
+ return Math.round(Xi(ta(oa(t))) * 255);
2125
2052
  }
2126
- var da = 60, fa = "rgba(255,214,150,0.34)";
2127
- function pa(e) {
2053
+ var ca = 60, la = "rgba(255,214,150,0.34)";
2054
+ function ua(e) {
2128
2055
  let t = Math.abs(Math.trunc(e)) % 2147483646 + 1;
2129
2056
  return () => (t = t * 16807 % 2147483647, (t - 1) / 2147483646);
2130
2057
  }
2131
- var ma = 1618033;
2132
- function ha({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = ma, className: s, style: c }) {
2133
- let l = U(null), u = U(e), d = U(0), f = U(n), p = U(i), m = U(a), h = U(-Infinity), g = U(null);
2134
- return H(() => {
2058
+ var da = 1618033;
2059
+ function fa({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0, unread: i = !1, paused: a = !1, seed: o = da, className: s, style: c }) {
2060
+ let l = V(null), u = V(e), d = V(0), f = V(n), p = V(i), m = V(a), h = V(-Infinity), g = V(null);
2061
+ return B(() => {
2135
2062
  u.current = e, d.current = typeof performance > "u" ? 0 : performance.now(), g.current?.();
2136
- }, [e]), H(() => {
2063
+ }, [e]), B(() => {
2137
2064
  f.current = n, g.current?.();
2138
- }, [n]), H(() => {
2065
+ }, [n]), B(() => {
2139
2066
  p.current = i, g.current?.();
2140
- }, [i]), H(() => {
2067
+ }, [i]), B(() => {
2141
2068
  m.current = a, g.current?.();
2142
- }, [a]), H(() => {
2069
+ }, [a]), B(() => {
2143
2070
  r && (h.current = performance.now(), g.current?.());
2144
- }, [r]), H(() => {
2071
+ }, [r]), B(() => {
2145
2072
  let r = l.current;
2146
2073
  if (!r) return;
2147
2074
  let i = r.getContext("2d");
2148
2075
  if (!i) return;
2149
2076
  let a = i, s = typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, c = Math.min(window.devicePixelRatio || 1, 2);
2150
2077
  r.width = Math.round(t * c), r.height = Math.round(t * c), a.scale(c, c);
2151
- let _ = t / 2, v = t / 2, y = pa(o), b = Array.from({ length: 34 }, () => ({
2078
+ let _ = t / 2, v = t / 2, y = ua(o), b = Array.from({ length: 34 }, () => ({
2152
2079
  x: (y() - .5) * 1.9,
2153
2080
  y: y() * 2.8 - .4,
2154
2081
  z: (y() - .5) * 1.9,
2155
2082
  speed: .05 + y() * .09
2156
2083
  })), x = {
2157
- center: [...ea[e].center],
2158
- rim: [...ea[e].rim],
2159
- glow: ea[e].glow
2160
- }, S = 0, C = da, w = 0, T = 0, ee = performance.now(), te = 0, E = .34, D = n ? 7.4 : 9, O = -Infinity, k = {
2084
+ center: [...Zi[e].center],
2085
+ rim: [...Zi[e].rim],
2086
+ glow: Zi[e].glow
2087
+ }, S = 0, C = ca, w = 0, T = 0, ee = performance.now(), te = 0, ne = .34, E = n ? 7.4 : 9, re = -Infinity, ie = {
2161
2088
  x: 0,
2162
2089
  y: 0
2163
- }, A = {
2090
+ }, D = {
2164
2091
  x: 0,
2165
2092
  y: 0
2166
- }, j = (e) => {
2167
- k.x = e.clientX / window.innerWidth * 2 - 1, k.y = -(e.clientY / window.innerHeight * 2 - 1), O = performance.now(), C = da, S ||= requestAnimationFrame(ne);
2168
- }, M = t * (n ? .27 : .24), N = (e, t, n, r) => {
2169
- let i = D / (D - n * r);
2170
- return [_ + e * r * i * M, v - t * r * i * M];
2093
+ }, O = (e) => {
2094
+ ie.x = e.clientX / window.innerWidth * 2 - 1, ie.y = -(e.clientY / window.innerHeight * 2 - 1), re = performance.now(), C = ca, S ||= requestAnimationFrame(F);
2095
+ }, k = t * (n ? .27 : .24), A = (e, t, n, r) => {
2096
+ let i = E / (E - n * r);
2097
+ return [_ + e * r * i * k, v - t * r * i * k];
2171
2098
  };
2172
- function P(e, t, n, r) {
2099
+ function j(e, t, n, r) {
2173
2100
  let i = a.createRadialGradient(e, t, 0, e, t, Math.max(n, .01));
2174
2101
  for (let [e, t] of r) i.addColorStop(e, t);
2175
2102
  return i;
2176
2103
  }
2177
- function F(e, t, n, r, i, o) {
2104
+ function M(e, t, n, r, i, o) {
2178
2105
  if (i <= .002) return;
2179
2106
  a.save(), a.globalCompositeOperation = "lighter", a.strokeStyle = r, a.lineWidth = n, a.lineCap = "round", a.beginPath();
2180
2107
  let s = !1;
2181
2108
  for (let n = 0; n <= 96; n += 1) {
2182
- let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(E), u = c * Math.sin(E), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2109
+ let r = n / 96 * Math.PI * 2, i = Math.cos(r) * t, c = Math.sin(r) * t, l = c * Math.cos(ne), u = c * Math.sin(ne), d = u >= 0 ? 1 : -1, f = !o || r >= o[0] && r <= o[1];
2183
2110
  if (d !== e || !f) {
2184
2111
  s = !1;
2185
2112
  continue;
2186
2113
  }
2187
- let [p, m] = N(i, l, u, 1);
2114
+ let [p, m] = A(i, l, u, 1);
2188
2115
  s ? a.lineTo(p, m) : (a.moveTo(p, m), s = !0);
2189
2116
  }
2190
2117
  a.globalAlpha = e === -1 ? i * .32 : i, a.stroke(), a.restore();
2191
2118
  }
2192
- let I = new Float64Array(ra.points.length), L = [
2119
+ let N = new Float64Array(ea.points.length), P = [
2193
2120
  0,
2194
2121
  0,
2195
2122
  0
2196
2123
  ];
2197
- function ne(e) {
2124
+ function F(e) {
2198
2125
  S = 0;
2199
2126
  let n = a, r = Math.min((e - ee) / 1e3, .05);
2200
2127
  ee = e;
2201
- let i = u.current, o = ea[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, j = l ? 0 : (e - d.current) / 1e3, re = l ? Infinity : (e - h.current) / 1e3, ie = !l && e - O < 1200;
2202
- T = l ? 0 : Z(T, +!!ie, ie ? .05 : .02), l || (w += r * (.25 + T * .75));
2203
- let ae = c ? 7.4 : 9, oe = !l && Math.abs(D - ae) > .01;
2204
- D = l ? ae : Z(D, ae, .12), (i !== "idle" || re < 2.2 || p.current || T > .004 || oe) && (C = da);
2205
- let se = l ? 1 : .06;
2206
- for (let e = 0; e < 3; e += 1) x.center[e] = Z(x.center[e], o.center[e], se), x.rim[e] = Z(x.rim[e], o.rim[e], se);
2207
- let R = o.glow, ce = 1;
2208
- R += Math.sin(w * .9) * .05 * T;
2209
- let le = re < 1.8 ? Math.sin(ia(re / 1.8) * Math.PI) * .14 : 0;
2210
- if (R += le, i === "working" && (R += Math.sin(g * 2.2) * .06), i === "success") {
2211
- let e = ia(j / 1.4);
2212
- ce = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, j > 1.4 && (R = Z(o.glow, ea.idle.glow + .25, ia((j - 1.4) / 2)));
2128
+ let i = u.current, o = Zi[i], c = f.current, l = m.current || s, g = l ? 0 : e / 1e3, O = l ? 0 : (e - d.current) / 1e3, ae = l ? Infinity : (e - h.current) / 1e3, oe = !l && e - re < 1200;
2129
+ T = l ? 0 : Z(T, +!!oe, oe ? .05 : .02), l || (w += r * (.25 + T * .75));
2130
+ let se = c ? 7.4 : 9, ce = !l && Math.abs(E - se) > .01;
2131
+ E = l ? se : Z(E, se, .12), (i !== "idle" || ae < 2.2 || p.current || T > .004 || ce) && (C = ca);
2132
+ let le = l ? 1 : .06;
2133
+ for (let e = 0; e < 3; e += 1) x.center[e] = Z(x.center[e], o.center[e], le), x.rim[e] = Z(x.rim[e], o.rim[e], le);
2134
+ let ue = o.glow, I = 1;
2135
+ ue += Math.sin(w * .9) * .05 * T;
2136
+ let de = ae < 1.8 ? Math.sin(ta(ae / 1.8) * Math.PI) * .14 : 0;
2137
+ if (ue += de, i === "working" && (ue += Math.sin(g * 2.2) * .06), i === "success") {
2138
+ let e = ta(O / 1.4);
2139
+ I = 1 + Math.sin((1 - (1 - e) ** 3) * Math.PI) * .06, O > 1.4 && (ue = Z(o.glow, Zi.idle.glow + .25, ta((O - 1.4) / 2)));
2213
2140
  }
2214
- i === "error" && (ce = .94), x.glow = Z(x.glow, R, l ? 1 : .08);
2215
- let z = x.glow;
2216
- l || (te += r * (.06 + T * .1), E = .34 + Math.sin(w * .6) * .12, A.x = Z(A.x, k.x, .02), A.y = Z(A.y, k.y, .02));
2217
- let ue = l ? 0 : Math.sin(w * .35) * .05 + A.x * .12, de = l ? 0 : -A.y * .08, B = ce * (1 + le * .08);
2218
- n.clearRect(0, 0, t, t), n.fillStyle = P(_, v, M * 1.95, [
2141
+ i === "error" && (I = .94), x.glow = Z(x.glow, ue, l ? 1 : .08);
2142
+ let L = x.glow;
2143
+ l || (te += r * (.06 + T * .1), ne = .34 + Math.sin(w * .6) * .12, D.x = Z(D.x, ie.x, .02), D.y = Z(D.y, ie.y, .02));
2144
+ let fe = l ? 0 : Math.sin(w * .35) * .05 + D.x * .12, pe = l ? 0 : -D.y * .08, R = I * (1 + de * .08);
2145
+ n.clearRect(0, 0, t, t), n.fillStyle = j(_, v, k * 1.95, [
2219
2146
  [0, "rgba(9,11,15,0.5)"],
2220
2147
  [.52, "rgba(9,11,15,0.3)"],
2221
2148
  [.8, "rgba(9,11,15,0.08)"],
2222
2149
  [1, "rgba(9,11,15,0)"]
2223
2150
  ]), n.fillRect(0, 0, t, t), n.save(), n.globalCompositeOperation = "lighter";
2224
- let fe = M * (1.5 + z * .5) * B, pe = .06 + z * .24;
2225
- n.fillStyle = P(_, v, fe, [
2226
- [0, `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${pe * .5})`],
2227
- [.34, `rgba(${Q(x.rim[0] * 1.4)},${Q(x.rim[1] * 1.4)},${Q(x.rim[2] * 1.4)},${pe * .2})`],
2151
+ let me = k * (1.5 + L * .5) * R, he = .06 + L * .24;
2152
+ n.fillStyle = j(_, v, me, [
2153
+ [0, `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${he * .5})`],
2154
+ [.34, `rgba(${Q(x.rim[0] * 1.4)},${Q(x.rim[1] * 1.4)},${Q(x.rim[2] * 1.4)},${he * .2})`],
2228
2155
  [1, "rgba(160,50,10,0)"]
2229
2156
  ]), n.fillRect(0, 0, t, t), n.restore();
2230
- let me = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, he = g * 1.6 % (Math.PI * 2), ge = 1.5 * B, _e = Math.max(1, t * .007), ve = Math.max(1, t * .011), ye = (e) => {
2231
- F(e, ge, _e, "rgba(255,224,160,1)", me * .45), i === "working" && F(e, ge, ve, "rgba(255,236,190,1)", .75, [he, he + 1.1]);
2157
+ let ge = i === "working" ? .55 : p.current ? .26 + Math.sin(g * .8) * .07 : 0, _e = g * 1.6 % (Math.PI * 2), ve = 1.5 * R, ye = Math.max(1, t * .007), be = Math.max(1, t * .011), xe = (e) => {
2158
+ M(e, ve, ye, "rgba(255,224,160,1)", ge * .45), i === "working" && M(e, ve, be, "rgba(255,236,190,1)", .75, [_e, _e + 1.1]);
2232
2159
  };
2233
- ye(-1), n.save(), n.globalCompositeOperation = "lighter";
2234
- let be = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), xe = .08 + z * .4;
2235
- n.fillStyle = `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${xe})`;
2160
+ xe(-1), n.save(), n.globalCompositeOperation = "lighter";
2161
+ let Se = l ? 0 : i === "success" || i === "attention" ? 1 : Math.max(T, .12), Ce = .08 + L * .4;
2162
+ n.fillStyle = `rgba(${Q(x.center[0])},${Q(x.center[1])},${Q(x.center[2])},${Ce})`;
2236
2163
  for (let e of b) {
2237
- e.y += e.speed * r * (.4 + z) * be, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2238
- let [i, a] = N(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2164
+ e.y += e.speed * r * (.4 + L) * Se, e.y > 2.4 && (e.y = -.4, e.x = (y() - .5) * 1.9, e.z = (y() - .5) * 1.9);
2165
+ let [i, a] = A(e.x, e.y, e.z, 1), o = Math.max(t * .005, 1) * (e.z > 0 ? 1 : .7);
2239
2166
  n.beginPath(), n.arc(i, a, o, 0, Math.PI * 2), n.fill();
2240
2167
  }
2241
2168
  n.restore();
2242
- let Se = Math.cos(te + ue), Ce = Math.sin(te + ue), we = Math.cos(.32 + de), Te = Math.sin(.32 + de), { points: Ee, grain: De, count: Oe } = ra;
2243
- for (let e = 0; e < Ee.length; e += 3) {
2244
- let t = Ee[e], n = Ee[e + 1], r = Ee[e + 2], i = t * Se + r * Ce, a = -t * Ce + r * Se, o = n * we - a * Te, s = n * Te + a * we;
2245
- I[e] = i, I[e + 1] = o, I[e + 2] = s;
2169
+ let we = Math.cos(te + fe), Te = Math.sin(te + fe), Ee = Math.cos(.32 + pe), De = Math.sin(.32 + pe), { points: Oe, grain: ke, count: Ae } = ea;
2170
+ for (let e = 0; e < Oe.length; e += 3) {
2171
+ let t = Oe[e], n = Oe[e + 1], r = Oe[e + 2], i = t * we + r * Te, a = -t * Te + r * we, o = n * Ee - a * De, s = n * De + a * Ee;
2172
+ N[e] = i, N[e + 1] = o, N[e + 2] = s;
2246
2173
  }
2247
- for (let e = 0; e < Oe; e += 1) {
2248
- let t = e * 9, r = t + 3, i = t + 6, a = I[r] - I[t], o = I[r + 1] - I[t + 1], s = I[r + 2] - I[t + 2], c = I[i] - I[t], l = I[i + 1] - I[t + 1], u = I[i + 2] - I[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2174
+ for (let e = 0; e < Ae; e += 1) {
2175
+ let t = e * 9, r = t + 3, i = t + 6, a = N[r] - N[t], o = N[r + 1] - N[t + 1], s = N[r + 2] - N[t + 2], c = N[i] - N[t], l = N[i + 1] - N[t + 1], u = N[i + 2] - N[t + 2], d = o * u - s * l, f = s * c - a * u, p = a * l - o * c;
2249
2176
  if (p <= 0) continue;
2250
- let m = 1 - p / Math.hypot(d, f, p), h = De[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = aa(.08, .82, m), v = aa(.66, 0, m) * z * .62, y = 1 - .18 * aa(.82, 1, m);
2251
- ua(L, (Z(x.center[0], x.rim[0], _) * g + v) * y, (Z(x.center[1], x.rim[1], _) * g + v * .72) * y, (Z(x.center[2], x.rim[2], _) * g + v * .3) * y);
2252
- let b = `rgb(${L[0]},${L[1]},${L[2]})`, [S, C] = N(I[t], I[t + 1], I[t + 2], B), [T, ee] = N(I[r], I[r + 1], I[r + 2], B), [te, E] = N(I[i], I[i + 1], I[i + 2], B);
2253
- n.beginPath(), n.moveTo(S, C), n.lineTo(T, ee), n.lineTo(te, E), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = fa, n.lineWidth = 1, n.stroke();
2177
+ let m = 1 - p / Math.hypot(d, f, p), h = ke[e], g = .9 + .14 * h + .06 * Math.sin(w * .8 + h * 6.28), _ = na(.08, .82, m), v = na(.66, 0, m) * L * .62, y = 1 - .18 * na(.82, 1, m);
2178
+ sa(P, (Z(x.center[0], x.rim[0], _) * g + v) * y, (Z(x.center[1], x.rim[1], _) * g + v * .72) * y, (Z(x.center[2], x.rim[2], _) * g + v * .3) * y);
2179
+ let b = `rgb(${P[0]},${P[1]},${P[2]})`, [S, C] = A(N[t], N[t + 1], N[t + 2], R), [T, ee] = A(N[r], N[r + 1], N[r + 2], R), [te, ne] = A(N[i], N[i + 1], N[i + 2], R);
2180
+ n.beginPath(), n.moveTo(S, C), n.lineTo(T, ee), n.lineTo(te, ne), n.closePath(), n.fillStyle = b, n.fill(), n.strokeStyle = la, n.lineWidth = 1, n.stroke();
2254
2181
  }
2255
- ye(1), n.save(), n.globalCompositeOperation = "lighter";
2256
- let ke = M * .34 * B;
2257
- if (n.fillStyle = P(_ - M * .38 * B, v - M * .44 * B, ke, [
2258
- [0, `rgba(255,246,228,${.05 + z * .09})`],
2259
- [.5, `rgba(255,240,214,${.015 + z * .03})`],
2182
+ xe(1), n.save(), n.globalCompositeOperation = "lighter";
2183
+ let je = k * .34 * R;
2184
+ if (n.fillStyle = j(_ - k * .38 * R, v - k * .44 * R, je, [
2185
+ [0, `rgba(255,246,228,${.05 + L * .09})`],
2186
+ [.5, `rgba(255,240,214,${.015 + L * .03})`],
2260
2187
  [1, "rgba(255,240,214,0)"]
2261
- ]), n.fillRect(0, 0, t, t), i === "success" && j < 2.6) {
2262
- let e = j / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2263
- F(-1, n, r, "rgba(255,241,192,1)", i), F(1, n, r, "rgba(255,241,192,1)", i);
2188
+ ]), n.fillRect(0, 0, t, t), i === "success" && O < 2.6) {
2189
+ let e = O / 2.6, n = 1.05 + e * 1.5, r = Math.max(1, t * .009), i = .65 * (1 - e);
2190
+ M(-1, n, r, "rgba(255,241,192,1)", i), M(1, n, r, "rgba(255,241,192,1)", i);
2264
2191
  }
2265
2192
  if (n.restore(), i === "attention") {
2266
- let e = ia(j / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (j - 2.4) / 2.5);
2193
+ let e = ta(O / 2.4), r = Z(-1.9, .25, 1 - (1 - e) ** 2), i = e < 1 ? .7 : .7 * Math.max(0, 1 - (O - 2.4) / 2.5);
2267
2194
  if (i > .002) {
2268
2195
  n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = i, n.strokeStyle = "rgba(255,230,160,1)", n.lineWidth = Math.max(1, t * .009);
2269
- let [, e] = N(0, r, 0, 1);
2270
- n.beginPath(), n.ellipse(_, e, M * 1.6, M * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2196
+ let [, e] = A(0, r, 0, 1);
2197
+ n.beginPath(), n.ellipse(_, e, k * 1.6, k * .42, 0, 0, Math.PI * 2), n.stroke(), n.restore();
2271
2198
  }
2272
2199
  }
2273
2200
  if (!c) {
2274
- let e = v + M * 1.5;
2275
- n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = P(_, e, M * 1.5, [[0, `rgba(220,140,60,${.1 + z * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2201
+ let e = v + k * 1.5;
2202
+ n.save(), n.globalCompositeOperation = "lighter", n.fillStyle = j(_, e, k * 1.5, [[0, `rgba(220,140,60,${.1 + L * .2})`], [1, "rgba(220,140,60,0)"]]), n.fillRect(0, 0, t, t), n.restore();
2276
2203
  }
2277
- l || (--C, C > 0 && (S = requestAnimationFrame(ne)));
2204
+ l || (--C, C > 0 && (S = requestAnimationFrame(F)));
2278
2205
  }
2279
2206
  return g.current = () => {
2280
- C = da, ee = performance.now(), S ||= requestAnimationFrame(ne);
2281
- }, s || window.addEventListener("mousemove", j, { passive: !0 }), ne(performance.now()), () => {
2282
- g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", j);
2207
+ C = ca, ee = performance.now(), S ||= requestAnimationFrame(F);
2208
+ }, s || window.addEventListener("mousemove", O, { passive: !0 }), F(performance.now()), () => {
2209
+ g.current = null, S && cancelAnimationFrame(S), window.removeEventListener("mousemove", O);
2283
2210
  };
2284
- }, [t, o]), /* @__PURE__ */ W("canvas", {
2211
+ }, [t, o]), /* @__PURE__ */ H("canvas", {
2285
2212
  ref: l,
2286
2213
  "aria-hidden": "true",
2287
2214
  "data-state": e,
@@ -2296,15 +2223,15 @@ function ha({ state: e = "idle", size: t = 128, compact: n = !1, activity: r = 0
2296
2223
  }
2297
2224
  //#endregion
2298
2225
  //#region src/components/ui/viglet-assistant.tsx
2299
- var ga = {
2226
+ var pa = {
2300
2227
  sm: 44,
2301
2228
  md: 88,
2302
2229
  lg: 132
2303
- }, _a = 76;
2304
- function va(e) {
2305
- return typeof e == "number" ? Math.max(24, Math.round(e)) : ga[e];
2230
+ }, ma = 76;
2231
+ function ha(e) {
2232
+ return typeof e == "number" ? Math.max(24, Math.round(e)) : pa[e];
2306
2233
  }
2307
- function ya(e) {
2234
+ function ga(e) {
2308
2235
  let t = Math.round(e * .88 + 8);
2309
2236
  return {
2310
2237
  captionRight: t,
@@ -2313,31 +2240,31 @@ function ya(e) {
2313
2240
  badgeInset: Math.round(e * .2) - 8
2314
2241
  };
2315
2242
  }
2316
- var ba = {
2243
+ var _a = {
2317
2244
  idle: "assistant.idle",
2318
2245
  working: "assistant.working",
2319
2246
  success: "assistant.success",
2320
2247
  error: "assistant.error",
2321
2248
  attention: "assistant.attention"
2322
- }, xa = {
2249
+ }, va = {
2323
2250
  idle: "text-muted-foreground",
2324
2251
  working: "text-amber-700 dark:text-amber-400",
2325
2252
  success: "text-emerald-700 dark:text-emerald-400",
2326
2253
  error: "text-destructive",
2327
2254
  attention: "text-amber-800 dark:text-amber-300"
2328
- }, Sa = 3;
2329
- function Ca(e) {
2255
+ }, ya = 3;
2256
+ function ba(e) {
2330
2257
  return e.role === "report";
2331
2258
  }
2332
- function wa() {
2259
+ function xa() {
2333
2260
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
2334
2261
  }
2335
- function Ta({ text: e, still: t = !1, className: n, style: r }) {
2336
- let [i, a] = We(0);
2337
- return H(() => {
2262
+ function Sa({ text: e, still: t = !1, className: n, style: r }) {
2263
+ let [i, a] = Xe(0);
2264
+ return B(() => {
2338
2265
  let n = e.length;
2339
2266
  if (n === 0) return;
2340
- if (t || wa()) {
2267
+ if (t || xa()) {
2341
2268
  let e = setTimeout(() => a(n), 0);
2342
2269
  return () => clearTimeout(e);
2343
2270
  }
@@ -2345,49 +2272,49 @@ function Ta({ text: e, still: t = !1, className: n, style: r }) {
2345
2272
  a((e) => e >= n ? (clearInterval(i), e) : e + 1);
2346
2273
  }, r);
2347
2274
  return () => clearInterval(i);
2348
- }, [e, t]), /* @__PURE__ */ W("span", {
2275
+ }, [e, t]), /* @__PURE__ */ H("span", {
2349
2276
  className: n,
2350
2277
  style: r,
2351
- children: /* @__PURE__ */ G("span", {
2278
+ children: /* @__PURE__ */ U("span", {
2352
2279
  "aria-hidden": "true",
2353
- children: [e.slice(0, i), i < e.length && /* @__PURE__ */ W("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2280
+ children: [e.slice(0, i), i < e.length && /* @__PURE__ */ H("span", { className: "ml-px inline-block h-[0.95em] w-px translate-y-[0.15em] bg-current align-baseline motion-safe:animate-pulse" })]
2354
2281
  })
2355
2282
  });
2356
2283
  }
2357
- function Ea({ at: e, locale: t }) {
2284
+ function Ca({ at: e, locale: t }) {
2358
2285
  let n = new Date(e);
2359
2286
  if (Number.isNaN(n.getTime())) return null;
2360
2287
  let r = n.toDateString() === (/* @__PURE__ */ new Date()).toDateString(), i = new Intl.DateTimeFormat(t, r ? { timeStyle: "short" } : {
2361
2288
  dateStyle: "short",
2362
2289
  timeStyle: "short"
2363
2290
  }).format(n);
2364
- return /* @__PURE__ */ W("time", {
2291
+ return /* @__PURE__ */ H("time", {
2365
2292
  dateTime: n.toISOString(),
2366
2293
  className: "text-muted-foreground",
2367
2294
  children: i
2368
2295
  });
2369
2296
  }
2370
- function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, onOpenSettings: f, activity: p = 0, inline: m = !1, paused: h = !1, size: g = "sm", className: _ }) {
2371
- let v = Ce(), y = B(), b = v ? y : "corner", x = va(g), S = b === "corner" ? x : Math.min(x, ga.sm), C = ya(S), { t: w, i18n: T } = K(), [ee, te] = We(o), [E, D] = We(""), O = U(null), k = n ?? [], A = k.filter(Ca), j = A.filter((e) => !e.read), M = j[j.length - 1], N = a ?? ee, P = typeof i == "function", F = e ?? M?.tone ?? "idle", I = t === void 0 ? M?.text ?? null : t, L = typeof l == "number" ? l : j.length, ne = l === !0 || L > 0, [re, ie] = We({
2372
- source: I,
2373
- text: N ? "" : I ?? ""
2297
+ function wa({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open: a, defaultOpen: o = !1, onOpenChange: c, unread: l, onRead: u, onDismiss: d, onOpenSettings: f, activity: p = 0, inline: m = !1, paused: h = !1, size: g = "sm", className: _ }) {
2298
+ let v = Oe(), y = me(), b = v ? y : "corner", x = ha(g), S = b === "corner" ? x : Math.min(x, pa.sm), C = ga(S), { t: w, i18n: ee } = W(), [te, ne] = Xe(o), [E, re] = Xe(""), ie = V(null), D = n ?? [], O = D.filter(ba), k = O.filter((e) => !e.read), A = k[k.length - 1], j = a ?? te, M = typeof i == "function", N = e ?? A?.tone ?? "idle", P = t === void 0 ? A?.text ?? null : t, F = typeof l == "number" ? l : k.length, ae = l === !0 || F > 0, [oe, se] = Xe({
2299
+ source: P,
2300
+ text: j ? "" : P ?? ""
2374
2301
  });
2375
- re.source !== I && ie({
2376
- source: I,
2377
- text: N ? "" : I ?? ""
2302
+ oe.source !== P && se({
2303
+ source: P,
2304
+ text: j ? "" : P ?? ""
2378
2305
  });
2379
- let ae = (e) => {
2380
- if (e !== N) for (let e of j) u?.(e.id);
2381
- a === void 0 && te(e), c?.(e);
2306
+ let ce = (e) => {
2307
+ if (e !== j) for (let e of k) u?.(e.id);
2308
+ a === void 0 && ne(e), c?.(e);
2382
2309
  };
2383
- H(() => {
2384
- let e = O.current;
2310
+ B(() => {
2311
+ let e = ie.current;
2385
2312
  e && (e.scrollTop = e.scrollHeight);
2386
2313
  }, [n, r]);
2387
- let oe = () => {
2314
+ let le = () => {
2388
2315
  let e = E.trim();
2389
- e && !r && i && (i(e), D(""));
2390
- }, se = N ? w("assistant.collapse") : [w("assistant.open"), L > 0 ? w("assistant.unreadCount", { count: L }) : null].filter(Boolean).join(", "), R = b === "header" && N, ce = b === "rail" ? {
2316
+ e && !r && i && (i(e), re(""));
2317
+ }, ue = j ? w("assistant.collapse") : [w("assistant.open"), F > 0 ? w("assistant.unreadCount", { count: F }) : null].filter(Boolean).join(", "), I = b === "header" && j, de = b === "rail" ? {
2391
2318
  left: C.captionRight,
2392
2319
  bottom: C.captionBottom,
2393
2320
  maxWidth: C.captionMaxWidth
@@ -2400,157 +2327,157 @@ function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2400
2327
  bottom: C.captionBottom,
2401
2328
  maxWidth: C.captionMaxWidth
2402
2329
  };
2403
- return /* @__PURE__ */ G(Ge, { children: [R && /* @__PURE__ */ W("span", {
2330
+ return /* @__PURE__ */ U(Ze, { children: [I && /* @__PURE__ */ H("span", {
2404
2331
  "aria-hidden": "true",
2405
2332
  className: "block flex-none",
2406
2333
  style: {
2407
2334
  width: S,
2408
2335
  height: S
2409
2336
  }
2410
- }), /* @__PURE__ */ G("div", {
2337
+ }), /* @__PURE__ */ U("div", {
2411
2338
  "data-dock-edge": v ? b : void 0,
2412
2339
  className: [
2413
- R ? "absolute right-0 top-0 z-50" : m || v ? "relative" : "fixed bottom-5 right-5 z-50",
2340
+ I ? "absolute right-0 top-0 z-50" : m || v ? "relative" : "fixed bottom-5 right-5 z-50",
2414
2341
  v ? "pointer-events-auto" : "",
2415
2342
  "flex flex-col",
2416
- N ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : `w-[var(--vg-assistant-orb)] ${b === "rail" ? "items-start" : "items-end"}`,
2343
+ j ? "w-[min(22.5rem,calc(100vw-2.5rem))] rounded-2xl border border-border bg-popover p-4 text-popover-foreground shadow-2xl" : `w-[var(--vg-assistant-orb)] ${b === "rail" ? "items-start" : "items-end"}`,
2417
2344
  _ ?? ""
2418
2345
  ].join(" "),
2419
2346
  style: { "--vg-assistant-orb": `${S}px` },
2420
2347
  onKeyDown: (e) => {
2421
- e.key === "Escape" && N && ae(!1);
2348
+ e.key === "Escape" && j && ce(!1);
2422
2349
  },
2423
2350
  children: [
2424
- /* @__PURE__ */ W("span", {
2351
+ /* @__PURE__ */ H("span", {
2425
2352
  role: "status",
2426
2353
  "aria-live": "polite",
2427
2354
  className: "sr-only",
2428
- children: re.text
2355
+ children: oe.text
2429
2356
  }),
2430
- !N && I && /* @__PURE__ */ W(Ta, {
2431
- text: I,
2357
+ !j && P && /* @__PURE__ */ H(Sa, {
2358
+ text: P,
2432
2359
  still: h,
2433
- style: ce,
2360
+ style: de,
2434
2361
  className: `pointer-events-none absolute w-max ${b === "rail" ? "text-left" : "text-right"} text-sm font-semibold leading-snug text-foreground drop-shadow-sm`
2435
- }, I),
2436
- /* @__PURE__ */ G("div", {
2362
+ }, P),
2363
+ /* @__PURE__ */ U("div", {
2437
2364
  className: "flex flex-none items-center gap-3",
2438
2365
  children: [
2439
- /* @__PURE__ */ G("button", {
2366
+ /* @__PURE__ */ U("button", {
2440
2367
  type: "button",
2441
- "aria-label": se,
2442
- "aria-expanded": N,
2443
- onClick: () => ae(!N),
2368
+ "aria-label": ue,
2369
+ "aria-expanded": j,
2370
+ onClick: () => ce(!j),
2444
2371
  className: "relative flex-none rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
2445
- children: [/* @__PURE__ */ W(ha, {
2446
- state: F,
2447
- compact: !N,
2448
- unread: ne,
2372
+ children: [/* @__PURE__ */ H(fa, {
2373
+ state: N,
2374
+ compact: !j,
2375
+ unread: ae,
2449
2376
  activity: p,
2450
2377
  paused: h,
2451
- size: N ? _a : S
2452
- }), !N && L > 0 && /* @__PURE__ */ W("span", {
2378
+ size: j ? ma : S
2379
+ }), !j && F > 0 && /* @__PURE__ */ H("span", {
2453
2380
  "aria-hidden": "true",
2454
2381
  style: {
2455
2382
  right: C.badgeInset,
2456
2383
  top: C.badgeInset
2457
2384
  },
2458
2385
  className: "absolute grid h-5 min-w-5 place-items-center rounded-full bg-primary px-1 text-[0.6875rem] font-semibold leading-none text-primary-foreground",
2459
- children: L
2386
+ children: F
2460
2387
  })]
2461
2388
  }),
2462
- N && /* @__PURE__ */ G("div", {
2389
+ j && /* @__PURE__ */ U("div", {
2463
2390
  className: "flex min-w-0 flex-1 flex-col gap-0.5",
2464
2391
  children: [
2465
- /* @__PURE__ */ W("span", {
2392
+ /* @__PURE__ */ H("span", {
2466
2393
  className: "text-xs text-muted-foreground",
2467
2394
  children: w("assistant.state")
2468
2395
  }),
2469
- /* @__PURE__ */ W("span", {
2470
- className: `text-sm font-semibold ${xa[F]}`,
2471
- children: w(ba[F])
2396
+ /* @__PURE__ */ H("span", {
2397
+ className: `text-sm font-semibold ${va[N]}`,
2398
+ children: w(_a[N])
2472
2399
  }),
2473
- I && /* @__PURE__ */ W(Ta, {
2474
- text: I,
2400
+ P && /* @__PURE__ */ H(Sa, {
2401
+ text: P,
2475
2402
  still: h,
2476
2403
  className: "text-xs leading-snug text-muted-foreground"
2477
- }, I)
2404
+ }, P)
2478
2405
  ]
2479
2406
  }),
2480
- N && f && /* @__PURE__ */ W(z, {
2407
+ j && f && /* @__PURE__ */ H(T, {
2481
2408
  variant: "ghost",
2482
2409
  size: "icon",
2483
2410
  className: "size-8 flex-none self-start",
2484
2411
  "aria-label": w("assistant.settings"),
2485
2412
  onClick: f,
2486
- children: /* @__PURE__ */ W(lt, {
2413
+ children: /* @__PURE__ */ H(mt, {
2487
2414
  "aria-hidden": "true",
2488
2415
  size: 16
2489
2416
  })
2490
2417
  }),
2491
- N && /* @__PURE__ */ W(z, {
2418
+ j && /* @__PURE__ */ H(T, {
2492
2419
  variant: "ghost",
2493
2420
  size: "sm",
2494
2421
  className: "flex-none self-start",
2495
- onClick: () => ae(!1),
2422
+ onClick: () => ce(!1),
2496
2423
  children: w("assistant.collapseAction")
2497
2424
  })
2498
2425
  ]
2499
2426
  }),
2500
- N && (P || A.length > 0) && /* @__PURE__ */ G("div", {
2501
- ref: O,
2427
+ j && (M || O.length > 0) && /* @__PURE__ */ U("div", {
2428
+ ref: ie,
2502
2429
  role: "log",
2503
2430
  "aria-label": w("assistant.transcript"),
2504
2431
  "aria-busy": r,
2505
2432
  className: "mt-3 flex max-h-96 min-h-32 flex-1 flex-col gap-2.5 overflow-y-auto pr-1",
2506
2433
  children: [
2507
- k.length === 0 && !r && /* @__PURE__ */ W("p", {
2434
+ D.length === 0 && !r && /* @__PURE__ */ H("p", {
2508
2435
  className: "m-auto max-w-52 text-center text-xs leading-relaxed text-muted-foreground",
2509
2436
  children: w("assistant.empty")
2510
2437
  }),
2511
- k.map((e, t) => Ca(e) ? /* @__PURE__ */ G("div", {
2438
+ D.map((e, t) => ba(e) ? /* @__PURE__ */ U("div", {
2512
2439
  "data-kind": "report",
2513
2440
  className: `w-full rounded-lg border px-3 py-2 text-sm ${e.read ? "border-border/60" : "border-border bg-muted/50"}`,
2514
2441
  children: [
2515
- /* @__PURE__ */ G("div", {
2442
+ /* @__PURE__ */ U("div", {
2516
2443
  className: "flex items-center gap-2 text-xs",
2517
2444
  children: [
2518
- /* @__PURE__ */ W("span", {
2445
+ /* @__PURE__ */ H("span", {
2519
2446
  "aria-hidden": "true",
2520
- className: `size-2 flex-none rounded-full bg-current ${xa[e.tone]}`
2447
+ className: `size-2 flex-none rounded-full bg-current ${va[e.tone]}`
2521
2448
  }),
2522
- /* @__PURE__ */ W("span", {
2449
+ /* @__PURE__ */ H("span", {
2523
2450
  className: "font-semibold",
2524
- children: w(ba[e.tone])
2451
+ children: w(_a[e.tone])
2525
2452
  }),
2526
- /* @__PURE__ */ W(Ea, {
2453
+ /* @__PURE__ */ H(Ca, {
2527
2454
  at: e.at,
2528
- locale: T?.resolvedLanguage
2455
+ locale: ee?.resolvedLanguage
2529
2456
  }),
2530
- !e.read && /* @__PURE__ */ W("span", {
2457
+ !e.read && /* @__PURE__ */ H("span", {
2531
2458
  className: "rounded-full border border-border px-1.5 leading-4",
2532
2459
  children: w("assistant.new")
2533
2460
  }),
2534
- d && /* @__PURE__ */ W(z, {
2461
+ d && /* @__PURE__ */ H(T, {
2535
2462
  variant: "ghost",
2536
2463
  size: "icon",
2537
2464
  className: "ml-auto size-6",
2538
2465
  "aria-label": w("assistant.dismiss"),
2539
2466
  onClick: () => d(e.id),
2540
- children: /* @__PURE__ */ W(ft, {
2467
+ children: /* @__PURE__ */ H(_t, {
2541
2468
  "aria-hidden": "true",
2542
2469
  size: 14
2543
2470
  })
2544
2471
  })
2545
2472
  ]
2546
2473
  }),
2547
- /* @__PURE__ */ W("p", {
2474
+ /* @__PURE__ */ H("p", {
2548
2475
  className: "m-0 mt-1 whitespace-pre-wrap leading-snug",
2549
2476
  children: e.text
2550
2477
  }),
2551
- e.actions && e.actions.length > 0 && /* @__PURE__ */ W("div", {
2478
+ e.actions && e.actions.length > 0 && /* @__PURE__ */ H("div", {
2552
2479
  className: "mt-2 flex flex-wrap gap-2",
2553
- children: e.actions.slice(0, Sa).map((e) => /* @__PURE__ */ W(z, {
2480
+ children: e.actions.slice(0, ya).map((e) => /* @__PURE__ */ H(T, {
2554
2481
  variant: "outline",
2555
2482
  size: "sm",
2556
2483
  onClick: e.onSelect,
@@ -2558,13 +2485,13 @@ function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2558
2485
  }, e.label))
2559
2486
  })
2560
2487
  ]
2561
- }, e.id) : /* @__PURE__ */ G("div", {
2488
+ }, e.id) : /* @__PURE__ */ U("div", {
2562
2489
  "data-kind": e.role,
2563
2490
  className: e.role === "user" ? "max-w-[92%] self-end rounded-xl rounded-br-sm bg-accent px-3 py-2 text-sm text-accent-foreground" : "max-w-[92%] self-start rounded-xl rounded-bl-sm border border-border px-3 py-2 text-sm",
2564
- children: [/* @__PURE__ */ W("p", {
2491
+ children: [/* @__PURE__ */ H("p", {
2565
2492
  className: "m-0 whitespace-pre-wrap leading-snug",
2566
2493
  children: e.text
2567
- }), e.action && /* @__PURE__ */ W(z, {
2494
+ }), e.action && /* @__PURE__ */ H(T, {
2568
2495
  variant: "link",
2569
2496
  size: "sm",
2570
2497
  className: "mt-1 h-auto whitespace-normal p-0 text-left",
@@ -2572,27 +2499,27 @@ function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2572
2499
  children: e.action.label
2573
2500
  })]
2574
2501
  }, e.id ?? t)),
2575
- r && /* @__PURE__ */ W("p", {
2502
+ r && /* @__PURE__ */ H("p", {
2576
2503
  className: "m-0 self-start px-3 py-2 text-sm text-muted-foreground",
2577
2504
  children: w("assistant.thinking")
2578
2505
  })
2579
2506
  ]
2580
2507
  }),
2581
- N && P && /* @__PURE__ */ G("div", {
2508
+ j && M && /* @__PURE__ */ U("div", {
2582
2509
  className: "mt-3 flex flex-none gap-2",
2583
- children: [/* @__PURE__ */ W(s, {
2510
+ children: [/* @__PURE__ */ H(s, {
2584
2511
  value: E,
2585
2512
  disabled: r,
2586
2513
  placeholder: w("assistant.placeholder"),
2587
2514
  "aria-label": w("assistant.placeholder"),
2588
- onChange: (e) => D(e.target.value),
2515
+ onChange: (e) => re(e.target.value),
2589
2516
  onKeyDown: (e) => {
2590
- e.key === "Enter" && (e.preventDefault(), oe());
2517
+ e.key === "Enter" && (e.preventDefault(), le());
2591
2518
  }
2592
- }), /* @__PURE__ */ W(z, {
2519
+ }), /* @__PURE__ */ H(T, {
2593
2520
  variant: "outline",
2594
2521
  disabled: r || E.trim().length === 0,
2595
- onClick: oe,
2522
+ onClick: le,
2596
2523
  children: w("assistant.send")
2597
2524
  })]
2598
2525
  })
@@ -2601,15 +2528,15 @@ function Da({ state: e, caption: t, messages: n, busy: r = !1, onSend: i, open:
2601
2528
  }
2602
2529
  //#endregion
2603
2530
  //#region src/components/ui/user-menu.tsx
2604
- function Oa({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2605
- let { t: s } = K(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2606
- return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
2531
+ function Ta({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a, align: o = "end" }) {
2532
+ let { t: s } = W(), c = `${e.firstName ?? ""} ${e.lastName ?? ""}`.trim() || e.username || "";
2533
+ return /* @__PURE__ */ U(M, { children: [/* @__PURE__ */ H(pe, {
2607
2534
  asChild: !0,
2608
- children: /* @__PURE__ */ W("button", {
2535
+ children: /* @__PURE__ */ H("button", {
2609
2536
  type: "button",
2610
2537
  title: c || e.username,
2611
2538
  className: r("cursor-pointer rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring", a),
2612
- children: /* @__PURE__ */ W(Ee, {
2539
+ children: /* @__PURE__ */ H(je, {
2613
2540
  givenName: e.firstName,
2614
2541
  familyName: e.lastName,
2615
2542
  name: c || e.username,
@@ -2618,52 +2545,52 @@ function Oa({ user: e, onAccount: t, onSignOut: n, extraItems: i, className: a,
2618
2545
  className: "hover:ring-2 hover:ring-border transition-all"
2619
2546
  })
2620
2547
  })
2621
- }), /* @__PURE__ */ G(O, {
2548
+ }), /* @__PURE__ */ U(ze, {
2622
2549
  className: "min-w-56 rounded-lg",
2623
2550
  align: o,
2624
2551
  sideOffset: 8,
2625
2552
  children: [
2626
- /* @__PURE__ */ W(ie, {
2553
+ /* @__PURE__ */ H(O, {
2627
2554
  className: "p-0 font-normal",
2628
- children: /* @__PURE__ */ G("div", {
2555
+ children: /* @__PURE__ */ U("div", {
2629
2556
  className: "flex items-center gap-2 px-1 py-1.5 text-left text-sm",
2630
- children: [/* @__PURE__ */ W(Ee, {
2557
+ children: [/* @__PURE__ */ H(je, {
2631
2558
  givenName: e.firstName,
2632
2559
  familyName: e.lastName,
2633
2560
  name: c || e.username,
2634
2561
  src: e.avatarUrl || void 0,
2635
2562
  alt: e.username
2636
- }), /* @__PURE__ */ G("div", {
2563
+ }), /* @__PURE__ */ U("div", {
2637
2564
  className: "grid flex-1 text-left text-sm leading-tight",
2638
- children: [c && /* @__PURE__ */ W("span", {
2565
+ children: [c && /* @__PURE__ */ H("span", {
2639
2566
  className: "truncate font-medium",
2640
2567
  children: c
2641
- }), e.email && /* @__PURE__ */ W("span", {
2568
+ }), e.email && /* @__PURE__ */ H("span", {
2642
2569
  className: "text-muted-foreground truncate text-xs",
2643
2570
  children: e.email
2644
2571
  })]
2645
2572
  })]
2646
2573
  })
2647
2574
  }),
2648
- /* @__PURE__ */ W(A, {}),
2649
- /* @__PURE__ */ G(j, { children: [t && /* @__PURE__ */ G(P, {
2575
+ /* @__PURE__ */ H(j, {}),
2576
+ /* @__PURE__ */ U(te, { children: [t && /* @__PURE__ */ U(I, {
2650
2577
  onSelect: t,
2651
2578
  className: "cursor-pointer",
2652
- children: [/* @__PURE__ */ W(dt, {}), s("nav.account")]
2579
+ children: [/* @__PURE__ */ H(gt, {}), s("nav.account")]
2653
2580
  }), i] }),
2654
- (t || i) && /* @__PURE__ */ W(A, {}),
2655
- n && /* @__PURE__ */ G(P, {
2581
+ (t || i) && /* @__PURE__ */ H(j, {}),
2582
+ n && /* @__PURE__ */ U(I, {
2656
2583
  onSelect: n,
2657
2584
  className: "cursor-pointer text-red-500 focus:text-red-500 focus:bg-red-50 dark:focus:bg-red-950",
2658
- children: [/* @__PURE__ */ W(st, {}), s("nav.logOut")]
2585
+ children: [/* @__PURE__ */ H(ft, {}), s("nav.logOut")]
2659
2586
  })
2660
2587
  ]
2661
2588
  })] });
2662
2589
  }
2663
2590
  //#endregion
2664
2591
  //#region src/components/login/login.tsx
2665
- var ka = Be({});
2666
- function Aa(e) {
2592
+ var Ea = Ke({});
2593
+ function Da(e) {
2667
2594
  if (!e) return null;
2668
2595
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2669
2596
  if (t) {
@@ -2677,18 +2604,18 @@ function Aa(e) {
2677
2604
  }
2678
2605
  return null;
2679
2606
  }
2680
- function ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2607
+ function Oa({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2681
2608
  let s = {};
2682
2609
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2683
- let c = Aa(e);
2610
+ let c = Da(e);
2684
2611
  c && (s["--ff-color-rgb"] = c);
2685
- let l = Aa(t) ?? c;
2686
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ W(ka.Provider, {
2612
+ let l = Da(t) ?? c;
2613
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Ea.Provider, {
2687
2614
  value: {
2688
2615
  color: e,
2689
2616
  colorDark: t
2690
2617
  },
2691
- children: /* @__PURE__ */ W("div", {
2618
+ children: /* @__PURE__ */ H("div", {
2692
2619
  className: r("vig-login relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-900", i),
2693
2620
  style: {
2694
2621
  ...a ?? {},
@@ -2699,108 +2626,108 @@ function ja({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2699
2626
  })
2700
2627
  });
2701
2628
  }
2702
- function Ma(e) {
2703
- let { color: t, colorDark: n } = He(ka);
2704
- return /* @__PURE__ */ W(Pe, {
2629
+ function ka(e) {
2630
+ let { color: t, colorDark: n } = Je(Ea);
2631
+ return /* @__PURE__ */ H(Be, {
2705
2632
  color: t,
2706
2633
  colorDark: n,
2707
2634
  ...e
2708
2635
  });
2709
2636
  }
2710
- function Na({ children: e, className: t, ...n }) {
2711
- return /* @__PURE__ */ W("div", {
2637
+ function Aa({ children: e, className: t, ...n }) {
2638
+ return /* @__PURE__ */ H("div", {
2712
2639
  className: r("absolute top-4 right-4 z-30 flex items-center gap-2", t),
2713
2640
  ...n,
2714
2641
  children: e
2715
2642
  });
2716
2643
  }
2717
- function Pa({ children: e, className: t, ...n }) {
2718
- return /* @__PURE__ */ W("div", {
2644
+ function ja({ children: e, className: t, ...n }) {
2645
+ return /* @__PURE__ */ H("div", {
2719
2646
  className: r("relative z-20 flex flex-col items-center w-full max-w-md px-6 py-4", t),
2720
2647
  ...n,
2721
2648
  children: e
2722
2649
  });
2723
2650
  }
2724
- function Fa({ children: e, pulsePaused: t, className: n, ...i }) {
2725
- return /* @__PURE__ */ W("div", {
2651
+ function Ma({ children: e, pulsePaused: t, className: n, ...i }) {
2652
+ return /* @__PURE__ */ H("div", {
2726
2653
  className: r("vig-login__fade-in mb-3", n),
2727
2654
  ...i,
2728
- children: /* @__PURE__ */ W($n, {
2655
+ children: /* @__PURE__ */ H(tr, {
2729
2656
  paused: t,
2730
- children: /* @__PURE__ */ W("div", {
2657
+ children: /* @__PURE__ */ H("div", {
2731
2658
  className: "flex h-16 w-16 items-center justify-center rounded-2xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-lg ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2732
2659
  children: e
2733
2660
  })
2734
2661
  })
2735
2662
  });
2736
2663
  }
2737
- function Ia({ children: e, className: t, ...n }) {
2738
- return /* @__PURE__ */ W("div", {
2664
+ function Na({ children: e, className: t, ...n }) {
2665
+ return /* @__PURE__ */ H("div", {
2739
2666
  className: "vig-login__fade-in-d1 text-center mb-1",
2740
- children: /* @__PURE__ */ W("h1", {
2667
+ children: /* @__PURE__ */ H("h1", {
2741
2668
  className: r("text-2xl font-bold tracking-tight bg-clip-text text-transparent vig-login__title-gradient", t),
2742
2669
  ...n,
2743
2670
  children: e
2744
2671
  })
2745
2672
  });
2746
2673
  }
2747
- function La({ children: e, className: t, ...n }) {
2748
- return /* @__PURE__ */ W("div", {
2674
+ function Pa({ children: e, className: t, ...n }) {
2675
+ return /* @__PURE__ */ H("div", {
2749
2676
  className: "vig-login__fade-in-d1 text-center mb-4",
2750
- children: /* @__PURE__ */ W("p", {
2677
+ children: /* @__PURE__ */ H("p", {
2751
2678
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-xs leading-relaxed", t),
2752
2679
  ...n,
2753
2680
  children: e
2754
2681
  })
2755
2682
  });
2756
2683
  }
2757
- function Ra({ children: e, className: t, ...n }) {
2758
- return /* @__PURE__ */ W("div", {
2684
+ function Fa({ children: e, className: t, ...n }) {
2685
+ return /* @__PURE__ */ H("div", {
2759
2686
  className: r("vig-login__fade-in-d2 flex flex-wrap justify-center gap-2 mb-5", t),
2760
2687
  ...n,
2761
2688
  children: e
2762
2689
  });
2763
2690
  }
2764
- function za({ icon: e, children: t, className: n, ...i }) {
2765
- return /* @__PURE__ */ G("div", {
2691
+ function Ia({ icon: e, children: t, className: n, ...i }) {
2692
+ return /* @__PURE__ */ U("div", {
2766
2693
  className: r("vig-login__feature-pill flex items-center gap-1.5 rounded-full px-3 py-1", n),
2767
2694
  ...i,
2768
- children: [e, /* @__PURE__ */ W("span", {
2695
+ children: [e, /* @__PURE__ */ H("span", {
2769
2696
  className: "text-xs font-medium text-slate-600 dark:text-slate-300",
2770
2697
  children: t
2771
2698
  })]
2772
2699
  });
2773
2700
  }
2774
- function Ba({ children: e, className: t, ...n }) {
2775
- return /* @__PURE__ */ W("div", {
2701
+ function La({ children: e, className: t, ...n }) {
2702
+ return /* @__PURE__ */ H("div", {
2776
2703
  className: r("vig-login__fade-in-d3 w-full", t),
2777
2704
  ...n,
2778
- children: /* @__PURE__ */ W(Qn, { children: e })
2705
+ children: /* @__PURE__ */ H(er, { children: e })
2779
2706
  });
2780
2707
  }
2781
- function Va({ children: e, className: t, ...n }) {
2782
- return /* @__PURE__ */ W("div", {
2708
+ function Ra({ children: e, className: t, ...n }) {
2709
+ return /* @__PURE__ */ H("div", {
2783
2710
  className: "vig-login__fade-in-d3 mt-4 text-center",
2784
- children: /* @__PURE__ */ W("p", {
2711
+ children: /* @__PURE__ */ H("p", {
2785
2712
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2786
2713
  ...n,
2787
2714
  children: e
2788
2715
  })
2789
2716
  });
2790
2717
  }
2791
- var Ha = Object.assign(ja, {
2792
- Background: Ma,
2793
- Settings: Na,
2794
- Content: Pa,
2795
- Logo: Fa,
2796
- Title: Ia,
2797
- Tagline: La,
2798
- Features: Ra,
2799
- FeaturePill: za,
2800
- Card: Ba,
2801
- Footer: Va
2802
- }), Ua = Be({});
2803
- function Wa(e) {
2718
+ var za = Object.assign(Oa, {
2719
+ Background: ka,
2720
+ Settings: Aa,
2721
+ Content: ja,
2722
+ Logo: Ma,
2723
+ Title: Na,
2724
+ Tagline: Pa,
2725
+ Features: Fa,
2726
+ FeaturePill: Ia,
2727
+ Card: La,
2728
+ Footer: Ra
2729
+ }), Ba = Ke({});
2730
+ function Va(e) {
2804
2731
  if (!e) return null;
2805
2732
  let t = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e.trim());
2806
2733
  if (t) {
@@ -2814,18 +2741,18 @@ function Wa(e) {
2814
2741
  }
2815
2742
  return null;
2816
2743
  }
2817
- function Ga({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2744
+ function Ha({ color: e, colorDark: t, children: n, className: i, style: a, ...o }) {
2818
2745
  let s = {};
2819
2746
  e && (s["--ff-color"] = e), t ? s["--ff-color-dark"] = t : e && (s["--ff-color-dark"] = e);
2820
- let c = Wa(e);
2747
+ let c = Va(e);
2821
2748
  c && (s["--ff-color-rgb"] = c);
2822
- let l = Wa(t) ?? c;
2823
- return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ W(Ua.Provider, {
2749
+ let l = Va(t) ?? c;
2750
+ return l && (s["--ff-color-dark-rgb"] = l), /* @__PURE__ */ H(Ba.Provider, {
2824
2751
  value: {
2825
2752
  color: e,
2826
2753
  colorDark: t
2827
2754
  },
2828
- children: /* @__PURE__ */ W("div", {
2755
+ children: /* @__PURE__ */ H("div", {
2829
2756
  className: r("vig-sf relative min-h-svh flex items-center justify-center overflow-hidden bg-slate-50 dark:bg-slate-950", i),
2830
2757
  style: {
2831
2758
  ...a ?? {},
@@ -2836,24 +2763,24 @@ function Ga({ color: e, colorDark: t, children: n, className: i, style: a, ...o
2836
2763
  })
2837
2764
  });
2838
2765
  }
2839
- function Ka(e) {
2840
- let { color: t, colorDark: n } = He(Ua);
2841
- return /* @__PURE__ */ W(Pe, {
2766
+ function Ua(e) {
2767
+ let { color: t, colorDark: n } = Je(Ba);
2768
+ return /* @__PURE__ */ H(Be, {
2842
2769
  color: t,
2843
2770
  colorDark: n,
2844
2771
  ...e
2845
2772
  });
2846
2773
  }
2847
- function qa({ children: e, className: t, ...n }) {
2848
- return /* @__PURE__ */ W("div", {
2774
+ function Wa({ children: e, className: t, ...n }) {
2775
+ return /* @__PURE__ */ H("div", {
2849
2776
  className: r("relative z-20 flex flex-col items-center w-full max-w-lg px-6 py-6", t),
2850
2777
  ...n,
2851
2778
  children: e
2852
2779
  });
2853
2780
  }
2854
- function Ja({ current: e, total: t, className: n, ...i }) {
2855
- let { t: a } = K();
2856
- return /* @__PURE__ */ W("div", {
2781
+ function Ga({ current: e, total: t, className: n, ...i }) {
2782
+ let { t: a } = W();
2783
+ return /* @__PURE__ */ H("div", {
2857
2784
  className: r("vig-sf__fade-in flex items-center gap-2 mb-4", n),
2858
2785
  role: "group",
2859
2786
  "aria-label": a("common.stepOf", {
@@ -2862,20 +2789,20 @@ function Ja({ current: e, total: t, className: n, ...i }) {
2862
2789
  defaultValue: "Step {{index}} of {{count}}"
2863
2790
  }),
2864
2791
  ...i,
2865
- children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ W("span", {
2792
+ children: Array.from({ length: t }, (t, n) => /* @__PURE__ */ H("span", {
2866
2793
  className: n + 1 <= e ? "vig-sf__step vig-sf__step--active" : "vig-sf__step",
2867
2794
  "aria-current": n + 1 === e ? "step" : void 0
2868
2795
  }, `step-${n + 1}`))
2869
2796
  });
2870
2797
  }
2871
- function Ya({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2872
- return /* @__PURE__ */ W("div", {
2798
+ function Ka({ children: e, pulsePaused: t, size: n = 80, className: i, style: a, ...o }) {
2799
+ return /* @__PURE__ */ H("div", {
2873
2800
  className: r("vig-sf__fade-in mb-4", i),
2874
2801
  style: a,
2875
2802
  ...o,
2876
- children: /* @__PURE__ */ W($n, {
2803
+ children: /* @__PURE__ */ H(tr, {
2877
2804
  paused: t,
2878
- children: /* @__PURE__ */ W("div", {
2805
+ children: /* @__PURE__ */ H("div", {
2879
2806
  className: "flex items-center justify-center rounded-3xl bg-white/80 dark:bg-slate-800/80 backdrop-blur-sm shadow-xl ring-1 ring-[rgba(var(--ff-color-rgb,37,99,235),0.2)] dark:ring-[rgba(var(--ff-color-dark-rgb,96,165,250),0.2)]",
2880
2807
  style: {
2881
2808
  width: n,
@@ -2886,87 +2813,87 @@ function Ya({ children: e, pulsePaused: t, size: n = 80, className: i, style: a,
2886
2813
  })
2887
2814
  });
2888
2815
  }
2889
- function Xa({ children: e, className: t, ...n }) {
2890
- return /* @__PURE__ */ W("div", {
2816
+ function qa({ children: e, className: t, ...n }) {
2817
+ return /* @__PURE__ */ H("div", {
2891
2818
  className: "vig-sf__fade-in-d1 text-center mb-2",
2892
- children: /* @__PURE__ */ W("h1", {
2819
+ children: /* @__PURE__ */ H("h1", {
2893
2820
  className: r("text-3xl font-bold tracking-tight bg-clip-text text-transparent vig-sf__title-gradient", t),
2894
2821
  ...n,
2895
2822
  children: e
2896
2823
  })
2897
2824
  });
2898
2825
  }
2899
- function Za({ children: e, className: t, ...n }) {
2900
- return /* @__PURE__ */ W("div", {
2826
+ function Ja({ children: e, className: t, ...n }) {
2827
+ return /* @__PURE__ */ H("div", {
2901
2828
  className: "vig-sf__fade-in-d1 text-center mb-5",
2902
- children: /* @__PURE__ */ W("p", {
2829
+ children: /* @__PURE__ */ H("p", {
2903
2830
  className: r("text-sm text-slate-500 dark:text-slate-400 max-w-md leading-relaxed", t),
2904
2831
  ...n,
2905
2832
  children: e
2906
2833
  })
2907
2834
  });
2908
2835
  }
2909
- function Qa({ children: e, className: t, ...n }) {
2910
- return /* @__PURE__ */ W("div", {
2836
+ function Ya({ children: e, className: t, ...n }) {
2837
+ return /* @__PURE__ */ H("div", {
2911
2838
  className: r("vig-sf__fade-in-d2 w-full", t),
2912
2839
  ...n,
2913
- children: /* @__PURE__ */ W(Qn, { children: e })
2840
+ children: /* @__PURE__ */ H(er, { children: e })
2914
2841
  });
2915
2842
  }
2916
- function $a({ children: e, className: t, ...n }) {
2917
- return /* @__PURE__ */ W("div", {
2843
+ function Xa({ children: e, className: t, ...n }) {
2844
+ return /* @__PURE__ */ H("div", {
2918
2845
  className: r("vig-sf__fade-in-d3 w-full mt-4 flex items-center justify-between gap-3", t),
2919
2846
  ...n,
2920
2847
  children: e
2921
2848
  });
2922
2849
  }
2923
- function eo({ children: e, className: t, ...n }) {
2924
- return /* @__PURE__ */ W("div", {
2850
+ function Za({ children: e, className: t, ...n }) {
2851
+ return /* @__PURE__ */ H("div", {
2925
2852
  className: "vig-sf__fade-in-d3 mt-6 text-center",
2926
- children: /* @__PURE__ */ W("p", {
2853
+ children: /* @__PURE__ */ H("p", {
2927
2854
  className: r("text-xs text-slate-400 dark:text-slate-500", t),
2928
2855
  ...n,
2929
2856
  children: e
2930
2857
  })
2931
2858
  });
2932
2859
  }
2933
- function to({ icon: e, children: t, className: n, ...i }) {
2934
- return /* @__PURE__ */ G("div", {
2860
+ function Qa({ icon: e, children: t, className: n, ...i }) {
2861
+ return /* @__PURE__ */ U("div", {
2935
2862
  className: r("vig-sf__hint flex items-start gap-2 rounded-lg px-3 py-2 text-xs text-slate-600 dark:text-slate-300", n),
2936
2863
  ...i,
2937
- children: [e, /* @__PURE__ */ W("span", { children: t })]
2938
- });
2939
- }
2940
- var no = Object.assign(Ga, {
2941
- Background: Ka,
2942
- Content: qa,
2943
- Steps: Ja,
2944
- Logo: Ya,
2945
- Title: Xa,
2946
- Description: Za,
2947
- Card: Qa,
2948
- Actions: $a,
2949
- Footer: eo,
2950
- Hint: to
2864
+ children: [e, /* @__PURE__ */ H("span", { children: t })]
2865
+ });
2866
+ }
2867
+ var $a = Object.assign(Ha, {
2868
+ Background: Ua,
2869
+ Content: Wa,
2870
+ Steps: Ga,
2871
+ Logo: Ka,
2872
+ Title: qa,
2873
+ Description: Ja,
2874
+ Card: Ya,
2875
+ Actions: Xa,
2876
+ Footer: Za,
2877
+ Hint: Qa
2951
2878
  });
2952
2879
  //#endregion
2953
2880
  //#region src/components/app-footer.tsx
2954
- function ro({ logo: e, productName: t, version: n, links: r = [] }) {
2955
- return /* @__PURE__ */ G("footer", {
2881
+ function eo({ logo: e, productName: t, version: n, links: r = [] }) {
2882
+ return /* @__PURE__ */ U("footer", {
2956
2883
  className: "mt-auto",
2957
- children: [/* @__PURE__ */ W("div", { className: "mx-6 border-t" }), /* @__PURE__ */ G("div", {
2884
+ children: [/* @__PURE__ */ H("div", { className: "mx-6 border-t" }), /* @__PURE__ */ U("div", {
2958
2885
  className: "px-6 py-3 flex items-center justify-center gap-2 flex-wrap",
2959
2886
  children: [
2960
2887
  e,
2961
- /* @__PURE__ */ G("span", {
2888
+ /* @__PURE__ */ U("span", {
2962
2889
  className: "text-xs text-muted-foreground",
2963
2890
  children: [t, n ? ` ${n}` : ""]
2964
2891
  }),
2965
- r.map((e) => /* @__PURE__ */ G(ze.Fragment, { children: [/* @__PURE__ */ W("span", {
2892
+ r.map((e) => /* @__PURE__ */ U(Ge.Fragment, { children: [/* @__PURE__ */ H("span", {
2966
2893
  "aria-hidden": "true",
2967
2894
  className: "text-xs text-muted-foreground/40",
2968
2895
  children: "·"
2969
- }), /* @__PURE__ */ W("a", {
2896
+ }), /* @__PURE__ */ H("a", {
2970
2897
  href: e.href,
2971
2898
  target: "_blank",
2972
2899
  rel: "noopener noreferrer",
@@ -2979,32 +2906,32 @@ function ro({ logo: e, productName: t, version: n, links: r = [] }) {
2979
2906
  }
2980
2907
  //#endregion
2981
2908
  //#region src/components/app-switcher.tsx
2982
- function io({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2983
- let { t: s } = K(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2909
+ function to({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, showTrigger: a = !0, headerHeight: o = 56 }) {
2910
+ let { t: s } = W(), c = r ?? s("common.apps"), l = i ?? s("common.closeAppSwitcher"), u = {
2984
2911
  top: `${o}px`,
2985
2912
  height: `calc(100vh - ${o}px)`
2986
2913
  };
2987
- return /* @__PURE__ */ G(Ge, { children: [
2988
- a && /* @__PURE__ */ W("button", {
2914
+ return /* @__PURE__ */ U(Ze, { children: [
2915
+ a && /* @__PURE__ */ H("button", {
2989
2916
  type: "button",
2990
2917
  title: c,
2991
2918
  onClick: t,
2992
2919
  className: `inline-flex items-center justify-center rounded-full w-9 h-9 transition-colors ${e ? "text-foreground bg-accent" : "text-muted-foreground hover:text-foreground hover:bg-accent"}`,
2993
- children: /* @__PURE__ */ W(Wt, { className: "h-5 w-5" })
2920
+ children: /* @__PURE__ */ H(Kt, { className: "h-5 w-5" })
2994
2921
  }),
2995
- e && /* @__PURE__ */ W("button", {
2922
+ e && /* @__PURE__ */ H("button", {
2996
2923
  type: "button",
2997
2924
  className: "fixed inset-0 z-40 cursor-default bg-transparent border-none",
2998
2925
  onClick: t,
2999
2926
  onKeyDown: (e) => e.key === "Escape" && t(),
3000
2927
  "aria-label": l
3001
2928
  }),
3002
- e && /* @__PURE__ */ W("div", {
2929
+ e && /* @__PURE__ */ H("div", {
3003
2930
  className: "vg-app-switcher-panel fixed right-0 z-50 w-72 border-l border-border bg-card shadow-xl overflow-y-auto",
3004
2931
  style: u,
3005
- children: /* @__PURE__ */ W("div", {
2932
+ children: /* @__PURE__ */ H("div", {
3006
2933
  className: "p-4",
3007
- children: n.map((e) => /* @__PURE__ */ W(ao, {
2934
+ children: n.map((e) => /* @__PURE__ */ H(no, {
3008
2935
  app: e,
3009
2936
  onToggle: t
3010
2937
  }, e.id))
@@ -3012,37 +2939,37 @@ function io({ open: e, onToggle: t, apps: n, triggerTitle: r, closeLabel: i, sho
3012
2939
  })
3013
2940
  ] });
3014
2941
  }
3015
- function ao({ app: e, onToggle: t }) {
3016
- let { t: n } = K(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
3017
- return /* @__PURE__ */ G("a", {
2942
+ function no({ app: e, onToggle: t }) {
2943
+ let { t: n } = W(), r = e.name.includes(".") ? n(e.name, { defaultValue: e.name }) : e.name;
2944
+ return /* @__PURE__ */ U("a", {
3018
2945
  href: e.href,
3019
2946
  target: e.external ? "_blank" : void 0,
3020
2947
  rel: e.external ? "noopener noreferrer" : void 0,
3021
2948
  onClick: t,
3022
2949
  className: `flex items-center gap-3 px-3 py-2.5 rounded-lg transition-colors ${e.active ? "bg-accent font-medium" : "hover:bg-accent"}`,
3023
2950
  children: [
3024
- e.active && /* @__PURE__ */ W(re, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
3025
- e.image ? /* @__PURE__ */ W("img", {
2951
+ e.active && /* @__PURE__ */ H(De, { className: "h-4 w-4 text-[var(--vg-brand,#C2410C)] shrink-0" }),
2952
+ e.image ? /* @__PURE__ */ H("img", {
3026
2953
  src: e.image,
3027
2954
  alt: "",
3028
2955
  "aria-hidden": "true",
3029
2956
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 object-contain`
3030
- }) : /* @__PURE__ */ W("div", {
2957
+ }) : /* @__PURE__ */ H("div", {
3031
2958
  className: `${e.active ? "" : "ml-7"} shrink-0 w-7 h-7 rounded-[18%] bg-[#f5deb3] dark:bg-amber-900/40 p-0.5`,
3032
- children: /* @__PURE__ */ W("div", {
2959
+ children: /* @__PURE__ */ H("div", {
3033
2960
  className: `w-full h-full rounded-[14%] ${e.iconBg ?? "bg-muted"} flex items-center justify-center text-white`,
3034
2961
  children: e.icon
3035
2962
  })
3036
2963
  }),
3037
- /* @__PURE__ */ W("span", {
2964
+ /* @__PURE__ */ H("span", {
3038
2965
  className: "text-sm flex-1",
3039
2966
  children: r
3040
2967
  }),
3041
- e.external && /* @__PURE__ */ W(Bt, { className: "h-3.5 w-3.5 text-muted-foreground" })
2968
+ e.external && /* @__PURE__ */ H(Ht, { className: "h-3.5 w-3.5 text-muted-foreground" })
3042
2969
  ]
3043
2970
  });
3044
2971
  }
3045
- var oo = new class {
2972
+ var ro = new class {
3046
2973
  status = "online";
3047
2974
  listeners = /* @__PURE__ */ new Set();
3048
2975
  get current() {
@@ -3057,30 +2984,30 @@ var oo = new class {
3057
2984
  };
3058
2985
  }
3059
2986
  }();
3060
- function so() {
3061
- oo.set("offline");
2987
+ function io() {
2988
+ ro.set("offline");
3062
2989
  }
3063
- function co() {
3064
- oo.set("online");
2990
+ function ao() {
2991
+ ro.set("online");
3065
2992
  }
3066
- var lo = Be(null);
3067
- function uo() {
3068
- let e = He(lo);
2993
+ var oo = Ke(null);
2994
+ function so() {
2995
+ let e = Je(oo);
3069
2996
  if (!e) throw Error("useBackendStatus must be used inside <BackendStatusProvider>");
3070
2997
  return e;
3071
2998
  }
3072
- function fo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3073
- let [i, a] = We(oo.current);
3074
- H(() => oo.subscribe(a), []);
3075
- let o = Ve(async () => {
3076
- oo.set("checking");
2999
+ function co({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBanner: n = !0, children: r }) {
3000
+ let [i, a] = Xe(ro.current);
3001
+ B(() => ro.subscribe(a), []);
3002
+ let o = qe(async () => {
3003
+ ro.set("checking");
3077
3004
  try {
3078
- await Y.get(e, { timeout: 4e3 }), oo.set("online");
3005
+ await Y.get(e, { timeout: 4e3 }), ro.set("online");
3079
3006
  } catch {
3080
- oo.set("offline");
3007
+ ro.set("offline");
3081
3008
  }
3082
3009
  }, [e]);
3083
- return H(() => {
3010
+ return B(() => {
3084
3011
  if (i === "online") return;
3085
3012
  let e = setInterval(o, t);
3086
3013
  return () => clearInterval(e);
@@ -3088,38 +3015,38 @@ function fo({ healthEndpoint: e = "/api/v2/ping", pollInterval: t = 5e3, showBan
3088
3015
  i,
3089
3016
  t,
3090
3017
  o
3091
- ]), /* @__PURE__ */ G(lo.Provider, {
3018
+ ]), /* @__PURE__ */ U(oo.Provider, {
3092
3019
  value: {
3093
3020
  status: i,
3094
3021
  retry: o
3095
3022
  },
3096
- children: [n && /* @__PURE__ */ W(po, {}), r]
3023
+ children: [n && /* @__PURE__ */ H(lo, {}), r]
3097
3024
  });
3098
3025
  }
3099
- function po() {
3100
- let { status: e, retry: t } = uo(), { t: n } = K();
3026
+ function lo() {
3027
+ let { status: e, retry: t } = so(), { t: n } = W();
3101
3028
  if (e === "online") return null;
3102
3029
  let r = e === "checking";
3103
- return /* @__PURE__ */ W("div", {
3030
+ return /* @__PURE__ */ H("div", {
3104
3031
  role: "status",
3105
3032
  "aria-live": "polite",
3106
3033
  className: "sticky top-0 z-50 w-full border-b border-amber-500/30 bg-amber-500/10 backdrop-blur supports-[backdrop-filter]:bg-amber-500/15 text-amber-900 dark:text-amber-100",
3107
- children: /* @__PURE__ */ G("div", {
3034
+ children: /* @__PURE__ */ U("div", {
3108
3035
  className: "flex items-center gap-3 px-4 py-2 text-sm",
3109
3036
  children: [
3110
- r ? /* @__PURE__ */ W(ot, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ W(tt, { className: "size-4 shrink-0" }),
3111
- /* @__PURE__ */ W("span", {
3037
+ r ? /* @__PURE__ */ H(dt, { className: "size-4 animate-spin shrink-0" }) : /* @__PURE__ */ H(ot, { className: "size-4 shrink-0" }),
3038
+ /* @__PURE__ */ H("span", {
3112
3039
  className: "flex-1",
3113
3040
  children: n(r ? "backendStatus.checking" : "backendStatus.offline", r ? "Reconnecting to the server..." : "Server unavailable. Retrying...")
3114
3041
  }),
3115
- /* @__PURE__ */ G(v, {
3042
+ /* @__PURE__ */ U(v, {
3116
3043
  type: "button",
3117
3044
  variant: "ghost",
3118
3045
  size: "sm",
3119
3046
  onClick: t,
3120
3047
  disabled: r,
3121
3048
  className: "text-amber-900 dark:text-amber-100 hover:bg-amber-500/20",
3122
- children: [/* @__PURE__ */ W(ct, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3049
+ children: [/* @__PURE__ */ H(pt, { className: `size-4 ${r ? "animate-spin" : ""}` }), n("backendStatus.retry", "Retry now")]
3123
3050
  })
3124
3051
  ]
3125
3052
  })
@@ -3127,7 +3054,7 @@ function po() {
3127
3054
  }
3128
3055
  //#endregion
3129
3056
  //#region src/components/error-boundary.tsx
3130
- var mo = class extends ze.Component {
3057
+ var uo = class extends Ge.Component {
3131
3058
  state = { hasError: !1 };
3132
3059
  static getDerivedStateFromError(e) {
3133
3060
  return {
@@ -3150,49 +3077,49 @@ var mo = class extends ze.Component {
3150
3077
  return this.props.fallback ? this.props.fallback({
3151
3078
  error: e,
3152
3079
  reset: this.reset
3153
- }) : /* @__PURE__ */ W(ho, { error: e });
3080
+ }) : /* @__PURE__ */ H(fo, { error: e });
3154
3081
  }
3155
3082
  };
3156
- function ho({ error: e }) {
3157
- let { t } = K();
3158
- return /* @__PURE__ */ W("div", {
3083
+ function fo({ error: e }) {
3084
+ let { t } = W();
3085
+ return /* @__PURE__ */ H("div", {
3159
3086
  className: "flex items-center justify-center min-h-[80vh] px-6 py-16",
3160
- children: /* @__PURE__ */ W("div", {
3087
+ children: /* @__PURE__ */ H("div", {
3161
3088
  className: "relative w-full max-w-md overflow-hidden rounded-2xl border border-border/50 bg-card/80 backdrop-blur-sm shadow-xl",
3162
- children: /* @__PURE__ */ G("div", {
3089
+ children: /* @__PURE__ */ U("div", {
3163
3090
  className: "relative flex flex-col items-center text-center px-8 py-12 space-y-6",
3164
3091
  children: [
3165
- /* @__PURE__ */ G("div", {
3092
+ /* @__PURE__ */ U("div", {
3166
3093
  className: "relative",
3167
- children: [/* @__PURE__ */ W("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ W("div", {
3094
+ children: [/* @__PURE__ */ H("div", { className: "absolute inset-0 rounded-2xl bg-gradient-to-br from-red-500/20 to-rose-500/20 blur-xl animate-pulse" }), /* @__PURE__ */ H("div", {
3168
3095
  className: "relative inline-flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-red-600 to-rose-600 shadow-lg shadow-red-500/25 ring-4 ring-red-500/10",
3169
- children: /* @__PURE__ */ W(nt, {
3096
+ children: /* @__PURE__ */ H(st, {
3170
3097
  className: "text-white",
3171
3098
  size: 30
3172
3099
  })
3173
3100
  })]
3174
3101
  }),
3175
- /* @__PURE__ */ G("div", {
3102
+ /* @__PURE__ */ U("div", {
3176
3103
  className: "space-y-2",
3177
3104
  children: [
3178
- /* @__PURE__ */ W("h2", {
3105
+ /* @__PURE__ */ H("h2", {
3179
3106
  className: "text-xl font-semibold tracking-tight",
3180
3107
  children: t("errorBoundary.title", "Something went wrong")
3181
3108
  }),
3182
- /* @__PURE__ */ W("p", {
3109
+ /* @__PURE__ */ H("p", {
3183
3110
  className: "text-sm text-muted-foreground leading-relaxed max-w-xs mx-auto",
3184
3111
  children: t("errorBoundary.description", "An unexpected error occurred. Try reloading the page.")
3185
3112
  }),
3186
- e.message && /* @__PURE__ */ W("pre", {
3113
+ e.message && /* @__PURE__ */ H("pre", {
3187
3114
  className: "mt-3 text-xs text-left text-muted-foreground bg-muted/40 rounded-md p-3 max-h-32 overflow-auto whitespace-pre-wrap break-words",
3188
3115
  children: e.message
3189
3116
  })
3190
3117
  ]
3191
3118
  }),
3192
- /* @__PURE__ */ G(v, {
3119
+ /* @__PURE__ */ U(v, {
3193
3120
  size: "lg",
3194
3121
  onClick: () => window.location.reload(),
3195
- children: [/* @__PURE__ */ W(ct, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3122
+ children: [/* @__PURE__ */ H(pt, { className: "size-4" }), t("errorBoundary.reload", "Reload page")]
3196
3123
  })
3197
3124
  ]
3198
3125
  })
@@ -3201,8 +3128,8 @@ function ho({ error: e }) {
3201
3128
  }
3202
3129
  //#endregion
3203
3130
  //#region src/components/language-select.tsx
3204
- function go({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3205
- let { t: o } = K(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3131
+ function po({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [], placeholder: i, className: a }) {
3132
+ let { t: o } = W(), s = i ?? o("forms.common.chooseLanguage"), c = /* @__PURE__ */ new Map();
3206
3133
  n.forEach((e) => {
3207
3134
  c.set(e.initials, {
3208
3135
  name: e.en,
@@ -3219,34 +3146,34 @@ function go({ value: e, onValueChange: t, locales: n, extraLocaleValues: r = [],
3219
3146
  name: t.name,
3220
3147
  label: t.label
3221
3148
  })), u = l.find((t) => t.value === e);
3222
- return /* @__PURE__ */ G(br, {
3149
+ return /* @__PURE__ */ U(Sr, {
3223
3150
  value: e,
3224
3151
  onValueChange: t,
3225
- children: [/* @__PURE__ */ W(Cr, {
3152
+ children: [/* @__PURE__ */ H(Tr, {
3226
3153
  className: a,
3227
3154
  "aria-label": s,
3228
- children: u ? /* @__PURE__ */ G("div", {
3155
+ children: u ? /* @__PURE__ */ U("div", {
3229
3156
  className: "flex items-center gap-2 truncate",
3230
- children: [/* @__PURE__ */ W(S, { locale: u.value }), /* @__PURE__ */ W("span", {
3157
+ children: [/* @__PURE__ */ H(S, { locale: u.value }), /* @__PURE__ */ H("span", {
3231
3158
  className: "truncate",
3232
3159
  children: u.label
3233
3160
  })]
3234
- }) : /* @__PURE__ */ W("span", {
3161
+ }) : /* @__PURE__ */ H("span", {
3235
3162
  className: "text-muted-foreground",
3236
3163
  children: s
3237
3164
  })
3238
- }), /* @__PURE__ */ W(wr, { children: l.map((e) => /* @__PURE__ */ W(Er, {
3165
+ }), /* @__PURE__ */ H(Er, { children: l.map((e) => /* @__PURE__ */ H(Or, {
3239
3166
  value: e.value,
3240
- children: /* @__PURE__ */ G("div", {
3167
+ children: /* @__PURE__ */ U("div", {
3241
3168
  className: "flex items-center gap-2",
3242
- children: [/* @__PURE__ */ W(S, { locale: e.value }), /* @__PURE__ */ W("span", { children: e.label })]
3169
+ children: [/* @__PURE__ */ H(S, { locale: e.value }), /* @__PURE__ */ H("span", { children: e.label })]
3243
3170
  })
3244
3171
  }, e.value)) })]
3245
3172
  });
3246
3173
  }
3247
3174
  //#endregion
3248
3175
  //#region src/components/language-switcher.tsx
3249
- var _o = [{
3176
+ var mo = [{
3250
3177
  code: "en",
3251
3178
  label: "English",
3252
3179
  flag: "🇺🇸"
@@ -3255,24 +3182,24 @@ var _o = [{
3255
3182
  label: "Português",
3256
3183
  flag: "🇧🇷"
3257
3184
  }];
3258
- function vo({ languages: e = _o }) {
3259
- let { i18n: t, t: n } = K();
3260
- return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
3185
+ function ho({ languages: e = mo }) {
3186
+ let { i18n: t, t: n } = W();
3187
+ return /* @__PURE__ */ U(M, { children: [/* @__PURE__ */ H(pe, {
3261
3188
  asChild: !0,
3262
- children: /* @__PURE__ */ G(v, {
3189
+ children: /* @__PURE__ */ U(v, {
3263
3190
  variant: "outline",
3264
3191
  size: "sm",
3265
- children: [/* @__PURE__ */ W(Ht, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ W("span", {
3192
+ children: [/* @__PURE__ */ H(Wt, { className: "h-[1.2rem] w-[1.2rem]" }), /* @__PURE__ */ H("span", {
3266
3193
  className: "sr-only",
3267
3194
  children: n("language.toggle")
3268
3195
  })]
3269
3196
  })
3270
- }), /* @__PURE__ */ W(O, {
3197
+ }), /* @__PURE__ */ H(ze, {
3271
3198
  align: "end",
3272
- children: e.map((e) => /* @__PURE__ */ G(P, {
3199
+ children: e.map((e) => /* @__PURE__ */ U(I, {
3273
3200
  onClick: () => t.changeLanguage(e.code),
3274
3201
  className: t.language === e.code ? "font-semibold bg-accent" : "",
3275
- children: [e.flag && /* @__PURE__ */ W("span", {
3202
+ children: [e.flag && /* @__PURE__ */ H("span", {
3276
3203
  className: "mr-2",
3277
3204
  children: e.flag
3278
3205
  }), e.label]
@@ -3281,8 +3208,8 @@ function vo({ languages: e = _o }) {
3281
3208
  }
3282
3209
  //#endregion
3283
3210
  //#region src/components/theme-provider.tsx
3284
- function yo({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3285
- return /* @__PURE__ */ W(yt, {
3211
+ function go({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-theme", ...r }) {
3212
+ return /* @__PURE__ */ H(Ct, {
3286
3213
  attribute: "class",
3287
3214
  enableSystem: !0,
3288
3215
  defaultTheme: t,
@@ -3291,8 +3218,8 @@ function yo({ children: e, defaultTheme: t = "system", storageKey: n = "vite-ui-
3291
3218
  children: e
3292
3219
  });
3293
3220
  }
3294
- var bo = () => {
3295
- let { theme: e, setTheme: t } = bt();
3221
+ var _o = () => {
3222
+ let { theme: e, setTheme: t } = wt();
3296
3223
  return {
3297
3224
  theme: e ?? "system",
3298
3225
  setTheme: t
@@ -3300,104 +3227,104 @@ var bo = () => {
3300
3227
  };
3301
3228
  //#endregion
3302
3229
  //#region src/components/mode-toggle.tsx
3303
- function xo() {
3304
- let { setTheme: e } = bo(), { t } = K();
3305
- return /* @__PURE__ */ G(I, { children: [/* @__PURE__ */ W(Te, {
3230
+ function vo() {
3231
+ let { setTheme: e } = _o(), { t } = W();
3232
+ return /* @__PURE__ */ U(M, { children: [/* @__PURE__ */ H(pe, {
3306
3233
  asChild: !0,
3307
- children: /* @__PURE__ */ G(v, {
3234
+ children: /* @__PURE__ */ U(v, {
3308
3235
  variant: "outline",
3309
3236
  size: "sm",
3310
3237
  children: [
3311
- /* @__PURE__ */ W(en, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3312
- /* @__PURE__ */ W(Xt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3313
- /* @__PURE__ */ W("span", {
3238
+ /* @__PURE__ */ H(nn, { className: "h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" }),
3239
+ /* @__PURE__ */ H(Qt, { className: "absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" }),
3240
+ /* @__PURE__ */ H("span", {
3314
3241
  className: "sr-only",
3315
3242
  children: t("theme.toggle")
3316
3243
  })
3317
3244
  ]
3318
3245
  })
3319
- }), /* @__PURE__ */ G(O, {
3246
+ }), /* @__PURE__ */ U(ze, {
3320
3247
  align: "end",
3321
3248
  children: [
3322
- /* @__PURE__ */ W(P, {
3249
+ /* @__PURE__ */ H(I, {
3323
3250
  onClick: () => e("light"),
3324
3251
  children: t("theme.light")
3325
3252
  }),
3326
- /* @__PURE__ */ W(P, {
3253
+ /* @__PURE__ */ H(I, {
3327
3254
  onClick: () => e("dark"),
3328
3255
  children: t("theme.dark")
3329
3256
  }),
3330
- /* @__PURE__ */ W(P, {
3257
+ /* @__PURE__ */ H(I, {
3331
3258
  onClick: () => e("system"),
3332
3259
  children: t("theme.system")
3333
3260
  })
3334
3261
  ]
3335
3262
  })] });
3336
3263
  }
3337
- var So = [
3264
+ var yo = [
3338
3265
  {
3339
3266
  value: "light",
3340
3267
  labelKey: "theme.light",
3341
- icon: en
3268
+ icon: nn
3342
3269
  },
3343
3270
  {
3344
3271
  value: "dark",
3345
3272
  labelKey: "theme.dark",
3346
- icon: Xt
3273
+ icon: Qt
3347
3274
  },
3348
3275
  {
3349
3276
  value: "system",
3350
3277
  labelKey: "theme.system",
3351
- icon: Jt
3278
+ icon: Xt
3352
3279
  }
3353
3280
  ];
3354
- function Co() {
3355
- let { theme: e, setTheme: t } = bo(), { t: n } = K(), r = So.find((t) => t.value === e) ?? So[2];
3281
+ function bo() {
3282
+ let { theme: e, setTheme: t } = _o(), { t: n } = W(), r = yo.find((t) => t.value === e) ?? yo[2];
3356
3283
  function i() {
3357
- let n = So[(So.findIndex((t) => t.value === e) + 1) % So.length];
3284
+ let n = yo[(yo.findIndex((t) => t.value === e) + 1) % yo.length];
3358
3285
  t(n.value);
3359
3286
  }
3360
3287
  let a = r.icon;
3361
- return /* @__PURE__ */ G("button", {
3288
+ return /* @__PURE__ */ U("button", {
3362
3289
  type: "button",
3363
3290
  title: n("theme.toggle"),
3364
3291
  onClick: i,
3365
3292
  className: "md:hidden flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-sidebar-foreground hover:bg-sidebar-accent transition-colors w-full",
3366
- children: [/* @__PURE__ */ W(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ W("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3293
+ children: [/* @__PURE__ */ H(a, { className: "size-4 shrink-0" }), /* @__PURE__ */ H("span", { children: n("theme.modeLabel", { mode: n(r.labelKey) }) })]
3367
3294
  });
3368
3295
  }
3369
3296
  //#endregion
3370
3297
  //#region src/components/nav-secondary.tsx
3371
- function wo({ items: e, ...t }) {
3372
- return /* @__PURE__ */ W(oi, {
3298
+ function xo({ items: e, ...t }) {
3299
+ return /* @__PURE__ */ H(ci, {
3373
3300
  ...t,
3374
- children: /* @__PURE__ */ W(li, { children: /* @__PURE__ */ W(ui, { children: e.map((e) => /* @__PURE__ */ W(di, { children: /* @__PURE__ */ W(pi, {
3301
+ children: /* @__PURE__ */ H(di, { children: /* @__PURE__ */ H(fi, { children: e.map((e) => /* @__PURE__ */ H(pi, { children: /* @__PURE__ */ H(hi, {
3375
3302
  asChild: !0,
3376
- children: /* @__PURE__ */ G("a", {
3303
+ children: /* @__PURE__ */ U("a", {
3377
3304
  href: e.url,
3378
- children: [/* @__PURE__ */ W(e.icon, {}), /* @__PURE__ */ W("span", { children: e.title })]
3305
+ children: [/* @__PURE__ */ H(e.icon, {}), /* @__PURE__ */ H("span", { children: e.title })]
3379
3306
  })
3380
3307
  }) }, e.title)) }) })
3381
3308
  });
3382
3309
  }
3383
3310
  //#endregion
3384
3311
  //#region src/components/viglet-app-switcher.tsx
3385
- var To = {
3312
+ var So = {
3386
3313
  cloud: "https://console.viglet.cloud",
3387
3314
  turing: "https://turing.viglet.cloud",
3388
3315
  shio: "https://shio.viglet.cloud",
3389
3316
  dumont: "https://dumont.viglet.cloud",
3390
3317
  docs: "https://docs.viglet.org"
3391
3318
  };
3392
- function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3393
- let { t: s } = K(), c = {
3394
- ...To,
3319
+ function Co({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i, closeLabel: a, headerHeight: o = 56 }) {
3320
+ let { t: s } = W(), c = {
3321
+ ...So,
3395
3322
  ...r
3396
3323
  }, l = [
3397
3324
  {
3398
3325
  id: "cloud",
3399
3326
  name: "Viglet Cloud",
3400
- icon: /* @__PURE__ */ W(It, { className: "h-4 w-4" }),
3327
+ icon: /* @__PURE__ */ H(Rt, { className: "h-4 w-4" }),
3401
3328
  iconBg: "bg-linear-to-br from-[#C2410C] to-[#F97316]",
3402
3329
  href: n === "cloud" ? "/" : c.cloud,
3403
3330
  external: n !== "cloud",
@@ -3406,7 +3333,7 @@ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3406
3333
  {
3407
3334
  id: "turing",
3408
3335
  name: "Turing ES",
3409
- image: Fe,
3336
+ image: Ve,
3410
3337
  href: n === "turing" ? "/" : c.turing,
3411
3338
  external: n !== "turing",
3412
3339
  active: n === "turing"
@@ -3414,7 +3341,7 @@ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3414
3341
  {
3415
3342
  id: "shio",
3416
3343
  name: "Shio CMS",
3417
- image: Le,
3344
+ image: Ue,
3418
3345
  href: n === "shio" ? "/" : c.shio,
3419
3346
  external: n !== "shio",
3420
3347
  active: n === "shio"
@@ -3422,7 +3349,7 @@ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3422
3349
  {
3423
3350
  id: "dumont",
3424
3351
  name: "Dumont DEP",
3425
- image: Ie,
3352
+ image: He,
3426
3353
  href: n === "dumont" ? "/" : c.dumont,
3427
3354
  external: n !== "dumont",
3428
3355
  active: n === "dumont"
@@ -3430,13 +3357,13 @@ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3430
3357
  {
3431
3358
  id: "docs",
3432
3359
  name: s("common.docs", { defaultValue: "Documentation" }),
3433
- icon: /* @__PURE__ */ W(Ot, { className: "h-4 w-4" }),
3360
+ icon: /* @__PURE__ */ H(At, { className: "h-4 w-4" }),
3434
3361
  iconBg: "bg-linear-to-br from-violet-500 to-purple-600",
3435
3362
  href: c.docs,
3436
3363
  external: !0
3437
3364
  }
3438
3365
  ], u = i ?? s("common.apps", { defaultValue: "Apps" });
3439
- return /* @__PURE__ */ W(io, {
3366
+ return /* @__PURE__ */ H(to, {
3440
3367
  open: e,
3441
3368
  onToggle: t,
3442
3369
  apps: l,
@@ -3447,19 +3374,19 @@ function Eo({ open: e, onToggle: t, activeProduct: n, urls: r, triggerTitle: i,
3447
3374
  }
3448
3375
  //#endregion
3449
3376
  //#region src/hooks/use-date-locale.ts
3450
- var Do = {
3451
- en: wt,
3452
- pt: Tt
3377
+ var wo = {
3378
+ en: Et,
3379
+ pt: Dt
3453
3380
  };
3454
- function Oo() {
3455
- let { i18n: e } = K();
3456
- return Ue(() => Do[e.language?.substring(0, 2)] ?? wt, [e.language]);
3381
+ function To() {
3382
+ let { i18n: e } = W();
3383
+ return Ye(() => wo[e.language?.substring(0, 2)] ?? Et, [e.language]);
3457
3384
  }
3458
3385
  //#endregion
3459
3386
  //#region src/hooks/use-grid-adapter.ts
3460
- function ko(e, t) {
3387
+ function Eo(e, t) {
3461
3388
  let { id: n, name: r, description: i, url: a, icon: o } = t;
3462
- return Ue(() => {
3389
+ return Ye(() => {
3463
3390
  if (!Array.isArray(e) || e.length === 0) return [];
3464
3391
  let t = (e, t) => {
3465
3392
  if (typeof t == "function") return t(e);
@@ -3490,15 +3417,15 @@ function ko(e, t) {
3490
3417
  }
3491
3418
  //#endregion
3492
3419
  //#region src/contexts/breadcrumb.context.tsx
3493
- var Ao = Be(void 0);
3494
- function jo({ children: e }) {
3495
- let [t, n] = We([]), r = Ve((e) => {
3420
+ var Do = Ke(void 0);
3421
+ function Oo({ children: e }) {
3422
+ let [t, n] = Xe([]), r = qe((e) => {
3496
3423
  n((t) => t.length > 0 && t[t.length - 1].label === e.label ? t : [...t, e]);
3497
- }, []), i = Ve(() => {
3424
+ }, []), i = qe(() => {
3498
3425
  n((e) => e.slice(0, -1));
3499
- }, []), a = Ve((e = []) => {
3426
+ }, []), a = qe((e = []) => {
3500
3427
  n(e);
3501
- }, []), o = Ue(() => ({
3428
+ }, []), o = Ye(() => ({
3502
3429
  items: t,
3503
3430
  setItems: n,
3504
3431
  pushItem: r,
@@ -3510,21 +3437,21 @@ function jo({ children: e }) {
3510
3437
  i,
3511
3438
  a
3512
3439
  ]);
3513
- return /* @__PURE__ */ W(Ao.Provider, {
3440
+ return /* @__PURE__ */ H(Do.Provider, {
3514
3441
  value: o,
3515
3442
  children: e
3516
3443
  });
3517
3444
  }
3518
- var Mo = () => {
3519
- let e = He(Ao);
3445
+ var ko = () => {
3446
+ let e = Je(Do);
3520
3447
  if (!e) throw Error("useBreadcrumb must be used within Provider");
3521
3448
  return e;
3522
- }, No = () => He(Ao);
3449
+ }, Ao = () => Je(Do);
3523
3450
  //#endregion
3524
3451
  //#region src/hooks/use-sub-page-breadcrumb.ts
3525
- function Po(e) {
3526
- let t = No()?.setItems, n = U([]);
3527
- H(() => {
3452
+ function jo(e) {
3453
+ let t = Ao()?.setItems, n = V([]);
3454
+ B(() => {
3528
3455
  if (e === void 0 || !t) return;
3529
3456
  let r = typeof e == "string" ? [{ label: e }] : Array.isArray(e) ? e : [e], i = n.current;
3530
3457
  i.length === r.length && i.every((e, t) => e.label === r[t].label && e.href === r[t].href) || t((e) => {
@@ -3540,7 +3467,7 @@ function Po(e) {
3540
3467
  ...o
3541
3468
  ];
3542
3469
  });
3543
- }, [e, t]), H(() => () => {
3470
+ }, [e, t]), B(() => () => {
3544
3471
  let e = n.current;
3545
3472
  e.length > 0 && t && t((t) => {
3546
3473
  let n = t.indexOf(e[0]);
@@ -3550,28 +3477,28 @@ function Po(e) {
3550
3477
  }
3551
3478
  //#endregion
3552
3479
  //#region src/hooks/use-assistant-notifications.ts
3553
- var Fo = {
3480
+ var Mo = {
3554
3481
  loading: "working",
3555
3482
  success: "success",
3556
3483
  error: "error",
3557
3484
  warning: "attention",
3558
3485
  info: "attention"
3559
- }, Io = [
3486
+ }, No = [
3560
3487
  "working",
3561
3488
  "error",
3562
3489
  "attention",
3563
3490
  "success"
3564
3491
  ];
3565
- function Lo(e) {
3492
+ function Po(e) {
3566
3493
  let { title: t } = e;
3567
3494
  return typeof t == "string" ? t : typeof t == "number" ? String(t) : null;
3568
3495
  }
3569
- function Ro() {
3570
- let { toasts: e } = xt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3571
- for (let e of Io) {
3572
- let i = t.find((t) => Fo[t.type ?? ""] === e);
3496
+ function Fo() {
3497
+ let { toasts: e } = Tt(), t = e.filter((e) => !e.delete), n = "idle", r = null;
3498
+ for (let e of No) {
3499
+ let i = t.find((t) => Mo[t.type ?? ""] === e);
3573
3500
  if (i) {
3574
- n = e, r = Lo(i);
3501
+ n = e, r = Po(i);
3575
3502
  break;
3576
3503
  }
3577
3504
  }
@@ -3583,8 +3510,8 @@ function Ro() {
3583
3510
  }
3584
3511
  //#endregion
3585
3512
  //#region src/lib/axios.ts
3586
- var zo = "X-XSRF-TOKEN", Bo = "/csrf", $ = null, Vo = Y.create({ withCredentials: !0 });
3587
- function Ho(e) {
3513
+ var Io = "X-XSRF-TOKEN", Lo = "/csrf", $ = null, Ro = Y.create({ withCredentials: !0 });
3514
+ function zo(e) {
3588
3515
  return [
3589
3516
  "post",
3590
3517
  "put",
@@ -3592,58 +3519,58 @@ function Ho(e) {
3592
3519
  "patch"
3593
3520
  ].includes(e?.toLowerCase() || "");
3594
3521
  }
3595
- function Uo(e) {
3596
- return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(zo) || null : typeof e == "object" && e && e[zo.toLowerCase()] || null : null;
3522
+ function Bo(e) {
3523
+ return e ? typeof e == "object" && e && "get" in e && typeof e.get == "function" ? e.get(Io) || null : typeof e == "object" && e && e[Io.toLowerCase()] || null : null;
3597
3524
  }
3598
- function Wo(e, t) {
3525
+ function Vo(e, t) {
3599
3526
  if (typeof e.headers == "object" && e.headers !== null && "set" in e.headers && typeof e.headers.set == "function") {
3600
- e.headers.set(zo, t);
3527
+ e.headers.set(Io, t);
3601
3528
  return;
3602
3529
  }
3603
3530
  let n = e.headers || {};
3604
- n[zo] = t, e.headers = n;
3531
+ n[Io] = t, e.headers = n;
3605
3532
  }
3606
- function Go() {
3607
- $ = null, qo = null;
3533
+ function Ho() {
3534
+ $ = null, Wo = null;
3608
3535
  }
3609
- function Ko() {
3536
+ function Uo() {
3610
3537
  let e = /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(globalThis.document.cookie);
3611
3538
  return e ? decodeURIComponent(e[1]) : null;
3612
3539
  }
3613
- var qo = null;
3614
- async function Jo() {
3615
- Vo.defaults.baseURL = Y.defaults.baseURL;
3616
- let e = await Vo.get(Bo), t = Uo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Ko();
3540
+ var Wo = null;
3541
+ async function Go() {
3542
+ Ro.defaults.baseURL = Y.defaults.baseURL;
3543
+ let e = await Ro.get(Lo), t = Bo(e.headers), n = typeof e.data == "object" && e.data !== null ? e.data.token : void 0, r = Uo();
3617
3544
  $ = t || n || r || null;
3618
3545
  }
3619
- async function Yo() {
3546
+ async function Ko() {
3620
3547
  if (!$) {
3621
- if (!qo) {
3622
- let e = Jo().finally(() => {
3623
- qo === e && (qo = null);
3548
+ if (!Wo) {
3549
+ let e = Go().finally(() => {
3550
+ Wo === e && (Wo = null);
3624
3551
  });
3625
- qo = e;
3552
+ Wo = e;
3626
3553
  }
3627
- await qo;
3554
+ await Wo;
3628
3555
  }
3629
3556
  }
3630
- function Xo(e = {}) {
3557
+ function qo(e = {}) {
3631
3558
  let t = e.loginPath ?? "/login";
3632
- e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = zo, Y.interceptors.request.use(async (e) => {
3559
+ e.baseURL && (Y.defaults.baseURL = e.baseURL), Y.defaults.withCredentials = !0, Y.defaults.xsrfCookieName = "XSRF-TOKEN", Y.defaults.xsrfHeaderName = Io, Y.interceptors.request.use(async (e) => {
3633
3560
  let t = e.url || "", n = e.baseURL || Y.defaults.baseURL;
3634
- if (Vo.defaults.baseURL = n, t.includes(Bo) || !Ho(e.method)) return e;
3635
- if ($ || await Yo(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3636
- return Wo(e, $), e;
3561
+ if (Ro.defaults.baseURL = n, t.includes(Lo) || !zo(e.method)) return e;
3562
+ if ($ || await Ko(), !$) throw Error("Unable to obtain CSRF token for mutating request.");
3563
+ return Vo(e, $), e;
3637
3564
  }, (e) => Promise.reject(e)), Y.interceptors.response.use((e) => {
3638
- let t = Uo(e.headers);
3565
+ let t = Bo(e.headers);
3639
3566
  return t && ($ = t), e;
3640
3567
  }, async (e) => {
3641
- let n = Uo(e.response?.headers);
3568
+ let n = Bo(e.response?.headers);
3642
3569
  n && ($ = n);
3643
3570
  let r = e.config;
3644
- if (e.response?.status === 403 && r && !r._csrfRetried && Ho(r.method)) {
3645
- if (r._csrfRetried = !0, Go(), Vo.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Yo(), !$) throw e;
3646
- return Wo(r, $), Y.request(r);
3571
+ if (e.response?.status === 403 && r && !r._csrfRetried && zo(r.method)) {
3572
+ if (r._csrfRetried = !0, Ho(), Ro.defaults.baseURL = r.baseURL || Y.defaults.baseURL, await Ko(), !$) throw e;
3573
+ return Vo(r, $), Y.request(r);
3647
3574
  }
3648
3575
  if (e.response?.status === 401 && !globalThis.location.pathname.startsWith(t)) {
3649
3576
  let e = globalThis.location.pathname + globalThis.location.search;
@@ -3654,15 +3581,15 @@ function Xo(e = {}) {
3654
3581
  }
3655
3582
  //#endregion
3656
3583
  //#region src/lib/export-xlsx.ts
3657
- var Zo = /[[\]:*?/\\]/g, Qo = 31;
3658
- function $o(e) {
3659
- return e.replace(Zo, " ").trim().slice(0, Qo) || "Sheet1";
3584
+ var Jo = /[[\]:*?/\\]/g, Yo = 31;
3585
+ function Xo(e) {
3586
+ return e.replace(Jo, " ").trim().slice(0, Yo) || "Sheet1";
3660
3587
  }
3661
- function es(e) {
3588
+ function Zo(e) {
3662
3589
  return Array.isArray(e) ? e.join(", ") : e instanceof Date ? e.toISOString() : e;
3663
3590
  }
3664
- function ts(e, t, n, r) {
3665
- let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => es(e[t.key]))), o = Et.utils.aoa_to_sheet([i, ...a]);
3591
+ function Qo(e, t, n, r) {
3592
+ let i = t.map((e) => e.label), a = e.map((e) => t.map((t) => Zo(e[t.key]))), o = Ot.utils.aoa_to_sheet([i, ...a]);
3666
3593
  o["!cols"] = t.map((e, t) => {
3667
3594
  let n = e.label.length;
3668
3595
  for (let e of a) {
@@ -3671,8 +3598,8 @@ function ts(e, t, n, r) {
3671
3598
  }
3672
3599
  return { wch: Math.min(Math.max(n + 2, 12), 60) };
3673
3600
  });
3674
- let s = Et.utils.book_new();
3675
- Et.utils.book_append_sheet(s, o, $o(r ?? n)), Et.writeFile(s, `${n}.xlsx`);
3601
+ let s = Ot.utils.book_new();
3602
+ Ot.utils.book_append_sheet(s, o, Xo(r ?? n)), Ot.writeFile(s, `${n}.xlsx`);
3676
3603
  }
3677
3604
  //#endregion
3678
- export { tn as Accordion, an as AccordionContent, nn as AccordionItem, rn as AccordionTrigger, ro as AppFooter, io as AppSwitcher, on as Avatar, cn as AvatarFallback, sn as AvatarImage, po as BackendStatusBanner, fo as BackendStatusProvider, c as Badge, b as BadgeColorful, S as BadgeLocale, ln as Breadcrumb, hn as BreadcrumbEllipsis, dn as BreadcrumbItem, fn as BreadcrumbLink, un as BreadcrumbList, pn as BreadcrumbPage, jo as BreadcrumbProvider, mn as BreadcrumbSeparator, z as Button, gn as Card, bn as CardAction, xn as CardContent, yn as CardDescription, Sn as CardFooter, _n as CardHeader, vn as CardTitle, M as Checkbox, l as Dialog, h as DialogClose, C as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, Cn as Drawer, En as DrawerClose, On as DrawerContent, Mn as DrawerDescription, An as DrawerFooter, kn as DrawerHeader, Dn as DrawerOverlay, Tn as DrawerPortal, jn as DrawerTitle, wn as DrawerTrigger, I as DropdownMenu, ne as DropdownMenuCheckboxItem, O as DropdownMenuContent, j as DropdownMenuGroup, P as DropdownMenuItem, ie as DropdownMenuLabel, Ne as DropdownMenuPortal, ee as DropdownMenuRadioGroup, R as DropdownMenuRadioItem, A as DropdownMenuSeparator, se as DropdownMenuShortcut, ce as DropdownMenuSub, k as DropdownMenuSubContent, N as DropdownMenuSubTrigger, Te as DropdownMenuTrigger, mo as ErrorBoundary, Pe as FloatingFormulasBg, Pn as Form, Wn as FormActions, Vn as FormControl, Hn as FormDescription, In as FormField, zn as FormItem, Jn as FormItemTwoColumns, Bn as FormLabel, Un as FormMessage, Qn as GlassCard, v as GradientButton, Xn as GradientSwitch, er as HoverCard, nr as HoverCardContent, tr as HoverCardTrigger, F as IconPickerDialog, s as Input, Nn as Label, go as LanguageSelect, vo as LanguageSwitcher, Ha as Login, xo as ModeToggle, Co as ModeToggleSidebar, wo as NavSecondary, rr as NavigationMenu, cr as NavigationMenuContent, dr as NavigationMenuIndicator, ar as NavigationMenuItem, ur as NavigationMenuLink, ir as NavigationMenuList, sr as NavigationMenuTrigger, lr as NavigationMenuViewport, fr as Pagination, pr as PaginationContent, vr as PaginationEllipsis, mr as PaginationItem, hr as PaginationLink, _r as PaginationNext, gr as PaginationPrevious, oe as Popover, D as PopoverAnchor, E as PopoverContent, L as PopoverDescription, ye as PopoverHeader, T as PopoverTitle, ve as PopoverTrigger, yr as Progress, $n as PulseRing, ae as ResizableHandle, te as ResizablePanel, Ae as ResizablePanelGroup, fe as SectionCard, br as Select, wr as SelectContent, xr as SelectGroup, Er as SelectItem, Tr as SelectLabel, kr as SelectScrollDownButton, Or as SelectScrollUpButton, Dr as SelectSeparator, Cr as SelectTrigger, Sr as SelectValue, Ar as Separator, jr as Sheet, Nr as SheetClose, Ir as SheetContent, Br as SheetDescription, Rr as SheetFooter, Lr as SheetHeader, zr as SheetTitle, Mr as SheetTrigger, Zr as Sidebar, ai as SidebarContent, ri as SidebarFooter, oi as SidebarGroup, ci as SidebarGroupAction, li as SidebarGroupContent, si as SidebarGroupLabel, ni as SidebarHeader, ti as SidebarInput, ei as SidebarInset, ui as SidebarMenu, mi as SidebarMenuAction, hi as SidebarMenuBadge, pi as SidebarMenuButton, di as SidebarMenuItem, _i as SidebarMenuSkeleton, vi as SidebarMenuSub, bi as SidebarMenuSubButton, yi as SidebarMenuSubItem, Xr as SidebarProvider, $r as SidebarRail, ii as SidebarSeparator, Qr as SidebarTrigger, m as Skeleton, wi as Slider, no as StartupFirst, Pi as Stepper, Si as StickySaveBar, Li as Switch, Ri as Table, Bi as TableBody, Gi as TableCaption, Wi as TableCell, Vi as TableFooter, Ui as TableHead, zi as TableHeader, Hi as TableRow, be as Tabs, Oe as TabsContent, me as TabsList, he as TabsTrigger, Ki as Textarea, yo as ThemeProvider, we as Toaster, Ji as Toggle, Xi as ToggleGroup, Zi as ToggleGroupItem, ge as Tooltip, de as TooltipContent, ke as TooltipProvider, Me as TooltipTrigger, ji as Tree, Ee as UserAvatar, Oa as UserMenu, De as UserProvider, ga as VIGLET_ASSISTANT_SIZES, Eo as VigletAppSwitcher, Da as VigletAssistant, ha as VigletAvatar, w as badgeVariants, le as buttonVariants, r as cn, ts as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, pe as getUserInitials, x as gradientButtonVariants, Yn as gradientSwitchVariants, or as navigationMenuTriggerStyle, so as reportBackendOffline, co as reportBackendOnline, je as sectionCardColorVariants, Xo as setupAxiosInterceptors, xe as toast, qi as toggleVariants, Mi as treeFromPaths, e as truncateMiddle, Ro as useAssistantNotifications, uo as useBackendStatus, Mo as useBreadcrumb, No as useBreadcrumbOptional, Se as useCurrentUser, Oo as useDateLocale, Ln as useFormField, ko as useGridAdapter, _e as useIsMobile, Jr as useSidebar, Yr as useSidebarOptional, Po as useSubPageBreadcrumb, bo as useTheme };
3605
+ export { rn as Accordion, sn as AccordionContent, an as AccordionItem, on as AccordionTrigger, eo as AppFooter, to as AppSwitcher, cn as Avatar, un as AvatarFallback, ln as AvatarImage, lo as BackendStatusBanner, co as BackendStatusProvider, c as Badge, b as BadgeColorful, S as BadgeLocale, dn as Breadcrumb, _n as BreadcrumbEllipsis, pn as BreadcrumbItem, mn as BreadcrumbLink, fn as BreadcrumbList, hn as BreadcrumbPage, Oo as BreadcrumbProvider, gn as BreadcrumbSeparator, T as Button, vn as Card, Sn as CardAction, Cn as CardContent, xn as CardDescription, wn as CardFooter, yn as CardHeader, bn as CardTitle, oe as Checkbox, l as Dialog, h as DialogClose, C as DialogContent, u as DialogDescription, d as DialogFooter, y as DialogHeader, g as DialogOverlay, p as DialogPortal, f as DialogTitle, o as DialogTrigger, Tn as Drawer, On as DrawerClose, An as DrawerContent, Pn as DrawerDescription, Mn as DrawerFooter, jn as DrawerHeader, kn as DrawerOverlay, Dn as DrawerPortal, Nn as DrawerTitle, En as DrawerTrigger, M as DropdownMenu, se as DropdownMenuCheckboxItem, ze as DropdownMenuContent, te as DropdownMenuGroup, I as DropdownMenuItem, O as DropdownMenuLabel, ue as DropdownMenuPortal, de as DropdownMenuRadioGroup, D as DropdownMenuRadioItem, j as DropdownMenuSeparator, Ae as DropdownMenuShortcut, A as DropdownMenuSub, fe as DropdownMenuSubContent, L as DropdownMenuSubTrigger, pe as DropdownMenuTrigger, uo as ErrorBoundary, Be as FloatingFormulasBg, In as Form, Kn as FormActions, Un as FormControl, Wn as FormDescription, Rn as FormField, Vn as FormItem, Xn as FormItemTwoColumns, Hn as FormLabel, Gn as FormMessage, er as GlassCard, v as GradientButton, Qn as GradientSwitch, nr as HoverCard, ir as HoverCardContent, rr as HoverCardTrigger, k as IconPickerDialog, s as Input, Fn as Label, po as LanguageSelect, ho as LanguageSwitcher, za as Login, vo as ModeToggle, bo as ModeToggleSidebar, xo as NavSecondary, ar as NavigationMenu, ur as NavigationMenuContent, pr as NavigationMenuIndicator, sr as NavigationMenuItem, fr as NavigationMenuLink, or as NavigationMenuList, lr as NavigationMenuTrigger, dr as NavigationMenuViewport, mr as Pagination, hr as PaginationContent, br as PaginationEllipsis, gr as PaginationItem, _r as PaginationLink, yr as PaginationNext, vr as PaginationPrevious, Ce as Popover, ee as PopoverAnchor, Se as PopoverContent, N as PopoverDescription, P as PopoverHeader, ae as PopoverTitle, ie as PopoverTrigger, xr as Progress, tr as PulseRing, re as ResizableHandle, E as ResizablePanel, F as ResizablePanelGroup, Ie as SectionCard, Sr as Select, Er as SelectContent, Cr as SelectGroup, Or as SelectItem, Dr as SelectLabel, jr as SelectScrollDownButton, Ar as SelectScrollUpButton, kr as SelectSeparator, Tr as SelectTrigger, wr as SelectValue, Mr as Separator, Nr as Sheet, Fr as SheetClose, Rr as SheetContent, Hr as SheetDescription, Br as SheetFooter, zr as SheetHeader, Vr as SheetTitle, Pr as SheetTrigger, $r as Sidebar, si as SidebarContent, ai as SidebarFooter, ci as SidebarGroup, ui as SidebarGroupAction, di as SidebarGroupContent, li as SidebarGroupLabel, ii as SidebarHeader, ri as SidebarInput, ni as SidebarInset, fi as SidebarMenu, gi as SidebarMenuAction, _i as SidebarMenuBadge, hi as SidebarMenuButton, pi as SidebarMenuItem, yi as SidebarMenuSkeleton, bi as SidebarMenuSub, Si as SidebarMenuSubButton, xi as SidebarMenuSubItem, Qr as SidebarProvider, ti as SidebarRail, oi as SidebarSeparator, ei as SidebarTrigger, m as Skeleton, Ei as Slider, $a as StartupFirst, Ii as Stepper, wi as StickySaveBar, zi as Switch, Bi as Table, Hi as TableBody, qi as TableCaption, Ki as TableCell, Ui as TableFooter, Gi as TableHead, Vi as TableHeader, Wi as TableRow, ke as Tabs, Te as TabsContent, xe as TabsList, be as TabsTrigger, Ji as Textarea, go as ThemeProvider, R as Toaster, _e as Toggle, we as ToggleGroup, Pe as ToggleGroupItem, he as Tooltip, Le as TooltipContent, ce as TooltipProvider, ne as TooltipTrigger, Ni as Tree, je as UserAvatar, Ta as UserMenu, Me as UserProvider, pa as VIGLET_ASSISTANT_SIZES, Co as VigletAppSwitcher, wa as VigletAssistant, fa as VigletAvatar, w as badgeVariants, ve as buttonVariants, r as cn, Qo as exportToXlsx, t as getFlagEmoji, n as getHashedColor, _ as getLocaleCountryCode, ge as getUserInitials, x as gradientButtonVariants, Zn as gradientSwitchVariants, cr as navigationMenuTriggerStyle, io as reportBackendOffline, ao as reportBackendOnline, le as sectionCardColorVariants, qo as setupAxiosInterceptors, Fe as toast, ye as toggleVariants, Pi as treeFromPaths, e as truncateMiddle, Fo as useAssistantNotifications, so as useBackendStatus, ko as useBreadcrumb, Ao as useBreadcrumbOptional, Ee as useCurrentUser, To as useDateLocale, zn as useFormField, Eo as useGridAdapter, Re as useIsMobile, Xr as useSidebar, Zr as useSidebarOptional, jo as useSubPageBreadcrumb, _o as useTheme };