ui-mathilde-web 0.3.3 → 0.3.5

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.
@@ -1,7 +1,7 @@
1
1
  var My = Object.defineProperty;
2
2
  var Cy = (t, e, r) => e in t ? My(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Q = (t, e, r) => Cy(t, typeof e != "symbol" ? e + "" : e, r);
4
- import Ey, { jsx as b, jsxs as G, Fragment as Vt } from "react/jsx-runtime";
4
+ import Ey, { jsx as b, jsxs as G, Fragment as $t } from "react/jsx-runtime";
5
5
  import * as W from "react";
6
6
  import ee, { createContext as ut, useContext as rt, useState as ge, useMemo as so, Children as Jn, cloneElement as ys, forwardRef as Oe, createElement as hr, isValidElement as Py, PureComponent as Ty, useRef as Kt, useImperativeHandle as Qh, useEffect as gt, useLayoutEffect as cc, useCallback as kn, useId as $n, Fragment as Zh } from "react";
7
7
  import * as Ry from "react-dom";
@@ -548,7 +548,7 @@ function Fv(t) {
548
548
  return Dv.test(t);
549
549
  }
550
550
  function Lv() {
551
- const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), w = Ne("opacity"), x = Ne("padding"), k = Ne("saturate"), v = Ne("scale"), y = Ne("sepia"), O = Ne("skew"), P = Ne("space"), M = Ne("translate"), T = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", he, e], F = () => [he, e], _ = () => ["", kr, jr], S = () => ["auto", On, he], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", he], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [On, Fi], A = () => [On, he];
551
+ const t = Ne("colors"), e = Ne("spacing"), r = Ne("blur"), n = Ne("brightness"), a = Ne("borderColor"), i = Ne("borderRadius"), s = Ne("borderSpacing"), o = Ne("borderWidth"), l = Ne("contrast"), c = Ne("grayscale"), d = Ne("hueRotate"), u = Ne("invert"), f = Ne("gap"), h = Ne("gradientColorStops"), g = Ne("gradientColorStopPositions"), m = Ne("inset"), p = Ne("margin"), x = Ne("opacity"), w = Ne("padding"), k = Ne("saturate"), v = Ne("scale"), y = Ne("sepia"), O = Ne("skew"), T = Ne("space"), M = Ne("translate"), P = () => ["auto", "contain", "none"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", he, e], F = () => [he, e], _ = () => ["", kr, jr], S = () => ["auto", On, he], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Z = () => ["", "0", he], R = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [On, Fi], A = () => [On, he];
552
552
  return {
553
553
  cacheSize: 500,
554
554
  separator: ":",
@@ -699,21 +699,21 @@ function Lv() {
699
699
  * @see https://tailwindcss.com/docs/overscroll-behavior
700
700
  */
701
701
  overscroll: [{
702
- overscroll: T()
702
+ overscroll: P()
703
703
  }],
704
704
  /**
705
705
  * Overscroll Behavior X
706
706
  * @see https://tailwindcss.com/docs/overscroll-behavior
707
707
  */
708
708
  "overscroll-x": [{
709
- "overscroll-x": T()
709
+ "overscroll-x": P()
710
710
  }],
711
711
  /**
712
712
  * Overscroll Behavior Y
713
713
  * @see https://tailwindcss.com/docs/overscroll-behavior
714
714
  */
715
715
  "overscroll-y": [{
716
- "overscroll-y": T()
716
+ "overscroll-y": P()
717
717
  }],
718
718
  /**
719
719
  * Position
@@ -1016,63 +1016,63 @@ function Lv() {
1016
1016
  * @see https://tailwindcss.com/docs/padding
1017
1017
  */
1018
1018
  p: [{
1019
- p: [x]
1019
+ p: [w]
1020
1020
  }],
1021
1021
  /**
1022
1022
  * Padding X
1023
1023
  * @see https://tailwindcss.com/docs/padding
1024
1024
  */
1025
1025
  px: [{
1026
- px: [x]
1026
+ px: [w]
1027
1027
  }],
1028
1028
  /**
1029
1029
  * Padding Y
1030
1030
  * @see https://tailwindcss.com/docs/padding
1031
1031
  */
1032
1032
  py: [{
1033
- py: [x]
1033
+ py: [w]
1034
1034
  }],
1035
1035
  /**
1036
1036
  * Padding Start
1037
1037
  * @see https://tailwindcss.com/docs/padding
1038
1038
  */
1039
1039
  ps: [{
1040
- ps: [x]
1040
+ ps: [w]
1041
1041
  }],
1042
1042
  /**
1043
1043
  * Padding End
1044
1044
  * @see https://tailwindcss.com/docs/padding
1045
1045
  */
1046
1046
  pe: [{
1047
- pe: [x]
1047
+ pe: [w]
1048
1048
  }],
1049
1049
  /**
1050
1050
  * Padding Top
1051
1051
  * @see https://tailwindcss.com/docs/padding
1052
1052
  */
1053
1053
  pt: [{
1054
- pt: [x]
1054
+ pt: [w]
1055
1055
  }],
1056
1056
  /**
1057
1057
  * Padding Right
1058
1058
  * @see https://tailwindcss.com/docs/padding
1059
1059
  */
1060
1060
  pr: [{
1061
- pr: [x]
1061
+ pr: [w]
1062
1062
  }],
1063
1063
  /**
1064
1064
  * Padding Bottom
1065
1065
  * @see https://tailwindcss.com/docs/padding
1066
1066
  */
1067
1067
  pb: [{
1068
- pb: [x]
1068
+ pb: [w]
1069
1069
  }],
1070
1070
  /**
1071
1071
  * Padding Left
1072
1072
  * @see https://tailwindcss.com/docs/padding
1073
1073
  */
1074
1074
  pl: [{
1075
- pl: [x]
1075
+ pl: [w]
1076
1076
  }],
1077
1077
  /**
1078
1078
  * Margin
@@ -1142,7 +1142,7 @@ function Lv() {
1142
1142
  * @see https://tailwindcss.com/docs/space
1143
1143
  */
1144
1144
  "space-x": [{
1145
- "space-x": [P]
1145
+ "space-x": [T]
1146
1146
  }],
1147
1147
  /**
1148
1148
  * Space Between X Reverse
@@ -1154,7 +1154,7 @@ function Lv() {
1154
1154
  * @see https://tailwindcss.com/docs/space
1155
1155
  */
1156
1156
  "space-y": [{
1157
- "space-y": [P]
1157
+ "space-y": [T]
1158
1158
  }],
1159
1159
  /**
1160
1160
  * Space Between Y Reverse
@@ -1330,7 +1330,7 @@ function Lv() {
1330
1330
  * @see https://tailwindcss.com/docs/placeholder-opacity
1331
1331
  */
1332
1332
  "placeholder-opacity": [{
1333
- "placeholder-opacity": [w]
1333
+ "placeholder-opacity": [x]
1334
1334
  }],
1335
1335
  /**
1336
1336
  * Text Alignment
@@ -1351,7 +1351,7 @@ function Lv() {
1351
1351
  * @see https://tailwindcss.com/docs/text-opacity
1352
1352
  */
1353
1353
  "text-opacity": [{
1354
- "text-opacity": [w]
1354
+ "text-opacity": [x]
1355
1355
  }],
1356
1356
  /**
1357
1357
  * Text Decoration
@@ -1466,7 +1466,7 @@ function Lv() {
1466
1466
  * @see https://tailwindcss.com/docs/background-opacity
1467
1467
  */
1468
1468
  "bg-opacity": [{
1469
- "bg-opacity": [w]
1469
+ "bg-opacity": [x]
1470
1470
  }],
1471
1471
  /**
1472
1472
  * Background Origin
@@ -1730,7 +1730,7 @@ function Lv() {
1730
1730
  * @see https://tailwindcss.com/docs/border-opacity
1731
1731
  */
1732
1732
  "border-opacity": [{
1733
- "border-opacity": [w]
1733
+ "border-opacity": [x]
1734
1734
  }],
1735
1735
  /**
1736
1736
  * Border Style
@@ -1768,7 +1768,7 @@ function Lv() {
1768
1768
  * @see https://tailwindcss.com/docs/divide-opacity
1769
1769
  */
1770
1770
  "divide-opacity": [{
1771
- "divide-opacity": [w]
1771
+ "divide-opacity": [x]
1772
1772
  }],
1773
1773
  /**
1774
1774
  * Divide Style
@@ -1885,7 +1885,7 @@ function Lv() {
1885
1885
  * @see https://tailwindcss.com/docs/ring-opacity
1886
1886
  */
1887
1887
  "ring-opacity": [{
1888
- "ring-opacity": [w]
1888
+ "ring-opacity": [x]
1889
1889
  }],
1890
1890
  /**
1891
1891
  * Ring Offset Width
@@ -1921,7 +1921,7 @@ function Lv() {
1921
1921
  * @see https://tailwindcss.com/docs/opacity
1922
1922
  */
1923
1923
  opacity: [{
1924
- opacity: [w]
1924
+ opacity: [x]
1925
1925
  }],
1926
1926
  /**
1927
1927
  * Mix Blend Mode
@@ -2064,7 +2064,7 @@ function Lv() {
2064
2064
  * @see https://tailwindcss.com/docs/backdrop-opacity
2065
2065
  */
2066
2066
  "backdrop-opacity": [{
2067
- "backdrop-opacity": [w]
2067
+ "backdrop-opacity": [x]
2068
2068
  }],
2069
2069
  /**
2070
2070
  * Backdrop Saturate
@@ -4241,12 +4241,12 @@ const kg = Oe(
4241
4241
  size: g = "md",
4242
4242
  theme: m = {},
4243
4243
  ...p
4244
- }, w) => {
4245
- const { buttonGroup: x, button: k } = ue(), v = te(k, m), y = p;
4244
+ }, x) => {
4245
+ const { buttonGroup: w, button: k } = ue(), v = te(k, m), y = p;
4246
4246
  return /* @__PURE__ */ b(
4247
4247
  fc,
4248
4248
  {
4249
- ref: w,
4249
+ ref: x,
4250
4250
  disabled: n,
4251
4251
  className: Y(
4252
4252
  v.base,
@@ -4257,7 +4257,7 @@ const kg = Oe(
4257
4257
  u && (v.outline.color[r] ?? v.outline.color.default),
4258
4258
  v.pill[f ? "on" : "off"],
4259
4259
  a && v.fullSized,
4260
- x.position[h],
4260
+ w.position[h],
4261
4261
  e
4262
4262
  ),
4263
4263
  ...y,
@@ -4274,7 +4274,7 @@ const kg = Oe(
4274
4274
  i && v.inner.isProcessingPadding[g],
4275
4275
  v.inner.position[h]
4276
4276
  ),
4277
- children: /* @__PURE__ */ G(Vt, { children: [
4277
+ children: /* @__PURE__ */ G($t, { children: [
4278
4278
  i && /* @__PURE__ */ b("span", { className: Y(v.spinnerSlot, v.spinnerLeftPosition[g]), children: o || /* @__PURE__ */ b(vg, { size: g }) }),
4279
4279
  typeof t < "u" ? t : /* @__PURE__ */ b("span", { "data-testid": "flowbite-button-label", className: Y(v.label), children: i ? s : d })
4280
4280
  ] })
@@ -4606,7 +4606,7 @@ const ni = Oe(
4606
4606
  ...d
4607
4607
  }, u) => {
4608
4608
  const f = te(ue().textInput, l);
4609
- return /* @__PURE__ */ G(Vt, { children: [
4609
+ return /* @__PURE__ */ G($t, { children: [
4610
4610
  /* @__PURE__ */ G("div", { className: Y(f.base, e), children: [
4611
4611
  t && /* @__PURE__ */ b("span", { className: f.addon, children: t }),
4612
4612
  /* @__PURE__ */ G("div", { className: f.field.base, children: [
@@ -4703,22 +4703,22 @@ const yi = (t, e, r) => {
4703
4703
  changeSelectedDate: o,
4704
4704
  language: l
4705
4705
  } = oo(), c = te(e.views.days, t), d = Wx(l, r), u = $x(i, r);
4706
- return /* @__PURE__ */ G(Vt, { children: [
4706
+ return /* @__PURE__ */ G($t, { children: [
4707
4707
  /* @__PURE__ */ b("div", { className: c.header.base, children: d.map((f, h) => /* @__PURE__ */ b("span", { className: c.header.title, children: f }, h)) }),
4708
4708
  /* @__PURE__ */ b("div", { className: c.items.base, children: [...Array(42)].map((f, h) => {
4709
- const g = gc(u, h), m = Va(l, g, { day: "numeric" }), p = lo(s, g), w = !yi(g, n, a);
4709
+ const g = gc(u, h), m = Va(l, g, { day: "numeric" }), p = lo(s, g), x = !yi(g, n, a);
4710
4710
  return /* @__PURE__ */ b(
4711
4711
  "button",
4712
4712
  {
4713
- disabled: w,
4713
+ disabled: x,
4714
4714
  type: "button",
4715
4715
  className: Y(
4716
4716
  c.items.item.base,
4717
4717
  p && c.items.item.selected,
4718
- w && c.items.item.disabled
4718
+ x && c.items.item.disabled
4719
4719
  ),
4720
4720
  onClick: () => {
4721
- w || o(g, !0);
4721
+ x || o(g, !0);
4722
4722
  },
4723
4723
  children: m
4724
4724
  },
@@ -4824,15 +4824,15 @@ const yi = (t, e, r) => {
4824
4824
  theme: g = {},
4825
4825
  onSelectedDateChanged: m,
4826
4826
  ...p
4827
- }, w) => {
4828
- const x = te(ue().datepicker, g);
4827
+ }, x) => {
4828
+ const w = te(ue().datepicker, g);
4829
4829
  l = Lx(l, c, d);
4830
- const [k, v] = ge(e), [y, O] = ge($e.Days), [P, M] = ge(l), [T, C] = ge(l), z = Kt(null), F = Kt(null), _ = (Z, R) => {
4830
+ const [k, v] = ge(e), [y, O] = ge($e.Days), [T, M] = ge(l), [P, C] = ge(l), z = Kt(null), F = Kt(null), _ = (Z, R) => {
4831
4831
  M(Z), m && m(Z), n && y === $e.Days && R == !0 && !r && v(!1);
4832
4832
  }, S = () => {
4833
4833
  _(l, !0), l && C(l);
4834
4834
  };
4835
- Qh(w, () => ({
4835
+ Qh(x, () => ({
4836
4836
  focus() {
4837
4837
  var Z;
4838
4838
  (Z = z.current) == null || Z.focus();
@@ -4844,14 +4844,14 @@ const yi = (t, e, r) => {
4844
4844
  const E = (Z) => {
4845
4845
  switch (Z) {
4846
4846
  case $e.Decades:
4847
- return /* @__PURE__ */ b(Bx, { theme: x.views.decades });
4847
+ return /* @__PURE__ */ b(Bx, { theme: w.views.decades });
4848
4848
  case $e.Years:
4849
- return /* @__PURE__ */ b(Vx, { theme: x.views.years });
4849
+ return /* @__PURE__ */ b(Vx, { theme: w.views.years });
4850
4850
  case $e.Months:
4851
- return /* @__PURE__ */ b(Yx, { theme: x.views.months });
4851
+ return /* @__PURE__ */ b(Yx, { theme: w.views.months });
4852
4852
  case $e.Days:
4853
4853
  default:
4854
- return /* @__PURE__ */ b(Hx, { theme: x.views.days });
4854
+ return /* @__PURE__ */ b(Hx, { theme: w.views.days });
4855
4855
  }
4856
4856
  }, L = () => {
4857
4857
  switch (y) {
@@ -4866,14 +4866,14 @@ const yi = (t, e, r) => {
4866
4866
  }, B = () => {
4867
4867
  switch (y) {
4868
4868
  case $e.Decades:
4869
- return `${Kn(T, 100)} - ${Kn(T, 100) + 90}`;
4869
+ return `${Kn(P, 100)} - ${Kn(P, 100) + 90}`;
4870
4870
  case $e.Years:
4871
- return `${Kn(T, 10)} - ${Kn(T, 10) + 9}`;
4871
+ return `${Kn(P, 10)} - ${Kn(P, 10) + 9}`;
4872
4872
  case $e.Months:
4873
- return Va(u, T, { year: "numeric" });
4873
+ return Va(u, P, { year: "numeric" });
4874
4874
  case $e.Days:
4875
4875
  default:
4876
- return Va(u, T, { month: "long", year: "numeric" });
4876
+ return Va(u, P, { month: "long", year: "numeric" });
4877
4877
  }
4878
4878
  }, U = (Z, R, j) => {
4879
4879
  switch (Z) {
@@ -4902,7 +4902,7 @@ const yi = (t, e, r) => {
4902
4902
  Tg.Provider,
4903
4903
  {
4904
4904
  value: {
4905
- theme: x,
4905
+ theme: w,
4906
4906
  language: u,
4907
4907
  minDate: c,
4908
4908
  maxDate: d,
@@ -4911,40 +4911,40 @@ const yi = (t, e, r) => {
4911
4911
  setIsOpen: v,
4912
4912
  view: y,
4913
4913
  setView: O,
4914
- viewDate: T,
4914
+ viewDate: P,
4915
4915
  setViewDate: C,
4916
- selectedDate: P,
4916
+ selectedDate: T,
4917
4917
  setSelectedDate: M,
4918
4918
  changeSelectedDate: _
4919
4919
  },
4920
- children: /* @__PURE__ */ G("div", { className: Y(x.root.base, h), children: [
4920
+ children: /* @__PURE__ */ G("div", { className: Y(w.root.base, h), children: [
4921
4921
  !r && /* @__PURE__ */ b(
4922
4922
  ni,
4923
4923
  {
4924
- theme: x.root.input,
4924
+ theme: w.root.input,
4925
4925
  icon: Zy,
4926
4926
  ref: z,
4927
4927
  onFocus: () => {
4928
- lo(T, P) || C(P), v(!0);
4928
+ lo(P, T) || C(T), v(!0);
4929
4929
  },
4930
- value: P && Va(u, P),
4930
+ value: T && Va(u, T),
4931
4931
  readOnly: !0,
4932
4932
  ...p
4933
4933
  }
4934
4934
  ),
4935
- (k || r) && /* @__PURE__ */ b("div", { ref: F, className: Y(x.popup.root.base, r && x.popup.root.inline), children: /* @__PURE__ */ G("div", { className: x.popup.root.inner, children: [
4936
- /* @__PURE__ */ G("div", { className: x.popup.header.base, children: [
4937
- t && /* @__PURE__ */ b("div", { className: x.popup.header.title, children: t }),
4938
- /* @__PURE__ */ G("div", { className: x.popup.header.selectors.base, children: [
4935
+ (k || r) && /* @__PURE__ */ b("div", { ref: F, className: Y(w.popup.root.base, r && w.popup.root.inline), children: /* @__PURE__ */ G("div", { className: w.popup.root.inner, children: [
4936
+ /* @__PURE__ */ G("div", { className: w.popup.header.base, children: [
4937
+ t && /* @__PURE__ */ b("div", { className: w.popup.header.title, children: t }),
4938
+ /* @__PURE__ */ G("div", { className: w.popup.header.selectors.base, children: [
4939
4939
  /* @__PURE__ */ b(
4940
4940
  "button",
4941
4941
  {
4942
4942
  type: "button",
4943
4943
  className: Y(
4944
- x.popup.header.selectors.button.base,
4945
- x.popup.header.selectors.button.prev
4944
+ w.popup.header.selectors.button.base,
4945
+ w.popup.header.selectors.button.prev
4946
4946
  ),
4947
- onClick: () => C(U(y, T, -1)),
4947
+ onClick: () => C(U(y, P, -1)),
4948
4948
  children: /* @__PURE__ */ b(Ky, {})
4949
4949
  }
4950
4950
  ),
@@ -4953,8 +4953,8 @@ const yi = (t, e, r) => {
4953
4953
  {
4954
4954
  type: "button",
4955
4955
  className: Y(
4956
- x.popup.header.selectors.button.base,
4957
- x.popup.header.selectors.button.view
4956
+ w.popup.header.selectors.button.base,
4957
+ w.popup.header.selectors.button.view
4958
4958
  ),
4959
4959
  onClick: () => O(L()),
4960
4960
  children: B()
@@ -4965,22 +4965,22 @@ const yi = (t, e, r) => {
4965
4965
  {
4966
4966
  type: "button",
4967
4967
  className: Y(
4968
- x.popup.header.selectors.button.base,
4969
- x.popup.header.selectors.button.next
4968
+ w.popup.header.selectors.button.base,
4969
+ w.popup.header.selectors.button.next
4970
4970
  ),
4971
- onClick: () => C(U(y, T, 1)),
4971
+ onClick: () => C(U(y, P, 1)),
4972
4972
  children: /* @__PURE__ */ b(Qy, {})
4973
4973
  }
4974
4974
  )
4975
4975
  ] })
4976
4976
  ] }),
4977
- /* @__PURE__ */ b("div", { className: x.popup.view.base, children: E(y) }),
4978
- (a || s) && /* @__PURE__ */ G("div", { className: x.popup.footer.base, children: [
4977
+ /* @__PURE__ */ b("div", { className: w.popup.view.base, children: E(y) }),
4978
+ (a || s) && /* @__PURE__ */ G("div", { className: w.popup.footer.base, children: [
4979
4979
  s && /* @__PURE__ */ b(
4980
4980
  "button",
4981
4981
  {
4982
4982
  type: "button",
4983
- className: Y(x.popup.footer.button.base, x.popup.footer.button.today),
4983
+ className: Y(w.popup.footer.button.base, w.popup.footer.button.today),
4984
4984
  onClick: () => {
4985
4985
  const Z = /* @__PURE__ */ new Date();
4986
4986
  _(Z, !0), C(Z);
@@ -4992,7 +4992,7 @@ const yi = (t, e, r) => {
4992
4992
  "button",
4993
4993
  {
4994
4994
  type: "button",
4995
- className: Y(x.popup.footer.button.base, x.popup.footer.button.clear),
4995
+ className: Y(w.popup.footer.button.base, w.popup.footer.button.clear),
4996
4996
  onClick: () => {
4997
4997
  _(l, !0), l && C(l);
4998
4998
  },
@@ -5038,7 +5038,7 @@ function vi(t) {
5038
5038
  overflowX: r,
5039
5039
  overflowY: n,
5040
5040
  display: a
5041
- } = jt(t);
5041
+ } = Ht(t);
5042
5042
  return /auto|scroll|overlay|hidden|clip/.test(e + n + r) && !["inline", "contents"].includes(a);
5043
5043
  }
5044
5044
  function Ux(t) {
@@ -5054,7 +5054,7 @@ function uo(t) {
5054
5054
  });
5055
5055
  }
5056
5056
  function mc(t) {
5057
- const e = pc(), r = Ce(t) ? jt(t) : t;
5057
+ const e = pc(), r = Ce(t) ? Ht(t) : t;
5058
5058
  return ["transform", "translate", "scale", "rotate", "perspective"].some((n) => r[n] ? r[n] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !e && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !e && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((n) => (r.willChange || "").includes(n)) || ["paint", "layout", "strict", "content"].some((n) => (r.contain || "").includes(n));
5059
5059
  }
5060
5060
  function Xx(t) {
@@ -5074,7 +5074,7 @@ function pc() {
5074
5074
  function Qr(t) {
5075
5075
  return ["html", "body", "#document"].includes(Wn(t));
5076
5076
  }
5077
- function jt(t) {
5077
+ function Ht(t) {
5078
5078
  return Ot(t).getComputedStyle(t);
5079
5079
  }
5080
5080
  function fo(t) {
@@ -5378,13 +5378,13 @@ const sw = async (t, e, r) => {
5378
5378
  for (let m = 0; m < o.length; m++) {
5379
5379
  const {
5380
5380
  name: p,
5381
- fn: w
5381
+ fn: x
5382
5382
  } = o[m], {
5383
- x,
5383
+ x: w,
5384
5384
  y: k,
5385
5385
  data: v,
5386
5386
  reset: y
5387
- } = await w({
5387
+ } = await x({
5388
5388
  x: d,
5389
5389
  y: u,
5390
5390
  initialPlacement: n,
@@ -5398,7 +5398,7 @@ const sw = async (t, e, r) => {
5398
5398
  floating: e
5399
5399
  }
5400
5400
  });
5401
- d = x ?? d, u = k ?? u, h = {
5401
+ d = w ?? d, u = k ?? u, h = {
5402
5402
  ...h,
5403
5403
  [p]: {
5404
5404
  ...h[p],
@@ -5437,12 +5437,12 @@ async function _c(t, e) {
5437
5437
  elementContext: u = "floating",
5438
5438
  altBoundary: f = !1,
5439
5439
  padding: h = 0
5440
- } = ba(e, t), g = Hg(h), p = o[f ? u === "floating" ? "reference" : "floating" : u], w = Ds(await i.getClippingRect({
5440
+ } = ba(e, t), g = Hg(h), p = o[f ? u === "floating" ? "reference" : "floating" : u], x = Ds(await i.getClippingRect({
5441
5441
  element: (r = await (i.isElement == null ? void 0 : i.isElement(p))) == null || r ? p : p.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
5442
5442
  boundary: c,
5443
5443
  rootBoundary: d,
5444
5444
  strategy: l
5445
- })), x = u === "floating" ? {
5445
+ })), w = u === "floating" ? {
5446
5446
  ...s.floating,
5447
5447
  x: n,
5448
5448
  y: a
@@ -5454,15 +5454,15 @@ async function _c(t, e) {
5454
5454
  y: 1
5455
5455
  }, y = Ds(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
5456
5456
  elements: o,
5457
- rect: x,
5457
+ rect: w,
5458
5458
  offsetParent: k,
5459
5459
  strategy: l
5460
- }) : x);
5460
+ }) : w);
5461
5461
  return {
5462
- top: (w.top - y.top + g.top) / v.y,
5463
- bottom: (y.bottom - w.bottom + g.bottom) / v.y,
5464
- left: (w.left - y.left + g.left) / v.x,
5465
- right: (y.right - w.right + g.right) / v.x
5462
+ top: (x.top - y.top + g.top) / v.y,
5463
+ bottom: (y.bottom - x.bottom + g.bottom) / v.y,
5464
+ left: (x.left - y.left + g.left) / v.x,
5465
+ right: (y.right - x.right + g.right) / v.x
5466
5466
  };
5467
5467
  }
5468
5468
  const ow = (t) => ({
@@ -5486,10 +5486,10 @@ const ow = (t) => ({
5486
5486
  const u = Hg(d), f = {
5487
5487
  x: r,
5488
5488
  y: n
5489
- }, h = kc(a), g = wc(h), m = await s.getDimensions(c), p = h === "y", w = p ? "top" : "left", x = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth", v = i.reference[g] + i.reference[h] - f[h] - i.floating[g], y = f[h] - i.reference[h], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
5490
- let P = O ? O[k] : 0;
5491
- (!P || !await (s.isElement == null ? void 0 : s.isElement(O))) && (P = o.floating[k] || i.floating[g]);
5492
- const M = v / 2 - y / 2, T = P / 2 - m[g] / 2 - 1, C = ia(u[w], T), z = ia(u[x], T), F = C, _ = P - m[g] - z, S = P / 2 - m[g] / 2 + M, E = Il(F, S, _), L = !l.arrow && mr(a) != null && S !== E && i.reference[g] / 2 - (S < F ? C : z) - m[g] / 2 < 0, B = L ? S < F ? S - F : S - _ : 0;
5489
+ }, h = kc(a), g = wc(h), m = await s.getDimensions(c), p = h === "y", x = p ? "top" : "left", w = p ? "bottom" : "right", k = p ? "clientHeight" : "clientWidth", v = i.reference[g] + i.reference[h] - f[h] - i.floating[g], y = f[h] - i.reference[h], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
5490
+ let T = O ? O[k] : 0;
5491
+ (!T || !await (s.isElement == null ? void 0 : s.isElement(O))) && (T = o.floating[k] || i.floating[g]);
5492
+ const M = v / 2 - y / 2, P = T / 2 - m[g] / 2 - 1, C = ia(u[x], P), z = ia(u[w], P), F = C, _ = T - m[g] - z, S = T / 2 - m[g] / 2 + M, E = Il(F, S, _), L = !l.arrow && mr(a) != null && S !== E && i.reference[g] / 2 - (S < F ? C : z) - m[g] / 2 < 0, B = L ? S < F ? S - F : S - _ : 0;
5493
5493
  return {
5494
5494
  [h]: f[h] + B,
5495
5495
  data: {
@@ -5524,31 +5524,31 @@ const cw = function(t) {
5524
5524
  allowedPlacements: f = Qd,
5525
5525
  autoAlignment: h = !0,
5526
5526
  ...g
5527
- } = ba(t, e), m = u !== void 0 || f === Qd ? lw(u || null, h, f) : f, p = await _c(e, g), w = ((r = s.autoPlacement) == null ? void 0 : r.index) || 0, x = m[w];
5528
- if (x == null)
5527
+ } = ba(t, e), m = u !== void 0 || f === Qd ? lw(u || null, h, f) : f, p = await _c(e, g), x = ((r = s.autoPlacement) == null ? void 0 : r.index) || 0, w = m[x];
5528
+ if (w == null)
5529
5529
  return {};
5530
- const k = jg(x, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
5531
- if (o !== x)
5530
+ const k = jg(w, i, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
5531
+ if (o !== w)
5532
5532
  return {
5533
5533
  reset: {
5534
5534
  placement: m[0]
5535
5535
  }
5536
5536
  };
5537
- const v = [p[Rr(x)], p[k[0]], p[k[1]]], y = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
5538
- placement: x,
5537
+ const v = [p[Rr(w)], p[k[0]], p[k[1]]], y = [...((n = s.autoPlacement) == null ? void 0 : n.overflows) || [], {
5538
+ placement: w,
5539
5539
  overflows: v
5540
- }], O = m[w + 1];
5540
+ }], O = m[x + 1];
5541
5541
  if (O)
5542
5542
  return {
5543
5543
  data: {
5544
- index: w + 1,
5544
+ index: x + 1,
5545
5545
  overflows: y
5546
5546
  },
5547
5547
  reset: {
5548
5548
  placement: O
5549
5549
  }
5550
5550
  };
5551
- const P = y.map((C) => {
5551
+ const T = y.map((C) => {
5552
5552
  const z = mr(C.placement);
5553
5553
  return [C.placement, z && d ? (
5554
5554
  // Check along the mainAxis and main crossAxis side.
@@ -5557,19 +5557,19 @@ const cw = function(t) {
5557
5557
  // Check only the mainAxis.
5558
5558
  C.overflows[0]
5559
5559
  ), C.overflows];
5560
- }).sort((C, z) => C[1] - z[1]), T = ((a = P.filter((C) => C[2].slice(
5560
+ }).sort((C, z) => C[1] - z[1]), P = ((a = T.filter((C) => C[2].slice(
5561
5561
  0,
5562
5562
  // Aligned placements should not check their opposite crossAxis
5563
5563
  // side.
5564
5564
  mr(C[0]) ? 2 : 3
5565
- ).every((z) => z <= 0))[0]) == null ? void 0 : a[0]) || P[0][0];
5566
- return T !== o ? {
5565
+ ).every((z) => z <= 0))[0]) == null ? void 0 : a[0]) || T[0][0];
5566
+ return P !== o ? {
5567
5567
  data: {
5568
- index: w + 1,
5568
+ index: x + 1,
5569
5569
  overflows: y
5570
5570
  },
5571
5571
  reset: {
5572
- placement: T
5572
+ placement: P
5573
5573
  }
5574
5574
  } : {};
5575
5575
  }
@@ -5598,20 +5598,20 @@ const cw = function(t) {
5598
5598
  } = ba(t, e);
5599
5599
  if ((r = i.arrow) != null && r.alignmentOffset)
5600
5600
  return {};
5601
- const w = Rr(a), x = Rr(o) === o, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (x || !m ? [Ss(o)] : rw(o));
5601
+ const x = Rr(a), w = Rr(o) === o, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (w || !m ? [Ss(o)] : rw(o));
5602
5602
  !f && g !== "none" && v.push(...aw(o, m, g, k));
5603
- const y = [o, ...v], O = await _c(e, p), P = [];
5603
+ const y = [o, ...v], O = await _c(e, p), T = [];
5604
5604
  let M = ((n = i.flip) == null ? void 0 : n.overflows) || [];
5605
- if (d && P.push(O[w]), u) {
5605
+ if (d && T.push(O[x]), u) {
5606
5606
  const F = jg(a, s, k);
5607
- P.push(O[F[0]], O[F[1]]);
5607
+ T.push(O[F[0]], O[F[1]]);
5608
5608
  }
5609
5609
  if (M = [...M, {
5610
5610
  placement: a,
5611
- overflows: P
5612
- }], !P.every((F) => F <= 0)) {
5613
- var T, C;
5614
- const F = (((T = i.flip) == null ? void 0 : T.index) || 0) + 1, _ = y[F];
5611
+ overflows: T
5612
+ }], !T.every((F) => F <= 0)) {
5613
+ var P, C;
5614
+ const F = (((P = i.flip) == null ? void 0 : P.index) || 0) + 1, _ = y[F];
5615
5615
  if (_)
5616
5616
  return {
5617
5617
  data: {
@@ -5711,12 +5711,12 @@ const fw = function(t) {
5711
5711
  limiter: o = {
5712
5712
  fn: (p) => {
5713
5713
  let {
5714
- x: w,
5715
- y: x
5714
+ x,
5715
+ y: w
5716
5716
  } = p;
5717
5717
  return {
5718
- x: w,
5719
- y: x
5718
+ x,
5719
+ y: w
5720
5720
  };
5721
5721
  }
5722
5722
  },
@@ -5727,12 +5727,12 @@ const fw = function(t) {
5727
5727
  }, d = await _c(e, l), u = ho(Rr(a)), f = zg(u);
5728
5728
  let h = c[f], g = c[u];
5729
5729
  if (i) {
5730
- const p = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", x = h + d[p], k = h - d[w];
5731
- h = Il(x, h, k);
5730
+ const p = f === "y" ? "top" : "left", x = f === "y" ? "bottom" : "right", w = h + d[p], k = h - d[x];
5731
+ h = Il(w, h, k);
5732
5732
  }
5733
5733
  if (s) {
5734
- const p = u === "y" ? "top" : "left", w = u === "y" ? "bottom" : "right", x = g + d[p], k = g - d[w];
5735
- g = Il(x, g, k);
5734
+ const p = u === "y" ? "top" : "left", x = u === "y" ? "bottom" : "right", w = g + d[p], k = g - d[x];
5735
+ g = Il(w, g, k);
5736
5736
  }
5737
5737
  const m = o.fn({
5738
5738
  ...e,
@@ -5750,7 +5750,7 @@ const fw = function(t) {
5750
5750
  };
5751
5751
  };
5752
5752
  function Bg(t) {
5753
- const e = jt(t);
5753
+ const e = Ht(t);
5754
5754
  let r = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
5755
5755
  const a = dt(t), i = a ? t.offsetWidth : r, s = a ? t.offsetHeight : n, o = _s(r) !== i || _s(n) !== s;
5756
5756
  return o && (r = i, n = s), {
@@ -5799,7 +5799,7 @@ function Nn(t, e, r, n) {
5799
5799
  const f = Ot(i), h = n && Ce(n) ? Ot(n) : n;
5800
5800
  let g = f, m = Rl(g);
5801
5801
  for (; m && n && h !== g; ) {
5802
- const p = ea(m), w = m.getBoundingClientRect(), x = jt(m), k = w.left + (m.clientLeft + parseFloat(x.paddingLeft)) * p.x, v = w.top + (m.clientTop + parseFloat(x.paddingTop)) * p.y;
5802
+ const p = ea(m), x = m.getBoundingClientRect(), w = Ht(m), k = x.left + (m.clientLeft + parseFloat(w.paddingLeft)) * p.x, v = x.top + (m.clientTop + parseFloat(w.paddingTop)) * p.y;
5803
5803
  l *= p.x, c *= p.y, d *= p.x, u *= p.y, l += k, c += v, g = Ot(m), m = Rl(g);
5804
5804
  }
5805
5805
  }
@@ -5859,7 +5859,7 @@ function yw(t) {
5859
5859
  const e = wr(t), r = fo(t), n = t.ownerDocument.body, a = Mn(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), i = Mn(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
5860
5860
  let s = -r.scrollLeft + Sc(t);
5861
5861
  const o = -r.scrollTop;
5862
- return jt(n).direction === "rtl" && (s += Mn(e.clientWidth, n.clientWidth) - a), {
5862
+ return Ht(n).direction === "rtl" && (s += Mn(e.clientWidth, n.clientWidth) - a), {
5863
5863
  width: a,
5864
5864
  height: i,
5865
5865
  x: s,
@@ -5911,17 +5911,17 @@ function Jd(t, e, r) {
5911
5911
  }
5912
5912
  function qg(t, e) {
5913
5913
  const r = Tr(t);
5914
- return r === e || !Ce(r) || Qr(r) ? !1 : jt(r).position === "fixed" || qg(r, e);
5914
+ return r === e || !Ce(r) || Qr(r) ? !1 : Ht(r).position === "fixed" || qg(r, e);
5915
5915
  }
5916
5916
  function ww(t, e) {
5917
5917
  const r = e.get(t);
5918
5918
  if (r)
5919
5919
  return r;
5920
5920
  let n = Gr(t, [], !1).filter((o) => Ce(o) && Wn(o) !== "body"), a = null;
5921
- const i = jt(t).position === "fixed";
5921
+ const i = Ht(t).position === "fixed";
5922
5922
  let s = i ? Tr(t) : t;
5923
5923
  for (; Ce(s) && !Qr(s); ) {
5924
- const o = jt(s), l = mc(s);
5924
+ const o = Ht(s), l = mc(s);
5925
5925
  !l && o.position === "fixed" && (a = null), (i ? !l && !a : !l && o.position === "static" && !!a && ["absolute", "fixed"].includes(a.position) || vi(s) && !l && qg(t, s)) ? n = n.filter((d) => d !== s) : a = o, s = Tr(s);
5926
5926
  }
5927
5927
  return e.set(t, n), n;
@@ -5975,10 +5975,10 @@ function Ow(t, e, r) {
5975
5975
  };
5976
5976
  }
5977
5977
  function Xo(t) {
5978
- return jt(t).position === "static";
5978
+ return Ht(t).position === "static";
5979
5979
  }
5980
5980
  function eu(t, e) {
5981
- if (!dt(t) || jt(t).position === "fixed")
5981
+ if (!dt(t) || Ht(t).position === "fixed")
5982
5982
  return null;
5983
5983
  if (e)
5984
5984
  return e(t);
@@ -6016,7 +6016,7 @@ const Sw = async function(t) {
6016
6016
  };
6017
6017
  };
6018
6018
  function Dw(t) {
6019
- return jt(t).direction === "rtl";
6019
+ return Ht(t).direction === "rtl";
6020
6020
  }
6021
6021
  const Mw = {
6022
6022
  convertOffsetParentRelativeRectToViewportRelativeRect: pw,
@@ -6050,21 +6050,21 @@ function Cw(t, e) {
6050
6050
  } = c;
6051
6051
  if (o || e(), !f || !h)
6052
6052
  return;
6053
- const g = Qn(u), m = Qn(a.clientWidth - (d + f)), p = Qn(a.clientHeight - (u + h)), w = Qn(d), k = {
6054
- rootMargin: -g + "px " + -m + "px " + -p + "px " + -w + "px",
6053
+ const g = Qn(u), m = Qn(a.clientWidth - (d + f)), p = Qn(a.clientHeight - (u + h)), x = Qn(d), k = {
6054
+ rootMargin: -g + "px " + -m + "px " + -p + "px " + -x + "px",
6055
6055
  threshold: Mn(0, ia(1, l)) || 1
6056
6056
  };
6057
6057
  let v = !0;
6058
6058
  function y(O) {
6059
- const P = O[0].intersectionRatio;
6060
- if (P !== l) {
6059
+ const T = O[0].intersectionRatio;
6060
+ if (T !== l) {
6061
6061
  if (!v)
6062
6062
  return s();
6063
- P ? s(!1, P) : n = setTimeout(() => {
6063
+ T ? s(!1, T) : n = setTimeout(() => {
6064
6064
  s(!1, 1e-7);
6065
6065
  }, 1e3);
6066
6066
  }
6067
- P === 1 && !Xg(c, t.getBoundingClientRect()) && s(), v = !1;
6067
+ T === 1 && !Xg(c, t.getBoundingClientRect()) && s(), v = !1;
6068
6068
  }
6069
6069
  try {
6070
6070
  r = new IntersectionObserver(y, {
@@ -6088,16 +6088,16 @@ function Gg(t, e, r, n) {
6088
6088
  layoutShift: o = typeof IntersectionObserver == "function",
6089
6089
  animationFrame: l = !1
6090
6090
  } = n, c = Oc(t), d = a || i ? [...c ? Gr(c) : [], ...Gr(e)] : [];
6091
- d.forEach((w) => {
6092
- a && w.addEventListener("scroll", r, {
6091
+ d.forEach((x) => {
6092
+ a && x.addEventListener("scroll", r, {
6093
6093
  passive: !0
6094
- }), i && w.addEventListener("resize", r);
6094
+ }), i && x.addEventListener("resize", r);
6095
6095
  });
6096
6096
  const u = c && o ? Cw(c, r) : null;
6097
6097
  let f = -1, h = null;
6098
- s && (h = new ResizeObserver((w) => {
6099
- let [x] = w;
6100
- x && x.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
6098
+ s && (h = new ResizeObserver((x) => {
6099
+ let [w] = x;
6100
+ w && w.target === c && h && (h.unobserve(e), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
6101
6101
  var k;
6102
6102
  (k = h) == null || k.observe(e);
6103
6103
  })), r();
@@ -6105,14 +6105,14 @@ function Gg(t, e, r, n) {
6105
6105
  let g, m = l ? Nn(t) : null;
6106
6106
  l && p();
6107
6107
  function p() {
6108
- const w = Nn(t);
6109
- m && !Xg(m, w) && r(), m = w, g = requestAnimationFrame(p);
6108
+ const x = Nn(t);
6109
+ m && !Xg(m, x) && r(), m = x, g = requestAnimationFrame(p);
6110
6110
  }
6111
6111
  return r(), () => {
6112
- var w;
6113
- d.forEach((x) => {
6114
- a && x.removeEventListener("scroll", r), i && x.removeEventListener("resize", r);
6115
- }), u == null || u(), (w = h) == null || w.disconnect(), h = null, l && cancelAnimationFrame(g);
6112
+ var x;
6113
+ d.forEach((w) => {
6114
+ a && w.removeEventListener("scroll", r), i && w.removeEventListener("resize", r);
6115
+ }), u == null || u(), (x = h) == null || x.disconnect(), h = null, l && cancelAnimationFrame(g);
6116
6116
  };
6117
6117
  }
6118
6118
  const Ew = fw, Pw = cw, Tw = hw, Rw = dw, tu = ow, Nw = (t, e, r) => {
@@ -6195,19 +6195,19 @@ function Iw(t) {
6195
6195
  isPositioned: !1
6196
6196
  }), [f, h] = W.useState(n);
6197
6197
  Ms(f, n) || h(n);
6198
- const [g, m] = W.useState(null), [p, w] = W.useState(null), x = W.useCallback((U) => {
6198
+ const [g, m] = W.useState(null), [p, x] = W.useState(null), w = W.useCallback((U) => {
6199
6199
  U !== O.current && (O.current = U, m(U));
6200
6200
  }, []), k = W.useCallback((U) => {
6201
- U !== P.current && (P.current = U, w(U));
6202
- }, []), v = i || g, y = s || p, O = W.useRef(null), P = W.useRef(null), M = W.useRef(d), T = l != null, C = Go(l), z = Go(a), F = Go(c), _ = W.useCallback(() => {
6203
- if (!O.current || !P.current)
6201
+ U !== T.current && (T.current = U, x(U));
6202
+ }, []), v = i || g, y = s || p, O = W.useRef(null), T = W.useRef(null), M = W.useRef(d), P = l != null, C = Go(l), z = Go(a), F = Go(c), _ = W.useCallback(() => {
6203
+ if (!O.current || !T.current)
6204
6204
  return;
6205
6205
  const U = {
6206
6206
  placement: e,
6207
6207
  strategy: r,
6208
6208
  middleware: f
6209
6209
  };
6210
- z.current && (U.platform = z.current), Nw(O.current, P.current, U).then((Z) => {
6210
+ z.current && (U.platform = z.current), Nw(O.current, T.current, U).then((Z) => {
6211
6211
  const R = {
6212
6212
  ...Z,
6213
6213
  // The floating element's position may be recomputed while it's closed
@@ -6231,18 +6231,18 @@ function Iw(t) {
6231
6231
  cs(() => (S.current = !0, () => {
6232
6232
  S.current = !1;
6233
6233
  }), []), cs(() => {
6234
- if (v && (O.current = v), y && (P.current = y), v && y) {
6234
+ if (v && (O.current = v), y && (T.current = y), v && y) {
6235
6235
  if (C.current)
6236
6236
  return C.current(v, y, _);
6237
6237
  _();
6238
6238
  }
6239
- }, [v, y, _, C, T]);
6239
+ }, [v, y, _, C, P]);
6240
6240
  const E = W.useMemo(() => ({
6241
6241
  reference: O,
6242
- floating: P,
6243
- setReference: x,
6242
+ floating: T,
6243
+ setReference: w,
6244
6244
  setFloating: k
6245
- }), [x, k]), L = W.useMemo(() => ({
6245
+ }), [w, k]), L = W.useMemo(() => ({
6246
6246
  reference: v,
6247
6247
  floating: y
6248
6248
  }), [v, y]), B = W.useMemo(() => {
@@ -6826,7 +6826,7 @@ function k1(t, e) {
6826
6826
  mouseOnly: f = !1,
6827
6827
  restMs: h = 0,
6828
6828
  move: g = !0
6829
- } = e, m = wi(), p = po(), w = pr(u), x = pr(d), k = W.useRef(), v = W.useRef(), y = W.useRef(), O = W.useRef(), P = W.useRef(!0), M = W.useRef(!1), T = W.useRef(() => {
6829
+ } = e, m = wi(), p = po(), x = pr(u), w = pr(d), k = W.useRef(), v = W.useRef(), y = W.useRef(), O = W.useRef(), T = W.useRef(!0), M = W.useRef(!1), P = W.useRef(() => {
6830
6830
  }), C = W.useCallback(() => {
6831
6831
  var S;
6832
6832
  const E = (S = a.current.openEvent) == null ? void 0 : S.type;
@@ -6839,13 +6839,13 @@ function k1(t, e) {
6839
6839
  let {
6840
6840
  open: L
6841
6841
  } = E;
6842
- L || (clearTimeout(v.current), clearTimeout(O.current), P.current = !0);
6842
+ L || (clearTimeout(v.current), clearTimeout(O.current), T.current = !0);
6843
6843
  }
6844
6844
  return i.on("openchange", S), () => {
6845
6845
  i.off("openchange", S);
6846
6846
  };
6847
6847
  }, [c, i]), W.useEffect(() => {
6848
- if (!c || !w.current || !r)
6848
+ if (!c || !x.current || !r)
6849
6849
  return;
6850
6850
  function S(L) {
6851
6851
  C() && n(!1, L, "hover");
@@ -6854,13 +6854,13 @@ function k1(t, e) {
6854
6854
  return E.addEventListener("mouseleave", S), () => {
6855
6855
  E.removeEventListener("mouseleave", S);
6856
6856
  };
6857
- }, [o, r, n, c, w, C]);
6857
+ }, [o, r, n, c, x, C]);
6858
6858
  const z = W.useCallback(function(S, E, L) {
6859
6859
  E === void 0 && (E = !0), L === void 0 && (L = "hover");
6860
- const B = Zo(x.current, "close", k.current);
6860
+ const B = Zo(w.current, "close", k.current);
6861
6861
  B && !y.current ? (clearTimeout(v.current), v.current = setTimeout(() => n(!1, S, L), B)) : E && (clearTimeout(v.current), n(!1, S, L));
6862
- }, [x, n]), F = W.useCallback(() => {
6863
- T.current(), y.current = void 0;
6862
+ }, [w, n]), F = W.useCallback(() => {
6863
+ P.current(), y.current = void 0;
6864
6864
  }, []), _ = W.useCallback(() => {
6865
6865
  if (M.current) {
6866
6866
  const S = yt(l.floating.current).body;
@@ -6874,9 +6874,9 @@ function k1(t, e) {
6874
6874
  return a.current.openEvent ? ["click", "mousedown"].includes(a.current.openEvent.type) : !1;
6875
6875
  }
6876
6876
  function E(U) {
6877
- if (clearTimeout(v.current), P.current = !1, f && !ks(k.current) || h > 0 && Zo(x.current, "open") === 0)
6877
+ if (clearTimeout(v.current), T.current = !1, f && !ks(k.current) || h > 0 && Zo(w.current, "open") === 0)
6878
6878
  return;
6879
- const Z = Zo(x.current, "open", k.current);
6879
+ const Z = Zo(w.current, "open", k.current);
6880
6880
  Z ? v.current = setTimeout(() => {
6881
6881
  n(!0, U, "hover");
6882
6882
  }, Z) : n(!0, U, "hover");
@@ -6884,10 +6884,10 @@ function k1(t, e) {
6884
6884
  function L(U) {
6885
6885
  if (S())
6886
6886
  return;
6887
- T.current();
6887
+ P.current();
6888
6888
  const Z = yt(o);
6889
- if (clearTimeout(O.current), w.current) {
6890
- r || clearTimeout(v.current), y.current = w.current({
6889
+ if (clearTimeout(O.current), x.current) {
6890
+ r || clearTimeout(v.current), y.current = x.current({
6891
6891
  ...t,
6892
6892
  tree: m,
6893
6893
  x: U.clientX,
@@ -6897,7 +6897,7 @@ function k1(t, e) {
6897
6897
  }
6898
6898
  });
6899
6899
  const j = y.current;
6900
- Z.addEventListener("mousemove", j), T.current = () => {
6900
+ Z.addEventListener("mousemove", j), P.current = () => {
6901
6901
  Z.removeEventListener("mousemove", j);
6902
6902
  };
6903
6903
  return;
@@ -6905,7 +6905,7 @@ function k1(t, e) {
6905
6905
  (k.current === "touch" ? !Ge(o, U.relatedTarget) : !0) && z(U);
6906
6906
  }
6907
6907
  function B(U) {
6908
- S() || w.current == null || w.current({
6908
+ S() || x.current == null || x.current({
6909
6909
  ...t,
6910
6910
  tree: m,
6911
6911
  x: U.clientX,
@@ -6923,9 +6923,9 @@ function k1(t, e) {
6923
6923
  r && U.removeEventListener("mouseleave", B), o == null || o.removeEventListener("mouseleave", B), g && U.removeEventListener("mousemove", E), U.removeEventListener("mouseenter", E), U.removeEventListener("mouseleave", L);
6924
6924
  };
6925
6925
  }
6926
- }, [s, o, c, t, f, h, g, z, F, _, n, r, m, x, w, a]), Re(() => {
6926
+ }, [s, o, c, t, f, h, g, z, F, _, n, r, m, w, x, a]), Re(() => {
6927
6927
  var S;
6928
- if (c && r && (S = w.current) != null && S.__options.blockPointerEvents && C()) {
6928
+ if (c && r && (S = x.current) != null && S.__options.blockPointerEvents && C()) {
6929
6929
  const L = yt(o).body;
6930
6930
  if (L.setAttribute(ou, ""), L.style.pointerEvents = "none", M.current = !0, Ce(s) && o) {
6931
6931
  var E;
@@ -6935,7 +6935,7 @@ function k1(t, e) {
6935
6935
  };
6936
6936
  }
6937
6937
  }
6938
- }, [c, r, p, o, s, m, w, C]), Re(() => {
6938
+ }, [c, r, p, o, s, m, x, C]), Re(() => {
6939
6939
  r || (k.current = void 0, F(), _());
6940
6940
  }, [r, F, _]), W.useEffect(() => () => {
6941
6941
  F(), clearTimeout(v.current), clearTimeout(O.current), _();
@@ -6951,7 +6951,7 @@ function k1(t, e) {
6951
6951
  onPointerEnter: S,
6952
6952
  onMouseMove(E) {
6953
6953
  r || h === 0 || (clearTimeout(O.current), O.current = setTimeout(() => {
6954
- P.current || n(!0, E.nativeEvent, "hover");
6954
+ T.current || n(!0, E.nativeEvent, "hover");
6955
6955
  }, h));
6956
6956
  }
6957
6957
  },
@@ -7019,8 +7019,8 @@ function M1(t, e, r, n) {
7019
7019
  if (o.has(g))
7020
7020
  f(g);
7021
7021
  else {
7022
- const m = i ? g.getAttribute(i) : null, p = m !== null && m !== "false", w = (Bn.get(g) || 0) + 1, x = (d.get(g) || 0) + 1;
7023
- Bn.set(g, w), d.set(g, x), c.push(g), w === 1 && p && $i.add(g), x === 1 && g.setAttribute(a, ""), !p && i && g.setAttribute(i, "true");
7022
+ const m = i ? g.getAttribute(i) : null, p = m !== null && m !== "false", x = (Bn.get(g) || 0) + 1, w = (d.get(g) || 0) + 1;
7023
+ Bn.set(g, x), d.set(g, w), c.push(g), x === 1 && p && $i.add(g), w === 1 && g.setAttribute(a, ""), !p && i && g.setAttribute(i, "true");
7024
7024
  }
7025
7025
  });
7026
7026
  }
@@ -7241,29 +7241,29 @@ function cm(t) {
7241
7241
  events: m,
7242
7242
  dataRef: p,
7243
7243
  elements: {
7244
- domReference: w,
7245
- floating: x
7244
+ domReference: x,
7245
+ floating: w
7246
7246
  }
7247
- } = e, k = typeof s == "number" && s < 0, v = Wg(w) && k, y = S1() ? i : !0, O = pr(a), P = pr(s), M = pr(o), T = wi(), C = lm(), z = W.useRef(null), F = W.useRef(null), _ = W.useRef(!1), S = W.useRef(!1), E = C != null, L = W.useCallback(function(R) {
7248
- return R === void 0 && (R = x), R ? go(R, ii()) : [];
7249
- }, [x]), B = W.useCallback((R) => {
7247
+ } = e, k = typeof s == "number" && s < 0, v = Wg(x) && k, y = S1() ? i : !0, O = pr(a), T = pr(s), M = pr(o), P = wi(), C = lm(), z = W.useRef(null), F = W.useRef(null), _ = W.useRef(!1), S = W.useRef(!1), E = C != null, L = W.useCallback(function(R) {
7248
+ return R === void 0 && (R = w), R ? go(R, ii()) : [];
7249
+ }, [w]), B = W.useCallback((R) => {
7250
7250
  const j = L(R);
7251
- return O.current.map((A) => w && A === "reference" ? w : x && A === "floating" ? x : j).filter(Boolean).flat();
7252
- }, [w, x, O, L]);
7251
+ return O.current.map((A) => x && A === "reference" ? x : w && A === "floating" ? w : j).filter(Boolean).flat();
7252
+ }, [x, w, O, L]);
7253
7253
  W.useEffect(() => {
7254
7254
  if (n || !l) return;
7255
7255
  function R(A) {
7256
7256
  if (A.key === "Tab") {
7257
- Ge(x, or(yt(x))) && L().length === 0 && !v && st(A);
7257
+ Ge(w, or(yt(w))) && L().length === 0 && !v && st(A);
7258
7258
  const I = B(), N = qr(A);
7259
- O.current[0] === "reference" && N === w && (st(A), A.shiftKey ? Cr(I[I.length - 1]) : Cr(I[1])), O.current[1] === "floating" && N === x && A.shiftKey && (st(A), Cr(I[0]));
7259
+ O.current[0] === "reference" && N === x && (st(A), A.shiftKey ? Cr(I[I.length - 1]) : Cr(I[1])), O.current[1] === "floating" && N === w && A.shiftKey && (st(A), Cr(I[0]));
7260
7260
  }
7261
7261
  }
7262
- const j = yt(x);
7262
+ const j = yt(w);
7263
7263
  return j.addEventListener("keydown", R), () => {
7264
7264
  j.removeEventListener("keydown", R);
7265
7265
  };
7266
- }, [n, w, x, l, O, v, L, B]), W.useEffect(() => {
7266
+ }, [n, x, w, l, O, v, L, B]), W.useEffect(() => {
7267
7267
  if (n || !d) return;
7268
7268
  function R() {
7269
7269
  S.current = !0, setTimeout(() => {
@@ -7273,10 +7273,10 @@ function cm(t) {
7273
7273
  function j(A) {
7274
7274
  const I = A.relatedTarget;
7275
7275
  queueMicrotask(() => {
7276
- const N = !(Ge(w, I) || Ge(x, I) || Ge(I, x) || Ge(C == null ? void 0 : C.portalNode, I) || I != null && I.hasAttribute(In("focus-guard")) || T && (Cn(T.nodesRef.current, h).find((D) => {
7276
+ const N = !(Ge(x, I) || Ge(w, I) || Ge(I, w) || Ge(C == null ? void 0 : C.portalNode, I) || I != null && I.hasAttribute(In("focus-guard")) || P && (Cn(P.nodesRef.current, h).find((D) => {
7277
7277
  var $, X;
7278
7278
  return Ge(($ = D.context) == null ? void 0 : $.elements.floating, I) || Ge((X = D.context) == null ? void 0 : X.elements.domReference, I);
7279
- }) || _1(T.nodesRef.current, h).find((D) => {
7279
+ }) || _1(P.nodesRef.current, h).find((D) => {
7280
7280
  var $, X;
7281
7281
  return (($ = D.context) == null ? void 0 : $.elements.floating) === I || ((X = D.context) == null ? void 0 : X.elements.domReference) === I;
7282
7282
  })));
@@ -7284,33 +7284,33 @@ function cm(t) {
7284
7284
  I !== uu() && (_.current = !0, g(!1, A));
7285
7285
  });
7286
7286
  }
7287
- if (x && dt(w))
7288
- return w.addEventListener("focusout", j), w.addEventListener("pointerdown", R), !l && x.addEventListener("focusout", j), () => {
7289
- w.removeEventListener("focusout", j), w.removeEventListener("pointerdown", R), !l && x.removeEventListener("focusout", j);
7287
+ if (w && dt(x))
7288
+ return x.addEventListener("focusout", j), x.addEventListener("pointerdown", R), !l && w.addEventListener("focusout", j), () => {
7289
+ x.removeEventListener("focusout", j), x.removeEventListener("pointerdown", R), !l && w.removeEventListener("focusout", j);
7290
7290
  };
7291
- }, [n, w, x, l, h, T, C, g, d]), W.useEffect(() => {
7291
+ }, [n, x, w, l, h, P, C, g, d]), W.useEffect(() => {
7292
7292
  var R;
7293
7293
  if (n) return;
7294
7294
  const j = Array.from((C == null || (R = C.portalNode) == null ? void 0 : R.querySelectorAll("[" + In("portal") + "]")) || []);
7295
- if (x) {
7296
- const A = [x, ...j, z.current, F.current, O.current.includes("reference") || v ? w : null].filter((N) => N != null), I = l || v ? lu(A, y, !y) : lu(A);
7295
+ if (w) {
7296
+ const A = [w, ...j, z.current, F.current, O.current.includes("reference") || v ? x : null].filter((N) => N != null), I = l || v ? lu(A, y, !y) : lu(A);
7297
7297
  return () => {
7298
7298
  I();
7299
7299
  };
7300
7300
  }
7301
- }, [n, w, x, l, O, C, v, y]), Re(() => {
7302
- if (n || !x) return;
7303
- const R = yt(x), j = or(R);
7301
+ }, [n, x, w, l, O, C, v, y]), Re(() => {
7302
+ if (n || !w) return;
7303
+ const R = yt(w), j = or(R);
7304
7304
  queueMicrotask(() => {
7305
- const A = B(x), I = P.current, N = (typeof I == "number" ? A[I] : I.current) || x, D = Ge(x, j);
7305
+ const A = B(w), I = T.current, N = (typeof I == "number" ? A[I] : I.current) || w, D = Ge(w, j);
7306
7306
  !k && !D && u && Cr(N, {
7307
- preventScroll: N === x
7307
+ preventScroll: N === w
7308
7308
  });
7309
7309
  });
7310
- }, [n, u, x, k, B, P]), Re(() => {
7311
- if (n || !x) return;
7310
+ }, [n, u, w, k, B, T]), Re(() => {
7311
+ if (n || !w) return;
7312
7312
  let R = !1;
7313
- const j = yt(x), A = or(j), I = p.current;
7313
+ const j = yt(w), A = or(j), I = p.current;
7314
7314
  el(A);
7315
7315
  function N(D) {
7316
7316
  let {
@@ -7322,7 +7322,7 @@ function cm(t) {
7322
7322
  }
7323
7323
  return m.on("openchange", N), () => {
7324
7324
  m.off("openchange", N);
7325
- const D = or(j), $ = Ge(x, D) || T && Cn(T.nodesRef.current, h).some((K) => {
7325
+ const D = or(j), $ = Ge(w, D) || P && Cn(P.nodesRef.current, h).some((K) => {
7326
7326
  var J;
7327
7327
  return Ge((J = K.context) == null ? void 0 : J.elements.floating, D);
7328
7328
  });
@@ -7340,7 +7340,7 @@ function cm(t) {
7340
7340
  preventScroll: R
7341
7341
  });
7342
7342
  };
7343
- }, [n, x, M, p, f, m, T, h]), Re(() => {
7343
+ }, [n, w, M, p, f, m, P, h]), Re(() => {
7344
7344
  if (!(n || !C))
7345
7345
  return C.setFocusManagerState({
7346
7346
  modal: l,
@@ -7352,22 +7352,22 @@ function cm(t) {
7352
7352
  C.setFocusManagerState(null);
7353
7353
  };
7354
7354
  }, [n, C, l, u, g, f, d]), Re(() => {
7355
- if (n || !x || typeof MutationObserver != "function" || k)
7355
+ if (n || !w || typeof MutationObserver != "function" || k)
7356
7356
  return;
7357
7357
  const R = () => {
7358
- const A = x.getAttribute("tabindex");
7359
- O.current.includes("floating") || or(yt(x)) !== f.domReference.current && L().length === 0 ? A !== "0" && x.setAttribute("tabindex", "0") : A !== "-1" && x.setAttribute("tabindex", "-1");
7358
+ const A = w.getAttribute("tabindex");
7359
+ O.current.includes("floating") || or(yt(w)) !== f.domReference.current && L().length === 0 ? A !== "0" && w.setAttribute("tabindex", "0") : A !== "-1" && w.setAttribute("tabindex", "-1");
7360
7360
  };
7361
7361
  R();
7362
7362
  const j = new MutationObserver(R);
7363
- return j.observe(x, {
7363
+ return j.observe(w, {
7364
7364
  childList: !0,
7365
7365
  subtree: !0,
7366
7366
  attributes: !0
7367
7367
  }), () => {
7368
7368
  j.disconnect();
7369
7369
  };
7370
- }, [n, x, f, O, L, k]);
7370
+ }, [n, w, f, O, L, k]);
7371
7371
  function U(R) {
7372
7372
  return n || !c || !l ? null : /* @__PURE__ */ W.createElement(I1, {
7373
7373
  ref: R === "start" ? z : F,
@@ -7384,7 +7384,7 @@ function cm(t) {
7384
7384
  Cr(a[0] === "reference" ? A[0] : A[A.length - 1]);
7385
7385
  } else if (C != null && C.preserveTabOrder && C.portalNode)
7386
7386
  if (_.current = !1, Ua(R, C.portalNode)) {
7387
- const A = im() || w;
7387
+ const A = im() || x;
7388
7388
  A == null || A.focus();
7389
7389
  } else {
7390
7390
  var j;
@@ -7399,7 +7399,7 @@ function cm(t) {
7399
7399
  Cr(B()[0]);
7400
7400
  else if (C != null && C.preserveTabOrder && C.portalNode)
7401
7401
  if (d && (_.current = !0), Ua(R, C.portalNode)) {
7402
- const A = sm() || w;
7402
+ const A = sm() || x;
7403
7403
  A == null || A.focus();
7404
7404
  } else {
7405
7405
  var j;
@@ -7535,18 +7535,18 @@ function um(t, e) {
7535
7535
  referencePressEvent: g = "pointerdown",
7536
7536
  ancestorScroll: m = !1,
7537
7537
  bubbles: p,
7538
- capture: w
7539
- } = e, x = wi(), k = lr(typeof u == "function" ? u : () => !1), v = typeof u == "function" ? k : u, y = W.useRef(!1), O = W.useRef(!1), {
7540
- escapeKey: P,
7538
+ capture: x
7539
+ } = e, w = wi(), k = lr(typeof u == "function" ? u : () => !1), v = typeof u == "function" ? k : u, y = W.useRef(!1), O = W.useRef(!1), {
7540
+ escapeKey: T,
7541
7541
  outsidePress: M
7542
7542
  } = gu(p), {
7543
- escapeKey: T,
7543
+ escapeKey: P,
7544
7544
  outsidePress: C
7545
- } = gu(w), z = lr((E) => {
7545
+ } = gu(x), z = lr((E) => {
7546
7546
  if (!r || !c || !d || E.key !== "Escape")
7547
7547
  return;
7548
- const L = x ? Cn(x.nodesRef.current, a) : [];
7549
- if (!P && (E.stopPropagation(), L.length > 0)) {
7548
+ const L = w ? Cn(w.nodesRef.current, a) : [];
7549
+ if (!T && (E.stopPropagation(), L.length > 0)) {
7550
7550
  let B = !0;
7551
7551
  if (L.forEach((U) => {
7552
7552
  var Z;
@@ -7587,16 +7587,16 @@ function um(t, e) {
7587
7587
  if (dt(U) && o) {
7588
7588
  const N = U.clientWidth > 0 && U.scrollWidth > U.clientWidth, D = U.clientHeight > 0 && U.scrollHeight > U.clientHeight;
7589
7589
  let $ = D && E.offsetX > U.clientWidth;
7590
- if (D && jt(U).direction === "rtl" && ($ = E.offsetX <= U.offsetWidth - U.clientWidth), $ || N && E.offsetY > U.clientHeight)
7590
+ if (D && Ht(U).direction === "rtl" && ($ = E.offsetX <= U.offsetWidth - U.clientWidth), $ || N && E.offsetY > U.clientHeight)
7591
7591
  return;
7592
7592
  }
7593
- const A = x && Cn(x.nodesRef.current, a).some((N) => {
7593
+ const A = w && Cn(w.nodesRef.current, a).some((N) => {
7594
7594
  var D;
7595
7595
  return Uo(E, (D = N.context) == null ? void 0 : D.elements.floating);
7596
7596
  });
7597
7597
  if (Uo(E, o) || Uo(E, s) || A)
7598
7598
  return;
7599
- const I = x ? Cn(x.nodesRef.current, a) : [];
7599
+ const I = w ? Cn(w.nodesRef.current, a) : [];
7600
7600
  if (I.length > 0) {
7601
7601
  let N = !0;
7602
7602
  if (I.forEach((D) => {
@@ -7620,12 +7620,12 @@ function um(t, e) {
7620
7620
  return W.useEffect(() => {
7621
7621
  if (!r || !c)
7622
7622
  return;
7623
- l.current.__escapeKeyBubbles = P, l.current.__outsidePressBubbles = M;
7623
+ l.current.__escapeKeyBubbles = T, l.current.__outsidePressBubbles = M;
7624
7624
  function E(U) {
7625
7625
  n(!1, U, "ancestor-scroll");
7626
7626
  }
7627
7627
  const L = yt(o);
7628
- d && L.addEventListener("keydown", T ? F : z, T), v && L.addEventListener(f, C ? S : _, C);
7628
+ d && L.addEventListener("keydown", P ? F : z, P), v && L.addEventListener(f, C ? S : _, C);
7629
7629
  let B = [];
7630
7630
  return m && (Ce(s) && (B = Gr(s)), Ce(o) && (B = B.concat(Gr(o))), !Ce(i) && i && i.contextElement && (B = B.concat(Gr(i.contextElement)))), B = B.filter((U) => {
7631
7631
  var Z;
@@ -7635,11 +7635,11 @@ function um(t, e) {
7635
7635
  passive: !0
7636
7636
  });
7637
7637
  }), () => {
7638
- d && L.removeEventListener("keydown", T ? F : z, T), v && L.removeEventListener(f, C ? S : _, C), B.forEach((U) => {
7638
+ d && L.removeEventListener("keydown", P ? F : z, P), v && L.removeEventListener(f, C ? S : _, C), B.forEach((U) => {
7639
7639
  U.removeEventListener("scroll", E);
7640
7640
  });
7641
7641
  };
7642
- }, [l, o, s, i, d, v, f, r, n, m, c, P, M, z, T, F, _, C, S]), W.useEffect(() => {
7642
+ }, [l, o, s, i, d, v, f, r, n, m, c, T, M, z, P, F, _, C, S]), W.useEffect(() => {
7643
7643
  y.current = !1;
7644
7644
  }, [v, f]), W.useMemo(() => c ? {
7645
7645
  reference: {
@@ -7683,19 +7683,19 @@ function fm(t) {
7683
7683
  }
7684
7684
  }
7685
7685
  }
7686
- const [l, c] = W.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = Iw(t), f = wi(), h = po() != null, g = lr((M, T, C) => {
7687
- M && (p.current.openEvent = T), w.emit("openchange", {
7686
+ const [l, c] = W.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = Iw(t), f = wi(), h = po() != null, g = lr((M, P, C) => {
7687
+ M && (p.current.openEvent = P), x.emit("openchange", {
7688
7688
  open: M,
7689
- event: T,
7689
+ event: P,
7690
7690
  reason: C,
7691
7691
  nested: h
7692
- }), n == null || n(M, T, C);
7693
- }), m = W.useRef(null), p = W.useRef({}), w = W.useState(() => v1())[0], x = mo(), k = W.useCallback((M) => {
7694
- const T = Ce(M) ? {
7692
+ }), n == null || n(M, P, C);
7693
+ }), m = W.useRef(null), p = W.useRef({}), x = W.useState(() => v1())[0], w = mo(), k = W.useCallback((M) => {
7694
+ const P = Ce(M) ? {
7695
7695
  getBoundingClientRect: () => M.getBoundingClientRect(),
7696
7696
  contextElement: M
7697
7697
  } : M;
7698
- u.refs.setReference(T);
7698
+ u.refs.setReference(P);
7699
7699
  }, [u.refs]), v = W.useCallback((M) => {
7700
7700
  (Ce(M) || M === null) && (m.current = M, c(M)), (Ce(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
7701
7701
  // `null` to support `positionReference` + an unstable `reference`
@@ -7709,26 +7709,26 @@ function fm(t) {
7709
7709
  }), [u.refs, v, k]), O = W.useMemo(() => ({
7710
7710
  ...u.elements,
7711
7711
  domReference: d
7712
- }), [u.elements, d]), P = W.useMemo(() => ({
7712
+ }), [u.elements, d]), T = W.useMemo(() => ({
7713
7713
  ...u,
7714
7714
  refs: y,
7715
7715
  elements: O,
7716
7716
  dataRef: p,
7717
7717
  nodeId: a,
7718
- floatingId: x,
7719
- events: w,
7718
+ floatingId: w,
7719
+ events: x,
7720
7720
  open: r,
7721
7721
  onOpenChange: g
7722
- }), [u, a, x, w, r, g, y, O]);
7722
+ }), [u, a, w, x, r, g, y, O]);
7723
7723
  return Re(() => {
7724
- const M = f == null ? void 0 : f.nodesRef.current.find((T) => T.id === a);
7725
- M && (M.context = P);
7724
+ const M = f == null ? void 0 : f.nodesRef.current.find((P) => P.id === a);
7725
+ M && (M.context = T);
7726
7726
  }), W.useMemo(() => ({
7727
7727
  ...u,
7728
- context: P,
7728
+ context: T,
7729
7729
  refs: y,
7730
7730
  elements: O
7731
- }), [u, y, O, P]);
7731
+ }), [u, y, O, T]);
7732
7732
  }
7733
7733
  function $1(t, e) {
7734
7734
  e === void 0 && (e = {});
@@ -7900,19 +7900,19 @@ function z1(t, e) {
7900
7900
  nested: g = !1,
7901
7901
  rtl: m = !1,
7902
7902
  virtual: p = !1,
7903
- focusItemOnOpen: w = "auto",
7904
- focusItemOnHover: x = !0,
7903
+ focusItemOnOpen: x = "auto",
7904
+ focusItemOnHover: w = !0,
7905
7905
  openOnArrowKeyDown: k = !0,
7906
7906
  disabledIndices: v = void 0,
7907
7907
  orientation: y = "vertical",
7908
7908
  cols: O = 1,
7909
- scrollItemIntoView: P = !0,
7909
+ scrollItemIntoView: T = !0,
7910
7910
  virtualItemRef: M,
7911
- itemSizes: T,
7911
+ itemSizes: P,
7912
7912
  dense: C = !1
7913
7913
  } = e;
7914
7914
  process.env.NODE_ENV !== "production" && (f && (h || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), p || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), y === "vertical" && O > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
7915
- const z = po(), F = wi(), _ = lr(c), S = W.useRef(w), E = W.useRef(u ?? -1), L = W.useRef(null), B = W.useRef(!0), U = W.useRef(_), Z = W.useRef(!!s), R = W.useRef(!1), j = W.useRef(!1), A = pr(v), I = pr(r), N = pr(P), [D, $] = W.useState(), [X, q] = W.useState(), K = lr(function(H, ae, re) {
7915
+ const z = po(), F = wi(), _ = lr(c), S = W.useRef(x), E = W.useRef(u ?? -1), L = W.useRef(null), B = W.useRef(!0), U = W.useRef(_), Z = W.useRef(!!s), R = W.useRef(!1), j = W.useRef(!1), A = pr(v), I = pr(r), N = pr(T), [D, $] = W.useState(), [X, q] = W.useState(), K = lr(function(H, ae, re) {
7916
7916
  re === void 0 && (re = !1);
7917
7917
  const le = H.current[ae.current];
7918
7918
  le && (p ? ($(le.id), F == null || F.events.emit("virtualfocus", le), M && (M.current = le)) : Cr(le, {
@@ -7998,7 +7998,7 @@ function z1(t, e) {
7998
7998
  });
7999
7999
  },
8000
8000
  // Safari
8001
- ...x && {
8001
+ ...w && {
8002
8002
  onMouseMove(re) {
8003
8003
  let {
8004
8004
  currentTarget: le
@@ -8015,7 +8015,7 @@ function z1(t, e) {
8015
8015
  }
8016
8016
  }
8017
8017
  };
8018
- }, [r, a, K, x, o, _, p]);
8018
+ }, [r, a, K, w, o, _, p]);
8019
8019
  return W.useMemo(() => {
8020
8020
  if (!d)
8021
8021
  return {};
@@ -8029,7 +8029,7 @@ function z1(t, e) {
8029
8029
  }
8030
8030
  const We = E.current, me = Ko(o, H), Le = au(o, H);
8031
8031
  if (ie.key === "Home" && (st(ie), E.current = me, _(E.current)), ie.key === "End" && (st(ie), E.current = Le, _(E.current)), O > 1) {
8032
- const je = T || Array.from({
8032
+ const je = P || Array.from({
8033
8033
  length: o.current.length
8034
8034
  }, () => ({
8035
8035
  width: 1,
@@ -8084,10 +8084,10 @@ function z1(t, e) {
8084
8084
  }
8085
8085
  }
8086
8086
  function re(ie) {
8087
- w === "auto" && Lg(ie.nativeEvent) && (S.current = !0);
8087
+ x === "auto" && Lg(ie.nativeEvent) && (S.current = !0);
8088
8088
  }
8089
8089
  function le(ie) {
8090
- S.current = w, w === "auto" && yc(ie.nativeEvent) && (S.current = !0);
8090
+ S.current = x, x === "auto" && yc(ie.nativeEvent) && (S.current = !0);
8091
8091
  }
8092
8092
  const fe = p && r && J && {
8093
8093
  "aria-activedescendant": X || D
@@ -8143,7 +8143,7 @@ function z1(t, e) {
8143
8143
  },
8144
8144
  item: ne
8145
8145
  };
8146
- }, [i, a, D, X, A, I, o, d, y, m, p, r, J, g, u, k, f, O, h, w, _, n, ne, F, M, T, C]);
8146
+ }, [i, a, D, X, A, I, o, d, y, m, p, r, J, g, u, k, f, O, h, x, _, n, ne, F, M, P, C]);
8147
8147
  }
8148
8148
  const j1 = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
8149
8149
  function gm(t, e) {
@@ -8241,9 +8241,9 @@ function H1(t, e) {
8241
8241
  resetMs: u = 750,
8242
8242
  ignoreKeys: f = [],
8243
8243
  selectedIndex: h = null
8244
- } = e, g = W.useRef(), m = W.useRef(""), p = W.useRef((r = h ?? s) != null ? r : -1), w = W.useRef(null), x = lr(o), k = lr(l), v = pr(d), y = pr(f);
8244
+ } = e, g = W.useRef(), m = W.useRef(""), p = W.useRef((r = h ?? s) != null ? r : -1), x = W.useRef(null), w = lr(o), k = lr(l), v = pr(d), y = pr(f);
8245
8245
  return Re(() => {
8246
- n && (clearTimeout(g.current), w.current = null, m.current = "");
8246
+ n && (clearTimeout(g.current), x.current = null, m.current = "");
8247
8247
  }, [n]), Re(() => {
8248
8248
  if (n && m.current === "") {
8249
8249
  var O;
@@ -8252,27 +8252,27 @@ function H1(t, e) {
8252
8252
  }, [n, h, s]), W.useMemo(() => {
8253
8253
  if (!c)
8254
8254
  return {};
8255
- function O(T) {
8256
- T ? a.current.typing || (a.current.typing = T, k(T)) : a.current.typing && (a.current.typing = T, k(T));
8255
+ function O(P) {
8256
+ P ? a.current.typing || (a.current.typing = P, k(P)) : a.current.typing && (a.current.typing = P, k(P));
8257
8257
  }
8258
- function P(T, C, z) {
8258
+ function T(P, C, z) {
8259
8259
  const F = v.current ? v.current(C, z) : C.find((_) => (_ == null ? void 0 : _.toLocaleLowerCase().indexOf(z.toLocaleLowerCase())) === 0);
8260
- return F ? T.indexOf(F) : -1;
8260
+ return F ? P.indexOf(F) : -1;
8261
8261
  }
8262
- function M(T) {
8262
+ function M(P) {
8263
8263
  const C = i.current;
8264
- if (m.current.length > 0 && m.current[0] !== " " && (P(C, C, m.current) === -1 ? O(!1) : T.key === " " && st(T)), C == null || y.current.includes(T.key) || // Character key.
8265
- T.key.length !== 1 || // Modifier key.
8266
- T.ctrlKey || T.metaKey || T.altKey)
8264
+ if (m.current.length > 0 && m.current[0] !== " " && (T(C, C, m.current) === -1 ? O(!1) : P.key === " " && st(P)), C == null || y.current.includes(P.key) || // Character key.
8265
+ P.key.length !== 1 || // Modifier key.
8266
+ P.ctrlKey || P.metaKey || P.altKey)
8267
8267
  return;
8268
- n && T.key !== " " && (st(T), O(!0)), C.every((S) => {
8268
+ n && P.key !== " " && (st(P), O(!0)), C.every((S) => {
8269
8269
  var E, L;
8270
8270
  return S ? ((E = S[0]) == null ? void 0 : E.toLocaleLowerCase()) !== ((L = S[1]) == null ? void 0 : L.toLocaleLowerCase()) : !0;
8271
- }) && m.current === T.key && (m.current = "", p.current = w.current), m.current += T.key, clearTimeout(g.current), g.current = setTimeout(() => {
8272
- m.current = "", p.current = w.current, O(!1);
8271
+ }) && m.current === P.key && (m.current = "", p.current = x.current), m.current += P.key, clearTimeout(g.current), g.current = setTimeout(() => {
8272
+ m.current = "", p.current = x.current, O(!1);
8273
8273
  }, u);
8274
- const F = p.current, _ = P(C, [...C.slice((F || 0) + 1), ...C.slice(0, (F || 0) + 1)], m.current);
8275
- _ !== -1 ? (x(_), w.current = _) : T.key !== " " && (m.current = "", O(!1));
8274
+ const F = p.current, _ = T(C, [...C.slice((F || 0) + 1), ...C.slice(0, (F || 0) + 1)], m.current);
8275
+ _ !== -1 ? (w(_), x.current = _) : P.key !== " " && (m.current = "", O(!1));
8276
8276
  }
8277
8277
  return {
8278
8278
  reference: {
@@ -8280,12 +8280,12 @@ function H1(t, e) {
8280
8280
  },
8281
8281
  floating: {
8282
8282
  onKeyDown: M,
8283
- onKeyUp(T) {
8284
- T.key === " " && O(!1);
8283
+ onKeyUp(P) {
8284
+ P.key === " " && O(!1);
8285
8285
  }
8286
8286
  }
8287
8287
  };
8288
- }, [c, n, a, i, u, y, v, x, k]);
8288
+ }, [c, n, a, i, u, y, v, w, k]);
8289
8289
  }
8290
8290
  function xu(t, e) {
8291
8291
  const [r, n] = t;
@@ -8312,8 +8312,8 @@ function Y1(t) {
8312
8312
  const h = performance.now(), g = h - l;
8313
8313
  if (s === null || o === null || g === 0)
8314
8314
  return s = u, o = f, l = h, null;
8315
- const m = u - s, p = f - o, x = Math.sqrt(m * m + p * p) / g;
8316
- return s = u, o = f, l = h, x;
8315
+ const m = u - s, p = f - o, w = Math.sqrt(m * m + p * p) / g;
8316
+ return s = u, o = f, l = h, w;
8317
8317
  }
8318
8318
  const d = (u) => {
8319
8319
  let {
@@ -8322,8 +8322,8 @@ function Y1(t) {
8322
8322
  placement: g,
8323
8323
  elements: m,
8324
8324
  onClose: p,
8325
- nodeId: w,
8326
- tree: x
8325
+ nodeId: x,
8326
+ tree: w
8327
8327
  } = u;
8328
8328
  return function(v) {
8329
8329
  function y() {
@@ -8333,15 +8333,15 @@ function Y1(t) {
8333
8333
  return;
8334
8334
  const {
8335
8335
  clientX: O,
8336
- clientY: P
8337
- } = v, M = [O, P], T = qr(v), C = v.type === "mouseleave", z = Ge(m.floating, T), F = Ge(m.domReference, T), _ = m.domReference.getBoundingClientRect(), S = m.floating.getBoundingClientRect(), E = g.split("-")[0], L = f > S.right - S.width / 2, B = h > S.bottom - S.height / 2, U = B1(M, _), Z = S.width > _.width, R = S.height > _.height, j = (Z ? _ : S).left, A = (Z ? _ : S).right, I = (R ? _ : S).top, N = (R ? _ : S).bottom;
8336
+ clientY: T
8337
+ } = v, M = [O, T], P = qr(v), C = v.type === "mouseleave", z = Ge(m.floating, P), F = Ge(m.domReference, P), _ = m.domReference.getBoundingClientRect(), S = m.floating.getBoundingClientRect(), E = g.split("-")[0], L = f > S.right - S.width / 2, B = h > S.bottom - S.height / 2, U = B1(M, _), Z = S.width > _.width, R = S.height > _.height, j = (Z ? _ : S).left, A = (Z ? _ : S).right, I = (R ? _ : S).top, N = (R ? _ : S).bottom;
8338
8338
  if (z && (i = !0, !C))
8339
8339
  return;
8340
8340
  if (F && (i = !1), F && !C) {
8341
8341
  i = !0;
8342
8342
  return;
8343
8343
  }
8344
- if (C && Ce(v.relatedTarget) && Ge(m.floating, v.relatedTarget) || x && Cn(x.nodesRef.current, w).some((X) => {
8344
+ if (C && Ce(v.relatedTarget) && Ge(m.floating, v.relatedTarget) || w && Cn(w.nodesRef.current, x).some((X) => {
8345
8345
  let {
8346
8346
  context: q
8347
8347
  } = X;
@@ -8386,7 +8386,7 @@ function Y1(t) {
8386
8386
  }
8387
8387
  }
8388
8388
  }
8389
- if (!xu([O, P], D)) {
8389
+ if (!xu([O, T], D)) {
8390
8390
  if (i && !U)
8391
8391
  return y();
8392
8392
  if (!C && n) {
@@ -8394,7 +8394,7 @@ function Y1(t) {
8394
8394
  if (X !== null && X < 0.1)
8395
8395
  return y();
8396
8396
  }
8397
- xu([O, P], $([f, h])) ? !i && n && (a = window.setTimeout(y, 40)) : y();
8397
+ xu([O, T], $([f, h])) ? !i && n && (a = window.setTimeout(y, 40)) : y();
8398
8398
  }
8399
8399
  };
8400
8400
  };
@@ -8450,19 +8450,19 @@ const Ec = ({ className: t, theme: e = {}, ...r }) => {
8450
8450
  return /* @__PURE__ */ b("div", { className: Y(a, t), ...r });
8451
8451
  }, ym = ({ children: t, className: e, theme: r = {}, ...n }) => {
8452
8452
  const { theme: a } = Cc(), i = r.header ?? a.floating.header;
8453
- return /* @__PURE__ */ G(Vt, { children: [
8453
+ return /* @__PURE__ */ G($t, { children: [
8454
8454
  /* @__PURE__ */ b("div", { className: Y(i, e), ...n, children: t }),
8455
8455
  /* @__PURE__ */ b(Ec, {})
8456
8456
  ] });
8457
8457
  }, Pc = Oe(
8458
8458
  ({ children: t, className: e, icon: r, onClick: n, theme: a = {}, ...i }, s) => {
8459
- const { ref: o, index: l } = m1({ label: typeof t == "string" ? t : void 0 }), c = tm([s, o]), { theme: d, activeIndex: u, dismissOnClick: f, getItemProps: h, handleSelect: g } = Cc(), m = u === l, p = te(d.floating.item, a), w = i;
8459
+ const { ref: o, index: l } = m1({ label: typeof t == "string" ? t : void 0 }), c = tm([s, o]), { theme: d, activeIndex: u, dismissOnClick: f, getItemProps: h, handleSelect: g } = Cc(), m = u === l, p = te(d.floating.item, a), x = i;
8460
8460
  return /* @__PURE__ */ b("li", { role: "menuitem", className: p.container, children: /* @__PURE__ */ G(
8461
8461
  fc,
8462
8462
  {
8463
8463
  ref: c,
8464
8464
  className: Y(p.base, e),
8465
- ...w,
8465
+ ...x,
8466
8466
  ...h({
8467
8467
  onClick: () => {
8468
8468
  n == null || n(), f && g(null);
@@ -8510,20 +8510,20 @@ const X1 = {
8510
8510
  renderTrigger: a,
8511
8511
  ...i
8512
8512
  }) => {
8513
- const [s, o] = ge(!1), [l, c] = ge(null), [d, u] = ge(null), [f, h] = ge(void 0), g = Kt([]), m = Kt([]), p = te(ue().dropdown, n), w = i, x = i["data-testid"] || "flowbite-dropdown-target", {
8513
+ const [s, o] = ge(!1), [l, c] = ge(null), [d, u] = ge(null), [f, h] = ge(void 0), g = Kt([]), m = Kt([]), p = te(ue().dropdown, n), x = i, w = i["data-testid"] || "flowbite-dropdown-target", {
8514
8514
  placement: k = i.inline ? "bottom-start" : "bottom",
8515
8515
  trigger: v = "click",
8516
8516
  label: y,
8517
8517
  inline: O,
8518
- arrowIcon: P = !0,
8518
+ arrowIcon: T = !0,
8519
8519
  ...M
8520
- } = w, T = kn((R) => {
8520
+ } = x, P = kn((R) => {
8521
8521
  u(R), o(!1);
8522
8522
  }, []), C = kn(
8523
8523
  (R) => {
8524
- s ? c(R) : T(R);
8524
+ s ? c(R) : P(R);
8525
8525
  },
8526
- [s, T]
8526
+ [s, P]
8527
8527
  ), { context: z, floatingStyles: F, refs: _ } = mm({
8528
8528
  open: s,
8529
8529
  setOpen: o,
@@ -8547,7 +8547,7 @@ const X1 = {
8547
8547
  const [R] = k.split("-");
8548
8548
  return X1[R] ?? rg;
8549
8549
  }, [k]);
8550
- return /* @__PURE__ */ G(bm.Provider, { value: { theme: p, activeIndex: l, dismissOnClick: r, getItemProps: U, handleSelect: T }, children: [
8550
+ return /* @__PURE__ */ G(bm.Provider, { value: { theme: p, activeIndex: l, dismissOnClick: r, getItemProps: U, handleSelect: P }, children: [
8551
8551
  /* @__PURE__ */ G(
8552
8552
  G1,
8553
8553
  {
@@ -8555,14 +8555,14 @@ const X1 = {
8555
8555
  refs: _,
8556
8556
  inline: O,
8557
8557
  theme: p,
8558
- "data-testid": x,
8558
+ "data-testid": w,
8559
8559
  className: Y(p.floating.target, M.className),
8560
8560
  setButtonWidth: h,
8561
8561
  getReferenceProps: L,
8562
8562
  renderTrigger: a,
8563
8563
  children: [
8564
8564
  y,
8565
- P && /* @__PURE__ */ b(Z, { className: p.arrowIcon })
8565
+ T && /* @__PURE__ */ b(Z, { className: p.arrowIcon })
8566
8566
  ]
8567
8567
  }
8568
8568
  ),
@@ -8598,7 +8598,7 @@ const K1 = Object.assign(vm, {
8598
8598
  }), xm = Oe(
8599
8599
  ({ className: t, color: e = "gray", helperText: r, sizing: n = "md", theme: a = {}, ...i }, s) => {
8600
8600
  const o = te(ue().fileInput, a);
8601
- return /* @__PURE__ */ G(Vt, { children: [
8601
+ return /* @__PURE__ */ G($t, { children: [
8602
8602
  /* @__PURE__ */ b("div", { className: Y(o.root.base, t), children: /* @__PURE__ */ b("div", { className: o.field.base, children: /* @__PURE__ */ b(
8603
8603
  "input",
8604
8604
  {
@@ -8928,7 +8928,7 @@ const Im = ({ children: t, className: e, theme: r = {}, ...n }) => {
8928
8928
  const [h, g] = ge(void 0), m = te(ue().modal, c), { context: p } = fm({
8929
8929
  open: o,
8930
8930
  onOpenChange: () => n && n()
8931
- }), w = tm([p.refs.setFloating, f]), x = dm(p), k = um(p, { outsidePressEvent: "mousedown", enabled: r }), v = gm(p), { getFloatingProps: y } = hm([x, k, v]);
8931
+ }), x = tm([p.refs.setFloating, f]), w = dm(p), k = um(p, { outsidePressEvent: "mousedown", enabled: r }), v = gm(p), { getFloatingProps: y } = hm([w, k, v]);
8932
8932
  return o ? /* @__PURE__ */ b(Nm.Provider, { value: { theme: m, popup: a, onClose: n, setHeaderId: g }, children: /* @__PURE__ */ b(R1, { root: s, children: /* @__PURE__ */ b(
8933
8933
  A1,
8934
8934
  {
@@ -8944,7 +8944,7 @@ const Im = ({ children: t, className: e, theme: r = {}, ...n }) => {
8944
8944
  children: /* @__PURE__ */ b(cm, { context: p, initialFocus: d, children: /* @__PURE__ */ b(
8945
8945
  "div",
8946
8946
  {
8947
- ref: w,
8947
+ ref: x,
8948
8948
  ...y(u),
8949
8949
  "aria-labelledby": h,
8950
8950
  className: Y(m.content.base, m.root.sizes[l]),
@@ -9196,7 +9196,7 @@ Vm.displayName = "Radio";
9196
9196
  const J1 = Oe(
9197
9197
  ({ className: t, sizing: e = "md", theme: r = {}, ...n }, a) => {
9198
9198
  const i = te(ue().rangeSlider, r);
9199
- return /* @__PURE__ */ b(Vt, { children: /* @__PURE__ */ b("div", { "data-testid": "flowbite-range-slider", className: Y(i.root.base, t), children: /* @__PURE__ */ b("div", { className: i.field.base, children: /* @__PURE__ */ b(
9199
+ return /* @__PURE__ */ b($t, { children: /* @__PURE__ */ b("div", { "data-testid": "flowbite-range-slider", className: Y(i.root.base, t), children: /* @__PURE__ */ b("div", { className: i.field.base, children: /* @__PURE__ */ b(
9200
9200
  "input",
9201
9201
  {
9202
9202
  ref: a,
@@ -9322,36 +9322,36 @@ const rk = ({
9322
9322
  setOpen: h
9323
9323
  }), {
9324
9324
  context: m,
9325
- middlewareData: { arrow: { x: p, y: w } = {} },
9326
- refs: x,
9325
+ middlewareData: { arrow: { x: p, y: x } = {} },
9326
+ refs: w,
9327
9327
  strategy: k,
9328
9328
  update: v,
9329
9329
  x: y,
9330
9330
  y: O
9331
- } = g, P = $1(m), { getFloatingProps: M, getReferenceProps: T } = pm({
9331
+ } = g, T = $1(m), { getFloatingProps: M, getReferenceProps: P } = pm({
9332
9332
  context: m,
9333
9333
  role: "tooltip",
9334
9334
  trigger: l,
9335
- interactions: [P]
9335
+ interactions: [T]
9336
9336
  });
9337
9337
  return gt(() => {
9338
- if (x.reference.current && x.floating.current && f)
9339
- return Gg(x.reference.current, x.floating.current, v);
9340
- }, [f, x.floating, x.reference, v]), /* @__PURE__ */ G(Vt, { children: [
9338
+ if (w.reference.current && w.floating.current && f)
9339
+ return Gg(w.reference.current, w.floating.current, v);
9340
+ }, [f, w.floating, w.reference, v]), /* @__PURE__ */ G($t, { children: [
9341
9341
  /* @__PURE__ */ b(
9342
9342
  "div",
9343
9343
  {
9344
- ref: x.setReference,
9344
+ ref: w.setReference,
9345
9345
  className: o.target,
9346
9346
  "data-testid": "flowbite-tooltip-target",
9347
- ...T(),
9347
+ ...P(),
9348
9348
  children: r
9349
9349
  }
9350
9350
  ),
9351
9351
  /* @__PURE__ */ G(
9352
9352
  "div",
9353
9353
  {
9354
- ref: x.setFloating,
9354
+ ref: w.setFloating,
9355
9355
  "data-testid": "flowbite-tooltip",
9356
9356
  ...M({
9357
9357
  className: Y(
@@ -9383,7 +9383,7 @@ const rk = ({
9383
9383
  "data-testid": "flowbite-tooltip-arrow",
9384
9384
  ref: u,
9385
9385
  style: {
9386
- top: w ?? " ",
9386
+ top: x ?? " ",
9387
9387
  left: p ?? " ",
9388
9388
  right: " ",
9389
9389
  bottom: " ",
@@ -9471,7 +9471,7 @@ const Qm = ({
9471
9471
  className: Y(g.icon.base, g.icon.open[d ? "on" : "off"])
9472
9472
  }
9473
9473
  ),
9474
- h ? /* @__PURE__ */ b("span", { className: "sr-only", children: n }) : /* @__PURE__ */ G(Vt, { children: [
9474
+ h ? /* @__PURE__ */ b("span", { className: "sr-only", children: n }) : /* @__PURE__ */ G($t, { children: [
9475
9475
  /* @__PURE__ */ b("span", { "data-testid": "flowbite-sidebar-collapse-label", className: g.label.base, children: n }),
9476
9476
  i ? i(g, d) : /* @__PURE__ */ b(
9477
9477
  a,
@@ -9535,7 +9535,7 @@ const ak = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a,
9535
9535
  theme: o = {},
9536
9536
  ...l
9537
9537
  }, c) => {
9538
- var m, p, w, x;
9538
+ var m, p, x, w;
9539
9539
  const d = $n(), { theme: u, isCollapsed: f } = va(), { isInsideCollapse: h } = nk(), g = te(u.item, o);
9540
9540
  return /* @__PURE__ */ b(ak, { theme: g, className: g.listItem, id: d, isCollapsed: f, tooltipChildren: r, children: /* @__PURE__ */ G(
9541
9541
  e,
@@ -9555,10 +9555,10 @@ const ak = ({ id: t, theme: e, isCollapsed: r, tooltipChildren: n, children: a,
9555
9555
  {
9556
9556
  "aria-hidden": !0,
9557
9557
  "data-testid": "flowbite-sidebar-item-icon",
9558
- className: Y((p = g.icon) == null ? void 0 : p.base, t && ((w = g.icon) == null ? void 0 : w.active))
9558
+ className: Y((p = g.icon) == null ? void 0 : p.base, t && ((x = g.icon) == null ? void 0 : x.active))
9559
9559
  }
9560
9560
  ),
9561
- f && !a && /* @__PURE__ */ b("span", { className: (x = g.collapsed) == null ? void 0 : x.noIcon, children: r.charAt(0).toLocaleUpperCase() ?? "?" }),
9561
+ f && !a && /* @__PURE__ */ b("span", { className: (w = g.collapsed) == null ? void 0 : w.noIcon, children: r.charAt(0).toLocaleUpperCase() ?? "?" }),
9562
9562
  !f && /* @__PURE__ */ b(Jm, { id: d, theme: g, children: r }),
9563
9563
  !f && i && /* @__PURE__ */ b(yg, { color: s, "data-testid": "flowbite-sidebar-label", hidden: f, className: g.label, children: i })
9564
9564
  ]
@@ -9737,9 +9737,9 @@ const m0 = Oe(
9737
9737
  f(v), r && r(v);
9738
9738
  }, p = ({ target: v }) => {
9739
9739
  m(v), g(v);
9740
- }, w = ({ event: v, target: y }) => {
9740
+ }, x = ({ event: v, target: y }) => {
9741
9741
  v.key === "ArrowLeft" && g(Math.max(0, h - 1)), v.key === "ArrowRight" && g(Math.min(c.length - 1, h + 1)), v.key === "Enter" && (m(y), g(y));
9742
- }, x = o.tablist.tabitem.styles[n], k = o.tabitemcontainer.styles[n];
9742
+ }, w = o.tablist.tabitem.styles[n], k = o.tabitemcontainer.styles[n];
9743
9743
  return gt(() => {
9744
9744
  var v;
9745
9745
  (v = d.current[h]) == null || v.focus();
@@ -9761,14 +9761,14 @@ const m0 = Oe(
9761
9761
  "aria-selected": y === u,
9762
9762
  className: Y(
9763
9763
  o.tablist.tabitem.base,
9764
- x.base,
9765
- y === u && x.active.on,
9766
- y !== u && !v.disabled && x.active.off
9764
+ w.base,
9765
+ y === u && w.active.on,
9766
+ y !== u && !v.disabled && w.active.off
9767
9767
  ),
9768
9768
  disabled: v.disabled,
9769
9769
  id: `${l}-tab-${y}`,
9770
9770
  onClick: () => p({ target: y }),
9771
- onKeyDown: (O) => w({ event: O, target: y }),
9771
+ onKeyDown: (O) => x({ event: O, target: y }),
9772
9772
  ref: (O) => d.current[y] = O,
9773
9773
  role: "tab",
9774
9774
  tabIndex: y === h ? 0 : -1,
@@ -9805,7 +9805,7 @@ Object.assign(m0, {
9805
9805
  const ok = Oe(
9806
9806
  ({ className: t, color: e = "gray", helperText: r, shadow: n, theme: a = {}, ...i }, s) => {
9807
9807
  const o = te(ue().textarea, a);
9808
- return /* @__PURE__ */ G(Vt, { children: [
9808
+ return /* @__PURE__ */ G($t, { children: [
9809
9809
  /* @__PURE__ */ b(
9810
9810
  "textarea",
9811
9811
  {
@@ -10015,7 +10015,7 @@ const dk = Oe(
10015
10015
  }, m = (p) => {
10016
10016
  p.code == "Enter" && p.preventDefault();
10017
10017
  };
10018
- return /* @__PURE__ */ G(Vt, { children: [
10018
+ return /* @__PURE__ */ G($t, { children: [
10019
10019
  s && t ? /* @__PURE__ */ b("input", { ref: d, checked: t, hidden: !0, name: s, readOnly: !0, type: "checkbox", className: "sr-only" }) : null,
10020
10020
  /* @__PURE__ */ G(
10021
10021
  "button",
@@ -10264,19 +10264,19 @@ function Er(t) {
10264
10264
  function _u(t) {
10265
10265
  return Ur(ki(t * 100), 0, 100);
10266
10266
  }
10267
- const $t = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, $l = [..."0123456789ABCDEF"], yk = (t) => $l[t & 15], vk = (t) => $l[(t & 240) >> 4] + $l[t & 15], zi = (t) => (t & 240) >> 4 === (t & 15), xk = (t) => zi(t.r) && zi(t.g) && zi(t.b) && zi(t.a);
10267
+ const Wt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, $l = [..."0123456789ABCDEF"], yk = (t) => $l[t & 15], vk = (t) => $l[(t & 240) >> 4] + $l[t & 15], zi = (t) => (t & 240) >> 4 === (t & 15), xk = (t) => zi(t.r) && zi(t.g) && zi(t.b) && zi(t.a);
10268
10268
  function wk(t) {
10269
10269
  var e = t.length, r;
10270
10270
  return t[0] === "#" && (e === 4 || e === 5 ? r = {
10271
- r: 255 & $t[t[1]] * 17,
10272
- g: 255 & $t[t[2]] * 17,
10273
- b: 255 & $t[t[3]] * 17,
10274
- a: e === 5 ? $t[t[4]] * 17 : 255
10271
+ r: 255 & Wt[t[1]] * 17,
10272
+ g: 255 & Wt[t[2]] * 17,
10273
+ b: 255 & Wt[t[3]] * 17,
10274
+ a: e === 5 ? Wt[t[4]] * 17 : 255
10275
10275
  } : (e === 7 || e === 9) && (r = {
10276
- r: $t[t[1]] << 4 | $t[t[2]],
10277
- g: $t[t[3]] << 4 | $t[t[4]],
10278
- b: $t[t[5]] << 4 | $t[t[6]],
10279
- a: e === 9 ? $t[t[7]] << 4 | $t[t[8]] : 255
10276
+ r: Wt[t[1]] << 4 | Wt[t[2]],
10277
+ g: Wt[t[3]] << 4 | Wt[t[4]],
10278
+ b: Wt[t[5]] << 4 | Wt[t[6]],
10279
+ a: e === 9 ? Wt[t[7]] << 4 | Wt[t[8]] : 255
10280
10280
  })), r;
10281
10281
  }
10282
10282
  const kk = (t, e) => t < 255 ? e(t) : "";
@@ -10859,11 +10859,11 @@ function Ls(t, e, r, n) {
10859
10859
  const a = cn(t), i = cn(e), s = cn(r), o = cn(i - a), l = cn(s - a), c = cn(a - i), d = cn(a - s);
10860
10860
  return a === i || a === s || n && i === s || o > l && c < d;
10861
10861
  }
10862
- function zt(t, e, r) {
10862
+ function jt(t, e, r) {
10863
10863
  return Math.max(e, Math.min(r, t));
10864
10864
  }
10865
10865
  function Zk(t) {
10866
- return zt(t, -32768, 32767);
10866
+ return jt(t, -32768, 32767);
10867
10867
  }
10868
10868
  function Wa(t, e, r, n = 1e-6) {
10869
10869
  return t >= Math.min(e, r) - n && t <= Math.max(e, r) + n;
@@ -12174,10 +12174,10 @@ function Uu(t, e) {
12174
12174
  const { chart: r, _cachedMeta: n } = t, a = r._stacks || (r._stacks = {}), { iScale: i, vScale: s, index: o } = n, l = i.axis, c = s.axis, d = Q_(i, s, n), u = e.length;
12175
12175
  let f;
12176
12176
  for (let h = 0; h < u; ++h) {
12177
- const g = e[h], { [l]: m, [c]: p } = g, w = g._stacks || (g._stacks = {});
12178
- f = w[c] = J_(a, d, m), f[o] = p, f._top = qu(f, s, !0, n.type), f._bottom = qu(f, s, !1, n.type);
12179
- const x = f._visualValues || (f._visualValues = {});
12180
- x[o] = p;
12177
+ const g = e[h], { [l]: m, [c]: p } = g, x = g._stacks || (g._stacks = {});
12178
+ f = x[c] = J_(a, d, m), f[o] = p, f._top = qu(f, s, !0, n.type), f._bottom = qu(f, s, !1, n.type);
12179
+ const w = f._visualValues || (f._visualValues = {});
12180
+ w[o] = p;
12181
12181
  }
12182
12182
  }
12183
12183
  function ll(t, e) {
@@ -12582,8 +12582,8 @@ Q(Za, "defaults", {}), Q(Za, "datasetElementType", null), Q(Za, "dataElementType
12582
12582
  function nO(t, e, r) {
12583
12583
  let n = 1, a = 1, i = 0, s = 0;
12584
12584
  if (e < Qe) {
12585
- const o = t, l = o + e, c = Math.cos(o), d = Math.sin(o), u = Math.cos(l), f = Math.sin(l), h = (k, v, y) => Ls(k, o, l, !0) ? 1 : Math.max(v, v * r, y, y * r), g = (k, v, y) => Ls(k, o, l, !0) ? -1 : Math.min(v, v * r, y, y * r), m = h(0, c, u), p = h(tt, d, f), w = g(at, c, u), x = g(at + tt, d, f);
12586
- n = (m - w) / 2, a = (p - x) / 2, i = -(m + w) / 2, s = -(p + x) / 2;
12585
+ const o = t, l = o + e, c = Math.cos(o), d = Math.sin(o), u = Math.cos(l), f = Math.sin(l), h = (k, v, y) => Ls(k, o, l, !0) ? 1 : Math.max(v, v * r, y, y * r), g = (k, v, y) => Ls(k, o, l, !0) ? -1 : Math.min(v, v * r, y, y * r), m = h(0, c, u), p = h(tt, d, f), x = g(at, c, u), w = g(at + tt, d, f);
12586
+ n = (m - x) / 2, a = (p - w) / 2, i = -(m + x) / 2, s = -(p + w) / 2;
12587
12587
  }
12588
12588
  return {
12589
12589
  ratioX: n,
@@ -12632,7 +12632,7 @@ class za extends Za {
12632
12632
  };
12633
12633
  }
12634
12634
  update(e) {
12635
- const r = this.chart, { chartArea: n } = r, a = this._cachedMeta, i = a.data, s = this.getMaxBorderWidth() + this.getMaxOffset(i) + this.options.spacing, o = Math.max((Math.min(n.width, n.height) - s) / 2, 0), l = Math.min(jk(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: m } = nO(u, d, l), p = (n.width - s) / f, w = (n.height - s) / h, x = Math.max(Math.min(p, w) / 2, 0), k = I0(this.options.radius, x), v = Math.max(k * l, 0), y = (k - v) / this._getVisibleDatasetWeightTotal();
12635
+ const r = this.chart, { chartArea: n } = r, a = this._cachedMeta, i = a.data, s = this.getMaxBorderWidth() + this.getMaxOffset(i) + this.options.spacing, o = Math.max((Math.min(n.width, n.height) - s) / 2, 0), l = Math.min(jk(this.options.cutout, o), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: m } = nO(u, d, l), p = (n.width - s) / f, x = (n.height - s) / h, w = Math.max(Math.min(p, x) / 2, 0), k = I0(this.options.radius, w), v = Math.max(k * l, 0), y = (k - v) / this._getVisibleDatasetWeightTotal();
12636
12636
  this.offsetX = g * k, this.offsetY = m * k, a.total = this.calculateTotal(), this.outerRadius = k - y * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - y * c, 0), this.updateElements(i, 0, i.length, e);
12637
12637
  }
12638
12638
  _circumference(e, r) {
@@ -12641,20 +12641,20 @@ class za extends Za {
12641
12641
  }
12642
12642
  updateElements(e, r, n, a) {
12643
12643
  const i = a === "reset", s = this.chart, o = s.chartArea, c = s.options.animation, d = (o.left + o.right) / 2, u = (o.top + o.bottom) / 2, f = i && c.animateScale, h = f ? 0 : this.innerRadius, g = f ? 0 : this.outerRadius, { sharedOptions: m, includeOptions: p } = this._getSharedOptions(r, a);
12644
- let w = this._getRotation(), x;
12645
- for (x = 0; x < r; ++x)
12646
- w += this._circumference(x, i);
12647
- for (x = r; x < r + n; ++x) {
12648
- const k = this._circumference(x, i), v = e[x], y = {
12644
+ let x = this._getRotation(), w;
12645
+ for (w = 0; w < r; ++w)
12646
+ x += this._circumference(w, i);
12647
+ for (w = r; w < r + n; ++w) {
12648
+ const k = this._circumference(w, i), v = e[w], y = {
12649
12649
  x: d + this.offsetX,
12650
12650
  y: u + this.offsetY,
12651
- startAngle: w,
12652
- endAngle: w + k,
12651
+ startAngle: x,
12652
+ endAngle: x + k,
12653
12653
  circumference: k,
12654
12654
  outerRadius: g,
12655
12655
  innerRadius: h
12656
12656
  };
12657
- p && (y.options = m || this.resolveDataElementOptions(x, v.active ? "active" : a)), w += k, this.updateElement(v, x, y, a);
12657
+ p && (y.options = m || this.resolveDataElementOptions(w, v.active ? "active" : a)), x += k, this.updateElement(v, w, y, a);
12658
12658
  }
12659
12659
  }
12660
12660
  calculateTotal() {
@@ -13566,14 +13566,14 @@ function BO(t, e, r, n) {
13566
13566
  const m = s - a, p = o - i;
13567
13567
  if (t.isHorizontal()) {
13568
13568
  if (h = It(n, i, o), be(r)) {
13569
- const w = Object.keys(r)[0], x = r[w];
13570
- g = d[w].getPixelForValue(x) + m - e;
13569
+ const x = Object.keys(r)[0], w = r[x];
13570
+ g = d[x].getPixelForValue(w) + m - e;
13571
13571
  } else r === "center" ? g = (c.bottom + c.top) / 2 + m - e : g = tf(t, r, e);
13572
13572
  f = o - i;
13573
13573
  } else {
13574
13574
  if (be(r)) {
13575
- const w = Object.keys(r)[0], x = r[w];
13576
- h = d[w].getPixelForValue(x) - p + e;
13575
+ const x = Object.keys(r)[0], w = r[x];
13576
+ h = d[x].getPixelForValue(w) - p + e;
13577
13577
  } else r === "center" ? h = (c.left + c.right) / 2 - p + e : h = tf(t, r, e);
13578
13578
  g = It(n, s, a), u = r === "left" ? -tt : tt;
13579
13579
  }
@@ -13736,8 +13736,8 @@ class wo extends _i {
13736
13736
  this.labelRotation = a;
13737
13737
  return;
13738
13738
  }
13739
- const d = this._getLabelSizes(), u = d.widest.width, f = d.highest.height, h = zt(this.chart.width - u, 0, this.maxWidth);
13740
- o = e.offset ? this.maxWidth / n : h / (n - 1), u + 6 > o && (o = h / (n - (e.offset ? 0.5 : 1)), l = this.maxHeight - Ea(e.grid) - r.padding - af(e.title, this.chart.options.font), c = Math.sqrt(u * u + f * f), s = Kk(Math.min(Math.asin(zt((d.highest.height + 6) / o, -1, 1)), Math.asin(zt(l / c, -1, 1)) - Math.asin(zt(f / c, -1, 1)))), s = Math.max(a, Math.min(i, s))), this.labelRotation = s;
13739
+ const d = this._getLabelSizes(), u = d.widest.width, f = d.highest.height, h = jt(this.chart.width - u, 0, this.maxWidth);
13740
+ o = e.offset ? this.maxWidth / n : h / (n - 1), u + 6 > o && (o = h / (n - (e.offset ? 0.5 : 1)), l = this.maxHeight - Ea(e.grid) - r.padding - af(e.title, this.chart.options.font), c = Math.sqrt(u * u + f * f), s = Kk(Math.min(Math.asin(jt((d.highest.height + 6) / o, -1, 1)), Math.asin(jt(l / c, -1, 1)) - Math.asin(jt(f / c, -1, 1)))), s = Math.max(a, Math.min(i, s))), this.labelRotation = s;
13741
13741
  }
13742
13742
  afterCalculateLabelRotation() {
13743
13743
  Ae(this.options.afterCalculateLabelRotation, [
@@ -13761,11 +13761,11 @@ class wo extends _i {
13761
13761
  if (o ? (e.width = this.maxWidth, e.height = Ea(i) + l) : (e.height = this.maxHeight, e.width = Ea(i) + l), n.display && this.ticks.length) {
13762
13762
  const { first: c, last: d, widest: u, highest: f } = this._getLabelSizes(), h = n.padding * 2, g = Sn(this.labelRotation), m = Math.cos(g), p = Math.sin(g);
13763
13763
  if (o) {
13764
- const w = n.mirror ? 0 : p * u.width + m * f.height;
13765
- e.height = Math.min(this.maxHeight, e.height + w + h);
13764
+ const x = n.mirror ? 0 : p * u.width + m * f.height;
13765
+ e.height = Math.min(this.maxHeight, e.height + x + h);
13766
13766
  } else {
13767
- const w = n.mirror ? 0 : m * u.width + p * f.height;
13768
- e.width = Math.min(this.maxWidth, e.width + w + h);
13767
+ const x = n.mirror ? 0 : m * u.width + p * f.height;
13768
+ e.width = Math.min(this.maxWidth, e.width + x + h);
13769
13769
  }
13770
13770
  this._calculatePadding(c, d, p, m);
13771
13771
  }
@@ -13816,28 +13816,28 @@ class wo extends _i {
13816
13816
  }
13817
13817
  _computeLabelSizes(e, r, n) {
13818
13818
  const { ctx: a, _longestTextCache: i } = this, s = [], o = [], l = Math.floor(r / rf(r, n));
13819
- let c = 0, d = 0, u, f, h, g, m, p, w, x, k, v, y;
13819
+ let c = 0, d = 0, u, f, h, g, m, p, x, w, k, v, y;
13820
13820
  for (u = 0; u < r; u += l) {
13821
- if (g = e[u].label, m = this._resolveTickFontOptions(u), a.font = p = m.string, w = i[p] = i[p] || {
13821
+ if (g = e[u].label, m = this._resolveTickFontOptions(u), a.font = p = m.string, x = i[p] = i[p] || {
13822
13822
  data: {},
13823
13823
  gc: []
13824
- }, x = m.lineHeight, k = v = 0, !mt(g) && !lt(g))
13825
- k = Fu(a, w.data, w.gc, k, g), v = x;
13824
+ }, w = m.lineHeight, k = v = 0, !mt(g) && !lt(g))
13825
+ k = Fu(a, x.data, x.gc, k, g), v = w;
13826
13826
  else if (lt(g))
13827
13827
  for (f = 0, h = g.length; f < h; ++f)
13828
- y = g[f], !mt(y) && !lt(y) && (k = Fu(a, w.data, w.gc, k, y), v += x);
13828
+ y = g[f], !mt(y) && !lt(y) && (k = Fu(a, x.data, x.gc, k, y), v += w);
13829
13829
  s.push(k), o.push(v), c = Math.max(k, c), d = Math.max(v, d);
13830
13830
  }
13831
13831
  WO(i, r);
13832
- const O = s.indexOf(c), P = o.indexOf(d), M = (T) => ({
13833
- width: s[T] || 0,
13834
- height: o[T] || 0
13832
+ const O = s.indexOf(c), T = o.indexOf(d), M = (P) => ({
13833
+ width: s[P] || 0,
13834
+ height: o[P] || 0
13835
13835
  });
13836
13836
  return {
13837
13837
  first: M(0),
13838
13838
  last: M(r - 1),
13839
13839
  widest: M(O),
13840
- highest: M(P),
13840
+ highest: M(T),
13841
13841
  widths: s,
13842
13842
  heights: o
13843
13843
  };
@@ -13887,43 +13887,43 @@ class wo extends _i {
13887
13887
  return e !== "auto" ? !!e : this.getMatchingVisibleMetas().length > 0;
13888
13888
  }
13889
13889
  _computeGridLineItems(e) {
13890
- const r = this.axis, n = this.chart, a = this.options, { grid: i, position: s, border: o } = a, l = i.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = Ea(i), h = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, p = m / 2, w = function(L) {
13890
+ const r = this.axis, n = this.chart, a = this.options, { grid: i, position: s, border: o } = a, l = i.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = Ea(i), h = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, p = m / 2, x = function(L) {
13891
13891
  return dn(n, L, m);
13892
13892
  };
13893
- let x, k, v, y, O, P, M, T, C, z, F, _;
13893
+ let w, k, v, y, O, T, M, P, C, z, F, _;
13894
13894
  if (s === "top")
13895
- x = w(this.bottom), P = this.bottom - f, T = x - p, z = w(e.top) + p, _ = e.bottom;
13895
+ w = x(this.bottom), T = this.bottom - f, P = w - p, z = x(e.top) + p, _ = e.bottom;
13896
13896
  else if (s === "bottom")
13897
- x = w(this.top), z = e.top, _ = w(e.bottom) - p, P = x + p, T = this.top + f;
13897
+ w = x(this.top), z = e.top, _ = x(e.bottom) - p, T = w + p, P = this.top + f;
13898
13898
  else if (s === "left")
13899
- x = w(this.right), O = this.right - f, M = x - p, C = w(e.left) + p, F = e.right;
13899
+ w = x(this.right), O = this.right - f, M = w - p, C = x(e.left) + p, F = e.right;
13900
13900
  else if (s === "right")
13901
- x = w(this.left), C = e.left, F = w(e.right) - p, O = x + p, M = this.left + f;
13901
+ w = x(this.left), C = e.left, F = x(e.right) - p, O = w + p, M = this.left + f;
13902
13902
  else if (r === "x") {
13903
13903
  if (s === "center")
13904
- x = w((e.top + e.bottom) / 2 + 0.5);
13904
+ w = x((e.top + e.bottom) / 2 + 0.5);
13905
13905
  else if (be(s)) {
13906
13906
  const L = Object.keys(s)[0], B = s[L];
13907
- x = w(this.chart.scales[L].getPixelForValue(B));
13907
+ w = x(this.chart.scales[L].getPixelForValue(B));
13908
13908
  }
13909
- z = e.top, _ = e.bottom, P = x + p, T = P + f;
13909
+ z = e.top, _ = e.bottom, T = w + p, P = T + f;
13910
13910
  } else if (r === "y") {
13911
13911
  if (s === "center")
13912
- x = w((e.left + e.right) / 2);
13912
+ w = x((e.left + e.right) / 2);
13913
13913
  else if (be(s)) {
13914
13914
  const L = Object.keys(s)[0], B = s[L];
13915
- x = w(this.chart.scales[L].getPixelForValue(B));
13915
+ w = x(this.chart.scales[L].getPixelForValue(B));
13916
13916
  }
13917
- O = x - p, M = O - f, C = e.left, F = e.right;
13917
+ O = w - p, M = O - f, C = e.left, F = e.right;
13918
13918
  }
13919
13919
  const S = De(a.ticks.maxTicksLimit, u), E = Math.max(1, Math.ceil(u / S));
13920
13920
  for (k = 0; k < u; k += E) {
13921
13921
  const L = this.getContext(k), B = i.setContext(L), U = o.setContext(L), Z = B.lineWidth, R = B.color, j = U.dash || [], A = U.dashOffset, I = B.tickWidth, N = B.tickColor, D = B.tickBorderDash || [], $ = B.tickBorderDashOffset;
13922
- v = $O(this, k, l), v !== void 0 && (y = dn(n, v, Z), c ? O = M = C = F = y : P = T = z = _ = y, h.push({
13922
+ v = $O(this, k, l), v !== void 0 && (y = dn(n, v, Z), c ? O = M = C = F = y : T = P = z = _ = y, h.push({
13923
13923
  tx1: O,
13924
- ty1: P,
13924
+ ty1: T,
13925
13925
  tx2: M,
13926
- ty2: T,
13926
+ ty2: P,
13927
13927
  x1: C,
13928
13928
  y1: z,
13929
13929
  x2: F,
@@ -13938,21 +13938,21 @@ class wo extends _i {
13938
13938
  tickBorderDashOffset: $
13939
13939
  }));
13940
13940
  }
13941
- return this._ticksLength = u, this._borderValue = x, h;
13941
+ return this._ticksLength = u, this._borderValue = w, h;
13942
13942
  }
13943
13943
  _computeLabelItems(e) {
13944
13944
  const r = this.axis, n = this.options, { position: a, ticks: i } = n, s = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = i, f = Ea(n.grid), h = f + d, g = u ? -d : h, m = -Sn(this.labelRotation), p = [];
13945
- let w, x, k, v, y, O, P, M, T, C, z, F, _ = "middle";
13945
+ let x, w, k, v, y, O, T, M, P, C, z, F, _ = "middle";
13946
13946
  if (a === "top")
13947
- O = this.bottom - g, P = this._getXAxisLabelAlignment();
13947
+ O = this.bottom - g, T = this._getXAxisLabelAlignment();
13948
13948
  else if (a === "bottom")
13949
- O = this.top + g, P = this._getXAxisLabelAlignment();
13949
+ O = this.top + g, T = this._getXAxisLabelAlignment();
13950
13950
  else if (a === "left") {
13951
13951
  const E = this._getYAxisLabelAlignment(f);
13952
- P = E.textAlign, y = E.x;
13952
+ T = E.textAlign, y = E.x;
13953
13953
  } else if (a === "right") {
13954
13954
  const E = this._getYAxisLabelAlignment(f);
13955
- P = E.textAlign, y = E.x;
13955
+ T = E.textAlign, y = E.x;
13956
13956
  } else if (r === "x") {
13957
13957
  if (a === "center")
13958
13958
  O = (e.top + e.bottom) / 2 + h;
@@ -13960,7 +13960,7 @@ class wo extends _i {
13960
13960
  const E = Object.keys(a)[0], L = a[E];
13961
13961
  O = this.chart.scales[E].getPixelForValue(L) + h;
13962
13962
  }
13963
- P = this._getXAxisLabelAlignment();
13963
+ T = this._getXAxisLabelAlignment();
13964
13964
  } else if (r === "y") {
13965
13965
  if (a === "center")
13966
13966
  y = (e.left + e.right) / 2 - h;
@@ -13968,20 +13968,20 @@ class wo extends _i {
13968
13968
  const E = Object.keys(a)[0], L = a[E];
13969
13969
  y = this.chart.scales[E].getPixelForValue(L);
13970
13970
  }
13971
- P = this._getYAxisLabelAlignment(f).textAlign;
13971
+ T = this._getYAxisLabelAlignment(f).textAlign;
13972
13972
  }
13973
13973
  r === "y" && (l === "start" ? _ = "top" : l === "end" && (_ = "bottom"));
13974
13974
  const S = this._getLabelSizes();
13975
- for (w = 0, x = o.length; w < x; ++w) {
13976
- k = o[w], v = k.label;
13977
- const E = i.setContext(this.getContext(w));
13978
- M = this.getPixelForTick(w) + i.labelOffset, T = this._resolveTickFontOptions(w), C = T.lineHeight, z = lt(v) ? v.length : 1;
13975
+ for (x = 0, w = o.length; x < w; ++x) {
13976
+ k = o[x], v = k.label;
13977
+ const E = i.setContext(this.getContext(x));
13978
+ M = this.getPixelForTick(x) + i.labelOffset, P = this._resolveTickFontOptions(x), C = P.lineHeight, z = lt(v) ? v.length : 1;
13979
13979
  const L = z / 2, B = E.color, U = E.textStrokeColor, Z = E.textStrokeWidth;
13980
- let R = P;
13981
- s ? (y = M, P === "inner" && (w === x - 1 ? R = this.options.reverse ? "left" : "right" : w === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), a === "top" ? c === "near" || m !== 0 ? F = -z * C + C / 2 : c === "center" ? F = -S.highest.height / 2 - L * C + C : F = -S.highest.height + C / 2 : c === "near" || m !== 0 ? F = C / 2 : c === "center" ? F = S.highest.height / 2 - L * C : F = S.highest.height - z * C, u && (F *= -1), m !== 0 && !E.showLabelBackdrop && (y += C / 2 * Math.sin(m))) : (O = M, F = (1 - z) * C / 2);
13980
+ let R = T;
13981
+ s ? (y = M, T === "inner" && (x === w - 1 ? R = this.options.reverse ? "left" : "right" : x === 0 ? R = this.options.reverse ? "right" : "left" : R = "center"), a === "top" ? c === "near" || m !== 0 ? F = -z * C + C / 2 : c === "center" ? F = -S.highest.height / 2 - L * C + C : F = -S.highest.height + C / 2 : c === "near" || m !== 0 ? F = C / 2 : c === "center" ? F = S.highest.height / 2 - L * C : F = S.highest.height - z * C, u && (F *= -1), m !== 0 && !E.showLabelBackdrop && (y += C / 2 * Math.sin(m))) : (O = M, F = (1 - z) * C / 2);
13982
13982
  let j;
13983
13983
  if (E.showLabelBackdrop) {
13984
- const A = Qt(E.backdropPadding), I = S.heights[w], N = S.widths[w];
13984
+ const A = Qt(E.backdropPadding), I = S.heights[x], N = S.widths[x];
13985
13985
  let D = F - A.top, $ = 0 - A.left;
13986
13986
  switch (_) {
13987
13987
  case "middle":
@@ -13991,7 +13991,7 @@ class wo extends _i {
13991
13991
  D -= I;
13992
13992
  break;
13993
13993
  }
13994
- switch (P) {
13994
+ switch (T) {
13995
13995
  case "center":
13996
13996
  $ -= N / 2;
13997
13997
  break;
@@ -13999,7 +13999,7 @@ class wo extends _i {
13999
13999
  $ -= N;
14000
14000
  break;
14001
14001
  case "inner":
14002
- w === x - 1 ? $ -= N : w > 0 && ($ -= N / 2);
14002
+ x === w - 1 ? $ -= N : x > 0 && ($ -= N / 2);
14003
14003
  break;
14004
14004
  }
14005
14005
  j = {
@@ -14012,7 +14012,7 @@ class wo extends _i {
14012
14012
  }
14013
14013
  p.push({
14014
14014
  label: v,
14015
- font: T,
14015
+ font: P,
14016
14016
  textOffset: F,
14017
14017
  options: {
14018
14018
  rotation: m,
@@ -15210,13 +15210,13 @@ function mS(t) {
15210
15210
  function pS(t, e, r, n) {
15211
15211
  const a = mS(t.options.borderRadius), i = (r - e) / 2, s = Math.min(i, n * e / 2), o = (l) => {
15212
15212
  const c = (r - Math.min(i, l)) * n / 2;
15213
- return zt(l, 0, Math.min(i, c));
15213
+ return jt(l, 0, Math.min(i, c));
15214
15214
  };
15215
15215
  return {
15216
15216
  outerStart: o(a.outerStart),
15217
15217
  outerEnd: o(a.outerEnd),
15218
- innerStart: zt(a.innerStart, 0, s),
15219
- innerEnd: zt(a.innerEnd, 0, s)
15218
+ innerStart: jt(a.innerStart, 0, s),
15219
+ innerEnd: jt(a.innerEnd, 0, s)
15220
15220
  };
15221
15221
  }
15222
15222
  function Vn(t, e, r, n) {
@@ -15233,31 +15233,31 @@ function js(t, e, r, n, a, i) {
15233
15233
  const E = d > 0 ? d - n : 0, L = u > 0 ? u - n : 0, B = (E + L) / 2, U = B !== 0 ? g * B / (B + n) : g;
15234
15234
  h = (g - U) / 2;
15235
15235
  }
15236
- const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, w = l + p + h, x = a - p - h, { outerStart: k, outerEnd: v, innerStart: y, innerEnd: O } = pS(e, f, u, x - w), P = u - k, M = u - v, T = w + k / P, C = x - v / M, z = f + y, F = f + O, _ = w + y / z, S = x - O / F;
15236
+ const m = Math.max(1e-3, g * u - r / at) / u, p = (g - m) / 2, x = l + p + h, w = a - p - h, { outerStart: k, outerEnd: v, innerStart: y, innerEnd: O } = pS(e, f, u, w - x), T = u - k, M = u - v, P = x + k / T, C = w - v / M, z = f + y, F = f + O, _ = x + y / z, S = w - O / F;
15237
15237
  if (t.beginPath(), i) {
15238
- const E = (T + C) / 2;
15239
- if (t.arc(s, o, u, T, E), t.arc(s, o, u, E, C), v > 0) {
15238
+ const E = (P + C) / 2;
15239
+ if (t.arc(s, o, u, P, E), t.arc(s, o, u, E, C), v > 0) {
15240
15240
  const Z = Vn(M, C, s, o);
15241
- t.arc(Z.x, Z.y, v, C, x + tt);
15241
+ t.arc(Z.x, Z.y, v, C, w + tt);
15242
15242
  }
15243
- const L = Vn(F, x, s, o);
15243
+ const L = Vn(F, w, s, o);
15244
15244
  if (t.lineTo(L.x, L.y), O > 0) {
15245
15245
  const Z = Vn(F, S, s, o);
15246
- t.arc(Z.x, Z.y, O, x + tt, S + Math.PI);
15246
+ t.arc(Z.x, Z.y, O, w + tt, S + Math.PI);
15247
15247
  }
15248
- const B = (x - O / f + (w + y / f)) / 2;
15249
- if (t.arc(s, o, f, x - O / f, B, !0), t.arc(s, o, f, B, w + y / f, !0), y > 0) {
15248
+ const B = (w - O / f + (x + y / f)) / 2;
15249
+ if (t.arc(s, o, f, w - O / f, B, !0), t.arc(s, o, f, B, x + y / f, !0), y > 0) {
15250
15250
  const Z = Vn(z, _, s, o);
15251
- t.arc(Z.x, Z.y, y, _ + Math.PI, w - tt);
15251
+ t.arc(Z.x, Z.y, y, _ + Math.PI, x - tt);
15252
15252
  }
15253
- const U = Vn(P, w, s, o);
15253
+ const U = Vn(T, x, s, o);
15254
15254
  if (t.lineTo(U.x, U.y), k > 0) {
15255
- const Z = Vn(P, T, s, o);
15256
- t.arc(Z.x, Z.y, k, w - tt, T);
15255
+ const Z = Vn(T, P, s, o);
15256
+ t.arc(Z.x, Z.y, k, x - tt, P);
15257
15257
  }
15258
15258
  } else {
15259
15259
  t.moveTo(s, o);
15260
- const E = Math.cos(T) * u + s, L = Math.sin(T) * u + o;
15260
+ const E = Math.cos(P) * u + s, L = Math.sin(P) * u + o;
15261
15261
  t.lineTo(E, L);
15262
15262
  const B = Math.cos(C) * u + s, U = Math.sin(C) * u + o;
15263
15263
  t.lineTo(B, U);
@@ -15314,8 +15314,8 @@ class Ha extends _i {
15314
15314
  "innerRadius",
15315
15315
  "outerRadius",
15316
15316
  "circumference"
15317
- ], a), h = (this.options.spacing + this.options.borderWidth) / 2, g = De(f, c - l), m = Ls(s, l, c) && l !== c, p = g >= Qe || m, w = Wa(o, d + h, u + h);
15318
- return p && w;
15317
+ ], a), h = (this.options.spacing + this.options.borderWidth) / 2, g = De(f, c - l), m = Ls(s, l, c) && l !== c, p = g >= Qe || m, x = Wa(o, d + h, u + h);
15318
+ return p && x;
15319
15319
  }
15320
15320
  getCenterPoint(r) {
15321
15321
  const { x: n, y: a, startAngle: i, endAngle: s, innerRadius: o, outerRadius: l } = this.getProps([
@@ -15419,18 +15419,18 @@ class pf extends _i {
15419
15419
  _fitCols(e, r, n, a) {
15420
15420
  const { ctx: i, maxHeight: s, options: { labels: { padding: o } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], d = s - e;
15421
15421
  let u = o, f = 0, h = 0, g = 0, m = 0;
15422
- return this.legendItems.forEach((p, w) => {
15423
- const { itemWidth: x, itemHeight: k } = xS(n, r, i, p, a);
15424
- w > 0 && h + k + 2 * o > d && (u += f + o, c.push({
15422
+ return this.legendItems.forEach((p, x) => {
15423
+ const { itemWidth: w, itemHeight: k } = xS(n, r, i, p, a);
15424
+ x > 0 && h + k + 2 * o > d && (u += f + o, c.push({
15425
15425
  width: f,
15426
15426
  height: h
15427
- }), g += f + o, m++, f = h = 0), l[w] = {
15427
+ }), g += f + o, m++, f = h = 0), l[x] = {
15428
15428
  left: g,
15429
15429
  top: h,
15430
15430
  col: m,
15431
- width: x,
15431
+ width: w,
15432
15432
  height: k
15433
- }, f = Math.max(f, x), h += k + o;
15433
+ }, f = Math.max(f, w), h += k + o;
15434
15434
  }), u += f, c.push({
15435
15435
  width: f,
15436
15436
  height: h
@@ -15463,32 +15463,32 @@ class pf extends _i {
15463
15463
  const { options: e, columnSizes: r, lineWidths: n, ctx: a } = this, { align: i, labels: s } = e, o = Ve.color, l = ta(e.rtl, this.left, this.width), c = _t(s.font), { padding: d } = s, u = c.size, f = u / 2;
15464
15464
  let h;
15465
15465
  this.drawTitle(), a.textAlign = l.textAlign("left"), a.textBaseline = "middle", a.lineWidth = 0.5, a.font = c.string;
15466
- const { boxWidth: g, boxHeight: m, itemHeight: p } = mf(s, u), w = function(O, P, M) {
15466
+ const { boxWidth: g, boxHeight: m, itemHeight: p } = mf(s, u), x = function(O, T, M) {
15467
15467
  if (isNaN(g) || g <= 0 || isNaN(m) || m < 0)
15468
15468
  return;
15469
15469
  a.save();
15470
- const T = De(M.lineWidth, 1);
15471
- if (a.fillStyle = De(M.fillStyle, o), a.lineCap = De(M.lineCap, "butt"), a.lineDashOffset = De(M.lineDashOffset, 0), a.lineJoin = De(M.lineJoin, "miter"), a.lineWidth = T, a.strokeStyle = De(M.strokeStyle, o), a.setLineDash(De(M.lineDash, [])), s.usePointStyle) {
15470
+ const P = De(M.lineWidth, 1);
15471
+ if (a.fillStyle = De(M.fillStyle, o), a.lineCap = De(M.lineCap, "butt"), a.lineDashOffset = De(M.lineDashOffset, 0), a.lineJoin = De(M.lineJoin, "miter"), a.lineWidth = P, a.strokeStyle = De(M.strokeStyle, o), a.setLineDash(De(M.lineDash, [])), s.usePointStyle) {
15472
15472
  const C = {
15473
15473
  radius: m * Math.SQRT2 / 2,
15474
15474
  pointStyle: M.pointStyle,
15475
15475
  rotation: M.rotation,
15476
- borderWidth: T
15477
- }, z = l.xPlus(O, g / 2), F = P + f;
15476
+ borderWidth: P
15477
+ }, z = l.xPlus(O, g / 2), F = T + f;
15478
15478
  H0(a, C, z, F, s.pointStyleWidth && g);
15479
15479
  } else {
15480
- const C = P + Math.max((u - m) / 2, 0), z = l.leftForLtr(O, g), F = Qa(M.borderRadius);
15480
+ const C = T + Math.max((u - m) / 2, 0), z = l.leftForLtr(O, g), F = Qa(M.borderRadius);
15481
15481
  a.beginPath(), Object.values(F).some((_) => _ !== 0) ? jl(a, {
15482
15482
  x: z,
15483
15483
  y: C,
15484
15484
  w: g,
15485
15485
  h: m,
15486
15486
  radius: F
15487
- }) : a.rect(z, C, g, m), a.fill(), T !== 0 && a.stroke();
15487
+ }) : a.rect(z, C, g, m), a.fill(), P !== 0 && a.stroke();
15488
15488
  }
15489
15489
  a.restore();
15490
- }, x = function(O, P, M) {
15491
- $s(a, M.text, O, P + p / 2, c, {
15490
+ }, w = function(O, T, M) {
15491
+ $s(a, M.text, O, T + p / 2, c, {
15492
15492
  strikethrough: M.hidden,
15493
15493
  textAlign: l.textAlign(M.textAlign)
15494
15494
  });
@@ -15503,13 +15503,13 @@ class pf extends _i {
15503
15503
  line: 0
15504
15504
  }, X0(this.ctx, e.textDirection);
15505
15505
  const y = p + d;
15506
- this.legendItems.forEach((O, P) => {
15506
+ this.legendItems.forEach((O, T) => {
15507
15507
  a.strokeStyle = O.fontColor, a.fillStyle = O.fontColor;
15508
- const M = a.measureText(O.text).width, T = l.textAlign(O.textAlign || (O.textAlign = s.textAlign)), C = g + f + M;
15508
+ const M = a.measureText(O.text).width, P = l.textAlign(O.textAlign || (O.textAlign = s.textAlign)), C = g + f + M;
15509
15509
  let z = h.x, F = h.y;
15510
- l.setWidth(this.width), k ? P > 0 && z + C + d > this.right && (F = h.y += y, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : P > 0 && F + y > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, F = h.y = It(i, this.top + v + d, this.bottom - r[h.line].height));
15510
+ l.setWidth(this.width), k ? T > 0 && z + C + d > this.right && (F = h.y += y, h.line++, z = h.x = It(i, this.left + d, this.right - n[h.line])) : T > 0 && F + y > this.bottom && (z = h.x = z + r[h.line].width + d, h.line++, F = h.y = It(i, this.top + v + d, this.bottom - r[h.line].height));
15511
15511
  const _ = l.x(z);
15512
- if (w(_, F, O), z = a_(T, z + g + f, k ? z + C : this.right, e.rtl), x(l.x(z), F, O), k)
15512
+ if (x(_, F, O), z = a_(P, z + g + f, k ? z + C : this.right, e.rtl), w(l.x(z), F, O), k)
15513
15513
  h.x += C + d;
15514
15514
  else if (typeof O.text != "string") {
15515
15515
  const S = c.lineHeight;
@@ -15739,19 +15739,19 @@ function SS(t, e) {
15739
15739
  }
15740
15740
  function bf(t, e) {
15741
15741
  const r = t.chart.ctx, { body: n, footer: a, title: i } = t, { boxWidth: s, boxHeight: o } = e, l = _t(e.bodyFont), c = _t(e.titleFont), d = _t(e.footerFont), u = i.length, f = a.length, h = n.length, g = Qt(e.padding);
15742
- let m = g.height, p = 0, w = n.reduce((v, y) => v + y.before.length + y.lines.length + y.after.length, 0);
15743
- if (w += t.beforeBody.length + t.afterBody.length, u && (m += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), w) {
15742
+ let m = g.height, p = 0, x = n.reduce((v, y) => v + y.before.length + y.lines.length + y.after.length, 0);
15743
+ if (x += t.beforeBody.length + t.afterBody.length, u && (m += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), x) {
15744
15744
  const v = e.displayColors ? Math.max(o, l.lineHeight) : l.lineHeight;
15745
- m += h * v + (w - h) * l.lineHeight + (w - 1) * e.bodySpacing;
15745
+ m += h * v + (x - h) * l.lineHeight + (x - 1) * e.bodySpacing;
15746
15746
  }
15747
15747
  f && (m += e.footerMarginTop + f * d.lineHeight + (f - 1) * e.footerSpacing);
15748
- let x = 0;
15748
+ let w = 0;
15749
15749
  const k = function(v) {
15750
- p = Math.max(p, r.measureText(v).width + x);
15750
+ p = Math.max(p, r.measureText(v).width + w);
15751
15751
  };
15752
- return r.save(), r.font = c.string, Se(t.title, k), r.font = l.string, Se(t.beforeBody.concat(t.afterBody), k), x = e.displayColors ? s + 2 + e.boxPadding : 0, Se(n, (v) => {
15752
+ return r.save(), r.font = c.string, Se(t.title, k), r.font = l.string, Se(t.beforeBody.concat(t.afterBody), k), w = e.displayColors ? s + 2 + e.boxPadding : 0, Se(n, (v) => {
15753
15753
  Se(v.before, k), Se(v.lines, k), Se(v.after, k);
15754
- }), x = 0, r.font = d.string, Se(t.footer, k), r.restore(), p += g.width, {
15754
+ }), w = 0, r.font = d.string, Se(t.footer, k), r.restore(), p += g.width, {
15755
15755
  width: p,
15756
15756
  height: m
15757
15757
  };
@@ -15790,8 +15790,8 @@ function vf(t, e, r, n) {
15790
15790
  let g = ES(e, o);
15791
15791
  const m = PS(e, l, c);
15792
15792
  return l === "center" ? o === "left" ? g += c : o === "right" && (g -= c) : o === "left" ? g -= Math.max(d, f) + a : o === "right" && (g += Math.max(u, h) + a), {
15793
- x: zt(g, 0, n.width - e.width),
15794
- y: zt(m, 0, n.height - e.height)
15793
+ x: jt(g, 0, n.width - e.width),
15794
+ y: jt(m, 0, n.height - e.height)
15795
15795
  };
15796
15796
  }
15797
15797
  function Qi(t, e, r) {
@@ -15955,11 +15955,11 @@ class Yl extends _i {
15955
15955
  }
15956
15956
  getCaretPosition(e, r, n) {
15957
15957
  const { xAlign: a, yAlign: i } = this, { caretSize: s, cornerRadius: o } = n, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = Qa(o), { x: f, y: h } = e, { width: g, height: m } = r;
15958
- let p, w, x, k, v, y;
15959
- return i === "center" ? (v = h + m / 2, a === "left" ? (p = f, w = p - s, k = v + s, y = v - s) : (p = f + g, w = p + s, k = v - s, y = v + s), x = p) : (a === "left" ? w = f + Math.max(l, d) + s : a === "right" ? w = f + g - Math.max(c, u) - s : w = this.caretX, i === "top" ? (k = h, v = k - s, p = w - s, x = w + s) : (k = h + m, v = k + s, p = w + s, x = w - s), y = k), {
15958
+ let p, x, w, k, v, y;
15959
+ return i === "center" ? (v = h + m / 2, a === "left" ? (p = f, x = p - s, k = v + s, y = v - s) : (p = f + g, x = p + s, k = v - s, y = v + s), w = p) : (a === "left" ? x = f + Math.max(l, d) + s : a === "right" ? x = f + g - Math.max(c, u) - s : x = this.caretX, i === "top" ? (k = h, v = k - s, p = x - s, w = x + s) : (k = h + m, v = k + s, p = x + s, w = x - s), y = k), {
15960
15960
  x1: p,
15961
- x2: w,
15962
- x3: x,
15961
+ x2: x,
15962
+ x3: w,
15963
15963
  y1: k,
15964
15964
  y2: v,
15965
15965
  y3: y
@@ -15982,23 +15982,23 @@ class Yl extends _i {
15982
15982
  pointStyle: o.pointStyle,
15983
15983
  rotation: o.rotation,
15984
15984
  borderWidth: 1
15985
- }, p = a.leftForLtr(f, c) + c / 2, w = g + l / 2;
15986
- e.strokeStyle = i.multiKeyBackground, e.fillStyle = i.multiKeyBackground, $u(e, m, p, w), e.strokeStyle = s.borderColor, e.fillStyle = s.backgroundColor, $u(e, m, p, w);
15985
+ }, p = a.leftForLtr(f, c) + c / 2, x = g + l / 2;
15986
+ e.strokeStyle = i.multiKeyBackground, e.fillStyle = i.multiKeyBackground, $u(e, m, p, x), e.strokeStyle = s.borderColor, e.fillStyle = s.backgroundColor, $u(e, m, p, x);
15987
15987
  } else {
15988
15988
  e.lineWidth = be(s.borderWidth) ? Math.max(...Object.values(s.borderWidth)) : s.borderWidth || 1, e.strokeStyle = s.borderColor, e.setLineDash(s.borderDash || []), e.lineDashOffset = s.borderDashOffset || 0;
15989
- const m = a.leftForLtr(f, c), p = a.leftForLtr(a.xPlus(f, 1), c - 2), w = Qa(s.borderRadius);
15990
- Object.values(w).some((x) => x !== 0) ? (e.beginPath(), e.fillStyle = i.multiKeyBackground, jl(e, {
15989
+ const m = a.leftForLtr(f, c), p = a.leftForLtr(a.xPlus(f, 1), c - 2), x = Qa(s.borderRadius);
15990
+ Object.values(x).some((w) => w !== 0) ? (e.beginPath(), e.fillStyle = i.multiKeyBackground, jl(e, {
15991
15991
  x: m,
15992
15992
  y: g,
15993
15993
  w: c,
15994
15994
  h: l,
15995
- radius: w
15995
+ radius: x
15996
15996
  }), e.fill(), e.stroke(), e.fillStyle = s.backgroundColor, e.beginPath(), jl(e, {
15997
15997
  x: p,
15998
15998
  y: g + 1,
15999
15999
  w: c - 2,
16000
16000
  h: l - 2,
16001
- radius: w
16001
+ radius: x
16002
16002
  }), e.fill()) : (e.fillStyle = i.multiKeyBackground, e.fillRect(m, g, c, l), e.strokeRect(m, g, c, l), e.fillStyle = s.backgroundColor, e.fillRect(p, g + 1, c - 2, l - 2));
16003
16003
  }
16004
16004
  e.fillStyle = this.labelTextColors[n];
@@ -16009,11 +16009,11 @@ class Yl extends _i {
16009
16009
  const g = ta(n.rtl, this.x, this.width), m = function(M) {
16010
16010
  r.fillText(M, g.x(e.x + h), e.y + f / 2), e.y += f + i;
16011
16011
  }, p = g.textAlign(s);
16012
- let w, x, k, v, y, O, P;
16012
+ let x, w, k, v, y, O, T;
16013
16013
  for (r.textAlign = s, r.textBaseline = "middle", r.font = u.string, e.x = Qi(this, p, n), r.fillStyle = n.bodyColor, Se(this.beforeBody, m), h = o && p !== "right" ? s === "center" ? c / 2 + d : c + 2 + d : 0, v = 0, O = a.length; v < O; ++v) {
16014
- for (w = a[v], x = this.labelTextColors[v], r.fillStyle = x, Se(w.before, m), k = w.lines, o && k.length && (this._drawColorBox(r, e, v, g, n), f = Math.max(u.lineHeight, l)), y = 0, P = k.length; y < P; ++y)
16014
+ for (x = a[v], w = this.labelTextColors[v], r.fillStyle = w, Se(x.before, m), k = x.lines, o && k.length && (this._drawColorBox(r, e, v, g, n), f = Math.max(u.lineHeight, l)), y = 0, T = k.length; y < T; ++y)
16015
16015
  m(k[y]), f = u.lineHeight;
16016
- Se(w.after, m);
16016
+ Se(x.after, m);
16017
16017
  }
16018
16018
  h = 0, f = u.lineHeight, Se(this.afterBody, m), e.y -= i;
16019
16019
  }
@@ -16375,7 +16375,7 @@ class Hs extends wo {
16375
16375
  let r = 0, n = 0, a, i;
16376
16376
  this.options.offset && e.length && (a = this.getDecimalForValue(e[0]), e.length === 1 ? r = 1 - a : r = (this.getDecimalForValue(e[1]) - a) / 2, i = this.getDecimalForValue(e[e.length - 1]), e.length === 1 ? n = i : n = (i - this.getDecimalForValue(e[e.length - 2])) / 2);
16377
16377
  const s = e.length < 3 ? 0.5 : 0.25;
16378
- r = zt(r, 0, s), n = zt(n, 0, s), this._offsets = {
16378
+ r = jt(r, 0, s), n = jt(n, 0, s), this._offsets = {
16379
16379
  start: r,
16380
16380
  end: n,
16381
16381
  factor: 1 / (r + 1 + n)
@@ -16953,26 +16953,26 @@ function Pf(t) {
16953
16953
  return pp(gs("", null, null, null, [""], t = mp(t), 0, [0], t));
16954
16954
  }
16955
16955
  function gs(t, e, r, n, a, i, s, o, l) {
16956
- for (var c = 0, d = 0, u = s, f = 0, h = 0, g = 0, m = 1, p = 1, w = 1, x = 0, k = "", v = a, y = i, O = n, P = k; p; )
16957
- switch (g = x, x = Ft()) {
16956
+ for (var c = 0, d = 0, u = s, f = 0, h = 0, g = 0, m = 1, p = 1, x = 1, w = 0, k = "", v = a, y = i, O = n, T = k; p; )
16957
+ switch (g = w, w = Ft()) {
16958
16958
  case 40:
16959
- if (g != 108 && ot(P, u - 1) == 58) {
16960
- ql(P += _e(hs(x), "&", "&\f"), "&\f") != -1 && (w = -1);
16959
+ if (g != 108 && ot(T, u - 1) == 58) {
16960
+ ql(T += _e(hs(w), "&", "&\f"), "&\f") != -1 && (x = -1);
16961
16961
  break;
16962
16962
  }
16963
16963
  case 34:
16964
16964
  case 39:
16965
16965
  case 91:
16966
- P += hs(x);
16966
+ T += hs(w);
16967
16967
  break;
16968
16968
  case 9:
16969
16969
  case 10:
16970
16970
  case 13:
16971
16971
  case 32:
16972
- P += oD(g);
16972
+ T += oD(g);
16973
16973
  break;
16974
16974
  case 92:
16975
- P += lD(fs() - 1, 7);
16975
+ T += lD(fs() - 1, 7);
16976
16976
  continue;
16977
16977
  case 47:
16978
16978
  switch (br()) {
@@ -16981,69 +16981,69 @@ function gs(t, e, r, n, a, i, s, o, l) {
16981
16981
  Ji(uD(cD(Ft(), fs()), e, r), l);
16982
16982
  break;
16983
16983
  default:
16984
- P += "/";
16984
+ T += "/";
16985
16985
  }
16986
16986
  break;
16987
16987
  case 123 * m:
16988
- o[c++] = sr(P) * w;
16988
+ o[c++] = sr(T) * x;
16989
16989
  case 125 * m:
16990
16990
  case 59:
16991
16991
  case 0:
16992
- switch (x) {
16992
+ switch (w) {
16993
16993
  case 0:
16994
16994
  case 125:
16995
16995
  p = 0;
16996
16996
  case 59 + d:
16997
- h > 0 && sr(P) - u && Ji(h > 32 ? Rf(P + ";", n, r, u - 1) : Rf(_e(P, " ", "") + ";", n, r, u - 2), l);
16997
+ h > 0 && sr(T) - u && Ji(h > 32 ? Rf(T + ";", n, r, u - 1) : Rf(_e(T, " ", "") + ";", n, r, u - 2), l);
16998
16998
  break;
16999
16999
  case 59:
17000
- P += ";";
17000
+ T += ";";
17001
17001
  default:
17002
- if (Ji(O = Tf(P, e, r, c, d, a, o, k, v = [], y = [], u), i), x === 123)
17002
+ if (Ji(O = Tf(T, e, r, c, d, a, o, k, v = [], y = [], u), i), w === 123)
17003
17003
  if (d === 0)
17004
- gs(P, e, O, O, v, i, u, o, y);
17004
+ gs(T, e, O, O, v, i, u, o, y);
17005
17005
  else
17006
- switch (f === 99 && ot(P, 3) === 110 ? 100 : f) {
17006
+ switch (f === 99 && ot(T, 3) === 110 ? 100 : f) {
17007
17007
  case 100:
17008
17008
  case 109:
17009
17009
  case 115:
17010
17010
  gs(t, O, O, n && Ji(Tf(t, O, O, 0, 0, a, o, k, a, v = [], u), y), a, y, u, o, n ? v : y);
17011
17011
  break;
17012
17012
  default:
17013
- gs(P, O, O, O, [""], y, 0, o, y);
17013
+ gs(T, O, O, O, [""], y, 0, o, y);
17014
17014
  }
17015
17015
  }
17016
- c = d = h = 0, m = w = 1, k = P = "", u = s;
17016
+ c = d = h = 0, m = x = 1, k = T = "", u = s;
17017
17017
  break;
17018
17018
  case 58:
17019
- u = 1 + sr(P), h = g;
17019
+ u = 1 + sr(T), h = g;
17020
17020
  default:
17021
17021
  if (m < 1) {
17022
- if (x == 123)
17022
+ if (w == 123)
17023
17023
  --m;
17024
- else if (x == 125 && m++ == 0 && sD() == 125)
17024
+ else if (w == 125 && m++ == 0 && sD() == 125)
17025
17025
  continue;
17026
17026
  }
17027
- switch (P += So(x), x * m) {
17027
+ switch (T += So(w), w * m) {
17028
17028
  case 38:
17029
- w = d > 0 ? 1 : (P += "\f", -1);
17029
+ x = d > 0 ? 1 : (T += "\f", -1);
17030
17030
  break;
17031
17031
  case 44:
17032
- o[c++] = (sr(P) - 1) * w, w = 1;
17032
+ o[c++] = (sr(T) - 1) * x, x = 1;
17033
17033
  break;
17034
17034
  case 64:
17035
- br() === 45 && (P += hs(Ft())), f = br(), d = u = sr(k = P += dD(fs())), x++;
17035
+ br() === 45 && (T += hs(Ft())), f = br(), d = u = sr(k = T += dD(fs())), w++;
17036
17036
  break;
17037
17037
  case 45:
17038
- g === 45 && sr(P) == 2 && (m = 0);
17038
+ g === 45 && sr(T) == 2 && (m = 0);
17039
17039
  }
17040
17040
  }
17041
17041
  return i;
17042
17042
  }
17043
17043
  function Tf(t, e, r, n, a, i, s, o, l, c, d) {
17044
17044
  for (var u = a - 1, f = a === 0 ? i : [""], h = rd(f), g = 0, m = 0, p = 0; g < n; ++g)
17045
- for (var w = 0, x = di(t, u + 1, u = eD(m = s[g])), k = t; w < h; ++w)
17046
- (k = hp(m > 0 ? f[w] + " " + x : _e(x, /&\f/g, f[w]))) && (l[p++] = k);
17045
+ for (var x = 0, w = di(t, u + 1, u = eD(m = s[g])), k = t; x < h; ++x)
17046
+ (k = hp(m > 0 ? f[x] + " " + w : _e(w, /&\f/g, f[x]))) && (l[p++] = k);
17047
17047
  return Mo(t, e, r, a === 0 ? ed : o, l, c, d);
17048
17048
  }
17049
17049
  function uD(t, e, r) {
@@ -17362,28 +17362,28 @@ If multiple caches share the same key they might "fight" for each other's style
17362
17362
  })], f = If(c.concat(a, u)), h = function(y) {
17363
17363
  return Pn(Pf(y), f);
17364
17364
  };
17365
- l = function(y, O, P, M) {
17366
- d = P, process.env.NODE_ENV !== "production" && O.map !== void 0 && (d = {
17365
+ l = function(y, O, T, M) {
17366
+ d = T, process.env.NODE_ENV !== "production" && O.map !== void 0 && (d = {
17367
17367
  insert: function(C) {
17368
- P.insert(C + O.map);
17368
+ T.insert(C + O.map);
17369
17369
  }
17370
17370
  }), h(y ? y + "{" + O.styles + "}" : O.styles), M && (k.inserted[O.name] = !0);
17371
17371
  };
17372
17372
  } else {
17373
17373
  var g = [Nf], m = If(c.concat(a, g)), p = function(y) {
17374
17374
  return Pn(Pf(y), m);
17375
- }, w = SD(a)(r), x = function(y, O) {
17376
- var P = O.name;
17377
- return w[P] === void 0 && (w[P] = p(y ? y + "{" + O.styles + "}" : O.styles)), w[P];
17375
+ }, x = SD(a)(r), w = function(y, O) {
17376
+ var T = O.name;
17377
+ return x[T] === void 0 && (x[T] = p(y ? y + "{" + O.styles + "}" : O.styles)), x[T];
17378
17378
  };
17379
- l = function(y, O, P, M) {
17380
- var T = O.name, C = x(y, O);
17379
+ l = function(y, O, T, M) {
17380
+ var P = O.name, C = w(y, O);
17381
17381
  if (k.compat === void 0)
17382
- return M && (k.inserted[T] = !0), // using === development instead of !== production
17382
+ return M && (k.inserted[P] = !0), // using === development instead of !== production
17383
17383
  // because if people do ssr in tests, the source maps showing up would be annoying
17384
17384
  process.env.NODE_ENV === "development" && O.map !== void 0 ? C + O.map : C;
17385
17385
  if (M)
17386
- k.inserted[T] = C;
17386
+ k.inserted[P] = C;
17387
17387
  else
17388
17388
  return C;
17389
17389
  };
@@ -18032,8 +18032,8 @@ You may have forgotten to import it.`);
18032
18032
  for (var f = d.length, h = 1; h < f; h++)
18033
18033
  process.env.NODE_ENV !== "production" && d[0][h] === void 0 && console.error(Qf), u.push(d[h], d[0][h]);
18034
18034
  }
18035
- var g = ad(function(m, p, w) {
18036
- var x = c && m.as || a, k = "", v = [], y = m;
18035
+ var g = ad(function(m, p, x) {
18036
+ var w = c && m.as || a, k = "", v = [], y = m;
18037
18037
  if (m.theme == null) {
18038
18038
  y = {};
18039
18039
  for (var O in m)
@@ -18041,17 +18041,17 @@ You may have forgotten to import it.`);
18041
18041
  y.theme = rt(id);
18042
18042
  }
18043
18043
  typeof m.className == "string" ? k = YD(p.registered, v, m.className) : m.className != null && (k = m.className + " ");
18044
- var P = rM(u.concat(v), p.registered, y);
18045
- k += p.key + "-" + P.name, s !== void 0 && (k += " " + s);
18046
- var M = c && o === void 0 ? Gf(x) : l, T = {};
18044
+ var T = rM(u.concat(v), p.registered, y);
18045
+ k += p.key + "-" + T.name, s !== void 0 && (k += " " + s);
18046
+ var M = c && o === void 0 ? Gf(w) : l, P = {};
18047
18047
  for (var C in m)
18048
18048
  c && C === "as" || // $FlowFixMe
18049
- M(C) && (T[C] = m[C]);
18050
- return T.className = k, T.ref = w, /* @__PURE__ */ hr(Zh, null, /* @__PURE__ */ hr(sM, {
18049
+ M(C) && (P[C] = m[C]);
18050
+ return P.className = k, P.ref = x, /* @__PURE__ */ hr(Zh, null, /* @__PURE__ */ hr(sM, {
18051
18051
  cache: p,
18052
- serialized: P,
18053
- isStringTag: typeof x == "string"
18054
- }), /* @__PURE__ */ hr(x, T));
18052
+ serialized: T,
18053
+ isStringTag: typeof w == "string"
18054
+ }), /* @__PURE__ */ hr(w, P));
18055
18055
  });
18056
18056
  return g.displayName = i !== void 0 ? i : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", g.defaultProps = e.defaultProps, g.__emotion_real = g, g.__emotion_base = a, g.__emotion_styles = u, g.__emotion_forwardProp = o, Object.defineProperty(g, "toString", {
18057
18057
  value: function() {
@@ -18490,13 +18490,13 @@ var et = Pp.exports, cM = ee.createContext(void 0), dM = function() {
18490
18490
  rtl: !1,
18491
18491
  transitionDuration: 300
18492
18492
  }), bM = ee.forwardRef(function(t, e) {
18493
- var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, w = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, x = t.transitionDuration, k = x === void 0 ? 300 : x, v = t.image, y = t.rtl, O = t.rootStyles, P = Fn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), M = function() {
18493
+ var r, n = t.collapsed, a = t.toggled, i = t.onBackdropClick, s = t.onBreakPoint, o = t.width, l = o === void 0 ? "250px" : o, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, p = t.backgroundColor, x = p === void 0 ? "rgb(249, 249, 249, 0.7)" : p, w = t.transitionDuration, k = w === void 0 ? 300 : w, v = t.image, y = t.rtl, O = t.rootStyles, T = Fn(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), M = function() {
18494
18494
  if (m)
18495
18495
  return "(max-width: ".concat(m, ")");
18496
18496
  if (g)
18497
18497
  return ["xs", "sm", "md", "lg", "xl", "xxl"].includes(g) ? "(max-width: ".concat(hM[g], ")") : g === "always" || g === "all" ? (g === "always" && console.warn('The "always" breakPoint is deprecated and will be removed in future release. Please use the "all" breakPoint instead.'), "screen") : "(max-width: ".concat(g, ")");
18498
- }, T = ee.useRef();
18499
- T.current = function(U) {
18498
+ }, P = ee.useRef();
18499
+ P.current = function(U) {
18500
18500
  s == null || s(U);
18501
18501
  };
18502
18502
  var C = uM(M()), z = ee.useState(!1), F = z[0], _ = z[1], S = dM(), E = n ?? (!F && u ? !0 : S == null ? void 0 : S.collapsed), L = a ?? (S == null ? void 0 : S.toggled), B = function() {
@@ -18504,7 +18504,7 @@ var et = Pp.exports, cM = ee.createContext(void 0), dM = function() {
18504
18504
  };
18505
18505
  return ee.useEffect(function() {
18506
18506
  var U;
18507
- (U = T.current) === null || U === void 0 || U.call(T, C);
18507
+ (U = P.current) === null || U === void 0 || U.call(P, C);
18508
18508
  }, [C]), ee.useEffect(function() {
18509
18509
  S == null || S.updateSidebarState({ broken: C, rtl: y, transitionDuration: k });
18510
18510
  }, [C, S == null ? void 0 : S.updateSidebarState, y, k]), ee.useEffect(function() {
@@ -18516,8 +18516,8 @@ var et = Pp.exports, cM = ee.createContext(void 0), dM = function() {
18516
18516
  { value: { collapsed: E, toggled: L, rtl: y, transitionDuration: k } },
18517
18517
  ee.createElement(
18518
18518
  gM,
18519
- At({ ref: e, "data-testid": "".concat(He.root, "-test-id"), rtl: y, rootStyles: O, width: l, collapsedWidth: d, transitionDuration: k, className: et(He.root, (r = {}, r[He.collapsed] = E, r[He.toggled] = L, r[He.broken] = C, r[He.rtl] = y, r), f) }, P),
18520
- ee.createElement(mM, { "data-testid": "".concat(He.container, "-test-id"), className: He.container, backgroundColor: w }, h),
18519
+ At({ ref: e, "data-testid": "".concat(He.root, "-test-id"), rtl: y, rootStyles: O, width: l, collapsedWidth: d, transitionDuration: k, className: et(He.root, (r = {}, r[He.collapsed] = E, r[He.toggled] = L, r[He.broken] = C, r[He.rtl] = y, r), f) }, T),
18520
+ ee.createElement(mM, { "data-testid": "".concat(He.container, "-test-id"), className: He.container, backgroundColor: x }, h),
18521
18521
  v && ee.createElement(pM, { "data-testid": "".concat(He.image, "-test-id"), src: v, alt: "sidebar background", className: He.image }),
18522
18522
  C && L && ee.createElement(fM, { "data-testid": "".concat(He.backdrop, "-test-id"), role: "button", tabIndex: 0, "aria-label": "backdrop", onClick: B, onKeyPress: B, className: He.backdrop })
18523
18523
  )
@@ -18789,7 +18789,7 @@ var et = Pp.exports, cM = ee.createContext(void 0), dM = function() {
18789
18789
  background-color: currentcolor;
18790
18790
  border-radius: 50%;
18791
18791
  display: inline-block;
18792
- `]))), ch, dh, uh, St = "top", Ht = "bottom", Bt = "right", Dt = "left", Eo = "auto", Si = [St, Ht, Bt, Dt], da = "start", mi = "end", MM = "clippingParents", Lp = "viewport", Ra = "popper", CM = "reference", fh = /* @__PURE__ */ Si.reduce(function(t, e) {
18792
+ `]))), ch, dh, uh, St = "top", Bt = "bottom", Yt = "right", Dt = "left", Eo = "auto", Si = [St, Bt, Yt, Dt], da = "start", mi = "end", MM = "clippingParents", Lp = "viewport", Ra = "popper", CM = "reference", fh = /* @__PURE__ */ Si.reduce(function(t, e) {
18793
18793
  return t.concat([e + "-" + da, e + "-" + mi]);
18794
18794
  }, []), $p = /* @__PURE__ */ [].concat(Si, [Eo]).reduce(function(t, e) {
18795
18795
  return t.concat([e, e + "-" + da, e + "-" + mi]);
@@ -18995,10 +18995,10 @@ var YM = function(e, r) {
18995
18995
  })) : e, Hp(typeof e != "number" ? e : Bp(e, Si));
18996
18996
  };
18997
18997
  function VM(t) {
18998
- var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, s = r.modifiersData.popperOffsets, o = Gt(r.placement), l = dd(o), c = [Dt, Bt].indexOf(o) >= 0, d = c ? "height" : "width";
18998
+ var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, s = r.modifiersData.popperOffsets, o = Gt(r.placement), l = dd(o), c = [Dt, Yt].indexOf(o) >= 0, d = c ? "height" : "width";
18999
18999
  if (!(!i || !s)) {
19000
- var u = YM(a.padding, r), f = cd(i), h = l === "y" ? St : Dt, g = l === "y" ? Ht : Bt, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], w = Di(i), x = w ? l === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, k = m / 2 - p / 2, v = u[h], y = x - f[d] - u[g], O = x / 2 - f[d] / 2 + k, P = Ja(v, O, y), M = l;
19001
- r.modifiersData[n] = (e = {}, e[M] = P, e.centerOffset = P - O, e);
19000
+ var u = YM(a.padding, r), f = cd(i), h = l === "y" ? St : Dt, g = l === "y" ? Bt : Yt, m = r.rects.reference[d] + r.rects.reference[l] - s[l] - r.rects.popper[d], p = s[l] - r.rects.reference[l], x = Di(i), w = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, k = m / 2 - p / 2, v = u[h], y = w - f[d] - u[g], O = w / 2 - f[d] / 2 + k, T = Ja(v, O, y), M = l;
19001
+ r.modifiersData[n] = (e = {}, e[M] = T, e.centerOffset = T - O, e);
19002
19002
  }
19003
19003
  }
19004
19004
  function qM(t) {
@@ -19045,19 +19045,19 @@ function gh(t) {
19045
19045
  y: m
19046
19046
  };
19047
19047
  h = p.x, m = p.y;
19048
- var w = s.hasOwnProperty("x"), x = s.hasOwnProperty("y"), k = Dt, v = St, y = window;
19048
+ var x = s.hasOwnProperty("x"), w = s.hasOwnProperty("y"), k = Dt, v = St, y = window;
19049
19049
  if (c) {
19050
- var O = Di(r), P = "clientHeight", M = "clientWidth";
19051
- if (O === qt(r) && (O = nn(r), Zt(O).position !== "static" && o === "absolute" && (P = "scrollHeight", M = "scrollWidth")), O = O, a === St || (a === Dt || a === Bt) && i === mi) {
19052
- v = Ht;
19053
- var T = u && O === y && y.visualViewport ? y.visualViewport.height : (
19050
+ var O = Di(r), T = "clientHeight", M = "clientWidth";
19051
+ if (O === qt(r) && (O = nn(r), Zt(O).position !== "static" && o === "absolute" && (T = "scrollHeight", M = "scrollWidth")), O = O, a === St || (a === Dt || a === Yt) && i === mi) {
19052
+ v = Bt;
19053
+ var P = u && O === y && y.visualViewport ? y.visualViewport.height : (
19054
19054
  // $FlowFixMe[prop-missing]
19055
- O[P]
19055
+ O[T]
19056
19056
  );
19057
- m -= T - n.height, m *= l ? 1 : -1;
19057
+ m -= P - n.height, m *= l ? 1 : -1;
19058
19058
  }
19059
- if (a === Dt || (a === St || a === Ht) && i === mi) {
19060
- k = Bt;
19059
+ if (a === Dt || (a === St || a === Bt) && i === mi) {
19060
+ k = Yt;
19061
19061
  var C = u && O === y && y.visualViewport ? y.visualViewport.width : (
19062
19062
  // $FlowFixMe[prop-missing]
19063
19063
  O[M]
@@ -19076,9 +19076,9 @@ function gh(t) {
19076
19076
  };
19077
19077
  if (h = F.x, m = F.y, l) {
19078
19078
  var _;
19079
- return Object.assign({}, z, (_ = {}, _[v] = x ? "0" : "", _[k] = w ? "0" : "", _.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", _));
19079
+ return Object.assign({}, z, (_ = {}, _[v] = w ? "0" : "", _[k] = x ? "0" : "", _.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", _));
19080
19080
  }
19081
- return Object.assign({}, z, (e = {}, e[v] = x ? m + "px" : "", e[k] = w ? h + "px" : "", e.transform = "", e));
19081
+ return Object.assign({}, z, (e = {}, e[v] = w ? m + "px" : "", e[k] = x ? h + "px" : "", e.transform = "", e));
19082
19082
  }
19083
19083
  function KM(t) {
19084
19084
  var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, s = i === void 0 ? !0 : i, o = r.roundOffsets, l = o === void 0 ? !0 : o;
@@ -19247,13 +19247,13 @@ function Vp(t) {
19247
19247
  y: e.y - r.height
19248
19248
  };
19249
19249
  break;
19250
- case Ht:
19250
+ case Bt:
19251
19251
  l = {
19252
19252
  x: s,
19253
19253
  y: e.y + e.height
19254
19254
  };
19255
19255
  break;
19256
- case Bt:
19256
+ case Yt:
19257
19257
  l = {
19258
19258
  x: e.x + e.width,
19259
19259
  y: o
@@ -19287,20 +19287,20 @@ function Vp(t) {
19287
19287
  }
19288
19288
  function pi(t, e) {
19289
19289
  e === void 0 && (e = {});
19290
- var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, o = r.boundary, l = o === void 0 ? MM : o, c = r.rootBoundary, d = c === void 0 ? Lp : c, u = r.elementContext, f = u === void 0 ? Ra : u, h = r.altBoundary, g = h === void 0 ? !1 : h, m = r.padding, p = m === void 0 ? 0 : m, w = Hp(typeof p != "number" ? p : Bp(p, Si)), x = f === Ra ? CM : Ra, k = t.rects.popper, v = t.elements[g ? x : f], y = s2(Ln(v) ? v : v.contextElement || nn(t.elements.popper), l, d, s), O = fa(t.elements.reference), P = Vp({
19290
+ var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, s = i === void 0 ? t.strategy : i, o = r.boundary, l = o === void 0 ? MM : o, c = r.rootBoundary, d = c === void 0 ? Lp : c, u = r.elementContext, f = u === void 0 ? Ra : u, h = r.altBoundary, g = h === void 0 ? !1 : h, m = r.padding, p = m === void 0 ? 0 : m, x = Hp(typeof p != "number" ? p : Bp(p, Si)), w = f === Ra ? CM : Ra, k = t.rects.popper, v = t.elements[g ? w : f], y = s2(Ln(v) ? v : v.contextElement || nn(t.elements.popper), l, d, s), O = fa(t.elements.reference), T = Vp({
19291
19291
  reference: O,
19292
19292
  element: k,
19293
19293
  placement: a
19294
- }), M = Zl(Object.assign({}, k, P)), T = f === Ra ? M : O, C = {
19295
- top: y.top - T.top + w.top,
19296
- bottom: T.bottom - y.bottom + w.bottom,
19297
- left: y.left - T.left + w.left,
19298
- right: T.right - y.right + w.right
19294
+ }), M = Zl(Object.assign({}, k, T)), P = f === Ra ? M : O, C = {
19295
+ top: y.top - P.top + x.top,
19296
+ bottom: P.bottom - y.bottom + x.bottom,
19297
+ left: y.left - P.left + x.left,
19298
+ right: P.right - y.right + x.right
19299
19299
  }, z = t.modifiersData.offset;
19300
19300
  if (f === Ra && z) {
19301
19301
  var F = z[a];
19302
19302
  Object.keys(C).forEach(function(_) {
19303
- var S = [Bt, Ht].indexOf(_) >= 0 ? 1 : -1, E = [St, Ht].indexOf(_) >= 0 ? "y" : "x";
19303
+ var S = [Yt, Bt].indexOf(_) >= 0 ? 1 : -1, E = [St, Bt].indexOf(_) >= 0 ? "y" : "x";
19304
19304
  C[_] += F[E] * S;
19305
19305
  });
19306
19306
  }
@@ -19335,7 +19335,7 @@ function l2(t) {
19335
19335
  function c2(t) {
19336
19336
  var e = t.state, r = t.options, n = t.name;
19337
19337
  if (!e.modifiersData[n]._skip) {
19338
- for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, w = Gt(p), x = w === p, k = l || (x || !g ? [ps(p)] : l2(p)), v = [p].concat(k).reduce(function(N, D) {
19338
+ for (var a = r.mainAxis, i = a === void 0 ? !0 : a, s = r.altAxis, o = s === void 0 ? !0 : s, l = r.fallbackPlacements, c = r.padding, d = r.boundary, u = r.rootBoundary, f = r.altBoundary, h = r.flipVariations, g = h === void 0 ? !0 : h, m = r.allowedAutoPlacements, p = e.options.placement, x = Gt(p), w = x === p, k = l || (w || !g ? [ps(p)] : l2(p)), v = [p].concat(k).reduce(function(N, D) {
19339
19339
  return N.concat(Gt(D) === Eo ? o2(e, {
19340
19340
  placement: D,
19341
19341
  boundary: d,
@@ -19344,40 +19344,40 @@ function c2(t) {
19344
19344
  flipVariations: g,
19345
19345
  allowedAutoPlacements: m
19346
19346
  }) : D);
19347
- }, []), y = e.rects.reference, O = e.rects.popper, P = /* @__PURE__ */ new Map(), M = !0, T = v[0], C = 0; C < v.length; C++) {
19348
- var z = v[C], F = Gt(z), _ = ha(z) === da, S = [St, Ht].indexOf(F) >= 0, E = S ? "width" : "height", L = pi(e, {
19347
+ }, []), y = e.rects.reference, O = e.rects.popper, T = /* @__PURE__ */ new Map(), M = !0, P = v[0], C = 0; C < v.length; C++) {
19348
+ var z = v[C], F = Gt(z), _ = ha(z) === da, S = [St, Bt].indexOf(F) >= 0, E = S ? "width" : "height", L = pi(e, {
19349
19349
  placement: z,
19350
19350
  boundary: d,
19351
19351
  rootBoundary: u,
19352
19352
  altBoundary: f,
19353
19353
  padding: c
19354
- }), B = S ? _ ? Bt : Dt : _ ? Ht : St;
19354
+ }), B = S ? _ ? Yt : Dt : _ ? Bt : St;
19355
19355
  y[E] > O[E] && (B = ps(B));
19356
19356
  var U = ps(B), Z = [];
19357
19357
  if (i && Z.push(L[F] <= 0), o && Z.push(L[B] <= 0, L[U] <= 0), Z.every(function(N) {
19358
19358
  return N;
19359
19359
  })) {
19360
- T = z, M = !1;
19360
+ P = z, M = !1;
19361
19361
  break;
19362
19362
  }
19363
- P.set(z, Z);
19363
+ T.set(z, Z);
19364
19364
  }
19365
19365
  if (M)
19366
19366
  for (var R = g ? 3 : 1, j = function(D) {
19367
19367
  var $ = v.find(function(X) {
19368
- var q = P.get(X);
19368
+ var q = T.get(X);
19369
19369
  if (q)
19370
19370
  return q.slice(0, D).every(function(K) {
19371
19371
  return K;
19372
19372
  });
19373
19373
  });
19374
19374
  if ($)
19375
- return T = $, "break";
19375
+ return P = $, "break";
19376
19376
  }, A = R; A > 0; A--) {
19377
19377
  var I = j(A);
19378
19378
  if (I === "break") break;
19379
19379
  }
19380
- e.placement !== T && (e.modifiersData[n]._skip = !0, e.placement = T, e.reset = !0);
19380
+ e.placement !== P && (e.modifiersData[n]._skip = !0, e.placement = P, e.reset = !0);
19381
19381
  }
19382
19382
  }
19383
19383
  var d2 = {
@@ -19402,7 +19402,7 @@ function bh(t, e, r) {
19402
19402
  };
19403
19403
  }
19404
19404
  function yh(t) {
19405
- return [St, Bt, Ht, Dt].some(function(e) {
19405
+ return [St, Yt, Bt, Dt].some(function(e) {
19406
19406
  return t[e] >= 0;
19407
19407
  });
19408
19408
  }
@@ -19433,7 +19433,7 @@ function h2(t, e, r) {
19433
19433
  var n = Gt(t), a = [Dt, St].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
19434
19434
  placement: t
19435
19435
  })) : r, s = i[0], o = i[1];
19436
- return s = s || 0, o = (o || 0) * a, [Dt, Bt].indexOf(n) >= 0 ? {
19436
+ return s = s || 0, o = (o || 0) * a, [Dt, Yt].indexOf(n) >= 0 ? {
19437
19437
  x: o,
19438
19438
  y: s
19439
19439
  } : {
@@ -19478,28 +19478,28 @@ function v2(t) {
19478
19478
  rootBoundary: c,
19479
19479
  padding: u,
19480
19480
  altBoundary: d
19481
- }), w = Gt(e.placement), x = ha(e.placement), k = !x, v = dd(w), y = y2(v), O = e.modifiersData.popperOffsets, P = e.rects.reference, M = e.rects.popper, T = typeof m == "function" ? m(Object.assign({}, e.rects, {
19481
+ }), x = Gt(e.placement), w = ha(e.placement), k = !w, v = dd(x), y = y2(v), O = e.modifiersData.popperOffsets, T = e.rects.reference, M = e.rects.popper, P = typeof m == "function" ? m(Object.assign({}, e.rects, {
19482
19482
  placement: e.placement
19483
- })) : m, C = typeof T == "number" ? {
19484
- mainAxis: T,
19485
- altAxis: T
19483
+ })) : m, C = typeof P == "number" ? {
19484
+ mainAxis: P,
19485
+ altAxis: P
19486
19486
  } : Object.assign({
19487
19487
  mainAxis: 0,
19488
19488
  altAxis: 0
19489
- }, T), z = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
19489
+ }, P), z = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
19490
19490
  x: 0,
19491
19491
  y: 0
19492
19492
  };
19493
19493
  if (O) {
19494
19494
  if (i) {
19495
- var _, S = v === "y" ? St : Dt, E = v === "y" ? Ht : Bt, L = v === "y" ? "height" : "width", B = O[v], U = B + p[S], Z = B - p[E], R = h ? -M[L] / 2 : 0, j = x === da ? P[L] : M[L], A = x === da ? -M[L] : -P[L], I = e.elements.arrow, N = h && I ? cd(I) : {
19495
+ var _, S = v === "y" ? St : Dt, E = v === "y" ? Bt : Yt, L = v === "y" ? "height" : "width", B = O[v], U = B + p[S], Z = B - p[E], R = h ? -M[L] / 2 : 0, j = w === da ? T[L] : M[L], A = w === da ? -M[L] : -T[L], I = e.elements.arrow, N = h && I ? cd(I) : {
19496
19496
  width: 0,
19497
19497
  height: 0
19498
- }, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : jp(), $ = D[S], X = D[E], q = Ja(0, P[L], N[L]), K = k ? P[L] / 2 - R - q - $ - C.mainAxis : j - q - $ - C.mainAxis, J = k ? -P[L] / 2 + R + q + X + C.mainAxis : A + q + X + C.mainAxis, ne = e.elements.arrow && Di(e.elements.arrow), H = ne ? v === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ae = (_ = z == null ? void 0 : z[v]) != null ? _ : 0, re = B + K - ae - H, le = B + J - ae, fe = Ja(h ? Us(U, re) : U, B, h ? Tn(Z, le) : Z);
19498
+ }, D = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : jp(), $ = D[S], X = D[E], q = Ja(0, T[L], N[L]), K = k ? T[L] / 2 - R - q - $ - C.mainAxis : j - q - $ - C.mainAxis, J = k ? -T[L] / 2 + R + q + X + C.mainAxis : A + q + X + C.mainAxis, ne = e.elements.arrow && Di(e.elements.arrow), H = ne ? v === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, ae = (_ = z == null ? void 0 : z[v]) != null ? _ : 0, re = B + K - ae - H, le = B + J - ae, fe = Ja(h ? Us(U, re) : U, B, h ? Tn(Z, le) : Z);
19499
19499
  O[v] = fe, F[v] = fe - B;
19500
19500
  }
19501
19501
  if (o) {
19502
- var de, ie = v === "x" ? St : Dt, We = v === "x" ? Ht : Bt, me = O[y], Le = y === "y" ? "height" : "width", je = me + p[ie], Ye = me - p[We], Et = [St, Dt].indexOf(w) !== -1, Pt = (de = z == null ? void 0 : z[y]) != null ? de : 0, Tt = Et ? je : me - P[Le] - M[Le] - Pt + C.altAxis, zr = Et ? me + P[Le] + M[Le] - Pt - C.altAxis : Ye, Rt = h && Et ? BM(Tt, me, zr) : Ja(h ? Tt : je, me, h ? zr : Ye);
19502
+ var de, ie = v === "x" ? St : Dt, We = v === "x" ? Bt : Yt, me = O[y], Le = y === "y" ? "height" : "width", je = me + p[ie], Ye = me - p[We], Et = [St, Dt].indexOf(x) !== -1, Pt = (de = z == null ? void 0 : z[y]) != null ? de : 0, Tt = Et ? je : me - T[Le] - M[Le] - Pt + C.altAxis, zr = Et ? me + T[Le] + M[Le] - Pt - C.altAxis : Ye, Rt = h && Et ? BM(Tt, me, zr) : Ja(h ? Tt : je, me, h ? zr : Ye);
19503
19503
  O[y] = Rt, F[y] = Rt - me;
19504
19504
  }
19505
19505
  e.modifiersData[n] = F;
@@ -19680,9 +19680,9 @@ function N2(t) {
19680
19680
  styles: {}
19681
19681
  }, u = [], f = !1, h = {
19682
19682
  state: d,
19683
- setOptions: function(w) {
19684
- var x = typeof w == "function" ? w(d.options) : w;
19685
- m(), d.options = Object.assign({}, i, d.options, x), d.scrollParents = {
19683
+ setOptions: function(x) {
19684
+ var w = typeof x == "function" ? x(d.options) : x;
19685
+ m(), d.options = Object.assign({}, i, d.options, w), d.scrollParents = {
19686
19686
  reference: Ln(o) ? ei(o) : o.contextElement ? ei(o.contextElement) : [],
19687
19687
  popper: ei(l)
19688
19688
  };
@@ -19701,8 +19701,8 @@ function N2(t) {
19701
19701
  });
19702
19702
  y || console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
19703
19703
  }
19704
- var O = Zt(l), P = O.marginTop, M = O.marginRight, T = O.marginBottom, C = O.marginLeft;
19705
- [P, M, T, C].some(function(z) {
19704
+ var O = Zt(l), T = O.marginTop, M = O.marginRight, P = O.marginBottom, C = O.marginLeft;
19705
+ [T, M, P, C].some(function(z) {
19706
19706
  return parseFloat(z);
19707
19707
  }) && console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
19708
19708
  }
@@ -19715,13 +19715,13 @@ function N2(t) {
19715
19715
  // prefer the async Popper#update method
19716
19716
  forceUpdate: function() {
19717
19717
  if (!f) {
19718
- var w = d.elements, x = w.reference, k = w.popper;
19719
- if (!kh(x, k)) {
19718
+ var x = d.elements, w = x.reference, k = x.popper;
19719
+ if (!kh(w, k)) {
19720
19720
  process.env.NODE_ENV !== "production" && console.error(xh);
19721
19721
  return;
19722
19722
  }
19723
19723
  d.rects = {
19724
- reference: O2(x, Di(k), d.options.strategy === "fixed"),
19724
+ reference: O2(w, Di(k), d.options.strategy === "fixed"),
19725
19725
  popper: cd(k)
19726
19726
  }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(z) {
19727
19727
  return d.modifiersData[z.name] = Object.assign({}, z.data);
@@ -19735,10 +19735,10 @@ function N2(t) {
19735
19735
  d.reset = !1, y = -1;
19736
19736
  continue;
19737
19737
  }
19738
- var O = d.orderedModifiers[y], P = O.fn, M = O.options, T = M === void 0 ? {} : M, C = O.name;
19739
- typeof P == "function" && (d = P({
19738
+ var O = d.orderedModifiers[y], T = O.fn, M = O.options, P = M === void 0 ? {} : M, C = O.name;
19739
+ typeof T == "function" && (d = T({
19740
19740
  state: d,
19741
- options: T,
19741
+ options: P,
19742
19742
  name: C,
19743
19743
  instance: h
19744
19744
  }) || d);
@@ -19763,11 +19763,11 @@ function N2(t) {
19763
19763
  });
19764
19764
  function g() {
19765
19765
  d.orderedModifiers.forEach(function(p) {
19766
- var w = p.name, x = p.options, k = x === void 0 ? {} : x, v = p.effect;
19766
+ var x = p.name, w = p.options, k = w === void 0 ? {} : w, v = p.effect;
19767
19767
  if (typeof v == "function") {
19768
19768
  var y = v({
19769
19769
  state: d,
19770
- name: w,
19770
+ name: x,
19771
19771
  instance: h,
19772
19772
  options: k
19773
19773
  }), O = function() {
@@ -19901,7 +19901,7 @@ var I2 = [JM, b2, QM, zM, m2, d2, x2, UM, f2], A2 = /* @__PURE__ */ N2({
19901
19901
  var e = t.buttonStyles;
19902
19902
  return e;
19903
19903
  }), W2 = function(t, e) {
19904
- var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, w = t.component, x = t.onOpenChange, k = t.onClick, v = t.onKeyUp, y = Fn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), O = ee.useContext(qs), P = ee.useContext(Co), M = P.collapsed, T = P.rtl, C = P.transitionDuration, z = od(), F = z.renderExpandIcon, _ = z.closeOnClick, S = z.menuItemStyles, E = z.transitionDuration, L = ee.useState(!!u), B = L[0], U = L[1], Z = ee.useState(!1), R = Z[0], j = Z[1], A = ee.useState(!1), I = A[0], N = A[1], D = ee.useRef(null), $ = ee.useRef(null), X = ee.useRef(), q = F2({
19904
+ var r, n = t.children, a = t.className, i = t.label, s = t.icon, o = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, g = t.disabled, m = g === void 0 ? !1 : g, p = t.rootStyles, x = t.component, w = t.onOpenChange, k = t.onClick, v = t.onKeyUp, y = Fn(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), O = ee.useContext(qs), T = ee.useContext(Co), M = T.collapsed, P = T.rtl, C = T.transitionDuration, z = od(), F = z.renderExpandIcon, _ = z.closeOnClick, S = z.menuItemStyles, E = z.transitionDuration, L = ee.useState(!!u), B = L[0], U = L[1], Z = ee.useState(!1), R = Z[0], j = Z[1], A = ee.useState(!1), I = A[0], N = A[1], D = ee.useRef(null), $ = ee.useRef(null), X = ee.useRef(), q = F2({
19905
19905
  level: O,
19906
19906
  buttonRef: D,
19907
19907
  contentRef: $
@@ -19920,11 +19920,11 @@ var I2 = [JM, b2, QM, zM, m2, d2, x2, UM, f2], A2 = /* @__PURE__ */ N2({
19920
19920
  de.style.overflow = "hidden", de.style.height = "".concat(ie, "px"), de.offsetHeight, de.style.height = "0px";
19921
19921
  }
19922
19922
  }, ne = function() {
19923
- O === 0 && M || (typeof d > "u" ? (clearTimeout(Number(X.current)), B ? J() : K(), x == null || x(!B), U(!B)) : x == null || x(!d));
19923
+ O === 0 && M || (typeof d > "u" ? (clearTimeout(Number(X.current)), B ? J() : K(), w == null || w(!B), U(!B)) : w == null || w(!d));
19924
19924
  };
19925
19925
  ee.useEffect(function() {
19926
19926
  !(O === 0 && M) && typeof d < "u" && I && (clearTimeout(Number(X.current)), d ? K() : J());
19927
- }, [M, K, i, O, x, d]);
19927
+ }, [M, K, i, O, w, d]);
19928
19928
  var H = function(fe) {
19929
19929
  k == null || k(fe), ne();
19930
19930
  }, ae = function(fe) {
@@ -19958,7 +19958,7 @@ var I2 = [JM, b2, QM, zM, m2, d2, x2, UM, f2], A2 = /* @__PURE__ */ N2({
19958
19958
  setTimeout(function() {
19959
19959
  return q == null ? void 0 : q.update();
19960
19960
  }, C), M && O === 0 && j(!1);
19961
- }, [M, O, T, C, q]), ee.useEffect(function() {
19961
+ }, [M, O, P, C, q]), ee.useEffect(function() {
19962
19962
  var fe = function(me) {
19963
19963
  var Le, je, Ye;
19964
19964
  !R && (!((Le = D.current) === null || Le === void 0) && Le.contains(me)) ? j(!0) : (_ && !(!((je = me.closest(".".concat(ve.menuItemRoot))) === null || je === void 0) && je.classList.contains(ve.subMenuRoot)) || !(!((Ye = $.current) === null || Ye === void 0) && Ye.contains(me)) && R) && j(!1);
@@ -19978,20 +19978,20 @@ var I2 = [JM, b2, QM, zM, m2, d2, x2, UM, f2], A2 = /* @__PURE__ */ N2({
19978
19978
  var le = (r = {}, r[ve.active] = h, r[ve.disabled] = m, r[ve.open] = d ?? B, r);
19979
19979
  return ee.createElement(
19980
19980
  $2,
19981
- { ref: e, className: et(ve.menuItemRoot, ve.subMenuRoot, le, a), menuItemStyles: re("root"), level: O, collapsed: M, rtl: T, disabled: m, active: h, buttonStyles: re("button"), rootStyles: p },
19981
+ { ref: e, className: et(ve.menuItemRoot, ve.subMenuRoot, le, a), menuItemStyles: re("root"), level: O, collapsed: M, rtl: P, disabled: m, active: h, buttonStyles: re("button"), rootStyles: p },
19982
19982
  ee.createElement(
19983
19983
  Up,
19984
- At({ "data-testid": "".concat(ve.button, "-test-id"), ref: D, title: o, className: et(ve.button, le), onClick: H, onKeyUp: ae, component: w, tabIndex: 0 }, y),
19985
- s && ee.createElement(Ip, { rtl: T, className: et(ve.icon, le), rootStyles: re("icon") }, s),
19986
- l && ee.createElement(Ap, { collapsed: M, transitionDuration: C, firstLevel: O === 0, className: et(ve.prefix, le), rtl: T, rootStyles: re("prefix") }, l),
19984
+ At({ "data-testid": "".concat(ve.button, "-test-id"), ref: D, title: o, className: et(ve.button, le), onClick: H, onKeyUp: ae, component: x, tabIndex: 0 }, y),
19985
+ s && ee.createElement(Ip, { rtl: P, className: et(ve.icon, le), rootStyles: re("icon") }, s),
19986
+ l && ee.createElement(Ap, { collapsed: M, transitionDuration: C, firstLevel: O === 0, className: et(ve.prefix, le), rtl: P, rootStyles: re("prefix") }, l),
19987
19987
  ee.createElement(Np, { className: et(ve.label, le), rootStyles: re("label") }, i),
19988
19988
  c && ee.createElement(Fp, { collapsed: M, transitionDuration: C, firstLevel: O === 0, className: et(ve.suffix, le), rootStyles: re("suffix") }, c),
19989
- ee.createElement(OM, { rtl: T, className: et(ve.SubMenuExpandIcon, le), collapsed: M, level: O, rootStyles: re("SubMenuExpandIcon") }, F ? F({
19989
+ ee.createElement(OM, { rtl: P, className: et(ve.SubMenuExpandIcon, le), collapsed: M, level: O, rootStyles: re("SubMenuExpandIcon") }, F ? F({
19990
19990
  level: O,
19991
19991
  disabled: m,
19992
19992
  active: h,
19993
19993
  open: d ?? B
19994
- }) : M && O === 0 ? ee.createElement(DM, null) : ee.createElement(SM, { rtl: T, open: d ?? B }))
19994
+ }) : M && O === 0 ? ee.createElement(DM, null) : ee.createElement(SM, { rtl: P, open: d ?? B }))
19995
19995
  ),
19996
19996
  ee.createElement(
19997
19997
  _M,
@@ -20046,12 +20046,12 @@ var _h, z2 = it.li(Oh || (Oh = pt([`
20046
20046
  var e = t.buttonStyles;
20047
20047
  return e;
20048
20048
  }), j2 = function(t, e) {
20049
- var r, n = t.children, a = t.icon, i = t.className, s = t.prefix, o = t.suffix, l = t.active, c = l === void 0 ? !1 : l, d = t.disabled, u = d === void 0 ? !1 : d, f = t.component, h = t.rootStyles, g = Fn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ee.useContext(qs), p = ee.useContext(Co), w = p.collapsed, x = p.rtl, k = p.transitionDuration, v = od().menuItemStyles, y = function(P) {
20049
+ var r, n = t.children, a = t.icon, i = t.className, s = t.prefix, o = t.suffix, l = t.active, c = l === void 0 ? !1 : l, d = t.disabled, u = d === void 0 ? !1 : d, f = t.component, h = t.rootStyles, g = Fn(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ee.useContext(qs), p = ee.useContext(Co), x = p.collapsed, w = p.rtl, k = p.transitionDuration, v = od().menuItemStyles, y = function(T) {
20050
20050
  if (v) {
20051
- var M = { level: m, disabled: u, active: c, isSubmenu: !1 }, T = v.root, C = v.button, z = v.label, F = v.icon, _ = v.prefix, S = v.suffix;
20052
- switch (P) {
20051
+ var M = { level: m, disabled: u, active: c, isSubmenu: !1 }, P = v.root, C = v.button, z = v.label, F = v.icon, _ = v.prefix, S = v.suffix;
20052
+ switch (T) {
20053
20053
  case "root":
20054
- return typeof T == "function" ? T(M) : T;
20054
+ return typeof P == "function" ? P(M) : P;
20055
20055
  case "button":
20056
20056
  return typeof C == "function" ? C(M) : C;
20057
20057
  case "label":
@@ -20069,14 +20069,14 @@ var _h, z2 = it.li(Oh || (Oh = pt([`
20069
20069
  }, O = (r = {}, r[ve.active] = c, r[ve.disabled] = u, r);
20070
20070
  return ee.createElement(
20071
20071
  z2,
20072
- { ref: e, className: et(ve.menuItemRoot, O, i), menuItemStyles: y("root"), level: m, collapsed: w, rtl: x, disabled: u, active: c, buttonStyles: y("button"), rootStyles: h },
20072
+ { ref: e, className: et(ve.menuItemRoot, O, i), menuItemStyles: y("root"), level: m, collapsed: x, rtl: w, disabled: u, active: c, buttonStyles: y("button"), rootStyles: h },
20073
20073
  ee.createElement(
20074
20074
  Up,
20075
20075
  At({ className: et(ve.button, O), "data-testid": "".concat(ve.button, "-test-id"), component: f, tabIndex: 0 }, g),
20076
- a && ee.createElement(Ip, { rtl: x, className: et(ve.icon, O), rootStyles: y("icon") }, a),
20077
- s && ee.createElement(Ap, { collapsed: w, transitionDuration: k, firstLevel: m === 0, className: et(ve.prefix, O), rtl: x, rootStyles: y("prefix") }, s),
20076
+ a && ee.createElement(Ip, { rtl: w, className: et(ve.icon, O), rootStyles: y("icon") }, a),
20077
+ s && ee.createElement(Ap, { collapsed: x, transitionDuration: k, firstLevel: m === 0, className: et(ve.prefix, O), rtl: w, rootStyles: y("prefix") }, s),
20078
20078
  ee.createElement(Np, { className: et(ve.label, O), rootStyles: y("label") }, n),
20079
- o && ee.createElement(Fp, { collapsed: w, transitionDuration: k, firstLevel: m === 0, className: et(ve.suffix, O), rootStyles: y("suffix") }, o)
20079
+ o && ee.createElement(Fp, { collapsed: x, transitionDuration: k, firstLevel: m === 0, className: et(ve.suffix, O), rootStyles: y("suffix") }, o)
20080
20080
  )
20081
20081
  );
20082
20082
  }, H2 = ee.forwardRef(j2), Oh;
@@ -20111,7 +20111,7 @@ const RI = ({
20111
20111
  textColor: o = "#ffffff",
20112
20112
  className: l = ""
20113
20113
  }) => {
20114
- const [c, d] = ge(i), [u, f] = ge(null), [h, g] = ge(/* @__PURE__ */ new Set()), [m, p] = ge(null), [w, x] = ge(null), k = r.filter((_) => _.position !== "bottom"), v = r.filter((_) => _.position === "bottom"), y = (_) => typeof _ == "string" ? /* @__PURE__ */ b("img", { src: _, style: { width: "20px", height: "20px" } }) : _ ? ee.createElement(_, { style: { width: "20px", height: "20px" } }) : null, O = (_ = !1, S = !1) => ({
20114
+ const [c, d] = ge(i), [u, f] = ge(null), [h, g] = ge(/* @__PURE__ */ new Set()), [m, p] = ge(null), [x, w] = ge(null), k = r.filter((_) => _.position !== "bottom"), v = r.filter((_) => _.position === "bottom"), y = (_) => typeof _ == "string" ? /* @__PURE__ */ b("img", { src: _, style: { width: "20px", height: "20px" } }) : _ ? ee.createElement(_, { style: { width: "20px", height: "20px" } }) : null, O = (_ = !1, S = !1) => ({
20115
20115
  background: c ? "transparent" : S ? "#FFFFFF55" : _ ? "#FFFFFF22" : "#FFFFFF33",
20116
20116
  color: o,
20117
20117
  borderRadius: _ ? "15px" : "20px",
@@ -20121,8 +20121,8 @@ const RI = ({
20121
20121
  color: o,
20122
20122
  fontSize: _ ? "0.9rem" : void 0
20123
20123
  }
20124
- }), P = (_, S = !1, E) => {
20125
- const L = S ? w === _.id : m === _.id;
20124
+ }), T = (_, S = !1, E) => {
20125
+ const L = S ? x === _.id : m === _.id;
20126
20126
  return /* @__PURE__ */ b(
20127
20127
  H2,
20128
20128
  {
@@ -20143,16 +20143,16 @@ const RI = ({
20143
20143
  _.id
20144
20144
  );
20145
20145
  }, M = (_) => _.map((S) => /* @__PURE__ */ G("div", { children: [
20146
- P(S),
20146
+ T(S),
20147
20147
  S.subMenuSection && h.has(S.id) && /* @__PURE__ */ b("div", { className: "ml-4 space-y-1 mb-2", children: S.subMenuSection.items.map(
20148
- (E) => P(E, !0, S.id)
20148
+ (E) => T(E, !0, S.id)
20149
20149
  ) })
20150
- ] }, S.id)), T = () => {
20150
+ ] }, S.id)), P = () => {
20151
20151
  u || d(!1);
20152
20152
  }, C = () => {
20153
20153
  u || (d(!0), g(/* @__PURE__ */ new Set()));
20154
20154
  }, z = (_, S) => {
20155
- if (S ? (p(S), x(_.id)) : (p(_.id), x(null)), _.subMenuSection) {
20155
+ if (S ? (p(S), w(_.id)) : (p(_.id), w(null)), _.subMenuSection) {
20156
20156
  const E = new Set(h);
20157
20157
  E.has(_.id) ? E.delete(_.id) : E.add(_.id), g(E);
20158
20158
  } else _.action ? _.action() : _.href && (_.target === "_blank" ? window.open(_.href, "_blank") : window.location.href = _.href);
@@ -20163,7 +20163,7 @@ const RI = ({
20163
20163
  "div",
20164
20164
  {
20165
20165
  className: "flex flex-col",
20166
- onMouseEnter: T,
20166
+ onMouseEnter: P,
20167
20167
  onMouseLeave: C,
20168
20168
  children: [
20169
20169
  /* @__PURE__ */ G(
@@ -20401,10 +20401,10 @@ const NI = ({
20401
20401
  onRowSelect: u,
20402
20402
  onSelectAll: f
20403
20403
  }) => {
20404
- const [h, g] = W.useState(""), [m, p] = W.useState(1), [w, x] = W.useState(null), k = W.useMemo(() => w ? [...e].sort((_, S) => {
20405
- const E = _[w.key], L = S[w.key];
20406
- return E == null || L == null ? 0 : typeof E == "string" && typeof L == "string" ? w.direction === "asc" ? E.localeCompare(L) : L.localeCompare(E) : w.direction === "asc" ? Number(E) - Number(L) : Number(L) - Number(E);
20407
- }) : e, [e, w]), v = W.useMemo(() => h.trim() ? k.filter(
20404
+ const [h, g] = W.useState(""), [m, p] = W.useState(1), [x, w] = W.useState(null), k = W.useMemo(() => x ? [...e].sort((_, S) => {
20405
+ const E = _[x.key], L = S[x.key];
20406
+ return E == null || L == null ? 0 : typeof E == "string" && typeof L == "string" ? x.direction === "asc" ? E.localeCompare(L) : L.localeCompare(E) : x.direction === "asc" ? Number(E) - Number(L) : Number(L) - Number(E);
20407
+ }) : e, [e, x]), v = W.useMemo(() => h.trim() ? k.filter(
20408
20408
  (_) => t.some((S) => {
20409
20409
  const E = _[S.relation];
20410
20410
  return E != null && String(E).toLowerCase().includes(h.toLowerCase().trim());
@@ -20412,7 +20412,7 @@ const NI = ({
20412
20412
  ) : k, [k, h, t]), y = W.useMemo(() => {
20413
20413
  const _ = (m - 1) * n, S = _ + n;
20414
20414
  return v.slice(_, S);
20415
- }, [v, m, n]), O = Math.ceil(v.length / n), P = () => {
20415
+ }, [v, m, n]), O = Math.ceil(v.length / n), T = () => {
20416
20416
  if (f) {
20417
20417
  const _ = y.length > 0 && y.every((S) => c.has(S.id));
20418
20418
  f(!_);
@@ -20422,8 +20422,8 @@ const NI = ({
20422
20422
  const S = c.has(_);
20423
20423
  u(_, !S);
20424
20424
  }
20425
- }, T = y.length > 0 && y.every((_) => c.has(_.id)), C = c.size > 0 && c.size < y.length, z = (_) => {
20426
- x((S) => !S || S.key !== _ ? { key: _, direction: "asc" } : {
20425
+ }, P = y.length > 0 && y.every((_) => c.has(_.id)), C = c.size > 0 && c.size < y.length, z = (_) => {
20426
+ w((S) => !S || S.key !== _ ? { key: _, direction: "asc" } : {
20427
20427
  key: _,
20428
20428
  direction: S.direction === "asc" ? "desc" : "asc"
20429
20429
  });
@@ -20480,11 +20480,11 @@ const NI = ({
20480
20480
  children: /* @__PURE__ */ b(
20481
20481
  Pl,
20482
20482
  {
20483
- checked: T,
20483
+ checked: P,
20484
20484
  ref: (_) => {
20485
20485
  _ && (_.indeterminate = C);
20486
20486
  },
20487
- onChange: P
20487
+ onChange: T
20488
20488
  }
20489
20489
  )
20490
20490
  },
@@ -20497,7 +20497,7 @@ const NI = ({
20497
20497
  onClick: () => _.sortable !== !1 && z(_.relation),
20498
20498
  children: /* @__PURE__ */ G("div", { className: "flex items-center", children: [
20499
20499
  _.header,
20500
- _.sortable !== !1 && /* @__PURE__ */ b("span", { children: (w == null ? void 0 : w.key) === _.relation ? w.direction === "desc" ? /* @__PURE__ */ b(Cl, { className: "size-4" }) : /* @__PURE__ */ b(tg, { className: "size-4" }) : /* @__PURE__ */ b(Cl, { className: "size-4 opacity-50" }) })
20500
+ _.sortable !== !1 && /* @__PURE__ */ b("span", { children: (x == null ? void 0 : x.key) === _.relation ? x.direction === "desc" ? /* @__PURE__ */ b(Cl, { className: "size-4" }) : /* @__PURE__ */ b(tg, { className: "size-4" }) : /* @__PURE__ */ b(Cl, { className: "size-4 opacity-50" }) })
20501
20501
  ] })
20502
20502
  },
20503
20503
  `column-${S}-${_.relation}`
@@ -20652,7 +20652,7 @@ const NI = ({
20652
20652
  setConfirmPassword: a,
20653
20653
  validations: i
20654
20654
  } = K2();
20655
- return /* @__PURE__ */ G(Vt, { children: [
20655
+ return /* @__PURE__ */ G($t, { children: [
20656
20656
  /* @__PURE__ */ G("div", { className: "block", children: [
20657
20657
  /* @__PURE__ */ b(
20658
20658
  wu,
@@ -20778,7 +20778,7 @@ const NI = ({
20778
20778
  alert("Solo se permite un archivo");
20779
20779
  return;
20780
20780
  }
20781
- const m = g.filter((w) => Array.isArray(e) ? e.some((x) => x === "image/*" ? w.type.startsWith("image/") : w.type === x) : e === "image/*" ? w.type.startsWith("image/") : w.type === e);
20781
+ const m = g.filter((x) => Array.isArray(e) ? e.some((w) => w === "image/*" ? x.type.startsWith("image/") : x.type === w) : e === "image/*" ? x.type.startsWith("image/") : x.type === e);
20782
20782
  if (m.length === 0) {
20783
20783
  alert(
20784
20784
  `Tipo de archivo no permitido. Tipos permitidos: ${l()}`
@@ -20786,7 +20786,7 @@ const NI = ({
20786
20786
  return;
20787
20787
  }
20788
20788
  const p = m.filter(
20789
- (w) => w.size <= r * 1024 * 1024
20789
+ (x) => x.size <= r * 1024 * 1024
20790
20790
  );
20791
20791
  p.length !== m.length && alert(`Algunos archivos exceden el tamaño máximo de ${r}MB`), p.length > 0 && (t == null || t(p));
20792
20792
  },
@@ -20918,8 +20918,8 @@ function jI({
20918
20918
  const [c, d] = ge(o || ((g = t[0]) == null ? void 0 : g.id) || ""), u = (p) => {
20919
20919
  d(p), l == null || l(p);
20920
20920
  }, f = (p) => {
20921
- const w = p.target.value;
20922
- d(w), l == null || l(w);
20921
+ const x = p.target.value;
20922
+ d(x), l == null || l(x);
20923
20923
  }, h = (m = t.find((p) => p.id === c)) == null ? void 0 : m.content;
20924
20924
  return /* @__PURE__ */ G("div", { className: `${e} tabs-container`, children: [
20925
20925
  /* @__PURE__ */ G("div", { className: "mb-4 sm:hidden", children: [
@@ -20936,14 +20936,14 @@ function jI({
20936
20936
  )
20937
20937
  ] }),
20938
20938
  /* @__PURE__ */ b("ul", { className: `${r} hidden text-sm font-medium text-center text-gray-500 rounded-lg shadow-sm sm:flex dark:divide-gray-700 dark:text-gray-400`, children: t.map((p) => {
20939
- const w = c === p.id, x = () => w && a ? a : !w && i ? i : {};
20939
+ const x = c === p.id, w = () => x && a ? a : !x && i ? i : {};
20940
20940
  return /* @__PURE__ */ b("li", { className: "w-full focus-within:z-10", children: /* @__PURE__ */ G(
20941
20941
  "button",
20942
20942
  {
20943
20943
  onClick: () => u(p.id),
20944
- className: `${n} ${w ? a ? "" : Mh.mth_tabs_tab_item_active : i ? "" : Mh.mth_tabs_tab_item} uppercase`,
20945
- style: x(),
20946
- "aria-current": w ? "page" : void 0,
20944
+ className: `${n} ${x ? a ? "" : Mh.mth_tabs_tab_item_active : i ? "" : Mh.mth_tabs_tab_item} uppercase`,
20945
+ style: w(),
20946
+ "aria-current": x ? "page" : void 0,
20947
20947
  children: [
20948
20948
  p.icon && /* @__PURE__ */ b("span", { className: "mr-2", children: p.icon }),
20949
20949
  p.title
@@ -20967,7 +20967,7 @@ var Ch;
20967
20967
  function tC() {
20968
20968
  if (Ch) return we;
20969
20969
  Ch = 1;
20970
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
20970
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
20971
20971
  function k(y) {
20972
20972
  if (typeof y == "object" && y !== null) {
20973
20973
  var O = y.$$typeof;
@@ -21026,7 +21026,7 @@ function tC() {
21026
21026
  }, we.isSuspense = function(y) {
21027
21027
  return k(y) === u;
21028
21028
  }, we.isValidElementType = function(y) {
21029
- return typeof y == "string" || typeof y == "function" || y === n || y === c || y === i || y === a || y === u || y === f || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === h || y.$$typeof === s || y.$$typeof === o || y.$$typeof === d || y.$$typeof === p || y.$$typeof === w || y.$$typeof === x || y.$$typeof === m);
21029
+ return typeof y == "string" || typeof y == "function" || y === n || y === c || y === i || y === a || y === u || y === f || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === h || y.$$typeof === s || y.$$typeof === o || y.$$typeof === d || y.$$typeof === p || y.$$typeof === x || y.$$typeof === w || y.$$typeof === m);
21030
21030
  }, we.typeOf = k, we;
21031
21031
  }
21032
21032
  var ke = {};
@@ -21041,10 +21041,10 @@ var ke = {};
21041
21041
  var Eh;
21042
21042
  function rC() {
21043
21043
  return Eh || (Eh = 1, process.env.NODE_ENV !== "production" && function() {
21044
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, w = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
21044
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, u = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, m = t ? Symbol.for("react.block") : 60121, p = t ? Symbol.for("react.fundamental") : 60117, x = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
21045
21045
  function k(H) {
21046
21046
  return typeof H == "string" || typeof H == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
21047
- H === n || H === c || H === i || H === a || H === u || H === f || typeof H == "object" && H !== null && (H.$$typeof === g || H.$$typeof === h || H.$$typeof === s || H.$$typeof === o || H.$$typeof === d || H.$$typeof === p || H.$$typeof === w || H.$$typeof === x || H.$$typeof === m);
21047
+ H === n || H === c || H === i || H === a || H === u || H === f || typeof H == "object" && H !== null && (H.$$typeof === g || H.$$typeof === h || H.$$typeof === s || H.$$typeof === o || H.$$typeof === d || H.$$typeof === p || H.$$typeof === x || H.$$typeof === w || H.$$typeof === m);
21048
21048
  }
21049
21049
  function v(H) {
21050
21050
  if (typeof H == "object" && H !== null) {
@@ -21078,7 +21078,7 @@ function rC() {
21078
21078
  }
21079
21079
  }
21080
21080
  }
21081
- var y = l, O = c, P = o, M = s, T = e, C = d, z = n, F = g, _ = h, S = r, E = i, L = a, B = u, U = !1;
21081
+ var y = l, O = c, T = o, M = s, P = e, C = d, z = n, F = g, _ = h, S = r, E = i, L = a, B = u, U = !1;
21082
21082
  function Z(H) {
21083
21083
  return U || (U = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), R(H) || v(H) === l;
21084
21084
  }
@@ -21118,7 +21118,7 @@ function rC() {
21118
21118
  function ne(H) {
21119
21119
  return v(H) === u;
21120
21120
  }
21121
- ke.AsyncMode = y, ke.ConcurrentMode = O, ke.ContextConsumer = P, ke.ContextProvider = M, ke.Element = T, ke.ForwardRef = C, ke.Fragment = z, ke.Lazy = F, ke.Memo = _, ke.Portal = S, ke.Profiler = E, ke.StrictMode = L, ke.Suspense = B, ke.isAsyncMode = Z, ke.isConcurrentMode = R, ke.isContextConsumer = j, ke.isContextProvider = A, ke.isElement = I, ke.isForwardRef = N, ke.isFragment = D, ke.isLazy = $, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = K, ke.isStrictMode = J, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf = v;
21121
+ ke.AsyncMode = y, ke.ConcurrentMode = O, ke.ContextConsumer = T, ke.ContextProvider = M, ke.Element = P, ke.ForwardRef = C, ke.Fragment = z, ke.Lazy = F, ke.Memo = _, ke.Portal = S, ke.Profiler = E, ke.StrictMode = L, ke.Suspense = B, ke.isAsyncMode = Z, ke.isConcurrentMode = R, ke.isContextConsumer = j, ke.isContextProvider = A, ke.isElement = I, ke.isForwardRef = N, ke.isFragment = D, ke.isLazy = $, ke.isMemo = X, ke.isPortal = q, ke.isProfiler = K, ke.isStrictMode = J, ke.isSuspense = ne, ke.isValidElementType = k, ke.typeOf = v;
21122
21122
  }()), ke;
21123
21123
  }
21124
21124
  var Ph;
@@ -21261,23 +21261,23 @@ function iC() {
21261
21261
  return j;
21262
21262
  }
21263
21263
  var f = "<<anonymous>>", h = {
21264
- array: w("array"),
21265
- bigint: w("bigint"),
21266
- bool: w("boolean"),
21267
- func: w("function"),
21268
- number: w("number"),
21269
- object: w("object"),
21270
- string: w("string"),
21271
- symbol: w("symbol"),
21272
- any: x(),
21264
+ array: x("array"),
21265
+ bigint: x("bigint"),
21266
+ bool: x("boolean"),
21267
+ func: x("function"),
21268
+ number: x("number"),
21269
+ object: x("object"),
21270
+ string: x("string"),
21271
+ symbol: x("symbol"),
21272
+ any: w(),
21273
21273
  arrayOf: k,
21274
21274
  element: v(),
21275
21275
  elementType: y(),
21276
21276
  instanceOf: O,
21277
21277
  node: C(),
21278
21278
  objectOf: M,
21279
- oneOf: P,
21280
- oneOfType: T,
21279
+ oneOf: T,
21280
+ oneOfType: P,
21281
21281
  shape: F,
21282
21282
  exact: _
21283
21283
  };
@@ -21311,7 +21311,7 @@ function iC() {
21311
21311
  var N = I.bind(null, !1);
21312
21312
  return N.isRequired = I.bind(null, !0), N;
21313
21313
  }
21314
- function w(R) {
21314
+ function x(R) {
21315
21315
  function j(A, I, N, D, $, X) {
21316
21316
  var q = A[I], K = L(q);
21317
21317
  if (K !== R) {
@@ -21325,7 +21325,7 @@ function iC() {
21325
21325
  }
21326
21326
  return p(j);
21327
21327
  }
21328
- function x() {
21328
+ function w() {
21329
21329
  return p(s);
21330
21330
  }
21331
21331
  function k(R) {
@@ -21378,7 +21378,7 @@ function iC() {
21378
21378
  }
21379
21379
  return p(j);
21380
21380
  }
21381
- function P(R) {
21381
+ function T(R) {
21382
21382
  if (!Array.isArray(R))
21383
21383
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
21384
21384
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -21412,7 +21412,7 @@ function iC() {
21412
21412
  }
21413
21413
  return p(j);
21414
21414
  }
21415
- function T(R) {
21415
+ function P(R) {
21416
21416
  if (!Array.isArray(R))
21417
21417
  return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
21418
21418
  for (var j = 0; j < R.length; j++) {
@@ -21618,7 +21618,7 @@ function se(t, e) {
21618
21618
  function V(t, e) {
21619
21619
  return se(e || t, t);
21620
21620
  }
21621
- function Yt(t, e, r) {
21621
+ function Vt(t, e, r) {
21622
21622
  const n = V(t, r == null ? void 0 : r.in);
21623
21623
  return isNaN(e) ? se((r == null ? void 0 : r.in) || t, NaN) : (e && n.setDate(n.getDate() + e), n);
21624
21624
  }
@@ -21645,7 +21645,7 @@ function Xn(t, e, r) {
21645
21645
  hours: o = 0,
21646
21646
  minutes: l = 0,
21647
21647
  seconds: c = 0
21648
- } = e, d = V(t, r == null ? void 0 : r.in), u = a || n ? Pi(d, a + n * 12) : d, f = s || i ? Yt(u, s + i * 7) : u, h = l + o * 60, m = (c + h * 60) * 1e3;
21648
+ } = e, d = V(t, r == null ? void 0 : r.in), u = a || n ? Pi(d, a + n * 12) : d, f = s || i ? Vt(u, s + i * 7) : u, h = l + o * 60, m = (c + h * 60) * 1e3;
21649
21649
  return se((r == null ? void 0 : r.in) || t, +f + m);
21650
21650
  }
21651
21651
  function sb(t, e) {
@@ -21756,7 +21756,7 @@ function hb(t, e, r) {
21756
21756
  return Ro(t, e * 1e3, r);
21757
21757
  }
21758
21758
  function No(t, e, r) {
21759
- return Yt(t, e * 7, r);
21759
+ return Vt(t, e * 7, r);
21760
21760
  }
21761
21761
  function gb(t, e, r) {
21762
21762
  return Pi(t, e * 12, r);
@@ -21857,9 +21857,9 @@ function bC(t, e, r) {
21857
21857
  );
21858
21858
  if (!Fr(n) || !Fr(a)) return NaN;
21859
21859
  const i = yr(n, a), s = i < 0 ? -1 : 1, o = Math.trunc(i / 7);
21860
- let l = o * 5, c = Yt(a, o * 7);
21860
+ let l = o * 5, c = Vt(a, o * 7);
21861
21861
  for (; !Ti(n, c); )
21862
- l += ra(c, r) ? 0 : s, c = Yt(c, s);
21862
+ l += ra(c, r) ? 0 : s, c = Vt(c, s);
21863
21863
  return l === 0 ? 0 : l;
21864
21864
  }
21865
21865
  function vb(t, e, r) {
@@ -23272,30 +23272,30 @@ function wE(t, e, r) {
23272
23272
  }
23273
23273
  const kE = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, _E = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, OE = /^'([^]*?)'?$/, SE = /''/g, DE = /[a-zA-Z]/;
23274
23274
  function ro(t, e, r) {
23275
- var d, u, f, h, g, m, p, w;
23276
- const n = vt(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? ka, i = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((u = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (r == null ? void 0 : r.weekStartsOn) ?? ((m = (g = r == null ? void 0 : r.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? n.weekStartsOn ?? ((w = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : w.weekStartsOn) ?? 0, o = V(t, r == null ? void 0 : r.in);
23275
+ var d, u, f, h, g, m, p, x;
23276
+ const n = vt(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? ka, i = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((u = (d = r == null ? void 0 : r.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, s = (r == null ? void 0 : r.weekStartsOn) ?? ((m = (g = r == null ? void 0 : r.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? n.weekStartsOn ?? ((x = (p = n.locale) == null ? void 0 : p.options) == null ? void 0 : x.weekStartsOn) ?? 0, o = V(t, r == null ? void 0 : r.in);
23277
23277
  if (!Fr(o))
23278
23278
  throw new RangeError("Invalid time value");
23279
- let l = e.match(_E).map((x) => {
23280
- const k = x[0];
23279
+ let l = e.match(_E).map((w) => {
23280
+ const k = w[0];
23281
23281
  if (k === "p" || k === "P") {
23282
23282
  const v = to[k];
23283
- return v(x, a.formatLong);
23283
+ return v(w, a.formatLong);
23284
23284
  }
23285
- return x;
23286
- }).join("").match(kE).map((x) => {
23287
- if (x === "''")
23285
+ return w;
23286
+ }).join("").match(kE).map((w) => {
23287
+ if (w === "''")
23288
23288
  return { isToken: !1, value: "'" };
23289
- const k = x[0];
23289
+ const k = w[0];
23290
23290
  if (k === "'")
23291
- return { isToken: !1, value: ME(x) };
23291
+ return { isToken: !1, value: ME(w) };
23292
23292
  if (tc[k])
23293
- return { isToken: !0, value: x };
23293
+ return { isToken: !0, value: w };
23294
23294
  if (k.match(DE))
23295
23295
  throw new RangeError(
23296
23296
  "Format string contains an unescaped latin alphabet character `" + k + "`"
23297
23297
  );
23298
- return { isToken: !1, value: x };
23298
+ return { isToken: !1, value: w };
23299
23299
  });
23300
23300
  a.localize.preprocessor && (l = a.localize.preprocessor(o, l));
23301
23301
  const c = {
@@ -23303,9 +23303,9 @@ function ro(t, e, r) {
23303
23303
  weekStartsOn: s,
23304
23304
  locale: a
23305
23305
  };
23306
- return l.map((x) => {
23307
- if (!x.isToken) return x.value;
23308
- const k = x.value;
23306
+ return l.map((w) => {
23307
+ if (!w.isToken) return w.value;
23308
+ const k = w.value;
23309
23309
  (!(r != null && r.useAdditionalWeekYearTokens) && Pb(k) || !(r != null && r.useAdditionalDayOfYearTokens) && Eb(k)) && rc(k, e, String(t));
23310
23310
  const v = tc[k[0]];
23311
23311
  return v(o, k, a.localize, c);
@@ -23420,8 +23420,8 @@ function RE(t, e) {
23420
23420
  if (a !== "date") {
23421
23421
  const c = r.getTimezoneOffset();
23422
23422
  if (c !== 0) {
23423
- const m = Math.abs(c), p = oe(Math.trunc(m / 60), 2), w = oe(m % 60, 2);
23424
- s = `${c < 0 ? "+" : "-"}${p}:${w}`;
23423
+ const m = Math.abs(c), p = oe(Math.trunc(m / 60), 2), x = oe(m % 60, 2);
23424
+ s = `${c < 0 ? "+" : "-"}${p}:${x}`;
23425
23425
  } else
23426
23426
  s = "Z";
23427
23427
  const d = oe(r.getHours(), 2), u = oe(r.getMinutes(), 2), f = oe(r.getSeconds(), 2), h = i === "" ? "" : "T", g = [d, u, f].join(l);
@@ -24477,7 +24477,7 @@ class IP extends xe {
24477
24477
  function $o(t, e, r) {
24478
24478
  var u, f, h, g;
24479
24479
  const n = vt(), a = (r == null ? void 0 : r.weekStartsOn) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((g = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? 0, i = V(t, r == null ? void 0 : r.in), s = i.getDay(), l = (e % 7 + 7) % 7, c = 7 - a, d = e < 0 || e > 6 ? e - (s + c) % 7 : (l + c) % 7 - (s + c) % 7;
24480
- return Yt(i, d, r);
24480
+ return Vt(i, d, r);
24481
24481
  }
24482
24482
  class AP extends xe {
24483
24483
  constructor() {
@@ -24648,7 +24648,7 @@ class LP extends xe {
24648
24648
  }
24649
24649
  function qb(t, e, r) {
24650
24650
  const n = V(t, r == null ? void 0 : r.in), a = Lb(n, r), i = e - a;
24651
- return Yt(n, i, r);
24651
+ return Vt(n, i, r);
24652
24652
  }
24653
24653
  class $P extends xe {
24654
24654
  constructor() {
@@ -25151,8 +25151,8 @@ const Ub = {
25151
25151
  T: new ZP()
25152
25152
  }, JP = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, eT = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, tT = /^'([^]*?)'?$/, rT = /''/g, nT = /\S/, aT = /[a-zA-Z]/;
25153
25153
  function Xb(t, e, r, n) {
25154
- var p, w, x, k, v, y, O, P;
25155
- const a = () => se((n == null ? void 0 : n.in) || r, NaN), i = Fb(), s = (n == null ? void 0 : n.locale) ?? i.locale ?? ka, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((w = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : w.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((k = (x = i.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : y.weekStartsOn) ?? i.weekStartsOn ?? ((P = (O = i.locale) == null ? void 0 : O.options) == null ? void 0 : P.weekStartsOn) ?? 0;
25154
+ var p, x, w, k, v, y, O, T;
25155
+ const a = () => se((n == null ? void 0 : n.in) || r, NaN), i = Fb(), s = (n == null ? void 0 : n.locale) ?? i.locale ?? ka, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((x = (p = n == null ? void 0 : n.locale) == null ? void 0 : p.options) == null ? void 0 : x.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((k = (w = i.locale) == null ? void 0 : w.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, l = (n == null ? void 0 : n.weekStartsOn) ?? ((y = (v = n == null ? void 0 : n.locale) == null ? void 0 : v.options) == null ? void 0 : y.weekStartsOn) ?? i.weekStartsOn ?? ((T = (O = i.locale) == null ? void 0 : O.options) == null ? void 0 : T.weekStartsOn) ?? 0;
25156
25156
  if (!e)
25157
25157
  return t ? a() : V(r, n == null ? void 0 : n.in);
25158
25158
  const c = {
@@ -25160,21 +25160,21 @@ function Xb(t, e, r, n) {
25160
25160
  weekStartsOn: l,
25161
25161
  locale: s
25162
25162
  }, d = [new vP(n == null ? void 0 : n.in, r)], u = e.match(eT).map((M) => {
25163
- const T = M[0];
25164
- if (T in to) {
25165
- const C = to[T];
25163
+ const P = M[0];
25164
+ if (P in to) {
25165
+ const C = to[P];
25166
25166
  return C(M, s.formatLong);
25167
25167
  }
25168
25168
  return M;
25169
25169
  }).join("").match(JP), f = [];
25170
25170
  for (let M of u) {
25171
25171
  !(n != null && n.useAdditionalWeekYearTokens) && Pb(M) && rc(M, e, t), !(n != null && n.useAdditionalDayOfYearTokens) && Eb(M) && rc(M, e, t);
25172
- const T = M[0], C = Ub[T];
25172
+ const P = M[0], C = Ub[P];
25173
25173
  if (C) {
25174
25174
  const { incompatibleTokens: z } = C;
25175
25175
  if (Array.isArray(z)) {
25176
25176
  const _ = f.find(
25177
- (S) => z.includes(S.token) || S.token === T
25177
+ (S) => z.includes(S.token) || S.token === P
25178
25178
  );
25179
25179
  if (_)
25180
25180
  throw new RangeError(
@@ -25184,7 +25184,7 @@ function Xb(t, e, r, n) {
25184
25184
  throw new RangeError(
25185
25185
  `The format string mustn't contain \`${M}\` and any other token at the same time`
25186
25186
  );
25187
- f.push({ token: T, fullToken: M });
25187
+ f.push({ token: P, fullToken: M });
25188
25188
  const F = C.run(
25189
25189
  t,
25190
25190
  M,
@@ -25195,11 +25195,11 @@ function Xb(t, e, r, n) {
25195
25195
  return a();
25196
25196
  d.push(F.setter), t = F.rest;
25197
25197
  } else {
25198
- if (T.match(aT))
25198
+ if (P.match(aT))
25199
25199
  throw new RangeError(
25200
- "Format string contains an unescaped latin alphabet character `" + T + "`"
25200
+ "Format string contains an unescaped latin alphabet character `" + P + "`"
25201
25201
  );
25202
- if (M === "''" ? M = "'" : T === "'" && (M = iT(M)), t.indexOf(M) === 0)
25202
+ if (M === "''" ? M = "'" : P === "'" && (M = iT(M)), t.indexOf(M) === 0)
25203
25203
  t = t.slice(M.length);
25204
25204
  else
25205
25205
  return a();
@@ -25207,8 +25207,8 @@ function Xb(t, e, r, n) {
25207
25207
  }
25208
25208
  if (t.length > 0 && nT.test(t))
25209
25209
  return a();
25210
- const h = d.map((M) => M.priority).sort((M, T) => T - M).filter((M, T, C) => C.indexOf(M) === T).map(
25211
- (M) => d.filter((T) => T.priority === M).sort((T, C) => C.subPriority - T.subPriority)
25210
+ const h = d.map((M) => M.priority).sort((M, P) => P - M).filter((M, P, C) => C.indexOf(M) === P).map(
25211
+ (M) => d.filter((P) => P.priority === M).sort((P, C) => C.subPriority - P.subPriority)
25212
25212
  ).map((M) => M[0]);
25213
25213
  let g = V(r, n == null ? void 0 : n.in);
25214
25214
  if (isNaN(+g)) return a();
@@ -25216,8 +25216,8 @@ function Xb(t, e, r, n) {
25216
25216
  for (const M of h) {
25217
25217
  if (!M.validate(g, c))
25218
25218
  return a();
25219
- const T = M.set(g, m, c);
25220
- Array.isArray(T) ? (g = T[0], Object.assign(m, T[1])) : g = T;
25219
+ const P = M.set(g, m, c);
25220
+ Array.isArray(P) ? (g = P[0], Object.assign(m, P[1])) : g = P;
25221
25221
  }
25222
25222
  return g;
25223
25223
  }
@@ -25357,7 +25357,7 @@ function vT(t, e) {
25357
25357
  function xT(t, e) {
25358
25358
  return Ti(
25359
25359
  t,
25360
- Yt(Ze((e == null ? void 0 : e.in) || t), 1),
25360
+ Vt(Ze((e == null ? void 0 : e.in) || t), 1),
25361
25361
  e
25362
25362
  );
25363
25363
  }
@@ -25375,7 +25375,7 @@ function _T(t, e, r) {
25375
25375
  return n >= a && n <= i;
25376
25376
  }
25377
25377
  function Wo(t, e, r) {
25378
- return Yt(t, -e, r);
25378
+ return Vt(t, -e, r);
25379
25379
  }
25380
25380
  function OT(t, e) {
25381
25381
  return Ti(
@@ -25481,7 +25481,7 @@ function YT(t) {
25481
25481
  }
25482
25482
  function sn(t, e, r) {
25483
25483
  let n = e - Lo(t, r);
25484
- return n <= 0 && (n += 7), Yt(t, n, r);
25484
+ return n <= 0 && (n += 7), Vt(t, n, r);
25485
25485
  }
25486
25486
  function VT(t, e) {
25487
25487
  return sn(t, 5, e);
@@ -25823,7 +25823,7 @@ const nR = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
25823
25823
  __proto__: null,
25824
25824
  add: Xn,
25825
25825
  addBusinessDays: lb,
25826
- addDays: Yt,
25826
+ addDays: Vt,
25827
25827
  addHours: cb,
25828
25828
  addISOWeekYears: fb,
25829
25829
  addMilliseconds: Ro,
@@ -26457,7 +26457,7 @@ class Rd extends _n.PureComponent {
26457
26457
  start: d.start,
26458
26458
  end: d.end
26459
26459
  }).map((h, g) => {
26460
- const m = (0, Xe.isSameDay)(h, d.startDateOfMonth), p = (0, Xe.isSameDay)(h, d.endDateOfMonth), w = l && (0, Xe.isBefore)(h, l) || c && (0, Xe.isAfter)(h, c), x = s.some((v) => (0, Xe.isSameDay)(v, h)), k = o(h);
26460
+ const m = (0, Xe.isSameDay)(h, d.startDateOfMonth), p = (0, Xe.isSameDay)(h, d.endDateOfMonth), x = l && (0, Xe.isBefore)(h, l) || c && (0, Xe.isAfter)(h, c), w = s.some((v) => (0, Xe.isSameDay)(v, h)), k = o(h);
26461
26461
  return /* @__PURE__ */ _n.default.createElement(oy.default, oc({}, this.props, {
26462
26462
  ranges: u,
26463
26463
  day: h,
@@ -26469,7 +26469,7 @@ class Rd extends _n.PureComponent {
26469
26469
  isStartOfMonth: m,
26470
26470
  isEndOfMonth: p,
26471
26471
  key: g,
26472
- disabled: w || x || k,
26472
+ disabled: x || w || k,
26473
26473
  isPassive: !(0, Xe.isWithinInterval)(h, {
26474
26474
  start: d.startDateOfMonth,
26475
26475
  end: d.endDateOfMonth
@@ -26687,7 +26687,7 @@ var fy = {};
26687
26687
  function s(A, I) {
26688
26688
  for (var N = 0; N < I.length; N++) {
26689
26689
  var D = I[N];
26690
- D.enumerable = D.enumerable || !1, D.configurable = !0, "value" in D && (D.writable = !0), Object.defineProperty(A, x(D.key), D);
26690
+ D.enumerable = D.enumerable || !1, D.configurable = !0, "value" in D && (D.writable = !0), Object.defineProperty(A, w(D.key), D);
26691
26691
  }
26692
26692
  }
26693
26693
  function o(A, I, N) {
@@ -26743,17 +26743,17 @@ var fy = {};
26743
26743
  for (var I = 1; I < arguments.length; I++) {
26744
26744
  var N = arguments[I] != null ? arguments[I] : {};
26745
26745
  I % 2 ? m(Object(N), !0).forEach(function(D) {
26746
- w(A, D, N[D]);
26746
+ x(A, D, N[D]);
26747
26747
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(N)) : m(Object(N)).forEach(function(D) {
26748
26748
  Object.defineProperty(A, D, Object.getOwnPropertyDescriptor(N, D));
26749
26749
  });
26750
26750
  }
26751
26751
  return A;
26752
26752
  }
26753
- function w(A, I, N) {
26754
- return (I = x(I)) in A ? Object.defineProperty(A, I, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : A[I] = N, A;
26753
+ function x(A, I, N) {
26754
+ return (I = w(I)) in A ? Object.defineProperty(A, I, { value: N, enumerable: !0, configurable: !0, writable: !0 }) : A[I] = N, A;
26755
26755
  }
26756
- function x(A) {
26756
+ function w(A) {
26757
26757
  var I = k(A, "string");
26758
26758
  return a(I) == "symbol" ? I : I + "";
26759
26759
  }
@@ -26776,13 +26776,13 @@ var fy = {};
26776
26776
  }, O = {
26777
26777
  x: "innerWidth",
26778
26778
  y: "innerHeight"
26779
- }, P = {
26779
+ }, T = {
26780
26780
  x: "offsetWidth",
26781
26781
  y: "offsetHeight"
26782
26782
  }, M = {
26783
26783
  x: "offsetLeft",
26784
26784
  y: "offsetTop"
26785
- }, T = {
26785
+ }, P = {
26786
26786
  x: "overflowX",
26787
26787
  y: "overflowY"
26788
26788
  }, C = {
@@ -26813,7 +26813,7 @@ var fy = {};
26813
26813
  for (var D in N) if (I[D] !== N[D]) return !1;
26814
26814
  return !0;
26815
26815
  }, U = function(I) {
26816
- for (var N = I.props.axis, D = I.getEl(), $ = T[N]; D = D.parentElement; )
26816
+ for (var N = I.props.axis, D = I.getEl(), $ = P[N]; D = D.parentElement; )
26817
26817
  switch (window.getComputedStyle(D)[$]) {
26818
26818
  case "auto":
26819
26819
  case "scroll":
@@ -26935,7 +26935,7 @@ var fy = {};
26935
26935
  };
26936
26936
  var ne = this.items.children;
26937
26937
  if (!ne.length) return {};
26938
- var H = ne[0], ae = H[P[$]], re = Math.abs(ae - K);
26938
+ var H = ne[0], ae = H[T[$]], re = Math.abs(ae - K);
26939
26939
  if ((isNaN(re) || re >= 1) && (K = ae), !K) return {};
26940
26940
  var le = M[$], fe = H[le];
26941
26941
  J = 1;
@@ -26981,7 +26981,7 @@ var fy = {};
26981
26981
  var $ = this.getStartAndEnd(), X = $.end, q = this.items.children, K = 0;
26982
26982
  if (q.length) {
26983
26983
  var J = this.props.axis, ne = q[0], H = q[q.length - 1];
26984
- K = this.getOffset(H) + H[P[J]] - this.getOffset(ne);
26984
+ K = this.getOffset(H) + H[T[J]] - this.getOffset(ne);
26985
26985
  }
26986
26986
  if (K > X) return D();
26987
26987
  var ae = this.props, re = ae.pageSize, le = ae.length, fe = Math.min(this.state.size + re, le);
@@ -27049,7 +27049,7 @@ var fy = {};
27049
27049
  }, {
27050
27050
  key: "cacheSizes",
27051
27051
  value: function() {
27052
- for (var D = this.cache, $ = this.state.from, X = this.items.children, q = P[this.props.axis], K = 0, J = X.length; K < J; ++K)
27052
+ for (var D = this.cache, $ = this.state.from, X = this.items.children, q = T[this.props.axis], K = 0, J = X.length; K < J; ++K)
27053
27053
  D[$ + K] = X[K][q];
27054
27054
  }
27055
27055
  }, {
@@ -27061,7 +27061,7 @@ var fy = {};
27061
27061
  if (D in $) return $[D];
27062
27062
  if (H === "simple" && D >= re && D < re + fe && X) {
27063
27063
  var de = X.children[D - re];
27064
- if (de) return de[P[K]];
27064
+ if (de) return de[T[K]];
27065
27065
  }
27066
27066
  if (ne) return ne(D, $);
27067
27067
  }
@@ -27127,7 +27127,7 @@ var fy = {};
27127
27127
  }
27128
27128
  }]);
27129
27129
  }(r.Component);
27130
- w(j, "displayName", "ReactList"), w(j, "defaultProps", {
27130
+ x(j, "displayName", "ReactList"), x(j, "defaultProps", {
27131
27131
  axis: "y",
27132
27132
  itemRenderer: function(I, N) {
27133
27133
  return /* @__PURE__ */ (0, n.jsx)("div", {
@@ -27757,7 +27757,7 @@ function ao() {
27757
27757
  return t;
27758
27758
  }, ao.apply(this, arguments);
27759
27759
  }
27760
- function Wt(t, e, r) {
27760
+ function zt(t, e, r) {
27761
27761
  return e = bN(e), e in t ? Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = r, t;
27762
27762
  }
27763
27763
  function bN(t) {
@@ -27777,7 +27777,7 @@ function yN(t, e) {
27777
27777
  class ma extends Me.PureComponent {
27778
27778
  constructor(e, r) {
27779
27779
  var n;
27780
- super(e, r), n = this, Wt(this, "focusToDate", function(a) {
27780
+ super(e, r), n = this, zt(this, "focusToDate", function(a) {
27781
27781
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n.props, s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
27782
27782
  if (!i.scroll.enabled) {
27783
27783
  if (s && i.preventSnapRefocus) {
@@ -27794,14 +27794,14 @@ class ma extends Me.PureComponent {
27794
27794
  s && l.includes(o) || (n.isFirstRender = !0, n.list.scrollTo(o), n.setState({
27795
27795
  focusedDate: a
27796
27796
  }));
27797
- }), Wt(this, "updateShownDate", function() {
27797
+ }), zt(this, "updateShownDate", function() {
27798
27798
  let a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : n.props;
27799
27799
  const i = a.scroll.enabled ? {
27800
27800
  ...a,
27801
27801
  months: n.list.getVisibleRange().length
27802
27802
  } : a, s = (0, as.calcFocusDate)(n.state.focusedDate, i);
27803
27803
  n.focusToDate(s, i);
27804
- }), Wt(this, "updatePreview", (a) => {
27804
+ }), zt(this, "updatePreview", (a) => {
27805
27805
  if (!a) {
27806
27806
  this.setState({
27807
27807
  preview: null
@@ -27816,7 +27816,7 @@ class ma extends Me.PureComponent {
27816
27816
  this.setState({
27817
27817
  preview: i
27818
27818
  });
27819
- }), Wt(this, "changeShownDate", function(a) {
27819
+ }), zt(this, "changeShownDate", function(a) {
27820
27820
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "set";
27821
27821
  const {
27822
27822
  focusedDate: s
@@ -27831,9 +27831,9 @@ class ma extends Me.PureComponent {
27831
27831
  set: () => a
27832
27832
  }, u = (0, Ie.min)([(0, Ie.max)([d[i](), l]), c]);
27833
27833
  n.focusToDate(u, n.props, !1), o && o(u);
27834
- }), Wt(this, "handleRangeFocusChange", (a, i) => {
27834
+ }), zt(this, "handleRangeFocusChange", (a, i) => {
27835
27835
  this.props.onRangeFocusChange && this.props.onRangeFocusChange([a, i]);
27836
- }), Wt(this, "handleScroll", () => {
27836
+ }), zt(this, "handleScroll", () => {
27837
27837
  const {
27838
27838
  onShownDateChange: a,
27839
27839
  minDate: i
@@ -27847,7 +27847,7 @@ class ma extends Me.PureComponent {
27847
27847
  !(0, Ie.isSameMonth)(c, s) && !o && (this.setState({
27848
27848
  focusedDate: c
27849
27849
  }), a && a(c)), this.isFirstRender = !1;
27850
- }), Wt(this, "renderMonthAndYear", (a, i, s) => {
27850
+ }), zt(this, "renderMonthAndYear", (a, i, s) => {
27851
27851
  const {
27852
27852
  showMonthArrow: o,
27853
27853
  minDate: l,
@@ -27883,11 +27883,11 @@ class ma extends Me.PureComponent {
27883
27883
  onChange: (m) => i(m.target.value, "setYear"),
27884
27884
  "aria-label": u.yearPicker
27885
27885
  }, new Array(f - h + 1).fill(f).map((m, p) => {
27886
- const w = m - p;
27886
+ const x = m - p;
27887
27887
  return /* @__PURE__ */ Me.default.createElement("option", {
27888
- key: w,
27889
- value: w
27890
- }, w);
27888
+ key: x,
27889
+ value: x
27890
+ }, x);
27891
27891
  })))) : /* @__PURE__ */ Me.default.createElement("span", {
27892
27892
  className: g.monthAndYearPickers
27893
27893
  }, this.state.monthNames[a.getMonth()], " ", a.getFullYear()), o ? /* @__PURE__ */ Me.default.createElement("button", {
@@ -27896,7 +27896,7 @@ class ma extends Me.PureComponent {
27896
27896
  onClick: () => i(1, "monthOffset"),
27897
27897
  "aria-label": u.nextButton
27898
27898
  }, /* @__PURE__ */ Me.default.createElement("i", null)) : null);
27899
- }), Wt(this, "renderDateDisplay", () => {
27899
+ }), zt(this, "renderDateDisplay", () => {
27900
27900
  const {
27901
27901
  focusedRange: a,
27902
27902
  color: i,
@@ -27943,7 +27943,7 @@ class ma extends Me.PureComponent {
27943
27943
  onChange: this.onDragSelectionEnd,
27944
27944
  onFocus: () => this.handleRangeFocusChange(p, 1)
27945
27945
  }))));
27946
- }), Wt(this, "onDragSelectionStart", (a) => {
27946
+ }), zt(this, "onDragSelectionStart", (a) => {
27947
27947
  const {
27948
27948
  onChange: i,
27949
27949
  dragSelectionEnabled: s
@@ -27958,7 +27958,7 @@ class ma extends Me.PureComponent {
27958
27958
  disablePreview: !0
27959
27959
  }
27960
27960
  }) : i && i(a);
27961
- }), Wt(this, "onDragSelectionEnd", (a) => {
27961
+ }), zt(this, "onDragSelectionEnd", (a) => {
27962
27962
  const {
27963
27963
  updateRange: i,
27964
27964
  displayMode: s,
@@ -27987,7 +27987,7 @@ class ma extends Me.PureComponent {
27987
27987
  }, () => {
27988
27988
  i && i(c);
27989
27989
  });
27990
- }), Wt(this, "onDragSelectionMove", (a) => {
27990
+ }), zt(this, "onDragSelectionMove", (a) => {
27991
27991
  const {
27992
27992
  drag: i
27993
27993
  } = this.state;
@@ -28001,7 +28001,7 @@ class ma extends Me.PureComponent {
28001
28001
  disablePreview: !0
28002
28002
  }
28003
28003
  });
28004
- }), Wt(this, "estimateMonthSize", (a, i) => {
28004
+ }), zt(this, "estimateMonthSize", (a, i) => {
28005
28005
  const {
28006
28006
  direction: s,
28007
28007
  minDate: o
@@ -28105,7 +28105,7 @@ class ma extends Me.PureComponent {
28105
28105
  } = this.props, {
28106
28106
  scrollArea: g,
28107
28107
  focusedDate: m
28108
- } = this.state, p = a === "vertical", w = u || this.renderMonthAndYear, x = this.props.ranges.map((k, v) => ({
28108
+ } = this.state, p = a === "vertical", x = u || this.renderMonthAndYear, w = this.props.ranges.map((k, v) => ({
28109
28109
  ...k,
28110
28110
  color: k.color || c[v] || d
28111
28111
  }));
@@ -28125,7 +28125,7 @@ class ma extends Me.PureComponent {
28125
28125
  }
28126
28126
  });
28127
28127
  }
28128
- }, e && this.renderDateDisplay(), w(m, this.changeShownDate, this.props), n.enabled ? /* @__PURE__ */ Me.default.createElement("div", null, p && this.renderWeekdays(this.dateOptions), /* @__PURE__ */ Me.default.createElement("div", {
28128
+ }, e && this.renderDateDisplay(), x(m, this.changeShownDate, this.props), n.enabled ? /* @__PURE__ */ Me.default.createElement("div", null, p && this.renderWeekdays(this.dateOptions), /* @__PURE__ */ Me.default.createElement("div", {
28129
28129
  className: (0, gn.default)(this.styles.infiniteMonths, p ? this.styles.monthsVertical : this.styles.monthsHorizontal),
28130
28130
  onMouseLeave: () => r && r(),
28131
28131
  style: {
@@ -28145,7 +28145,7 @@ class ma extends Me.PureComponent {
28145
28145
  return /* @__PURE__ */ Me.default.createElement(Bh.default, ao({}, this.props, {
28146
28146
  onPreviewChange: r || this.updatePreview,
28147
28147
  preview: h || this.state.preview,
28148
- ranges: x,
28148
+ ranges: w,
28149
28149
  key: v,
28150
28150
  drag: this.state.drag,
28151
28151
  dateOptions: this.dateOptions,
@@ -28174,7 +28174,7 @@ class ma extends Me.PureComponent {
28174
28174
  return this.props.calendarFocus === "backwards" && (y = (0, Ie.subMonths)(this.state.focusedDate, this.props.months - 1 - v)), /* @__PURE__ */ Me.default.createElement(Bh.default, ao({}, this.props, {
28175
28175
  onPreviewChange: r || this.updatePreview,
28176
28176
  preview: h || this.state.preview,
28177
- ranges: x,
28177
+ ranges: w,
28178
28178
  key: v,
28179
28179
  drag: this.state.drag,
28180
28180
  dateOptions: this.dateOptions,
@@ -28355,13 +28355,13 @@ class zd extends Vh.Component {
28355
28355
  startDate: m,
28356
28356
  endDate: p
28357
28357
  } = g;
28358
- const w = /* @__PURE__ */ new Date();
28359
- let x;
28358
+ const x = /* @__PURE__ */ new Date();
28359
+ let w;
28360
28360
  if (!i)
28361
28361
  m = a.startDate, p = a.endDate;
28362
28362
  else if (s[1] === 0) {
28363
- const y = (0, rr.differenceInCalendarDays)(p || w, m), O = () => d ? (0, rr.addDays)(a, y) : u ? !p || (0, rr.isBefore)(a, p) ? p : a : a || w;
28364
- m = a, p = O(), c && (p = (0, rr.min)([p, c])), x = [s[0], 1];
28363
+ const y = (0, rr.differenceInCalendarDays)(p || x, m), O = () => d ? (0, rr.addDays)(a, y) : u ? !p || (0, rr.isBefore)(a, p) ? p : a : a || x;
28364
+ m = a, p = O(), c && (p = (0, rr.min)([p, c])), w = [s[0], 1];
28365
28365
  } else
28366
28366
  p = a;
28367
28367
  let k = s[1] === 0;
@@ -28370,13 +28370,13 @@ class zd extends Vh.Component {
28370
28370
  start: m,
28371
28371
  end: p
28372
28372
  }));
28373
- return v.length > 0 && (k ? m = (0, rr.addDays)((0, rr.max)(v), 1) : p = (0, rr.addDays)((0, rr.min)(v), -1)), x || (x = [(0, Ml.findNextRangeIndex)(n.props.ranges, s[0]), 0]), {
28373
+ return v.length > 0 && (k ? m = (0, rr.addDays)((0, rr.max)(v), 1) : p = (0, rr.addDays)((0, rr.min)(v), -1)), w || (w = [(0, Ml.findNextRangeIndex)(n.props.ranges, s[0]), 0]), {
28374
28374
  wasValid: !(v.length > 0),
28375
28375
  range: {
28376
28376
  startDate: m,
28377
28377
  endDate: p
28378
28378
  },
28379
- nextFocusRange: x
28379
+ nextFocusRange: w
28380
28380
  };
28381
28381
  }), is(this, "setSelection", (a, i) => {
28382
28382
  const {
@@ -29313,12 +29313,12 @@ const jN = {
29313
29313
  "date-menuItemReset": "dateRangePicker-module__date-menuItemReset__J9IdZ",
29314
29314
  "date-calendar": "dateRangePicker-module__date-calendar__M10Iv"
29315
29315
  }, yI = [
29316
- { label: "Yesterday", range: () => {
29316
+ { label: "Ayer", range: () => {
29317
29317
  const t = /* @__PURE__ */ new Date();
29318
29318
  return t.setDate(t.getDate() - 1), { startDate: t, endDate: t };
29319
29319
  } },
29320
- { label: "Last week", range: () => ({ startDate: Yt(/* @__PURE__ */ new Date(), -6), endDate: /* @__PURE__ */ new Date() }) },
29321
- { label: "Last Month", range: () => {
29320
+ { label: "La semana pasada", range: () => ({ startDate: Vt(/* @__PURE__ */ new Date(), -6), endDate: /* @__PURE__ */ new Date() }) },
29321
+ { label: "El mes pasado", range: () => {
29322
29322
  const t = /* @__PURE__ */ new Date(), e = new Date(t.getFullYear(), t.getMonth() - 1, 1), r = new Date(t.getFullYear(), t.getMonth(), 0);
29323
29323
  return { startDate: e, endDate: r };
29324
29324
  } }
@@ -29327,67 +29327,68 @@ const jN = {
29327
29327
  onChange: e,
29328
29328
  minData: r,
29329
29329
  maxData: n,
29330
- quickRanges: a
29330
+ quickRanges: a,
29331
+ className: i
29331
29332
  }) => {
29332
- const [i, s] = ge([
29333
+ const [s, o] = ge([
29333
29334
  {
29334
- startDate: Yt(/* @__PURE__ */ new Date(), -6),
29335
+ startDate: Vt(/* @__PURE__ */ new Date(), -6),
29335
29336
  endDate: /* @__PURE__ */ new Date(),
29336
29337
  key: "selection"
29337
29338
  }
29338
- ]), [o, l] = ge(!1), [c, d] = ge({}), u = Kt(null), f = Kt(null), h = a ?? yI, g = t ? [{ ...t, key: "selection" }] : i;
29339
+ ]), [l, c] = ge(!1), [d, u] = ge({}), f = Kt(null), h = Kt(null), g = a ?? yI, m = t ? [{ ...t, key: "selection" }] : s;
29339
29340
  gt(() => {
29340
- if (o && f.current && u.current) {
29341
- const k = f.current.getBoundingClientRect(), v = u.current.offsetWidth || 700, y = window.innerWidth - k.right, O = k.left, P = {
29341
+ if (l && h.current && f.current) {
29342
+ const v = h.current.getBoundingClientRect(), y = f.current.offsetWidth || 700, O = window.innerWidth - v.right, T = v.left, M = {
29342
29343
  right: 0,
29343
29344
  left: "auto"
29344
29345
  };
29345
- y < v && O >= v && (P.left = 0, P.right = "auto"), window.innerWidth < v && (P.left = 0, P.right = 0, P.width = "100vw", P.maxWidth = "100vw"), d(P);
29346
- }
29347
- }, [o]);
29348
- const m = (k) => {
29349
- t || s([k.selection]), e == null || e(k.selection.startDate, k.selection.endDate);
29350
- }, p = (k) => {
29351
- const { startDate: v, endDate: y } = k();
29352
- t || s([{ startDate: v, endDate: y, key: "selection" }]), e == null || e(v, y), l(!1);
29346
+ O < y && T >= y && (M.left = 0, M.right = "auto"), window.innerWidth < y && (M.left = 0, M.right = 0, M.width = "100vw", M.maxWidth = "100vw"), u(M);
29347
+ }
29348
+ }, [l]);
29349
+ const p = (v) => {
29350
+ t || o([v.selection]), e == null || e(v.selection.startDate, v.selection.endDate);
29351
+ }, x = (v) => {
29352
+ const { startDate: y, endDate: O } = v();
29353
+ t || o([{ startDate: y, endDate: O, key: "selection" }]), e == null || e(y, O), c(!1);
29353
29354
  }, w = () => {
29354
- const k = /* @__PURE__ */ new Date();
29355
- t || s([{ startDate: k, endDate: k, key: "selection" }]), e == null || e(k, k), l(!1);
29356
- }, x = (k) => ro(k, "dd MMM yyyy");
29355
+ const v = /* @__PURE__ */ new Date();
29356
+ t || o([{ startDate: v, endDate: v, key: "selection" }]), e == null || e(v, v), c(!1);
29357
+ }, k = (v) => ro(v, "dd MMM yyyy");
29357
29358
  return gt(() => {
29358
- if (!o) return;
29359
- const k = (v) => {
29360
- u.current && !u.current.contains(v.target) && f.current && !f.current.contains(v.target) && l(!1);
29359
+ if (!l) return;
29360
+ const v = (y) => {
29361
+ f.current && !f.current.contains(y.target) && h.current && !h.current.contains(y.target) && c(!1);
29361
29362
  };
29362
- return document.addEventListener("mousedown", k), () => document.removeEventListener("mousedown", k);
29363
- }, [o]), /* @__PURE__ */ G("div", { className: Sr["date-container"], children: [
29363
+ return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
29364
+ }, [l]), /* @__PURE__ */ G("div", { className: Sr["date-container"], children: [
29364
29365
  /* @__PURE__ */ b(
29365
29366
  "input",
29366
29367
  {
29367
- ref: f,
29368
+ ref: h,
29368
29369
  type: "text",
29369
29370
  readOnly: !0,
29370
- value: `${x(g[0].startDate)} - ${x(g[0].endDate)}`,
29371
- onClick: () => l(!o),
29372
- className: Sr["date-input"]
29371
+ value: `${k(m[0].startDate)} - ${k(m[0].endDate)}`,
29372
+ onClick: () => c(!l),
29373
+ className: `${Sr["date-input"]} ${i}`
29373
29374
  }
29374
29375
  ),
29375
- o && /* @__PURE__ */ G(
29376
+ l && /* @__PURE__ */ G(
29376
29377
  "div",
29377
29378
  {
29378
- ref: u,
29379
+ ref: f,
29379
29380
  className: Sr["date-popup"],
29380
- style: c,
29381
+ style: d,
29381
29382
  children: [
29382
29383
  /* @__PURE__ */ G("div", { className: Sr["date-menu"], children: [
29383
- h.map((k, v) => /* @__PURE__ */ b(
29384
+ g.map((v, y) => /* @__PURE__ */ b(
29384
29385
  "div",
29385
29386
  {
29386
- className: Sr["date-menuItem"] + (v === 2 ? " " + Sr["date-menuItemActive"] : ""),
29387
- onClick: () => p(k.range),
29388
- children: k.label
29387
+ className: Sr["date-menuItem"] + (y === 2 ? " " + Sr["date-menuItemActive"] : ""),
29388
+ onClick: () => x(v.range),
29389
+ children: v.label
29389
29390
  },
29390
- k.label
29391
+ v.label
29391
29392
  )),
29392
29393
  /* @__PURE__ */ b(
29393
29394
  "div",
@@ -29402,19 +29403,19 @@ const jN = {
29402
29403
  Gp.DateRange,
29403
29404
  {
29404
29405
  editableDateInputs: !1,
29405
- onChange: m,
29406
+ onChange: p,
29406
29407
  moveRangeOnFirstSelection: !1,
29407
- ranges: g,
29408
+ ranges: m,
29408
29409
  rangeColors: ["#C0D4FF99"],
29409
29410
  minDate: r,
29410
29411
  maxDate: n,
29411
29412
  locale: bI,
29412
- dayContentRenderer: (k) => {
29413
- const v = k.getDay();
29413
+ dayContentRenderer: (v) => {
29414
+ const y = v.getDay();
29414
29415
  return /* @__PURE__ */ b("span", { style: {
29415
- opacity: v === 0 || v === 6 ? 0.5 : 1,
29416
- color: v === 0 || v === 6 ? "#999" : "inherit"
29417
- }, children: k.getDate() });
29416
+ opacity: y === 0 || y === 6 ? 0.5 : 1,
29417
+ color: y === 0 || y === 6 ? "#999" : "inherit"
29418
+ }, children: v.getDate() });
29418
29419
  },
29419
29420
  navigationButtonsPosition: "center"
29420
29421
  }
@@ -29473,7 +29474,7 @@ const jN = {
29473
29474
  children: k.label
29474
29475
  },
29475
29476
  k.value || k.label
29476
- )), w = () => /* @__PURE__ */ b("div", { className: `grid min-w-[200px] gap-2 p-2 ${o === 1 ? "grid-cols-1" : o === 2 ? "grid-cols-2" : o === 3 ? "grid-cols-3" : o === 4 ? "grid-cols-4" : "grid-cols-2"}`, children: r.map((v) => {
29477
+ )), x = () => /* @__PURE__ */ b("div", { className: `grid min-w-[200px] gap-2 p-2 ${o === 1 ? "grid-cols-1" : o === 2 ? "grid-cols-2" : o === 3 ? "grid-cols-3" : o === 4 ? "grid-cols-4" : "grid-cols-2"}`, children: r.map((v) => {
29477
29478
  const y = v.value || v.label, O = h.includes(y);
29478
29479
  return /* @__PURE__ */ G(
29479
29480
  "label",
@@ -29485,7 +29486,7 @@ const jN = {
29485
29486
  {
29486
29487
  type: "checkbox",
29487
29488
  checked: O,
29488
- onChange: (P) => m(y, P.target.checked),
29489
+ onChange: (T) => m(y, T.target.checked),
29489
29490
  disabled: v.disabled,
29490
29491
  className: "size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"
29491
29492
  }
@@ -29495,8 +29496,8 @@ const jN = {
29495
29496
  },
29496
29497
  y
29497
29498
  );
29498
- }) }), x = (k) => k ? typeof k == "string" ? /* @__PURE__ */ b("img", { src: k, alt: "icon", width: f, height: f }) : /* @__PURE__ */ b(k, { size: f }) : null;
29499
- return /* @__PURE__ */ b(Vt, { children: /* @__PURE__ */ b(
29499
+ }) }), w = (k) => k ? typeof k == "string" ? /* @__PURE__ */ b("img", { src: k, alt: "icon", width: f, height: f }) : /* @__PURE__ */ b(k, { size: f }) : null;
29500
+ return /* @__PURE__ */ b($t, { children: /* @__PURE__ */ b(
29500
29501
  K1,
29501
29502
  {
29502
29503
  label: t,
@@ -29509,100 +29510,120 @@ const jN = {
29509
29510
  style: i,
29510
29511
  type: "button",
29511
29512
  children: /* @__PURE__ */ G("span", { className: "flex items-center gap-2", children: [
29512
- x(u),
29513
+ w(u),
29513
29514
  t,
29514
- d && x(dc)
29515
+ d && w(dc)
29515
29516
  ] })
29516
29517
  }
29517
29518
  ),
29518
29519
  className: "left-0",
29519
- children: s === "simple" ? p() : w()
29520
+ children: s === "simple" ? p() : x()
29520
29521
  }
29521
29522
  ) });
29522
29523
  }, UI = function({
29523
29524
  steps: t = [],
29524
29525
  initialStep: e = 1,
29525
- onNext: r,
29526
- onBack: n,
29527
- onFinish: a
29526
+ activeStep: r,
29527
+ onStepChange: n,
29528
+ renderControls: a,
29529
+ onNext: i,
29530
+ onBack: s,
29531
+ onFinish: o
29528
29532
  }) {
29529
- var c;
29530
- const [i, s] = ge(e), o = () => {
29531
- if (i < t.length) {
29532
- const d = i + 1;
29533
- s(d), r == null || r();
29533
+ var p;
29534
+ const l = typeof r == "number", [c, d] = ge(e), u = l ? r : c, f = () => {
29535
+ if (u < t.length) {
29536
+ const x = u + 1;
29537
+ l ? (n == null || n(x), i == null || i()) : (d(x), i == null || i());
29534
29538
  } else
29535
- a == null || a();
29536
- }, l = () => {
29537
- if (i > 1) {
29538
- const d = i - 1;
29539
- s(d), n == null || n();
29540
- }
29539
+ o == null || o();
29540
+ }, h = () => {
29541
+ if (u > 1) {
29542
+ const x = u - 1;
29543
+ l ? (n == null || n(x), s == null || s()) : (d(x), s == null || s());
29544
+ }
29545
+ }, g = (x) => {
29546
+ x !== u && (x < 1 || x > t.length || (l ? n == null || n(x) : d(x)));
29547
+ }, m = {
29548
+ activeStep: u,
29549
+ stepsLength: t.length,
29550
+ isFirst: u === 1,
29551
+ isLast: u === t.length,
29552
+ next: f,
29553
+ back: h,
29554
+ goToStep: g
29541
29555
  };
29542
- return /* @__PURE__ */ G("div", { className: "mx-auto mt-10 flex w-full max-w-5xl flex-col md:flex-row", children: [
29543
- /* @__PURE__ */ b("ol", { className: "relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full md:w-1/3 pr-6", children: t.map((d, u) => {
29544
- const f = u === t.length - 1, h = u + 1 === i, g = u + 1 < i;
29545
- return /* @__PURE__ */ G("li", { className: `ms-4 ${f ? "" : "mb-8"}`, children: [
29556
+ return /* @__PURE__ */ G("div", { className: "mx-auto flex w-full max-w-5xl flex-col md:flex-row", children: [
29557
+ /* @__PURE__ */ b("ol", { className: "relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start", children: t.map((x, w) => {
29558
+ const k = w === t.length - 1, v = w + 1 === u, y = w + 1 < u;
29559
+ return /* @__PURE__ */ G("li", { className: `ms-4 ${k ? "" : "mb-8"}`, children: [
29546
29560
  /* @__PURE__ */ b(
29547
29561
  "span",
29548
29562
  {
29549
29563
  className: `absolute -start-2 mt-0.5 size-3.5 items-center justify-center rounded-full ring-1
29550
- ${g || h ? "bg-[#191960] ring-[#191960]" : "bg-[#C0D4FF] ring-[#C0D4FF]"}`
29564
+ ${y || v ? "bg-[#191960] ring-[#191960]" : "bg-[#C0D4FF] ring-[#C0D4FF]"}`
29551
29565
  }
29552
29566
  ),
29553
29567
  /* @__PURE__ */ b(
29554
29568
  "h3",
29555
29569
  {
29556
29570
  className: `text-sm font-medium leading-tight transition-colors duration-300
29557
- ${g || h ? "text-black" : "text-gray-600"}`,
29558
- children: d.title
29571
+ ${y || v ? "text-black" : "text-gray-600"}`,
29572
+ children: x.title
29559
29573
  }
29560
29574
  )
29561
- ] }, d.title);
29575
+ ] }, x.title);
29562
29576
  }) }),
29563
- /* @__PURE__ */ G("div", { className: "w-full md:w-2/3 bg-white rounded-lg shadow p-6 mt-6 md:mt-0 transition-all duration-300", children: [
29564
- /* @__PURE__ */ b("div", { children: ((c = t[i - 1]) == null ? void 0 : c.content) || /* @__PURE__ */ b("p", { children: "No hay contenido." }) }),
29565
- /* @__PURE__ */ G("div", { className: "mt-6 flex justify-between ", children: [
29566
- /* @__PURE__ */ b(
29567
- Ya,
29568
- {
29569
- color: "gray",
29570
- disabled: i === 1,
29571
- onClick: l,
29572
- children: "Atrás"
29573
- }
29574
- ),
29575
- i < t.length ? /* @__PURE__ */ b(
29576
- Ya,
29577
- {
29578
- style: { backgroundColor: "#191960" },
29579
- onClick: o,
29580
- children: "Siguiente"
29581
- }
29582
- ) : /* @__PURE__ */ b(Ya, { color: "success", onClick: a, children: "Finalizar" })
29583
- ] })
29577
+ /* @__PURE__ */ G("div", { className: "w-full md:w-2/3 p-6 mt-6 mx-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300", children: [
29578
+ /* @__PURE__ */ b("div", { children: ((p = t[u - 1]) == null ? void 0 : p.content) || /* @__PURE__ */ b("p", { children: "No hay contenido." }) }),
29579
+ /* @__PURE__ */ b("div", { className: "mt-6 flex justify-between ", children: a ? (
29580
+ // Si el parent provee renderControls, lo usamos
29581
+ a(m)
29582
+ ) : (
29583
+ // Controles por defecto
29584
+ /* @__PURE__ */ G($t, { children: [
29585
+ /* @__PURE__ */ b(
29586
+ Ya,
29587
+ {
29588
+ color: "gray",
29589
+ disabled: u === 1,
29590
+ onClick: h,
29591
+ children: "Atrás"
29592
+ }
29593
+ ),
29594
+ u < t.length ? /* @__PURE__ */ b(
29595
+ Ya,
29596
+ {
29597
+ style: { backgroundColor: "#191960" },
29598
+ onClick: f,
29599
+ children: "Siguiente"
29600
+ }
29601
+ ) : /* @__PURE__ */ b(Ya, { color: "success", onClick: o, children: "Finalizar" })
29602
+ ] })
29603
+ ) })
29584
29604
  ] })
29585
29605
  ] });
29586
- }, XI = ({ options: t, classNameRadio: e, classNameLabel: r }) => /* @__PURE__ */ b("div", { className: "flex max-w-md flex-col gap-2", children: /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
29606
+ }, XI = ({ options: t, classNameRadio: e, classNameLabel: r, onChange: n }) => /* @__PURE__ */ b("div", { className: "flex max-w-md flex-col gap-2", children: /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: t == null ? void 0 : t.map((a) => /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
29587
29607
  /* @__PURE__ */ b(
29588
29608
  Vm,
29589
29609
  {
29590
- id: n.id,
29591
- value: n.value,
29592
- name: n.name,
29593
- defaultChecked: n.checked,
29610
+ id: a.id,
29611
+ value: a.value,
29612
+ name: a.name,
29613
+ onChange: n,
29614
+ defaultChecked: a.checked,
29594
29615
  className: `ring-1 ring-[#C4C4C4] focus:ring-[#C0D4FF] ${e}`
29595
29616
  }
29596
29617
  ),
29597
29618
  /* @__PURE__ */ b(
29598
29619
  Tc,
29599
29620
  {
29600
- htmlFor: n.id,
29621
+ htmlFor: a.id,
29601
29622
  className: `${r}`,
29602
- children: n.label
29623
+ children: a.label
29603
29624
  }
29604
29625
  )
29605
- ] }, n.id)) }) });
29626
+ ] }, a.id)) }) });
29606
29627
  export {
29607
29628
  DI as ButtonFormat,
29608
29629
  Xp as Card,