@minimalstuff/ui 4.0.0 → 4.1.0

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.
@@ -99,35 +99,35 @@ function I({ name: e, src: t, size: n = "sm", color: r = "primary", radius: i =
99
99
  }
100
100
  //#endregion
101
101
  //#region src/components/badge/badge.tsx
102
- var ee = {
102
+ var L = {
103
103
  xs: "px-1.5 py-0.5 text-xs",
104
104
  sm: "px-2.5 py-1 text-sm",
105
105
  md: "px-3 py-1 text-base",
106
106
  lg: "px-3.5 py-1.5 text-lg"
107
- }, L = ({ children: e, color: t = "primary", variant: n = "subtle", size: r = "sm", radius: i = "md", className: a, ...o }) => /* @__PURE__ */ g("span", {
108
- className: x("inline-flex items-center gap-1 border", S[i], ee[r], A[t][n], a),
107
+ }, R = ({ children: e, color: t = "primary", variant: n = "subtle", size: r = "sm", radius: i = "md", className: a, ...o }) => /* @__PURE__ */ g("span", {
108
+ className: x("inline-flex items-center gap-1 border", S[i], L[r], A[t][n], a),
109
109
  ...o,
110
110
  children: e
111
- }), te = {
111
+ }), z = {
112
112
  xs: "px-2 py-1 text-xs",
113
113
  sm: "px-3 py-1.5 text-sm",
114
114
  md: "px-4 py-2 text-sm",
115
115
  lg: "px-4 py-3 text-base"
116
- }, ne = {
116
+ }, ee = {
117
117
  xs: "w-3.5 h-3.5",
118
118
  sm: "w-4 h-4",
119
119
  md: "w-4 h-4",
120
120
  lg: "w-5 h-5"
121
121
  };
122
- function R(e) {
123
- let { unstyled: t = !1, variant: n = "solid", color: r = "primary", size: i = "md", radius: a = "md", children: o, className: s, fullWidth: c = !1, loading: l = !1, startIcon: u, endIcon: d, disabled: f, ...p } = e, m = A[r], h = ne[i];
122
+ function te(e) {
123
+ let { unstyled: t = !1, variant: n = "solid", color: r = "primary", size: i = "md", radius: a = "md", children: o, className: s, fullWidth: c = !1, loading: l = !1, startIcon: u, endIcon: d, disabled: f, ...p } = e, m = A[r], h = ee[i];
124
124
  return /* @__PURE__ */ _("button", {
125
125
  type: "button",
126
126
  className: x(j, !t && [
127
127
  M,
128
128
  "gap-2 font-medium border",
129
129
  S[a],
130
- te[i],
130
+ z[i],
131
131
  m[n],
132
132
  m.focusOutline
133
133
  ], c && "w-full", s),
@@ -153,13 +153,13 @@ function R(e) {
153
153
  }
154
154
  //#endregion
155
155
  //#region src/components/shared/surface_tokens.ts
156
- var re = "border-gray-300 dark:border-gray-600", z = "bg-white dark:bg-gray-800", B = "border-gray-200 dark:border-gray-700", ie = "border-gray-100 dark:border-gray-800", V = "bg-white dark:bg-gray-900", H = {
156
+ var B = "border-gray-300 dark:border-gray-600", V = "bg-white dark:bg-gray-800", ne = "border-gray-200 dark:border-gray-700", H = "border-gray-100 dark:border-gray-800", re = "bg-white dark:bg-gray-900", U = {
157
157
  2: "h2",
158
158
  3: "h3",
159
159
  4: "h4"
160
160
  };
161
- function ae({ title: e, titleId: t, level: n, description: r, actions: i }) {
162
- let a = H[n];
161
+ function W({ title: e, titleId: t, level: n, description: r, actions: i }) {
162
+ let a = U[n];
163
163
  return /* @__PURE__ */ _("div", {
164
164
  className: "mb-4",
165
165
  children: [/* @__PURE__ */ _("div", {
@@ -177,13 +177,13 @@ function ae({ title: e, titleId: t, level: n, description: r, actions: i }) {
177
177
  }
178
178
  //#endregion
179
179
  //#region src/components/card/card.tsx
180
- var oe = {
180
+ var ie = {
181
181
  none: "",
182
182
  sm: "p-4",
183
183
  md: "p-6",
184
184
  lg: "p-8"
185
185
  };
186
- function U({ children: e, title: t, description: n, actions: r, headingLevel: i = 2, padding: a = "md", radius: o = "lg", unstyled: s = !1, className: c }) {
186
+ function ae({ children: e, title: t, description: n, actions: r, headingLevel: i = 2, padding: a = "md", radius: o = "lg", unstyled: s = !1, className: c }) {
187
187
  let u = l(), d = !!t;
188
188
  return /* @__PURE__ */ _("div", {
189
189
  role: d ? "region" : void 0,
@@ -193,9 +193,9 @@ function U({ children: e, title: t, description: n, actions: r, headingLevel: i
193
193
  "bg-white dark:bg-gray-800",
194
194
  "border-gray-200 dark:border-gray-700",
195
195
  S[o],
196
- oe[a]
196
+ ie[a]
197
197
  ], c),
198
- children: [d && /* @__PURE__ */ g(ae, {
198
+ children: [d && /* @__PURE__ */ g(W, {
199
199
  title: t,
200
200
  titleId: u,
201
201
  level: i,
@@ -206,50 +206,84 @@ function U({ children: e, title: t, description: n, actions: r, headingLevel: i
206
206
  }
207
207
  //#endregion
208
208
  //#region src/components/character_count/character_count.tsx
209
- var se = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right";
210
- function W(e, t) {
209
+ var G = "text-xs text-gray-500 dark:text-gray-400 mt-1 text-right";
210
+ function oe(e, t) {
211
211
  return t ? "" : e === "overLimit" ? "text-red-600 dark:text-red-400" : e === "atLimit" ? "text-amber-700 dark:text-amber-400" : "";
212
212
  }
213
- function ce({ current: e, min: t, max: n, showMin: r, showMax: i, unstyled: a = !1, id: o, className: s }) {
213
+ function K({ current: e, min: t, max: n, showMin: r, showMax: i, unstyled: a = !1, id: o, className: s }) {
214
214
  let c = r === !0 || i === !0, l = t !== void 0 && e <= t ? "atLimit" : "ok", u = n !== void 0 && e > n ? "overLimit" : n !== void 0 && e >= n ? "atLimit" : "ok", d = c ? `${e}/${t} min` : `${e} (min ${t})`, f = c ? `${e}/${n} max` : `${e}/${n}`;
215
215
  return /* @__PURE__ */ _("div", {
216
216
  id: o,
217
- className: x(!a && se, s),
217
+ className: x(!a && G, s),
218
218
  children: [
219
219
  r && t !== void 0 && /* @__PURE__ */ g("span", {
220
- className: W(l, a),
220
+ className: oe(l, a),
221
221
  children: d
222
222
  }),
223
223
  r && i && " · ",
224
224
  i && n !== void 0 && /* @__PURE__ */ g("span", {
225
- className: W(u, a),
225
+ className: oe(u, a),
226
226
  children: f
227
227
  }),
228
228
  !r && !i && n !== void 0 && /* @__PURE__ */ g("span", {
229
- className: W(u, a),
229
+ className: oe(u, a),
230
230
  children: f
231
231
  }),
232
232
  !r && !i && t !== void 0 && n === void 0 && /* @__PURE__ */ g("span", {
233
- className: W(l, a),
233
+ className: oe(l, a),
234
234
  children: d
235
235
  })
236
236
  ]
237
237
  });
238
238
  }
239
239
  //#endregion
240
+ //#region src/lib/merge_refs.ts
241
+ function se(...e) {
242
+ return (t) => {
243
+ for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
244
+ };
245
+ }
246
+ //#endregion
240
247
  //#region src/components/shared/join_ids.ts
241
- function G(...e) {
248
+ function q(...e) {
242
249
  return e.filter(Boolean).join(" ") || void 0;
243
250
  }
244
- var le = `w-full border ${re} ${z} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${T} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, ue = "text-sm font-medium text-gray-700 dark:text-gray-300", de = "text-xs text-gray-600 dark:text-gray-400", fe = "text-xs text-red-600 dark:text-red-400", pe = "border-red-500 dark:border-red-400", me = ({ id: e, error: t, className: n }) => t ? /* @__PURE__ */ g("p", {
245
- id: e,
246
- className: x(fe, n),
247
- role: "alert",
248
- children: t
249
- }) : null;
251
+ //#endregion
252
+ //#region src/components/shared/dash_icon.tsx
253
+ function ce() {
254
+ return /* @__PURE__ */ g("svg", {
255
+ className: "h-3 w-3 text-white",
256
+ viewBox: "0 0 12 12",
257
+ fill: "none",
258
+ stroke: "currentColor",
259
+ strokeWidth: "2.5",
260
+ strokeLinecap: "round",
261
+ children: /* @__PURE__ */ g("line", {
262
+ x1: "2.5",
263
+ y1: "6",
264
+ x2: "9.5",
265
+ y2: "6"
266
+ })
267
+ });
268
+ }
269
+ var le = `w-full border ${B} ${V} text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400 ${T} transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed`, ue = "text-sm font-medium text-gray-700 dark:text-gray-300", de = "text-xs text-gray-600 dark:text-gray-400", fe = "text-xs text-red-600 dark:text-red-400", pe = "border-red-500 dark:border-red-400", me = r(!0);
270
+ function he() {
271
+ return s(me);
272
+ }
273
+ //#endregion
274
+ //#region src/components/shared/field_error.tsx
275
+ var J = ({ id: e, error: t, className: n }) => {
276
+ let r = he();
277
+ return t ? /* @__PURE__ */ g("p", {
278
+ id: e,
279
+ className: x(fe, n),
280
+ role: r ? "alert" : void 0,
281
+ children: t
282
+ }) : null;
283
+ };
250
284
  //#endregion
251
285
  //#region src/components/shared/use_field_ids.ts
252
- function K(e) {
286
+ function Y(e) {
253
287
  let t = l(), n = e ?? t;
254
288
  return {
255
289
  fieldId: n,
@@ -261,7 +295,7 @@ function K(e) {
261
295
  }
262
296
  //#endregion
263
297
  //#region src/components/shared/checkmark_icon.tsx
264
- function he() {
298
+ function ge() {
265
299
  return /* @__PURE__ */ g("svg", {
266
300
  className: "h-3 w-3 text-white",
267
301
  viewBox: "0 0 12 12",
@@ -275,7 +309,7 @@ function he() {
275
309
  }
276
310
  //#endregion
277
311
  //#region src/components/shared/field_description.tsx
278
- var ge = ({ id: e, description: t, className: n }) => t ? typeof t == "string" ? /* @__PURE__ */ g("p", {
312
+ var _e = ({ id: e, description: t, className: n }) => t ? typeof t == "string" ? /* @__PURE__ */ g("p", {
279
313
  id: e,
280
314
  className: x(de, n),
281
315
  children: t
@@ -286,7 +320,7 @@ var ge = ({ id: e, description: t, className: n }) => t ? typeof t == "string" ?
286
320
  }) : null;
287
321
  //#endregion
288
322
  //#region src/components/shared/option_card_styles.ts
289
- function _e(e) {
323
+ function ve(e) {
290
324
  let { isSelected: t, isError: n, isDisabled: r, radius: i, unstyled: a } = e;
291
325
  return x("flex cursor-pointer items-start gap-3 transition-colors duration-150", E, n ? O : D, !a && [
292
326
  S[i],
@@ -294,13 +328,13 @@ function _e(e) {
294
328
  t ? n ? x("border-red-500 dark:border-red-400", "bg-red-50 dark:bg-red-950/20") : "border-blue-500 bg-blue-50 dark:border-blue-500 dark:bg-blue-950/25" : n ? "border-red-300 bg-white dark:border-red-800/50 dark:bg-gray-800/50" : x("border-gray-200 dark:border-gray-700", "bg-gray-50 hover:border-gray-300 hover:bg-white dark:bg-gray-800/50 dark:hover:border-gray-600 dark:hover:bg-gray-800")
295
329
  ], r && "cursor-not-allowed opacity-50");
296
330
  }
297
- function ve(e) {
331
+ function ye(e) {
298
332
  let { isSelected: t, isError: n } = e;
299
- return t ? n ? pe : "border-blue-600 dark:border-blue-500" : n ? "border-red-400 dark:border-red-600" : re;
333
+ return t ? n ? pe : "border-blue-600 dark:border-blue-500" : n ? "border-red-400 dark:border-red-600" : B;
300
334
  }
301
335
  //#endregion
302
336
  //#region src/components/shared/use_controlled_state.ts
303
- function ye(e, t) {
337
+ function be(e, t) {
304
338
  let [n, r] = p(t), i = e !== void 0, a = o((e) => {
305
339
  i || r(e);
306
340
  }, [i]);
@@ -308,7 +342,7 @@ function ye(e, t) {
308
342
  }
309
343
  //#endregion
310
344
  //#region src/components/checkbox/checkbox.tsx
311
- function be(e, t, n) {
345
+ function xe(e, t, n) {
312
346
  return e === void 0 ? null : typeof e == "string" ? /* @__PURE__ */ _("span", {
313
347
  className: t,
314
348
  children: [e, n && /* @__PURE__ */ g("span", {
@@ -320,71 +354,95 @@ function be(e, t, n) {
320
354
  children: "*"
321
355
  })] });
322
356
  }
323
- function xe({ label: e, description: t, error: n, radius: r = "sm", unstyled: i = !1, fullWidth: a = !1, variant: o = "inline", className: s, wrapperClassName: c, checked: l, defaultChecked: u = !1, onChange: d, id: f, "aria-describedby": p, ...m }) {
324
- let { fieldId: h, errorId: v, descriptionId: y } = K(f), [b, C] = ye(l, u), w = o === "card", T = G(p, !!t && y, n && v), E = (e) => {
325
- C(e.target.checked), d?.(e);
326
- }, D = w ? _e({
327
- isSelected: b,
328
- isError: !!n,
329
- isDisabled: m.disabled === !0,
330
- radius: r,
331
- unstyled: i
332
- }) : x("flex items-start gap-3 cursor-pointer", m.disabled && "cursor-not-allowed opacity-50"), O = w ? x("select-none text-sm font-medium", b ? n ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300") : x(ue, "select-none"), k = x("relative shrink-0", S[r], !w && ["has-[:focus-visible]:outline-none has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-white dark:has-[:focus-visible]:ring-offset-gray-900", n ? "has-[:focus-visible]:ring-red-500" : "has-[:focus-visible]:ring-blue-500"]), A = be(e, O, m.required === !0);
357
+ function Se({ label: e, indeterminate: t = !1, description: n, error: r, radius: i = "sm", unstyled: a = !1, fullWidth: o = !1, variant: s = "inline", className: l, wrapperClassName: u, checked: p, defaultChecked: m = !1, onChange: h, id: v, "aria-describedby": y, ref: b, ...C }) {
358
+ let { fieldId: w, errorId: T, descriptionId: E } = Y(v), [D, O] = be(p, m), k = f(null), A = s === "card", j = D || t, M = q(y, !!n && E, r && T), N = d(() => se(k, b), [b]);
359
+ c(() => {
360
+ k.current && (k.current.indeterminate = t);
361
+ });
362
+ let P = (e) => {
363
+ e.target.indeterminate = t, O(e.target.checked), h?.(e);
364
+ }, F = A ? ve({
365
+ isSelected: j,
366
+ isError: !!r,
367
+ isDisabled: C.disabled === !0,
368
+ radius: i,
369
+ unstyled: a
370
+ }) : x("flex items-start gap-3 cursor-pointer", C.disabled && "cursor-not-allowed opacity-50"), I = A ? x("select-none text-sm font-medium", j ? r ? "text-red-700 dark:text-red-300" : "text-blue-700 dark:text-blue-300" : "text-gray-700 dark:text-gray-300") : x(ue, "select-none"), L = x("relative shrink-0", S[i], !A && ["has-[:focus-visible]:outline-none has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-white dark:has-[:focus-visible]:ring-offset-gray-900", r ? "has-[:focus-visible]:ring-red-500" : "has-[:focus-visible]:ring-blue-500"]), R = xe(e, I, C.required === !0);
333
371
  return /* @__PURE__ */ _("div", {
334
- className: x(a ? "w-full" : "w-fit", c),
372
+ className: x(o ? "w-full" : "w-fit", u),
335
373
  children: [
336
374
  /* @__PURE__ */ _("label", {
337
- htmlFor: h,
338
- className: D,
375
+ htmlFor: w,
376
+ className: F,
339
377
  children: [/* @__PURE__ */ _("span", {
340
- className: k,
378
+ className: L,
341
379
  children: [/* @__PURE__ */ g("input", {
342
380
  type: "checkbox",
343
- id: h,
381
+ ref: N,
382
+ id: w,
344
383
  className: "sr-only",
345
- checked: b,
346
- onChange: E,
347
- "aria-invalid": !!n,
348
- "aria-describedby": T,
349
- ...m
384
+ checked: D,
385
+ onChange: P,
386
+ "aria-invalid": !!r,
387
+ "aria-describedby": M,
388
+ ...C
350
389
  }), /* @__PURE__ */ g("span", {
351
- className: x("flex h-5 w-5 items-center justify-center transition-all duration-200", !i && [
352
- S[r],
390
+ className: x("flex h-5 w-5 items-center justify-center transition-all duration-200", !a && [
391
+ S[i],
353
392
  "border-2",
354
- b ? x("border-blue-600 dark:border-blue-500", "bg-blue-600 dark:bg-blue-500") : x("border-gray-300 dark:border-gray-600", "bg-white dark:bg-gray-800"),
355
- n && "border-red-500 dark:border-red-400"
356
- ], s),
393
+ j ? x("border-blue-600 dark:border-blue-500", "bg-blue-600 dark:bg-blue-500") : x("border-gray-300 dark:border-gray-600", "bg-white dark:bg-gray-800"),
394
+ r && "border-red-500 dark:border-red-400"
395
+ ], l),
357
396
  "aria-hidden": !0,
358
- children: b && /* @__PURE__ */ g(he, {})
397
+ children: t ? /* @__PURE__ */ g(ce, {}) : D && /* @__PURE__ */ g(ge, {})
359
398
  })]
360
- }), w ? /* @__PURE__ */ _("span", {
399
+ }), A ? /* @__PURE__ */ _("span", {
361
400
  className: "flex min-w-0 flex-col",
362
- children: [A, t && /* @__PURE__ */ g("span", {
363
- id: y,
401
+ children: [R, n && /* @__PURE__ */ g("span", {
402
+ id: E,
364
403
  className: x("text-xs text-gray-600 dark:text-gray-400", "mt-0.5"),
365
- children: t
404
+ children: n
366
405
  })]
367
- }) : A]
406
+ }) : R]
368
407
  }),
369
- !w && /* @__PURE__ */ g(ge, {
370
- id: y,
371
- description: t,
408
+ !A && /* @__PURE__ */ g(_e, {
409
+ id: E,
410
+ description: n,
372
411
  className: "mt-1 ml-8"
373
412
  }),
374
- /* @__PURE__ */ g(me, {
375
- id: v,
376
- error: n,
377
- className: w ? "mt-1" : "mt-1 ml-8"
413
+ /* @__PURE__ */ g(J, {
414
+ id: T,
415
+ error: r,
416
+ className: A ? "mt-1" : "mt-1 ml-8"
378
417
  })
379
418
  ]
380
419
  });
381
420
  }
421
+ var Ce = r({
422
+ close: "Close",
423
+ confirm: "Confirm",
424
+ cancel: "Cancel",
425
+ noResults: "No results found",
426
+ clearSelection: "Clear selection",
427
+ search: "Search",
428
+ clear: "Clear",
429
+ required: "required",
430
+ currentTheme: (e) => `Current theme: ${e}`,
431
+ overflowCount: (e) => `+${e} more`,
432
+ selectedCount: (e) => `${e} selected`,
433
+ maxSelectedHint: (e) => `You can select up to ${e} items`
434
+ });
435
+ //#endregion
436
+ //#region src/components/ui_provider/use_labels.ts
437
+ function we() {
438
+ return s(Ce);
439
+ }
382
440
  //#endregion
383
441
  //#region src/components/shared/option_row.tsx
384
- function Se({ item: e, htmlFor: t, descriptionId: n, orientation: r, isSelected: i, isDisabled: a, isError: o, radius: s, unstyled: c, className: l, control: u, indicator: d }) {
442
+ function Te({ item: e, htmlFor: t, descriptionId: n, orientation: r, isSelected: i, isDisabled: a, isError: o, radius: s, unstyled: c, className: l, control: u, indicator: d }) {
385
443
  return /* @__PURE__ */ _("label", {
386
444
  htmlFor: t,
387
- className: x(_e({
445
+ className: x(ve({
388
446
  isSelected: i,
389
447
  isError: o,
390
448
  isDisabled: a,
@@ -416,9 +474,9 @@ function Se({ item: e, htmlFor: t, descriptionId: n, orientation: r, isSelected:
416
474
  }
417
475
  //#endregion
418
476
  //#region src/components/checkbox_options/checkbox_option_row.tsx
419
- function Ce({ option: e, optionId: t, descriptionId: n, name: r, orientation: i, isSelected: a, isDisabled: o, error: s, radius: c, unstyled: l, className: u, onToggle: d }) {
477
+ function Ee({ option: e, optionId: t, descriptionId: n, name: r, orientation: i, isSelected: a, isDisabled: o, error: s, radius: c, unstyled: l, className: u, onToggle: d }) {
420
478
  let f = !!s;
421
- return /* @__PURE__ */ g(Se, {
479
+ return /* @__PURE__ */ g(Te, {
422
480
  item: e,
423
481
  htmlFor: t,
424
482
  descriptionId: n,
@@ -442,33 +500,33 @@ function Ce({ option: e, optionId: t, descriptionId: n, name: r, orientation: i,
442
500
  className: "sr-only"
443
501
  }),
444
502
  indicator: /* @__PURE__ */ g("span", {
445
- className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border-2 transition-colors duration-150", S.sm, ve({
503
+ className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center border-2 transition-colors duration-150", S.sm, ye({
446
504
  isSelected: a,
447
505
  isError: f
448
506
  }), a && (f ? "bg-red-500 dark:bg-red-400" : "bg-blue-600 dark:bg-blue-500")),
449
507
  "aria-hidden": !0,
450
- children: a && /* @__PURE__ */ g(he, {})
508
+ children: a && /* @__PURE__ */ g(ge, {})
451
509
  })
452
510
  });
453
511
  }
454
512
  //#endregion
455
513
  //#region src/components/checkbox_options/checkbox_options.tsx
456
- function we(e, t, n) {
514
+ function De(e, t, n) {
457
515
  let r = t.includes(n) ? t.filter((e) => e !== n) : [...t, n];
458
516
  return e.map((e) => e.value).filter((e) => r.includes(e));
459
517
  }
460
- function Te({ options: e, orientation: t = "vertical", values: n, defaultValues: r, onChange: i, name: a, label: o, error: s, required: c, requiredLabel: l = "required", disabled: u, radius: d = "lg", unstyled: f = !1, className: p, wrapperClassName: m, id: v, "aria-describedby": y, ...b }) {
461
- let { fieldId: S, errorId: C } = K(v), w = a ?? S, [T, E] = ye(n, r ?? []), D = e.map((e) => typeof e == "string" ? {
518
+ function Oe({ options: e, orientation: t = "vertical", values: n, defaultValues: r, onChange: i, name: a, label: o, error: s, required: c, requiredLabel: l, disabled: u, radius: d = "lg", unstyled: f = !1, className: p, wrapperClassName: m, id: v, "aria-describedby": y, ...b }) {
519
+ let S = we(), { fieldId: C, errorId: w } = Y(v), T = a ?? C, [E, D] = be(n, r ?? []), O = e.map((e) => typeof e == "string" ? {
462
520
  value: e,
463
521
  label: e
464
- } : e), O = (e) => {
465
- let t = we(D, T, e);
466
- E(t), i?.(t);
522
+ } : e), k = (e) => {
523
+ let t = De(O, E, e);
524
+ D(t), i?.(t);
467
525
  };
468
526
  return /* @__PURE__ */ _("fieldset", {
469
527
  className: x("m-0 border-0 p-0", m),
470
528
  disabled: u,
471
- "aria-describedby": G(y, s && C),
529
+ "aria-describedby": q(y, s && w),
472
530
  ...b,
473
531
  children: [
474
532
  o && /* @__PURE__ */ _("legend", {
@@ -479,28 +537,28 @@ function Te({ options: e, orientation: t = "vertical", values: n, defaultValues:
479
537
  children: "*"
480
538
  }), /* @__PURE__ */ g("span", {
481
539
  className: "sr-only",
482
- children: ` (${l})`
540
+ children: ` (${l ?? S.required})`
483
541
  })] })]
484
542
  }),
485
543
  /* @__PURE__ */ g("div", {
486
544
  className: x(t === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
487
- children: D.map((e, n) => /* @__PURE__ */ g(Ce, {
545
+ children: O.map((e, n) => /* @__PURE__ */ g(Ee, {
488
546
  option: e,
489
- optionId: `${S}-${n}`,
490
- descriptionId: `${S}-${n}-desc`,
491
- name: w,
547
+ optionId: `${C}-${n}`,
548
+ descriptionId: `${C}-${n}-desc`,
549
+ name: T,
492
550
  orientation: t,
493
- isSelected: T.includes(e.value),
551
+ isSelected: E.includes(e.value),
494
552
  isDisabled: u === !0 || e.disabled === !0,
495
553
  error: s,
496
554
  radius: d,
497
555
  unstyled: f,
498
556
  className: p,
499
- onToggle: O
557
+ onToggle: k
500
558
  }, e.value))
501
559
  }),
502
- /* @__PURE__ */ g(me, {
503
- id: C,
560
+ /* @__PURE__ */ g(J, {
561
+ id: w,
504
562
  error: s,
505
563
  className: "mt-2"
506
564
  })
@@ -509,7 +567,7 @@ function Te({ options: e, orientation: t = "vertical", values: n, defaultValues:
509
567
  }
510
568
  //#endregion
511
569
  //#region src/hooks/use_is_client/use_is_client.tsx
512
- var Ee = () => {
570
+ var ke = () => {
513
571
  let [e, t] = p(!1);
514
572
  return c(() => {
515
573
  requestAnimationFrame(() => {
@@ -519,43 +577,48 @@ var Ee = () => {
519
577
  };
520
578
  //#endregion
521
579
  //#region src/components/client_only/client_only.tsx
522
- function De({ children: e, fallback: t }) {
523
- return Ee() ? /* @__PURE__ */ g(h, { children: e }) : t ?? null;
580
+ function Ae({ children: e, fallback: t }) {
581
+ return ke() ? /* @__PURE__ */ g(h, { children: e }) : t ?? null;
524
582
  }
525
583
  //#endregion
526
584
  //#region src/components/shared/field.tsx
527
- var Oe = ({ fieldId: e, errorId: t, label: n, error: r, required: i = !1, wrapperClassName: a, children: o }) => /* @__PURE__ */ _("div", {
528
- className: x("w-full", a),
585
+ var je = ({ fieldId: e, errorId: t, descriptionId: n, label: r, description: i, error: a, required: o = !1, wrapperClassName: s, children: c }) => /* @__PURE__ */ _("div", {
586
+ className: x("w-full", s),
529
587
  children: [
530
- n !== void 0 && (typeof n == "string" ? /* @__PURE__ */ _("label", {
588
+ r !== void 0 && (typeof r == "string" ? /* @__PURE__ */ _("label", {
531
589
  id: `${e}-label`,
532
590
  className: x("text-sm font-medium text-gray-700 dark:text-gray-300", "block mb-1"),
533
591
  htmlFor: e,
534
- children: [n, i && /* @__PURE__ */ g("span", {
592
+ children: [r, o && /* @__PURE__ */ g("span", {
535
593
  className: "text-red-500 dark:text-red-400 ml-1",
536
594
  "aria-hidden": "true",
537
595
  children: "*"
538
596
  })]
539
- }) : /* @__PURE__ */ _(h, { children: [n, i && /* @__PURE__ */ g("span", {
597
+ }) : /* @__PURE__ */ _(h, { children: [r, o && /* @__PURE__ */ g("span", {
540
598
  className: "text-red-500 dark:text-red-400 ml-1",
541
599
  "aria-hidden": "true",
542
600
  children: "*"
543
601
  })] })),
544
- o,
545
- /* @__PURE__ */ g(me, {
602
+ c,
603
+ n && /* @__PURE__ */ g(_e, {
604
+ id: n,
605
+ description: i,
606
+ className: "mt-1"
607
+ }),
608
+ /* @__PURE__ */ g(J, {
546
609
  id: t,
547
- error: r,
610
+ error: a,
548
611
  className: "mt-1"
549
612
  })
550
613
  ]
551
- }), ke = -1;
552
- function Ae(e, t) {
553
- return e >= 0 && e < t ? e : ke;
614
+ }), Me = -1;
615
+ function Ne(e, t) {
616
+ return e >= 0 && e < t ? e : Me;
554
617
  }
555
- function je({ optionCount: e, getOptionId: t, isOpen: n }) {
556
- let [r, i] = p(ke), a = Ae(r, e), s = o((t) => {
618
+ function Pe({ optionCount: e, getOptionId: t, isOpen: n }) {
619
+ let [r, i] = p(Me), a = Ne(r, e), s = o((t) => {
557
620
  e !== 0 && i((n) => {
558
- let r = Ae(n, e) + t;
621
+ let r = Ne(n, e) + t;
559
622
  return r < 0 ? e - 1 : r >= e ? 0 : r;
560
623
  });
561
624
  }, [e]), l = o(() => {
@@ -563,7 +626,7 @@ function je({ optionCount: e, getOptionId: t, isOpen: n }) {
563
626
  }, []), u = o(() => {
564
627
  i(e - 1);
565
628
  }, [e]), d = o(() => {
566
- i(ke);
629
+ i(Me);
567
630
  }, []), f = n && a >= 0 ? t(a) : void 0;
568
631
  return c(() => {
569
632
  f !== void 0 && document.getElementById(f)?.scrollIntoView?.({ block: "nearest" });
@@ -578,61 +641,61 @@ function je({ optionCount: e, getOptionId: t, isOpen: n }) {
578
641
  }
579
642
  //#endregion
580
643
  //#region src/components/combobox/combobox.tsx
581
- function Me({ options: e, label: t, "aria-label": n, error: r, placeholder: i, noResultsText: a = "No results found", clearLabel: o = "Clear selection", radius: s = "md", unstyled: c = !1, disabled: l = !1, required: u = !1, className: m, wrapperClassName: h, value: v, defaultValue: y = "", onChange: b, id: C }) {
582
- let { fieldId: w, errorId: T } = K(C), E = `${w}-listbox`, D = f(null), [O, k] = ye(v, y), j = e.find((e) => e.value === O), [M, N] = p(""), [P, F] = p(!1), [I, ee] = p(!1), L = d(() => P ? e.filter((e) => e.label.toLowerCase().includes(M.toLowerCase())) : e, [
644
+ function Fe({ options: e, label: t, "aria-label": n, error: r, placeholder: i, noResultsText: a, clearLabel: o, radius: s = "md", unstyled: c = !1, disabled: l = !1, required: u = !1, className: m, wrapperClassName: h, value: v, defaultValue: y = "", onChange: b, id: C }) {
645
+ let w = we(), { fieldId: T, errorId: E } = Y(C), D = `${T}-listbox`, O = f(null), [k, j] = be(v, y), M = e.find((e) => e.value === k), [N, P] = p(""), [F, I] = p(!1), [L, R] = p(!1), z = d(() => F ? e.filter((e) => e.label.toLowerCase().includes(N.toLowerCase())) : e, [
583
646
  e,
584
- P,
585
- M
586
- ]), { activeIndex: te, activeOptionId: ne, move: R, first: re, last: z, reset: B } = je({
587
- optionCount: L.length,
588
- getOptionId: (e) => `${E}-option-${e}`,
589
- isOpen: I
590
- }), ie = I ? M : j?.label ?? "", V = () => {
591
- l || (N(j?.label ?? ""), F(!1), ee(!0), B());
592
- }, H = () => {
593
- ee(!1), F(!1), B();
594
- }, ae = (e) => {
595
- k(e.value), b?.(e.value), H();
647
+ F,
648
+ N
649
+ ]), { activeIndex: ee, activeOptionId: te, move: B, first: V, last: ne, reset: H } = Pe({
650
+ optionCount: z.length,
651
+ getOptionId: (e) => `${D}-option-${e}`,
652
+ isOpen: L
653
+ }), re = L ? N : M?.label ?? "", U = () => {
654
+ l || (P(M?.label ?? ""), I(!1), R(!0), H());
655
+ }, W = () => {
656
+ R(!1), I(!1), H();
657
+ }, ie = (e) => {
658
+ j(e.value), b?.(e.value), W();
659
+ }, ae = () => {
660
+ j(""), b?.(""), P(""), O.current?.focus();
661
+ }, G = (e) => {
662
+ P(e.target.value), I(!0), R(!0), V();
596
663
  }, oe = () => {
597
- k(""), b?.(""), N(""), D.current?.focus();
598
- }, U = (e) => {
599
- N(e.target.value), F(!0), ee(!0), re();
600
- }, se = () => {
601
- I || V();
602
- }, W = (e) => {
664
+ L || U();
665
+ }, K = (e) => {
603
666
  if (e.preventDefault(), e.altKey) {
604
- I || V();
667
+ L || U();
605
668
  return;
606
669
  }
607
- if (!I) {
608
- V(), re();
670
+ if (!L) {
671
+ U(), V();
609
672
  return;
610
673
  }
611
- R(1);
612
- }, ce = (e) => {
674
+ B(1);
675
+ }, se = (e) => {
613
676
  if (e.preventDefault(), e.altKey) {
614
- I && H();
677
+ L && W();
615
678
  return;
616
679
  }
617
- if (!I) {
618
- V(), z();
680
+ if (!L) {
681
+ U(), ne();
619
682
  return;
620
683
  }
621
- R(-1);
622
- }, G = (e) => {
623
- if (!I) return;
624
- let t = L[te];
684
+ B(-1);
685
+ }, q = (e) => {
686
+ if (!L) return;
687
+ let t = z[ee];
625
688
  if (!t) {
626
- H();
689
+ W();
627
690
  return;
628
691
  }
629
- e.preventDefault(), ae(t);
630
- }, ue = (e) => {
631
- I && (e.preventDefault(), H());
692
+ e.preventDefault(), ie(t);
693
+ }, ce = (e) => {
694
+ L && (e.preventDefault(), W());
632
695
  };
633
- return /* @__PURE__ */ g(Oe, {
634
- fieldId: w,
635
- errorId: T,
696
+ return /* @__PURE__ */ g(je, {
697
+ fieldId: T,
698
+ errorId: E,
636
699
  label: t,
637
700
  error: r,
638
701
  required: u,
@@ -645,51 +708,51 @@ function Me({ options: e, label: t, "aria-label": n, error: r, placeholder: i, n
645
708
  "aria-hidden": !0
646
709
  }),
647
710
  /* @__PURE__ */ g("input", {
648
- ref: D,
649
- id: w,
711
+ ref: O,
712
+ id: T,
650
713
  role: "combobox",
651
714
  type: "text",
652
715
  autoComplete: "off",
653
716
  disabled: l,
654
717
  placeholder: i,
655
- value: ie,
656
- onChange: U,
657
- onClick: se,
658
- onBlur: H,
718
+ value: re,
719
+ onChange: G,
720
+ onClick: oe,
721
+ onBlur: W,
659
722
  onKeyDown: (e) => {
660
- if (e.key === "ArrowDown") return W(e);
661
- if (e.key === "ArrowUp") return ce(e);
662
- if (e.key === "Enter") return G(e);
663
- if (e.key === "Escape") return ue(e);
723
+ if (e.key === "ArrowDown") return K(e);
724
+ if (e.key === "ArrowUp") return se(e);
725
+ if (e.key === "Enter") return q(e);
726
+ if (e.key === "Escape") return ce(e);
664
727
  },
665
- "aria-expanded": I,
666
- "aria-controls": E,
728
+ "aria-expanded": L,
729
+ "aria-controls": D,
667
730
  "aria-autocomplete": "list",
668
731
  "aria-label": n,
669
- "aria-activedescendant": ne,
732
+ "aria-activedescendant": te,
670
733
  "aria-invalid": !!r,
671
734
  "aria-required": u || void 0,
672
- "aria-describedby": r ? T : void 0,
735
+ "aria-describedby": r ? E : void 0,
673
736
  className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !c && [
674
737
  le,
675
738
  S[s],
676
739
  "pl-9 pr-8 py-2 text-sm"
677
740
  ], !c && r && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), m)
678
741
  }),
679
- !c && j && !l && /* @__PURE__ */ g("button", {
742
+ !c && M && !l && /* @__PURE__ */ g("button", {
680
743
  type: "button",
681
- "aria-label": o,
744
+ "aria-label": o ?? w.clearSelection,
682
745
  onMouseDown: (e) => {
683
746
  e.preventDefault();
684
747
  },
685
- onClick: oe,
748
+ onClick: ae,
686
749
  className: x("absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300", "outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2", A.primary.focusOutline),
687
750
  children: /* @__PURE__ */ g("span", {
688
751
  className: "i-mdi-close block w-4 h-4",
689
752
  "aria-hidden": !0
690
753
  })
691
754
  }),
692
- I && /* @__PURE__ */ _("div", {
755
+ L && /* @__PURE__ */ _("div", {
693
756
  className: x("absolute z-10 mt-1 w-full text-sm shadow-lg", !c && [
694
757
  "border",
695
758
  "bg-white dark:bg-gray-900",
@@ -697,22 +760,22 @@ function Me({ options: e, label: t, "aria-label": n, error: r, placeholder: i, n
697
760
  S[s]
698
761
  ]),
699
762
  children: [/* @__PURE__ */ g("ul", {
700
- id: E,
763
+ id: D,
701
764
  role: "listbox",
702
765
  className: "max-h-60 overflow-auto py-1",
703
- children: L.map((e, t) => /* @__PURE__ */ g("li", {
704
- id: `${E}-option-${t}`,
766
+ children: z.map((e, t) => /* @__PURE__ */ g("li", {
767
+ id: `${D}-option-${t}`,
705
768
  role: "option",
706
- "aria-selected": e.value === O,
769
+ "aria-selected": e.value === k,
707
770
  onMouseDown: (e) => e.preventDefault(),
708
- onClick: () => ae(e),
709
- className: x("px-3 py-2 cursor-pointer text-gray-900 dark:text-gray-100", t === te ? x("bg-blue-50 dark:bg-blue-900/40", "outline-2 -outline-offset-2 outline-blue-500 dark:outline-blue-400") : "hover:bg-gray-50 dark:hover:bg-gray-800/60", e.value === O && "font-medium"),
771
+ onClick: () => ie(e),
772
+ className: x("px-3 py-2 cursor-pointer text-gray-900 dark:text-gray-100", t === ee ? x("bg-blue-50 dark:bg-blue-900/40", "outline-2 -outline-offset-2 outline-blue-500 dark:outline-blue-400") : "hover:bg-gray-50 dark:hover:bg-gray-800/60", e.value === k && "font-medium"),
710
773
  children: e.label
711
774
  }, e.value))
712
775
  }), /* @__PURE__ */ g("div", {
713
776
  role: "status",
714
- className: L.length === 0 ? "px-3 py-2 text-gray-500 dark:text-gray-400" : void 0,
715
- children: L.length === 0 ? a : ""
777
+ className: z.length === 0 ? "px-3 py-2 text-gray-500 dark:text-gray-400" : void 0,
778
+ children: z.length === 0 ? a ?? w.noResults : ""
716
779
  })]
717
780
  })
718
781
  ]
@@ -721,75 +784,75 @@ function Me({ options: e, label: t, "aria-label": n, error: r, placeholder: i, n
721
784
  }
722
785
  //#endregion
723
786
  //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
724
- var q = Math.min, Ne = Math.max, Pe = Math.round, Fe = Math.floor, J = (e) => ({
787
+ var Ie = Math.min, Le = Math.max, Re = Math.round, ze = Math.floor, X = (e) => ({
725
788
  x: e,
726
789
  y: e
727
- }), Ie = {
790
+ }), Be = {
728
791
  left: "right",
729
792
  right: "left",
730
793
  bottom: "top",
731
794
  top: "bottom"
732
795
  };
733
- function Le(e, t, n) {
734
- return Ne(e, q(t, n));
796
+ function Ve(e, t, n) {
797
+ return Le(e, Ie(t, n));
735
798
  }
736
- function Re(e, t) {
799
+ function He(e, t) {
737
800
  return typeof e == "function" ? e(t) : e;
738
801
  }
739
- function ze(e) {
802
+ function Ue(e) {
740
803
  return e.split("-")[0];
741
804
  }
742
- function Be(e) {
805
+ function We(e) {
743
806
  return e.split("-")[1];
744
807
  }
745
- function Ve(e) {
808
+ function Ge(e) {
746
809
  return e === "x" ? "y" : "x";
747
810
  }
748
- function He(e) {
811
+ function Ke(e) {
749
812
  return e === "y" ? "height" : "width";
750
813
  }
751
- function Y(e) {
814
+ function qe(e) {
752
815
  let t = e[0];
753
816
  return t === "t" || t === "b" ? "y" : "x";
754
817
  }
755
- function Ue(e) {
756
- return Ve(Y(e));
818
+ function Je(e) {
819
+ return Ge(qe(e));
757
820
  }
758
- function We(e, t, n) {
821
+ function Ye(e, t, n) {
759
822
  n === void 0 && (n = !1);
760
- let r = Be(e), i = Ue(e), a = He(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
761
- return t.reference[a] > t.floating[a] && (o = $e(o)), [o, $e(o)];
823
+ let r = We(e), i = Je(e), a = Ke(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
824
+ return t.reference[a] > t.floating[a] && (o = it(o)), [o, it(o)];
762
825
  }
763
- function Ge(e) {
764
- let t = $e(e);
826
+ function Xe(e) {
827
+ let t = it(e);
765
828
  return [
766
- Ke(e),
829
+ Ze(e),
767
830
  t,
768
- Ke(t)
831
+ Ze(t)
769
832
  ];
770
833
  }
771
- function Ke(e) {
834
+ function Ze(e) {
772
835
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
773
836
  }
774
- var qe = ["left", "right"], Je = ["right", "left"], Ye = ["top", "bottom"], Xe = ["bottom", "top"];
775
- function Ze(e, t, n) {
837
+ var Qe = ["left", "right"], $e = ["right", "left"], et = ["top", "bottom"], tt = ["bottom", "top"];
838
+ function nt(e, t, n) {
776
839
  switch (e) {
777
840
  case "top":
778
- case "bottom": return n ? t ? Je : qe : t ? qe : Je;
841
+ case "bottom": return n ? t ? $e : Qe : t ? Qe : $e;
779
842
  case "left":
780
- case "right": return t ? Ye : Xe;
843
+ case "right": return t ? et : tt;
781
844
  default: return [];
782
845
  }
783
846
  }
784
- function Qe(e, t, n, r) {
785
- let i = Be(e), a = Ze(ze(e), n === "start", r);
786
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ke)))), a;
847
+ function rt(e, t, n, r) {
848
+ let i = We(e), a = nt(Ue(e), n === "start", r);
849
+ return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(Ze)))), a;
787
850
  }
788
- function $e(e) {
789
- let t = ze(e);
790
- return Ie[t] + e.slice(t.length);
851
+ function it(e) {
852
+ let t = Ue(e);
853
+ return Be[t] + e.slice(t.length);
791
854
  }
792
- function et(e) {
855
+ function at(e) {
793
856
  return {
794
857
  top: e.top ?? 0,
795
858
  right: e.right ?? 0,
@@ -797,15 +860,15 @@ function et(e) {
797
860
  left: e.left ?? 0
798
861
  };
799
862
  }
800
- function tt(e) {
863
+ function ot(e) {
801
864
  return typeof e == "number" ? {
802
865
  top: e,
803
866
  right: e,
804
867
  bottom: e,
805
868
  left: e
806
- } : et(e);
869
+ } : at(e);
807
870
  }
808
- function nt(e) {
871
+ function st(e) {
809
872
  let { x: t, y: n, width: r, height: i } = e;
810
873
  return {
811
874
  width: r,
@@ -820,8 +883,8 @@ function nt(e) {
820
883
  }
821
884
  //#endregion
822
885
  //#region node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
823
- function rt(e, t, n) {
824
- let { reference: r, floating: i } = e, a = Y(t), o = Ue(t), s = He(o), c = ze(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
886
+ function ct(e, t, n) {
887
+ let { reference: r, floating: i } = e, a = qe(t), o = Je(t), s = Ke(o), c = Ue(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
825
888
  switch (c) {
826
889
  case "top":
827
890
  p = {
@@ -852,12 +915,12 @@ function rt(e, t, n) {
852
915
  y: r.y
853
916
  };
854
917
  }
855
- let m = Be(t);
918
+ let m = We(t);
856
919
  return m && (p[o] += f * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), p;
857
920
  }
858
- async function it(e, t) {
921
+ async function lt(e, t) {
859
922
  t === void 0 && (t = {});
860
- let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = Re(t, e), p = tt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = nt(await i.getClippingRect({
923
+ let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = He(t, e), p = ot(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = st(await i.getClippingRect({
861
924
  element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
862
925
  boundary: c,
863
926
  rootBoundary: l,
@@ -870,7 +933,7 @@ async function it(e, t) {
870
933
  } : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
871
934
  x: 1,
872
935
  y: 1
873
- }, y = nt(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
936
+ }, y = st(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
874
937
  elements: o,
875
938
  rect: g,
876
939
  offsetParent: _,
@@ -883,15 +946,15 @@ async function it(e, t) {
883
946
  right: (y.right - h.right + p.right) / v.x
884
947
  };
885
948
  }
886
- var at = 50, ot = async (e, t, n) => {
949
+ var ut = 50, dt = async (e, t, n) => {
887
950
  let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
888
951
  ...o,
889
- detectOverflow: it
952
+ detectOverflow: lt
890
953
  }, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
891
954
  reference: e,
892
955
  floating: t,
893
956
  strategy: i
894
- }), { x: u, y: d } = rt(l, r, c), f = r, p = 0, m = {};
957
+ }), { x: u, y: d } = ct(l, r, c), f = r, p = 0, m = {};
895
958
  for (let n = 0; n < a.length; n++) {
896
959
  let h = a[n];
897
960
  if (!h) continue;
@@ -912,11 +975,11 @@ var at = 50, ot = async (e, t, n) => {
912
975
  u = v ?? u, d = y ?? d, m[g] = {
913
976
  ...m[g],
914
977
  ...b
915
- }, x && p < at && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
978
+ }, x && p < ut && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
916
979
  reference: e,
917
980
  floating: t,
918
981
  strategy: i
919
- }) : x.rects), {x: u, y: d} = rt(l, f, c)), n = -1);
982
+ }) : x.rects), {x: u, y: d} = ct(l, f, c)), n = -1);
920
983
  }
921
984
  return {
922
985
  x: u,
@@ -925,18 +988,18 @@ var at = 50, ot = async (e, t, n) => {
925
988
  strategy: i,
926
989
  middlewareData: m
927
990
  };
928
- }, st = (e) => ({
991
+ }, ft = (e) => ({
929
992
  name: "arrow",
930
993
  options: e,
931
994
  async fn(t) {
932
- let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = Re(e, t) || {};
995
+ let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = He(e, t) || {};
933
996
  if (l == null) return {};
934
- let d = tt(u), f = {
997
+ let d = ot(u), f = {
935
998
  x: n,
936
999
  y: r
937
- }, p = Ue(i), m = He(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
1000
+ }, p = Je(i), m = Ke(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
938
1001
  (!C || !await (o.isElement == null ? void 0 : o.isElement(S))) && (C = s.floating[y] || a.floating[m]);
939
- let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = q(d[_], T), D = q(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Le(E, k, O), j = !c.arrow && Be(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
1002
+ let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Ie(d[_], T), D = Ie(d[v], T), O = C - h[m] - D, k = C / 2 - h[m] / 2 + w, A = Ve(E, k, O), j = !c.arrow && We(i) != null && k !== A && a.reference[m] / 2 - (k < E ? E : D) - h[m] / 2 < 0, M = j ? k < E ? k - E : k - O : 0;
940
1003
  return {
941
1004
  [p]: f[p] + M,
942
1005
  data: {
@@ -947,19 +1010,19 @@ var at = 50, ot = async (e, t, n) => {
947
1010
  reset: j
948
1011
  };
949
1012
  }
950
- }), ct = function(e) {
1013
+ }), pt = function(e) {
951
1014
  return e === void 0 && (e = {}), {
952
1015
  name: "flip",
953
1016
  options: e,
954
1017
  async fn(t) {
955
1018
  var n;
956
- let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = Re(e, t);
1019
+ let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = He(e, t);
957
1020
  if ((n = i.arrow) != null && n.alignmentOffset) return {};
958
- let g = ze(r), _ = Y(o), v = ze(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [$e(o)] : Ge(o)), x = p !== "none";
959
- !d && x && b.push(...Qe(o, m, p, y));
1021
+ let g = Ue(r), _ = qe(o), v = Ue(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [it(o)] : Xe(o)), x = p !== "none";
1022
+ !d && x && b.push(...rt(o, m, p, y));
960
1023
  let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
961
1024
  if (l && w.push(C[g]), u) {
962
- let e = We(r, a, y);
1025
+ let e = Ye(r, a, y);
963
1026
  w.push(C[e[0]], C[e[1]]);
964
1027
  }
965
1028
  if (T = [...T, {
@@ -967,7 +1030,7 @@ var at = 50, ot = async (e, t, n) => {
967
1030
  overflows: w
968
1031
  }], !w.every((e) => e <= 0)) {
969
1032
  let e = (i.flip?.index || 0) + 1, t = S[e];
970
- if (t && (u !== "alignment" || _ === Y(t) || T.every((e) => Y(e.placement) !== _ || e.overflows[0] > 0))) return {
1033
+ if (t && (u !== "alignment" || _ === qe(t) || T.every((e) => qe(e.placement) !== _ || e.overflows[0] > 0))) return {
971
1034
  data: {
972
1035
  index: e,
973
1036
  overflows: T
@@ -979,7 +1042,7 @@ var at = 50, ot = async (e, t, n) => {
979
1042
  case "bestFit": {
980
1043
  let e = T.filter((e) => {
981
1044
  if (x) {
982
- let t = Y(e.placement);
1045
+ let t = qe(e.placement);
983
1046
  return t === _ || t === "y";
984
1047
  }
985
1048
  return !0;
@@ -994,9 +1057,9 @@ var at = 50, ot = async (e, t, n) => {
994
1057
  return {};
995
1058
  }
996
1059
  };
997
- }, lt = /*#__PURE__*/ new Set(["left", "top"]);
998
- async function ut(e, t) {
999
- let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = ze(n), s = Be(n), c = Y(n) === "y", l = lt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = Re(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
1060
+ }, mt = /*#__PURE__*/ new Set(["left", "top"]);
1061
+ async function ht(e, t) {
1062
+ let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = Ue(n), s = We(n), c = qe(n) === "y", l = mt.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = He(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
1000
1063
  mainAxis: d,
1001
1064
  crossAxis: 0,
1002
1065
  alignmentAxis: null
@@ -1013,13 +1076,13 @@ async function ut(e, t) {
1013
1076
  y: p * u
1014
1077
  };
1015
1078
  }
1016
- var dt = function(e) {
1079
+ var gt = function(e) {
1017
1080
  return e === void 0 && (e = 0), {
1018
1081
  name: "offset",
1019
1082
  options: e,
1020
1083
  async fn(t) {
1021
1084
  var n;
1022
- let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ut(t, e);
1085
+ let { x: r, y: i, placement: a, middlewareData: o } = t, s = await ht(t, e);
1023
1086
  return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
1024
1087
  x: r + s.x,
1025
1088
  y: i + s.y,
@@ -1030,7 +1093,7 @@ var dt = function(e) {
1030
1093
  };
1031
1094
  }
1032
1095
  };
1033
- }, ft = function(e) {
1096
+ }, _t = function(e) {
1034
1097
  return e === void 0 && (e = {}), {
1035
1098
  name: "shift",
1036
1099
  options: e,
@@ -1041,10 +1104,10 @@ var dt = function(e) {
1041
1104
  x: t,
1042
1105
  y: n
1043
1106
  };
1044
- } }, ...l } = Re(e, t), u = {
1107
+ } }, ...l } = He(e, t), u = {
1045
1108
  x: n,
1046
1109
  y: r
1047
- }, d = await a.detectOverflow(t, l), f = Y(i), p = Ve(f), m = u[p], h = u[f], g = (e, t) => Le(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
1110
+ }, d = await a.detectOverflow(t, l), f = qe(i), p = Ge(f), m = u[p], h = u[f], g = (e, t) => Ve(t + d[e === "y" ? "top" : "left"], t, t - d[e === "y" ? "bottom" : "right"]);
1048
1111
  o && (m = g(p, m)), s && (h = g(f, h));
1049
1112
  let _ = c.fn({
1050
1113
  ...t,
@@ -1067,39 +1130,39 @@ var dt = function(e) {
1067
1130
  };
1068
1131
  //#endregion
1069
1132
  //#region node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1070
- function pt() {
1133
+ function vt() {
1071
1134
  return typeof window < "u";
1072
1135
  }
1073
- function mt(e) {
1074
- return ht(e) ? (e.nodeName || "").toLowerCase() : "#document";
1136
+ function yt(e) {
1137
+ return xt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1075
1138
  }
1076
- function X(e) {
1139
+ function Z(e) {
1077
1140
  var t;
1078
1141
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1079
1142
  }
1080
- function Z(e) {
1081
- return ((ht(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
1143
+ function bt(e) {
1144
+ return ((xt(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
1082
1145
  }
1083
- function ht(e) {
1084
- return pt() ? e instanceof Node || e instanceof X(e).Node : !1;
1146
+ function xt(e) {
1147
+ return vt() ? e instanceof Node || e instanceof Z(e).Node : !1;
1085
1148
  }
1086
1149
  function Q(e) {
1087
- return pt() ? e instanceof Element || e instanceof X(e).Element : !1;
1150
+ return vt() ? e instanceof Element || e instanceof Z(e).Element : !1;
1088
1151
  }
1089
- function gt(e) {
1090
- return pt() ? e instanceof HTMLElement || e instanceof X(e).HTMLElement : !1;
1152
+ function St(e) {
1153
+ return vt() ? e instanceof HTMLElement || e instanceof Z(e).HTMLElement : !1;
1091
1154
  }
1092
- function _t(e) {
1093
- return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof X(e).ShadowRoot;
1155
+ function Ct(e) {
1156
+ return !vt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Z(e).ShadowRoot;
1094
1157
  }
1095
- function vt(e) {
1158
+ function wt(e) {
1096
1159
  let { overflow: t, overflowX: n, overflowY: r, display: i } = $(e);
1097
1160
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
1098
1161
  }
1099
- function yt(e) {
1100
- return /^(table|td|th)$/.test(mt(e));
1162
+ function Tt(e) {
1163
+ return /^(table|td|th)$/.test(yt(e));
1101
1164
  }
1102
- function bt(e) {
1165
+ function Et(e) {
1103
1166
  try {
1104
1167
  if (e.matches(":popover-open")) return !0;
1105
1168
  } catch {}
@@ -1109,30 +1172,30 @@ function bt(e) {
1109
1172
  return !1;
1110
1173
  }
1111
1174
  }
1112
- var xt = /transform|translate|scale|rotate|perspective|filter/, St = /paint|layout|strict|content/, Ct = (e) => !!e && e !== "none", wt;
1113
- function Tt(e) {
1175
+ var Dt = /transform|translate|scale|rotate|perspective|filter/, Ot = /paint|layout|strict|content/, kt = (e) => !!e && e !== "none", At;
1176
+ function jt(e) {
1114
1177
  let t = Q(e) ? $(e) : e;
1115
- return Ct(t.transform) || Ct(t.translate) || Ct(t.scale) || Ct(t.rotate) || Ct(t.perspective) || !Dt() && (Ct(t.backdropFilter) || Ct(t.filter)) || xt.test(t.willChange || "") || St.test(t.contain || "");
1116
- }
1117
- function Et(e) {
1118
- let t = At(e);
1119
- for (; gt(t) && !Ot(t);) {
1120
- if (Tt(t)) return t;
1121
- if (bt(t)) return null;
1122
- t = At(t);
1178
+ return kt(t.transform) || kt(t.translate) || kt(t.scale) || kt(t.rotate) || kt(t.perspective) || !Nt() && (kt(t.backdropFilter) || kt(t.filter)) || Dt.test(t.willChange || "") || Ot.test(t.contain || "");
1179
+ }
1180
+ function Mt(e) {
1181
+ let t = It(e);
1182
+ for (; St(t) && !Pt(t);) {
1183
+ if (jt(t)) return t;
1184
+ if (Et(t)) return null;
1185
+ t = It(t);
1123
1186
  }
1124
1187
  return null;
1125
1188
  }
1126
- function Dt() {
1127
- return wt ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), wt;
1189
+ function Nt() {
1190
+ return At ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), At;
1128
1191
  }
1129
- function Ot(e) {
1130
- return /^(html|body|#document)$/.test(mt(e));
1192
+ function Pt(e) {
1193
+ return /^(html|body|#document)$/.test(yt(e));
1131
1194
  }
1132
1195
  function $(e) {
1133
- return X(e).getComputedStyle(e);
1196
+ return Z(e).getComputedStyle(e);
1134
1197
  }
1135
- function kt(e) {
1198
+ function Ft(e) {
1136
1199
  return Q(e) ? {
1137
1200
  scrollLeft: e.scrollLeft,
1138
1201
  scrollTop: e.scrollTop
@@ -1141,102 +1204,102 @@ function kt(e) {
1141
1204
  scrollTop: e.scrollY
1142
1205
  };
1143
1206
  }
1144
- function At(e) {
1145
- if (mt(e) === "html") return e;
1146
- let t = e.assignedSlot || e.parentNode || _t(e) && e.host || Z(e);
1147
- return _t(t) ? t.host : t;
1207
+ function It(e) {
1208
+ if (yt(e) === "html") return e;
1209
+ let t = e.assignedSlot || e.parentNode || Ct(e) && e.host || bt(e);
1210
+ return Ct(t) ? t.host : t;
1148
1211
  }
1149
- function jt(e) {
1150
- let t = At(e);
1151
- return Ot(t) ? (e.ownerDocument || e).body : gt(t) && vt(t) ? t : jt(t);
1212
+ function Lt(e) {
1213
+ let t = It(e);
1214
+ return Pt(t) ? (e.ownerDocument || e).body : St(t) && wt(t) ? t : Lt(t);
1152
1215
  }
1153
- function Mt(e, t, n) {
1216
+ function Rt(e, t, n) {
1154
1217
  t === void 0 && (t = []), n === void 0 && (n = !0);
1155
- let r = jt(e), i = r === e.ownerDocument?.body, a = X(r);
1218
+ let r = Lt(e), i = r === e.ownerDocument?.body, a = Z(r);
1156
1219
  if (i) {
1157
- let e = Nt(a);
1158
- return t.concat(a, a.visualViewport || [], vt(r) ? r : [], e && n ? Mt(e) : []);
1220
+ let e = zt(a);
1221
+ return t.concat(a, a.visualViewport || [], wt(r) ? r : [], e && n ? Rt(e) : []);
1159
1222
  }
1160
- return t.concat(r, Mt(r, [], n));
1223
+ return t.concat(r, Rt(r, [], n));
1161
1224
  }
1162
- function Nt(e) {
1225
+ function zt(e) {
1163
1226
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1164
1227
  }
1165
1228
  //#endregion
1166
1229
  //#region node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
1167
- function Pt(e) {
1168
- let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = gt(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Pe(n) !== a || Pe(r) !== o;
1230
+ function Bt(e) {
1231
+ let t = $(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = St(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = Re(n) !== a || Re(r) !== o;
1169
1232
  return s && (n = a, r = o), {
1170
1233
  width: n,
1171
1234
  height: r,
1172
1235
  $: s
1173
1236
  };
1174
1237
  }
1175
- function Ft(e) {
1238
+ function Vt(e) {
1176
1239
  return Q(e) ? e : e.contextElement;
1177
1240
  }
1178
- function It(e) {
1179
- let t = Ft(e);
1180
- if (!gt(t)) return J(1);
1181
- let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Pt(t), o = (a ? Pe(n.width) : n.width) / r, s = (a ? Pe(n.height) : n.height) / i;
1241
+ function Ht(e) {
1242
+ let t = Vt(e);
1243
+ if (!St(t)) return X(1);
1244
+ let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Bt(t), o = (a ? Re(n.width) : n.width) / r, s = (a ? Re(n.height) : n.height) / i;
1182
1245
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
1183
1246
  x: o,
1184
1247
  y: s
1185
1248
  };
1186
1249
  }
1187
- var Lt = /*#__PURE__*/ J(0);
1188
- function Rt(e) {
1189
- let t = X(e);
1190
- return !Dt() || !t.visualViewport ? Lt : {
1250
+ var Ut = /*#__PURE__*/ X(0);
1251
+ function Wt(e) {
1252
+ let t = Z(e);
1253
+ return !Nt() || !t.visualViewport ? Ut : {
1191
1254
  x: t.visualViewport.offsetLeft,
1192
1255
  y: t.visualViewport.offsetTop
1193
1256
  };
1194
1257
  }
1195
- function zt(e, t, n) {
1196
- return t === void 0 && (t = !1), !!n && t && n === X(e);
1258
+ function Gt(e, t, n) {
1259
+ return t === void 0 && (t = !1), !!n && t && n === Z(e);
1197
1260
  }
1198
- function Bt(e, t, n, r) {
1261
+ function Kt(e, t, n, r) {
1199
1262
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1200
- let i = e.getBoundingClientRect(), a = Ft(e), o = J(1);
1201
- t && (r ? Q(r) && (o = It(r)) : o = It(e));
1202
- let s = zt(a, n, r) ? Rt(a) : J(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
1263
+ let i = e.getBoundingClientRect(), a = Vt(e), o = X(1);
1264
+ t && (r ? Q(r) && (o = Ht(r)) : o = Ht(e));
1265
+ let s = Gt(a, n, r) ? Wt(a) : X(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
1203
1266
  if (a && r) {
1204
- let e = X(a), t = Q(r) ? X(r) : r, n = e, i = Nt(n);
1267
+ let e = Z(a), t = Q(r) ? Z(r) : r, n = e, i = zt(n);
1205
1268
  for (; i && t !== n;) {
1206
- let e = It(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
1207
- c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = X(i), i = Nt(n);
1269
+ let e = Ht(i), t = i.getBoundingClientRect(), r = $(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
1270
+ c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = Z(i), i = zt(n);
1208
1271
  }
1209
1272
  }
1210
- return nt({
1273
+ return st({
1211
1274
  width: u,
1212
1275
  height: d,
1213
1276
  x: c,
1214
1277
  y: l
1215
1278
  });
1216
1279
  }
1217
- function Vt(e, t) {
1218
- let n = kt(e).scrollLeft;
1219
- return t ? t.left + n : Bt(Z(e)).left + n;
1280
+ function qt(e, t) {
1281
+ let n = Ft(e).scrollLeft;
1282
+ return t ? t.left + n : Kt(bt(e)).left + n;
1220
1283
  }
1221
- function Ht(e, t) {
1284
+ function Jt(e, t) {
1222
1285
  let n = e.getBoundingClientRect();
1223
1286
  return {
1224
- x: n.left + t.scrollLeft - Vt(e, n),
1287
+ x: n.left + t.scrollLeft - qt(e, n),
1225
1288
  y: n.top + t.scrollTop
1226
1289
  };
1227
1290
  }
1228
- function Ut(e) {
1229
- let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = Z(r), s = t ? bt(t.floating) : !1;
1291
+ function Yt(e) {
1292
+ let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = bt(r), s = t ? Et(t.floating) : !1;
1230
1293
  if (r === o || s && a) return n;
1231
1294
  let c = {
1232
1295
  scrollLeft: 0,
1233
1296
  scrollTop: 0
1234
- }, l = J(1), u = J(0), d = gt(r);
1235
- if ((d || !a) && ((mt(r) !== "body" || vt(o)) && (c = kt(r)), d)) {
1236
- let e = Bt(r);
1237
- l = It(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1297
+ }, l = X(1), u = X(0), d = St(r);
1298
+ if ((d || !a) && ((yt(r) !== "body" || wt(o)) && (c = Ft(r)), d)) {
1299
+ let e = Kt(r);
1300
+ l = Ht(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
1238
1301
  }
1239
- let f = o && !d && !a ? Ht(o, c) : J(0);
1302
+ let f = o && !d && !a ? Jt(o, c) : X(0);
1240
1303
  return {
1241
1304
  width: n.width * l.x,
1242
1305
  height: n.height * l.y,
@@ -1244,29 +1307,29 @@ function Ut(e) {
1244
1307
  y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
1245
1308
  };
1246
1309
  }
1247
- function Wt(e) {
1310
+ function Xt(e) {
1248
1311
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
1249
1312
  }
1250
- function Gt(e) {
1251
- let t = kt(e), n = e.ownerDocument.body, r = Ne(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Ne(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + Vt(e), o = -t.scrollTop;
1252
- return $(n).direction === "rtl" && (a += Ne(e.clientWidth, n.clientWidth) - r), {
1313
+ function Zt(e) {
1314
+ let t = Ft(e), n = e.ownerDocument.body, r = Le(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Le(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight), a = -t.scrollLeft + qt(e), o = -t.scrollTop;
1315
+ return $(n).direction === "rtl" && (a += Le(e.clientWidth, n.clientWidth) - r), {
1253
1316
  width: r,
1254
1317
  height: i,
1255
1318
  x: a,
1256
1319
  y: o
1257
1320
  };
1258
1321
  }
1259
- var Kt = 25;
1260
- function qt(e, t, n) {
1322
+ var Qt = 25;
1323
+ function $t(e, t, n) {
1261
1324
  n === void 0 && (n = "viewport");
1262
- let r = n === "layoutViewport", i = X(e), a = Z(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
1325
+ let r = n === "layoutViewport", i = Z(e), a = bt(e), o = i.visualViewport, s = a.clientWidth, c = a.clientHeight, l = 0, u = 0;
1263
1326
  if (o) {
1264
- let e = !Dt() || t === "fixed";
1327
+ let e = !Nt() || t === "fixed";
1265
1328
  r ? e || (l = -o.offsetLeft, u = -o.offsetTop) : (s = o.width, c = o.height, e && (l = o.offsetLeft, u = o.offsetTop));
1266
1329
  }
1267
- if (Vt(a) <= 0) {
1330
+ if (qt(a) <= 0) {
1268
1331
  let e = a.ownerDocument, t = e.body, n = getComputedStyle(t), r = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, i = Math.abs(a.clientWidth - t.clientWidth - r), o = getComputedStyle(a).scrollbarGutter === "stable both-edges" ? i / 2 : i;
1269
- o <= Kt && (s -= o);
1332
+ o <= Qt && (s -= o);
1270
1333
  }
1271
1334
  return {
1272
1335
  width: s,
@@ -1275,8 +1338,8 @@ function qt(e, t, n) {
1275
1338
  y: u
1276
1339
  };
1277
1340
  }
1278
- function Jt(e, t) {
1279
- let n = Bt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = It(e);
1341
+ function en(e, t) {
1342
+ let n = Kt(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Ht(e);
1280
1343
  return {
1281
1344
  width: e.clientWidth * a.x,
1282
1345
  height: e.clientHeight * a.y,
@@ -1284,13 +1347,13 @@ function Jt(e, t) {
1284
1347
  y: r * a.y
1285
1348
  };
1286
1349
  }
1287
- function Yt(e, t, n) {
1350
+ function tn(e, t, n) {
1288
1351
  let r;
1289
- if (t === "viewport" || t === "layoutViewport") r = qt(e, n, t);
1290
- else if (t === "document") r = Gt(Z(e));
1291
- else if (Q(t)) r = Jt(t, n);
1352
+ if (t === "viewport" || t === "layoutViewport") r = $t(e, n, t);
1353
+ else if (t === "document") r = Zt(bt(e));
1354
+ else if (Q(t)) r = en(t, n);
1292
1355
  else {
1293
- let n = Rt(e);
1356
+ let n = Wt(e);
1294
1357
  r = {
1295
1358
  x: t.x - n.x,
1296
1359
  y: t.y - n.y,
@@ -1298,23 +1361,23 @@ function Yt(e, t, n) {
1298
1361
  height: t.height
1299
1362
  };
1300
1363
  }
1301
- return nt(r);
1364
+ return st(r);
1302
1365
  }
1303
- function Xt(e, t) {
1366
+ function nn(e, t) {
1304
1367
  let n = t.get(e);
1305
1368
  if (n) return n;
1306
- let r = Mt(e, [], !1).filter((e) => Q(e) && mt(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? At(e) : e;
1307
- for (; Q(o) && !Ot(o);) {
1308
- let e = $(o), t = Tt(o), n = i ? i.position : a ? "fixed" : "";
1309
- !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = At(o);
1369
+ let r = Rt(e, [], !1).filter((e) => Q(e) && yt(e) !== "body"), i = null, a = $(e).position === "fixed", o = a ? It(e) : e;
1370
+ for (; Q(o) && !Pt(o);) {
1371
+ let e = $(o), t = jt(o), n = i ? i.position : a ? "fixed" : "";
1372
+ !t && (n === "fixed" || n === "absolute" && e.position === "static") ? r = r.filter((e) => e !== o) : i = e, o = It(o);
1310
1373
  }
1311
1374
  return t.set(e, r), r;
1312
1375
  }
1313
- function Zt(e) {
1314
- let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? bt(t) ? [] : Xt(t, this._c) : [].concat(n), r], o = Yt(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
1376
+ function rn(e) {
1377
+ let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? Et(t) ? [] : nn(t, this._c) : [].concat(n), r], o = tn(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
1315
1378
  for (let e = 1; e < a.length; e++) {
1316
- let n = Yt(t, a[e], i);
1317
- s = Ne(n.top, s), c = q(n.right, c), l = q(n.bottom, l), u = Ne(n.left, u);
1379
+ let n = tn(t, a[e], i);
1380
+ s = Le(n.top, s), c = Ie(n.right, c), l = Ie(n.bottom, l), u = Le(n.left, u);
1318
1381
  }
1319
1382
  return {
1320
1383
  width: c - u,
@@ -1323,24 +1386,24 @@ function Zt(e) {
1323
1386
  y: s
1324
1387
  };
1325
1388
  }
1326
- function Qt(e) {
1327
- let { width: t, height: n } = Pt(e);
1389
+ function an(e) {
1390
+ let { width: t, height: n } = Bt(e);
1328
1391
  return {
1329
1392
  width: t,
1330
1393
  height: n
1331
1394
  };
1332
1395
  }
1333
- function $t(e, t, n) {
1334
- let r = gt(t), i = Z(t), a = n === "fixed", o = Bt(e, !0, a, t), s = {
1396
+ function on(e, t, n) {
1397
+ let r = St(t), i = bt(t), a = n === "fixed", o = Kt(e, !0, a, t), s = {
1335
1398
  scrollLeft: 0,
1336
1399
  scrollTop: 0
1337
- }, c = J(0);
1338
- if ((r || !a) && ((mt(t) !== "body" || vt(i)) && (s = kt(t)), r)) {
1339
- let e = Bt(t, !0, a, t);
1400
+ }, c = X(0);
1401
+ if ((r || !a) && ((yt(t) !== "body" || wt(i)) && (s = Ft(t)), r)) {
1402
+ let e = Kt(t, !0, a, t);
1340
1403
  c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
1341
1404
  }
1342
- !r && i && (c.x = Vt(i));
1343
- let l = i && !r && !a ? Ht(i, s) : J(0);
1405
+ !r && i && (c.x = qt(i));
1406
+ let l = i && !r && !a ? Jt(i, s) : X(0);
1344
1407
  return {
1345
1408
  x: o.left + s.scrollLeft - c.x - l.x,
1346
1409
  y: o.top + s.scrollTop - c.y - l.y,
@@ -1348,34 +1411,34 @@ function $t(e, t, n) {
1348
1411
  height: o.height
1349
1412
  };
1350
1413
  }
1351
- function en(e) {
1414
+ function sn(e) {
1352
1415
  return $(e).position === "static";
1353
1416
  }
1354
- function tn(e, t) {
1355
- if (!gt(e) || $(e).position === "fixed") return null;
1417
+ function cn(e, t) {
1418
+ if (!St(e) || $(e).position === "fixed") return null;
1356
1419
  if (t) return t(e);
1357
1420
  let n = e.offsetParent;
1358
- return Z(e) === n && (n = n.ownerDocument.body), n;
1359
- }
1360
- function nn(e, t) {
1361
- let n = X(e);
1362
- if (bt(e)) return n;
1363
- if (!gt(e)) {
1364
- let t = At(e);
1365
- for (; t && !Ot(t);) {
1366
- if (Q(t) && !en(t)) return t;
1367
- t = At(t);
1421
+ return bt(e) === n && (n = n.ownerDocument.body), n;
1422
+ }
1423
+ function ln(e, t) {
1424
+ let n = Z(e);
1425
+ if (Et(e)) return n;
1426
+ if (!St(e)) {
1427
+ let t = It(e);
1428
+ for (; t && !Pt(t);) {
1429
+ if (Q(t) && !sn(t)) return t;
1430
+ t = It(t);
1368
1431
  }
1369
1432
  return n;
1370
1433
  }
1371
- let r = tn(e, t);
1372
- for (; r && yt(r) && en(r);) r = tn(r, t);
1373
- return r && Ot(r) && en(r) && !Tt(r) ? n : r || Et(e) || n;
1434
+ let r = cn(e, t);
1435
+ for (; r && Tt(r) && sn(r);) r = cn(r, t);
1436
+ return r && Pt(r) && sn(r) && !jt(r) ? n : r || Mt(e) || n;
1374
1437
  }
1375
- var rn = async function(e) {
1376
- let t = this.getOffsetParent || nn, n = this.getDimensions, r = await n(e.floating);
1438
+ var un = async function(e) {
1439
+ let t = this.getOffsetParent || ln, n = this.getDimensions, r = await n(e.floating);
1377
1440
  return {
1378
- reference: $t(e.reference, await t(e.floating), e.strategy),
1441
+ reference: on(e.reference, await t(e.floating), e.strategy),
1379
1442
  floating: {
1380
1443
  x: 0,
1381
1444
  y: 0,
@@ -1384,26 +1447,26 @@ var rn = async function(e) {
1384
1447
  }
1385
1448
  };
1386
1449
  };
1387
- function an(e) {
1450
+ function dn(e) {
1388
1451
  return $(e).direction === "rtl";
1389
1452
  }
1390
- var on = {
1391
- convertOffsetParentRelativeRectToViewportRelativeRect: Ut,
1392
- getDocumentElement: Z,
1393
- getClippingRect: Zt,
1394
- getOffsetParent: nn,
1395
- getElementRects: rn,
1396
- getClientRects: Wt,
1397
- getDimensions: Qt,
1398
- getScale: It,
1453
+ var fn = {
1454
+ convertOffsetParentRelativeRectToViewportRelativeRect: Yt,
1455
+ getDocumentElement: bt,
1456
+ getClippingRect: rn,
1457
+ getOffsetParent: ln,
1458
+ getElementRects: un,
1459
+ getClientRects: Xt,
1460
+ getDimensions: an,
1461
+ getScale: Ht,
1399
1462
  isElement: Q,
1400
- isRTL: an
1463
+ isRTL: dn
1401
1464
  };
1402
- function sn(e, t) {
1465
+ function pn(e, t) {
1403
1466
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1404
1467
  }
1405
- function cn(e, t, n) {
1406
- let r = null, i, a = Z(e);
1468
+ function mn(e, t, n) {
1469
+ let r = null, i, a = bt(e);
1407
1470
  function o() {
1408
1471
  var e;
1409
1472
  clearTimeout(i), (e = r) == null || e.disconnect(), r = null;
@@ -1412,13 +1475,13 @@ function cn(e, t, n) {
1412
1475
  n === void 0 && (n = !1), c === void 0 && (c = 1), o();
1413
1476
  let l = e.getBoundingClientRect(), { left: u, top: d, width: f, height: p } = l;
1414
1477
  if (n || t(), !f || !p) return;
1415
- let m = Fe(d), h = Fe(a.clientWidth - (u + f)), g = Fe(a.clientHeight - (d + p)), _ = Fe(u), v = {
1478
+ let m = ze(d), h = ze(a.clientWidth - (u + f)), g = ze(a.clientHeight - (d + p)), _ = ze(u), v = {
1416
1479
  rootMargin: -m + "px " + -h + "px " + -g + "px " + -_ + "px",
1417
- threshold: Ne(0, q(1, c)) || 1
1480
+ threshold: Le(0, Ie(1, c)) || 1
1418
1481
  }, y = !0;
1419
1482
  function b(t) {
1420
1483
  let n = t[0].intersectionRatio;
1421
- if (!sn(l, e.getBoundingClientRect())) return s();
1484
+ if (!pn(l, e.getBoundingClientRect())) return s();
1422
1485
  if (n !== c) {
1423
1486
  if (!y) return s();
1424
1487
  n ? s(!1, n) : i = setTimeout(() => {
@@ -1437,18 +1500,18 @@ function cn(e, t, n) {
1437
1500
  }
1438
1501
  r.observe(e);
1439
1502
  }
1440
- let c = X(e), l = () => s(n);
1503
+ let c = Z(e), l = () => s(n);
1441
1504
  return c.addEventListener("resize", l), s(!0), () => {
1442
1505
  c.removeEventListener("resize", l), o();
1443
1506
  };
1444
1507
  }
1445
- function ln(e, t, n, r) {
1508
+ function hn(e, t, n, r) {
1446
1509
  r === void 0 && (r = {});
1447
- let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Ft(e), u = i || a ? [...l ? Mt(l) : [], ...t ? Mt(t) : []] : [];
1510
+ let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = Vt(e), u = i || a ? [...l ? Rt(l) : [], ...t ? Rt(t) : []] : [];
1448
1511
  u.forEach((e) => {
1449
1512
  i && e.addEventListener("scroll", n), a && e.addEventListener("resize", n);
1450
1513
  });
1451
- let d = l && s ? cn(l, n, a) : null, f = -1, p = null;
1514
+ let d = l && s ? mn(l, n, a) : null, f = -1, p = null;
1452
1515
  o && (p = new ResizeObserver((e) => {
1453
1516
  let [r] = e;
1454
1517
  r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
@@ -1456,11 +1519,11 @@ function ln(e, t, n, r) {
1456
1519
  (e = p) == null || e.observe(t);
1457
1520
  })), n();
1458
1521
  }), l && !c && p.observe(l), t && p.observe(t));
1459
- let m, h = c ? Bt(e) : null;
1522
+ let m, h = c ? Kt(e) : null;
1460
1523
  c && g();
1461
1524
  function g() {
1462
- let t = Bt(e);
1463
- h && !sn(h, t) && n(), h = t, m = requestAnimationFrame(g);
1525
+ let t = Kt(e);
1526
+ h && !pn(h, t) && n(), h = t, m = requestAnimationFrame(g);
1464
1527
  }
1465
1528
  return n(), () => {
1466
1529
  var e;
@@ -1469,18 +1532,18 @@ function ln(e, t, n, r) {
1469
1532
  }), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
1470
1533
  };
1471
1534
  }
1472
- var un = dt, dn = ft, fn = ct, pn = st, mn = (e, t, n) => {
1535
+ var gn = gt, _n = _t, vn = pt, yn = ft, bn = (e, t, n) => {
1473
1536
  let r = /* @__PURE__ */ new Map(), i = n ?? {}, a = {
1474
- ...on,
1537
+ ...fn,
1475
1538
  ...i.platform,
1476
1539
  _c: r
1477
1540
  };
1478
- return ot(e, t, {
1541
+ return dt(e, t, {
1479
1542
  ...i,
1480
1543
  platform: a
1481
1544
  });
1482
- }, hn = typeof document < "u" ? u : function() {};
1483
- function gn(e, t) {
1545
+ }, xn = typeof document < "u" ? u : function() {};
1546
+ function Sn(e, t) {
1484
1547
  if (e === t) return !0;
1485
1548
  if (typeof e != typeof t) return !1;
1486
1549
  if (typeof e == "function" && e.toString() === t.toString()) return !0;
@@ -1488,33 +1551,33 @@ function gn(e, t) {
1488
1551
  if (e && t && typeof e == "object") {
1489
1552
  if (Array.isArray(e)) {
1490
1553
  if (n = e.length, n !== t.length) return !1;
1491
- for (r = n; r-- !== 0;) if (!gn(e[r], t[r])) return !1;
1554
+ for (r = n; r-- !== 0;) if (!Sn(e[r], t[r])) return !1;
1492
1555
  return !0;
1493
1556
  }
1494
1557
  if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
1495
1558
  for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
1496
1559
  for (r = n; r-- !== 0;) {
1497
1560
  let n = i[r];
1498
- if (!(n === "_owner" && e.$$typeof) && !gn(e[n], t[n])) return !1;
1561
+ if (!(n === "_owner" && e.$$typeof) && !Sn(e[n], t[n])) return !1;
1499
1562
  }
1500
1563
  return !0;
1501
1564
  }
1502
1565
  return e !== e && t !== t;
1503
1566
  }
1504
- function _n(e) {
1567
+ function Cn(e) {
1505
1568
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1506
1569
  }
1507
- function vn(e, t) {
1508
- let n = _n(e);
1570
+ function wn(e, t) {
1571
+ let n = Cn(e);
1509
1572
  return Math.round(t * n) / n;
1510
1573
  }
1511
- function yn(t) {
1574
+ function Tn(t) {
1512
1575
  let n = e.useRef(t);
1513
- return hn(() => {
1576
+ return xn(() => {
1514
1577
  n.current = t;
1515
1578
  }), n;
1516
1579
  }
1517
- function bn(t) {
1580
+ function En(t) {
1518
1581
  t === void 0 && (t = {});
1519
1582
  let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: c = !0, whileElementsMounted: l, open: u } = t, [d, f] = e.useState({
1520
1583
  x: 0,
@@ -1524,24 +1587,24 @@ function bn(t) {
1524
1587
  middlewareData: {},
1525
1588
  isPositioned: !1
1526
1589
  }), [p, m] = e.useState(i);
1527
- gn(p, i) || m(i);
1590
+ Sn(p, i) || m(i);
1528
1591
  let [h, g] = e.useState(null), [_, y] = e.useState(null), b = e.useCallback((e) => {
1529
1592
  e !== w.current && (w.current = e, g(e));
1530
1593
  }, []), x = e.useCallback((e) => {
1531
1594
  e !== T.current && (T.current = e, y(e));
1532
- }, []), S = o || h, C = s || _, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = yn(l), k = yn(a), A = yn(u), j = e.useCallback(() => {
1595
+ }, []), S = o || h, C = s || _, w = e.useRef(null), T = e.useRef(null), E = e.useRef(d), D = l != null, O = Tn(l), k = Tn(a), A = Tn(u), j = e.useCallback(() => {
1533
1596
  if (!w.current || !T.current) return;
1534
1597
  let e = {
1535
1598
  placement: n,
1536
1599
  strategy: r,
1537
1600
  middleware: p
1538
1601
  };
1539
- k.current && (e.platform = k.current), mn(w.current, T.current, e).then((e) => {
1602
+ k.current && (e.platform = k.current), bn(w.current, T.current, e).then((e) => {
1540
1603
  let t = {
1541
1604
  ...e,
1542
1605
  isPositioned: A.current !== !1
1543
1606
  };
1544
- M.current && !gn(E.current, t) && (E.current = t, v.flushSync(() => {
1607
+ M.current && !Sn(E.current, t) && (E.current = t, v.flushSync(() => {
1545
1608
  f(t);
1546
1609
  }));
1547
1610
  });
@@ -1552,16 +1615,16 @@ function bn(t) {
1552
1615
  k,
1553
1616
  A
1554
1617
  ]);
1555
- hn(() => {
1618
+ xn(() => {
1556
1619
  u === !1 && E.current.isPositioned && (E.current.isPositioned = !1, f((e) => ({
1557
1620
  ...e,
1558
1621
  isPositioned: !1
1559
1622
  })));
1560
1623
  }, [u]);
1561
1624
  let M = e.useRef(!1);
1562
- hn(() => (M.current = !0, () => {
1625
+ xn(() => (M.current = !0, () => {
1563
1626
  M.current = !1;
1564
- }), []), hn(() => {
1627
+ }), []), xn(() => {
1565
1628
  if (S && (w.current = S), C && (T.current = C), S && C) {
1566
1629
  if (O.current) return O.current(S, C, j);
1567
1630
  j();
@@ -1588,11 +1651,11 @@ function bn(t) {
1588
1651
  top: 0
1589
1652
  };
1590
1653
  if (!P.floating) return e;
1591
- let t = vn(P.floating, d.x), n = vn(P.floating, d.y);
1654
+ let t = wn(P.floating, d.x), n = wn(P.floating, d.y);
1592
1655
  return c ? {
1593
1656
  ...e,
1594
1657
  transform: "translate(" + t + "px, " + n + "px)",
1595
- ..._n(P.floating) >= 1.5 && { willChange: "transform" }
1658
+ ...Cn(P.floating) >= 1.5 && { willChange: "transform" }
1596
1659
  } : {
1597
1660
  position: r,
1598
1661
  left: t,
@@ -1619,7 +1682,7 @@ function bn(t) {
1619
1682
  F
1620
1683
  ]);
1621
1684
  }
1622
- var xn = (e) => {
1685
+ var Dn = (e) => {
1623
1686
  function t(e) {
1624
1687
  return {}.hasOwnProperty.call(e, "current");
1625
1688
  }
@@ -1628,90 +1691,90 @@ var xn = (e) => {
1628
1691
  options: e,
1629
1692
  fn(n) {
1630
1693
  let { element: r, padding: i } = typeof e == "function" ? e(n) : e;
1631
- return r && t(r) ? r.current == null ? {} : pn({
1694
+ return r && t(r) ? r.current == null ? {} : yn({
1632
1695
  element: r.current,
1633
1696
  padding: i
1634
- }).fn(n) : r ? pn({
1697
+ }).fn(n) : r ? yn({
1635
1698
  element: r,
1636
1699
  padding: i
1637
1700
  }).fn(n) : {};
1638
1701
  }
1639
1702
  };
1640
- }, Sn = (e, t) => {
1641
- let n = un(e);
1703
+ }, On = (e, t) => {
1704
+ let n = gn(e);
1642
1705
  return {
1643
1706
  name: n.name,
1644
1707
  fn: n.fn,
1645
1708
  options: [e, t]
1646
1709
  };
1647
- }, Cn = (e, t) => {
1648
- let n = dn(e);
1710
+ }, kn = (e, t) => {
1711
+ let n = _n(e);
1649
1712
  return {
1650
1713
  name: n.name,
1651
1714
  fn: n.fn,
1652
1715
  options: [e, t]
1653
1716
  };
1654
- }, wn = (e, t) => {
1655
- let n = fn(e);
1717
+ }, An = (e, t) => {
1718
+ let n = vn(e);
1656
1719
  return {
1657
1720
  name: n.name,
1658
1721
  fn: n.fn,
1659
1722
  options: [e, t]
1660
1723
  };
1661
- }, Tn = (e, t) => {
1662
- let n = xn(e);
1724
+ }, jn = (e, t) => {
1725
+ let n = Dn(e);
1663
1726
  return {
1664
1727
  name: n.name,
1665
1728
  fn: n.fn,
1666
1729
  options: [e, t]
1667
1730
  };
1668
- }, En = r(null);
1669
- function Dn() {
1670
- return s(En);
1731
+ }, Mn = r(null);
1732
+ function Nn() {
1733
+ return s(Mn);
1671
1734
  }
1672
1735
  //#endregion
1673
1736
  //#region src/components/menu/find_typeahead_index.ts
1674
- var On = -1;
1675
- function kn(e, t, n) {
1737
+ var Pn = -1;
1738
+ function Fn(e, t, n) {
1676
1739
  let r = n.toLowerCase(), i = e.length;
1677
1740
  for (let n = 1; n <= i; n += 1) {
1678
1741
  let a = (t + n + i) % i;
1679
1742
  if (e[a]?.toLowerCase().startsWith(r)) return a;
1680
1743
  }
1681
- return On;
1744
+ return Pn;
1682
1745
  }
1683
1746
  //#endregion
1684
1747
  //#region src/components/menu/menu_surface.tsx
1685
- var An = ":not(:disabled):not([aria-disabled=\"true\"])", jn = `[role="menuitem"]${An}, [role="menuitemradio"]${An}`;
1686
- function Mn(e) {
1687
- return Array.from(e.querySelectorAll(jn));
1748
+ var In = ":not(:disabled):not([aria-disabled=\"true\"])", Ln = `[role="menuitem"]${In}, [role="menuitemradio"]${In}`;
1749
+ function Rn(e) {
1750
+ return Array.from(e.querySelectorAll(Ln));
1688
1751
  }
1689
- function Nn(e, t) {
1690
- let n = Mn(e);
1752
+ function zn(e, t) {
1753
+ let n = Rn(e);
1691
1754
  n.length !== 0 && n[(t % n.length + n.length) % n.length]?.focus({ preventScroll: !0 });
1692
1755
  }
1693
- function Pn(e, t, n, r) {
1694
- if (e.key === "ArrowDown") Nn(t, r + 1);
1695
- else if (e.key === "ArrowUp") Nn(t, r - 1);
1696
- else if (e.key === "Home") Nn(t, 0);
1697
- else if (e.key === "End") Nn(t, n.length - 1);
1756
+ function Bn(e, t, n, r) {
1757
+ if (e.key === "ArrowDown") zn(t, r + 1);
1758
+ else if (e.key === "ArrowUp") zn(t, r - 1);
1759
+ else if (e.key === "Home") zn(t, 0);
1760
+ else if (e.key === "End") zn(t, n.length - 1);
1698
1761
  else return !1;
1699
1762
  return e.preventDefault(), !0;
1700
1763
  }
1701
- function Fn(e) {
1764
+ function Vn(e) {
1702
1765
  return e.key.length === 1 && e.key !== " " && !e.ctrlKey && !e.metaKey && !e.altKey;
1703
1766
  }
1704
- function In(e, t, n, r) {
1705
- let i = kn(t.map((e) => e.textContent?.trim() ?? ""), n, r);
1706
- i !== -1 && Nn(e, i);
1767
+ function Hn(e, t, n, r) {
1768
+ let i = Fn(t.map((e) => e.textContent?.trim() ?? ""), n, r);
1769
+ i !== -1 && zn(e, i);
1707
1770
  }
1708
- function Ln({ setFloating: e, floatingStyles: t, isVisible: n, isPositioned: r, radius: i, onClose: a, children: o, id: s, labelledBy: l, "aria-label": u, initialFocus: d = "first" }) {
1771
+ function Un({ setFloating: e, floatingStyles: t, isVisible: n, isPositioned: r, radius: i, onClose: a, children: o, id: s, labelledBy: l, "aria-label": u, initialFocus: d = "first" }) {
1709
1772
  let p = f(null);
1710
1773
  return c(() => {
1711
1774
  if (!r) return;
1712
1775
  let e = p.current;
1713
1776
  if (!e) return;
1714
- let t = Mn(e);
1777
+ let t = Rn(e);
1715
1778
  (d === "last" ? t[t.length - 1] : t[0])?.focus({ preventScroll: !0 });
1716
1779
  }, [r, d]), y(/* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
1717
1780
  className: "fixed inset-0 z-40",
@@ -1732,12 +1795,12 @@ function Ln({ setFloating: e, floatingStyles: t, isVisible: n, isPositioned: r,
1732
1795
  onKeyDown: (e) => {
1733
1796
  let t = p.current;
1734
1797
  if (!t) return;
1735
- let n = Mn(t), r = n.indexOf(document.activeElement);
1736
- Pn(e, t, n, r) || (e.key === "Escape" ? (e.preventDefault(), a()) : e.key === "Tab" ? a() : Fn(e) && In(t, n, r, e.key));
1798
+ let n = Rn(t), r = n.indexOf(document.activeElement);
1799
+ Bn(e, t, n, r) || (e.key === "Escape" ? (e.preventDefault(), a()) : e.key === "Tab" ? a() : Vn(e) && Hn(t, n, r, e.key));
1737
1800
  },
1738
- className: x("w-max min-w-40 max-w-xs origin-top border py-1 shadow-lg backdrop-blur-sm", "transition-[opacity,transform] duration-150 ease-out", n ? "scale-100 opacity-100" : "scale-95 opacity-0", V, ie, S[i]),
1801
+ className: x("w-max min-w-40 max-w-xs origin-top border py-1 shadow-lg backdrop-blur-sm", "transition-[opacity,transform] duration-150 ease-out", n ? "scale-100 opacity-100" : "scale-95 opacity-0", re, H, S[i]),
1739
1802
  onClick: (e) => e.stopPropagation(),
1740
- children: /* @__PURE__ */ g(En.Provider, {
1803
+ children: /* @__PURE__ */ g(Mn.Provider, {
1741
1804
  value: a,
1742
1805
  children: o
1743
1806
  })
@@ -1746,7 +1809,7 @@ function Ln({ setFloating: e, floatingStyles: t, isVisible: n, isPositioned: r,
1746
1809
  }
1747
1810
  //#endregion
1748
1811
  //#region src/components/shared/use_overlay_state.ts
1749
- function Rn() {
1812
+ function Wn() {
1750
1813
  let [e, t] = p(!1), [n, r] = p(!1), i = f(void 0);
1751
1814
  return c(() => () => clearTimeout(i.current), []), {
1752
1815
  isMounted: e,
@@ -1760,7 +1823,7 @@ function Rn() {
1760
1823
  }, [])
1761
1824
  };
1762
1825
  }
1763
- function zn(e, t, n) {
1826
+ function Gn(e, t, n) {
1764
1827
  c(() => {
1765
1828
  if (!e || !t) return;
1766
1829
  let r = requestAnimationFrame(() => n(!0));
@@ -1773,8 +1836,8 @@ function zn(e, t, n) {
1773
1836
  }
1774
1837
  //#endregion
1775
1838
  //#region src/components/context_menu/context_menu.tsx
1776
- var Bn = 2;
1777
- function Vn(e, t) {
1839
+ var Kn = 2;
1840
+ function qn(e, t) {
1778
1841
  return { getBoundingClientRect: () => ({
1779
1842
  width: 0,
1780
1843
  height: 0,
@@ -1786,7 +1849,7 @@ function Vn(e, t) {
1786
1849
  bottom: t
1787
1850
  }) };
1788
1851
  }
1789
- function Hn(e) {
1852
+ function Jn(e) {
1790
1853
  if (e.clientX !== 0 || e.clientY !== 0) return {
1791
1854
  x: e.clientX,
1792
1855
  y: e.clientY
@@ -1800,18 +1863,18 @@ function Hn(e) {
1800
1863
  y: 0
1801
1864
  };
1802
1865
  }
1803
- function Un({ children: e, items: t, radius: n = "md", className: r, ref: i, "aria-label": a }) {
1804
- let s = f(null), { isMounted: c, isVisible: l, setIsVisible: u, open: d, close: p } = Rn(), { refs: m, floatingStyles: h, isPositioned: v } = bn({
1866
+ function Yn({ children: e, items: t, radius: n = "md", className: r, ref: i, "aria-label": a }) {
1867
+ let s = f(null), { isMounted: c, isVisible: l, setIsVisible: u, open: d, close: p } = Wn(), { refs: m, floatingStyles: h, isPositioned: v } = En({
1805
1868
  placement: "bottom-start",
1806
1869
  open: c,
1807
- whileElementsMounted: ln,
1870
+ whileElementsMounted: hn,
1808
1871
  middleware: [
1809
- Sn(Bn),
1810
- wn(),
1811
- Cn({ padding: 8 })
1872
+ On(Kn),
1873
+ An(),
1874
+ kn({ padding: 8 })
1812
1875
  ]
1813
1876
  });
1814
- zn(c, v, u);
1877
+ Gn(c, v, u);
1815
1878
  let y = o(() => {
1816
1879
  p(), s.current?.focus();
1817
1880
  }, [p]);
@@ -1820,10 +1883,10 @@ function Un({ children: e, items: t, radius: n = "md", className: r, ref: i, "ar
1820
1883
  className: r,
1821
1884
  onContextMenu: (e) => {
1822
1885
  e.preventDefault(), s.current = document.activeElement;
1823
- let { x: t, y: n } = Hn(e);
1824
- m.setReference(Vn(t, n)), d(!1);
1886
+ let { x: t, y: n } = Jn(e);
1887
+ m.setReference(qn(t, n)), d(!1);
1825
1888
  },
1826
- children: [e, c && /* @__PURE__ */ g(Ln, {
1889
+ children: [e, c && /* @__PURE__ */ g(Un, {
1827
1890
  "aria-label": a,
1828
1891
  setFloating: m.setFloating,
1829
1892
  floatingStyles: h,
@@ -1837,7 +1900,7 @@ function Un({ children: e, items: t, radius: n = "md", className: r, ref: i, "ar
1837
1900
  }
1838
1901
  //#endregion
1839
1902
  //#region src/lib/surface_error.ts
1840
- function Wn(e, t) {
1903
+ function Xn(e, t) {
1841
1904
  if (t) {
1842
1905
  t(e);
1843
1906
  return;
@@ -1848,23 +1911,23 @@ function Wn(e, t) {
1848
1911
  }
1849
1912
  //#endregion
1850
1913
  //#region src/components/copy_button/copy_button.tsx
1851
- var Gn = 2e3;
1852
- function Kn({ value: e, children: t, onError: n }) {
1914
+ var Zn = 2e3;
1915
+ function Qn({ value: e, children: t, onError: n }) {
1853
1916
  let [r, i] = p(!1), a = f(void 0);
1854
1917
  return c(() => () => clearTimeout(a.current), []), /* @__PURE__ */ g(h, { children: t({
1855
1918
  copied: r,
1856
1919
  copy: async () => {
1857
1920
  try {
1858
- await navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), Gn);
1921
+ await navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), Zn);
1859
1922
  } catch (e) {
1860
- Wn(e, n);
1923
+ Xn(e, n);
1861
1924
  }
1862
1925
  }
1863
1926
  }) });
1864
1927
  }
1865
1928
  //#endregion
1866
1929
  //#region src/lib/split_into_highlight_segments.ts
1867
- function qn(e, t) {
1930
+ function $n(e, t) {
1868
1931
  if (t.length === 0) return [{
1869
1932
  text: e,
1870
1933
  isMatch: !1
@@ -1887,7 +1950,7 @@ function qn(e, t) {
1887
1950
  }
1888
1951
  //#endregion
1889
1952
  //#region src/components/highlight/highlight.tsx
1890
- function Jn(e) {
1953
+ function er(e) {
1891
1954
  let t = 0;
1892
1955
  return e.map((e) => {
1893
1956
  let n = t;
@@ -1897,53 +1960,200 @@ function Jn(e) {
1897
1960
  };
1898
1961
  });
1899
1962
  }
1900
- function Yn({ text: e, ranges: t }) {
1901
- let n = Jn(qn(e, t));
1963
+ function tr({ text: e, ranges: t }) {
1964
+ let n = er($n(e, t));
1902
1965
  return /* @__PURE__ */ g(h, { children: n.map((e) => e.isMatch ? /* @__PURE__ */ g("mark", {
1903
1966
  className: "rounded bg-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:text-yellow-100",
1904
1967
  children: e.text
1905
1968
  }, e.start) : /* @__PURE__ */ g("span", { children: e.text }, e.start)) });
1906
1969
  }
1907
1970
  //#endregion
1971
+ //#region src/components/shared/portal_target.ts
1972
+ var nr = [
1973
+ "main",
1974
+ "nav",
1975
+ "aside",
1976
+ "header",
1977
+ "footer",
1978
+ "form[aria-label]",
1979
+ "form[aria-labelledby]",
1980
+ "section[aria-label]",
1981
+ "section[aria-labelledby]",
1982
+ "[role=main]",
1983
+ "[role=navigation]",
1984
+ "[role=complementary]",
1985
+ "[role=banner]",
1986
+ "[role=contentinfo]",
1987
+ "[role=region]",
1988
+ "[role=search]",
1989
+ "[role=form]",
1990
+ "dialog",
1991
+ "[role=dialog]",
1992
+ "[role=alertdialog]"
1993
+ ].join(", ");
1994
+ function rr(e) {
1995
+ return e?.closest(nr) ?? (e?.ownerDocument ?? document).body;
1996
+ }
1997
+ //#endregion
1998
+ //#region src/components/shared/accessible_name.ts
1999
+ function ir(e) {
2000
+ return (e ?? "").replace(/\s+/g, " ").trim();
2001
+ }
2002
+ function ar(e, t) {
2003
+ return t.split(/\s+/).map((t) => e.ownerDocument.getElementById(t)?.textContent).join(" ");
2004
+ }
2005
+ function or(e) {
2006
+ let t = ir(e.getAttribute("aria-label"));
2007
+ if (t) return t;
2008
+ let n = e.getAttribute("aria-labelledby");
2009
+ return (n ? ir(ar(e, n)) : "") || ir(e.textContent);
2010
+ }
2011
+ //#endregion
2012
+ //#region src/components/tooltip/tooltip.tsx
2013
+ var sr = 8, cr = 8, lr = {
2014
+ top: "data-[state=closed]:translate-y-1",
2015
+ bottom: "data-[state=closed]:-translate-y-1",
2016
+ left: "data-[state=closed]:translate-x-1",
2017
+ right: "data-[state=closed]:-translate-x-1"
2018
+ }, ur = {
2019
+ top: "bottom",
2020
+ bottom: "top",
2021
+ left: "right",
2022
+ right: "left"
2023
+ };
2024
+ function dr({ content: e, children: t, position: r = "top", showOnClick: i = !1, temporaryContent: s, temporaryDuration: d = 2e3, disabled: m = !1, radius: v = "lg", onTemporaryShow: b, className: C, describeChild: w, portalContainer: T, ref: E }) {
2025
+ let { isMounted: D, isVisible: O, setIsVisible: k, open: A, close: j } = Wn(), [M, N] = p(!1), P = l(), F = f(null), [I, L] = p(null), [R, z] = p(null), [ee, te] = p(null), B = f(void 0), { refs: V, floatingStyles: ne, placement: H, middlewareData: re, isPositioned: U } = En({
2026
+ placement: r,
2027
+ strategy: "fixed",
2028
+ open: D,
2029
+ whileElementsMounted: hn,
2030
+ middleware: [
2031
+ On(sr),
2032
+ An(),
2033
+ kn({ padding: 8 }),
2034
+ jn({ element: F })
2035
+ ]
2036
+ }), W = H.split("-")[0];
2037
+ Gn(D, U, k);
2038
+ let ie = o((e) => se(V.setReference, L, E)(e), [V, E]), ae = o((e) => se(V.setFloating, z)(e), [V]);
2039
+ u(() => {
2040
+ let e = I?.firstElementChild;
2041
+ te(R && e ? ir(R.textContent) === or(e) : null);
2042
+ }, [
2043
+ I,
2044
+ R,
2045
+ e,
2046
+ s,
2047
+ M
2048
+ ]);
2049
+ let G = o(() => {
2050
+ N(!1), j();
2051
+ }, [j]), oe = () => {
2052
+ !m && s && (N(!0), A(U), clearTimeout(B.current), B.current = setTimeout(G, d), b?.());
2053
+ }, K = () => {
2054
+ m || A(U);
2055
+ }, ce = o(() => {
2056
+ clearTimeout(B.current), G();
2057
+ }, [G]);
2058
+ c(() => () => clearTimeout(B.current), []), c(() => {
2059
+ if (!D) return;
2060
+ let e = (e) => {
2061
+ e.key === "Escape" && ce();
2062
+ };
2063
+ return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
2064
+ }, [D, ce]);
2065
+ let le = D && !m, ue = M && s ? s : e, de = {
2066
+ onClick: (e) => {
2067
+ i && s && oe(), a(t) && t.props.onClick?.(e);
2068
+ },
2069
+ "aria-describedby": q(a(t) ? t.props["aria-describedby"] : void 0, le && (w ?? (ee !== null && !ee)) && P)
2070
+ }, fe = a(t) ? n(t, de) : t, pe = T ?? rr(I), me = re.arrow?.x, he = re.arrow?.y, J = ur[W];
2071
+ return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("span", {
2072
+ ref: ie,
2073
+ className: x("inline-block", C),
2074
+ onMouseEnter: K,
2075
+ onMouseLeave: ce,
2076
+ onFocus: K,
2077
+ onBlur: ce,
2078
+ children: [fe, s !== void 0 && /* @__PURE__ */ g("span", {
2079
+ role: "status",
2080
+ className: "sr-only",
2081
+ children: M ? s : null
2082
+ })]
2083
+ }), le && y(/* @__PURE__ */ g("div", {
2084
+ ref: ae,
2085
+ style: ne,
2086
+ className: "z-50 inline-block pointer-events-none",
2087
+ children: /* @__PURE__ */ _("div", {
2088
+ id: P,
2089
+ role: "tooltip",
2090
+ "data-state": O ? "open" : "closed",
2091
+ className: x("px-3 py-1.5 text-sm whitespace-nowrap", "text-white dark:text-gray-900 bg-gray-900 dark:bg-gray-100 shadow-lg", "transition-[opacity,transform] duration-150 ease-out", O ? "opacity-100" : "opacity-0", lr[W], S[v]),
2092
+ children: [ue, /* @__PURE__ */ g("div", {
2093
+ ref: F,
2094
+ style: {
2095
+ position: "absolute",
2096
+ width: `${cr}px`,
2097
+ height: `${cr}px`,
2098
+ left: me === void 0 ? void 0 : `${me}px`,
2099
+ top: he === void 0 ? void 0 : `${he}px`,
2100
+ [J]: `-${cr / 2}px`
2101
+ },
2102
+ className: "rotate-45 bg-gray-900 dark:bg-gray-100"
2103
+ })]
2104
+ })
2105
+ }), pe)] });
2106
+ }
2107
+ //#endregion
1908
2108
  //#region src/components/icon_button/icon_button.tsx
1909
- var Xn = {
2109
+ var fr = {
1910
2110
  xs: "p-1",
1911
2111
  sm: "p-2",
1912
2112
  md: "p-2",
1913
2113
  lg: "p-3"
1914
- }, Zn = {
2114
+ }, pr = {
1915
2115
  xs: "w-4 h-4",
1916
2116
  sm: "w-4 h-4",
1917
2117
  md: "w-5 h-5",
1918
2118
  lg: "w-6 h-6"
1919
2119
  };
1920
- function Qn(e) {
1921
- let { icon: t, "aria-label": n, unstyled: r = !1, variant: i = "outline", color: a = "neutral", size: o = "md", radius: s = "md", className: c, children: l, ref: u, ...d } = e, f = A[a];
1922
- return /* @__PURE__ */ _("button", {
1923
- ref: u,
2120
+ function mr(e) {
2121
+ if (e) return e === !0 ? {} : typeof e == "string" ? { position: e } : e;
2122
+ }
2123
+ function hr(e) {
2124
+ let { icon: t, "aria-label": n, unstyled: r = !1, variant: i = "outline", color: a = "neutral", size: o = "md", radius: s = "md", className: c, children: l, tooltip: u, ref: d, ...f } = e, p = A[a], m = mr(u), h = /* @__PURE__ */ _("button", {
2125
+ ref: d,
1924
2126
  type: "button",
1925
2127
  "aria-label": n,
1926
2128
  className: x(j, !r && [
1927
2129
  M,
1928
2130
  "border",
1929
2131
  S[s],
1930
- Xn[o],
1931
- f[i],
1932
- f.focusOutline
2132
+ fr[o],
2133
+ p[i],
2134
+ p.focusOutline
1933
2135
  ], c),
1934
- ...d,
1935
- children: [/* @__PURE__ */ g("div", { className: x(t, Zn[o], l && "mr-1") }), l]
2136
+ ...f,
2137
+ children: [/* @__PURE__ */ g("div", { className: x(t, pr[o], l && "mr-1") }), l]
2138
+ });
2139
+ if (!m) return h;
2140
+ let v = m.content !== void 0;
2141
+ return /* @__PURE__ */ g(dr, {
2142
+ content: v ? m.content : n,
2143
+ position: m.position,
2144
+ describeChild: v ? void 0 : !1,
2145
+ children: h
1936
2146
  });
1937
2147
  }
1938
2148
  //#endregion
1939
2149
  //#region src/components/shared/use_controlled_length.ts
1940
- function $n(e) {
2150
+ function gr(e) {
1941
2151
  return typeof e == "string" ? e.length : 0;
1942
2152
  }
1943
- function er(e, t) {
1944
- let [n, r] = p($n(t)), i = e !== void 0;
2153
+ function _r(e, t) {
2154
+ let [n, r] = p(gr(t)), i = e !== void 0;
1945
2155
  return {
1946
- length: i ? $n(e) : n,
2156
+ length: i ? gr(e) : n,
1947
2157
  trackLength: (e) => {
1948
2158
  i || r(e.length);
1949
2159
  }
@@ -1951,50 +2161,52 @@ function er(e, t) {
1951
2161
  }
1952
2162
  //#endregion
1953
2163
  //#region src/components/input/input.tsx
1954
- function tr({ label: e, error: t, showCharCount: n = !1, minLength: r, maxLength: i, radius: a = "md", unstyled: o = !1, className: s, wrapperClassName: c, value: l, defaultValue: u, onChange: d, id: f, "aria-describedby": p, ...m }) {
1955
- let { fieldId: h, errorId: v, characterCountId: y } = K(f), { length: b, trackLength: C } = er(l, u), w = n && (r !== void 0 || i !== void 0), T = (e) => {
1956
- C(e.target.value), d?.(e);
2164
+ function vr({ label: e, description: t, error: n, showCharCount: r = !1, minLength: i, maxLength: a, radius: o = "md", unstyled: s = !1, className: c, wrapperClassName: l, value: u, defaultValue: d, onChange: f, id: p, "aria-describedby": m, ...h }) {
2165
+ let { fieldId: v, errorId: y, descriptionId: b, characterCountId: C } = Y(p), { length: w, trackLength: T } = _r(u, d), E = r && (i !== void 0 || a !== void 0), D = (e) => {
2166
+ T(e.target.value), f?.(e);
1957
2167
  };
1958
- return /* @__PURE__ */ _(Oe, {
1959
- fieldId: h,
1960
- errorId: v,
2168
+ return /* @__PURE__ */ _(je, {
2169
+ fieldId: v,
2170
+ errorId: y,
2171
+ descriptionId: b,
1961
2172
  label: e,
1962
- error: t,
1963
- required: m.required,
1964
- wrapperClassName: c,
2173
+ description: t,
2174
+ error: n,
2175
+ required: h.required,
2176
+ wrapperClassName: l,
1965
2177
  children: [/* @__PURE__ */ g("input", {
1966
- id: h,
1967
- className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !o && [
2178
+ id: v,
2179
+ className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !s && [
1968
2180
  le,
1969
- S[a],
2181
+ S[o],
1970
2182
  "px-3 py-2 text-sm"
1971
- ], !o && t && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), s),
1972
- ...l === void 0 ? { defaultValue: u } : { value: l },
1973
- minLength: r,
1974
- maxLength: i,
1975
- onChange: T,
1976
- "aria-invalid": !!t,
1977
- "aria-describedby": G(p, t && v, w && y),
1978
- ...m
1979
- }), w && /* @__PURE__ */ g(ce, {
1980
- id: y,
1981
- current: b,
1982
- min: r,
1983
- max: i,
1984
- showMin: r !== void 0,
1985
- showMax: i !== void 0
2183
+ ], !s && n && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), c),
2184
+ ...u === void 0 ? { defaultValue: d } : { value: u },
2185
+ minLength: i,
2186
+ maxLength: a,
2187
+ onChange: D,
2188
+ "aria-invalid": !!n,
2189
+ "aria-describedby": q(m, !!t && b, n && y, E && C),
2190
+ ...h
2191
+ }), E && /* @__PURE__ */ g(K, {
2192
+ id: C,
2193
+ current: w,
2194
+ min: i,
2195
+ max: a,
2196
+ showMin: i !== void 0,
2197
+ showMax: a !== void 0
1986
2198
  })]
1987
2199
  });
1988
2200
  }
1989
2201
  //#endregion
1990
2202
  //#region src/components/kbd/kbd.tsx
1991
- var nr = {
2203
+ var yr = {
1992
2204
  xs: "px-1.5 py-0.5 text-xs",
1993
2205
  sm: "px-2 py-0.5 text-xs",
1994
2206
  md: "px-2.5 py-1 text-sm",
1995
2207
  lg: "px-3 py-1 text-base"
1996
- }, rr = ({ children: e, size: t = "sm", radius: n = "sm", unstyled: r = !1, className: i }) => /* @__PURE__ */ g("kbd", {
1997
- className: x("inline-flex items-center", nr[t], !r && [
2208
+ }, br = ({ children: e, size: t = "sm", radius: n = "sm", unstyled: r = !1, className: i }) => /* @__PURE__ */ g("kbd", {
2209
+ className: x("inline-flex items-center", yr[t], !r && [
1998
2210
  "border font-semibold uppercase",
1999
2211
  "text-gray-600 dark:text-gray-300",
2000
2212
  "bg-gray-100 dark:bg-gray-700",
@@ -2002,35 +2214,25 @@ var nr = {
2002
2214
  S[n]
2003
2215
  ], i),
2004
2216
  children: e
2005
- });
2006
- //#endregion
2007
- //#region src/lib/merge_refs.ts
2008
- function ir(...e) {
2009
- return (t) => {
2010
- for (let n of e) typeof n == "function" ? n(t) : n && (n.current = t);
2011
- };
2012
- }
2013
- //#endregion
2014
- //#region src/components/menu/menu.tsx
2015
- var ar = 4;
2016
- function or(e, t) {
2217
+ }), xr = 4;
2218
+ function Sr(e, t) {
2017
2219
  return t === "center" ? e : `${e}-${t}`;
2018
2220
  }
2019
- function sr({ trigger: e, children: t, side: r = "bottom", align: i = "start", radius: s = "md", className: c, ref: u }) {
2020
- let d = f(null), [m, h] = p("first"), { isMounted: v, isVisible: y, setIsVisible: b, open: S, close: C } = Rn(), { refs: w, floatingStyles: T, isPositioned: E } = bn({
2021
- placement: or(r, i),
2221
+ function Cr({ trigger: e, children: t, side: r = "bottom", align: i = "start", radius: s = "md", className: c, ref: u }) {
2222
+ let d = f(null), [m, h] = p("first"), { isMounted: v, isVisible: y, setIsVisible: b, open: S, close: C } = Wn(), { refs: w, floatingStyles: T, isPositioned: E } = En({
2223
+ placement: Sr(r, i),
2022
2224
  open: v,
2023
- whileElementsMounted: ln,
2225
+ whileElementsMounted: hn,
2024
2226
  middleware: [
2025
- Sn(ar),
2026
- wn(),
2027
- Cn({ padding: 8 })
2227
+ On(xr),
2228
+ An(),
2229
+ kn({ padding: 8 })
2028
2230
  ]
2029
2231
  });
2030
- zn(v, E, b);
2232
+ Gn(v, E, b);
2031
2233
  let D = l(), O = (a(e) ? e.props.id : void 0) ?? D, k = `${O}-menu`, A = o(() => {
2032
2234
  C(), d.current?.querySelector("button, [href], [tabindex]")?.focus();
2033
- }, [C]), j = o((e) => ir(w.setReference, d, u)(e), [w, u]), M = {
2235
+ }, [C]), j = o((e) => se(w.setReference, d, u)(e), [w, u]), M = {
2034
2236
  id: O,
2035
2237
  onClick: (t) => {
2036
2238
  t.stopPropagation(), y ? C() : (h("first"), S(E)), a(e) && e.props.onClick?.(t);
@@ -2045,7 +2247,7 @@ function sr({ trigger: e, children: t, side: r = "bottom", align: i = "start", r
2045
2247
  return /* @__PURE__ */ _("span", {
2046
2248
  ref: j,
2047
2249
  className: x("inline-block", c),
2048
- children: [N, v && /* @__PURE__ */ g(Ln, {
2250
+ children: [N, v && /* @__PURE__ */ g(Un, {
2049
2251
  id: k,
2050
2252
  labelledBy: O,
2051
2253
  setFloating: w.setFloating,
@@ -2061,7 +2263,7 @@ function sr({ trigger: e, children: t, side: r = "bottom", align: i = "start", r
2061
2263
  }
2062
2264
  //#endregion
2063
2265
  //#region src/components/menu_group/menu_group.tsx
2064
- function cr({ label: e, children: t, unstyled: n = !1, className: r, wrapperClassName: i }) {
2266
+ function wr({ label: e, children: t, unstyled: n = !1, className: r, wrapperClassName: i }) {
2065
2267
  let a = l();
2066
2268
  return /* @__PURE__ */ _("div", {
2067
2269
  role: "group",
@@ -2077,7 +2279,7 @@ function cr({ label: e, children: t, unstyled: n = !1, className: r, wrapperClas
2077
2279
  }
2078
2280
  //#endregion
2079
2281
  //#region src/components/menu_item/menu_item_end.tsx
2080
- function lr({ trailing: e, selected: t }) {
2282
+ function Tr({ trailing: e, selected: t }) {
2081
2283
  let n = t !== void 0;
2082
2284
  return !e && !n ? null : /* @__PURE__ */ _("span", {
2083
2285
  className: "ml-auto flex flex-shrink-0 items-center gap-2 pl-2",
@@ -2092,45 +2294,45 @@ function lr({ trailing: e, selected: t }) {
2092
2294
  }
2093
2295
  //#endregion
2094
2296
  //#region src/components/menu_item/menu_item_styles.ts
2095
- var ur = [
2297
+ var Er = [
2096
2298
  "flex w-full cursor-pointer items-center gap-2 whitespace-nowrap px-4 py-2 text-left text-sm transition-colors",
2097
2299
  "focus-visible:bg-gray-100 dark:focus-visible:bg-gray-700",
2098
2300
  k
2099
2301
  ];
2100
- function dr(e, t, n) {
2101
- return x(ur, e, t ? "text-red-700 dark:text-red-300" : "text-gray-700 dark:text-gray-300", n);
2302
+ function Dr(e, t, n) {
2303
+ return x(Er, e, t ? "text-red-700 dark:text-red-300" : "text-gray-700 dark:text-gray-300", n);
2102
2304
  }
2103
2305
  //#endregion
2104
2306
  //#region src/components/menu_item/menu_item_content.tsx
2105
- var fr = ({ icon: e, children: t }) => /* @__PURE__ */ _(h, { children: [e && /* @__PURE__ */ g("div", {
2307
+ var Or = ({ icon: e, children: t }) => /* @__PURE__ */ _(h, { children: [e && /* @__PURE__ */ g("div", {
2106
2308
  className: x(e, "h-4 w-4 flex-shrink-0"),
2107
2309
  "aria-hidden": "true"
2108
- }), t] }), pr = "_blank", mr = "noopener noreferrer", hr = ["no-underline hover:bg-gray-100 dark:hover:bg-gray-700", "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50"];
2109
- function gr({ icon: e, trailing: t, href: n, target: r, rel: i, danger: a = !1, disabled: o = !1, children: s, className: c, ref: l }) {
2110
- let u = Dn();
2310
+ }), t] }), kr = "_blank", Ar = "noopener noreferrer", jr = ["no-underline hover:bg-gray-100 dark:hover:bg-gray-700", "aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50"];
2311
+ function Mr({ icon: e, trailing: t, href: n, target: r, rel: i, danger: a = !1, disabled: o = !1, children: s, className: c, ref: l }) {
2312
+ let u = Nn();
2111
2313
  return /* @__PURE__ */ _("a", {
2112
2314
  ref: l,
2113
2315
  role: "menuitem",
2114
2316
  tabIndex: -1,
2115
2317
  href: o ? void 0 : n,
2116
2318
  target: r,
2117
- rel: i ?? (r === pr ? mr : void 0),
2319
+ rel: i ?? (r === kr ? Ar : void 0),
2118
2320
  "aria-disabled": o || void 0,
2119
2321
  onClick: (e) => {
2120
2322
  e.stopPropagation(), u?.();
2121
2323
  },
2122
- className: dr(hr, a, c),
2123
- children: [/* @__PURE__ */ g(fr, {
2324
+ className: Dr(jr, a, c),
2325
+ children: [/* @__PURE__ */ g(Or, {
2124
2326
  icon: e,
2125
2327
  children: s
2126
- }), /* @__PURE__ */ g(lr, { trailing: t })]
2328
+ }), /* @__PURE__ */ g(Tr, { trailing: t })]
2127
2329
  });
2128
2330
  }
2129
2331
  //#endregion
2130
2332
  //#region src/components/menu_item/menu_item_button.tsx
2131
- var _r = ["hover:enabled:bg-gray-100 dark:hover:enabled:bg-gray-700", "disabled:cursor-not-allowed disabled:opacity-50"];
2132
- function vr({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, disabled: a = !1, children: o, className: s, ref: c }) {
2133
- let l = Dn();
2333
+ var Nr = ["hover:enabled:bg-gray-100 dark:hover:enabled:bg-gray-700", "disabled:cursor-not-allowed disabled:opacity-50"];
2334
+ function Pr({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, disabled: a = !1, children: o, className: s, ref: c }) {
2335
+ let l = Nn();
2134
2336
  return /* @__PURE__ */ _("button", {
2135
2337
  ref: c,
2136
2338
  type: "button",
@@ -2141,11 +2343,11 @@ function vr({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, dis
2141
2343
  e.stopPropagation(), n(e), l?.();
2142
2344
  },
2143
2345
  disabled: a,
2144
- className: dr(_r, i, s),
2145
- children: [/* @__PURE__ */ g(fr, {
2346
+ className: Dr(Nr, i, s),
2347
+ children: [/* @__PURE__ */ g(Or, {
2146
2348
  icon: e,
2147
2349
  children: o
2148
- }), /* @__PURE__ */ g(lr, {
2350
+ }), /* @__PURE__ */ g(Tr, {
2149
2351
  trailing: t,
2150
2352
  selected: r
2151
2353
  })]
@@ -2153,17 +2355,17 @@ function vr({ icon: e, trailing: t, onClick: n, selected: r, danger: i = !1, dis
2153
2355
  }
2154
2356
  //#endregion
2155
2357
  //#region src/components/menu_item/menu_item.tsx
2156
- function yr(e) {
2157
- return e.href === void 0 ? /* @__PURE__ */ g(vr, { ...e }) : /* @__PURE__ */ g(gr, { ...e });
2358
+ function Fr(e) {
2359
+ return e.href === void 0 ? /* @__PURE__ */ g(Pr, { ...e }) : /* @__PURE__ */ g(Mr, { ...e });
2158
2360
  }
2159
2361
  //#endregion
2160
2362
  //#region src/components/menu_separator/menu_separator.tsx
2161
- var br = ({ unstyled: e = !1, className: t }) => /* @__PURE__ */ g("hr", {
2363
+ var Ir = ({ unstyled: e = !1, className: t }) => /* @__PURE__ */ g("hr", {
2162
2364
  role: "separator",
2163
2365
  "aria-orientation": "horizontal",
2164
2366
  className: x("w-full", !e && ["my-1 border-0 border-t", "border-gray-200 dark:border-gray-700"], t)
2165
- }), xr = [];
2166
- function Sr() {
2367
+ }), Lr = [];
2368
+ function Rr() {
2167
2369
  let e = 0, t = [], n = null, r = /* @__PURE__ */ new Set(), i = () => {
2168
2370
  for (let e of r) e(t);
2169
2371
  };
@@ -2184,7 +2386,7 @@ function Sr() {
2184
2386
  r.delete(i), r.size || (e = 0, t = [], n = null);
2185
2387
  }),
2186
2388
  getSnapshot: () => t,
2187
- getServerSnapshot: () => xr,
2389
+ getServerSnapshot: () => Lr,
2188
2390
  getListenersSize: () => r.size,
2189
2391
  getUpsertPromise: () => n,
2190
2392
  setUpsertPromise: (e) => {
@@ -2192,9 +2394,9 @@ function Sr() {
2192
2394
  }
2193
2395
  };
2194
2396
  }
2195
- var Cr = /* @__PURE__ */ new Map();
2196
- function wr(e, t = 0) {
2197
- let n = { current: Sr() }, r = (e) => (r) => {
2397
+ var zr = /* @__PURE__ */ new Map();
2398
+ function Br(e, t = 0) {
2399
+ let n = { current: Rr() }, r = (e) => (r) => {
2198
2400
  let i = /* @__PURE__ */ new Set();
2199
2401
  n.current.set(e, (e) => (e.resolve(r), i.add(e.promise), {
2200
2402
  ...e,
@@ -2280,8 +2482,8 @@ function wr(e, t = 0) {
2280
2482
  set: (r) => {
2281
2483
  if (t || (e = r, !r)) return;
2282
2484
  t = !0;
2283
- let i = Cr.get(r);
2284
- i ? n.current = i : Cr.set(r, n.current);
2485
+ let i = zr.get(r);
2486
+ i ? n.current = i : zr.set(r, n.current);
2285
2487
  }
2286
2488
  });
2287
2489
  }
@@ -2289,7 +2491,7 @@ function wr(e, t = 0) {
2289
2491
  }
2290
2492
  //#endregion
2291
2493
  //#region src/components/shared/tabbable.ts
2292
- var Tr = [
2494
+ var Vr = [
2293
2495
  "a[href]",
2294
2496
  "button",
2295
2497
  "input",
@@ -2301,28 +2503,28 @@ var Tr = [
2301
2503
  "[contenteditable]:not([contenteditable=\"false\"])",
2302
2504
  "[tabindex]"
2303
2505
  ].join(", ");
2304
- function Er(e) {
2506
+ function Hr(e) {
2305
2507
  return e.matches(":disabled");
2306
2508
  }
2307
- function Dr(e) {
2509
+ function Ur(e) {
2308
2510
  return e.getAttribute("tabindex") === "-1";
2309
2511
  }
2310
- function Or(e) {
2512
+ function Wr(e) {
2311
2513
  return e.matches("input[type=\"hidden\"]");
2312
2514
  }
2313
- function kr(e) {
2515
+ function Gr(e) {
2314
2516
  return e.closest("[inert]") !== null;
2315
2517
  }
2316
- function Ar(e) {
2518
+ function Kr(e) {
2317
2519
  return typeof e.checkVisibility != "function" || e.checkVisibility();
2318
2520
  }
2319
- function jr(e) {
2320
- return !Er(e) && !Dr(e) && !Or(e) && !kr(e) && Ar(e);
2521
+ function qr(e) {
2522
+ return !Hr(e) && !Ur(e) && !Wr(e) && !Gr(e) && Kr(e);
2321
2523
  }
2322
- function Mr(e) {
2524
+ function Jr(e) {
2323
2525
  return e instanceof HTMLInputElement && e.type === "radio" && e.name !== "";
2324
2526
  }
2325
- function Nr(e) {
2527
+ function Yr(e) {
2326
2528
  let t = /* @__PURE__ */ new Map();
2327
2529
  for (let n of e) {
2328
2530
  let e = t.get(n.form) ?? /* @__PURE__ */ new Map();
@@ -2332,62 +2534,64 @@ function Nr(e) {
2332
2534
  }
2333
2535
  return Array.from(t.values()).flatMap((e) => Array.from(e.values()));
2334
2536
  }
2335
- function Pr(e) {
2537
+ function Xr(e) {
2336
2538
  return e.find((e) => e.checked) ?? e[0];
2337
2539
  }
2338
- function Fr(e) {
2339
- let t = Array.from(e.querySelectorAll(Tr)).filter(jr), n = t.filter(Mr), r = new Set(Nr(n).map(Pr));
2340
- return t.filter((e) => !Mr(e) || r.has(e));
2540
+ function Zr(e) {
2541
+ let t = Array.from(e.querySelectorAll(Vr)).filter(qr), n = t.filter(Jr), r = new Set(Yr(n).map(Xr));
2542
+ return t.filter((e) => !Jr(e) || r.has(e));
2341
2543
  }
2342
2544
  //#endregion
2343
2545
  //#region src/components/modal/modal_stack.ts
2344
- var Ir = [];
2345
- function Lr(e) {
2346
- return Ir.push(e), () => {
2347
- let t = Ir.indexOf(e);
2348
- t !== -1 && Ir.splice(t, 1);
2546
+ var Qr = [];
2547
+ function $r(e) {
2548
+ return Qr.push(e), () => {
2549
+ let t = Qr.indexOf(e);
2550
+ t !== -1 && Qr.splice(t, 1);
2349
2551
  };
2350
2552
  }
2351
- function Rr(e) {
2352
- return Ir[Ir.length - 1] === e;
2553
+ function ei(e) {
2554
+ return Qr[Qr.length - 1] === e;
2353
2555
  }
2354
2556
  //#endregion
2355
2557
  //#region src/components/modal/modal_shell.tsx
2356
- var zr = {
2558
+ var ti = r(null), ni = {
2357
2559
  sm: "max-w-md",
2358
2560
  md: "max-w-lg",
2359
2561
  lg: "max-w-2xl",
2360
2562
  xl: "max-w-4xl"
2361
2563
  };
2362
- function Br({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size: a = "md", radius: o = "xl", className: s, dismissible: u = !0, closeLabel: d = "Close", role: m = "dialog", initialFocusRef: h, "aria-label": v }) {
2363
- let [b, C] = p(!1), [w] = p(() => Symbol("modal")), T = f(null), E = f(null), D = f(null), O = l(), k = l();
2564
+ function ri({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size: a = "md", radius: o = "xl", className: s, dismissible: u = !0, closeLabel: d, role: m = "dialog", initialFocusRef: h, "aria-label": v }) {
2565
+ let b = we(), [C, w] = p(!1), [T] = p(() => Symbol("modal")), [E, D] = p(null), O = f(null), k = f(null), A = f(null), j = l(), M = l();
2364
2566
  c(() => {
2365
- if (!e) return Lr(w);
2366
- }, [e, w]), c(() => {
2367
- document.body.style.overflow = "hidden", D.current = document.activeElement;
2368
- let e = T.current, t = (E.current && Fr(E.current)[0]) ?? (e && Fr(e)[0]);
2369
- (h?.current ?? t ?? e)?.focus();
2370
- let n = requestAnimationFrame(() => {
2371
- requestAnimationFrame(() => C(!0));
2567
+ if (!e) return $r(T);
2568
+ }, [e, T]), c(() => {
2569
+ document.body.style.overflow = "hidden", A.current = document.activeElement;
2570
+ let e = requestAnimationFrame(() => {
2571
+ requestAnimationFrame(() => w(!0));
2372
2572
  });
2373
2573
  return () => {
2374
- cancelAnimationFrame(n), document.body.style.overflow = "";
2574
+ cancelAnimationFrame(e), document.body.style.overflow = "";
2375
2575
  };
2376
2576
  }, []), c(() => {
2377
- e && D.current?.focus();
2577
+ if (!E) return;
2578
+ let e = O.current, t = (k.current && Zr(k.current)[0]) ?? (e && Zr(e)[0]);
2579
+ (h?.current ?? t ?? e)?.focus();
2580
+ }, [E]), c(() => {
2581
+ e && A.current?.focus();
2378
2582
  }, [e]), c(() => {
2379
2583
  if (e) return;
2380
2584
  let n = (e) => {
2381
- if (!Rr(w)) return;
2585
+ if (!ei(T)) return;
2382
2586
  if (e.key === "Escape") {
2383
2587
  if (e.defaultPrevented) return;
2384
2588
  e.preventDefault(), u && t();
2385
2589
  return;
2386
2590
  }
2387
2591
  if (e.key !== "Tab") return;
2388
- let n = T.current;
2592
+ let n = O.current;
2389
2593
  if (!n) return;
2390
- let r = Fr(n);
2594
+ let r = Zr(n);
2391
2595
  if (r.length === 0) {
2392
2596
  e.preventDefault(), n.focus();
2393
2597
  return;
@@ -2404,38 +2608,38 @@ function Br({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size:
2404
2608
  e,
2405
2609
  t,
2406
2610
  u,
2407
- w
2611
+ T
2408
2612
  ]);
2409
- let A = () => {
2613
+ let N = () => {
2410
2614
  !e && u && t();
2411
- }, j = m === "alertdialog" && !!r, M = b && !e;
2615
+ }, P = m === "alertdialog" && !!r, F = C && !e;
2412
2616
  return y(/* @__PURE__ */ _("div", {
2413
- className: x("fixed inset-0 z-50 flex items-start justify-center", "p-2 sm:py-[3rem] lg:py-[5rem]", "transition-opacity duration-200 ease-out", M ? "opacity-100" : "opacity-0"),
2414
- onClick: A,
2617
+ className: x("fixed inset-0 z-50 flex items-start justify-center", "p-2 sm:py-[3rem] lg:py-[5rem]", "transition-opacity duration-200 ease-out", F ? "opacity-100" : "opacity-0"),
2618
+ onClick: N,
2415
2619
  children: [/* @__PURE__ */ g("div", {
2416
- className: x("fixed inset-0 bg-black/60 backdrop-blur-md", "transition-opacity duration-200 ease-out", M ? "opacity-100" : "opacity-0"),
2620
+ className: x("fixed inset-0 bg-black/60 backdrop-blur-md", "transition-opacity duration-200 ease-out", F ? "opacity-100" : "opacity-0"),
2417
2621
  "aria-hidden": "true"
2418
2622
  }), /* @__PURE__ */ _("div", {
2419
- ref: T,
2623
+ ref: O,
2420
2624
  role: m,
2421
2625
  "aria-modal": "true",
2422
- "aria-labelledby": n ? O : void 0,
2626
+ "aria-labelledby": n ? j : void 0,
2423
2627
  "aria-label": n ? void 0 : v,
2424
- "aria-describedby": j ? k : void 0,
2628
+ "aria-describedby": P ? M : void 0,
2425
2629
  tabIndex: -1,
2426
- className: x("relative w-full", zr[a], V, "shadow-2xl", S[o], "max-h-[calc(100vh-4rem)] sm:max-h-[calc(100vh-10rem)] overflow-hidden flex flex-col", "transition-all duration-200 ease-out", "focus:outline-none", M ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 translate-y-1"),
2630
+ className: x("relative w-full", ni[a], re, "shadow-2xl", S[o], "max-h-[calc(100vh-4rem)] sm:max-h-[calc(100vh-10rem)] overflow-hidden flex flex-col", "transition-all duration-200 ease-out", "focus:outline-none", F ? "opacity-100 scale-100 translate-y-0" : "opacity-0 scale-95 translate-y-1"),
2427
2631
  onClick: (e) => e.stopPropagation(),
2428
2632
  children: [
2429
2633
  n && /* @__PURE__ */ _("div", {
2430
2634
  className: "flex items-center justify-between gap-4 px-6 pt-5 pb-4 flex-shrink-0",
2431
2635
  children: [/* @__PURE__ */ g("h2", {
2432
- id: O,
2636
+ id: j,
2433
2637
  className: "text-base font-medium tracking-tight text-gray-900 dark:text-gray-100",
2434
2638
  children: n
2435
- }), u && /* @__PURE__ */ g(Qn, {
2639
+ }), u && /* @__PURE__ */ g(hr, {
2436
2640
  icon: "i-mdi-close",
2437
2641
  onClick: t,
2438
- "aria-label": d,
2642
+ "aria-label": d ?? b.close,
2439
2643
  variant: "subtle",
2440
2644
  size: "sm",
2441
2645
  radius: "full",
@@ -2443,13 +2647,17 @@ function Br({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size:
2443
2647
  })]
2444
2648
  }),
2445
2649
  /* @__PURE__ */ g("div", {
2446
- ref: E,
2447
- id: j ? k : void 0,
2650
+ ref: k,
2651
+ id: P ? M : void 0,
2448
2652
  className: x("flex-1 overflow-y-auto px-6 pb-6 text-sm leading-relaxed text-gray-600 dark:text-gray-400 min-h-0", !n && "pt-6", s),
2449
- children: r
2653
+ children: /* @__PURE__ */ g(ti.Provider, {
2654
+ value: E,
2655
+ children: r
2656
+ })
2450
2657
  }),
2451
- i && /* @__PURE__ */ g("div", {
2452
- className: x("flex items-center justify-end gap-3 px-6 py-4 border-t flex-shrink-0", "border-gray-100 dark:border-gray-800"),
2658
+ /* @__PURE__ */ g("div", {
2659
+ ref: D,
2660
+ className: x("flex items-center justify-end gap-3 px-6 py-4 border-t flex-shrink-0 empty:hidden", H),
2453
2661
  children: i
2454
2662
  })
2455
2663
  ]
@@ -2458,7 +2666,7 @@ function Br({ isEnded: e, onDismiss: t, title: n, children: r, footer: i, size:
2458
2666
  }
2459
2667
  //#endregion
2460
2668
  //#region node_modules/.pnpm/zustand@5.0.15_@types+react@19.3.0_react@19.3.0_use-sync-external-store@1.6.0_react@19.3.0_/node_modules/zustand/esm/vanilla.mjs
2461
- var Vr = (e) => {
2669
+ var ii = (e) => {
2462
2670
  let t, n = /* @__PURE__ */ new Set(), r = (e, r) => {
2463
2671
  let i = typeof e == "function" ? e(t) : e;
2464
2672
  if (!Object.is(i, t)) {
@@ -2472,46 +2680,46 @@ var Vr = (e) => {
2472
2680
  subscribe: (e) => (n.add(e), () => n.delete(e))
2473
2681
  }, o = t = e(r, i, a);
2474
2682
  return a;
2475
- }, Hr = ((e) => e ? Vr(e) : Vr), Ur = (e) => e;
2476
- function Wr(e, n = Ur) {
2683
+ }, ai = ((e) => e ? ii(e) : ii), oi = (e) => e;
2684
+ function si(e, n = oi) {
2477
2685
  let r = t.useSyncExternalStore(e.subscribe, t.useCallback(() => n(e.getState()), [e, n]), t.useCallback(() => n(e.getInitialState()), [e, n]));
2478
2686
  return t.useDebugValue(r), r;
2479
2687
  }
2480
- var Gr = (e) => {
2481
- let t = Hr(e), n = (e) => Wr(t, e);
2688
+ var ci = (e) => {
2689
+ let t = ai(e), n = (e) => si(t, e);
2482
2690
  return Object.assign(n, t), n;
2483
- }, Kr = ((e) => e ? Gr(e) : Gr), qr = Kr((e) => ({
2691
+ }, li = ((e) => e ? ci(e) : ci), ui = li((e) => ({
2484
2692
  globalHotkeysEnabled: !0,
2485
2693
  setGlobalHotkeysEnabled: (t) => e({ globalHotkeysEnabled: t })
2486
- })), Jr = 0;
2487
- function Yr() {
2488
- c(() => (Jr += 1, Jr === 1 && qr.getState().setGlobalHotkeysEnabled(!1), () => {
2489
- --Jr, Jr === 0 && qr.getState().setGlobalHotkeysEnabled(!0);
2694
+ })), di = 0;
2695
+ function fi() {
2696
+ c(() => (di += 1, di === 1 && ui.getState().setGlobalHotkeysEnabled(!1), () => {
2697
+ --di, di === 0 && ui.getState().setGlobalHotkeysEnabled(!0);
2490
2698
  }), []);
2491
2699
  }
2492
2700
  //#endregion
2493
2701
  //#region src/components/modal/confirm_modal.tsx
2494
- var Xr = {
2702
+ var pi = {
2495
2703
  danger: "i-mdi-alert-circle",
2496
2704
  primary: "i-mdi-help-circle",
2497
2705
  success: "i-mdi-check-circle"
2498
- }, Zr = {
2706
+ }, mi = {
2499
2707
  danger: "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400",
2500
2708
  primary: "bg-blue-50 text-blue-600 dark:bg-blue-500/10 dark:text-blue-400",
2501
2709
  success: "bg-green-50 text-green-600 dark:bg-green-500/10 dark:text-green-400"
2502
2710
  };
2503
- function Qr({ title: e, color: t }) {
2711
+ function hi({ title: e, color: t }) {
2504
2712
  return /* @__PURE__ */ _("div", {
2505
2713
  className: "flex items-center gap-3",
2506
2714
  children: [/* @__PURE__ */ g("span", {
2507
- className: x("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", Zr[t]),
2715
+ className: x("flex h-9 w-9 shrink-0 items-center justify-center rounded-full", mi[t]),
2508
2716
  "aria-hidden": "true",
2509
- children: /* @__PURE__ */ g("span", { className: x(Xr[t], "h-5 w-5") })
2717
+ children: /* @__PURE__ */ g("span", { className: x(pi[t], "h-5 w-5") })
2510
2718
  }), e]
2511
2719
  });
2512
2720
  }
2513
- var $r = wr(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, confirmColor: a, radius: o, closeLabel: s, onConfirm: c, onError: l }) => {
2514
- Yr();
2721
+ var gi = Br(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i, confirmColor: a, radius: o, closeLabel: s, onConfirm: c, onError: l }) => {
2722
+ fi();
2515
2723
  let [u, d] = p(!1), m = f(null), v = () => e.end(!1), y = async () => {
2516
2724
  if (!c) {
2517
2725
  e.end(!0);
@@ -2521,88 +2729,86 @@ var $r = wr(({ call: e, title: t, children: n, confirmLabel: r, cancelLabel: i,
2521
2729
  try {
2522
2730
  await c(), e.end(!0);
2523
2731
  } catch (e) {
2524
- d(!1), Wn(e, l);
2732
+ d(!1), Xn(e, l);
2525
2733
  }
2526
- }, b = u, x = r ?? "Confirm", S = i ?? "Cancel", C = a ?? "primary";
2527
- return /* @__PURE__ */ g(Br, {
2734
+ }, b = we(), x = u, S = r ?? b.confirm, C = i ?? b.cancel, w = a ?? "primary";
2735
+ return /* @__PURE__ */ g(ri, {
2528
2736
  isEnded: e.ended,
2529
2737
  onDismiss: v,
2530
- title: /* @__PURE__ */ g(Qr, {
2738
+ title: /* @__PURE__ */ g(hi, {
2531
2739
  title: t,
2532
- color: C
2740
+ color: w
2533
2741
  }),
2534
2742
  size: "sm",
2535
2743
  radius: o,
2536
2744
  closeLabel: s,
2537
2745
  role: "alertdialog",
2538
2746
  initialFocusRef: m,
2539
- footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(R, {
2747
+ footer: /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(te, {
2540
2748
  ref: m,
2541
2749
  variant: "outline",
2542
2750
  color: "neutral",
2543
2751
  onClick: v,
2544
- disabled: b,
2752
+ disabled: x,
2545
2753
  size: "sm",
2546
- children: S
2547
- }), /* @__PURE__ */ g(R, {
2548
- color: C,
2754
+ children: C
2755
+ }), /* @__PURE__ */ g(te, {
2756
+ color: w,
2549
2757
  onClick: () => {
2550
2758
  y();
2551
2759
  },
2552
- loading: b,
2553
- disabled: b,
2760
+ loading: x,
2761
+ disabled: x,
2554
2762
  size: "sm",
2555
- children: x
2763
+ children: S
2556
2764
  })] }),
2557
2765
  children: n
2558
2766
  });
2559
2767
  }, 200);
2560
2768
  //#endregion
2561
2769
  //#region src/components/modal/modal.tsx
2562
- function ei(e, t) {
2770
+ function _i(e, t) {
2563
2771
  return typeof e == "function" ? e(t) : e;
2564
2772
  }
2565
- var ti = r(null), ni = wr(({ call: e, title: t, children: n, size: r, radius: i, className: a, dismissible: o, closeLabel: s, "aria-label": c }) => {
2566
- Yr();
2567
- let [l, u] = p(null), d = () => e.end();
2568
- return /* @__PURE__ */ g(Br, {
2773
+ var vi = Br(({ call: e, title: t, children: n, size: r, radius: i, className: a, dismissible: o, closeLabel: s, role: c, initialFocusRef: l, "aria-label": u }) => {
2774
+ fi();
2775
+ let d = () => e.end();
2776
+ return /* @__PURE__ */ g(ri, {
2569
2777
  isEnded: e.ended,
2570
2778
  onDismiss: d,
2571
2779
  title: t,
2572
- footer: l,
2573
2780
  size: r,
2574
2781
  radius: i,
2575
2782
  className: a,
2576
2783
  dismissible: o,
2577
2784
  closeLabel: s,
2578
- "aria-label": c,
2579
- children: /* @__PURE__ */ g(ti.Provider, {
2580
- value: u,
2581
- children: ei(n, d)
2582
- })
2785
+ role: c,
2786
+ initialFocusRef: l,
2787
+ "aria-label": u,
2788
+ children: _i(n, d)
2583
2789
  });
2584
2790
  }, 200);
2585
2791
  //#endregion
2586
2792
  //#region src/components/modal/modal_footer.tsx
2587
- function ri({ children: e }) {
2793
+ function yi({ children: e }) {
2588
2794
  let t = s(ti);
2589
- return c(() => (t?.(e), () => t?.(null)), [t, e]), null;
2795
+ return t ? y(e, t) : null;
2590
2796
  }
2591
2797
  //#endregion
2592
2798
  //#region src/components/modal_provider/modal_provider.tsx
2593
- function ii() {
2594
- return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ni, {}), /* @__PURE__ */ g($r, {})] });
2799
+ function bi() {
2800
+ return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(vi, {}), /* @__PURE__ */ g(gi, {})] });
2595
2801
  }
2596
2802
  //#endregion
2597
2803
  //#region src/components/multi_combobox/multi_combobox.tsx
2598
- var ai = 2;
2599
- function oi(e, t, n, r) {
2804
+ var xi = 2;
2805
+ function Si(e, t, n, r) {
2600
2806
  return r?.(e, t) ? !0 : n === void 0 || t.includes(e) ? !1 : t.length >= n;
2601
2807
  }
2602
- function si(e, t) {
2808
+ function Ci(e, t) {
2603
2809
  return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
2604
2810
  }
2605
- function ci(e, t) {
2811
+ function wi(e, t) {
2606
2812
  if (e.length <= t) return {
2607
2813
  visibleOptions: e,
2608
2814
  hiddenCount: 0
@@ -2613,132 +2819,132 @@ function ci(e, t) {
2613
2819
  hiddenCount: e.length - n
2614
2820
  };
2615
2821
  }
2616
- var li = "inline-flex items-center rounded-full bg-gray-200 dark:bg-gray-700 px-2 py-0.5 text-xs text-gray-900 dark:text-gray-100";
2617
- function ui({ options: e, label: t, "aria-label": n, error: r, placeholder: i, searchPlaceholder: a = "Search", noResultsText: s = "No results found", clearLabel: l = "Clear selection", clearText: u = "Clear", maxSelectedValues: m, isOptionDisabled: v, maxDisplayedValues: y = ai, formatOverflowCount: b = (e) => `+${e} more`, formatSelectedCount: w = (e) => `${e} selected`, formatMaxSelectedHint: T = (e) => `You can select up to ${e} items`, radius: E = "sm", unstyled: D = !1, disabled: O = !1, required: k = !1, className: j, wrapperClassName: M, values: N, defaultValues: P = [], onChange: F, onDropdownClose: I, id: ee }) {
2618
- let { fieldId: L, errorId: te, labelId: ne } = K(ee), R = `${L}-listbox`, re = `${L}-max-hint`, z = f(null), B = f(null), ie = f(null), [V, H] = ye(N, P), [ae, oe] = p(""), [U, se] = p(!1), W = d(() => {
2619
- let t = ae.trim().toLowerCase();
2822
+ var Ti = "inline-flex items-center rounded-full bg-gray-200 dark:bg-gray-700 px-2 py-0.5 text-xs text-gray-900 dark:text-gray-100";
2823
+ function Ei({ options: e, label: t, "aria-label": n, error: r, placeholder: i, searchPlaceholder: a, noResultsText: s, clearLabel: l, clearText: u, maxSelectedValues: m, isOptionDisabled: v, maxDisplayedValues: y = xi, formatOverflowCount: b, formatSelectedCount: w, formatMaxSelectedHint: T, radius: E = "sm", unstyled: D = !1, disabled: O = !1, required: k = !1, className: j, wrapperClassName: M, values: N, defaultValues: P = [], onChange: F, onDropdownClose: I, id: L }) {
2824
+ let R = we(), { fieldId: z, errorId: ee, labelId: te } = Y(L), B = `${z}-listbox`, V = `${z}-max-hint`, ne = f(null), H = f(null), re = f(null), [U, W] = be(N, P), [ie, ae] = p(""), [G, oe] = p(!1), K = d(() => {
2825
+ let t = ie.trim().toLowerCase();
2620
2826
  return t ? e.filter((e) => e.label.toLowerCase().includes(t)) : e;
2621
- }, [e, ae]), { activeIndex: ce, activeOptionId: G, move: ue, first: de, last: fe, reset: pe } = je({
2622
- optionCount: W.length,
2623
- getOptionId: (e) => `${R}-option-${e}`,
2624
- isOpen: U
2625
- }), me = d(() => e.filter((e) => V.includes(e.value)), [e, V]), { visibleOptions: he, hiddenCount: ge } = ci(me, y), _e = () => {
2626
- O || se(!0);
2627
- }, ve = o(() => {
2628
- se(!1), oe(""), pe(), I?.(V);
2827
+ }, [e, ie]), { activeIndex: se, activeOptionId: q, move: ce, first: ue, last: de, reset: fe } = Pe({
2828
+ optionCount: K.length,
2829
+ getOptionId: (e) => `${B}-option-${e}`,
2830
+ isOpen: G
2831
+ }), pe = d(() => e.filter((e) => U.includes(e.value)), [e, U]), { visibleOptions: me, hiddenCount: he } = wi(pe, y), J = () => {
2832
+ O || oe(!0);
2833
+ }, ge = o(() => {
2834
+ oe(!1), ae(""), fe(), I?.(U);
2629
2835
  }, [
2630
- pe,
2836
+ fe,
2631
2837
  I,
2632
- V
2633
- ]), be = () => {
2634
- U ? ve() : _e();
2838
+ U
2839
+ ]), _e = () => {
2840
+ G ? ge() : J();
2841
+ }, ve = (e) => {
2842
+ if (Si(e, U, m, v)) return;
2843
+ let t = Ci(U, e);
2844
+ W(t), F?.(t);
2845
+ }, ye = () => {
2846
+ W([]), F?.([]);
2635
2847
  }, xe = (e) => {
2636
- if (oi(e, V, m, v)) return;
2637
- let t = si(V, e);
2638
- H(t), F?.(t);
2848
+ e.stopPropagation(), ye(), G || I?.([]), ne.current?.focus();
2639
2849
  }, Se = () => {
2640
- H([]), F?.([]);
2641
- }, Ce = (e) => {
2642
- e.stopPropagation(), Se(), U || I?.([]), z.current?.focus();
2643
- }, we = () => {
2644
- Se(), ie.current?.focus();
2645
- }, Te = () => {
2646
- O || be();
2850
+ ye(), re.current?.focus();
2851
+ }, Ce = () => {
2852
+ O || _e();
2853
+ }, Te = (e) => {
2854
+ ae(e.target.value), fe();
2647
2855
  }, Ee = (e) => {
2648
- oe(e.target.value), pe();
2649
- }, De = (e) => {
2650
- if (e.preventDefault(), !U) {
2651
- _e(), de();
2856
+ if (e.preventDefault(), !G) {
2857
+ J(), ue();
2652
2858
  return;
2653
2859
  }
2654
- ue(1);
2655
- }, ke = (e) => {
2656
- if (e.preventDefault(), !U) {
2657
- _e(), fe();
2860
+ ce(1);
2861
+ }, De = (e) => {
2862
+ if (e.preventDefault(), !G) {
2863
+ J(), de();
2658
2864
  return;
2659
2865
  }
2660
- ue(-1);
2661
- }, Ae = (e) => {
2662
- if (!U) return;
2866
+ ce(-1);
2867
+ }, Oe = (e) => {
2868
+ if (!G) return;
2663
2869
  e.preventDefault();
2664
- let t = W[ce];
2665
- t && xe(t.value);
2666
- }, Me = (e) => {
2667
- U && (e.preventDefault(), ve(), z.current?.focus());
2668
- }, q = (e) => {
2669
- if (e.key === "ArrowDown") return De(e);
2670
- if (e.key === "ArrowUp") return ke(e);
2671
- if (e.key === "Enter") return Ae(e);
2672
- if (e.key === "Escape") return Me(e);
2870
+ let t = K[se];
2871
+ t && ve(t.value);
2872
+ }, ke = (e) => {
2873
+ G && (e.preventDefault(), ge(), ne.current?.focus());
2874
+ }, Ae = (e) => {
2875
+ if (e.key === "ArrowDown") return Ee(e);
2876
+ if (e.key === "ArrowUp") return De(e);
2877
+ if (e.key === "Enter") return Oe(e);
2878
+ if (e.key === "Escape") return ke(e);
2673
2879
  };
2674
2880
  return c(() => {
2675
- if (!U) return;
2881
+ if (!G) return;
2676
2882
  let e = (e) => {
2677
- B.current && !B.current.contains(e.target) && ve();
2883
+ H.current && !H.current.contains(e.target) && ge();
2678
2884
  };
2679
2885
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
2680
- }, [U, ve]), /* @__PURE__ */ g(Oe, {
2681
- fieldId: L,
2682
- errorId: te,
2886
+ }, [G, ge]), /* @__PURE__ */ g(je, {
2887
+ fieldId: z,
2888
+ errorId: ee,
2683
2889
  label: t,
2684
2890
  error: r,
2685
2891
  required: k,
2686
2892
  wrapperClassName: M,
2687
2893
  children: /* @__PURE__ */ _("div", {
2688
- ref: B,
2894
+ ref: H,
2689
2895
  className: "relative",
2690
2896
  onBlur: (e) => {
2691
- if (!U) return;
2897
+ if (!G) return;
2692
2898
  let t = e.relatedTarget;
2693
- t instanceof Node && B.current?.contains(t) || ve();
2899
+ t instanceof Node && H.current?.contains(t) || ge();
2694
2900
  },
2695
2901
  children: [
2696
2902
  /* @__PURE__ */ g("button", {
2697
- ref: z,
2903
+ ref: ne,
2698
2904
  type: "button",
2699
- id: L,
2905
+ id: z,
2700
2906
  role: "combobox",
2701
2907
  disabled: O,
2702
- "aria-expanded": U,
2703
- "aria-controls": R,
2908
+ "aria-expanded": G,
2909
+ "aria-controls": B,
2704
2910
  "aria-haspopup": "listbox",
2705
2911
  "aria-invalid": !!r,
2706
2912
  "aria-required": k || void 0,
2707
- "aria-describedby": r ? te : void 0,
2708
- "aria-labelledby": typeof t == "string" ? ne : void 0,
2913
+ "aria-describedby": r ? ee : void 0,
2914
+ "aria-labelledby": typeof t == "string" ? te : void 0,
2709
2915
  "aria-label": n,
2710
- onClick: Te,
2711
- onKeyDown: q,
2916
+ onClick: Ce,
2917
+ onKeyDown: Ae,
2712
2918
  className: x("w-full flex flex-wrap items-center gap-1 text-left disabled:opacity-50 disabled:cursor-not-allowed", !D && [
2713
2919
  le,
2714
2920
  S[E],
2715
2921
  "pl-3 pr-8 py-2 text-sm min-h-10"
2716
2922
  ], !D && r && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), j),
2717
- children: me.length === 0 ? /* @__PURE__ */ g("span", {
2923
+ children: pe.length === 0 ? /* @__PURE__ */ g("span", {
2718
2924
  className: x(!D && "text-gray-500 dark:text-gray-400"),
2719
2925
  children: i
2720
- }) : /* @__PURE__ */ _(h, { children: [he.map((e) => /* @__PURE__ */ g("span", {
2721
- className: x(!D && li),
2926
+ }) : /* @__PURE__ */ _(h, { children: [me.map((e) => /* @__PURE__ */ g("span", {
2927
+ className: x(!D && Ti),
2722
2928
  children: e.label
2723
- }, e.value)), ge > 0 && /* @__PURE__ */ g("span", {
2724
- className: x(!D && li),
2725
- children: b(ge)
2929
+ }, e.value)), he > 0 && /* @__PURE__ */ g("span", {
2930
+ className: x(!D && Ti),
2931
+ children: (b ?? R.overflowCount)(he)
2726
2932
  })] })
2727
2933
  }),
2728
- !D && V.length > 0 && !O && /* @__PURE__ */ g("button", {
2934
+ !D && U.length > 0 && !O && /* @__PURE__ */ g("button", {
2729
2935
  type: "button",
2730
- "aria-label": l,
2936
+ "aria-label": l ?? R.clearSelection,
2731
2937
  onMouseDown: (e) => e.preventDefault(),
2732
- onClick: Ce,
2938
+ onClick: xe,
2733
2939
  className: x("absolute right-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300", "outline-hidden focus-visible:outline-2 focus-visible:outline-offset-2", A.primary.focusOutline),
2734
2940
  children: /* @__PURE__ */ g("span", {
2735
2941
  className: "i-mdi-close block w-4 h-4",
2736
2942
  "aria-hidden": !0
2737
2943
  })
2738
2944
  }),
2739
- U && /* @__PURE__ */ _("div", {
2945
+ G && /* @__PURE__ */ _("div", {
2740
2946
  onMouseDown: (e) => {
2741
- e.target !== ie.current && e.preventDefault();
2947
+ e.target !== re.current && e.preventDefault();
2742
2948
  },
2743
2949
  className: x("absolute z-10 mt-1 w-full text-sm shadow-lg", !D && [
2744
2950
  "border overflow-hidden",
@@ -2748,18 +2954,18 @@ function ui({ options: e, label: t, "aria-label": n, error: r, placeholder: i, s
2748
2954
  ]),
2749
2955
  children: [
2750
2956
  /* @__PURE__ */ g("input", {
2751
- ref: ie,
2957
+ ref: re,
2752
2958
  type: "text",
2753
2959
  autoFocus: !0,
2754
2960
  autoComplete: "off",
2755
- value: ae,
2756
- onChange: Ee,
2757
- onKeyDown: q,
2758
- placeholder: a,
2759
- "aria-label": a,
2760
- "aria-controls": R,
2761
- "aria-activedescendant": G,
2762
- "aria-describedby": m === void 0 ? void 0 : re,
2961
+ value: ie,
2962
+ onChange: Te,
2963
+ onKeyDown: Ae,
2964
+ placeholder: a ?? R.search,
2965
+ "aria-label": a ?? R.search,
2966
+ "aria-controls": B,
2967
+ "aria-activedescendant": q,
2968
+ "aria-describedby": m === void 0 ? void 0 : V,
2763
2969
  className: x("w-full", !D && [
2764
2970
  "px-3 py-2 border-b bg-transparent focus:outline-none",
2765
2971
  "text-gray-900 dark:text-gray-100 placeholder-gray-500 dark:placeholder-gray-400",
@@ -2767,24 +2973,24 @@ function ui({ options: e, label: t, "aria-label": n, error: r, placeholder: i, s
2767
2973
  ])
2768
2974
  }),
2769
2975
  m !== void 0 && /* @__PURE__ */ g("div", {
2770
- id: re,
2976
+ id: V,
2771
2977
  className: x("px-3 py-1 text-xs", !D && ["border-b", "border-gray-100 dark:border-gray-800"], !D && "text-gray-500 dark:text-gray-400"),
2772
- children: T(m)
2978
+ children: (T ?? R.maxSelectedHint)(m)
2773
2979
  }),
2774
2980
  /* @__PURE__ */ g("ul", {
2775
- id: R,
2981
+ id: B,
2776
2982
  role: "listbox",
2777
2983
  "aria-multiselectable": !0,
2778
2984
  className: "max-h-60 overflow-auto py-1",
2779
- children: W.map((e, t) => {
2780
- let n = V.includes(e.value), r = oi(e.value, V, m, v);
2985
+ children: K.map((e, t) => {
2986
+ let n = U.includes(e.value), r = Si(e.value, U, m, v);
2781
2987
  return /* @__PURE__ */ _("li", {
2782
- id: `${R}-option-${t}`,
2988
+ id: `${B}-option-${t}`,
2783
2989
  role: "option",
2784
2990
  "aria-selected": n,
2785
2991
  "aria-disabled": r,
2786
- onClick: () => xe(e.value),
2787
- className: x("px-3 py-2 flex items-center gap-2 text-gray-900 dark:text-gray-100", r ? "opacity-50 cursor-not-allowed" : "cursor-pointer", t === ce ? x("bg-blue-50 dark:bg-blue-900/40", "outline-2 -outline-offset-2 outline-blue-500 dark:outline-blue-400") : !r && "hover:bg-gray-50 dark:hover:bg-gray-800/60"),
2992
+ onClick: () => ve(e.value),
2993
+ className: x("px-3 py-2 flex items-center gap-2 text-gray-900 dark:text-gray-100", r ? "opacity-50 cursor-not-allowed" : "cursor-pointer", t === se ? x("bg-blue-50 dark:bg-blue-900/40", "outline-2 -outline-offset-2 outline-blue-500 dark:outline-blue-400") : !r && "hover:bg-gray-50 dark:hover:bg-gray-800/60"),
2788
2994
  children: [/* @__PURE__ */ g("span", {
2789
2995
  "aria-hidden": !0,
2790
2996
  className: x("flex h-4 w-4 shrink-0 items-center justify-center", !D && [
@@ -2808,20 +3014,20 @@ function ui({ options: e, label: t, "aria-label": n, error: r, placeholder: i, s
2808
3014
  }),
2809
3015
  /* @__PURE__ */ g("div", {
2810
3016
  role: "status",
2811
- className: W.length === 0 ? "px-3 py-2 text-gray-500 dark:text-gray-400" : void 0,
2812
- children: W.length === 0 ? s : ""
3017
+ className: K.length === 0 ? "px-3 py-2 text-gray-500 dark:text-gray-400" : void 0,
3018
+ children: K.length === 0 ? s ?? R.noResults : ""
2813
3019
  }),
2814
3020
  m !== void 0 && /* @__PURE__ */ _("div", {
2815
3021
  className: x("flex items-center justify-between px-3 py-2", !D && ["border-t", "border-gray-100 dark:border-gray-800"]),
2816
3022
  children: [/* @__PURE__ */ g("span", {
2817
3023
  className: "text-xs text-gray-500 dark:text-gray-400",
2818
- children: w(V.length)
3024
+ children: (w ?? R.selectedCount)(U.length)
2819
3025
  }), /* @__PURE__ */ g("button", {
2820
3026
  type: "button",
2821
- disabled: V.length === 0,
2822
- onClick: we,
3027
+ disabled: U.length === 0,
3028
+ onClick: Se,
2823
3029
  className: "text-xs font-medium text-blue-600 hover:text-blue-700 disabled:opacity-50 disabled:cursor-not-allowed dark:text-blue-400 dark:hover:text-blue-300",
2824
- children: u
3030
+ children: u ?? R.clear
2825
3031
  })]
2826
3032
  })
2827
3033
  ]
@@ -2832,9 +3038,9 @@ function ui({ options: e, label: t, "aria-label": n, error: r, placeholder: i, s
2832
3038
  }
2833
3039
  //#endregion
2834
3040
  //#region src/components/radio_options/radio_option_row.tsx
2835
- function di({ option: e, optionId: t, descriptionId: n, name: r, orientation: i, isSelected: a, isDisabled: o, isFirstOption: s, required: c, error: l, radius: u, unstyled: d, className: f, onSelect: p }) {
3041
+ function Di({ option: e, optionId: t, descriptionId: n, name: r, orientation: i, isSelected: a, isDisabled: o, isFirstOption: s, required: c, error: l, radius: u, unstyled: d, className: f, onSelect: p }) {
2836
3042
  let m = !!l;
2837
- return /* @__PURE__ */ g(Se, {
3043
+ return /* @__PURE__ */ g(Te, {
2838
3044
  item: e,
2839
3045
  htmlFor: t,
2840
3046
  descriptionId: n,
@@ -2859,7 +3065,7 @@ function di({ option: e, optionId: t, descriptionId: n, name: r, orientation: i,
2859
3065
  className: "sr-only"
2860
3066
  }),
2861
3067
  indicator: /* @__PURE__ */ g("span", {
2862
- className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", ve({
3068
+ className: x("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors duration-150", ye({
2863
3069
  isSelected: a,
2864
3070
  isError: m
2865
3071
  })),
@@ -2870,8 +3076,8 @@ function di({ option: e, optionId: t, descriptionId: n, name: r, orientation: i,
2870
3076
  }
2871
3077
  //#endregion
2872
3078
  //#region src/components/radio_options/radio_options.tsx
2873
- function fi({ options: e, orientation: t = "vertical", value: n, defaultValue: r, onChange: i, name: a, label: o, error: s, required: c, disabled: l, radius: u = "lg", unstyled: d = !1, className: f, wrapperClassName: p, id: m, "aria-describedby": h, ...v }) {
2874
- let { fieldId: y, errorId: b } = K(m), S = a ?? y, [C, w] = ye(n, r ?? ""), T = e.map((e) => typeof e == "string" ? {
3079
+ function Oi({ options: e, orientation: t = "vertical", value: n, defaultValue: r, onChange: i, name: a, label: o, error: s, required: c, disabled: l, radius: u = "lg", unstyled: d = !1, className: f, wrapperClassName: p, id: m, "aria-describedby": h, ...v }) {
3080
+ let { fieldId: y, errorId: b } = Y(m), S = a ?? y, [C, w] = be(n, r ?? ""), T = e.map((e) => typeof e == "string" ? {
2875
3081
  value: e,
2876
3082
  label: e
2877
3083
  } : e), E = (e) => {
@@ -2880,7 +3086,7 @@ function fi({ options: e, orientation: t = "vertical", value: n, defaultValue: r
2880
3086
  return /* @__PURE__ */ _("fieldset", {
2881
3087
  className: x("m-0 border-0 p-0", p),
2882
3088
  disabled: l,
2883
- "aria-describedby": G(h, s && b),
3089
+ "aria-describedby": q(h, s && b),
2884
3090
  ...v,
2885
3091
  children: [
2886
3092
  o && /* @__PURE__ */ _("legend", {
@@ -2892,7 +3098,7 @@ function fi({ options: e, orientation: t = "vertical", value: n, defaultValue: r
2892
3098
  }),
2893
3099
  /* @__PURE__ */ g("div", {
2894
3100
  className: x(t === "horizontal" ? "flex flex-row gap-2" : "flex flex-col gap-2"),
2895
- children: T.map((e, n) => /* @__PURE__ */ g(di, {
3101
+ children: T.map((e, n) => /* @__PURE__ */ g(Di, {
2896
3102
  option: e,
2897
3103
  optionId: `${y}-${n}`,
2898
3104
  descriptionId: `${y}-${n}-desc`,
@@ -2909,7 +3115,7 @@ function fi({ options: e, orientation: t = "vertical", value: n, defaultValue: r
2909
3115
  onSelect: E
2910
3116
  }, e.value))
2911
3117
  }),
2912
- /* @__PURE__ */ g(me, {
3118
+ /* @__PURE__ */ g(J, {
2913
3119
  id: b,
2914
3120
  error: s,
2915
3121
  className: "mt-2"
@@ -2919,31 +3125,33 @@ function fi({ options: e, orientation: t = "vertical", value: n, defaultValue: r
2919
3125
  }
2920
3126
  //#endregion
2921
3127
  //#region src/components/select/select.tsx
2922
- function pi({ options: e, label: t, error: n, placeholder: r, radius: i = "md", unstyled: a = !1, className: o, wrapperClassName: s, value: c, defaultValue: l, onChange: u, id: d, "aria-describedby": f, ...p }) {
2923
- let { fieldId: m, errorId: h } = K(d);
2924
- return /* @__PURE__ */ g(Oe, {
2925
- fieldId: m,
2926
- errorId: h,
3128
+ function ki({ options: e, label: t, description: n, error: r, placeholder: i, radius: a = "md", unstyled: o = !1, className: s, wrapperClassName: c, value: l, defaultValue: u, onChange: d, id: f, "aria-describedby": p, ...m }) {
3129
+ let { fieldId: h, errorId: v, descriptionId: y } = Y(f);
3130
+ return /* @__PURE__ */ g(je, {
3131
+ fieldId: h,
3132
+ errorId: v,
3133
+ descriptionId: y,
2927
3134
  label: t,
2928
- error: n,
2929
- required: p.required,
2930
- wrapperClassName: s,
3135
+ description: n,
3136
+ error: r,
3137
+ required: m.required,
3138
+ wrapperClassName: c,
2931
3139
  children: /* @__PURE__ */ _("select", {
2932
- id: m,
2933
- className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !a && [
3140
+ id: h,
3141
+ className: x("w-full disabled:opacity-50 disabled:cursor-not-allowed", !o && [
2934
3142
  le,
2935
- S[i],
3143
+ S[a],
2936
3144
  "pl-3 pr-8 py-2 text-sm appearance-none bg-[length:1rem_1rem] bg-[position:right_0.5rem_center] bg-no-repeat",
2937
3145
  "bg-[url(\"data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e\")]"
2938
- ], !a && n && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), o),
2939
- ...c === void 0 ? { defaultValue: l } : { value: c },
2940
- onChange: u,
2941
- "aria-invalid": !!n,
2942
- "aria-describedby": G(f, n && h),
2943
- ...p,
2944
- children: [r !== void 0 && /* @__PURE__ */ g("option", {
3146
+ ], !o && r && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), s),
3147
+ ...l === void 0 ? { defaultValue: u } : { value: l },
3148
+ onChange: d,
3149
+ "aria-invalid": !!r,
3150
+ "aria-describedby": q(p, !!n && y, r && v),
3151
+ ...m,
3152
+ children: [i !== void 0 && /* @__PURE__ */ g("option", {
2945
3153
  value: "",
2946
- children: r
3154
+ children: i
2947
3155
  }), e.map((e) => /* @__PURE__ */ g("option", {
2948
3156
  value: e.value,
2949
3157
  children: e.label
@@ -2953,8 +3161,8 @@ function pi({ options: e, label: t, error: n, placeholder: r, radius: i = "md",
2953
3161
  }
2954
3162
  //#endregion
2955
3163
  //#region src/components/switch/switch.tsx
2956
- function mi({ label: e, description: t, error: n, unstyled: r = !1, fullWidth: i = !1, className: a, wrapperClassName: o, checked: s, defaultChecked: c = !1, onChange: l, id: u, "aria-describedby": d, ...f }) {
2957
- let { fieldId: p, errorId: m, descriptionId: v } = K(u), [y, b] = ye(s, c), S = G(d, !!t && v, n && m);
3164
+ function Ai({ label: e, description: t, error: n, unstyled: r = !1, fullWidth: i = !1, className: a, wrapperClassName: o, checked: s, defaultChecked: c = !1, onChange: l, id: u, "aria-describedby": d, ...f }) {
3165
+ let { fieldId: p, errorId: m, descriptionId: v } = Y(u), [y, b] = be(s, c), S = q(d, !!t && v, n && m);
2958
3166
  return /* @__PURE__ */ _("div", {
2959
3167
  className: x(i ? "w-full" : "w-fit", o),
2960
3168
  children: [
@@ -2994,12 +3202,12 @@ function mi({ label: e, description: t, error: n, unstyled: r = !1, fullWidth: i
2994
3202
  children: "*"
2995
3203
  })] }) })]
2996
3204
  }),
2997
- /* @__PURE__ */ g(ge, {
3205
+ /* @__PURE__ */ g(_e, {
2998
3206
  id: v,
2999
3207
  description: t,
3000
3208
  className: "mt-1 ml-14"
3001
3209
  }),
3002
- /* @__PURE__ */ g(me, {
3210
+ /* @__PURE__ */ g(J, {
3003
3211
  id: m,
3004
3212
  error: n,
3005
3213
  className: "mt-1 ml-14"
@@ -3009,9 +3217,9 @@ function mi({ label: e, description: t, error: n, unstyled: r = !1, fullWidth: i
3009
3217
  }
3010
3218
  //#endregion
3011
3219
  //#region src/components/tabs/tabs_styles.ts
3012
- var hi = {
3220
+ var ji = {
3013
3221
  line: {
3014
- list: `gap-1 border-b ${B}`,
3222
+ list: `gap-1 border-b ${ne}`,
3015
3223
  tab: "-mb-px border-b-2",
3016
3224
  activeTab: "border-transparent text-gray-900 dark:text-gray-100",
3017
3225
  idleTab: "border-transparent text-gray-500 dark:text-gray-400",
@@ -3024,41 +3232,41 @@ var hi = {
3024
3232
  activeTab: "text-gray-900 dark:text-gray-100",
3025
3233
  idleTab: "text-gray-600 dark:text-gray-400",
3026
3234
  idleHover: "hover:text-gray-900 dark:hover:text-gray-100",
3027
- indicator: `absolute inset-0 ${z} border border-gray-200 dark:border-gray-700`
3235
+ indicator: `absolute inset-0 ${V} border border-gray-200 dark:border-gray-700`
3028
3236
  }
3029
- }, gi = {
3237
+ }, Mi = {
3030
3238
  xs: "px-2 py-1 text-xs",
3031
3239
  sm: "px-3 py-1.5 text-sm",
3032
3240
  md: "px-4 py-2.5 text-sm",
3033
3241
  lg: "px-5 py-3 text-base"
3034
- }, _i = {
3242
+ }, Ni = {
3035
3243
  xs: "w-3.5 h-3.5",
3036
3244
  sm: "w-4 h-4",
3037
3245
  md: "w-4 h-4",
3038
3246
  lg: "w-5 h-5"
3039
- }, vi = x(w, A.primary.focusOutline);
3040
- function yi(e) {
3247
+ }, Pi = x(w, A.primary.focusOutline);
3248
+ function Fi(e) {
3041
3249
  let { variant: t, radius: n, unstyled: r, isFullWidth: i, className: a } = e;
3042
- return x("flex items-center", i && "w-full", !r && hi[t].list, !r && t === "segmented" && S[n], a);
3250
+ return x("flex items-center", i && "w-full", !r && ji[t].list, !r && t === "segmented" && S[n], a);
3043
3251
  }
3044
- function bi(e) {
3045
- let { variant: t, size: n, radius: r, unstyled: i, isActive: a, isDisabled: o, isFullWidth: s, className: c } = e, l = hi[t];
3252
+ function Ii(e) {
3253
+ let { variant: t, size: n, radius: r, unstyled: i, isActive: a, isDisabled: o, isFullWidth: s, className: c } = e, l = ji[t];
3046
3254
  return x("relative flex items-center gap-2 whitespace-nowrap", s && "flex-1 justify-center", o ? "opacity-50 cursor-not-allowed" : "cursor-pointer", !i && [
3047
3255
  "font-medium transition-colors duration-200",
3048
- gi[n],
3256
+ Mi[n],
3049
3257
  l.tab,
3050
3258
  a ? l.activeTab : [l.idleTab, !o && l.idleHover],
3051
3259
  t === "segmented" && S[r],
3052
- vi
3260
+ Pi
3053
3261
  ], c);
3054
3262
  }
3055
- function xi(e) {
3263
+ function Li(e) {
3056
3264
  let { variant: t, radius: n } = e;
3057
- return x("tabs-indicator pointer-events-none", hi[t].indicator, t === "segmented" && S[n]);
3265
+ return x("tabs-indicator pointer-events-none", ji[t].indicator, t === "segmented" && S[n]);
3058
3266
  }
3059
3267
  //#endregion
3060
3268
  //#region src/components/tabs/tab_button.tsx
3061
- function Si({ item: e, isActive: t, isTabStop: n, isFullWidth: r, variant: i, size: a, radius: o, unstyled: s, tabId: c, panelId: l, onSelect: u, onKeyDown: d, ref: f, indicatorRef: p }) {
3269
+ function Ri({ item: e, isActive: t, isTabStop: n, isFullWidth: r, variant: i, size: a, radius: o, unstyled: s, tabId: c, panelId: l, onSelect: u, onKeyDown: d, ref: f, indicatorRef: p }) {
3062
3270
  let m = !!e.disabled;
3063
3271
  return /* @__PURE__ */ _("button", {
3064
3272
  ref: f,
@@ -3072,7 +3280,7 @@ function Si({ item: e, isActive: t, isTabStop: n, isFullWidth: r, variant: i, si
3072
3280
  disabled: e.disabled,
3073
3281
  onClick: u,
3074
3282
  onKeyDown: d,
3075
- className: bi({
3283
+ className: Ii({
3076
3284
  variant: i,
3077
3285
  size: a,
3078
3286
  radius: o,
@@ -3085,14 +3293,14 @@ function Si({ item: e, isActive: t, isTabStop: n, isFullWidth: r, variant: i, si
3085
3293
  t && !s && /* @__PURE__ */ g("span", {
3086
3294
  ref: p,
3087
3295
  "aria-hidden": "true",
3088
- className: xi({
3296
+ className: Li({
3089
3297
  variant: i,
3090
3298
  radius: o
3091
3299
  })
3092
3300
  }),
3093
3301
  e.icon && /* @__PURE__ */ g("span", {
3094
3302
  "aria-hidden": "true",
3095
- className: x("relative shrink-0", _i[a], e.icon)
3303
+ className: x("relative shrink-0", Ni[a], e.icon)
3096
3304
  }),
3097
3305
  /* @__PURE__ */ g("span", {
3098
3306
  className: "relative",
@@ -3103,11 +3311,11 @@ function Si({ item: e, isActive: t, isTabStop: n, isFullWidth: r, variant: i, si
3103
3311
  }
3104
3312
  //#endregion
3105
3313
  //#region src/components/tabs/use_tab_indicator_transition.ts
3106
- var Ci = 200, wi = "ease-out", Ti = "(prefers-reduced-motion: reduce)";
3107
- function Ei() {
3108
- return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Ti).matches;
3314
+ var zi = 200, Bi = "ease-out", Vi = "(prefers-reduced-motion: reduce)";
3315
+ function Hi() {
3316
+ return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(Vi).matches;
3109
3317
  }
3110
- function Di(e, t, n) {
3318
+ function Ui(e, t, n) {
3111
3319
  e.animate([{
3112
3320
  transform: `translateX(${t.left - n.left}px)`,
3113
3321
  width: `${t.width}px`
@@ -3115,14 +3323,14 @@ function Di(e, t, n) {
3115
3323
  transform: "none",
3116
3324
  width: `${n.width}px`
3117
3325
  }], {
3118
- duration: Ci,
3119
- easing: wi
3326
+ duration: zi,
3327
+ easing: Bi
3120
3328
  });
3121
3329
  }
3122
- function Oi(e, t, n) {
3123
- return !e || !t || !n ? !1 : !Ei();
3330
+ function Wi(e, t, n) {
3331
+ return !e || !t || !n ? !1 : !Hi();
3124
3332
  }
3125
- function ki(e) {
3333
+ function Gi(e) {
3126
3334
  let { activeIndex: t, indicatorRef: n, isAnimated: r } = e, i = f(null);
3127
3335
  u(() => {
3128
3336
  let e = n.current;
@@ -3131,7 +3339,7 @@ function ki(e) {
3131
3339
  return;
3132
3340
  }
3133
3341
  let t = e.getBoundingClientRect(), a = typeof e.animate == "function";
3134
- Oi(i.current, r, a) && Di(e, i.current, t), i.current = t;
3342
+ Wi(i.current, r, a) && Ui(e, i.current, t), i.current = t;
3135
3343
  }, [
3136
3344
  t,
3137
3345
  n,
@@ -3140,25 +3348,25 @@ function ki(e) {
3140
3348
  }
3141
3349
  //#endregion
3142
3350
  //#region src/components/tabs/use_tabs_keyboard_navigation.ts
3143
- var Ai = {
3351
+ var Ki = {
3144
3352
  ArrowRight: (e, t) => (e + 1) % t,
3145
3353
  ArrowLeft: (e, t) => (e - 1 + t) % t,
3146
3354
  Home: () => 0,
3147
3355
  End: (e, t) => t - 1
3148
3356
  };
3149
- function ji(e) {
3357
+ function qi(e) {
3150
3358
  return e.flatMap((e, t) => e.disabled ? [] : [t]);
3151
3359
  }
3152
- function Mi(e, t) {
3360
+ function Ji(e, t) {
3153
3361
  let n = e[t];
3154
- return n && !n.disabled ? t : ji(e)[0] ?? -1;
3362
+ return n && !n.disabled ? t : qi(e)[0] ?? -1;
3155
3363
  }
3156
- function Ni(e) {
3364
+ function Yi(e) {
3157
3365
  let { items: t, activeIndex: n, onNavigate: r } = e;
3158
3366
  return (e) => {
3159
- let i = Ai[e.key];
3367
+ let i = Ki[e.key];
3160
3368
  if (!i) return;
3161
- let a = ji(t);
3369
+ let a = qi(t);
3162
3370
  if (a.length === 0) return;
3163
3371
  e.preventDefault();
3164
3372
  let o = i(a.indexOf(n), a.length);
@@ -3167,17 +3375,17 @@ function Ni(e) {
3167
3375
  }
3168
3376
  //#endregion
3169
3377
  //#region src/components/tabs/tabs.tsx
3170
- function Pi({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", size: i = "md", radius: a = "md", fullWidth: o = !1, unstyled: s = !1, animated: c = !0, className: u, tabListClassName: d, panelClassName: p, onChange: m }) {
3171
- let [h, v] = ye(t, n), y = l(), b = f([]), S = f(null), C = (t) => {
3378
+ function Xi({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", size: i = "md", radius: a = "md", fullWidth: o = !1, unstyled: s = !1, animated: c = !0, className: u, tabListClassName: d, panelClassName: p, onChange: m }) {
3379
+ let [h, v] = be(t, n), y = l(), b = f([]), S = f(null), C = (t) => {
3172
3380
  e[t]?.disabled || (v(t), m?.(t));
3173
3381
  }, w = (e) => {
3174
3382
  b.current[e]?.focus(), C(e);
3175
- }, T = Mi(e, h), E = Ni({
3383
+ }, T = Ji(e, h), E = Yi({
3176
3384
  items: e,
3177
3385
  activeIndex: T,
3178
3386
  onNavigate: w
3179
3387
  }), D = e[h];
3180
- return ki({
3388
+ return Gi({
3181
3389
  activeIndex: h,
3182
3390
  indicatorRef: S,
3183
3391
  isAnimated: c
@@ -3185,14 +3393,14 @@ function Pi({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", size
3185
3393
  className: x("w-full", u),
3186
3394
  children: [/* @__PURE__ */ g("div", {
3187
3395
  role: "tablist",
3188
- className: yi({
3396
+ className: Fi({
3189
3397
  variant: r,
3190
3398
  radius: a,
3191
3399
  unstyled: s,
3192
3400
  isFullWidth: o,
3193
3401
  className: d
3194
3402
  }),
3195
- children: e.map((e, t) => /* @__PURE__ */ g(Si, {
3403
+ children: e.map((e, t) => /* @__PURE__ */ g(Ri, {
3196
3404
  ref: (e) => {
3197
3405
  b.current[t] = e;
3198
3406
  },
@@ -3229,78 +3437,93 @@ function Pi({ items: e, value: t, defaultIndex: n = 0, variant: r = "line", size
3229
3437
  }
3230
3438
  //#endregion
3231
3439
  //#region src/components/textarea/textarea.tsx
3232
- function Fi({ label: e, error: t, showCharCount: n = !1, minLength: r, maxLength: i, radius: a = "md", unstyled: o = !1, className: s, wrapperClassName: c, value: l, defaultValue: u, onChange: d, id: f, "aria-describedby": p, ...m }) {
3233
- let { fieldId: h, errorId: v, characterCountId: y } = K(f), { length: b, trackLength: C } = er(l, u), w = n && (r !== void 0 || i !== void 0), T = (e) => {
3234
- C(e.target.value), d?.(e);
3440
+ function Zi({ label: e, description: t, error: n, showCharCount: r = !1, minLength: i, maxLength: a, radius: o = "md", unstyled: s = !1, className: c, wrapperClassName: l, value: u, defaultValue: d, onChange: f, id: p, "aria-describedby": m, ...h }) {
3441
+ let { fieldId: v, errorId: y, descriptionId: b, characterCountId: C } = Y(p), { length: w, trackLength: T } = _r(u, d), E = r && (i !== void 0 || a !== void 0), D = (e) => {
3442
+ T(e.target.value), f?.(e);
3235
3443
  };
3236
- return /* @__PURE__ */ _(Oe, {
3237
- fieldId: h,
3238
- errorId: v,
3444
+ return /* @__PURE__ */ _(je, {
3445
+ fieldId: v,
3446
+ errorId: y,
3447
+ descriptionId: b,
3239
3448
  label: e,
3240
- error: t,
3241
- required: m.required,
3242
- wrapperClassName: c,
3449
+ description: t,
3450
+ error: n,
3451
+ required: h.required,
3452
+ wrapperClassName: l,
3243
3453
  children: [/* @__PURE__ */ g("textarea", {
3244
- id: h,
3245
- className: x("w-full min-h-[80px] resize-y disabled:opacity-50 disabled:cursor-not-allowed", !o && [
3454
+ id: v,
3455
+ className: x("w-full min-h-[80px] resize-y disabled:opacity-50 disabled:cursor-not-allowed", !s && [
3246
3456
  le,
3247
- S[a],
3457
+ S[o],
3248
3458
  "px-3 py-2 text-sm"
3249
- ], !o && t && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), s),
3250
- ...l === void 0 ? { defaultValue: u } : { value: l },
3251
- minLength: r,
3252
- maxLength: i,
3253
- onChange: T,
3254
- "aria-invalid": !!t,
3255
- "aria-describedby": G(p, t && v, w && y),
3256
- ...m
3257
- }), w && /* @__PURE__ */ g(ce, {
3258
- id: y,
3259
- current: b,
3260
- min: r,
3261
- max: i,
3262
- showMin: r !== void 0,
3263
- showMax: i !== void 0
3459
+ ], !s && n && x("border-red-500 dark:border-red-400", "focus:ring-red-500"), c),
3460
+ ...u === void 0 ? { defaultValue: d } : { value: u },
3461
+ minLength: i,
3462
+ maxLength: a,
3463
+ onChange: D,
3464
+ "aria-invalid": !!n,
3465
+ "aria-describedby": q(m, !!t && b, n && y, E && C),
3466
+ ...h
3467
+ }), E && /* @__PURE__ */ g(K, {
3468
+ id: C,
3469
+ current: w,
3470
+ min: i,
3471
+ max: a,
3472
+ showMin: i !== void 0,
3473
+ showMax: a !== void 0
3264
3474
  })]
3265
3475
  });
3266
3476
  }
3267
3477
  //#endregion
3478
+ //#region src/lib/is_webkit_gtk.ts
3479
+ var Qi = "AppleWebKit", $i = ["Linux", "X11"], ea = [
3480
+ "Chrome",
3481
+ "Chromium",
3482
+ "Edg",
3483
+ "Android",
3484
+ "CriOS",
3485
+ "FxiOS"
3486
+ ];
3487
+ function ta(e) {
3488
+ return !e.includes(Qi) || !$i.some((t) => e.includes(t)) ? !1 : !ea.some((t) => e.includes(t));
3489
+ }
3490
+ //#endregion
3268
3491
  //#region src/stores/theme_store/theme_store.ts
3269
- var Ii = "theme";
3270
- function Li(e) {
3492
+ var na = "theme";
3493
+ function ra(e) {
3271
3494
  return e === "light" || e === "dark" || e === "system";
3272
3495
  }
3273
- function Ri() {
3496
+ function ia() {
3274
3497
  return globalThis.window !== void 0 && globalThis.document !== void 0;
3275
3498
  }
3276
- function zi(e) {
3499
+ function aa(e) {
3277
3500
  let t = window.matchMedia("(prefers-color-scheme: dark)").matches, n = e === "dark" || e === "system" && t;
3278
3501
  document.documentElement.classList.toggle("dark", n);
3279
3502
  }
3280
- function Bi() {
3281
- if (!Ri()) return "system";
3282
- let e = globalThis.localStorage.getItem(Ii);
3283
- return Li(e) ? e : "system";
3503
+ function oa() {
3504
+ if (!ia()) return "system";
3505
+ let e = globalThis.localStorage.getItem(na);
3506
+ return ra(e) ? e : "system";
3284
3507
  }
3285
- var Vi = Bi();
3286
- Ri() && zi(Vi);
3287
- var Hi = Kr((e) => ({
3288
- theme: Vi,
3508
+ var sa = oa();
3509
+ ia() && aa(sa);
3510
+ var ca = li((e) => ({
3511
+ theme: sa,
3289
3512
  setTheme: (t) => {
3290
- zi(t), Ri() && globalThis.localStorage.setItem(Ii, t), e({ theme: t });
3513
+ aa(t), ia() && globalThis.localStorage.setItem(na, t), e({ theme: t });
3291
3514
  }
3292
3515
  }));
3293
- Ri() && (globalThis.addEventListener("storage", (e) => {
3294
- if (e.key !== Ii) return;
3295
- let t = Li(e.newValue) ? e.newValue : "system";
3296
- zi(t), Hi.setState({ theme: t });
3516
+ ia() && (globalThis.addEventListener("storage", (e) => {
3517
+ if (e.key !== na) return;
3518
+ let t = ra(e.newValue) ? e.newValue : "system";
3519
+ aa(t), ca.setState({ theme: t });
3297
3520
  }), globalThis.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", () => {
3298
- Hi.getState().theme === "system" && zi("system");
3521
+ ca.getState().theme === "system" && aa("system");
3299
3522
  }));
3300
3523
  //#endregion
3301
3524
  //#region src/lib/theme_transition.ts
3302
- var Ui = 750, Wi = "ease-in-out";
3303
- async function Gi({ theme: e, element: t, transitionDuration: n = Ui, transitionEasing: r = Wi, applyThemeCallback: i }) {
3525
+ var la = 750, ua = "ease-in-out";
3526
+ async function da({ theme: e, element: t, transitionDuration: n = la, transitionEasing: r = ua, applyThemeCallback: i }) {
3304
3527
  if (!document.startViewTransition || globalThis.matchMedia("(prefers-reduced-motion: reduce)").matches) {
3305
3528
  i(e);
3306
3529
  return;
@@ -3314,139 +3537,192 @@ async function Gi({ theme: e, element: t, transitionDuration: n = Ui, transition
3314
3537
  pseudoElement: "::view-transition-new(root)"
3315
3538
  });
3316
3539
  }
3317
- function Ki(e) {
3540
+ function fa(e) {
3318
3541
  return e === "light" ? "dark" : e === "dark" ? "system" : "light";
3319
3542
  }
3320
3543
  //#endregion
3321
3544
  //#region src/components/theme_toggle/theme_toggle.tsx
3322
- var qi = {
3545
+ var pa = {
3323
3546
  light: "i-tabler-sun text-yellow-500",
3324
3547
  dark: "i-tabler-moon-stars text-gray-700 dark:text-yellow-500",
3325
3548
  system: "i-tabler-device-desktop text-blue-500"
3326
- }, Ji = "i-tabler-device-desktop text-gray-400";
3327
- function Yi(e) {
3328
- return `Current theme: ${e}`;
3329
- }
3330
- function Xi({ isTransitionEnabled: e = !0, transitionDuration: t, transitionEasing: n, size: r = "md", radius: i, variant: a, getAriaLabel: s = Yi }) {
3331
- let c = Hi((e) => e.theme), l = Hi((e) => e.setTheme), u = Ee(), d = f(null), p = o(async () => {
3332
- let r = Ki(c), i = d.current;
3333
- i && e ? await Gi({
3549
+ }, ma = "i-tabler-device-desktop text-gray-400";
3550
+ function ha({ isTransitionEnabled: e, transitionDuration: t, transitionEasing: n, size: r = "md", radius: i, variant: a, getAriaLabel: s, tooltip: c }) {
3551
+ let l = ca((e) => e.theme), u = ca((e) => e.setTheme), d = we(), p = ke(), m = f(null), h = o(async () => {
3552
+ let r = fa(l), i = m.current, a = e ?? !ta(navigator.userAgent);
3553
+ i && a ? await da({
3334
3554
  theme: r,
3335
3555
  element: i,
3336
3556
  transitionDuration: t,
3337
3557
  transitionEasing: n,
3338
- applyThemeCallback: l
3339
- }) : l(r);
3558
+ applyThemeCallback: u
3559
+ }) : u(r);
3340
3560
  }, [
3341
- c,
3561
+ l,
3342
3562
  e,
3343
3563
  t,
3344
3564
  n,
3345
- l
3346
- ]), m = u ? qi[c] : Ji;
3347
- return /* @__PURE__ */ g(Qn, {
3348
- ref: d,
3349
- icon: m,
3350
- "aria-label": s(c),
3565
+ u
3566
+ ]), _ = p ? pa[l] : ma;
3567
+ return /* @__PURE__ */ g(hr, {
3568
+ ref: m,
3569
+ icon: _,
3570
+ "aria-label": (s ?? d.currentTheme)(l),
3351
3571
  size: r,
3352
3572
  radius: i,
3353
3573
  variant: a,
3574
+ tooltip: c,
3354
3575
  onClick: () => {
3355
- p();
3576
+ h();
3356
3577
  }
3357
3578
  });
3358
3579
  }
3359
3580
  //#endregion
3360
- //#region src/components/tooltip/tooltip.tsx
3361
- var Zi = 8, Qi = 8, $i = {
3362
- top: "data-[state=closed]:translate-y-1",
3363
- bottom: "data-[state=closed]:-translate-y-1",
3364
- left: "data-[state=closed]:translate-x-1",
3365
- right: "data-[state=closed]:-translate-x-1"
3366
- }, ea = {
3367
- top: "bottom",
3368
- bottom: "top",
3369
- left: "right",
3370
- right: "left"
3581
+ //#region src/components/toolbar/toolbar_items.ts
3582
+ var ga = [
3583
+ "a[href]",
3584
+ "button",
3585
+ "input:not([type=\"hidden\"])",
3586
+ "select",
3587
+ "textarea",
3588
+ "summary",
3589
+ "[contenteditable]:not([contenteditable=\"false\"])",
3590
+ "[tabindex]"
3591
+ ].join(", "), _a = [
3592
+ "textarea",
3593
+ "[contenteditable]:not([contenteditable=\"false\"])",
3594
+ `input:not(${[
3595
+ "button",
3596
+ "checkbox",
3597
+ "color",
3598
+ "file",
3599
+ "image",
3600
+ "radio",
3601
+ "range",
3602
+ "reset",
3603
+ "submit"
3604
+ ].map((e) => `[type="${e}"]`).join(", ")})`
3605
+ ].join(", ");
3606
+ function va(e) {
3607
+ return e.matches(":disabled, [aria-disabled=\"true\"]");
3608
+ }
3609
+ function ya(e) {
3610
+ return Array.from(e.querySelectorAll(ga));
3611
+ }
3612
+ function ba(e) {
3613
+ return ya(e).filter((e) => !va(e));
3614
+ }
3615
+ function xa(e) {
3616
+ return e instanceof HTMLElement && e.matches(_a);
3617
+ }
3618
+ //#endregion
3619
+ //#region src/components/toolbar/toolbar_navigation.ts
3620
+ var Sa = (e, t) => (e + 1) % t, Ca = (e, t) => (e - 1 + t) % t, wa = () => 0, Ta = (e, t) => t - 1, Ea = {
3621
+ horizontal: {
3622
+ ArrowRight: Sa,
3623
+ ArrowLeft: Ca,
3624
+ Home: wa,
3625
+ End: Ta
3626
+ },
3627
+ vertical: {
3628
+ ArrowDown: Sa,
3629
+ ArrowUp: Ca,
3630
+ Home: wa,
3631
+ End: Ta
3632
+ }
3371
3633
  };
3372
- function ta({ content: e, children: t, position: r = "top", showOnClick: i = !1, temporaryContent: s, temporaryDuration: u = 2e3, disabled: d = !1, radius: m = "lg", onTemporaryShow: v, className: b, ref: C }) {
3373
- let { isMounted: w, isVisible: T, setIsVisible: E, open: D, close: O } = Rn(), [k, A] = p(!1), j = l(), M = f(null), N = f(void 0), { refs: P, floatingStyles: F, placement: I, middlewareData: ee, isPositioned: L } = bn({
3374
- placement: r,
3375
- open: w,
3376
- whileElementsMounted: ln,
3377
- middleware: [
3378
- Sn(Zi),
3379
- wn(),
3380
- Cn({ padding: 8 }),
3381
- Tn({ element: M })
3382
- ]
3383
- }), te = I.split("-")[0];
3384
- zn(w, L, E);
3385
- let ne = o((e) => ir(P.setReference, C)(e), [P, C]), R = o(() => {
3386
- A(!1), O();
3387
- }, [O]), re = () => {
3388
- !d && s && (A(!0), D(L), clearTimeout(N.current), N.current = setTimeout(R, u), v?.());
3389
- }, z = () => {
3390
- d || D(L);
3391
- }, B = o(() => {
3392
- clearTimeout(N.current), R();
3393
- }, [R]);
3394
- c(() => () => clearTimeout(N.current), []), c(() => {
3395
- if (!w) return;
3396
- let e = (e) => {
3397
- e.key === "Escape" && B();
3398
- };
3399
- return document.addEventListener("keydown", e), () => document.removeEventListener("keydown", e);
3400
- }, [w, B]);
3401
- let ie = w && !d, V = k && s ? s : e, H = {
3402
- onClick: (e) => {
3403
- i && s && re(), a(t) && t.props.onClick?.(e);
3634
+ function Da(e) {
3635
+ let { key: t, orientation: n, currentPosition: r, itemCount: i } = e, a = Ea[n][t];
3636
+ if (a && i !== 0) return a(r, i);
3637
+ }
3638
+ //#endregion
3639
+ //#region src/components/toolbar/use_toolbar_roving_focus.ts
3640
+ var Oa = ["disabled", "aria-disabled"];
3641
+ function ka(e, t) {
3642
+ let n = f(null), r = o(() => {
3643
+ let t = e.current;
3644
+ if (!t) return;
3645
+ let r = ba(t), i = n.current, a = i && r.includes(i) ? i : r[0];
3646
+ for (let e of ya(t)) e.tabIndex = e === a ? 0 : -1;
3647
+ }, [e]);
3648
+ return c(() => {
3649
+ let t = e.current;
3650
+ if (!t) return;
3651
+ r();
3652
+ let n = new MutationObserver(r);
3653
+ return n.observe(t, {
3654
+ subtree: !0,
3655
+ childList: !0,
3656
+ attributes: !0,
3657
+ attributeFilter: Oa
3658
+ }), () => n.disconnect();
3659
+ }, [e, r]), {
3660
+ handleFocus: (t) => {
3661
+ let i = e.current;
3662
+ if (!i) return;
3663
+ let a = ba(i).find((e) => e === t.target);
3664
+ a && (n.current = a, r());
3404
3665
  },
3405
- "aria-describedby": G(a(t) ? t.props["aria-describedby"] : void 0, ie && j)
3406
- }, ae = a(t) ? n(t, H) : t, oe = ee.arrow?.x, U = ee.arrow?.y, se = ea[te];
3407
- return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _("span", {
3408
- ref: ne,
3409
- className: x("inline-block", b),
3410
- onMouseEnter: z,
3411
- onMouseLeave: B,
3412
- onFocus: z,
3413
- onBlur: B,
3414
- children: [ae, s !== void 0 && /* @__PURE__ */ g("span", {
3415
- role: "status",
3416
- className: "sr-only",
3417
- children: k ? s : null
3418
- })]
3419
- }), ie && y(/* @__PURE__ */ g("div", {
3420
- ref: P.setFloating,
3421
- style: F,
3422
- className: "z-50 inline-block pointer-events-none",
3423
- children: /* @__PURE__ */ _("div", {
3424
- id: j,
3425
- role: "tooltip",
3426
- "data-state": T ? "open" : "closed",
3427
- className: x("px-3 py-1.5 text-sm whitespace-nowrap", "text-white dark:text-gray-900 bg-gray-900 dark:bg-gray-100 shadow-lg", "transition-[opacity,transform] duration-150 ease-out", T ? "opacity-100" : "opacity-0", $i[te], S[m]),
3428
- children: [V, /* @__PURE__ */ g("div", {
3429
- ref: M,
3430
- style: {
3431
- position: "absolute",
3432
- width: `${Qi}px`,
3433
- height: `${Qi}px`,
3434
- left: oe === void 0 ? void 0 : `${oe}px`,
3435
- top: U === void 0 ? void 0 : `${U}px`,
3436
- [se]: `-${Qi / 2}px`
3437
- },
3438
- className: "rotate-45 bg-gray-900 dark:bg-gray-100"
3439
- })]
3666
+ handleKeyDown: (n) => {
3667
+ let r = e.current;
3668
+ if (!r || xa(n.target)) return;
3669
+ let i = ba(r), a = Da({
3670
+ key: n.key,
3671
+ orientation: t,
3672
+ currentPosition: i.findIndex((e) => e === n.target),
3673
+ itemCount: i.length
3674
+ });
3675
+ a !== void 0 && (n.preventDefault(), i[a].focus());
3676
+ }
3677
+ };
3678
+ }
3679
+ //#endregion
3680
+ //#region src/components/toolbar/toolbar.tsx
3681
+ var Aa = {
3682
+ horizontal: "flex items-center gap-1",
3683
+ vertical: "flex flex-col items-stretch gap-1"
3684
+ };
3685
+ function ja(e) {
3686
+ let { orientation: t = "horizontal", unstyled: n = !1, className: r, ref: i, onFocus: a, onKeyDown: o, ...s } = e, c = f(null), { handleFocus: l, handleKeyDown: u } = ka(c, t);
3687
+ return /* @__PURE__ */ g("div", {
3688
+ ...s,
3689
+ ref: se(c, i),
3690
+ role: "toolbar",
3691
+ "aria-orientation": t,
3692
+ className: x(!n && Aa[t], r),
3693
+ onFocus: (e) => {
3694
+ l(e), a?.(e);
3695
+ },
3696
+ onKeyDown: (e) => {
3697
+ o?.(e), !e.defaultPrevented && u(e);
3698
+ }
3699
+ });
3700
+ }
3701
+ //#endregion
3702
+ //#region src/components/ui_provider/ui_provider.tsx
3703
+ function Ma(e = {}) {
3704
+ return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
3705
+ }
3706
+ function Na({ labels: e, announceFieldErrors: t, children: n }) {
3707
+ let r = s(Ce), i = he(), a = d(() => ({
3708
+ ...r,
3709
+ ...Ma(e)
3710
+ }), [r, e]);
3711
+ return /* @__PURE__ */ g(Ce.Provider, {
3712
+ value: a,
3713
+ children: /* @__PURE__ */ g(me.Provider, {
3714
+ value: t ?? i,
3715
+ children: n
3440
3716
  })
3441
- }), document.body)] });
3717
+ });
3442
3718
  }
3443
3719
  //#endregion
3444
3720
  //#region src/hooks/use_is_client/with_client_only.tsx
3445
- var na = (e) => {
3721
+ var Pa = (e) => {
3446
3722
  function t(t) {
3447
- return Ee() ? /* @__PURE__ */ g(e, { ...t }) : null;
3723
+ return ke() ? /* @__PURE__ */ g(e, { ...t }) : null;
3448
3724
  }
3449
3725
  return t;
3450
3726
  };
3451
3727
  //#endregion
3452
- export { I as Avatar, le as BASE_INPUT_STYLES, L as Badge, R as Button, U as Card, ce as CharacterCount, xe as Checkbox, Te as CheckboxOptions, De as ClientOnly, Me as Combobox, $r as ConfirmModal, Un as ContextMenu, Kn as CopyButton, Yn as Highlight, Qn as IconButton, tr as Input, rr as Kbd, sr as Menu, cr as MenuGroup, yr as MenuItem, br as MenuSeparator, ni as Modal, ri as ModalFooter, ii as ModalProvider, ui as MultiCombobox, fi as RadioOptions, pi as Select, mi as Switch, Pi as Tabs, Fi as Textarea, Xi as ThemeToggle, ta as Tooltip, qn as splitIntoHighlightSegments, Yr as useDisableHotkeysWhileMounted, qr as useGlobalHotkeysStore, Ee as useIsClient, Hi as useThemeStore, na as withClientOnly };
3728
+ export { I as Avatar, le as BASE_INPUT_STYLES, R as Badge, te as Button, ae as Card, K as CharacterCount, Se as Checkbox, Oe as CheckboxOptions, Ae as ClientOnly, Fe as Combobox, gi as ConfirmModal, Yn as ContextMenu, Qn as CopyButton, tr as Highlight, hr as IconButton, vr as Input, br as Kbd, Cr as Menu, wr as MenuGroup, Fr as MenuItem, Ir as MenuSeparator, vi as Modal, yi as ModalFooter, bi as ModalProvider, Ei as MultiCombobox, Oi as RadioOptions, ki as Select, Ai as Switch, Xi as Tabs, Zi as Textarea, ha as ThemeToggle, ja as Toolbar, dr as Tooltip, Na as UIProvider, $n as splitIntoHighlightSegments, fi as useDisableHotkeysWhileMounted, ui as useGlobalHotkeysStore, ke as useIsClient, ca as useThemeStore, Pa as withClientOnly };