@apcrda/ui 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9459,8 +9459,54 @@ function Iv({ files: e, onRemove: t }) {
9459
9459
  });
9460
9460
  }
9461
9461
  //#endregion
9462
+ //#region node_modules/@radix-ui/react-label/dist/index.mjs
9463
+ var Lv = "Label", Rv = y.forwardRef((e, t) => /* @__PURE__ */ N(U.label, {
9464
+ ...e,
9465
+ ref: t,
9466
+ onMouseDown: (t) => {
9467
+ t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
9468
+ }
9469
+ }));
9470
+ Rv.displayName = Lv;
9471
+ var zv = Rv, Bv = C(({ className: t, required: n = !1, children: r, ...i }, a) => /* @__PURE__ */ P(zv, {
9472
+ ref: a,
9473
+ className: e("inline-flex items-center gap-1 text-sm font-medium leading-none text-[var(--apcrda-color-foreground)] peer-disabled:cursor-not-allowed peer-disabled:opacity-55", t),
9474
+ ...i,
9475
+ children: [r, n ? /* @__PURE__ */ N("span", {
9476
+ "aria-hidden": "true",
9477
+ className: "text-[var(--apcrda-color-error)]",
9478
+ children: "*"
9479
+ }) : null]
9480
+ }));
9481
+ Bv.displayName = "Label";
9482
+ //#endregion
9483
+ //#region src/components/FormField/FormField.tsx
9484
+ function Vv({ label: t, htmlFor: n, required: r = !1, hint: i, error: a, className: o, children: s, ...c }) {
9485
+ return /* @__PURE__ */ P("div", {
9486
+ className: e("flex flex-col gap-1.5", o),
9487
+ ...c,
9488
+ children: [
9489
+ t && /* @__PURE__ */ N(Bv, {
9490
+ htmlFor: n,
9491
+ required: r,
9492
+ children: t
9493
+ }),
9494
+ s,
9495
+ a ? /* @__PURE__ */ N("p", {
9496
+ className: "text-xs text-[var(--apcrda-color-error)]",
9497
+ role: "alert",
9498
+ children: a
9499
+ }) : i ? /* @__PURE__ */ N("p", {
9500
+ className: "text-xs text-[var(--apcrda-color-muted)]",
9501
+ children: i
9502
+ }) : null
9503
+ ]
9504
+ });
9505
+ }
9506
+ Vv.displayName = "FormField";
9507
+ //#endregion
9462
9508
  //#region src/components/Input/Input.tsx
