@viglet/viglet-design-system 2026.3.11 → 2026.3.12

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