9463
- var Lv = il("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
9509
+ var Hv = il("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
9464
9510
  variants: {
9465
9511
  inputSize: {
9466
9512
  sm: "h-8 px-3 text-xs",
@@ -9486,7 +9532,7 @@ var Lv = il("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9486
9532
  withLeftIcon: !1,
9487
9533
  withRightIcon: !1
9488
9534
  }
9489
- }), Rv = C(({ className: t, inputSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, leftIcon: o, rightIcon: s, "aria-invalid": c, ...l }, u) => {
9535
+ }), Uv = C(({ className: t, inputSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, leftIcon: o, rightIcon: s, "aria-invalid": c, ...l }, u) => {
9490
9536
  let d = a || i, f = i ? /* @__PURE__ */ N(en, {
9491
9537
  "aria-hidden": "true",
9492
9538
  className: "h-4 w-4 animate-spin"
@@ -9500,7 +9546,7 @@ var Lv = il("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9500
9546
  }) : null,
9501
9547
  /* @__PURE__ */ N("input", {
9502
9548
  ref: u,
9503
- className: e(Lv({
9549
+ className: e(Hv({
9504
9550
  inputSize: n,
9505
9551
  error: r,
9506
9552
  withLeftIcon: !!o,
@@ -9519,31 +9565,10 @@ var Lv = il("w-full rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-co
9519
9565
  ]
9520
9566
  });
9521
9567
  });
9522
- Rv.displayName = "Input";
9523
- //#endregion
9524
- //#region node_modules/@radix-ui/react-label/dist/index.mjs
9525
- var zv = "Label", Bv = y.forwardRef((e, t) => /* @__PURE__ */ N(U.label, {
9526
- ...e,
9527
- ref: t,
9528
- onMouseDown: (t) => {
9529
- t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
9530
- }
9531
- }));
9532
- Bv.displayName = zv;
9533
- var Vv = Bv, Hv = C(({ className: t, required: n = !1, children: r, ...i }, a) => /* @__PURE__ */ P(Vv, {
9534
- ref: a,
9535
- className: e("inline-flex items-center gap-1 text-sm font-medium leading-none text-[var(--apcrda-color-foreground)] peer-disabled:cursor-not-allowed peer-disabled:opacity-55", t),
9536
- ...i,
9537
- children: [r, n ? /* @__PURE__ */ N("span", {
9538
- "aria-hidden": "true",
9539
- className: "text-[var(--apcrda-color-error)]",
9540
- children: "*"
9541
- }) : null]
9542
- }));
9543
- Hv.displayName = "Label";
9568
+ Uv.displayName = "Input";
9544
9569
  //#endregion
9545
9570
  //#region src/components/MultiSelect/MultiSelect.tsx
9546
- var Uv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeholder: a = "Select...", searchPlaceholder: o = "Search...", emptyMessage: s = "No results found.", disabled: c = !1, error: l = !1, maxSelected: u, ...d }, f) => {
9571
+ var Wv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeholder: a = "Select...", searchPlaceholder: o = "Search...", emptyMessage: s = "No results found.", disabled: c = !1, error: l = !1, maxSelected: u, ...d }, f) => {
9547
9572
  let [p, m] = j(!1), [h, g] = j(""), [_, v] = j(-1), y = D(), b = A(null), x = k(() => i.filter((e) => e.label.toLowerCase().includes(h.toLowerCase())), [i, h]), S = i.filter((e) => n.includes(e.value)), C = u !== void 0 && n.length >= u, w = (e) => {
9548
9573
  n.includes(e) ? r?.(n.filter((t) => t !== e)) : C || r?.([...n, e]);
9549
9574
  }, T = (e, t) => {
@@ -9669,10 +9694,10 @@ var Uv = C(({ className: t, value: n = [], onValueChange: r, options: i, placeho
9669
9694
  })
9670
9695
  });
9671
9696
  });
9672
- Uv.displayName = "MultiSelect";
9697
+ Wv.displayName = "MultiSelect";
9673
9698
  //#endregion
9674
9699
  //#region src/components/NotificationCenter/NotificationItem.tsx
9675
- var Wv = {
9700
+ var Gv = {
9676
9701
  info: /* @__PURE__ */ N($t, {
9677
9702
  className: "h-4 w-4 text-[var(--apcrda-color-info)]",
9678
9703
  "aria-hidden": "true"
@@ -9690,14 +9715,14 @@ var Wv = {
9690
9715
  "aria-hidden": "true"
9691
9716
  })
9692
9717
  };
9693
- function Gv({ notification: t, onDismiss: n, onClick: r }) {
9718
+ function Kv({ notification: t, onDismiss: n, onClick: r }) {
9694
9719
  return /* @__PURE__ */ P("div", {
9695
9720
  role: "listitem",
9696
9721
  className: e("group relative flex gap-3 px-4 py-3 transition-colors hover:bg-[var(--apcrda-color-surface-muted)]", !t.read && "bg-[var(--apcrda-color-primary)]/5"),
9697
9722
  children: [
9698
9723
  /* @__PURE__ */ N("div", {
9699
9724
  className: "mt-0.5 shrink-0",
9700
- children: Wv[t.type]
9725
+ children: Gv[t.type]
9701
9726
  }),
9702
9727
  /* @__PURE__ */ P("button", {
9703
9728
  type: "button",
@@ -9743,7 +9768,7 @@ function Gv({ notification: t, onDismiss: n, onClick: r }) {
9743
9768
  }
9744
9769
  //#endregion
9745
9770
  //#region src/components/NotificationCenter/NotificationPanel.tsx
9746
- function Kv({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationClick: r, loading: i = !1, emptyMessage: a = "No notifications" }) {
9771
+ function qv({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationClick: r, loading: i = !1, emptyMessage: a = "No notifications" }) {
9747
9772
  let o = e.filter((e) => !e.read).length;
9748
9773
  return /* @__PURE__ */ P("div", {
9749
9774
  role: "region",
@@ -9779,7 +9804,7 @@ function Kv({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationCl
9779
9804
  }) : e.length === 0 ? /* @__PURE__ */ N("p", {
9780
9805
  className: "px-4 py-8 text-center text-sm text-[var(--apcrda-color-muted)]",
9781
9806
  children: a
9782
- }) : e.map((e) => /* @__PURE__ */ N(Gv, {
9807
+ }) : e.map((e) => /* @__PURE__ */ N(Kv, {
9783
9808
  notification: e,
9784
9809
  onDismiss: n,
9785
9810
  onClick: r
@@ -9789,7 +9814,7 @@ function Kv({ notifications: e, onMarkAllRead: t, onDismiss: n, onNotificationCl
9789
9814
  }
9790
9815
  //#endregion
9791
9816
  //#region src/components/NotificationCenter/NotificationCenter.tsx
9792
- function qv(e) {
9817
+ function Jv(e) {
9793
9818
  let t = e.notifications.filter((e) => !e.read).length;
9794
9819
  return /* @__PURE__ */ P(Nc, { children: [/* @__PURE__ */ N(Fc, {
9795
9820
  asChild: !0,
@@ -9809,13 +9834,13 @@ function qv(e) {
9809
9834
  align: "end",
9810
9835
  sideOffset: 8,
9811
9836
  className: "z-50 w-80 rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] shadow-[var(--apcrda-shadow-lg)] outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
9812
- children: /* @__PURE__ */ N(Kv, { ...e })
9837
+ children: /* @__PURE__ */ N(qv, { ...e })
9813
9838
  }) })] });
9814
9839
  }
9815
- qv.displayName = "NotificationCenter";
9840
+ Jv.displayName = "NotificationCenter";
9816
9841
  //#endregion
9817
9842
  //#region src/components/Pagination/Pagination.tsx
9818
- function Jv(e, t, n, r) {
9843
+ function Yv(e, t, n, r) {
9819
9844
  let i = (e, t) => Array.from({ length: t - e + 1 }, (t, n) => e + n), a = i(1, Math.min(r, t)), o = i(Math.max(t - r + 1, 1), t), s = Math.max(e - n, r + 1), c = Math.min(e + n, t - r), l = [];
9820
9845
  s > r + 2 ? l.push("...") : s === r + 2 && l.push(r + 1);
9821
9846
  for (let e = s; e <= c; e++) l.push(e);
@@ -9829,13 +9854,13 @@ function Jv(e, t, n, r) {
9829
9854
  t > 0 && e !== "..." && u[t - 1] !== "..." && e - u[t - 1] > 1 && d.push("..."), d.push(e);
9830
9855
  }), d;
9831
9856
  }
9832
- var Yv = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-sm)] font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", Xv = C(({ className: t, page: n, totalPages: r, onPageChange: i, siblingCount: a = 1, boundaryCount: o = 1, showFirstLast: s = !0, size: c = "md", disabled: l = !1, pageSize: u, onPageSizeChange: d, pageSizeOptions: f = [
9857
+ var Xv = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-sm)] font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", Zv = C(({ className: t, page: n, totalPages: r, onPageChange: i, siblingCount: a = 1, boundaryCount: o = 1, showFirstLast: s = !0, size: c = "md", disabled: l = !1, pageSize: u, onPageSizeChange: d, pageSizeOptions: f = [
9833
9858
  10,
9834
9859
  20,
9835
9860
  50,
9836
9861
  100
9837
9862
  ], ...p }, m) => {
9838
- let h = k(() => Jv(n, r, a, o), [
9863
+ let h = k(() => Yv(n, r, a, o), [
9839
9864
  n,
9840
9865
  r,
9841
9866
  a,
@@ -9849,7 +9874,7 @@ var Yv = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
9849
9874
  onClick: t,
9850
9875
  disabled: l || r,
9851
9876
  "aria-label": n,
9852
- className: e(Yv, g[c], "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9877
+ className: e(Xv, g[c], "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9853
9878
  children: i
9854
9879
  });
9855
9880
  return /* @__PURE__ */ P("nav", {
@@ -9876,7 +9901,7 @@ var Yv = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
9876
9901
  disabled: l,
9877
9902
  "aria-label": `Go to page ${t}`,
9878
9903
  "aria-current": t === n ? "page" : void 0,
9879
- className: e(Yv, g[c], t === n ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)] border border-[var(--apcrda-color-primary)]" : "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9904
+ className: e(Xv, g[c], t === n ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)] border border-[var(--apcrda-color-primary)]" : "border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]"),
9880
9905
  children: t
9881
9906
  }, t)),
9882
9907
  _(() => i(n + 1), "Go to next page", n === r, /* @__PURE__ */ N(Wt, {
@@ -9901,10 +9926,10 @@ var Yv = "inline-flex items-center justify-center rounded-[var(--apcrda-radius-s
9901
9926
  ]
9902
9927
  });
9903
9928
  });
9904
- Xv.displayName = "Pagination";
9929
+ Zv.displayName = "Pagination";
9905
9930
  //#endregion
9906
9931
  //#region src/components/Popover/Popover.tsx
9907
- var Zv = Nc, Qv = Fc, $v = Rc, ey = Pc, ty = C(({ className: t, align: n = "center", sideOffset: r = 4, showArrow: i = !1, children: a, ...o }, s) => /* @__PURE__ */ N(Ic, { children: /* @__PURE__ */ P(Lc, {
9932
+ var Qv = Nc, $v = Fc, ey = Rc, ty = Pc, ny = C(({ className: t, align: n = "center", sideOffset: r = 4, showArrow: i = !1, children: a, ...o }, s) => /* @__PURE__ */ N(Ic, { children: /* @__PURE__ */ P(Lc, {
9908
9933
  ref: s,
9909
9934
  align: n,
9910
9935
  sideOffset: r,
@@ -9912,11 +9937,11 @@ var Zv = Nc, Qv = Fc, $v = Rc, ey = Pc, ty = C(({ className: t, align: n = "cent
9912
9937
  ...o,
9913
9938
  children: [a, i && /* @__PURE__ */ N(zc, { className: "fill-[var(--apcrda-color-surface)]" })]
9914
9939
  }) }));
9915
- ty.displayName = "PopoverContent";
9940
+ ny.displayName = "PopoverContent";
9916
9941
  //#endregion
9917
9942
  //#region node_modules/@radix-ui/react-radio-group/dist/index.mjs
9918
- var ny = "Radio", [ry, iy] = L(ny), [ay, oy] = ry(ny);
9919
- function sy(e) {
9943
+ var ry = "Radio", [iy, ay] = L(ry), [oy, sy] = iy(ry);
9944
+ function cy(e) {
9920
9945
  let { __scopeRadio: t, checked: n = !1, children: r, disabled: i, form: a, name: o, onCheck: s, required: c, value: l = "on", internal_do_not_use_render: u } = e, [d, f] = y.useState(null), [p, m] = y.useState(null), h = {
9921
9946
  checked: n,
9922
9947
  disabled: i,
@@ -9932,19 +9957,19 @@ function sy(e) {
9932
9957
  setBubbleInput: m,
9933
9958
  onCheck: () => s?.()
9934
9959
  };
9935
- return /* @__PURE__ */ N(ay, {
9960
+ return /* @__PURE__ */ N(oy, {
9936
9961
  scope: t,
9937
9962
  ...h,
9938
- children: hy(u) ? u(h) : r
9963
+ children: gy(u) ? u(h) : r
9939
9964
  });
9940
9965
  }
9941
- var cy = "RadioTrigger", ly = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n }, r) => {
9942
- let { checked: i, disabled: a, value: o, setControl: s, onCheck: c, hasConsumerStoppedPropagationRef: l, isFormControl: u, bubbleInput: d } = oy(cy, e), f = z(r, s);
9966
+ var ly = "RadioTrigger", uy = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n }, r) => {
9967
+ let { checked: i, disabled: a, value: o, setControl: s, onCheck: c, hasConsumerStoppedPropagationRef: l, isFormControl: u, bubbleInput: d } = sy(ly, e), f = z(r, s);
9943
9968
  return /* @__PURE__ */ N(U.button, {
9944
9969
  type: "button",
9945
9970
  role: "radio",
9946
9971
  "aria-checked": i,
9947
- "data-state": gy(i),
9972
+ "data-state": _y(i),
9948
9973
  "data-disabled": a ? "" : void 0,
9949
9974
  disabled: a,
9950
9975
  value: o,
@@ -9955,10 +9980,10 @@ var cy = "RadioTrigger", ly = y.forwardRef(({ __scopeRadio: e, onClick: t, ...n
9955
9980
  })
9956
9981
  });
9957
9982
  });
9958
- ly.displayName = cy;
9959
- var uy = y.forwardRef((e, t) => {
9983
+ uy.displayName = ly;
9984
+ var dy = y.forwardRef((e, t) => {
9960
9985
  let { __scopeRadio: n, name: r, checked: i, required: a, disabled: o, value: s, onCheck: c, form: l, ...u } = e;
9961
- return /* @__PURE__ */ N(sy, {
9986
+ return /* @__PURE__ */ N(cy, {
9962
9987
  __scopeRadio: n,
9963
9988
  checked: i,
9964
9989
  disabled: o,
@@ -9967,29 +9992,29 @@ var uy = y.forwardRef((e, t) => {
9967
9992
  name: r,
9968
9993
  form: l,
9969
9994
  value: s,
9970
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(ly, {
9995
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(uy, {
9971
9996
  ...u,
9972
9997
  ref: t,
9973
9998
  __scopeRadio: n
9974
- }), e && /* @__PURE__ */ N(my, { __scopeRadio: n })] })
9999
+ }), e && /* @__PURE__ */ N(hy, { __scopeRadio: n })] })
9975
10000
  });
9976
10001
  });
9977
- uy.displayName = ny;
9978
- var dy = "RadioIndicator", fy = y.forwardRef((e, t) => {
9979
- let { __scopeRadio: n, forceMount: r, ...i } = e, a = oy(dy, n);
10002
+ dy.displayName = ry;
10003
+ var fy = "RadioIndicator", py = y.forwardRef((e, t) => {
10004
+ let { __scopeRadio: n, forceMount: r, ...i } = e, a = sy(fy, n);
9980
10005
  return /* @__PURE__ */ N(W, {
9981
10006
  present: r || a.checked,
9982
10007
  children: /* @__PURE__ */ N(U.span, {
9983
- "data-state": gy(a.checked),
10008
+ "data-state": _y(a.checked),
9984
10009
  "data-disabled": a.disabled ? "" : void 0,
9985
10010
  ...i,
9986
10011
  ref: t
9987
10012
  })
9988
10013
  });
9989
10014
  });
9990
- fy.displayName = dy;
9991
- var py = "RadioBubbleInput", my = y.forwardRef(({ __scopeRadio: e, ...t }, n) => {
9992
- let { control: r, checked: i, required: a, disabled: o, name: s, value: c, form: l, bubbleInput: u, setBubbleInput: d, hasConsumerStoppedPropagationRef: f } = oy(py, e), p = z(n, d), m = Bm(i), h = Rs(r);
10015
+ py.displayName = fy;
10016
+ var my = "RadioBubbleInput", hy = y.forwardRef(({ __scopeRadio: e, ...t }, n) => {
10017
+ let { control: r, checked: i, required: a, disabled: o, name: s, value: c, form: l, bubbleInput: u, setBubbleInput: d, hasConsumerStoppedPropagationRef: f } = sy(my, e), p = z(n, d), m = Bm(i), h = Rs(r);
9993
10018
  y.useEffect(() => {
9994
10019
  let e = u;
9995
10020
  if (!e) return;
@@ -10028,26 +10053,26 @@ var py = "RadioBubbleInput", my = y.forwardRef(({ __scopeRadio: e, ...t }, n) =>
10028
10053
  }
10029
10054
  });
10030
10055
  });
10031
- my.displayName = py;
10032
- function hy(e) {
10056
+ hy.displayName = my;
10057
+ function gy(e) {
10033
10058
  return typeof e == "function";
10034
10059
  }
10035
- function gy(e) {
10060
+ function _y(e) {
10036
10061
  return e ? "checked" : "unchecked";
10037
10062
  }
10038
- var _y = [
10063
+ var vy = [
10039
10064
  "ArrowUp",
10040
10065
  "ArrowDown",
10041
10066
  "ArrowLeft",
10042
10067
  "ArrowRight"
10043
- ], vy = "RadioGroup", [yy, by] = L(vy, [ph, iy]), xy = ph(), Sy = iy(), [Cy, wy] = yy(vy), Ty = y.forwardRef((e, t) => {
10044
- let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = xy(n), m = Ke(l), [h, g] = H({
10068
+ ], yy = "RadioGroup", [by, xy] = L(yy, [ph, ay]), Sy = ph(), Cy = ay(), [wy, Ty] = by(yy), Ey = y.forwardRef((e, t) => {
10069
+ let { __scopeRadioGroup: n, name: r, defaultValue: i, value: a, required: o = !1, disabled: s = !1, orientation: c, dir: l, loop: u = !0, onValueChange: d, ...f } = e, p = Sy(n), m = Ke(l), [h, g] = H({
10045
10070
  prop: a,
10046
10071
  defaultProp: i ?? null,
10047
10072
  onChange: d,
10048
- caller: vy
10073
+ caller: yy
10049
10074
  });
10050
- return /* @__PURE__ */ N(Cy, {
10075
+ return /* @__PURE__ */ N(wy, {
10051
10076
  scope: n,
10052
10077
  name: r,
10053
10078
  required: o,
@@ -10072,11 +10097,11 @@ var _y = [
10072
10097
  })
10073
10098
  });
10074
10099
  });
10075
- Ty.displayName = vy;
10076
- var Ey = "RadioGroupItem", Dy = "RadioGroupItemProvider", Oy = "RadioGroupItemTrigger", ky = "RadioGroupItemBubbleInput";
10077
- function Ay(e) {
10078
- let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = wy(Dy, t), s = Sy(t), c = o.disabled || r;
10079
- return /* @__PURE__ */ N(sy, {
10100
+ Ey.displayName = yy;
10101
+ var Dy = "RadioGroupItem", Oy = "RadioGroupItemProvider", ky = "RadioGroupItemTrigger", Ay = "RadioGroupItemBubbleInput";
10102
+ function jy(e) {
10103
+ let { __scopeRadioGroup: t, value: n, disabled: r, children: i, internal_do_not_use_render: a } = e, o = Ty(Oy, t), s = Cy(t), c = o.disabled || r;
10104
+ return /* @__PURE__ */ N(cy, {
10080
10105
  ...s,
10081
10106
  checked: o.value === n,
10082
10107
  disabled: c,
@@ -10088,11 +10113,11 @@ function Ay(e) {
10088
10113
  children: i
10089
10114
  });
10090
10115
  }
10091
- var jy = y.forwardRef((e, t) => {
10092
- let { __scopeRadioGroup: n, ...r } = e, i = xy(n), a = Sy(n), { checked: o, disabled: s } = oy(Oy, a.__scopeRadio), c = y.useRef(null), l = z(t, c), u = y.useRef(!1);
10116
+ var My = y.forwardRef((e, t) => {
10117
+ let { __scopeRadioGroup: n, ...r } = e, i = Sy(n), a = Cy(n), { checked: o, disabled: s } = sy(ky, a.__scopeRadio), c = y.useRef(null), l = z(t, c), u = y.useRef(!1);
10093
10118
  return y.useEffect(() => {
10094
10119
  let e = (e) => {
10095
- _y.includes(e.key) && (u.current = !0);
10120
+ vy.includes(e.key) && (u.current = !0);
10096
10121
  }, t = () => u.current = !1;
10097
10122
  return document.addEventListener("keydown", e), document.addEventListener("keyup", t), () => {
10098
10123
  document.removeEventListener("keydown", e), document.removeEventListener("keyup", t);
@@ -10102,7 +10127,7 @@ var jy = y.forwardRef((e, t) => {
10102
10127
  ...i,
10103
10128
  focusable: !s,
10104
10129
  active: o,
10105
- children: /* @__PURE__ */ N(ly, {
10130
+ children: /* @__PURE__ */ N(uy, {
10106
10131
  ...a,
10107
10132
  ...r,
10108
10133
  ref: l,
@@ -10115,61 +10140,61 @@ var jy = y.forwardRef((e, t) => {
10115
10140
  })
10116
10141
  });
10117
10142
  });
10118
- jy.displayName = Oy;
10119
- var My = y.forwardRef((e, t) => {
10143
+ My.displayName = ky;
10144
+ var Ny = y.forwardRef((e, t) => {
10120
10145
  let { __scopeRadioGroup: n, value: r, disabled: i, ...a } = e;
10121
- return /* @__PURE__ */ N(Ay, {
10146
+ return /* @__PURE__ */ N(jy, {
10122
10147
  __scopeRadioGroup: n,
10123
10148
  value: r,
10124
10149
  disabled: i,
10125
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(jy, {
10150
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(My, {
10126
10151
  ...a,
10127
10152
  ref: t,
10128
10153
  __scopeRadioGroup: n
10129
- }), e && /* @__PURE__ */ N(Ny, { __scopeRadioGroup: n })] })
10154
+ }), e && /* @__PURE__ */ N(Py, { __scopeRadioGroup: n })] })
10130
10155
  });
10131
10156
  });
10132
- My.displayName = Ey;
10133
- var Ny = y.forwardRef((e, t) => {
10157
+ Ny.displayName = Dy;
10158
+ var Py = y.forwardRef((e, t) => {
10134
10159
  let { __scopeRadioGroup: n, ...r } = e;
10135
- return /* @__PURE__ */ N(my, {
10136
- ...Sy(n),
10160
+ return /* @__PURE__ */ N(hy, {
10161
+ ...Cy(n),
10137
10162
  ...r,
10138
10163
  ref: t
10139
10164
  });
10140
10165
  });
10141
- Ny.displayName = ky;
10142
- var Py = "RadioGroupIndicator", Fy = y.forwardRef((e, t) => {
10166
+ Py.displayName = Ay;
10167
+ var Fy = "RadioGroupIndicator", Iy = y.forwardRef((e, t) => {
10143
10168
  let { __scopeRadioGroup: n, ...r } = e;
10144
- return /* @__PURE__ */ N(fy, {
10145
- ...Sy(n),
10169
+ return /* @__PURE__ */ N(py, {
10170
+ ...Cy(n),
10146
10171
  ...r,
10147
10172
  ref: t
10148
10173
  });
10149
10174
  });
10150
- Fy.displayName = Py;
10175
+ Iy.displayName = Fy;
10151
10176
  //#endregion
10152
10177
  //#region src/components/RadioGroup/RadioGroup.tsx
10153
- var Iy = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Ty, {
10178
+ var Ly = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Ey, {
10154
10179
  ref: r,
10155
10180
  className: e("grid gap-2", t),
10156
10181
  ...n
10157
10182
  }));
10158
- Iy.displayName = "RadioGroup";
10159
- var Ly = il("aspect-square rounded-full border border-[var(--apcrda-color-border-strong)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-primary)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:border-[var(--apcrda-color-primary)]", {
10183
+ Ly.displayName = "RadioGroup";
10184
+ var Ry = il("aspect-square rounded-full border border-[var(--apcrda-color-border-strong)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-primary)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:border-[var(--apcrda-color-primary)]", {
10160
10185
  variants: { size: {
10161
10186
  sm: "h-4 w-4",
10162
10187
  md: "h-5 w-5",
10163
10188
  lg: "h-6 w-6"
10164
10189
  } },
10165
10190
  defaultVariants: { size: "md" }
10166
- }), Ry = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(My, {
10191
+ }), zy = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(Ny, {
10167
10192
  ref: o,
10168
- className: e(Ly({ size: n }), t),
10193
+ className: e(Ry({ size: n }), t),
10169
10194
  disabled: i || r,
10170
10195
  "aria-busy": r || void 0,
10171
10196
  ...a,
10172
- children: /* @__PURE__ */ N(Fy, {
10197
+ children: /* @__PURE__ */ N(Iy, {
10173
10198
  className: "flex items-center justify-center",
10174
10199
  children: r ? /* @__PURE__ */ N(en, {
10175
10200
  "aria-hidden": "true",
@@ -10180,15 +10205,15 @@ var Ly = il("aspect-square rounded-full border border-[var(--apcrda-color-border
10180
10205
  })
10181
10206
  })
10182
10207
  }));
10183
- Ry.displayName = "RadioGroupItem";
10208
+ zy.displayName = "RadioGroupItem";
10184
10209
  //#endregion
10185
10210
  //#region node_modules/@radix-ui/number/dist/index.mjs
10186
- function zy(e, [t, n]) {
10211
+ function By(e, [t, n]) {
10187
10212
  return Math.min(n, Math.max(t, e));
10188
10213
  }
10189
10214
  //#endregion
10190
10215
  //#region node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
10191
- var By = Object.freeze({
10216
+ var Vy = Object.freeze({
10192
10217
  position: "absolute",
10193
10218
  border: 0,
10194
10219
  width: 1,
@@ -10199,32 +10224,32 @@ var By = Object.freeze({
10199
10224
  clip: "rect(0, 0, 0, 0)",
10200
10225
  whiteSpace: "nowrap",
10201
10226
  wordWrap: "normal"
10202
- }), Vy = "VisuallyHidden", Hy = y.forwardRef((e, t) => /* @__PURE__ */ N(U.span, {
10227
+ }), Hy = "VisuallyHidden", Uy = y.forwardRef((e, t) => /* @__PURE__ */ N(U.span, {
10203
10228
  ...e,
10204
10229
  ref: t,
10205
10230
  style: {
10206
- ...By,
10231
+ ...Vy,
10207
10232
  ...e.style
10208
10233
  }
10209
10234
  }));
10210
- Hy.displayName = Vy;
10211
- var Uy = Hy, Wy = [
10235
+ Uy.displayName = Hy;
10236
+ var Wy = Uy, Gy = [
10212
10237
  " ",
10213
10238
  "Enter",
10214
10239
  "ArrowUp",
10215
10240
  "ArrowDown"
10216
- ], Gy = [" ", "Enter"], Ky = "Select", [qy, Jy, Yy] = _e(Ky), [Xy, Zy] = L(Ky, [Yy, Vs]), Qy = Vs(), [$y, eb] = Xy(Ky), [tb, nb] = Xy(Ky), rb = "SelectProvider";
10217
- function ib(e) {
10218
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g = Qy(t), [_, v] = y.useState(null), [b, x] = y.useState(null), [S, C] = y.useState(!1), w = Ke(l), [T, E] = H({
10241
+ ], Ky = [" ", "Enter"], qy = "Select", [Jy, Yy, Xy] = _e(qy), [Zy, Qy] = L(qy, [Xy, Vs]), $y = Vs(), [eb, tb] = Zy(qy), [nb, rb] = Zy(qy), ib = "SelectProvider";
10242
+ function ab(e) {
10243
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: f, required: p, form: m, internal_do_not_use_render: h } = e, g = $y(t), [_, v] = y.useState(null), [b, x] = y.useState(null), [S, C] = y.useState(!1), w = Ke(l), [T, E] = H({
10219
10244
  prop: r,
10220
10245
  defaultProp: i ?? !1,
10221
10246
  onChange: a,
10222
- caller: Ky
10247
+ caller: qy
10223
10248
  }), [D, O] = H({
10224
10249
  prop: o,
10225
10250
  defaultProp: s,
10226
10251
  onChange: c,
10227
- caller: Ky
10252
+ caller: qy
10228
10253
  }), k = y.useRef(null), A = _ ? !!m || !!_.closest("form") : !0, [j, M] = y.useState(/* @__PURE__ */ new Set()), P = G(), F = Array.from(j).map((e) => e.props.value).join(";"), I = y.useCallback((e) => {
10229
10254
  M((t) => new Set(t).add(e));
10230
10255
  }, []), ee = y.useCallback((e) => {
@@ -10257,34 +10282,34 @@ function ib(e) {
10257
10282
  };
10258
10283
  return /* @__PURE__ */ N(rc, {
10259
10284
  ...g,
10260
- children: /* @__PURE__ */ N($y, {
10285
+ children: /* @__PURE__ */ N(eb, {
10261
10286
  scope: t,
10262
10287
  ...L,
10263
- children: /* @__PURE__ */ N(qy.Provider, {
10288
+ children: /* @__PURE__ */ N(Jy.Provider, {
10264
10289
  scope: t,
10265
- children: /* @__PURE__ */ N(tb, {
10290
+ children: /* @__PURE__ */ N(nb, {
10266
10291
  scope: t,
10267
10292
  onNativeOptionAdd: I,
10268
10293
  onNativeOptionRemove: ee,
10269
- children: ix(h) ? h(L) : n
10294
+ children: ax(h) ? h(L) : n
10270
10295
  })
10271
10296
  })
10272
10297
  })
10273
10298
  });
10274
10299
  }
10275
- ib.displayName = rb;
10276
- var ab = (e) => {
10300
+ ab.displayName = ib;
10301
+ var ob = (e) => {
10277
10302
  let { __scopeSelect: t, children: n, ...r } = e;
10278
- return /* @__PURE__ */ N(ib, {
10303
+ return /* @__PURE__ */ N(ab, {
10279
10304
  __scopeSelect: t,
10280
10305
  ...r,
10281
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [n, e ? /* @__PURE__ */ N(rx, { __scopeSelect: t }) : null] })
10306
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [n, e ? /* @__PURE__ */ N(ix, { __scopeSelect: t }) : null] })
10282
10307
  });
10283
10308
  };
10284
- ab.displayName = Ky;
10285
- var ob = "SelectTrigger", sb = y.forwardRef((e, t) => {
10286
- let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = Qy(n), o = eb(ob, n), s = o.disabled || r, c = z(t, o.onTriggerChange), l = Jy(n), u = y.useRef("touch"), [d, f, p] = ox((e) => {
10287
- let t = l().filter((e) => !e.disabled), n = sx(t, e, t.find((e) => e.value === o.value));
10309
+ ob.displayName = qy;
10310
+ var sb = "SelectTrigger", cb = y.forwardRef((e, t) => {
10311
+ let { __scopeSelect: n, disabled: r = !1, ...i } = e, a = $y(n), o = tb(sb, n), s = o.disabled || r, c = z(t, o.onTriggerChange), l = Yy(n), u = y.useRef("touch"), [d, f, p] = sx((e) => {
10312
+ let t = l().filter((e) => !e.disabled), n = cx(t, e, t.find((e) => e.value === o.value));
10288
10313
  n !== void 0 && o.onValueChange(n.value);
10289
10314
  }), m = (e) => {
10290
10315
  s || (o.onOpenChange(!0), p()), e && (o.triggerPointerDownPosRef.current = {
@@ -10306,7 +10331,7 @@ var ob = "SelectTrigger", sb = y.forwardRef((e, t) => {
10306
10331
  "data-state": o.open ? "open" : "closed",
10307
10332
  disabled: s,
10308
10333
  "data-disabled": s ? "" : void 0,
10309
- "data-placeholder": ax(o.value) ? "" : void 0,
10334
+ "data-placeholder": ox(o.value) ? "" : void 0,
10310
10335
  ...i,
10311
10336
  ref: c,
10312
10337
  onClick: B(i.onClick, (e) => {
@@ -10319,18 +10344,18 @@ var ob = "SelectTrigger", sb = y.forwardRef((e, t) => {
10319
10344
  }),
10320
10345
  onKeyDown: B(i.onKeyDown, (e) => {
10321
10346
  let t = d.current !== "";
10322
- !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") && Wy.includes(e.key) && (m(), e.preventDefault());
10347
+ !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && f(e.key), !(t && e.key === " ") && Gy.includes(e.key) && (m(), e.preventDefault());
10323
10348
  })
10324
10349
  })
10325
10350
  });
10326
10351
  });
10327
- sb.displayName = ob;
10328
- var cb = "SelectValue", lb = y.forwardRef((e, t) => {
10329
- let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = eb(cb, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = z(t, c.onValueNodeChange);
10352
+ cb.displayName = sb;
10353
+ var lb = "SelectValue", ub = y.forwardRef((e, t) => {
10354
+ let { __scopeSelect: n, className: r, style: i, children: a, placeholder: o = "", ...s } = e, c = tb(lb, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = z(t, c.onValueNodeChange);
10330
10355
  V(() => {
10331
10356
  l(u);
10332
10357
  }, [l, u]);
10333
- let f = ax(c.value);
10358
+ let f = ox(c.value);
10334
10359
  return /* @__PURE__ */ N(U.span, {
10335
10360
  ...s,
10336
10361
  asChild: f ? !1 : s.asChild,
@@ -10339,8 +10364,8 @@ var cb = "SelectValue", lb = y.forwardRef((e, t) => {
10339
10364
  children: /* @__PURE__ */ N(y.Fragment, { children: f ? o : a }, f ? "placeholder" : "value")
10340
10365
  });
10341
10366
  });
10342
- lb.displayName = cb;
10343
- var ub = "SelectIcon", db = y.forwardRef((e, t) => {
10367
+ ub.displayName = lb;
10368
+ var db = "SelectIcon", fb = y.forwardRef((e, t) => {
10344
10369
  let { __scopeSelect: n, children: r, ...i } = e;
10345
10370
  return /* @__PURE__ */ N(U.span, {
10346
10371
  "aria-hidden": !0,
@@ -10349,10 +10374,10 @@ var ub = "SelectIcon", db = y.forwardRef((e, t) => {
10349
10374
  children: r || "▼"
10350
10375
  });
10351
10376
  });
10352
- db.displayName = ub;
10353
- var fb = "SelectPortal", [pb, mb] = Xy(fb, { forceMount: void 0 }), hb = (e) => {
10377
+ fb.displayName = db;
10378
+ var pb = "SelectPortal", [mb, hb] = Zy(pb, { forceMount: void 0 }), gb = (e) => {
10354
10379
  let { __scopeSelect: t, forceMount: n, ...r } = e;
10355
- return /* @__PURE__ */ N(pb, {
10380
+ return /* @__PURE__ */ N(mb, {
10356
10381
  scope: e.__scopeSelect,
10357
10382
  forceMount: n,
10358
10383
  children: /* @__PURE__ */ N(Gn, {
@@ -10361,28 +10386,28 @@ var fb = "SelectPortal", [pb, mb] = Xy(fb, { forceMount: void 0 }), hb = (e) =>
10361
10386
  })
10362
10387
  });
10363
10388
  };
10364
- hb.displayName = fb;
10365
- var gb = "SelectContent", _b = y.forwardRef((e, t) => {
10366
- let n = mb(gb, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = eb(gb, e.__scopeSelect), [o, s] = y.useState();
10389
+ gb.displayName = pb;
10390
+ var _b = "SelectContent", vb = y.forwardRef((e, t) => {
10391
+ let n = hb(_b, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = tb(_b, e.__scopeSelect), [o, s] = y.useState();
10367
10392
  return V(() => {
10368
10393
  s(new DocumentFragment());
10369
10394
  }, []), /* @__PURE__ */ N(W, {
10370
10395
  present: r || a.open,
10371
- children: ({ present: e }) => e ? /* @__PURE__ */ N(wb, {
10396
+ children: ({ present: e }) => e ? /* @__PURE__ */ N(Tb, {
10372
10397
  ...i,
10373
10398
  ref: t
10374
- }) : /* @__PURE__ */ N(vb, {
10399
+ }) : /* @__PURE__ */ N(yb, {
10375
10400
  ...i,
10376
10401
  fragment: o
10377
10402
  })
10378
10403
  });
10379
10404
  });
10380
- _b.displayName = gb;
10381
- var vb = y.forwardRef((e, t) => {
10405
+ vb.displayName = _b;
10406
+ var yb = y.forwardRef((e, t) => {
10382
10407
  let { __scopeSelect: n, children: r, fragment: i } = e;
10383
- return i ? F.createPortal(/* @__PURE__ */ N(bb, {
10408
+ return i ? F.createPortal(/* @__PURE__ */ N(xb, {
10384
10409
  scope: n,
10385
- children: /* @__PURE__ */ N(qy.Slot, {
10410
+ children: /* @__PURE__ */ N(Jy.Slot, {
10386
10411
  scope: n,
10387
10412
  children: /* @__PURE__ */ N("div", {
10388
10413
  ref: t,
@@ -10391,9 +10416,9 @@ var vb = y.forwardRef((e, t) => {
10391
10416
  })
10392
10417
  }), i) : null;
10393
10418
  });
10394
- vb.displayName = "SelectContentFragment";
10395
- var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ re("SelectContent.RemoveScroll"), wb = y.forwardRef((e, t) => {
10396
- let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = eb(gb, n), [b, x] = y.useState(null), [S, C] = y.useState(null), w = z(t, (e) => x(e)), [T, E] = y.useState(null), [D, O] = y.useState(null), k = Jy(n), [A, j] = y.useState(!1), M = y.useRef(!1);
10419
+ yb.displayName = "SelectContentFragment";
10420
+ var bb = 10, [xb, Sb] = Zy(_b), Cb = "SelectContentImpl", wb = /* @__PURE__ */ re("SelectContent.RemoveScroll"), Tb = y.forwardRef((e, t) => {
10421
+ let { __scopeSelect: n } = e, { position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, side: s, sideOffset: c, align: l, alignOffset: u, arrowPadding: d, collisionBoundary: f, collisionPadding: p, sticky: m, hideWhenDetached: h, avoidCollisions: g, ..._ } = e, v = tb(_b, n), [b, x] = y.useState(null), [S, C] = y.useState(null), w = z(t, (e) => x(e)), [T, E] = y.useState(null), [D, O] = y.useState(null), k = Yy(n), [A, j] = y.useState(!1), M = y.useRef(!1);
10397
10422
  y.useEffect(() => {
10398
10423
  if (b) return pi(b);
10399
10424
  }, [b]), Jn();
@@ -10439,8 +10464,8 @@ var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ r
10439
10464
  window.removeEventListener("blur", e), window.removeEventListener("resize", e);
10440
10465
  };
10441
10466
  }, [I]);
10442
- let [L, te] = ox((e) => {
10443
- let t = k().filter((e) => !e.disabled), n = sx(t, e, t.find((e) => e.ref.current === document.activeElement));
10467
+ let [L, te] = sx((e) => {
10468
+ let t = k().filter((e) => !e.disabled), n = cx(t, e, t.find((e) => e.ref.current === document.activeElement));
10444
10469
  n && setTimeout(() => n.ref.current?.focus());
10445
10470
  }), ne = y.useCallback((e, t, n) => {
10446
10471
  let r = !M.current && !n;
@@ -10448,7 +10473,7 @@ var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ r
10448
10473
  }, [v.value]), R = y.useCallback(() => b?.focus(), [b]), re = y.useCallback((e, t, n) => {
10449
10474
  let r = !M.current && !n;
10450
10475
  (v.value !== void 0 && v.value === t || r) && O(e);
10451
- }, [v.value]), ie = r === "popper" ? Ob : Eb, ae = ie === Ob ? {
10476
+ }, [v.value]), ie = r === "popper" ? kb : Db, ae = ie === kb ? {
10452
10477
  side: s,
10453
10478
  sideOffset: c,
10454
10479
  align: l,
@@ -10460,7 +10485,7 @@ var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ r
10460
10485
  hideWhenDetached: h,
10461
10486
  avoidCollisions: g
10462
10487
  } : {};
10463
- return /* @__PURE__ */ N(bb, {
10488
+ return /* @__PURE__ */ N(xb, {
10464
10489
  scope: n,
10465
10490
  content: b,
10466
10491
  viewport: S,
@@ -10475,7 +10500,7 @@ var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ r
10475
10500
  isPositioned: A,
10476
10501
  searchRef: L,
10477
10502
  children: /* @__PURE__ */ N(ii, {
10478
- as: Cb,
10503
+ as: wb,
10479
10504
  allowPinchZoom: !0,
10480
10505
  children: /* @__PURE__ */ N(Mn, {
10481
10506
  asChild: !0,
@@ -10531,19 +10556,19 @@ var yb = 10, [bb, xb] = Xy(gb), Sb = "SelectContentImpl", Cb = /* @__PURE__ */ r
10531
10556
  })
10532
10557
  });
10533
10558
  });
10534
- wb.displayName = Sb;
10535
- var Tb = "SelectItemAlignedPosition", Eb = y.forwardRef((e, t) => {
10536
- let { __scopeSelect: n, onPlaced: r, ...i } = e, a = eb(gb, n), o = xb(gb, n), [s, c] = y.useState(null), [l, u] = y.useState(null), d = z(t, (e) => u(e)), f = Jy(n), p = y.useRef(!1), m = y.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, b = y.useCallback(() => {
10559
+ Tb.displayName = Cb;
10560
+ var Eb = "SelectItemAlignedPosition", Db = y.forwardRef((e, t) => {
10561
+ let { __scopeSelect: n, onPlaced: r, ...i } = e, a = tb(_b, n), o = Sb(_b, n), [s, c] = y.useState(null), [l, u] = y.useState(null), d = z(t, (e) => u(e)), f = Yy(n), p = y.useRef(!1), m = y.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: _, focusSelectedItem: v } = o, b = y.useCallback(() => {
10537
10562
  if (a.trigger && a.valueNode && s && l && h && g && _) {
10538
10563
  let e = a.trigger.getBoundingClientRect(), t = l.getBoundingClientRect(), n = a.valueNode.getBoundingClientRect(), i = _.getBoundingClientRect();
10539
10564
  if (a.dir !== "rtl") {
10540
- let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - yb, d = zy(a, [yb, Math.max(yb, u - l)]);
10565
+ let r = i.left - t.left, a = n.left - r, o = e.left - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - bb, d = By(a, [bb, Math.max(bb, u - l)]);
10541
10566
  s.style.minWidth = c + "px", s.style.left = d + "px";
10542
10567
  } else {
10543
- let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - yb, d = zy(a, [yb, Math.max(yb, u - l)]);
10568
+ let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - bb, d = By(a, [bb, Math.max(bb, u - l)]);
10544
10569
  s.style.minWidth = c + "px", s.style.right = d + "px";
10545
10570
  }
10546
- let o = f(), c = window.innerHeight - yb * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - yb, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
10571
+ let o = f(), c = window.innerHeight - bb * 2, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - bb, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
10547
10572
  if (A <= E) {
10548
10573
  let e = o.length > 0 && g === o[o.length - 1].ref.current;
10549
10574
  s.style.bottom = "0px";
@@ -10555,7 +10580,7 @@ var Tb = "SelectItemAlignedPosition", Eb = y.forwardRef((e, t) => {
10555
10580
  let t = Math.max(E, m + h.offsetTop + (e ? w : 0) + O) + j;
10556
10581
  s.style.height = t + "px", h.scrollTop = A - E + h.offsetTop;
10557
10582
  }
10558
- s.style.margin = `${yb}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
10583
+ s.style.margin = `${bb}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
10559
10584
  }
10560
10585
  }, [
10561
10586
  f,
@@ -10573,7 +10598,7 @@ var Tb = "SelectItemAlignedPosition", Eb = y.forwardRef((e, t) => {
10573
10598
  let [x, S] = y.useState();
10574
10599
  return V(() => {
10575
10600
  l && S(window.getComputedStyle(l).zIndex);
10576
- }, [l]), /* @__PURE__ */ N(kb, {
10601
+ }, [l]), /* @__PURE__ */ N(Ab, {
10577
10602
  scope: n,
10578
10603
  contentWrapper: s,
10579
10604
  shouldExpandOnScrollRef: p,
@@ -10600,11 +10625,11 @@ var Tb = "SelectItemAlignedPosition", Eb = y.forwardRef((e, t) => {
10600
10625
  })
10601
10626
  });
10602
10627
  });
10603
- Eb.displayName = Tb;
10604
- var Db = "SelectPopperPosition", Ob = y.forwardRef((e, t) => {
10605
- let { __scopeSelect: n, align: r = "start", collisionPadding: i = yb, ...a } = e;
10628
+ Db.displayName = Eb;
10629
+ var Ob = "SelectPopperPosition", kb = y.forwardRef((e, t) => {
10630
+ let { __scopeSelect: n, align: r = "start", collisionPadding: i = bb, ...a } = e;
10606
10631
  return /* @__PURE__ */ N(ac, {
10607
- ...Qy(n),
10632
+ ...$y(n),
10608
10633
  ...a,
10609
10634
  ref: t,
10610
10635
  align: r,
@@ -10620,13 +10645,13 @@ var Db = "SelectPopperPosition", Ob = y.forwardRef((e, t) => {
10620
10645
  }
10621
10646
  });
10622
10647
  });
10623
- Ob.displayName = Db;
10624
- var [kb, Ab] = Xy(gb, {}), jb = "SelectViewport", Mb = y.forwardRef((e, t) => {
10625
- let { __scopeSelect: n, nonce: r, ...i } = e, a = xb(jb, n), o = Ab(jb, n), s = z(t, a.onViewportChange), c = y.useRef(0);
10648
+ kb.displayName = Ob;
10649
+ var [Ab, jb] = Zy(_b, {}), Mb = "SelectViewport", Nb = y.forwardRef((e, t) => {
10650
+ let { __scopeSelect: n, nonce: r, ...i } = e, a = Sb(Mb, n), o = jb(Mb, n), s = z(t, a.onViewportChange), c = y.useRef(0);
10626
10651
  return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N("style", {
10627
10652
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
10628
10653
  nonce: r
10629
- }), /* @__PURE__ */ N(qy.Slot, {
10654
+ }), /* @__PURE__ */ N(Jy.Slot, {
10630
10655
  scope: n,
10631
10656
  children: /* @__PURE__ */ N(U.div, {
10632
10657
  "data-radix-select-viewport": "",
@@ -10644,7 +10669,7 @@ var [kb, Ab] = Xy(gb, {}), jb = "SelectViewport", Mb = y.forwardRef((e, t) => {
10644
10669
  if (r?.current && n) {
10645
10670
  let e = Math.abs(c.current - t.scrollTop);
10646
10671
  if (e > 0) {
10647
- let r = window.innerHeight - yb * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
10672
+ let r = window.innerHeight - bb * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
10648
10673
  if (o < r) {
10649
10674
  let i = o + e, a = Math.min(r, i), s = i - a;
10650
10675
  n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
@@ -10656,10 +10681,10 @@ var [kb, Ab] = Xy(gb, {}), jb = "SelectViewport", Mb = y.forwardRef((e, t) => {
10656
10681
  })
10657
10682
  })] });
10658
10683
  });
10659
- Mb.displayName = jb;
10660
- var Nb = "SelectGroup", [Pb, Fb] = Xy(Nb), Ib = y.forwardRef((e, t) => {
10684
+ Nb.displayName = Mb;
10685
+ var Pb = "SelectGroup", [Fb, Ib] = Zy(Pb), Lb = y.forwardRef((e, t) => {
10661
10686
  let { __scopeSelect: n, ...r } = e, i = G();
10662
- return /* @__PURE__ */ N(Pb, {
10687
+ return /* @__PURE__ */ N(Fb, {
10663
10688
  scope: n,
10664
10689
  id: i,
10665
10690
  children: /* @__PURE__ */ N(U.div, {
@@ -10670,21 +10695,21 @@ var Nb = "SelectGroup", [Pb, Fb] = Xy(Nb), Ib = y.forwardRef((e, t) => {
10670
10695
  })
10671
10696
  });
10672
10697
  });
10673
- Ib.displayName = Nb;
10674
- var Lb = "SelectLabel", Rb = y.forwardRef((e, t) => {
10675
- let { __scopeSelect: n, ...r } = e, i = Fb(Lb, n);
10698
+ Lb.displayName = Pb;
10699
+ var Rb = "SelectLabel", zb = y.forwardRef((e, t) => {
10700
+ let { __scopeSelect: n, ...r } = e, i = Ib(Rb, n);
10676
10701
  return /* @__PURE__ */ N(U.div, {
10677
10702
  id: i.id,
10678
10703
  ...r,
10679
10704
  ref: t
10680
10705
  });
10681
10706
  });
10682
- Rb.displayName = Lb;
10683
- var zb = "SelectItem", [Bb, Vb] = Xy(zb), Hb = y.forwardRef((e, t) => {
10684
- let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = eb(zb, n), c = xb(zb, n), l = s.value === r, [u, d] = y.useState(a ?? ""), [f, p] = y.useState(!1), m = z(t, (e) => c.itemRefCallback?.(e, r, i)), h = G(), g = y.useRef("touch"), _ = () => {
10707
+ zb.displayName = Rb;
10708
+ var Bb = "SelectItem", [Vb, Hb] = Zy(Bb), Ub = y.forwardRef((e, t) => {
10709
+ let { __scopeSelect: n, value: r, disabled: i = !1, textValue: a, ...o } = e, s = tb(Bb, n), c = Sb(Bb, n), l = s.value === r, [u, d] = y.useState(a ?? ""), [f, p] = y.useState(!1), m = z(t, (e) => c.itemRefCallback?.(e, r, i)), h = G(), g = y.useRef("touch"), _ = () => {
10685
10710
  i || (s.onValueChange(r), s.onOpenChange(!1));
10686
10711
  };
10687
- return /* @__PURE__ */ N(Bb, {
10712
+ return /* @__PURE__ */ N(Vb, {
10688
10713
  scope: n,
10689
10714
  value: r,
10690
10715
  disabled: i,
@@ -10693,7 +10718,7 @@ var zb = "SelectItem", [Bb, Vb] = Xy(zb), Hb = y.forwardRef((e, t) => {
10693
10718
  onItemTextChange: y.useCallback((e) => {
10694
10719
  d((t) => t || (e?.textContent ?? "").trim());
10695
10720
  }, []),
10696
- children: /* @__PURE__ */ N(qy.ItemSlot, {
10721
+ children: /* @__PURE__ */ N(Jy.ItemSlot, {
10697
10722
  scope: n,
10698
10723
  value: r,
10699
10724
  disabled: i,
@@ -10727,15 +10752,15 @@ var zb = "SelectItem", [Bb, Vb] = Xy(zb), Hb = y.forwardRef((e, t) => {
10727
10752
  e.currentTarget === document.activeElement && c.onItemLeave?.();
10728
10753
  }),
10729
10754
  onKeyDown: B(o.onKeyDown, (e) => {
10730
- c.searchRef?.current !== "" && e.key === " " || (Gy.includes(e.key) && _(), e.key === " " && e.preventDefault());
10755
+ c.searchRef?.current !== "" && e.key === " " || (Ky.includes(e.key) && _(), e.key === " " && e.preventDefault());
10731
10756
  })
10732
10757
  })
10733
10758
  })
10734
10759
  });
10735
10760
  });
10736
- Hb.displayName = zb;
10737
- var Ub = "SelectItemText", Wb = y.forwardRef((e, t) => {
10738
- let { __scopeSelect: n, className: r, style: i, ...a } = e, o = eb(Ub, n), s = xb(Ub, n), c = Vb(Ub, n), l = nb(Ub, n), [u, d] = y.useState(null), f = z(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = y.useMemo(() => /* @__PURE__ */ N("option", {
10761
+ Ub.displayName = Bb;
10762
+ var Wb = "SelectItemText", Gb = y.forwardRef((e, t) => {
10763
+ let { __scopeSelect: n, className: r, style: i, ...a } = e, o = tb(Wb, n), s = Sb(Wb, n), c = Hb(Wb, n), l = rb(Wb, n), [u, d] = y.useState(null), f = z(t, (e) => d(e), c.onItemTextChange, (e) => s.itemTextRefCallback?.(e, c.value, c.disabled)), p = u?.textContent, m = y.useMemo(() => /* @__PURE__ */ N("option", {
10739
10764
  value: c.value,
10740
10765
  disabled: c.disabled,
10741
10766
  children: p
@@ -10752,20 +10777,20 @@ var Ub = "SelectItemText", Wb = y.forwardRef((e, t) => {
10752
10777
  id: c.textId,
10753
10778
  ...a,
10754
10779
  ref: f
10755
- }), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !ax(o.value) ? F.createPortal(a.children, o.valueNode) : null] });
10780
+ }), c.isSelected && o.valueNode && !o.valueNodeHasChildren && !ox(o.value) ? F.createPortal(a.children, o.valueNode) : null] });
10756
10781
  });
10757
- Wb.displayName = Ub;
10758
- var Gb = "SelectItemIndicator", Kb = y.forwardRef((e, t) => {
10782
+ Gb.displayName = Wb;
10783
+ var Kb = "SelectItemIndicator", qb = y.forwardRef((e, t) => {
10759
10784
  let { __scopeSelect: n, ...r } = e;
10760
- return Vb(Gb, n).isSelected ? /* @__PURE__ */ N(U.span, {
10785
+ return Hb(Kb, n).isSelected ? /* @__PURE__ */ N(U.span, {
10761
10786
  "aria-hidden": !0,
10762
10787
  ...r,
10763
10788
  ref: t
10764
10789
  }) : null;
10765
10790
  });
10766
- Kb.displayName = Gb;
10767
- var qb = "SelectScrollUpButton", Jb = y.forwardRef((e, t) => {
10768
- let n = xb(qb, e.__scopeSelect), r = Ab(qb, e.__scopeSelect), [i, a] = y.useState(!1), o = z(t, r.onScrollButtonChange);
10791
+ qb.displayName = Kb;
10792
+ var Jb = "SelectScrollUpButton", Yb = y.forwardRef((e, t) => {
10793
+ let n = Sb(Jb, e.__scopeSelect), r = jb(Jb, e.__scopeSelect), [i, a] = y.useState(!1), o = z(t, r.onScrollButtonChange);
10769
10794
  return V(() => {
10770
10795
  if (n.viewport && n.isPositioned) {
10771
10796
  let e = function() {
@@ -10773,7 +10798,7 @@ var qb = "SelectScrollUpButton", Jb = y.forwardRef((e, t) => {
10773
10798
  }, t = n.viewport;
10774
10799
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
10775
10800
  }
10776
- }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(Zb, {
10801
+ }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(Qb, {
10777
10802
  ...e,
10778
10803
  ref: o,
10779
10804
  onAutoScroll: () => {
@@ -10782,9 +10807,9 @@ var qb = "SelectScrollUpButton", Jb = y.forwardRef((e, t) => {
10782
10807
  }
10783
10808
  }) : null;
10784
10809
  });
10785
- Jb.displayName = qb;
10786
- var Yb = "SelectScrollDownButton", Xb = y.forwardRef((e, t) => {
10787
- let n = xb(Yb, e.__scopeSelect), r = Ab(Yb, e.__scopeSelect), [i, a] = y.useState(!1), o = z(t, r.onScrollButtonChange);
10810
+ Yb.displayName = Jb;
10811
+ var Xb = "SelectScrollDownButton", Zb = y.forwardRef((e, t) => {
10812
+ let n = Sb(Xb, e.__scopeSelect), r = jb(Xb, e.__scopeSelect), [i, a] = y.useState(!1), o = z(t, r.onScrollButtonChange);
10788
10813
  return V(() => {
10789
10814
  if (n.viewport && n.isPositioned) {
10790
10815
  let e = function() {
@@ -10793,7 +10818,7 @@ var Yb = "SelectScrollDownButton", Xb = y.forwardRef((e, t) => {
10793
10818
  }, t = n.viewport;
10794
10819
  return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
10795
10820
  }
10796
- }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(Zb, {
10821
+ }, [n.viewport, n.isPositioned]), i ? /* @__PURE__ */ N(Qb, {
10797
10822
  ...e,
10798
10823
  ref: o,
10799
10824
  onAutoScroll: () => {
@@ -10802,9 +10827,9 @@ var Yb = "SelectScrollDownButton", Xb = y.forwardRef((e, t) => {
10802
10827
  }
10803
10828
  }) : null;
10804
10829
  });
10805
- Xb.displayName = Yb;
10806
- var Zb = y.forwardRef((e, t) => {
10807
- let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = xb("SelectScrollButton", n), o = y.useRef(null), s = Jy(n), c = y.useCallback(() => {
10830
+ Zb.displayName = Xb;
10831
+ var Qb = y.forwardRef((e, t) => {
10832
+ let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Sb("SelectScrollButton", n), o = y.useRef(null), s = Yy(n), c = y.useCallback(() => {
10808
10833
  o.current !== null && (window.clearInterval(o.current), o.current = null);
10809
10834
  }, []);
10810
10835
  return y.useEffect(() => () => c(), [c]), V(() => {
@@ -10827,7 +10852,7 @@ var Zb = y.forwardRef((e, t) => {
10827
10852
  c();
10828
10853
  })
10829
10854
  });
10830
- }), Qb = "SelectSeparator", $b = y.forwardRef((e, t) => {
10855
+ }), $b = "SelectSeparator", ex = y.forwardRef((e, t) => {
10831
10856
  let { __scopeSelect: n, ...r } = e;
10832
10857
  return /* @__PURE__ */ N(U.div, {
10833
10858
  "aria-hidden": !0,
@@ -10835,18 +10860,18 @@ var Zb = y.forwardRef((e, t) => {
10835
10860
  ref: t
10836
10861
  });
10837
10862
  });
10838
- $b.displayName = Qb;
10839
- var ex = "SelectArrow", tx = y.forwardRef((e, t) => {
10840
- let { __scopeSelect: n, ...r } = e, i = Qy(n);
10841
- return xb(ex, n).position === "popper" ? /* @__PURE__ */ N(oc, {
10863
+ ex.displayName = $b;
10864
+ var tx = "SelectArrow", nx = y.forwardRef((e, t) => {
10865
+ let { __scopeSelect: n, ...r } = e, i = $y(n);
10866
+ return Sb(tx, n).position === "popper" ? /* @__PURE__ */ N(oc, {
10842
10867
  ...i,
10843
10868
  ...r,
10844
10869
  ref: t
10845
10870
  }) : null;
10846
10871
  });
10847
- tx.displayName = ex;
10848
- var nx = "SelectBubbleInput", rx = y.forwardRef(({ __scopeSelect: e, ...t }, n) => {
10849
- let r = eb(nx, e), { value: i, onValueChange: a, required: o, disabled: s, name: c, autoComplete: l, form: u } = r, { nativeOptions: d, nativeSelectKey: f } = r, p = y.useRef(null), m = z(n, p), h = i ?? "", g = Bm(h), _ = Array.from(d).some((e) => (e.props.value ?? "") === "");
10872
+ nx.displayName = tx;
10873
+ var rx = "SelectBubbleInput", ix = y.forwardRef(({ __scopeSelect: e, ...t }, n) => {
10874
+ let r = tb(rx, e), { value: i, onValueChange: a, required: o, disabled: s, name: c, autoComplete: l, form: u } = r, { nativeOptions: d, nativeSelectKey: f } = r, p = y.useRef(null), m = z(n, p), h = i ?? "", g = Bm(h), _ = Array.from(d).some((e) => (e.props.value ?? "") === "");
10850
10875
  return y.useEffect(() => {
10851
10876
  let e = p.current;
10852
10877
  if (!e) return;
@@ -10866,22 +10891,22 @@ var nx = "SelectBubbleInput", rx = y.forwardRef(({ __scopeSelect: e, ...t }, n)
10866
10891
  onChange: (e) => a(e.target.value),
10867
10892
  ...t,
10868
10893
  style: {
10869
- ...By,
10894
+ ...Vy,
10870
10895
  ...t.style
10871
10896
  },
10872
10897
  ref: m,
10873
10898
  defaultValue: h,
10874
- children: [ax(i) && !_ ? /* @__PURE__ */ N("option", { value: "" }) : null, Array.from(d)]
10899
+ children: [ox(i) && !_ ? /* @__PURE__ */ N("option", { value: "" }) : null, Array.from(d)]
10875
10900
  }, f);
10876
10901
  });
10877
- rx.displayName = nx;
10878
- function ix(e) {
10902
+ ix.displayName = rx;
10903
+ function ax(e) {
10879
10904
  return typeof e == "function";
10880
10905
  }
10881
- function ax(e) {
10906
+ function ox(e) {
10882
10907
  return e === "" || e === void 0;
10883
10908
  }
10884
- function ox(e) {
10909
+ function sx(e) {
10885
10910
  let t = un(e), n = y.useRef(""), r = y.useRef(0), i = y.useCallback((e) => {
10886
10911
  let i = n.current + e;
10887
10912
  t(i), (function e(t) {
@@ -10896,23 +10921,23 @@ function ox(e) {
10896
10921
  a
10897
10922
  ];
10898
10923
  }
10899
- function sx(e, t, n) {
10900
- let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = cx(e, Math.max(i, 0));
10924
+ function cx(e, t, n) {
10925
+ let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = lx(e, Math.max(i, 0));
10901
10926
  r.length === 1 && (a = a.filter((e) => e !== n));
10902
10927
  let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
10903
10928
  return o === n ? void 0 : o;
10904
10929
  }
10905
- function cx(e, t) {
10930
+ function lx(e, t) {
10906
10931
  return e.map((n, r) => e[(t + r) % e.length]);
10907
10932
  }
10908
10933
  //#endregion
10909
10934
  //#region src/components/Select/Select.tsx
10910
- var lx = ab, ux = Ib, dx = lb, fx = C(({ className: t, size: n = "md", error: r = !1, children: i, ...a }, o) => /* @__PURE__ */ P(sb, {
10935
+ var ux = ob, dx = Lb, fx = ub, px = C(({ className: t, size: n = "md", error: r = !1, children: i, ...a }, o) => /* @__PURE__ */ P(cb, {
10911
10936
  ref: o,
10912
10937
  className: e("flex w-full items-center justify-between gap-2 rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55 [&>span]:truncate", n === "sm" && "h-8 px-3 text-xs", n === "md" && "h-10 px-3 text-sm", n === "lg" && "h-12 px-4 text-base", r ? "border-[var(--apcrda-color-error)]" : "border-[var(--apcrda-color-border)] hover:border-[var(--apcrda-color-border-strong)]", t),
10913
10938
  "aria-invalid": r || void 0,
10914
10939
  ...a,
10915
- children: [i, /* @__PURE__ */ N(db, {
10940
+ children: [i, /* @__PURE__ */ N(fb, {
10916
10941
  asChild: !0,
10917
10942
  children: /* @__PURE__ */ N(Ht, {
10918
10943
  className: "h-4 w-4 shrink-0 text-[var(--apcrda-color-muted)]",
@@ -10920,8 +10945,8 @@ var lx = ab, ux = Ib, dx = lb, fx = C(({ className: t, size: n = "md", error: r
10920
10945
  })
10921
10946
  })]
10922
10947
  }));
10923
- fx.displayName = "SelectTrigger";
10924
- var px = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Jb, {
10948
+ px.displayName = "SelectTrigger";
10949
+ var mx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Yb, {
10925
10950
  ref: r,
10926
10951
  className: e("flex cursor-default items-center justify-center py-1", t),
10927
10952
  ...n,
@@ -10930,8 +10955,8 @@ var px = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Jb, {
10930
10955
  "aria-hidden": "true"
10931
10956
  })
10932
10957
  }));
10933
- px.displayName = "SelectScrollUpButton";
10934
- var mx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Xb, {
10958
+ mx.displayName = "SelectScrollUpButton";
10959
+ var hx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Zb, {
10935
10960
  ref: r,
10936
10961
  className: e("flex cursor-default items-center justify-center py-1", t),
10937
10962
  ...n,
@@ -10940,57 +10965,57 @@ var mx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Xb, {
10940
10965
  "aria-hidden": "true"
10941
10966
  })
10942
10967
  }));
10943
- mx.displayName = "SelectScrollDownButton";
10944
- var hx = C(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ N(hb, { children: /* @__PURE__ */ P(_b, {
10968
+ hx.displayName = "SelectScrollDownButton";
10969
+ var gx = C(({ className: t, children: n, position: r = "popper", ...i }, a) => /* @__PURE__ */ N(gb, { children: /* @__PURE__ */ P(vb, {
10945
10970
  ref: a,
10946
10971
  className: e("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-[var(--apcrda-shadow-md)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
10947
10972
  position: r,
10948
10973
  ...i,
10949
10974
  children: [
10950
- /* @__PURE__ */ N(px, {}),
10951
- /* @__PURE__ */ N(Mb, {
10975
+ /* @__PURE__ */ N(mx, {}),
10976
+ /* @__PURE__ */ N(Nb, {
10952
10977
  className: e("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
10953
10978
  children: n
10954
10979
  }),
10955
- /* @__PURE__ */ N(mx, {})
10980
+ /* @__PURE__ */ N(hx, {})
10956
10981
  ]
10957
10982
  }) }));
10958
- hx.displayName = "SelectContent";
10959
- var gx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(Rb, {
10983
+ gx.displayName = "SelectContent";
10984
+ var _x = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(zb, {
10960
10985
  ref: r,
10961
10986
  className: e("px-2 py-1.5 text-xs font-semibold text-[var(--apcrda-color-muted)]", t),
10962
10987
  ...n
10963
10988
  }));
10964
- gx.displayName = "SelectLabel";
10965
- var _x = C(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ P(Hb, {
10989
+ _x.displayName = "SelectLabel";
10990
+ var vx = C(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ P(Ub, {
10966
10991
  ref: i,
10967
10992
  className: e("relative flex w-full cursor-default select-none items-center rounded-[var(--apcrda-radius-sm)] py-1.5 pl-8 pr-2 text-sm text-[var(--apcrda-color-foreground)] outline-none focus:bg-[var(--apcrda-color-surface-muted)] focus:text-[var(--apcrda-color-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
10968
10993
  ...r,
10969
10994
  children: [/* @__PURE__ */ N("span", {
10970
10995
  className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
10971
- children: /* @__PURE__ */ N(Kb, { children: /* @__PURE__ */ N(Vt, {
10996
+ children: /* @__PURE__ */ N(qb, { children: /* @__PURE__ */ N(Vt, {
10972
10997
  className: "h-4 w-4 text-[var(--apcrda-color-primary)]",
10973
10998
  "aria-hidden": "true"
10974
10999
  }) })
10975
- }), /* @__PURE__ */ N(Wb, { children: n })]
11000
+ }), /* @__PURE__ */ N(Gb, { children: n })]
10976
11001
  }));
10977
- _x.displayName = "SelectItem";
10978
- var vx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N($b, {
11002
+ vx.displayName = "SelectItem";
11003
+ var yx = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(ex, {
10979
11004
  ref: r,
10980
11005
  className: e("-mx-1 my-1 h-px bg-[var(--apcrda-color-border)]", t),
10981
11006
  ...n
10982
11007
  }));
10983
- vx.displayName = "SelectSeparator";
11008
+ yx.displayName = "SelectSeparator";
10984
11009
  //#endregion
10985
11010
  //#region src/components/Sidebar/SidebarContext.ts
10986
- var yx = x({ collapsed: !1 });
10987
- function bx() {
10988
- return T(yx);
11011
+ var bx = x({ collapsed: !1 });
11012
+ function xx() {
11013
+ return T(bx);
10989
11014
  }
10990
11015
  //#endregion
10991
11016
  //#region src/components/Sidebar/SidebarItem.tsx
10992
- function xx({ item: t, depth: n = 0 }) {
10993
- let { collapsed: r, activeId: i, onNavigate: a } = bx(), [o, s] = j(i === t.id || (t.items?.some((e) => e.id === i) ?? !1)), c = (t.items?.length ?? 0) > 0, l = i === t.id, u = e("group relative flex w-full items-center gap-3 rounded-[var(--apcrda-radius-md)] px-3 py-2 text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)]", l ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)]" : "text-[var(--apcrda-color-muted)] hover:bg-[var(--apcrda-color-surface-muted)] hover:text-[var(--apcrda-color-foreground)]", t.disabled && "pointer-events-none opacity-50", n > 0 && "pl-10");
11017
+ function Sx({ item: t, depth: n = 0 }) {
11018
+ let { collapsed: r, activeId: i, onNavigate: a } = xx(), [o, s] = j(i === t.id || (t.items?.some((e) => e.id === i) ?? !1)), c = (t.items?.length ?? 0) > 0, l = i === t.id, u = e("group relative flex w-full items-center gap-3 rounded-[var(--apcrda-radius-md)] px-3 py-2 text-sm font-medium transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)]", l ? "bg-[var(--apcrda-color-primary)] text-[var(--apcrda-color-primary-foreground)]" : "text-[var(--apcrda-color-muted)] hover:bg-[var(--apcrda-color-surface-muted)] hover:text-[var(--apcrda-color-foreground)]", t.disabled && "pointer-events-none opacity-50", n > 0 && "pl-10");
10994
11019
  function d() {
10995
11020
  t.disabled || (c ? s((e) => !e) : a?.(t));
10996
11021
  }
@@ -11027,7 +11052,7 @@ function xx({ item: t, depth: n = 0 }) {
11027
11052
  }), c && !r && o && /* @__PURE__ */ N("ul", {
11028
11053
  className: "mt-1 space-y-1",
11029
11054
  role: "list",
11030
- children: t.items.map((e) => /* @__PURE__ */ N(xx, {
11055
+ children: t.items.map((e) => /* @__PURE__ */ N(Sx, {
11031
11056
  item: e,
11032
11057
  depth: n + 1
11033
11058
  }, e.id))
@@ -11035,8 +11060,8 @@ function xx({ item: t, depth: n = 0 }) {
11035
11060
  }
11036
11061
  //#endregion
11037
11062
  //#region src/components/Sidebar/SidebarContent.tsx
11038
- function Sx({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a }) {
11039
- let { collapsed: o } = bx();
11063
+ function Cx({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a }) {
11064
+ let { collapsed: o } = xx();
11040
11065
  return /* @__PURE__ */ P("div", {
11041
11066
  className: e("relative flex h-full flex-col border-r border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface)] transition-all duration-300", o ? "w-16" : "w-64", a),
11042
11067
  children: [
@@ -11069,7 +11094,7 @@ function Sx({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a
11069
11094
  /* @__PURE__ */ N("ul", {
11070
11095
  className: "space-y-1",
11071
11096
  role: "list",
11072
- children: e.items.map((e) => /* @__PURE__ */ N(xx, { item: e }, e.id))
11097
+ children: e.items.map((e) => /* @__PURE__ */ N(Sx, { item: e }, e.id))
11073
11098
  })
11074
11099
  ] }, t))
11075
11100
  })
@@ -11083,19 +11108,19 @@ function Sx({ groups: t, logo: n, userSlot: r, onToggleCollapse: i, className: a
11083
11108
  }
11084
11109
  //#endregion
11085
11110
  //#region src/components/Sidebar/Sidebar.tsx
11086
- function Cx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defaultCollapsed: o = !1, className: s }) {
11111
+ function wx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defaultCollapsed: o = !1, className: s }) {
11087
11112
  let [c, l] = j(o), [u, d] = j(!1), f = {
11088
11113
  collapsed: c,
11089
11114
  activeId: n,
11090
11115
  onNavigate: r
11091
11116
  };
11092
- return /* @__PURE__ */ P(yx.Provider, {
11117
+ return /* @__PURE__ */ P(bx.Provider, {
11093
11118
  value: f,
11094
11119
  children: [
11095
11120
  /* @__PURE__ */ N("aside", {
11096
11121
  "aria-label": "Sidebar",
11097
11122
  className: e("hidden lg:flex lg:flex-col", s),
11098
- children: /* @__PURE__ */ N(Sx, {
11123
+ children: /* @__PURE__ */ N(Cx, {
11099
11124
  groups: t,
11100
11125
  logo: i,
11101
11126
  userSlot: a,
@@ -11124,12 +11149,12 @@ function Cx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defau
11124
11149
  children: [/* @__PURE__ */ N(Ii, {
11125
11150
  className: "sr-only",
11126
11151
  children: "Navigation"
11127
- }), /* @__PURE__ */ N(yx.Provider, {
11152
+ }), /* @__PURE__ */ N(bx.Provider, {
11128
11153
  value: {
11129
11154
  ...f,
11130
11155
  collapsed: !1
11131
11156
  },
11132
- children: /* @__PURE__ */ N(Sx, {
11157
+ children: /* @__PURE__ */ N(Cx, {
11133
11158
  groups: t,
11134
11159
  logo: i,
11135
11160
  userSlot: a,
@@ -11141,16 +11166,16 @@ function Cx({ groups: t, activeId: n, onNavigate: r, logo: i, userSlot: a, defau
11141
11166
  ]
11142
11167
  });
11143
11168
  }
11144
- Cx.displayName = "Sidebar";
11169
+ wx.displayName = "Sidebar";
11145
11170
  //#endregion
11146
11171
  //#region node_modules/@radix-ui/react-switch/dist/index.mjs
11147
- var wx = "Switch", [Tx, Ex] = L(wx), [Dx, Ox] = Tx(wx);
11148
- function kx(e) {
11172
+ var Tx = "Switch", [Ex, Dx] = L(Tx), [Ox, kx] = Ex(Tx);
11173
+ function Ax(e) {
11149
11174
  let { __scopeSwitch: t, checked: n, children: r, defaultChecked: i, disabled: a, form: o, name: s, onCheckedChange: c, required: l, value: u = "on", internal_do_not_use_render: d } = e, [f, p] = H({
11150
11175
  prop: n,
11151
11176
  defaultProp: i ?? !1,
11152
11177
  onChange: c,
11153
- caller: wx
11178
+ caller: Tx
11154
11179
  }), [m, h] = y.useState(null), [g, _] = y.useState(null), v = {
11155
11180
  checked: f,
11156
11181
  setChecked: p,
@@ -11167,20 +11192,20 @@ function kx(e) {
11167
11192
  bubbleInput: g,
11168
11193
  setBubbleInput: _
11169
11194
  };
11170
- return /* @__PURE__ */ N(Dx, {
11195
+ return /* @__PURE__ */ N(Ox, {
11171
11196
  scope: t,
11172
11197
  ...v,
11173
- children: Lx(d) ? d(v) : r
11198
+ children: Rx(d) ? d(v) : r
11174
11199
  });
11175
11200
  }
11176
- var Ax = "SwitchTrigger", jx = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...n }, r) => {
11177
- let { value: i, disabled: a, checked: o, required: s, setControl: c, setChecked: l, hasConsumerStoppedPropagationRef: u, isFormControl: d, bubbleInput: f } = Ox(Ax, e), p = z(r, c);
11201
+ var jx = "SwitchTrigger", Mx = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...n }, r) => {
11202
+ let { value: i, disabled: a, checked: o, required: s, setControl: c, setChecked: l, hasConsumerStoppedPropagationRef: u, isFormControl: d, bubbleInput: f } = kx(jx, e), p = z(r, c);
11178
11203
  return /* @__PURE__ */ N(U.button, {
11179
11204
  type: "button",
11180
11205
  role: "switch",
11181
11206
  "aria-checked": o,
11182
11207
  "aria-required": s,
11183
- "data-state": Rx(o),
11208
+ "data-state": zx(o),
11184
11209
  "data-disabled": a ? "" : void 0,
11185
11210
  disabled: a,
11186
11211
  value: i,
@@ -11191,10 +11216,10 @@ var Ax = "SwitchTrigger", jx = y.forwardRef(({ __scopeSwitch: e, onClick: t, ...
11191
11216
  })
11192
11217
  });
11193
11218
  });
11194
- jx.displayName = Ax;
11195
- var Mx = y.forwardRef((e, t) => {
11219
+ Mx.displayName = jx;
11220
+ var Nx = y.forwardRef((e, t) => {
11196
11221
  let { __scopeSwitch: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: l, form: u, ...d } = e;
11197
- return /* @__PURE__ */ N(kx, {
11222
+ return /* @__PURE__ */ N(Ax, {
11198
11223
  __scopeSwitch: n,
11199
11224
  checked: i,
11200
11225
  defaultChecked: a,
@@ -11204,26 +11229,26 @@ var Mx = y.forwardRef((e, t) => {
11204
11229
  name: r,
11205
11230
  form: u,
11206
11231
  value: c,
11207
- internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(jx, {
11232
+ internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(Mx, {
11208
11233
  ...d,
11209
11234
  ref: t,
11210
11235
  __scopeSwitch: n
11211
- }), e && /* @__PURE__ */ N(Ix, { __scopeSwitch: n })] })
11236
+ }), e && /* @__PURE__ */ N(Lx, { __scopeSwitch: n })] })
11212
11237
  });
11213
11238
  });
11214
- Mx.displayName = wx;
11215
- var Nx = "SwitchThumb", Px = y.forwardRef((e, t) => {
11216
- let { __scopeSwitch: n, ...r } = e, i = Ox(Nx, n);
11239
+ Nx.displayName = Tx;
11240
+ var Px = "SwitchThumb", Fx = y.forwardRef((e, t) => {
11241
+ let { __scopeSwitch: n, ...r } = e, i = kx(Px, n);
11217
11242
  return /* @__PURE__ */ N(U.span, {
11218
- "data-state": Rx(i.checked),
11243
+ "data-state": zx(i.checked),
11219
11244
  "data-disabled": i.disabled ? "" : void 0,
11220
11245
  ...r,
11221
11246
  ref: t
11222
11247
  });
11223
11248
  });
11224
- Px.displayName = Nx;
11225
- var Fx = "SwitchBubbleInput", Ix = y.forwardRef(({ __scopeSwitch: e, ...t }, n) => {
11226
- let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: c, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p } = Ox(Fx, e), m = z(n, p), h = Bm(a), g = Rs(r);
11249
+ Fx.displayName = Px;
11250
+ var Ix = "SwitchBubbleInput", Lx = y.forwardRef(({ __scopeSwitch: e, ...t }, n) => {
11251
+ let { control: r, hasConsumerStoppedPropagationRef: i, checked: a, defaultChecked: o, required: s, disabled: c, name: l, value: u, form: d, bubbleInput: f, setBubbleInput: p } = kx(Ix, e), m = z(n, p), h = Bm(a), g = Rs(r);
11227
11252
  y.useEffect(() => {
11228
11253
  let e = f;
11229
11254
  if (!e) return;
@@ -11262,61 +11287,61 @@ var Fx = "SwitchBubbleInput", Ix = y.forwardRef(({ __scopeSwitch: e, ...t }, n)
11262
11287
  }
11263
11288
  });
11264
11289
  });
11265
- Ix.displayName = Fx;
11266
- function Lx(e) {
11290
+ Lx.displayName = Ix;
11291
+ function Rx(e) {
11267
11292
  return typeof e == "function";
11268
11293
  }
11269
- function Rx(e) {
11294
+ function zx(e) {
11270
11295
  return e ? "checked" : "unchecked";
11271
11296
  }
11272
11297
  //#endregion
11273
11298
  //#region src/components/Switch/Switch.tsx
11274
- var zx = il("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[var(--apcrda-color-border-strong)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:bg-[var(--apcrda-color-primary)]", {
11299
+ var Bx = il("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-[var(--apcrda-color-border-strong)] shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-55 data-[state=checked]:bg-[var(--apcrda-color-primary)]", {
11275
11300
  variants: { size: {
11276
11301
  sm: "h-5 w-9",
11277
11302
  md: "h-6 w-11",
11278
11303
  lg: "h-7 w-12"
11279
11304
  } },
11280
11305
  defaultVariants: { size: "md" }
11281
- }), Bx = {
11306
+ }), Vx = {
11282
11307
  sm: "h-4 w-4 data-[state=checked]:translate-x-4",
11283
11308
  md: "h-5 w-5 data-[state=checked]:translate-x-5",
11284
11309
  lg: "h-6 w-6 data-[state=checked]:translate-x-5"
11285
- }, Vx = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(Mx, {
11310
+ }, Hx = C(({ className: t, size: n = "md", loading: r = !1, disabled: i = !1, ...a }, o) => /* @__PURE__ */ N(Nx, {
11286
11311
  ref: o,
11287
- className: e(zx({ size: n }), t),
11312
+ className: e(Bx({ size: n }), t),
11288
11313
  disabled: i || r,
11289
11314
  "aria-busy": r || void 0,
11290
11315
  ...a,
11291
- children: /* @__PURE__ */ N(Px, {
11292
- className: e("pointer-events-none flex translate-x-0.5 items-center justify-center rounded-full bg-white text-[var(--apcrda-color-primary)] shadow transition-transform", Bx[n]),
11316
+ children: /* @__PURE__ */ N(Fx, {
11317
+ className: e("pointer-events-none flex translate-x-0.5 items-center justify-center rounded-full bg-white text-[var(--apcrda-color-primary)] shadow transition-transform", Vx[n]),
11293
11318
  children: r ? /* @__PURE__ */ N(en, {
11294
11319
  "aria-hidden": "true",
11295
11320
  className: "h-3 w-3 animate-spin"
11296
11321
  }) : null
11297
11322
  })
11298
11323
  }));
11299
- Vx.displayName = "Switch";
11324
+ Hx.displayName = "Switch";
11300
11325
  //#endregion
11301
11326
  //#region node_modules/@tanstack/table-core/build/lib/index.mjs
11302
- function Hx(e, t) {
11327
+ function Ux(e, t) {
11303
11328
  return typeof e == "function" ? e(t) : e;
11304
11329
  }
11305
- function Ux(e, t) {
11330
+ function Wx(e, t) {
11306
11331
  return (n) => {
11307
11332
  t.setState((t) => ({
11308
11333
  ...t,
11309
- [e]: Hx(n, t[e])
11334
+ [e]: Ux(n, t[e])
11310
11335
  }));
11311
11336
  };
11312
11337
  }
11313
- function Wx(e) {
11338
+ function Gx(e) {
11314
11339
  return e instanceof Function;
11315
11340
  }
11316
- function Gx(e) {
11341
+ function Kx(e) {
11317
11342
  return Array.isArray(e) && e.every((e) => typeof e == "number");
11318
11343
  }
11319
- function Kx(e, t) {
11344
+ function qx(e, t) {
11320
11345
  let n = [], r = (e) => {
11321
11346
  e.forEach((e) => {
11322
11347
  n.push(e);
@@ -11355,7 +11380,7 @@ function $(e, t, n, r) {
11355
11380
  onChange: r
11356
11381
  };
11357
11382
  }
11358
- function qx(e, t, n, r) {
11383
+ function Jx(e, t, n, r) {
11359
11384
  let i = {
11360
11385
  id: `${t.id}_${n.id}`,
11361
11386
  row: t,
@@ -11380,7 +11405,7 @@ function qx(e, t, n, r) {
11380
11405
  r.createCell == null || r.createCell(i, n, t, e);
11381
11406
  }, {}), i;
11382
11407
  }
11383
- function Jx(e, t, n, r) {
11408
+ function Yx(e, t, n, r) {
11384
11409
  let i = {
11385
11410
  ...e._getDefaultColumnDef(),
11386
11411
  ...t
@@ -11406,8 +11431,8 @@ function Jx(e, t, n, r) {
11406
11431
  for (let t of e._features) t.createColumn == null || t.createColumn(c, e);
11407
11432
  return c;
11408
11433
  }
11409
- var Yx = "debugHeaders";
11410
- function Xx(e, t, n) {
11434
+ var Xx = "debugHeaders";
11435
+ function Zx(e, t, n) {
11411
11436
  let r = {
11412
11437
  id: n.id ?? t.id,
11413
11438
  column: t,
@@ -11435,7 +11460,7 @@ function Xx(e, t, n) {
11435
11460
  t.createHeader == null || t.createHeader(r, e);
11436
11461
  }), r;
11437
11462
  }
11438
- var Zx = { createTable: (e) => {
11463
+ var Qx = { createTable: (e) => {
11439
11464
  e.getHeaderGroups = Q(() => [
11440
11465
  e.getAllColumns(),
11441
11466
  e.getVisibleLeafColumns(),
@@ -11443,34 +11468,34 @@ var Zx = { createTable: (e) => {
11443
11468
  e.getState().columnPinning.right
11444
11469
  ], (t, n, r, i) => {
11445
11470
  let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
11446
- return Qx(t, [
11471
+ return $x(t, [
11447
11472
  ...a,
11448
11473
  ...s,
11449
11474
  ...o
11450
11475
  ], e);
11451
- }, $(e.options, Yx, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
11476
+ }, $(e.options, Xx, "getHeaderGroups")), e.getCenterHeaderGroups = Q(() => [
11452
11477
  e.getAllColumns(),
11453
11478
  e.getVisibleLeafColumns(),
11454
11479
  e.getState().columnPinning.left,
11455
11480
  e.getState().columnPinning.right
11456
- ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), Qx(t, n, e, "center")), $(e.options, Yx, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
11481
+ ], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), $x(t, n, e, "center")), $(e.options, Xx, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Q(() => [
11457
11482
  e.getAllColumns(),
11458
11483
  e.getVisibleLeafColumns(),
11459
11484
  e.getState().columnPinning.left
11460
- ], (t, n, r) => Qx(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, Yx, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
11485
+ ], (t, n, r) => $x(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), $(e.options, Xx, "getLeftHeaderGroups")), e.getRightHeaderGroups = Q(() => [
11461
11486
  e.getAllColumns(),
11462
11487
  e.getVisibleLeafColumns(),
11463
11488
  e.getState().columnPinning.right
11464
- ], (t, n, r) => Qx(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, Yx, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, Yx, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, Yx, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, Yx, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, Yx, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Yx, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Yx, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Yx, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Yx, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
11489
+ ], (t, n, r) => $x(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), $(e.options, Xx, "getRightHeaderGroups")), e.getFooterGroups = Q(() => [e.getHeaderGroups()], (e) => [...e].reverse(), $(e.options, Xx, "getFooterGroups")), e.getLeftFooterGroups = Q(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), $(e.options, Xx, "getLeftFooterGroups")), e.getCenterFooterGroups = Q(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), $(e.options, Xx, "getCenterFooterGroups")), e.getRightFooterGroups = Q(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), $(e.options, Xx, "getRightFooterGroups")), e.getFlatHeaders = Q(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Xx, "getFlatHeaders")), e.getLeftFlatHeaders = Q(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Xx, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Q(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Xx, "getCenterFlatHeaders")), e.getRightFlatHeaders = Q(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), $(e.options, Xx, "getRightFlatHeaders")), e.getCenterLeafHeaders = Q(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
11465
11490
  var t;
11466
11491
  return !((t = e.subHeaders) != null && t.length);
11467
- }), $(e.options, Yx, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
11492
+ }), $(e.options, Xx, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Q(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
11468
11493
  var t;
11469
11494
  return !((t = e.subHeaders) != null && t.length);
11470
- }), $(e.options, Yx, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
11495
+ }), $(e.options, Xx, "getLeftLeafHeaders")), e.getRightLeafHeaders = Q(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
11471
11496
  var t;
11472
11497
  return !((t = e.subHeaders) != null && t.length);
11473
- }), $(e.options, Yx, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
11498
+ }), $(e.options, Xx, "getRightLeafHeaders")), e.getLeafHeaders = Q(() => [
11474
11499
  e.getLeftHeaderGroups(),
11475
11500
  e.getCenterHeaderGroups(),
11476
11501
  e.getRightHeaderGroups()
@@ -11478,9 +11503,9 @@ var Zx = { createTable: (e) => {
11478
11503
  ...e[0]?.headers ?? [],
11479
11504
  ...t[0]?.headers ?? [],
11480
11505
  ...n[0]?.headers ?? []
11481
- ].map((e) => e.getLeafHeaders()).flat(), $(e.options, Yx, "getLeafHeaders"));
11506
+ ].map((e) => e.getLeafHeaders()).flat(), $(e.options, Xx, "getLeafHeaders"));
11482
11507
  } };
11483
- function Qx(e, t, n, r) {
11508
+ function $x(e, t, n, r) {
11484
11509
  let i = 0, a = function(e, t) {
11485
11510
  t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
11486
11511
  var n;
@@ -11498,7 +11523,7 @@ function Qx(e, t, n, r) {
11498
11523
  let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
11499
11524
  if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
11500
11525
  else {
11501
- let i = Xx(n, c, {
11526
+ let i = Zx(n, c, {
11502
11527
  id: [
11503
11528
  r,
11504
11529
  t,
@@ -11515,7 +11540,7 @@ function Qx(e, t, n, r) {
11515
11540
  i.headers.push(e), e.headerGroup = i;
11516
11541
  }), o.push(i), t > 0 && s(a, t - 1);
11517
11542
  };
11518
- s(t.map((e, t) => Xx(n, e, {
11543
+ s(t.map((e, t) => Zx(n, e, {
11519
11544
  depth: i,
11520
11545
  index: t
11521
11546
  })), i - 1), o.reverse();
@@ -11533,7 +11558,7 @@ function Qx(e, t, n, r) {
11533
11558
  });
11534
11559
  return c(o[0]?.headers ?? []), o;
11535
11560
  }
11536
- var $x = (e, t, n, r, i, a, o) => {
11561
+ var eS = (e, t, n, r, i, a, o) => {
11537
11562
  let s = {
11538
11563
  id: t,
11539
11564
  index: r,
@@ -11554,7 +11579,7 @@ var $x = (e, t, n, r, i, a, o) => {
11554
11579
  },
11555
11580
  renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
11556
11581
  subRows: a ?? [],
11557
- getLeafRows: () => Kx(s.subRows, (e) => e.subRows),
11582
+ getLeafRows: () => qx(s.subRows, (e) => e.subRows),
11558
11583
  getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
11559
11584
  getParentRows: () => {
11560
11585
  let e = [], t = s;
@@ -11565,7 +11590,7 @@ var $x = (e, t, n, r, i, a, o) => {
11565
11590
  }
11566
11591
  return e.reverse();
11567
11592
  },
11568
- getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => qx(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
11593
+ getAllCells: Q(() => [e.getAllLeafColumns()], (t) => t.map((t) => Jx(e, s, t, t.id)), $(e.options, "debugRows", "getAllCells")),
11569
11594
  _getAllCellsByColumnId: Q(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), $(e.options, "debugRows", "getAllCellsByColumnId"))
11570
11595
  };
11571
11596
  for (let t = 0; t < e._features.length; t++) {
@@ -11573,87 +11598,87 @@ var $x = (e, t, n, r, i, a, o) => {
11573
11598
  n == null || n.createRow == null || n.createRow(s, e);
11574
11599
  }
11575
11600
  return s;
11576
- }, eS = { createColumn: (e, t) => {
11601
+ }, tS = { createColumn: (e, t) => {
11577
11602
  e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
11578
11603
  if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
11579
11604
  };
11580
- } }, tS = (e, t, n) => {
11605
+ } }, nS = (e, t, n) => {
11581
11606
  var r, i;
11582
11607
  let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
11583
11608
  return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
11584
11609
  };
11585
- tS.autoRemove = (e) => dS(e);
11586
- var nS = (e, t, n) => {
11610
+ nS.autoRemove = (e) => fS(e);
11611
+ var rS = (e, t, n) => {
11587
11612
  var r;
11588
11613
  return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
11589
11614
  };
11590
- nS.autoRemove = (e) => dS(e);
11591
- var rS = (e, t, n) => {
11615
+ rS.autoRemove = (e) => fS(e);
11616
+ var iS = (e, t, n) => {
11592
11617
  var r;
11593
11618
  return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
11594
11619
  };
11595
- rS.autoRemove = (e) => dS(e);
11596
- var iS = (e, t, n) => e.getValue(t)?.includes(n);
11597
- iS.autoRemove = (e) => dS(e);
11598
- var aS = (e, t, n) => !n.some((n) => {
11620
+ iS.autoRemove = (e) => fS(e);
11621
+ var aS = (e, t, n) => e.getValue(t)?.includes(n);
11622
+ aS.autoRemove = (e) => fS(e);
11623
+ var oS = (e, t, n) => !n.some((n) => {
11599
11624
  var r;
11600
11625
  return !((r = e.getValue(t)) != null && r.includes(n));
11601
11626
  });
11602
- aS.autoRemove = (e) => dS(e) || !(e != null && e.length);
11603
- var oS = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
11604
- oS.autoRemove = (e) => dS(e) || !(e != null && e.length);
11605
- var sS = (e, t, n) => e.getValue(t) === n;
11606
- sS.autoRemove = (e) => dS(e);
11607
- var cS = (e, t, n) => e.getValue(t) == n;
11608
- cS.autoRemove = (e) => dS(e);
11609
- var lS = (e, t, n) => {
11627
+ oS.autoRemove = (e) => fS(e) || !(e != null && e.length);
11628
+ var sS = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
11629
+ sS.autoRemove = (e) => fS(e) || !(e != null && e.length);
11630
+ var cS = (e, t, n) => e.getValue(t) === n;
11631
+ cS.autoRemove = (e) => fS(e);
11632
+ var lS = (e, t, n) => e.getValue(t) == n;
11633
+ lS.autoRemove = (e) => fS(e);
11634
+ var uS = (e, t, n) => {
11610
11635
  let [r, i] = n, a = e.getValue(t);
11611
11636
  return a >= r && a <= i;
11612
11637
  };
11613
- lS.resolveFilterValue = (e) => {
11638
+ uS.resolveFilterValue = (e) => {
11614
11639
  let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
11615
11640
  if (a > o) {
11616
11641
  let e = a;
11617
11642
  a = o, o = e;
11618
11643
  }
11619
11644
  return [a, o];
11620
- }, lS.autoRemove = (e) => dS(e) || dS(e[0]) && dS(e[1]);
11621
- var uS = {
11622
- includesString: tS,
11623
- includesStringSensitive: nS,
11624
- equalsString: rS,
11625
- arrIncludes: iS,
11626
- arrIncludesAll: aS,
11627
- arrIncludesSome: oS,
11628
- equals: sS,
11629
- weakEquals: cS,
11630
- inNumberRange: lS
11645
+ }, uS.autoRemove = (e) => fS(e) || fS(e[0]) && fS(e[1]);
11646
+ var dS = {
11647
+ includesString: nS,
11648
+ includesStringSensitive: rS,
11649
+ equalsString: iS,
11650
+ arrIncludes: aS,
11651
+ arrIncludesAll: oS,
11652
+ arrIncludesSome: sS,
11653
+ equals: cS,
11654
+ weakEquals: lS,
11655
+ inNumberRange: uS
11631
11656
  };
11632
- function dS(e) {
11657
+ function fS(e) {
11633
11658
  return e == null || e === "";
11634
11659
  }
11635
- var fS = {
11660
+ var pS = {
11636
11661
  getDefaultColumnDef: () => ({ filterFn: "auto" }),
11637
11662
  getInitialState: (e) => ({
11638
11663
  columnFilters: [],
11639
11664
  ...e
11640
11665
  }),
11641
11666
  getDefaultOptions: (e) => ({
11642
- onColumnFiltersChange: Ux("columnFilters", e),
11667
+ onColumnFiltersChange: Wx("columnFilters", e),
11643
11668
  filterFromLeafRows: !1,
11644
11669
  maxLeafRowFilterDepth: 100
11645
11670
  }),
11646
11671
  createColumn: (e, t) => {
11647
11672
  e.getAutoFilterFn = () => {
11648
11673
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
11649
- return typeof n == "string" ? uS.includesString : typeof n == "number" ? uS.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? uS.equals : Array.isArray(n) ? uS.arrIncludes : uS.weakEquals;
11650
- }, e.getFilterFn = () => Wx(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? uS[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
11674
+ return typeof n == "string" ? dS.includesString : typeof n == "number" ? dS.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? dS.equals : Array.isArray(n) ? dS.arrIncludes : dS.weakEquals;
11675
+ }, e.getFilterFn = () => Gx(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? dS[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
11651
11676
  var n;
11652
11677
  return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
11653
11678
  }, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
11654
11679
  t.setColumnFilters((t) => {
11655
- let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Hx(n, i ? i.value : void 0);
11656
- if (pS(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
11680
+ let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = Ux(n, i ? i.value : void 0);
11681
+ if (mS(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
11657
11682
  let o = {
11658
11683
  id: e.id,
11659
11684
  value: a
@@ -11668,19 +11693,19 @@ var fS = {
11668
11693
  createTable: (e) => {
11669
11694
  e.setColumnFilters = (t) => {
11670
11695
  let n = e.getAllLeafColumns();
11671
- e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Hx(t, e)?.filter((e) => {
11696
+ e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => Ux(t, e)?.filter((e) => {
11672
11697
  let t = n.find((t) => t.id === e.id);
11673
- return !(t && pS(t.getFilterFn(), e.value, t));
11698
+ return !(t && mS(t.getFilterFn(), e.value, t));
11674
11699
  }));
11675
11700
  }, e.resetColumnFilters = (t) => {
11676
11701
  e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
11677
11702
  }, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
11678
11703
  }
11679
11704
  };
11680
- function pS(e, t, n) {
11705
+ function mS(e, t, n) {
11681
11706
  return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
11682
11707
  }
11683
- var mS = {
11708
+ var hS = {
11684
11709
  sum: (e, t, n) => n.reduce((t, n) => {
11685
11710
  let r = n.getValue(e);
11686
11711
  return t + (typeof r == "number" ? r : 0);
@@ -11716,7 +11741,7 @@ var mS = {
11716
11741
  median: (e, t) => {
11717
11742
  if (!t.length) return;
11718
11743
  let n = t.map((t) => t.getValue(e));
11719
- if (!Gx(n)) return;
11744
+ if (!Kx(n)) return;
11720
11745
  if (n.length === 1) return n[0];
11721
11746
  let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
11722
11747
  return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
@@ -11724,7 +11749,7 @@ var mS = {
11724
11749
  unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
11725
11750
  uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
11726
11751
  count: (e, t) => t.length
11727
- }, hS = {
11752
+ }, gS = {
11728
11753
  getDefaultColumnDef: () => ({
11729
11754
  aggregatedCell: (e) => {
11730
11755
  var t;
@@ -11737,7 +11762,7 @@ var mS = {
11737
11762
  ...e
11738
11763
  }),
11739
11764
  getDefaultOptions: (e) => ({
11740
- onGroupingChange: Ux("grouping", e),
11765
+ onGroupingChange: Wx("grouping", e),
11741
11766
  groupedColumnMode: "reorder"
11742
11767
  }),
11743
11768
  createColumn: (e, t) => {
@@ -11750,11 +11775,11 @@ var mS = {
11750
11775
  };
11751
11776
  }, e.getAutoAggregationFn = () => {
11752
11777
  let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
11753
- if (typeof n == "number") return mS.sum;
11754
- if (Object.prototype.toString.call(n) === "[object Date]") return mS.extent;
11778
+ if (typeof n == "number") return hS.sum;
11779
+ if (Object.prototype.toString.call(n) === "[object Date]") return hS.extent;
11755
11780
  }, e.getAggregationFn = () => {
11756
11781
  if (!e) throw Error();
11757
- return Wx(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? mS[e.columnDef.aggregationFn];
11782
+ return Gx(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? hS[e.columnDef.aggregationFn];
11758
11783
  };
11759
11784
  },
11760
11785
  createTable: (e) => {
@@ -11776,20 +11801,20 @@ var mS = {
11776
11801
  };
11777
11802
  }
11778
11803
  };
11779
- function gS(e, t, n) {
11804
+ function _S(e, t, n) {
11780
11805
  if (!(t != null && t.length) || !n) return e;
11781
11806
  let r = e.filter((e) => !t.includes(e.id));
11782
11807
  return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
11783
11808
  }
11784
- var _S = {
11809
+ var vS = {
11785
11810
  getInitialState: (e) => ({
11786
11811
  columnOrder: [],
11787
11812
  ...e
11788
11813
  }),
11789
- getDefaultOptions: (e) => ({ onColumnOrderChange: Ux("columnOrder", e) }),
11814
+ getDefaultOptions: (e) => ({ onColumnOrderChange: Wx("columnOrder", e) }),
11790
11815
  createColumn: (e, t) => {
11791
- e.getIndex = Q((e) => [OS(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => OS(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
11792
- let r = OS(t, n);
11816
+ e.getIndex = Q((e) => [kS(t, e)], (t) => t.findIndex((t) => t.id === e.id), $(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => kS(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
11817
+ let r = kS(t, n);
11793
11818
  return r[r.length - 1]?.id === e.id;
11794
11819
  };
11795
11820
  },
@@ -11811,18 +11836,18 @@ var _S = {
11811
11836
  }
11812
11837
  i = [...i, ...n];
11813
11838
  }
11814
- return gS(i, t, n);
11839
+ return _S(i, t, n);
11815
11840
  }, $(e.options, "debugTable", "_getOrderColumnsFn"));
11816
11841
  }
11817
- }, vS = () => ({
11842
+ }, yS = () => ({
11818
11843
  left: [],
11819
11844
  right: []
11820
- }), yS = {
11845
+ }), bS = {
11821
11846
  getInitialState: (e) => ({
11822
- columnPinning: vS(),
11847
+ columnPinning: yS(),
11823
11848
  ...e
11824
11849
  }),
11825
- getDefaultOptions: (e) => ({ onColumnPinningChange: Ux("columnPinning", e) }),
11850
+ getDefaultOptions: (e) => ({ onColumnPinningChange: Wx("columnPinning", e) }),
11826
11851
  createColumn: (e, t) => {
11827
11852
  e.pin = (n) => {
11828
11853
  let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
@@ -11862,7 +11887,7 @@ var _S = {
11862
11887
  })), $(t.options, "debugRows", "getRightVisibleCells"));
11863
11888
  },
11864
11889
  createTable: (e) => {
11865
- e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? vS() : e.initialState?.columnPinning ?? vS()), e.getIsSomeColumnsPinned = (t) => {
11890
+ e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? yS() : e.initialState?.columnPinning ?? yS()), e.getIsSomeColumnsPinned = (t) => {
11866
11891
  let n = e.getState().columnPinning;
11867
11892
  return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
11868
11893
  }, e.getLeftLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Q(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), $(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Q(() => [
@@ -11875,44 +11900,44 @@ var _S = {
11875
11900
  }, $(e.options, "debugColumns", "getCenterLeafColumns"));
11876
11901
  }
11877
11902
  };
11878
- function bS(e) {
11903
+ function xS(e) {
11879
11904
  return e || (typeof document < "u" ? document : null);
11880
11905
  }
11881
- var xS = {
11906
+ var SS = {
11882
11907
  size: 150,
11883
11908
  minSize: 20,
11884
11909
  maxSize: 2 ** 53 - 1
11885
- }, SS = () => ({
11910
+ }, CS = () => ({
11886
11911
  startOffset: null,
11887
11912
  startSize: null,
11888
11913
  deltaOffset: null,
11889
11914
  deltaPercentage: null,
11890
11915
  isResizingColumn: !1,
11891
11916
  columnSizingStart: []
11892
- }), CS = {
11893
- getDefaultColumnDef: () => xS,
11917
+ }), wS = {
11918
+ getDefaultColumnDef: () => SS,
11894
11919
  getInitialState: (e) => ({
11895
11920
  columnSizing: {},
11896
- columnSizingInfo: SS(),
11921
+ columnSizingInfo: CS(),
11897
11922
  ...e
11898
11923
  }),
11899
11924
  getDefaultOptions: (e) => ({
11900
11925
  columnResizeMode: "onEnd",
11901
11926
  columnResizeDirection: "ltr",
11902
- onColumnSizingChange: Ux("columnSizing", e),
11903
- onColumnSizingInfoChange: Ux("columnSizingInfo", e)
11927
+ onColumnSizingChange: Wx("columnSizing", e),
11928
+ onColumnSizingInfoChange: Wx("columnSizingInfo", e)
11904
11929
  }),
11905
11930
  createColumn: (e, t) => {
11906
11931
  e.getSize = () => {
11907
11932
  let n = t.getState().columnSizing[e.id];
11908
- return Math.min(Math.max(e.columnDef.minSize ?? xS.minSize, n ?? e.columnDef.size ?? xS.size), e.columnDef.maxSize ?? xS.maxSize);
11933
+ return Math.min(Math.max(e.columnDef.minSize ?? SS.minSize, n ?? e.columnDef.size ?? SS.size), e.columnDef.maxSize ?? SS.maxSize);
11909
11934
  }, e.getStart = Q((e) => [
11910
11935
  e,
11911
- OS(t, e),
11936
+ kS(t, e),
11912
11937
  t.getState().columnSizing
11913
11938
  ], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getStart")), e.getAfter = Q((e) => [
11914
11939
  e,
11915
- OS(t, e),
11940
+ kS(t, e),
11916
11941
  t.getState().columnSizing
11917
11942
  ], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), $(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
11918
11943
  t.setColumnSizing((t) => {
@@ -11936,8 +11961,8 @@ var xS = {
11936
11961
  }, e.getResizeHandler = (n) => {
11937
11962
  let r = t.getColumn(e.column.id), i = r?.getCanResize();
11938
11963
  return (a) => {
11939
- if (!r || !i || (a.persist == null || a.persist(), ES(a) && a.touches && a.touches.length > 1)) return;
11940
- let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = ES(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
11964
+ if (!r || !i || (a.persist == null || a.persist(), DS(a) && a.touches && a.touches.length > 1)) return;
11965
+ let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = DS(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
11941
11966
  typeof n == "number" && (t.setColumnSizingInfo((e) => {
11942
11967
  let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
11943
11968
  return e.columnSizingStart.forEach((e) => {
@@ -11962,7 +11987,7 @@ var xS = {
11962
11987
  deltaPercentage: null,
11963
11988
  columnSizingStart: []
11964
11989
  }));
11965
- }, p = bS(n), m = {
11990
+ }, p = xS(n), m = {
11966
11991
  moveHandler: (e) => d(e.clientX),
11967
11992
  upHandler: (e) => {
11968
11993
  p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
@@ -11972,8 +11997,8 @@ var xS = {
11972
11997
  upHandler: (e) => {
11973
11998
  p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
11974
11999
  }
11975
- }, g = TS() ? { passive: !1 } : !1;
11976
- ES(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
12000
+ }, g = ES() ? { passive: !1 } : !1;
12001
+ DS(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
11977
12002
  ...e,
11978
12003
  startOffset: c,
11979
12004
  startSize: o,
@@ -11989,12 +12014,12 @@ var xS = {
11989
12014
  e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
11990
12015
  e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
11991
12016
  }, e.resetHeaderSizeInfo = (t) => {
11992
- e.setColumnSizingInfo(t ? SS() : e.initialState.columnSizingInfo ?? SS());
12017
+ e.setColumnSizingInfo(t ? CS() : e.initialState.columnSizingInfo ?? CS());
11993
12018
  }, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
11994
12019
  }
11995
- }, wS = null;
11996
- function TS() {
11997
- if (typeof wS == "boolean") return wS;
12020
+ }, TS = null;
12021
+ function ES() {
12022
+ if (typeof TS == "boolean") return TS;
11998
12023
  let e = !1;
11999
12024
  try {
12000
12025
  let t = { get passive() {
@@ -12004,17 +12029,17 @@ function TS() {
12004
12029
  } catch {
12005
12030
  e = !1;
12006
12031
  }
12007
- return wS = e, wS;
12032
+ return TS = e, TS;
12008
12033
  }
12009
- function ES(e) {
12034
+ function DS(e) {
12010
12035
  return e.type === "touchstart";
12011
12036
  }
12012
- var DS = {
12037
+ var OS = {
12013
12038
  getInitialState: (e) => ({
12014
12039
  columnVisibility: {},
12015
12040
  ...e
12016
12041
  }),
12017
- getDefaultOptions: (e) => ({ onColumnVisibilityChange: Ux("columnVisibility", e) }),
12042
+ getDefaultOptions: (e) => ({ onColumnVisibilityChange: Wx("columnVisibility", e) }),
12018
12043
  createColumn: (e, t) => {
12019
12044
  e.toggleVisibility = (n) => {
12020
12045
  e.getCanHide() && t.setColumnVisibility((t) => ({
@@ -12053,20 +12078,20 @@ var DS = {
12053
12078
  };
12054
12079
  }
12055
12080
  };
12056
- function OS(e, t) {
12081
+ function kS(e, t) {
12057
12082
  return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
12058
12083
  }
12059
- var kS = { createTable: (e) => {
12084
+ var AS = { createTable: (e) => {
12060
12085
  e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
12061
12086
  if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
12062
12087
  };
12063
- } }, AS = {
12088
+ } }, jS = {
12064
12089
  getInitialState: (e) => ({
12065
12090
  globalFilter: void 0,
12066
12091
  ...e
12067
12092
  }),
12068
12093
  getDefaultOptions: (e) => ({
12069
- onGlobalFilterChange: Ux("globalFilter", e),
12094
+ onGlobalFilterChange: Wx("globalFilter", e),
12070
12095
  globalFilterFn: "auto",
12071
12096
  getColumnCanGlobalFilter: (t) => {
12072
12097
  var n;
@@ -12078,22 +12103,22 @@ var kS = { createTable: (e) => {
12078
12103
  e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
12079
12104
  },
12080
12105
  createTable: (e) => {
12081
- e.getGlobalAutoFilterFn = () => uS.includesString, e.getGlobalFilterFn = () => {
12106
+ e.getGlobalAutoFilterFn = () => dS.includesString, e.getGlobalFilterFn = () => {
12082
12107
  let { globalFilterFn: t } = e.options;
12083
- return Wx(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? uS[t];
12108
+ return Gx(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? dS[t];
12084
12109
  }, e.setGlobalFilter = (t) => {
12085
12110
  e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
12086
12111
  }, e.resetGlobalFilter = (t) => {
12087
12112
  e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
12088
12113
  };
12089
12114
  }
12090
- }, jS = {
12115
+ }, MS = {
12091
12116
  getInitialState: (e) => ({
12092
12117
  expanded: {},
12093
12118
  ...e
12094
12119
  }),
12095
12120
  getDefaultOptions: (e) => ({
12096
- onExpandedChange: Ux("expanded", e),
12121
+ onExpandedChange: Wx("expanded", e),
12097
12122
  paginateExpandedRows: !0
12098
12123
  }),
12099
12124
  createTable: (e) => {
@@ -12164,18 +12189,18 @@ var kS = { createTable: (e) => {
12164
12189
  };
12165
12190
  };
12166
12191
  }
12167
- }, MS = 0, NS = 10, PS = () => ({
12168
- pageIndex: MS,
12169
- pageSize: NS
12170
- }), FS = {
12192
+ }, NS = 0, PS = 10, FS = () => ({
12193
+ pageIndex: NS,
12194
+ pageSize: PS
12195
+ }), IS = {
12171
12196
  getInitialState: (e) => ({
12172
12197
  ...e,
12173
12198
  pagination: {
12174
- ...PS(),
12199
+ ...FS(),
12175
12200
  ...e?.pagination
12176
12201
  }
12177
12202
  }),
12178
- getDefaultOptions: (e) => ({ onPaginationChange: Ux("pagination", e) }),
12203
+ getDefaultOptions: (e) => ({ onPaginationChange: Wx("pagination", e) }),
12179
12204
  createTable: (e) => {
12180
12205
  let t = !1, n = !1;
12181
12206
  e._autoResetPageIndex = () => {
@@ -12191,11 +12216,11 @@ var kS = { createTable: (e) => {
12191
12216
  e.resetPageIndex(), n = !1;
12192
12217
  });
12193
12218
  }
12194
- }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Hx(t, e)), e.resetPagination = (t) => {
12195
- e.setPagination(t ? PS() : e.initialState.pagination ?? PS());
12219
+ }, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => Ux(t, e)), e.resetPagination = (t) => {
12220
+ e.setPagination(t ? FS() : e.initialState.pagination ?? FS());
12196
12221
  }, e.setPageIndex = (t) => {
12197
12222
  e.setPagination((n) => {
12198
- let r = Hx(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
12223
+ let r = Ux(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
12199
12224
  return r = Math.max(0, Math.min(r, i)), {
12200
12225
  ...n,
12201
12226
  pageIndex: r
@@ -12203,13 +12228,13 @@ var kS = { createTable: (e) => {
12203
12228
  });
12204
12229
  }, e.resetPageIndex = (t) => {
12205
12230
  var n;
12206
- e.setPageIndex(t ? MS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? MS);
12231
+ e.setPageIndex(t ? NS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? NS);
12207
12232
  }, e.resetPageSize = (t) => {
12208
12233
  var n;
12209
- e.setPageSize(t ? NS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? NS);
12234
+ e.setPageSize(t ? PS : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? PS);
12210
12235
  }, e.setPageSize = (t) => {
12211
12236
  e.setPagination((e) => {
12212
- let n = Math.max(1, Hx(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
12237
+ let n = Math.max(1, Ux(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
12213
12238
  return {
12214
12239
  ...e,
12215
12240
  pageIndex: i,
@@ -12217,7 +12242,7 @@ var kS = { createTable: (e) => {
12217
12242
  };
12218
12243
  });
12219
12244
  }, e.setPageCount = (t) => e.setPagination((n) => {
12220
- let r = Hx(t, e.options.pageCount ?? -1);
12245
+ let r = Ux(t, e.options.pageCount ?? -1);
12221
12246
  return typeof r == "number" && (r = Math.max(-1, r)), {
12222
12247
  ...n,
12223
12248
  pageCount: r
@@ -12230,15 +12255,15 @@ var kS = { createTable: (e) => {
12230
12255
  return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
12231
12256
  }, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
12232
12257
  }
12233
- }, IS = () => ({
12258
+ }, LS = () => ({
12234
12259
  top: [],
12235
12260
  bottom: []
12236
- }), LS = {
12261
+ }), RS = {
12237
12262
  getInitialState: (e) => ({
12238
- rowPinning: IS(),
12263
+ rowPinning: LS(),
12239
12264
  ...e
12240
12265
  }),
12241
- getDefaultOptions: (e) => ({ onRowPinningChange: Ux("rowPinning", e) }),
12266
+ getDefaultOptions: (e) => ({ onRowPinningChange: Wx("rowPinning", e) }),
12242
12267
  createRow: (e, t) => {
12243
12268
  e.pin = (n, r, i) => {
12244
12269
  let a = r ? e.getLeafRows().map((e) => {
@@ -12277,7 +12302,7 @@ var kS = { createTable: (e) => {
12277
12302
  };
12278
12303
  },
12279
12304
  createTable: (e) => {
12280
- e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? IS() : e.initialState?.rowPinning ?? IS()), e.getIsSomeRowsPinned = (t) => {
12305
+ e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? LS() : e.initialState?.rowPinning ?? LS()), e.getIsSomeRowsPinned = (t) => {
12281
12306
  let n = e.getState().rowPinning;
12282
12307
  return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
12283
12308
  }, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
@@ -12295,13 +12320,13 @@ var kS = { createTable: (e) => {
12295
12320
  return e.filter((e) => !r.has(e.id));
12296
12321
  }, $(e.options, "debugRows", "getCenterRows"));
12297
12322
  }
12298
- }, RS = {
12323
+ }, zS = {
12299
12324
  getInitialState: (e) => ({
12300
12325
  rowSelection: {},
12301
12326
  ...e
12302
12327
  }),
12303
12328
  getDefaultOptions: (e) => ({
12304
- onRowSelectionChange: Ux("rowSelection", e),
12329
+ onRowSelectionChange: Wx("rowSelection", e),
12305
12330
  enableRowSelection: !0,
12306
12331
  enableMultiRowSelection: !0,
12307
12332
  enableSubRowSelection: !0
@@ -12320,17 +12345,17 @@ var kS = { createTable: (e) => {
12320
12345
  }, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
12321
12346
  let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
12322
12347
  return e.getRowModel().rows.forEach((t) => {
12323
- zS(i, t.id, r, !0, e);
12348
+ BS(i, t.id, r, !0, e);
12324
12349
  }), i;
12325
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? BS(e, n) : {
12350
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Q(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? VS(e, n) : {
12326
12351
  rows: [],
12327
12352
  flatRows: [],
12328
12353
  rowsById: {}
12329
- }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? BS(e, n) : {
12354
+ }, $(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Q(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? VS(e, n) : {
12330
12355
  rows: [],
12331
12356
  flatRows: [],
12332
12357
  rowsById: {}
12333
- }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? BS(e, n) : {
12358
+ }, $(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Q(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? VS(e, n) : {
12334
12359
  rows: [],
12335
12360
  flatRows: [],
12336
12361
  rowsById: {}
@@ -12358,17 +12383,17 @@ var kS = { createTable: (e) => {
12358
12383
  t.setRowSelection((a) => {
12359
12384
  if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
12360
12385
  let o = { ...a };
12361
- return zS(o, e.id, n, r?.selectChildren ?? !0, t), o;
12386
+ return BS(o, e.id, n, r?.selectChildren ?? !0, t), o;
12362
12387
  });
12363
12388
  }, e.getIsSelected = () => {
12364
12389
  let { rowSelection: n } = t.getState();
12365
- return VS(e, n);
12390
+ return HS(e, n);
12366
12391
  }, e.getIsSomeSelected = () => {
12367
12392
  let { rowSelection: n } = t.getState();
12368
- return HS(e, n) === "some";
12393
+ return US(e, n) === "some";
12369
12394
  }, e.getIsAllSubRowsSelected = () => {
12370
12395
  let { rowSelection: n } = t.getState();
12371
- return HS(e, n) === "all";
12396
+ return US(e, n) === "all";
12372
12397
  }, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
12373
12398
  let t = e.getCanSelect();
12374
12399
  return (n) => {
@@ -12376,16 +12401,16 @@ var kS = { createTable: (e) => {
12376
12401
  };
12377
12402
  };
12378
12403
  }
12379
- }, zS = (e, t, n, r, i) => {
12404
+ }, BS = (e, t, n, r, i) => {
12380
12405
  var a;
12381
12406
  let o = i.getRow(t, !0);
12382
- n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => zS(e, t.id, n, r, i));
12407
+ n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => BS(e, t.id, n, r, i));
12383
12408
  };
12384
- function BS(e, t) {
12409
+ function VS(e, t) {
12385
12410
  let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
12386
12411
  return e.map((e) => {
12387
12412
  var t;
12388
- let o = VS(e, n);
12413
+ let o = HS(e, n);
12389
12414
  if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
12390
12415
  ...e,
12391
12416
  subRows: a(e.subRows)
@@ -12398,32 +12423,32 @@ function BS(e, t) {
12398
12423
  rowsById: i
12399
12424
  };
12400
12425
  }
12401
- function VS(e, t) {
12426
+ function HS(e, t) {
12402
12427
  return t[e.id] ?? !1;
12403
12428
  }
12404
- function HS(e, t, n) {
12429
+ function US(e, t, n) {
12405
12430
  var r;
12406
12431
  if (!((r = e.subRows) != null && r.length)) return !1;
12407
12432
  let i = !0, a = !1;
12408
12433
  return e.subRows.forEach((e) => {
12409
- if (!(a && !i) && (e.getCanSelect() && (VS(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
12410
- let n = HS(e, t);
12434
+ if (!(a && !i) && (e.getCanSelect() && (HS(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
12435
+ let n = US(e, t);
12411
12436
  n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
12412
12437
  }
12413
12438
  }), i ? "all" : a ? "some" : !1;
12414
12439
  }
12415
- var US = /([0-9]+)/gm, WS = (e, t, n) => QS(ZS(e.getValue(n)).toLowerCase(), ZS(t.getValue(n)).toLowerCase()), GS = (e, t, n) => QS(ZS(e.getValue(n)), ZS(t.getValue(n))), KS = (e, t, n) => XS(ZS(e.getValue(n)).toLowerCase(), ZS(t.getValue(n)).toLowerCase()), qS = (e, t, n) => XS(ZS(e.getValue(n)), ZS(t.getValue(n))), JS = (e, t, n) => {
12440
+ var WS = /([0-9]+)/gm, GS = (e, t, n) => $S(QS(e.getValue(n)).toLowerCase(), QS(t.getValue(n)).toLowerCase()), KS = (e, t, n) => $S(QS(e.getValue(n)), QS(t.getValue(n))), qS = (e, t, n) => ZS(QS(e.getValue(n)).toLowerCase(), QS(t.getValue(n)).toLowerCase()), JS = (e, t, n) => ZS(QS(e.getValue(n)), QS(t.getValue(n))), YS = (e, t, n) => {
12416
12441
  let r = e.getValue(n), i = t.getValue(n);
12417
12442
  return r > i ? 1 : r < i ? -1 : 0;
12418
- }, YS = (e, t, n) => XS(e.getValue(n), t.getValue(n));
12419
- function XS(e, t) {
12443
+ }, XS = (e, t, n) => ZS(e.getValue(n), t.getValue(n));
12444
+ function ZS(e, t) {
12420
12445
  return e === t ? 0 : e > t ? 1 : -1;
12421
12446
  }
12422
- function ZS(e) {
12447
+ function QS(e) {
12423
12448
  return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
12424
12449
  }
12425
- function QS(e, t) {
12426
- let n = e.split(US).filter(Boolean), r = t.split(US).filter(Boolean);
12450
+ function $S(e, t) {
12451
+ let n = e.split(WS).filter(Boolean), r = t.split(WS).filter(Boolean);
12427
12452
  for (; n.length && r.length;) {
12428
12453
  let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
12429
12454
  if (isNaN(o[0])) {
@@ -12437,22 +12462,22 @@ function QS(e, t) {
12437
12462
  }
12438
12463
  return n.length - r.length;
12439
12464
  }
12440
- var $S = {
12441
- alphanumeric: WS,
12442
- alphanumericCaseSensitive: GS,
12443
- text: KS,
12444
- textCaseSensitive: qS,
12445
- datetime: JS,
12446
- basic: YS
12447
- }, eC = [
12448
- Zx,
12449
- DS,
12450
- _S,
12451
- yS,
12452
- eS,
12453
- fS,
12454
- kS,
12465
+ var eC = {
12466
+ alphanumeric: GS,
12467
+ alphanumericCaseSensitive: KS,
12468
+ text: qS,
12469
+ textCaseSensitive: JS,
12470
+ datetime: YS,
12471
+ basic: XS
12472
+ }, tC = [
12473
+ Qx,
12474
+ OS,
12475
+ vS,
12476
+ bS,
12477
+ tS,
12478
+ pS,
12455
12479
  AS,
12480
+ jS,
12456
12481
  {
12457
12482
  getInitialState: (e) => ({
12458
12483
  sorting: [],
@@ -12463,7 +12488,7 @@ var $S = {
12463
12488
  sortUndefined: 1
12464
12489
  }),
12465
12490
  getDefaultOptions: (e) => ({
12466
- onSortingChange: Ux("sorting", e),
12491
+ onSortingChange: Wx("sorting", e),
12467
12492
  isMultiSortEvent: (e) => e.shiftKey
12468
12493
  }),
12469
12494
  createColumn: (e, t) => {
@@ -12471,13 +12496,13 @@ var $S = {
12471
12496
  let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
12472
12497
  for (let t of n) {
12473
12498
  let n = t?.getValue(e.id);
12474
- if (Object.prototype.toString.call(n) === "[object Date]") return $S.datetime;
12475
- if (typeof n == "string" && (r = !0, n.split(US).length > 1)) return $S.alphanumeric;
12499
+ if (Object.prototype.toString.call(n) === "[object Date]") return eC.datetime;
12500
+ if (typeof n == "string" && (r = !0, n.split(WS).length > 1)) return eC.alphanumeric;
12476
12501
  }
12477
- return r ? $S.text : $S.basic;
12502
+ return r ? eC.text : eC.basic;
12478
12503
  }, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
12479
12504
  if (!e) throw Error();
12480
- return Wx(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $S[e.columnDef.sortingFn];
12505
+ return Gx(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? eC[e.columnDef.sortingFn];
12481
12506
  }, e.toggleSorting = (n, r) => {
12482
12507
  let i = e.getNextSortingOrder(), a = n != null;
12483
12508
  t.setSorting((o) => {
@@ -12514,16 +12539,16 @@ var $S = {
12514
12539
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
12515
12540
  }
12516
12541
  },
12517
- hS,
12518
- jS,
12519
- FS,
12520
- LS,
12542
+ gS,
12543
+ MS,
12544
+ IS,
12521
12545
  RS,
12522
- CS
12546
+ zS,
12547
+ wS
12523
12548
  ];
12524
- function tC(e) {
12549
+ function nC(e) {
12525
12550
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
12526
- let t = [...eC, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
12551
+ let t = [...tC, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
12527
12552
  ...r,
12528
12553
  ...e
12529
12554
  }, a = { ...e.initialState ?? {} };
@@ -12549,7 +12574,7 @@ function tC(e) {
12549
12574
  n.setState(n.initialState);
12550
12575
  },
12551
12576
  setOptions: (e) => {
12552
- n.options = i(Hx(e, n.options));
12577
+ n.options = i(Ux(e, n.options));
12553
12578
  },
12554
12579
  getState: () => n.options.state,
12555
12580
  setState: (e) => {
@@ -12579,7 +12604,7 @@ function tC(e) {
12579
12604
  getAllColumns: Q(() => [n._getColumnDefs()], (e) => {
12580
12605
  let t = function(e, r, i) {
12581
12606
  return i === void 0 && (i = 0), e.map((e) => {
12582
- let a = Jx(n, e, i, r), o = e;
12607
+ let a = Yx(n, e, i, r), o = e;
12583
12608
  return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
12584
12609
  });
12585
12610
  };
@@ -12600,7 +12625,7 @@ function tC(e) {
12600
12625
  }
12601
12626
  return n;
12602
12627
  }
12603
- function nC() {
12628
+ function rC() {
12604
12629
  return (e) => Q(() => [e.options.data], (t) => {
12605
12630
  let n = {
12606
12631
  rows: [],
@@ -12610,7 +12635,7 @@ function nC() {
12610
12635
  i === void 0 && (i = 0);
12611
12636
  let o = [];
12612
12637
  for (let c = 0; c < t.length; c++) {
12613
- let l = $x(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
12638
+ let l = eS(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
12614
12639
  if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
12615
12640
  var s;
12616
12641
  l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
@@ -12621,7 +12646,7 @@ function nC() {
12621
12646
  return n.rows = r(t), n;
12622
12647
  }, $(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
12623
12648
  }
12624
- function rC(e) {
12649
+ function iC(e) {
12625
12650
  let t = [], n = (e) => {
12626
12651
  var r;
12627
12652
  t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
@@ -12632,16 +12657,16 @@ function rC(e) {
12632
12657
  rowsById: e.rowsById
12633
12658
  };
12634
12659
  }
12635
- function iC(e, t, n) {
12636
- return n.options.filterFromLeafRows ? aC(e, t, n) : oC(e, t, n);
12637
- }
12638
12660
  function aC(e, t, n) {
12661
+ return n.options.filterFromLeafRows ? oC(e, t, n) : sC(e, t, n);
12662
+ }
12663
+ function oC(e, t, n) {
12639
12664
  let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
12640
12665
  s === void 0 && (s = 0);
12641
12666
  let c = [];
12642
12667
  for (let u = 0; u < e.length; u++) {
12643
12668
  var l;
12644
- let d = e[u], f = $x(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12669
+ let d = e[u], f = eS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12645
12670
  if (f.columnFilters = d.columnFilters, (l = d.subRows) != null && l.length && s < a) {
12646
12671
  if (f.subRows = o(d.subRows, s + 1), d = f, t(d) && !f.subRows.length) {
12647
12672
  c.push(d), i[d.id] = d, r.push(d);
@@ -12661,7 +12686,7 @@ function aC(e, t, n) {
12661
12686
  rowsById: i
12662
12687
  };
12663
12688
  }
12664
- function oC(e, t, n) {
12689
+ function sC(e, t, n) {
12665
12690
  let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
12666
12691
  s === void 0 && (s = 0);
12667
12692
  let c = [];
@@ -12670,7 +12695,7 @@ function oC(e, t, n) {
12670
12695
  if (t(d)) {
12671
12696
  var l;
12672
12697
  if ((l = d.subRows) != null && l.length && s < a) {
12673
- let e = $x(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12698
+ let e = eS(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
12674
12699
  e.subRows = o(d.subRows, s + 1), d = e;
12675
12700
  }
12676
12701
  c.push(d), r.push(d), i[d.id] = d;
@@ -12684,7 +12709,7 @@ function oC(e, t, n) {
12684
12709
  rowsById: i
12685
12710
  };
12686
12711
  }
12687
- function sC() {
12712
+ function cC() {
12688
12713
  return (e) => Q(() => [
12689
12714
  e.getPreFilteredRowModel(),
12690
12715
  e.getState().columnFilters,
@@ -12741,13 +12766,13 @@ function sC() {
12741
12766
  n.columnFilters.__global__ !== !0 && (n.columnFilters.__global__ = !1);
12742
12767
  }
12743
12768
  }
12744
- return iC(t.rows, (e) => {
12769
+ return aC(t.rows, (e) => {
12745
12770
  for (let t = 0; t < o.length; t++) if (e.columnFilters[o[t]] === !1) return !1;
12746
12771
  return !0;
12747
12772
  }, e);
12748
12773
  }, $(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
12749
12774
  }
12750
- function cC(e) {
12775
+ function lC(e) {
12751
12776
  return (e) => Q(() => [
12752
12777
  e.getState().pagination,
12753
12778
  e.getPrePaginationRowModel(),
@@ -12761,7 +12786,7 @@ function cC(e) {
12761
12786
  rows: a,
12762
12787
  flatRows: o,
12763
12788
  rowsById: s
12764
- } : rC({
12789
+ } : iC({
12765
12790
  rows: a,
12766
12791
  flatRows: o,
12767
12792
  rowsById: s
@@ -12772,7 +12797,7 @@ function cC(e) {
12772
12797
  return u.rows.forEach(d), u;
12773
12798
  }, $(e.options, "debugTable", "getPaginationRowModel"));
12774
12799
  }
12775
- function lC() {
12800
+ function uC() {
12776
12801
  return (e) => Q(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
12777
12802
  if (!n.rows.length || !(t != null && t.length)) return n;
12778
12803
  let r = e.getState().sorting, i = [], a = r.filter((t) => e.getColumn(t.id)?.getCanSort()), o = {};
@@ -12814,28 +12839,28 @@ function lC() {
12814
12839
  }
12815
12840
  //#endregion
12816
12841
  //#region node_modules/@tanstack/react-table/build/lib/index.mjs
12817
- function uC(e, t) {
12818
- return e ? dC(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
12819
- }
12820
- function dC(e) {
12821
- return fC(e) || typeof e == "function" || pC(e);
12842
+ function dC(e, t) {
12843
+ return e ? fC(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
12822
12844
  }
12823
12845
  function fC(e) {
12846
+ return pC(e) || typeof e == "function" || mC(e);
12847
+ }
12848
+ function pC(e) {
12824
12849
  return typeof e == "function" && (() => {
12825
12850
  let t = Object.getPrototypeOf(e);
12826
12851
  return t.prototype && t.prototype.isReactComponent;
12827
12852
  })();
12828
12853
  }
12829
- function pC(e) {
12854
+ function mC(e) {
12830
12855
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
12831
12856
  }
12832
- function mC(e) {
12857
+ function hC(e) {
12833
12858
  let t = {
12834
12859
  state: {},
12835
12860
  onStateChange: () => {},
12836
12861
  renderFallbackValue: null,
12837
12862
  ...e
12838
- }, [n] = y.useState(() => ({ current: tC(t) })), [r, i] = y.useState(() => n.current.initialState);
12863
+ }, [n] = y.useState(() => ({ current: nC(t) })), [r, i] = y.useState(() => n.current.initialState);
12839
12864
  return n.current.setOptions((t) => ({
12840
12865
  ...t,
12841
12866
  ...e,
@@ -12850,57 +12875,57 @@ function mC(e) {
12850
12875
  }
12851
12876
  //#endregion
12852
12877
  //#region src/components/Table/Table.tsx
12853
- var hC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("table", {
12878
+ var gC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("table", {
12854
12879
  ref: r,
12855
12880
  className: e("w-full caption-bottom text-sm", t),
12856
12881
  ...n
12857
12882
  }));
12858
- hC.displayName = "Table";
12859
- var gC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("thead", {
12883
+ gC.displayName = "Table";
12884
+ var _C = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("thead", {
12860
12885
  ref: r,
12861
12886
  className: e("[&_tr]:border-b [&_tr]:border-[var(--apcrda-color-border)]", t),
12862
12887
  ...n
12863
12888
  }));
12864
- gC.displayName = "TableHeader";
12865
- var _C = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tbody", {
12889
+ _C.displayName = "TableHeader";
12890
+ var vC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tbody", {
12866
12891
  ref: r,
12867
12892
  className: e("[&_tr:last-child]:border-0", t),
12868
12893
  ...n
12869
12894
  }));
12870
- _C.displayName = "TableBody";
12871
- var vC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tfoot", {
12895
+ vC.displayName = "TableBody";
12896
+ var yC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tfoot", {
12872
12897
  ref: r,
12873
12898
  className: e("border-t border-[var(--apcrda-color-border)] bg-[var(--apcrda-color-surface-muted)] font-medium", t),
12874
12899
  ...n
12875
12900
  }));
12876
- vC.displayName = "TableFooter";
12877
- var yC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tr", {
12901
+ yC.displayName = "TableFooter";
12902
+ var bC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("tr", {
12878
12903
  ref: r,
12879
12904
  className: e("border-b border-[var(--apcrda-color-border)] transition-colors", "hover:bg-[var(--apcrda-color-surface-muted)]", "data-[state=selected]:bg-[var(--apcrda-color-primary)]/8", t),
12880
12905
  ...n
12881
12906
  }));
12882
- yC.displayName = "TableRow";
12883
- var bC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("th", {
12907
+ bC.displayName = "TableRow";
12908
+ var xC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("th", {
12884
12909
  ref: r,
12885
12910
  className: e("h-10 px-4 text-left align-middle text-xs font-semibold uppercase tracking-wide", "text-[var(--apcrda-color-muted)] bg-[var(--apcrda-color-surface-muted)]", "[&:has([role=checkbox])]:w-10 [&:has([role=checkbox])]:pr-0", t),
12886
12911
  ...n
12887
12912
  }));
12888
- bC.displayName = "TableHead";
12889
- var xC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("td", {
12913
+ xC.displayName = "TableHead";
12914
+ var SC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("td", {
12890
12915
  ref: r,
12891
12916
  className: e("px-4 py-3 align-middle text-[var(--apcrda-color-foreground)]", "[&:has([role=checkbox])]:w-10 [&:has([role=checkbox])]:pr-0", t),
12892
12917
  ...n
12893
12918
  }));
12894
- xC.displayName = "TableCell";
12895
- var SC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("caption", {
12919
+ SC.displayName = "TableCell";
12920
+ var CC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N("caption", {
12896
12921
  ref: r,
12897
12922
  className: e("mt-4 text-sm text-[var(--apcrda-color-muted)]", t),
12898
12923
  ...n
12899
12924
  }));
12900
- SC.displayName = "TableCaption";
12925
+ CC.displayName = "TableCaption";
12901
12926
  //#endregion
12902
12927
  //#region src/components/Table/DataTable.tsx
12903
- function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMessage: a = "No results found", emptyDescription: o, pageSize: s = 10, pageSizeOptions: c = [
12928
+ function wC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMessage: a = "No results found", emptyDescription: o, pageSize: s = 10, pageSizeOptions: c = [
12904
12929
  10,
12905
12930
  20,
12906
12931
  50,
@@ -12929,7 +12954,7 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
12929
12954
  u,
12930
12955
  C,
12931
12956
  n
12932
- ]), T = mC({
12957
+ ]), T = hC({
12933
12958
  data: t,
12934
12959
  columns: w,
12935
12960
  state: {
@@ -12952,10 +12977,10 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
12952
12977
  onPaginationChange: (e) => {
12953
12978
  S((t) => typeof e == "function" ? e(t) : e);
12954
12979
  },
12955
- getCoreRowModel: nC(),
12956
- getSortedRowModel: lC(),
12957
- getPaginationRowModel: cC(),
12958
- getFilteredRowModel: sC()
12980
+ getCoreRowModel: rC(),
12981
+ getSortedRowModel: uC(),
12982
+ getPaginationRowModel: lC(),
12983
+ getFilteredRowModel: cC()
12959
12984
  });
12960
12985
  E(() => {
12961
12986
  d?.(T.getSelectedRowModel().rows.map((e) => e.original));
@@ -12966,7 +12991,7 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
12966
12991
  children: [
12967
12992
  /* @__PURE__ */ P("div", {
12968
12993
  className: "flex items-center justify-between gap-4",
12969
- children: [/* @__PURE__ */ N(Rv, {
12994
+ children: [/* @__PURE__ */ N(Uv, {
12970
12995
  placeholder: "Search...",
12971
12996
  value: v,
12972
12997
  onChange: (e) => y(e.target.value),
@@ -12985,29 +13010,29 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
12985
13010
  }),
12986
13011
  /* @__PURE__ */ N("div", {
12987
13012
  className: "rounded-[var(--apcrda-radius-md)] border border-[var(--apcrda-color-border)] overflow-auto",
12988
- children: /* @__PURE__ */ P(hC, { children: [/* @__PURE__ */ N(gC, { children: T.getHeaderGroups().map((t) => /* @__PURE__ */ N(yC, {
13013
+ children: /* @__PURE__ */ P(gC, { children: [/* @__PURE__ */ N(_C, { children: T.getHeaderGroups().map((t) => /* @__PURE__ */ N(bC, {
12989
13014
  className: "hover:bg-transparent",
12990
13015
  children: t.headers.map((t) => {
12991
13016
  let n = t.column.getCanSort(), r = t.column.getIsSorted();
12992
- return /* @__PURE__ */ N(bC, {
13017
+ return /* @__PURE__ */ N(xC, {
12993
13018
  style: { width: t.column.columnDef.size },
12994
13019
  onClick: n ? t.column.getToggleSortingHandler() : void 0,
12995
13020
  className: e(n && "cursor-pointer hover:text-[var(--apcrda-color-foreground)]"),
12996
13021
  children: t.isPlaceholder ? null : /* @__PURE__ */ P("div", {
12997
13022
  className: "flex items-center gap-1.5",
12998
- children: [uC(t.column.columnDef.header, t.getContext()), n && /* @__PURE__ */ N("span", {
13023
+ children: [dC(t.column.columnDef.header, t.getContext()), n && /* @__PURE__ */ N("span", {
12999
13024
  className: "shrink-0",
13000
13025
  children: r === "asc" ? /* @__PURE__ */ N(Rt, { className: "h-3 w-3" }) : r === "desc" ? /* @__PURE__ */ N(It, { className: "h-3 w-3" }) : /* @__PURE__ */ N(Lt, { className: "h-3 w-3 opacity-40" })
13001
13026
  })]
13002
13027
  })
13003
13028
  }, t.id);
13004
13029
  })
13005
- }, t.id)) }), /* @__PURE__ */ N(_C, { children: r ? Array.from({ length: i }).map((e, t) => /* @__PURE__ */ N(yC, {
13030
+ }, t.id)) }), /* @__PURE__ */ N(vC, { children: r ? Array.from({ length: i }).map((e, t) => /* @__PURE__ */ N(bC, {
13006
13031
  className: "animate-pulse hover:bg-transparent",
13007
- children: w.map((e, t) => /* @__PURE__ */ N(xC, { children: /* @__PURE__ */ N("div", { className: "h-4 rounded bg-[var(--apcrda-color-surface-muted)]" }) }, t))
13008
- }, t)) : T.getRowModel().rows.length === 0 ? /* @__PURE__ */ N(yC, {
13032
+ children: w.map((e, t) => /* @__PURE__ */ N(SC, { children: /* @__PURE__ */ N("div", { className: "h-4 rounded bg-[var(--apcrda-color-surface-muted)]" }) }, t))
13033
+ }, t)) : T.getRowModel().rows.length === 0 ? /* @__PURE__ */ N(bC, {
13009
13034
  className: "hover:bg-transparent",
13010
- children: /* @__PURE__ */ P(xC, {
13035
+ children: /* @__PURE__ */ P(SC, {
13011
13036
  colSpan: w.length,
13012
13037
  className: "py-16 text-center",
13013
13038
  children: [/* @__PURE__ */ N("p", {
@@ -13018,11 +13043,11 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13018
13043
  children: o
13019
13044
  })]
13020
13045
  })
13021
- }) : T.getRowModel().rows.map((t) => /* @__PURE__ */ N(yC, {
13046
+ }) : T.getRowModel().rows.map((t) => /* @__PURE__ */ N(bC, {
13022
13047
  "data-state": t.getIsSelected() ? "selected" : void 0,
13023
13048
  onClick: f ? () => f(t.original) : void 0,
13024
13049
  className: e(f && "cursor-pointer"),
13025
- children: t.getVisibleCells().map((e) => /* @__PURE__ */ N(xC, { children: uC(e.column.columnDef.cell, e.getContext()) }, e.id))
13050
+ children: t.getVisibleCells().map((e) => /* @__PURE__ */ N(SC, { children: dC(e.column.columnDef.cell, e.getContext()) }, e.id))
13026
13051
  }, t.id)) })] })
13027
13052
  }),
13028
13053
  l && !r && /* @__PURE__ */ P("div", {
@@ -13030,7 +13055,7 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13030
13055
  children: [/* @__PURE__ */ N("p", {
13031
13056
  className: "text-sm text-[var(--apcrda-color-muted)] shrink-0",
13032
13057
  children: D === 0 ? "No results" : `Showing ${A}–${M} of ${D}`
13033
- }), O > 1 && /* @__PURE__ */ N(Xv, {
13058
+ }), O > 1 && /* @__PURE__ */ N(Zv, {
13034
13059
  page: b + 1,
13035
13060
  totalPages: O,
13036
13061
  onPageChange: (e) => S((t) => ({
@@ -13049,17 +13074,17 @@ function CC({ data: t, columns: n, loading: r = !1, loadingRows: i = 5, emptyMes
13049
13074
  ]
13050
13075
  });
13051
13076
  }
13052
- CC.displayName = "DataTable";
13077
+ wC.displayName = "DataTable";
13053
13078
  //#endregion
13054
13079
  //#region node_modules/@radix-ui/react-tabs/dist/index.mjs
13055
- var wC = "Tabs", [TC, EC] = L(wC, [ph]), DC = ph(), [OC, kC] = TC(wC), AC = y.forwardRef((e, t) => {
13080
+ var TC = "Tabs", [EC, DC] = L(TC, [ph]), OC = ph(), [kC, AC] = EC(TC), jC = y.forwardRef((e, t) => {
13056
13081
  let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: o = "horizontal", dir: s, activationMode: c = "automatic", ...l } = e, u = Ke(s), [d, f] = H({
13057
13082
  prop: r,
13058
13083
  onChange: i,
13059
13084
  defaultProp: a ?? "",
13060
- caller: wC
13085
+ caller: TC
13061
13086
  });
13062
- return /* @__PURE__ */ N(OC, {
13087
+ return /* @__PURE__ */ N(kC, {
13063
13088
  scope: n,
13064
13089
  baseId: G(),
13065
13090
  value: d,
@@ -13075,12 +13100,12 @@ var wC = "Tabs", [TC, EC] = L(wC, [ph]), DC = ph(), [OC, kC] = TC(wC), AC = y.fo
13075
13100
  })
13076
13101
  });
13077
13102
  });
13078
- AC.displayName = wC;
13079
- var jC = "TabsList", MC = y.forwardRef((e, t) => {
13080
- let { __scopeTabs: n, loop: r = !0, ...i } = e, a = kC(jC, n);
13103
+ jC.displayName = TC;
13104
+ var MC = "TabsList", NC = y.forwardRef((e, t) => {
13105
+ let { __scopeTabs: n, loop: r = !0, ...i } = e, a = AC(MC, n);
13081
13106
  return /* @__PURE__ */ N(Th, {
13082
13107
  asChild: !0,
13083
- ...DC(n),
13108
+ ...OC(n),
13084
13109
  orientation: a.orientation,
13085
13110
  dir: a.dir,
13086
13111
  loop: r,
@@ -13092,9 +13117,9 @@ var jC = "TabsList", MC = y.forwardRef((e, t) => {
13092
13117
  })
13093
13118
  });
13094
13119
  });
13095
- MC.displayName = jC;
13096
- var NC = "TabsTrigger", PC = y.forwardRef((e, t) => {
13097
- let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = kC(NC, n), s = DC(n), c = LC(o.baseId, r), l = RC(o.baseId, r), u = r === o.value;
13120
+ NC.displayName = MC;
13121
+ var PC = "TabsTrigger", FC = y.forwardRef((e, t) => {
13122
+ let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, o = AC(PC, n), s = OC(n), c = RC(o.baseId, r), l = zC(o.baseId, r), u = r === o.value;
13098
13123
  return /* @__PURE__ */ N(Eh, {
13099
13124
  asChild: !0,
13100
13125
  ...s,
@@ -13124,9 +13149,9 @@ var NC = "TabsTrigger", PC = y.forwardRef((e, t) => {
13124
13149
  })
13125
13150
  });
13126
13151
  });
13127
- PC.displayName = NC;
13128
- var FC = "TabsContent", IC = y.forwardRef((e, t) => {
13129
- let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = kC(FC, n), c = LC(s.baseId, r), l = RC(s.baseId, r), u = r === s.value, d = y.useRef(u);
13152
+ FC.displayName = PC;
13153
+ var IC = "TabsContent", LC = y.forwardRef((e, t) => {
13154
+ let { __scopeTabs: n, value: r, forceMount: i, children: a, ...o } = e, s = AC(IC, n), c = RC(s.baseId, r), l = zC(s.baseId, r), u = r === s.value, d = y.useRef(u);
13130
13155
  return y.useEffect(() => {
13131
13156
  let e = requestAnimationFrame(() => d.current = !1);
13132
13157
  return () => cancelAnimationFrame(e);
@@ -13150,41 +13175,41 @@ var FC = "TabsContent", IC = y.forwardRef((e, t) => {
13150
13175
  })
13151
13176
  });
13152
13177
  });
13153
- IC.displayName = FC;
13154
- function LC(e, t) {
13178
+ LC.displayName = IC;
13179
+ function RC(e, t) {
13155
13180
  return `${e}-trigger-${t}`;
13156
13181
  }
13157
- function RC(e, t) {
13182
+ function zC(e, t) {
13158
13183
  return `${e}-content-${t}`;
13159
13184
  }
13160
- var zC = AC, BC = MC, VC = PC, HC = IC, UC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(zC, {
13185
+ var BC = jC, VC = NC, HC = FC, UC = LC, WC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(BC, {
13161
13186
  ref: r,
13162
13187
  className: e("flex flex-col gap-2", t),
13163
13188
  ...n
13164
13189
  }));
13165
- UC.displayName = "Tabs";
13166
- var WC = C(({ className: t, variant: n = "line", size: r = "md", ...i }, a) => /* @__PURE__ */ N(BC, {
13190
+ WC.displayName = "Tabs";
13191
+ var GC = C(({ className: t, variant: n = "line", size: r = "md", ...i }, a) => /* @__PURE__ */ N(VC, {
13167
13192
  ref: a,
13168
13193
  className: e("inline-flex items-center", n === "line" && "border-b border-[var(--apcrda-color-border)] gap-0", n === "enclosed" && "rounded-[var(--apcrda-radius-md)] bg-[var(--apcrda-color-surface-muted)] p-1 gap-1", n === "pill" && "gap-1", r === "sm" && "text-xs", r === "md" && "text-sm", r === "lg" && "text-base", t),
13169
13194
  "data-variant": n,
13170
13195
  ...i
13171
13196
  }));
13172
- WC.displayName = "TabsList";
13173
- var GC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(VC, {
13197
+ GC.displayName = "TabsList";
13198
+ var KC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(HC, {
13174
13199
  ref: r,
13175
13200
  className: e("inline-flex items-center justify-center gap-1.5 whitespace-nowrap font-medium transition-colors duration-[var(--apcrda-motion-normal)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50", "[&[data-state=active]]:text-[var(--apcrda-color-primary)]", "[data-variant=line_&]:border-b-2 [data-variant=line_&]:border-transparent [data-variant=line_&]:px-4 [data-variant=line_&]:pb-2.5 [data-variant=line_&]:pt-2 [data-variant=line_&]:text-[var(--apcrda-color-muted)] [data-variant=line_&[data-state=active]]:border-[var(--apcrda-color-primary)] [data-variant=line_&[data-state=active]]:text-[var(--apcrda-color-primary)]", "[data-variant=enclosed_&]:rounded-[var(--apcrda-radius-sm)] [data-variant=enclosed_&]:px-3 [data-variant=enclosed_&]:py-1.5 [data-variant=enclosed_&]:text-[var(--apcrda-color-muted)] [data-variant=enclosed_&[data-state=active]]:bg-[var(--apcrda-color-surface)] [data-variant=enclosed_&[data-state=active]]:shadow-[var(--apcrda-shadow-sm)] [data-variant=enclosed_&[data-state=active]]:text-[var(--apcrda-color-foreground)]", "[data-variant=pill_&]:rounded-full [data-variant=pill_&]:px-4 [data-variant=pill_&]:py-1.5 [data-variant=pill_&]:text-[var(--apcrda-color-muted)] [data-variant=pill_&[data-state=active]]:bg-[var(--apcrda-color-primary)] [data-variant=pill_&[data-state=active]]:text-[var(--apcrda-color-primary-foreground)]", t),
13176
13201
  ...n
13177
13202
  }));
13178
- GC.displayName = "TabsTrigger";
13179
- var KC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(HC, {
13203
+ KC.displayName = "TabsTrigger";
13204
+ var qC = C(({ className: t, ...n }, r) => /* @__PURE__ */ N(UC, {
13180
13205
  ref: r,
13181
13206
  className: e("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] focus-visible:ring-offset-2", t),
13182
13207
  ...n
13183
13208
  }));
13184
- KC.displayName = "TabsContent";
13209
+ qC.displayName = "TabsContent";
13185
13210
  //#endregion
13186
13211
  //#region src/components/Textarea/Textarea.tsx
13187
- var qC = il("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
13212
+ var JC = il("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border bg-[var(--apcrda-color-surface)] text-[var(--apcrda-color-foreground)] shadow-sm transition-colors placeholder:text-[var(--apcrda-color-muted)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--apcrda-color-ring)] disabled:cursor-not-allowed disabled:opacity-55", {
13188
13213
  variants: {
13189
13214
  textareaSize: {
13190
13215
  sm: "px-3 py-2 text-xs",
@@ -13200,11 +13225,11 @@ var qC = il("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border b
13200
13225
  textareaSize: "md",
13201
13226
  error: !1
13202
13227
  }
13203
- }), JC = C(({ className: t, textareaSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, "aria-invalid": o, ...s }, c) => /* @__PURE__ */ P("span", {
13228
+ }), YC = C(({ className: t, textareaSize: n = "md", error: r = !1, loading: i = !1, disabled: a = !1, "aria-invalid": o, ...s }, c) => /* @__PURE__ */ P("span", {
13204
13229
  className: "relative block w-full",
13205
13230
  children: [/* @__PURE__ */ N("textarea", {
13206
13231
  ref: c,
13207
- className: e(qC({
13232
+ className: e(JC({
13208
13233
  textareaSize: n,
13209
13234
  error: r
13210
13235
  }), i && "pr-10", t),
@@ -13221,14 +13246,14 @@ var qC = il("min-h-24 w-full resize-y rounded-[var(--apcrda-radius-md)] border b
13221
13246
  })
13222
13247
  }) : null]
13223
13248
  }));
13224
- JC.displayName = "Textarea";
13249
+ YC.displayName = "Textarea";
13225
13250
  //#endregion
13226
13251
  //#region node_modules/@radix-ui/react-toast/dist/index.mjs
13227
- var YC = "ToastProvider", [XC, ZC, QC] = _e("Toast"), [$C, ew] = L("Toast", [QC]), [tw, nw] = $C(YC), rw = (e) => {
13252
+ var XC = "ToastProvider", [ZC, QC, $C] = _e("Toast"), [ew, tw] = L("Toast", [$C]), [nw, rw] = ew(XC), iw = (e) => {
13228
13253
  let { __scopeToast: t, label: n = "Notification", duration: r = 5e3, swipeDirection: i = "right", swipeThreshold: a = 50, announcerContainer: o, children: s } = e, [c, l] = y.useState(null), [u, d] = y.useState(0), f = y.useRef(!1), p = y.useRef(!1);
13229
- return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${YC}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ N(XC.Provider, {
13254
+ return n.trim() || console.error(`Invalid prop \`label\` supplied to \`${XC}\`. Expected non-empty \`string\`.`), /* @__PURE__ */ N(ZC.Provider, {
13230
13255
  scope: t,
13231
- children: /* @__PURE__ */ N(tw, {
13256
+ children: /* @__PURE__ */ N(nw, {
13232
13257
  scope: t,
13233
13258
  label: n,
13234
13259
  duration: r,
@@ -13246,9 +13271,9 @@ var YC = "ToastProvider", [XC, ZC, QC] = _e("Toast"), [$C, ew] = L("Toast", [QC]
13246
13271
  })
13247
13272
  });
13248
13273
  };
13249
- rw.displayName = YC;
13250
- var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.viewportResume", cw = y.forwardRef((e, t) => {
13251
- let { __scopeToast: n, hotkey: r = aw, label: i = "Notifications ({hotkey})", ...a } = e, o = nw(iw, n), s = ZC(n), c = y.useRef(null), l = y.useRef(null), u = y.useRef(null), d = y.useRef(null), f = z(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
13274
+ iw.displayName = XC;
13275
+ var aw = "ToastViewport", ow = ["F8"], sw = "toast.viewportPause", cw = "toast.viewportResume", lw = y.forwardRef((e, t) => {
13276
+ let { __scopeToast: n, hotkey: r = ow, label: i = "Notifications ({hotkey})", ...a } = e, o = rw(aw, n), s = QC(n), c = y.useRef(null), l = y.useRef(null), u = y.useRef(null), d = y.useRef(null), f = z(t, d, o.onViewportChange), p = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), m = o.toastCount > 0;
13252
13277
  y.useEffect(() => {
13253
13278
  let e = (e) => {
13254
13279
  r.length !== 0 && r.every((t) => e[t] || e.code === t) && d.current?.focus();
@@ -13259,12 +13284,12 @@ var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.v
13259
13284
  if (m && e && t) {
13260
13285
  let n = () => {
13261
13286
  if (!o.isClosePausedRef.current) {
13262
- let e = new CustomEvent(ow);
13287
+ let e = new CustomEvent(sw);
13263
13288
  t.dispatchEvent(e), o.isClosePausedRef.current = !0;
13264
13289
  }
13265
13290
  }, r = () => {
13266
13291
  if (o.isClosePausedRef.current) {
13267
- let e = new CustomEvent(sw);
13292
+ let e = new CustomEvent(cw);
13268
13293
  t.dispatchEvent(e), o.isClosePausedRef.current = !1;
13269
13294
  }
13270
13295
  }, i = (t) => {
@@ -13279,7 +13304,7 @@ var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.v
13279
13304
  }, [m, o.isClosePausedRef]);
13280
13305
  let h = y.useCallback(({ tabbingDirection: e }) => {
13281
13306
  let t = s().map((t) => {
13282
- let n = t.ref.current, r = [n, ...Fw(n)];
13307
+ let n = t.ref.current, r = [n, ...Iw(n)];
13283
13308
  return e === "forwards" ? r : r.reverse();
13284
13309
  });
13285
13310
  return (e === "forwards" ? t.reverse() : t).flat();
@@ -13296,7 +13321,7 @@ var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.v
13296
13321
  return;
13297
13322
  }
13298
13323
  let i = h({ tabbingDirection: r ? "backwards" : "forwards" }), a = i.findIndex((e) => e === n);
13299
- Iw(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
13324
+ Lw(i.slice(a + 1)) ? t.preventDefault() : r ? l.current?.focus() : u.current?.focus();
13300
13325
  }
13301
13326
  };
13302
13327
  return e.addEventListener("keydown", t), () => e.removeEventListener("keydown", t);
@@ -13308,13 +13333,13 @@ var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.v
13308
13333
  tabIndex: -1,
13309
13334
  style: { pointerEvents: m ? void 0 : "none" },
13310
13335
  children: [
13311
- m && /* @__PURE__ */ N(uw, {
13336
+ m && /* @__PURE__ */ N(dw, {
13312
13337
  ref: l,
13313
13338
  onFocusFromOutsideViewport: () => {
13314
- Iw(h({ tabbingDirection: "forwards" }));
13339
+ Lw(h({ tabbingDirection: "forwards" }));
13315
13340
  }
13316
13341
  }),
13317
- /* @__PURE__ */ N(XC.Slot, {
13342
+ /* @__PURE__ */ N(ZC.Slot, {
13318
13343
  scope: n,
13319
13344
  children: /* @__PURE__ */ N(U.ol, {
13320
13345
  tabIndex: -1,
@@ -13322,19 +13347,19 @@ var iw = "ToastViewport", aw = ["F8"], ow = "toast.viewportPause", sw = "toast.v
13322
13347
  ref: f
13323
13348
  })
13324
13349
  }),
13325
- m && /* @__PURE__ */ N(uw, {
13350
+ m && /* @__PURE__ */ N(dw, {
13326
13351
  ref: u,
13327
13352
  onFocusFromOutsideViewport: () => {
13328
- Iw(h({ tabbingDirection: "backwards" }));
13353
+ Lw(h({ tabbingDirection: "backwards" }));
13329
13354
  }
13330
13355
  })
13331
13356
  ]
13332
13357
  });
13333
13358
  });
13334
- cw.displayName = iw;
13335
- var lw = "ToastFocusProxy", uw = y.forwardRef((e, t) => {
13336
- let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = nw(lw, n);
13337
- return /* @__PURE__ */ N(Hy, {
13359
+ lw.displayName = aw;
13360
+ var uw = "ToastFocusProxy", dw = y.forwardRef((e, t) => {
13361
+ let { __scopeToast: n, onFocusFromOutsideViewport: r, ...i } = e, a = rw(uw, n);
13362
+ return /* @__PURE__ */ N(Uy, {
13338
13363
  tabIndex: 0,
13339
13364
  ...i,
13340
13365
  ref: t,
@@ -13345,17 +13370,17 @@ var lw = "ToastFocusProxy", uw = y.forwardRef((e, t) => {
13345
13370
  }
13346
13371
  });
13347
13372
  });
13348
- uw.displayName = lw;
13349
- var dw = "Toast", fw = "toast.swipeStart", pw = "toast.swipeMove", mw = "toast.swipeCancel", hw = "toast.swipeEnd", gw = y.forwardRef((e, t) => {
13373
+ dw.displayName = uw;
13374
+ var fw = "Toast", pw = "toast.swipeStart", mw = "toast.swipeMove", hw = "toast.swipeCancel", gw = "toast.swipeEnd", _w = y.forwardRef((e, t) => {
13350
13375
  let { forceMount: n, open: r, defaultOpen: i, onOpenChange: a, ...o } = e, [s, c] = H({
13351
13376
  prop: r,
13352
13377
  defaultProp: i ?? !0,
13353
13378
  onChange: a,
13354
- caller: dw
13379
+ caller: fw
13355
13380
  });
13356
13381
  return /* @__PURE__ */ N(W, {
13357
13382
  present: n || s,
13358
- children: /* @__PURE__ */ N(yw, {
13383
+ children: /* @__PURE__ */ N(bw, {
13359
13384
  open: s,
13360
13385
  ...o,
13361
13386
  ref: t,
@@ -13379,9 +13404,9 @@ var dw = "Toast", fw = "toast.swipeStart", pw = "toast.swipeMove", mw = "toast.s
13379
13404
  })
13380
13405
  });
13381
13406
  });
13382
- gw.displayName = dw;
13383
- var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13384
- let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = nw(dw, n), [g, _] = y.useState(null), v = z(t, (e) => _(e)), b = y.useRef(null), x = y.useRef(null), S = i || h.duration, C = y.useRef(0), w = y.useRef(S), T = y.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = un(() => {
13407
+ _w.displayName = fw;
13408
+ var [vw, yw] = ew(fw, { onClose() {} }), bw = y.forwardRef((e, t) => {
13409
+ let { __scopeToast: n, type: r = "foreground", duration: i, open: a, onClose: o, onEscapeKeyDown: s, onPause: c, onResume: l, onSwipeStart: u, onSwipeMove: d, onSwipeCancel: f, onSwipeEnd: p, ...m } = e, h = rw(fw, n), [g, _] = y.useState(null), v = z(t, (e) => _(e)), b = y.useRef(null), x = y.useRef(null), S = i || h.duration, C = y.useRef(0), w = y.useRef(S), T = y.useRef(0), { onToastAdd: E, onToastRemove: D } = h, O = un(() => {
13385
13410
  g?.contains(document.activeElement) && h.viewport?.focus(), o();
13386
13411
  }), k = y.useCallback((e) => {
13387
13412
  !e || e === Infinity || (window.clearTimeout(T.current), C.current = (/* @__PURE__ */ new Date()).getTime(), T.current = window.setTimeout(O, e));
@@ -13395,8 +13420,8 @@ var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13395
13420
  let e = (/* @__PURE__ */ new Date()).getTime() - C.current;
13396
13421
  w.current -= e, window.clearTimeout(T.current), c?.();
13397
13422
  };
13398
- return e.addEventListener(ow, n), e.addEventListener(sw, t), () => {
13399
- e.removeEventListener(ow, n), e.removeEventListener(sw, t);
13423
+ return e.addEventListener(sw, n), e.addEventListener(cw, t), () => {
13424
+ e.removeEventListener(sw, n), e.removeEventListener(cw, t);
13400
13425
  };
13401
13426
  }
13402
13427
  }, [
@@ -13413,16 +13438,16 @@ var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13413
13438
  h.isClosePausedRef,
13414
13439
  k
13415
13440
  ]), y.useEffect(() => (E(), () => D()), [E, D]);
13416
- let A = y.useMemo(() => g ? Aw(g) : null, [g]);
13417
- return h.viewport ? /* @__PURE__ */ P(M, { children: [A && /* @__PURE__ */ N(bw, {
13441
+ let A = y.useMemo(() => g ? jw(g) : null, [g]);
13442
+ return h.viewport ? /* @__PURE__ */ P(M, { children: [A && /* @__PURE__ */ N(xw, {
13418
13443
  __scopeToast: n,
13419
13444
  role: "status",
13420
13445
  "aria-live": r === "foreground" ? "assertive" : "polite",
13421
13446
  children: A
13422
- }), /* @__PURE__ */ N(_w, {
13447
+ }), /* @__PURE__ */ N(vw, {
13423
13448
  scope: n,
13424
13449
  onClose: O,
13425
- children: F.createPortal(/* @__PURE__ */ N(XC.ItemSlot, {
13450
+ children: F.createPortal(/* @__PURE__ */ N(ZC.ItemSlot, {
13426
13451
  scope: n,
13427
13452
  children: /* @__PURE__ */ N(En, {
13428
13453
  asChild: !0,
@@ -13458,7 +13483,7 @@ var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13458
13483
  originalEvent: e,
13459
13484
  delta: l
13460
13485
  };
13461
- r ? (x.current = l, jw(pw, d, f, { discrete: !1 })) : Mw(l, h.swipeDirection, c) ? (x.current = l, jw(fw, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (b.current = null);
13486
+ r ? (x.current = l, Mw(mw, d, f, { discrete: !1 })) : Nw(l, h.swipeDirection, c) ? (x.current = l, Mw(pw, u, f, { discrete: !1 }), e.target.setPointerCapture(e.pointerId)) : (Math.abs(t) > c || Math.abs(n) > c) && (b.current = null);
13462
13487
  }),
13463
13488
  onPointerUp: B(e.onPointerUp, (e) => {
13464
13489
  let t = x.current, n = e.target;
@@ -13467,22 +13492,22 @@ var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13467
13492
  originalEvent: e,
13468
13493
  delta: t
13469
13494
  };
13470
- Mw(t, h.swipeDirection, h.swipeThreshold) ? jw(hw, p, r, { discrete: !0 }) : jw(mw, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
13495
+ Nw(t, h.swipeDirection, h.swipeThreshold) ? Mw(gw, p, r, { discrete: !0 }) : Mw(hw, f, r, { discrete: !0 }), n.addEventListener("click", (e) => e.preventDefault(), { once: !0 });
13471
13496
  }
13472
13497
  })
13473
13498
  })
13474
13499
  })
13475
13500
  }), h.viewport)
13476
13501
  })] }) : null;
13477
- }), bw = (e) => {
13478
- let { __scopeToast: t, children: n, ...r } = e, i = nw(dw, t), [a, o] = y.useState(!1), [s, c] = y.useState(!1);
13479
- return Nw(() => o(!0)), y.useEffect(() => {
13502
+ }), xw = (e) => {
13503
+ let { __scopeToast: t, children: n, ...r } = e, i = rw(fw, t), [a, o] = y.useState(!1), [s, c] = y.useState(!1);
13504
+ return Pw(() => o(!0)), y.useEffect(() => {
13480
13505
  let e = window.setTimeout(() => c(!0), 1e3);
13481
13506
  return () => window.clearTimeout(e);
13482
13507
  }, []), s ? null : /* @__PURE__ */ N(Gn, {
13483
13508
  asChild: !0,
13484
13509
  container: i.announcerContainer || void 0,
13485
- children: /* @__PURE__ */ N(Hy, {
13510
+ children: /* @__PURE__ */ N(Uy, {
13486
13511
  ...r,
13487
13512
  children: a && /* @__PURE__ */ P(M, { children: [
13488
13513
  i.label,
@@ -13491,37 +13516,37 @@ var [_w, vw] = $C(dw, { onClose() {} }), yw = y.forwardRef((e, t) => {
13491
13516
  ] })
13492
13517
  })
13493
13518
  });
13494
- }, xw = "ToastTitle", Sw = y.forwardRef((e, t) => {
13519
+ }, Sw = "ToastTitle", Cw = y.forwardRef((e, t) => {
13495
13520
  let { __scopeToast: n, ...r } = e;
13496
13521
  return /* @__PURE__ */ N(U.div, {
13497
13522
  ...r,
13498
13523
  ref: t
13499
13524
  });
13500
13525
  });
13501
- Sw.displayName = xw;
13502
- var Cw = "ToastDescription", ww = y.forwardRef((e, t) => {
13526
+ Cw.displayName = Sw;
13527
+ var ww = "ToastDescription", Tw = y.forwardRef((e, t) => {
13503
13528
  let { __scopeToast: n, ...r } = e;
13504
13529
  return /* @__PURE__ */ N(U.div, {
13505
13530
  ...r,
13506
13531
  ref: t
13507
13532
  });
13508
13533
  });
13509
- ww.displayName = Cw;
13510
- var Tw = "ToastAction", Ew = y.forwardRef((e, t) => {
13534
+ Tw.displayName = ww;
13535
+ var Ew = "ToastAction", Dw = y.forwardRef((e, t) => {
13511
13536
  let { altText: n, ...r } = e;
13512
- return n.trim() ? /* @__PURE__ */ N(kw, {
13537
+ return n.trim() ? /* @__PURE__ */ N(Aw, {
13513
13538
  altText: n,
13514
13539
  asChild: !0,
13515
- children: /* @__PURE__ */ N(Ow, {
13540
+ children: /* @__PURE__ */ N(kw, {
13516
13541
  ...r,
13517
13542
  ref: t
13518
13543
  })
13519
- }) : (console.error(`Invalid prop \`altText\` supplied to \`${Tw}\`. Expected non-empty \`string\`.`), null);
13544
+ }) : (console.error(`Invalid prop \`altText\` supplied to \`${Ew}\`. Expected non-empty \`string\`.`), null);
13520
13545
  });
13521
- Ew.displayName = Tw;
13522
- var Dw = "ToastClose", Ow = y.forwardRef((e, t) => {
13523
- let { __scopeToast: n, ...r } = e, i = vw(Dw, n);
13524
- return /* @__PURE__ */ N(kw, {
13546
+ Dw.displayName = Ew;
13547
+ var Ow = "ToastClose", kw = y.forwardRef((e, t) => {
13548
+ let { __scopeToast: n, ...r } = e, i = yw(Ow, n);
13549
+ return /* @__PURE__ */ N(Aw, {
13525
13550
  asChild: !0,
13526
13551
  children: /* @__PURE__ */ N(U.button, {
13527
13552
  type: "button",
@@ -13531,8 +13556,8 @@ var Dw = "ToastClose", Ow = y.forwardRef((e, t) => {
13531
13556
  })
13532
13557
  });
13533
13558
  });
13534
- Ow.displayName = Dw;
13535
- var kw = y.forwardRef((e, t) => {
13559
+ kw.displayName = Ow;
13560
+ var Aw = y.forwardRef((e, t) => {
13536
13561
  let { __scopeToast: n, altText: r, ...i } = e;
13537
13562
  return /* @__PURE__ */ N(U.div, {
13538
13563
  "data-radix-toast-announce-exclude": "",
@@ -13541,19 +13566,19 @@ var kw = y.forwardRef((e, t) => {
13541
13566
  ref: t
13542
13567
  });
13543
13568
  });
13544
- function Aw(e) {
13569
+ function jw(e) {
13545
13570
  let t = [];
13546
13571
  return Array.from(e.childNodes).forEach((e) => {
13547
- if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), Pw(e)) {
13572
+ if (e.nodeType === e.TEXT_NODE && e.textContent && t.push(e.textContent), Fw(e)) {
13548
13573
  let n = e.ariaHidden || e.hidden || e.style.display === "none", r = e.dataset.radixToastAnnounceExclude === "";
13549
13574
  if (!n) if (r) {
13550
13575
  let n = e.dataset.radixToastAnnounceAlt;
13551
13576
  n && t.push(n);
13552
- } else t.push(...Aw(e));
13577
+ } else t.push(...jw(e));
13553
13578
  }
13554
13579
  }), t;
13555
13580
  }
13556
- function jw(e, t, n, { discrete: r }) {
13581
+ function Mw(e, t, n, { discrete: r }) {
13557
13582
  let i = n.originalEvent.currentTarget, a = new CustomEvent(e, {
13558
13583
  bubbles: !0,
13559
13584
  cancelable: !0,
@@ -13561,11 +13586,11 @@ function jw(e, t, n, { discrete: r }) {
13561
13586
  });
13562
13587
  t && i.addEventListener(e, t, { once: !0 }), r ? xe(i, a) : i.dispatchEvent(a);
13563
13588
  }
13564
- var Mw = (e, t, n = 0) => {
13589
+ var Nw = (e, t, n = 0) => {
13565
13590
  let r = Math.abs(e.x), i = Math.abs(e.y), a = r > i;
13566
13591
  return t === "left" || t === "right" ? a && r > n : !a && i > n;
13567
13592
  };
13568
- function Nw(e = () => {}) {
13593
+ function Pw(e = () => {}) {
13569
13594
  let t = un(e);
13570
13595
  V(() => {
13571
13596
  let e = 0, n = 0;
@@ -13574,10 +13599,10 @@ function Nw(e = () => {}) {
13574
13599
  };
13575
13600
  }, [t]);
13576
13601
  }
13577
- function Pw(e) {
13602
+ function Fw(e) {
13578
13603
  return e.nodeType === e.ELEMENT_NODE;
13579
13604
  }
13580
- function Fw(e) {
13605
+ function Iw(e) {
13581
13606
  let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
13582
13607
  let t = e.tagName === "INPUT" && e.type === "hidden";
13583
13608
  return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
@@ -13585,38 +13610,38 @@ function Fw(e) {
13585
13610
  for (; n.nextNode();) t.push(n.currentNode);
13586
13611
  return t;
13587
13612
  }
13588
- function Iw(e) {
13613
+ function Lw(e) {
13589
13614
  let t = document.activeElement;
13590
13615
  return e.some((e) => e === t ? !0 : (e.focus(), document.activeElement !== t));
13591
13616
  }
13592
- var Lw = rw, Rw = cw, zw = gw, Bw = Sw, Vw = ww, Hw = Ew, Uw = Ow, Ww = /* @__PURE__ */ new Set(), Gw = [];
13593
- function Kw() {
13594
- let e = [...Gw];
13595
- Ww.forEach((t) => t(e));
13617
+ var Rw = iw, zw = lw, Bw = _w, Vw = Cw, Hw = Tw, Uw = Dw, Ww = kw, Gw = /* @__PURE__ */ new Set(), Kw = [];
13618
+ function qw() {
13619
+ let e = [...Kw];
13620
+ Gw.forEach((t) => t(e));
13596
13621
  }
13597
- function qw(e) {
13622
+ function Jw(e) {
13598
13623
  let t = `toast-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`;
13599
- return Gw = [...Gw, {
13624
+ return Kw = [...Kw, {
13600
13625
  ...e,
13601
13626
  id: t
13602
- }], Kw(), t;
13627
+ }], qw(), t;
13603
13628
  }
13604
- function Jw(e) {
13605
- Gw = Gw.filter((t) => t.id !== e), Kw();
13629
+ function Yw(e) {
13630
+ Kw = Kw.filter((t) => t.id !== e), qw();
13606
13631
  }
13607
- function Yw() {
13608
- let [e, t] = j([...Gw]);
13609
- return E(() => (Ww.add(t), () => {
13610
- Ww.delete(t);
13632
+ function Xw() {
13633
+ let [e, t] = j([...Kw]);
13634
+ return E(() => (Gw.add(t), () => {
13635
+ Gw.delete(t);
13611
13636
  }), []), {
13612
13637
  toasts: e,
13613
- toast: (e) => qw(e),
13614
- dismiss: (e) => Jw(e)
13638
+ toast: (e) => Jw(e),
13639
+ dismiss: (e) => Yw(e)
13615
13640
  };
13616
13641
  }
13617
13642
  //#endregion
13618
13643
  //#region src/components/Toast/Toaster.tsx
13619
- var Xw = {
13644
+ var Zw = {
13620
13645
  success: /* @__PURE__ */ N(Yt, {
13621
13646
  className: "h-5 w-5 shrink-0 text-[var(--apcrda-color-success)]",
13622
13647
  "aria-hidden": "true"
@@ -13634,14 +13659,14 @@ var Xw = {
13634
13659
  "aria-hidden": "true"
13635
13660
  })
13636
13661
  };
13637
- function Zw() {
13638
- let { toasts: t } = Yw();
13639
- return /* @__PURE__ */ P(Lw, {
13662
+ function Qw() {
13663
+ let { toasts: t } = Xw();
13664
+ return /* @__PURE__ */ P(Rw, {
13640
13665
  swipeDirection: "right",
13641
- children: [t.map((t) => /* @__PURE__ */ P(zw, {
13666
+ children: [t.map((t) => /* @__PURE__ */ P(Bw, {
13642
13667
  open: !0,
13643
13668
  onOpenChange: (e) => {
13644
- e || Jw(t.id);
13669
+ e || Yw(t.id);
13645
13670
  },
13646
13671
  duration: t.duration ?? 5e3,
13647
13672
  role: t.variant === "error" ? "alert" : "status",
@@ -13649,25 +13674,25 @@ function Zw() {
13649
13674
  children: [
13650
13675
  t.variant && t.variant !== "default" && /* @__PURE__ */ N("span", {
13651
13676
  className: "mt-0.5",
13652
- children: Xw[t.variant]
13677
+ children: Zw[t.variant]
13653
13678
  }),
13654
13679
  /* @__PURE__ */ P("div", {
13655
13680
  className: "flex-1 space-y-1",
13656
- children: [/* @__PURE__ */ N(Bw, {
13681
+ children: [/* @__PURE__ */ N(Vw, {
13657
13682
  className: "text-sm font-semibold text-[var(--apcrda-color-foreground)]",
13658
13683
  children: t.title
13659
- }), t.description && /* @__PURE__ */ N(Vw, {
13684
+ }), t.description && /* @__PURE__ */ N(Hw, {
13660
13685
  className: "text-sm text-[var(--apcrda-color-muted)]",
13661
13686
  children: t.description
13662
13687
  })]
13663
13688
  }),
13664
- t.action && /* @__PURE__ */ N(Hw, {
13689
+ t.action && /* @__PURE__ */ N(Uw, {
13665
13690
  altText: t.action.label,
13666
13691
  onClick: t.action.onClick,
13667
13692
  className: "shrink-0 rounded-[var(--apcrda-radius-sm)] border border-[var(--apcrda-color-border)] px-3 py-1.5 text-xs font-medium text-[var(--apcrda-color-foreground)] hover:bg-[var(--apcrda-color-surface-muted)]",
13668
13693
  children: t.action.label
13669
13694
  }),
13670
- /* @__PURE__ */ N(Uw, {
13695
+ /* @__PURE__ */ N(Ww, {
13671
13696
  "aria-label": "Close",
13672
13697
  className: "shrink-0 rounded-[var(--apcrda-radius-sm)] text-[var(--apcrda-color-muted)] opacity-0 transition-opacity hover:text-[var(--apcrda-color-foreground)] group-hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--apcrda-color-ring)]",
13673
13698
  children: /* @__PURE__ */ N(an, {
@@ -13676,18 +13701,18 @@ function Zw() {
13676
13701
  })
13677
13702
  })
13678
13703
  ]
13679
- }, t.id)), /* @__PURE__ */ N(Rw, { className: "fixed bottom-4 right-4 z-[100] flex max-h-screen w-full max-w-sm flex-col-reverse gap-2 p-4" })]
13704
+ }, t.id)), /* @__PURE__ */ N(zw, { className: "fixed bottom-4 right-4 z-[100] flex max-h-screen w-full max-w-sm flex-col-reverse gap-2 p-4" })]
13680
13705
  });
13681
13706
  }
13682
- Zw.displayName = "Toaster";
13707
+ Qw.displayName = "Toaster";
13683
13708
  //#endregion
13684
13709
  //#region node_modules/@radix-ui/react-tooltip/dist/index.mjs
13685
- var [Qw, $w] = L("Tooltip", [Vs]), eT = Vs(), tT = "TooltipProvider", nT = 700, rT = "tooltip.open", [iT, aT] = Qw(tT), oT = (e) => {
13686
- let { __scopeTooltip: t, delayDuration: n = nT, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = y.useRef(!0), s = y.useRef(!1), c = y.useRef(0);
13710
+ var [$w, eT] = L("Tooltip", [Vs]), tT = Vs(), nT = "TooltipProvider", rT = 700, iT = "tooltip.open", [aT, oT] = $w(nT), sT = (e) => {
13711
+ let { __scopeTooltip: t, delayDuration: n = rT, skipDelayDuration: r = 300, disableHoverableContent: i = !1, children: a } = e, o = y.useRef(!0), s = y.useRef(!1), c = y.useRef(0);
13687
13712
  return y.useEffect(() => {
13688
13713
  let e = c.current;
13689
13714
  return () => window.clearTimeout(e);
13690
- }, []), /* @__PURE__ */ N(iT, {
13715
+ }, []), /* @__PURE__ */ N(aT, {
13691
13716
  scope: t,
13692
13717
  isOpenDelayedRef: o,
13693
13718
  delayDuration: n,
@@ -13705,15 +13730,15 @@ var [Qw, $w] = L("Tooltip", [Vs]), eT = Vs(), tT = "TooltipProvider", nT = 700,
13705
13730
  children: a
13706
13731
  });
13707
13732
  };
13708
- oT.displayName = tT;
13709
- var sT = "Tooltip", [cT, lT] = Qw(sT), uT = (e) => {
13710
- let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = aT(sT, e.__scopeTooltip), l = eT(t), [u, d] = y.useState(null), f = G(), p = y.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = y.useRef(!1), [_, v] = H({
13733
+ sT.displayName = nT;
13734
+ var cT = "Tooltip", [lT, uT] = $w(cT), dT = (e) => {
13735
+ let { __scopeTooltip: t, children: n, open: r, defaultOpen: i, onOpenChange: a, disableHoverableContent: o, delayDuration: s } = e, c = oT(cT, e.__scopeTooltip), l = tT(t), [u, d] = y.useState(null), f = G(), p = y.useRef(0), m = o ?? c.disableHoverableContent, h = s ?? c.delayDuration, g = y.useRef(!1), [_, v] = H({
13711
13736
  prop: r,
13712
13737
  defaultProp: i ?? !1,
13713
13738
  onChange: (e) => {
13714
- e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(rT))) : c.onClose(), a?.(e);
13739
+ e ? (c.onOpen(), document.dispatchEvent(new CustomEvent(iT))) : c.onClose(), a?.(e);
13715
13740
  },
13716
- caller: sT
13741
+ caller: cT
13717
13742
  }), b = y.useMemo(() => _ ? g.current ? "delayed-open" : "instant-open" : "closed", [_]), x = y.useCallback(() => {
13718
13743
  window.clearTimeout(p.current), p.current = 0, g.current = !1, v(!0);
13719
13744
  }, [v]), S = y.useCallback(() => {
@@ -13727,7 +13752,7 @@ var sT = "Tooltip", [cT, lT] = Qw(sT), uT = (e) => {
13727
13752
  p.current &&= (window.clearTimeout(p.current), 0);
13728
13753
  }, []), /* @__PURE__ */ N(rc, {
13729
13754
  ...l,
13730
- children: /* @__PURE__ */ N(cT, {
13755
+ children: /* @__PURE__ */ N(lT, {
13731
13756
  scope: t,
13732
13757
  contentId: f,
13733
13758
  open: _,
@@ -13751,9 +13776,9 @@ var sT = "Tooltip", [cT, lT] = Qw(sT), uT = (e) => {
13751
13776
  })
13752
13777
  });
13753
13778
  };
13754
- uT.displayName = sT;
13755
- var dT = "TooltipTrigger", fT = y.forwardRef((e, t) => {
13756
- let { __scopeTooltip: n, ...r } = e, i = lT(dT, n), a = aT(dT, n), o = eT(n), s = z(t, y.useRef(null), i.onTriggerChange), c = y.useRef(!1), l = y.useRef(!1), u = y.useCallback(() => c.current = !1, []);
13779
+ dT.displayName = cT;
13780
+ var fT = "TooltipTrigger", pT = y.forwardRef((e, t) => {
13781
+ let { __scopeTooltip: n, ...r } = e, i = uT(fT, n), a = oT(fT, n), o = tT(n), s = z(t, y.useRef(null), i.onTriggerChange), c = y.useRef(!1), l = y.useRef(!1), u = y.useCallback(() => c.current = !1, []);
13757
13782
  return y.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ N(ic, {
13758
13783
  asChild: !0,
13759
13784
  ...o,
@@ -13779,10 +13804,10 @@ var dT = "TooltipTrigger", fT = y.forwardRef((e, t) => {
13779
13804
  })
13780
13805
  });
13781
13806
  });
13782
- fT.displayName = dT;
13783
- var pT = "TooltipPortal", [mT, hT] = Qw(pT, { forceMount: void 0 }), gT = (e) => {
13784
- let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = lT(pT, t);
13785
- return /* @__PURE__ */ N(mT, {
13807
+ pT.displayName = fT;
13808
+ var mT = "TooltipPortal", [hT, gT] = $w(mT, { forceMount: void 0 }), _T = (e) => {
13809
+ let { __scopeTooltip: t, forceMount: n, children: r, container: i } = e, a = uT(mT, t);
13810
+ return /* @__PURE__ */ N(hT, {
13786
13811
  scope: t,
13787
13812
  forceMount: n,
13788
13813
  children: /* @__PURE__ */ N(W, {
@@ -13795,30 +13820,30 @@ var pT = "TooltipPortal", [mT, hT] = Qw(pT, { forceMount: void 0 }), gT = (e) =>
13795
13820
  })
13796
13821
  });
13797
13822
  };
13798
- gT.displayName = pT;
13799
- var _T = "TooltipContent", vT = y.forwardRef((e, t) => {
13800
- let n = hT(_T, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = lT(_T, e.__scopeTooltip);
13823
+ _T.displayName = mT;
13824
+ var vT = "TooltipContent", yT = y.forwardRef((e, t) => {
13825
+ let n = gT(vT, e.__scopeTooltip), { forceMount: r = n.forceMount, side: i = "top", ...a } = e, o = uT(vT, e.__scopeTooltip);
13801
13826
  return /* @__PURE__ */ N(W, {
13802
13827
  present: r || o.open,
13803
- children: o.disableHoverableContent ? /* @__PURE__ */ N(CT, {
13828
+ children: o.disableHoverableContent ? /* @__PURE__ */ N(wT, {
13804
13829
  side: i,
13805
13830
  ...a,
13806
13831
  ref: t
13807
- }) : /* @__PURE__ */ N(yT, {
13832
+ }) : /* @__PURE__ */ N(bT, {
13808
13833
  side: i,
13809
13834
  ...a,
13810
13835
  ref: t
13811
13836
  })
13812
13837
  });
13813
- }), yT = y.forwardRef((e, t) => {
13814
- let n = lT(_T, e.__scopeTooltip), r = aT(_T, e.__scopeTooltip), i = y.useRef(null), a = z(t, i), [o, s] = y.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = y.useCallback(() => {
13838
+ }), bT = y.forwardRef((e, t) => {
13839
+ let n = uT(vT, e.__scopeTooltip), r = oT(vT, e.__scopeTooltip), i = y.useRef(null), a = z(t, i), [o, s] = y.useState(null), { trigger: c, onClose: l } = n, u = i.current, { onPointerInTransitChange: d } = r, f = y.useCallback(() => {
13815
13840
  s(null), d(!1);
13816
13841
  }, [d]), p = y.useCallback((e, t) => {
13817
13842
  let n = e.currentTarget, r = {
13818
13843
  x: e.clientX,
13819
13844
  y: e.clientY
13820
- }, i = DT(r, ET(r, n.getBoundingClientRect())), a = OT(t.getBoundingClientRect());
13821
- s(AT([...i, ...a])), d(!0);
13845
+ }, i = OT(r, DT(r, n.getBoundingClientRect())), a = kT(t.getBoundingClientRect());
13846
+ s(jT([...i, ...a])), d(!0);
13822
13847
  }, [d]);
13823
13848
  return y.useEffect(() => () => f(), [f]), y.useEffect(() => {
13824
13849
  if (c && u) {
@@ -13838,7 +13863,7 @@ var _T = "TooltipContent", vT = y.forwardRef((e, t) => {
13838
13863
  let t = e.target, n = {
13839
13864
  x: e.clientX,
13840
13865
  y: e.clientY
13841
- }, r = c?.contains(t) || u?.contains(t), i = !kT(n, o);
13866
+ }, r = c?.contains(t) || u?.contains(t), i = !AT(n, o);
13842
13867
  r ? f() : i && (f(), l());
13843
13868
  };
13844
13869
  return document.addEventListener("pointermove", e), () => document.removeEventListener("pointermove", e);
@@ -13849,13 +13874,13 @@ var _T = "TooltipContent", vT = y.forwardRef((e, t) => {
13849
13874
  o,
13850
13875
  l,
13851
13876
  f
13852
- ]), /* @__PURE__ */ N(CT, {
13877
+ ]), /* @__PURE__ */ N(wT, {
13853
13878
  ...e,
13854
13879
  ref: a
13855
13880
  });
13856
- }), [bT, xT] = Qw(sT, { isInside: !1 }), ST = /* @__PURE__ */ oe("TooltipContent"), CT = y.forwardRef((e, t) => {
13857
- let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = lT(_T, n), l = eT(n), { onClose: u } = c;
13858
- return y.useEffect(() => (document.addEventListener(rT, u), () => document.removeEventListener(rT, u)), [u]), y.useEffect(() => {
13881
+ }), [xT, ST] = $w(cT, { isInside: !1 }), CT = /* @__PURE__ */ oe("TooltipContent"), wT = y.forwardRef((e, t) => {
13882
+ let { __scopeTooltip: n, children: r, "aria-label": i, onEscapeKeyDown: a, onPointerDownOutside: o, ...s } = e, c = uT(vT, n), l = tT(n), { onClose: u } = c;
13883
+ return y.useEffect(() => (document.addEventListener(iT, u), () => document.removeEventListener(iT, u)), [u]), y.useEffect(() => {
13859
13884
  if (c.trigger) {
13860
13885
  let e = (e) => {
13861
13886
  e.target instanceof Node && e.target.contains(c.trigger) && u();
@@ -13882,10 +13907,10 @@ var _T = "TooltipContent", vT = y.forwardRef((e, t) => {
13882
13907
  "--radix-tooltip-trigger-width": "var(--radix-popper-anchor-width)",
13883
13908
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
13884
13909
  },
13885
- children: [/* @__PURE__ */ N(ST, { children: r }), /* @__PURE__ */ N(bT, {
13910
+ children: [/* @__PURE__ */ N(CT, { children: r }), /* @__PURE__ */ N(xT, {
13886
13911
  scope: n,
13887
13912
  isInside: !0,
13888
- children: /* @__PURE__ */ N(Uy, {
13913
+ children: /* @__PURE__ */ N(Wy, {
13889
13914
  id: c.contentId,
13890
13915
  role: "tooltip",
13891
13916
  children: i || r
@@ -13894,17 +13919,17 @@ var _T = "TooltipContent", vT = y.forwardRef((e, t) => {
13894
13919
  })
13895
13920
  });
13896
13921
  });
13897
- vT.displayName = _T;
13898
- var wT = "TooltipArrow", TT = y.forwardRef((e, t) => {
13899
- let { __scopeTooltip: n, ...r } = e, i = eT(n);
13900
- return xT(wT, n).isInside ? null : /* @__PURE__ */ N(oc, {
13922
+ yT.displayName = vT;
13923
+ var TT = "TooltipArrow", ET = y.forwardRef((e, t) => {
13924
+ let { __scopeTooltip: n, ...r } = e, i = tT(n);
13925
+ return ST(TT, n).isInside ? null : /* @__PURE__ */ N(oc, {
13901
13926
  ...i,
13902
13927
  ...r,
13903
13928
  ref: t
13904
13929
  });
13905
13930
  });
13906
- TT.displayName = wT;
13907
- function ET(e, t) {
13931
+ ET.displayName = TT;
13932
+ function DT(e, t) {
13908
13933
  let n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), i = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
13909
13934
  switch (Math.min(n, r, i, a)) {
13910
13935
  case a: return "left";
@@ -13914,7 +13939,7 @@ function ET(e, t) {
13914
13939
  default: throw Error("unreachable");
13915
13940
  }
13916
13941
  }
13917
- function DT(e, t, n = 5) {
13942
+ function OT(e, t, n = 5) {
13918
13943
  let r = [];
13919
13944
  switch (t) {
13920
13945
  case "top":
@@ -13956,7 +13981,7 @@ function DT(e, t, n = 5) {
13956
13981
  }
13957
13982
  return r;
13958
13983
  }
13959
- function OT(e) {
13984
+ function kT(e) {
13960
13985
  let { top: t, right: n, bottom: r, left: i } = e;
13961
13986
  return [
13962
13987
  {
@@ -13977,7 +14002,7 @@ function OT(e) {
13977
14002
  }
13978
14003
  ];
13979
14004
  }
13980
- function kT(e, t) {
14005
+ function AT(e, t) {
13981
14006
  let { x: n, y: r } = e, i = !1;
13982
14007
  for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
13983
14008
  let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
@@ -13985,11 +14010,11 @@ function kT(e, t) {
13985
14010
  }
13986
14011
  return i;
13987
14012
  }
13988
- function AT(e) {
14013
+ function jT(e) {
13989
14014
  let t = e.slice();
13990
- return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), jT(t);
14015
+ return t.sort((e, t) => e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : +(e.y > t.y)), MT(t);
13991
14016
  }
13992
- function jT(e) {
14017
+ function MT(e) {
13993
14018
  if (e.length <= 1) return e.slice();
13994
14019
  let t = [];
13995
14020
  for (let n = 0; n < e.length; n++) {
@@ -14014,31 +14039,31 @@ function jT(e) {
14014
14039
  }
14015
14040
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
14016
14041
  }
14017
- var MT = oT, NT = uT, PT = fT, FT = gT, IT = vT, LT = MT, RT = NT, zT = PT, BT = C(({ className: t, sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ N(FT, { children: /* @__PURE__ */ N(IT, {
14042
+ var NT = sT, PT = dT, FT = pT, IT = _T, LT = yT, RT = NT, zT = PT, BT = FT, VT = C(({ className: t, sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ N(IT, { children: /* @__PURE__ */ N(LT, {
14018
14043
  ref: i,
14019
14044
  sideOffset: n,
14020
14045
  className: e("z-50 overflow-hidden rounded-[var(--apcrda-radius-sm)] bg-[var(--apcrda-color-foreground)] px-3 py-1.5 text-xs text-[var(--apcrda-color-surface)] shadow-[var(--apcrda-shadow-md)]", "animate-in fade-in-0 zoom-in-95", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95", "data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", t),
14021
14046
  ...r
14022
14047
  }) }));
14023
- BT.displayName = "TooltipContent";
14024
- function VT({ children: e, content: t, disabled: n, side: r, align: i, delayDuration: a, ...o }) {
14025
- return n ? /* @__PURE__ */ N(M, { children: e }) : /* @__PURE__ */ P(RT, {
14048
+ VT.displayName = "TooltipContent";
14049
+ function HT({ children: e, content: t, disabled: n, side: r, align: i, delayDuration: a, ...o }) {
14050
+ return n ? /* @__PURE__ */ N(M, { children: e }) : /* @__PURE__ */ P(zT, {
14026
14051
  delayDuration: a,
14027
14052
  ...o,
14028
- children: [/* @__PURE__ */ N(zT, {
14053
+ children: [/* @__PURE__ */ N(BT, {
14029
14054
  asChild: !0,
14030
14055
  children: e
14031
- }), /* @__PURE__ */ N(BT, {
14056
+ }), /* @__PURE__ */ N(VT, {
14032
14057
  side: r,
14033
14058
  align: i,
14034
14059
  children: t
14035
14060
  })]
14036
14061
  });
14037
14062
  }
14038
- VT.displayName = "Tooltip";
14063
+ HT.displayName = "Tooltip";
14039
14064
  //#endregion
14040
14065
  //#region src/hooks/useMediaQuery.ts
14041
- function HT(e) {
14066
+ function UT(e) {
14042
14067
  let [t, n] = j(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
14043
14068
  return E(() => {
14044
14069
  if (typeof window > "u") return;
@@ -14049,4 +14074,4 @@ function HT(e) {
14049
14074
  }, [e]), t;
14050
14075
  }
14051
14076
  //#endregion
14052
- export { on as Accordion, ln as AccordionContent, sn as AccordionItem, cn as AccordionTrigger, xa as AlertDialog, Bc as Autocomplete, ol as Avatar, cl as AvatarFallback, sl as AvatarImage, ul as Badge, dl as Breadcrumb, _l as BreadcrumbEllipsis, pl as BreadcrumbItem, ml as BreadcrumbLink, fl as BreadcrumbList, hl as BreadcrumbPage, gl as BreadcrumbSeparator, yl as Button, Ip as Calendar, Pm as Card, Rm as CardContent, Lm as CardDescription, zm as CardFooter, Fm as CardHeader, Im as CardTitle, ih as Checkbox, ah as Combobox, Mm as CommandPalette, av as ContextMenu, CC as DataTable, ov as DatePicker, sv as DateRangePicker, cv as Dialog, gv as DialogBody, uv as DialogClose, mv as DialogContent, yv as DialogDescription, _v as DialogFooter, hv as DialogHeader, fv as DialogOverlay, dv as DialogPortal, vv as DialogTitle, lv as DialogTrigger, xv as Divider, Sv as Drawer, wv as DrawerClose, Av as DrawerContent, Pv as DrawerDescription, Mv as DrawerFooter, jv as DrawerHeader, Ev as DrawerOverlay, Tv as DrawerPortal, Nv as DrawerTitle, Cv as DrawerTrigger, Fv as FileUpload, Rv as Input, Hv as Label, Uv as MultiSelect, qv as NotificationCenter, Gv as NotificationItem, Kv as NotificationPanel, Xv as Pagination, Zv as Popover, ey as PopoverAnchor, $v as PopoverClose, ty as PopoverContent, Qv as PopoverTrigger, Iy as RadioGroup, Ry as RadioGroupItem, lx as Select, hx as SelectContent, ux as SelectGroup, _x as SelectItem, gx as SelectLabel, mx as SelectScrollDownButton, px as SelectScrollUpButton, vx as SelectSeparator, fx as SelectTrigger, dx as SelectValue, Cx as Sidebar, Sx as SidebarContent, yx as SidebarContext, xx as SidebarItem, Vx as Switch, hC as Table, _C as TableBody, SC as TableCaption, xC as TableCell, vC as TableFooter, bC as TableHead, gC as TableHeader, yC as TableRow, UC as Tabs, KC as TabsContent, WC as TabsList, GC as TabsTrigger, JC as Textarea, u as ThemeProvider, Zw as Toaster, VT as Tooltip, BT as TooltipContent, LT as TooltipProvider, RT as TooltipRoot, zT as TooltipTrigger, qw as addToast, al as avatarVariants, ll as badgeVariants, vl as buttonVariants, Nm as cardVariants, rh as checkboxVariants, e as cn, f as colors, a as createDataState, c as darkTheme, bv as dividerVariants, s as getInitialTheme, r as getThemeAttribute, Lv as inputVariants, i as isThemeName, d as lightTheme, n as mergeClasses, g as motion, Ly as radioGroupItemVariants, p as radius, Jw as removeToast, o as setThemeAttribute, m as shadows, h as spacing, _ as spacingPixels, zx as switchVariants, qC as textareaVariants, v as typography, HT as useMediaQuery, bx as useSidebar, l as useTheme, Yw as useToast };
14077
+ export { on as Accordion, ln as AccordionContent, sn as AccordionItem, cn as AccordionTrigger, xa as AlertDialog, Bc as Autocomplete, ol as Avatar, cl as AvatarFallback, sl as AvatarImage, ul as Badge, dl as Breadcrumb, _l as BreadcrumbEllipsis, pl as BreadcrumbItem, ml as BreadcrumbLink, fl as BreadcrumbList, hl as BreadcrumbPage, gl as BreadcrumbSeparator, yl as Button, Ip as Calendar, Pm as Card, Rm as CardContent, Lm as CardDescription, zm as CardFooter, Fm as CardHeader, Im as CardTitle, ih as Checkbox, ah as Combobox, Mm as CommandPalette, av as ContextMenu, wC as DataTable, ov as DatePicker, sv as DateRangePicker, cv as Dialog, gv as DialogBody, uv as DialogClose, mv as DialogContent, yv as DialogDescription, _v as DialogFooter, hv as DialogHeader, fv as DialogOverlay, dv as DialogPortal, vv as DialogTitle, lv as DialogTrigger, xv as Divider, Sv as Drawer, wv as DrawerClose, Av as DrawerContent, Pv as DrawerDescription, Mv as DrawerFooter, jv as DrawerHeader, Ev as DrawerOverlay, Tv as DrawerPortal, Nv as DrawerTitle, Cv as DrawerTrigger, Fv as FileUpload, Vv as FormField, Uv as Input, Bv as Label, Wv as MultiSelect, Jv as NotificationCenter, Kv as NotificationItem, qv as NotificationPanel, Zv as Pagination, Qv as Popover, ty as PopoverAnchor, ey as PopoverClose, ny as PopoverContent, $v as PopoverTrigger, Ly as RadioGroup, zy as RadioGroupItem, ux as Select, gx as SelectContent, dx as SelectGroup, vx as SelectItem, _x as SelectLabel, hx as SelectScrollDownButton, mx as SelectScrollUpButton, yx as SelectSeparator, px as SelectTrigger, fx as SelectValue, wx as Sidebar, Cx as SidebarContent, bx as SidebarContext, Sx as SidebarItem, Hx as Switch, gC as Table, vC as TableBody, CC as TableCaption, SC as TableCell, yC as TableFooter, xC as TableHead, _C as TableHeader, bC as TableRow, WC as Tabs, qC as TabsContent, GC as TabsList, KC as TabsTrigger, YC as Textarea, u as ThemeProvider, Qw as Toaster, HT as Tooltip, VT as TooltipContent, RT as TooltipProvider, zT as TooltipRoot, BT as TooltipTrigger, Jw as addToast, al as avatarVariants, ll as badgeVariants, vl as buttonVariants, Nm as cardVariants, rh as checkboxVariants, e as cn, f as colors, a as createDataState, c as darkTheme, bv as dividerVariants, s as getInitialTheme, r as getThemeAttribute, Hv as inputVariants, i as isThemeName, d as lightTheme, n as mergeClasses, g as motion, Ry as radioGroupItemVariants, p as radius, Yw as removeToast, o as setThemeAttribute, m as shadows, h as spacing, _ as spacingPixels, Bx as switchVariants, JC as textareaVariants, v as typography, UT as useMediaQuery, xx as useSidebar, l as useTheme, Xw as useToast };