ui-mathilde-web 0.10.16 → 0.10.17

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.
@@ -362,26 +362,26 @@ function a1(t) {
362
362
  return function(i) {
363
363
  const s = [];
364
364
  let l = 0, c = 0, d;
365
- for (let g = 0; g < i.length; g++) {
366
- let b = i[g];
365
+ for (let m = 0; m < i.length; m++) {
366
+ let b = i[m];
367
367
  if (l === 0) {
368
- if (b === r && (n || i.slice(g, g + a) === e)) {
369
- s.push(i.slice(c, g)), c = g + a;
368
+ if (b === r && (n || i.slice(m, m + a) === e)) {
369
+ s.push(i.slice(c, m)), c = m + a;
370
370
  continue;
371
371
  }
372
372
  if (b === "/") {
373
- d = g;
373
+ d = m;
374
374
  continue;
375
375
  }
376
376
  }
377
377
  b === "[" ? l++ : b === "]" && l--;
378
378
  }
379
- const u = s.length === 0 ? i : i.substring(c), f = u.startsWith(Gm), h = f ? u.substring(1) : u, m = d && d > c ? d - c : void 0;
379
+ const u = s.length === 0 ? i : i.substring(c), f = u.startsWith(Gm), h = f ? u.substring(1) : u, g = d && d > c ? d - c : void 0;
380
380
  return {
381
381
  modifiers: s,
382
382
  hasImportantModifier: f,
383
383
  baseClassName: h,
384
- maybePostfixModifierPosition: m
384
+ maybePostfixModifierPosition: g
385
385
  };
386
386
  };
387
387
  }
@@ -542,7 +542,7 @@ function C1(t) {
542
542
  return b1.test(t);
543
543
  }
544
544
  function M1() {
545
- const t = We("colors"), e = We("spacing"), n = We("blur"), r = We("brightness"), a = We("borderColor"), o = We("borderRadius"), i = We("borderSpacing"), s = We("borderWidth"), l = We("contrast"), c = We("grayscale"), d = We("hueRotate"), u = We("invert"), f = We("gap"), h = We("gradientColorStops"), m = We("gradientColorStopPositions"), g = We("inset"), b = We("margin"), y = We("opacity"), x = We("padding"), k = We("saturate"), w = We("scale"), v = We("sepia"), _ = We("skew"), T = We("space"), D = We("translate"), P = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", pe, e], L = () => [pe, e], S = () => ["", Yn, dr], O = () => ["auto", Kr, pe], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ee = () => ["", "0", pe], N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [Kr, Pi], A = () => [Kr, pe];
545
+ const t = We("colors"), e = We("spacing"), n = We("blur"), r = We("brightness"), a = We("borderColor"), o = We("borderRadius"), i = We("borderSpacing"), s = We("borderWidth"), l = We("contrast"), c = We("grayscale"), d = We("hueRotate"), u = We("invert"), f = We("gap"), h = We("gradientColorStops"), g = We("gradientColorStopPositions"), m = We("inset"), b = We("margin"), y = We("opacity"), x = We("padding"), k = We("saturate"), w = We("scale"), v = We("sepia"), _ = We("skew"), T = We("space"), D = We("translate"), P = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], H = () => ["auto", pe, e], L = () => [pe, e], S = () => ["", Yn, dr], O = () => ["auto", Kr, pe], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], V = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ee = () => ["", "0", pe], N = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], Y = () => [Kr, Pi], A = () => [Kr, pe];
546
546
  return {
547
547
  cacheSize: 500,
548
548
  separator: ":",
@@ -719,63 +719,63 @@ function M1() {
719
719
  * @see https://tailwindcss.com/docs/top-right-bottom-left
720
720
  */
721
721
  inset: [{
722
- inset: [g]
722
+ inset: [m]
723
723
  }],
724
724
  /**
725
725
  * Right / Left
726
726
  * @see https://tailwindcss.com/docs/top-right-bottom-left
727
727
  */
728
728
  "inset-x": [{
729
- "inset-x": [g]
729
+ "inset-x": [m]
730
730
  }],
731
731
  /**
732
732
  * Top / Bottom
733
733
  * @see https://tailwindcss.com/docs/top-right-bottom-left
734
734
  */
735
735
  "inset-y": [{
736
- "inset-y": [g]
736
+ "inset-y": [m]
737
737
  }],
738
738
  /**
739
739
  * Start
740
740
  * @see https://tailwindcss.com/docs/top-right-bottom-left
741
741
  */
742
742
  start: [{
743
- start: [g]
743
+ start: [m]
744
744
  }],
745
745
  /**
746
746
  * End
747
747
  * @see https://tailwindcss.com/docs/top-right-bottom-left
748
748
  */
749
749
  end: [{
750
- end: [g]
750
+ end: [m]
751
751
  }],
752
752
  /**
753
753
  * Top
754
754
  * @see https://tailwindcss.com/docs/top-right-bottom-left
755
755
  */
756
756
  top: [{
757
- top: [g]
757
+ top: [m]
758
758
  }],
759
759
  /**
760
760
  * Right
761
761
  * @see https://tailwindcss.com/docs/top-right-bottom-left
762
762
  */
763
763
  right: [{
764
- right: [g]
764
+ right: [m]
765
765
  }],
766
766
  /**
767
767
  * Bottom
768
768
  * @see https://tailwindcss.com/docs/top-right-bottom-left
769
769
  */
770
770
  bottom: [{
771
- bottom: [g]
771
+ bottom: [m]
772
772
  }],
773
773
  /**
774
774
  * Left
775
775
  * @see https://tailwindcss.com/docs/top-right-bottom-left
776
776
  */
777
777
  left: [{
778
- left: [g]
778
+ left: [m]
779
779
  }],
780
780
  /**
781
781
  * Visibility
@@ -1513,21 +1513,21 @@ function M1() {
1513
1513
  * @see https://tailwindcss.com/docs/gradient-color-stops
1514
1514
  */
1515
1515
  "gradient-from-pos": [{
1516
- from: [m]
1516
+ from: [g]
1517
1517
  }],
1518
1518
  /**
1519
1519
  * Gradient Color Stops Via Position
1520
1520
  * @see https://tailwindcss.com/docs/gradient-color-stops
1521
1521
  */
1522
1522
  "gradient-via-pos": [{
1523
- via: [m]
1523
+ via: [g]
1524
1524
  }],
1525
1525
  /**
1526
1526
  * Gradient Color Stops To Position
1527
1527
  * @see https://tailwindcss.com/docs/gradient-color-stops
1528
1528
  */
1529
1529
  "gradient-to-pos": [{
1530
- to: [m]
1530
+ to: [g]
1531
1531
  }],
1532
1532
  /**
1533
1533
  * Gradient Color Stops From
@@ -4060,39 +4060,39 @@ const lp = ({
4060
4060
  theme: f = {},
4061
4061
  ...h
4062
4062
  }) => {
4063
- const m = ae(he().avatar, f), g = X(
4064
- m.root.img.base,
4065
- e && m.root.bordered,
4066
- e && m.root.color[a],
4067
- s && m.root.rounded,
4068
- c && m.root.stacked,
4069
- m.root.img.on,
4070
- m.root.size[l]
4063
+ const g = ae(he().avatar, f), m = X(
4064
+ g.root.img.base,
4065
+ e && g.root.bordered,
4066
+ e && g.root.color[a],
4067
+ s && g.root.rounded,
4068
+ c && g.root.stacked,
4069
+ g.root.img.on,
4070
+ g.root.size[l]
4071
4071
  ), b = {
4072
- className: X(g, m.root.img.on),
4072
+ className: X(m, g.root.img.on),
4073
4073
  "data-testid": "flowbite-avatar-img"
4074
4074
  };
4075
- return /* @__PURE__ */ j("div", { className: X(m.root.base, r), "data-testid": "flowbite-avatar", ...h, children: [
4075
+ return /* @__PURE__ */ j("div", { className: X(g.root.base, r), "data-testid": "flowbite-avatar", ...h, children: [
4076
4076
  /* @__PURE__ */ j("div", { className: "relative", children: [
4077
4077
  o ? typeof o == "string" ? /* @__PURE__ */ p("img", { alt: t, src: o, ...b }) : o({ alt: t, ...b }) : i ? /* @__PURE__ */ p(
4078
4078
  "div",
4079
4079
  {
4080
4080
  className: X(
4081
- m.root.img.off,
4082
- m.root.initials.base,
4083
- c && m.root.stacked,
4084
- e && m.root.bordered,
4085
- e && m.root.color[a],
4086
- m.root.size[l],
4087
- s && m.root.rounded
4081
+ g.root.img.off,
4082
+ g.root.initials.base,
4083
+ c && g.root.stacked,
4084
+ e && g.root.bordered,
4085
+ e && g.root.color[a],
4086
+ g.root.size[l],
4087
+ s && g.root.rounded
4088
4088
  ),
4089
4089
  "data-testid": "flowbite-avatar-initials-placeholder",
4090
- children: /* @__PURE__ */ p("span", { className: X(m.root.initials.text), "data-testid": "flowbite-avatar-initials-placeholder-text", children: i })
4090
+ children: /* @__PURE__ */ p("span", { className: X(g.root.initials.text), "data-testid": "flowbite-avatar-initials-placeholder-text", children: i })
4091
4091
  }
4092
- ) : /* @__PURE__ */ p("div", { className: X(g, m.root.img.off), "data-testid": "flowbite-avatar-img", children: /* @__PURE__ */ p(
4092
+ ) : /* @__PURE__ */ p("div", { className: X(m, g.root.img.off), "data-testid": "flowbite-avatar-img", children: /* @__PURE__ */ p(
4093
4093
  "svg",
4094
4094
  {
4095
- className: m.root.img.placeholder,
4095
+ className: g.root.img.placeholder,
4096
4096
  fill: "currentColor",
4097
4097
  viewBox: "0 0 20 20",
4098
4098
  xmlns: "http://www.w3.org/2000/svg",
@@ -4104,9 +4104,9 @@ const lp = ({
4104
4104
  {
4105
4105
  "data-testid": "flowbite-avatar-status",
4106
4106
  className: X(
4107
- m.root.status.base,
4108
- m.root.status[d],
4109
- m.root.statusPosition[u]
4107
+ g.root.status.base,
4108
+ g.root.status[d],
4109
+ g.root.statusPosition[u]
4110
4110
  )
4111
4111
  }
4112
4112
  )
@@ -4232,11 +4232,11 @@ const hp = Me(
4232
4232
  outline: u = !1,
4233
4233
  pill: f = !1,
4234
4234
  positionInGroup: h = "none",
4235
- size: m = "md",
4236
- theme: g = {},
4235
+ size: g = "md",
4236
+ theme: m = {},
4237
4237
  ...b
4238
4238
  }, y) => {
4239
- const { buttonGroup: x, button: k } = he(), w = ae(k, g), v = b;
4239
+ const { buttonGroup: x, button: k } = he(), w = ae(k, m), v = b;
4240
4240
  return /* @__PURE__ */ p(
4241
4241
  Pd,
4242
4242
  {
@@ -4262,14 +4262,14 @@ const hp = Me(
4262
4262
  w.inner.base,
4263
4263
  w.outline[u ? "on" : "off"],
4264
4264
  w.outline.pill[u && f ? "on" : "off"],
4265
- w.size[m],
4265
+ w.size[g],
4266
4266
  u && !w.outline.color[n] && w.inner.outline,
4267
4267
  o && w.isProcessing,
4268
- o && w.inner.isProcessingPadding[m],
4268
+ o && w.inner.isProcessingPadding[g],
4269
4269
  w.inner.position[h]
4270
4270
  ),
4271
4271
  children: /* @__PURE__ */ j(Tt, { children: [
4272
- o && /* @__PURE__ */ p("span", { className: X(w.spinnerSlot, w.spinnerLeftPosition[m]), children: s || /* @__PURE__ */ p(dp, { size: m }) }),
4272
+ o && /* @__PURE__ */ p("span", { className: X(w.spinnerSlot, w.spinnerLeftPosition[g]), children: s || /* @__PURE__ */ p(dp, { size: g }) }),
4273
4273
  typeof t < "u" ? t : /* @__PURE__ */ p("span", { "data-testid": "flowbite-button-label", className: X(w.label), children: o ? i : d })
4274
4274
  ] })
4275
4275
  }
@@ -4410,8 +4410,8 @@ function kp(t, e = 100, n = {}) {
4410
4410
  a = this, o = u, s = Date.now();
4411
4411
  const f = r && !i;
4412
4412
  if (i || (i = setTimeout(c, e)), f) {
4413
- const h = a, m = o;
4414
- a = void 0, o = void 0, l = t.apply(h, m);
4413
+ const h = a, g = o;
4414
+ a = void 0, o = void 0, l = t.apply(h, g);
4415
4415
  }
4416
4416
  return l;
4417
4417
  };
@@ -4700,7 +4700,7 @@ const ii = (t, e, n) => {
4700
4700
  return /* @__PURE__ */ j(Tt, { children: [
4701
4701
  /* @__PURE__ */ p("div", { className: c.header.base, children: d.map((f, h) => /* @__PURE__ */ p("span", { className: c.header.title, children: f }, h)) }),
4702
4702
  /* @__PURE__ */ p("div", { className: c.items.base, children: [...Array(42)].map((f, h) => {
4703
- const m = Nd(u, h), g = Ro(l, m, { day: "numeric" }), b = hl(i, m), y = !ii(m, r, a);
4703
+ const g = Nd(u, h), m = Ro(l, g, { day: "numeric" }), b = hl(i, g), y = !ii(g, r, a);
4704
4704
  return /* @__PURE__ */ p(
4705
4705
  "button",
4706
4706
  {
@@ -4712,9 +4712,9 @@ const ii = (t, e, n) => {
4712
4712
  y && c.items.item.disabled
4713
4713
  ),
4714
4714
  onClick: () => {
4715
- y || s(m, !0);
4715
+ y || s(g, !0);
4716
4716
  },
4717
- children: g
4717
+ children: m
4718
4718
  },
4719
4719
  h
4720
4720
  );
@@ -4723,19 +4723,19 @@ const ii = (t, e, n) => {
4723
4723
  }, Ik = ({ theme: t = {} }) => {
4724
4724
  const { theme: e, selectedDate: n, viewDate: r, setViewDate: a, setView: o } = fl(), i = ae(e.views.decades, t);
4725
4725
  return /* @__PURE__ */ p("div", { className: i.items.base, children: [...Array(12)].map((s, l) => {
4726
- const d = Da(r, 100) - 10 + l * 10, u = new Date(d, 0, 1), f = Oa(u, 9), h = Nk(r, d), m = !ii(r, u, f);
4726
+ const d = Da(r, 100) - 10 + l * 10, u = new Date(d, 0, 1), f = Oa(u, 9), h = Nk(r, d), g = !ii(r, u, f);
4727
4727
  return /* @__PURE__ */ p(
4728
4728
  "button",
4729
4729
  {
4730
- disabled: m,
4730
+ disabled: g,
4731
4731
  type: "button",
4732
4732
  className: X(
4733
4733
  i.items.item.base,
4734
4734
  h && i.items.item.selected,
4735
- m && i.items.item.disabled
4735
+ g && i.items.item.disabled
4736
4736
  ),
4737
4737
  onClick: () => {
4738
- m || (a(Oa(r, d - n.getFullYear())), o(Ye.Years));
4738
+ g || (a(Oa(r, d - n.getFullYear())), o(Ye.Years));
4739
4739
  },
4740
4740
  children: d
4741
4741
  },
@@ -4756,19 +4756,19 @@ const ii = (t, e, n) => {
4756
4756
  return /* @__PURE__ */ p("div", { className: c.items.base, children: [...Array(12)].map((d, u) => {
4757
4757
  const f = new Date(o.getTime());
4758
4758
  f.setMonth(u);
4759
- const h = Ro(i, f, { month: "short" }), m = hl(a, f), g = !ii(f, n, r);
4759
+ const h = Ro(i, f, { month: "short" }), g = hl(a, f), m = !ii(f, n, r);
4760
4760
  return /* @__PURE__ */ p(
4761
4761
  "button",
4762
4762
  {
4763
- disabled: g,
4763
+ disabled: m,
4764
4764
  type: "button",
4765
4765
  className: X(
4766
4766
  c.items.item.base,
4767
- m && c.items.item.selected,
4768
- g && c.items.item.disabled
4767
+ g && c.items.item.selected,
4768
+ m && c.items.item.disabled
4769
4769
  ),
4770
4770
  onClick: () => {
4771
- g || (s(f), l(Ye.Days));
4771
+ m || (s(f), l(Ye.Days));
4772
4772
  },
4773
4773
  children: h
4774
4774
  },
@@ -4780,19 +4780,19 @@ const ii = (t, e, n) => {
4780
4780
  return /* @__PURE__ */ p("div", { className: l.items.base, children: [...Array(12)].map((c, d) => {
4781
4781
  const f = Da(o, 10) - 1 + d * 1, h = new Date(o.getTime());
4782
4782
  h.setFullYear(f);
4783
- const m = hl(n, h), g = !ii(h, r, a);
4783
+ const g = hl(n, h), m = !ii(h, r, a);
4784
4784
  return /* @__PURE__ */ p(
4785
4785
  "button",
4786
4786
  {
4787
- disabled: g,
4787
+ disabled: m,
4788
4788
  type: "button",
4789
4789
  className: X(
4790
4790
  l.items.item.base,
4791
- m && l.items.item.selected,
4792
- g && l.items.item.disabled
4791
+ g && l.items.item.selected,
4792
+ m && l.items.item.disabled
4793
4793
  ),
4794
4794
  onClick: () => {
4795
- g || (i(h), s(Ye.Months));
4795
+ m || (i(h), s(Ye.Months));
4796
4796
  },
4797
4797
  children: f
4798
4798
  },
@@ -4815,14 +4815,14 @@ const ii = (t, e, n) => {
4815
4815
  language: u = "en",
4816
4816
  weekStart: f = Sp.Sunday,
4817
4817
  className: h,
4818
- theme: m = {},
4819
- onSelectedDateChanged: g,
4818
+ theme: g = {},
4819
+ onSelectedDateChanged: m,
4820
4820
  ...b
4821
4821
  }, y) => {
4822
- const x = ae(he().datepicker, m);
4822
+ const x = ae(he().datepicker, g);
4823
4823
  l = Mk(l, c, d);
4824
4824
  const [k, w] = ge(e), [v, _] = ge(Ye.Days), [T, D] = ge(l), [P, M] = ge(l), H = Jt(null), L = Jt(null), S = (ee, N) => {
4825
- D(ee), g && g(ee), r && v === Ye.Days && N == !0 && !n && w(!1);
4825
+ D(ee), m && m(ee), r && v === Ye.Days && N == !0 && !n && w(!1);
4826
4826
  }, O = () => {
4827
4827
  S(l, !0), l && M(l);
4828
4828
  };
@@ -5368,12 +5368,12 @@ const Qk = async (t, e, n) => {
5368
5368
  }), {
5369
5369
  x: d,
5370
5370
  y: u
5371
- } = Rf(c, r, l), f = r, h = {}, m = 0;
5372
- for (let g = 0; g < s.length; g++) {
5371
+ } = Rf(c, r, l), f = r, h = {}, g = 0;
5372
+ for (let m = 0; m < s.length; m++) {
5373
5373
  const {
5374
5374
  name: b,
5375
5375
  fn: y
5376
- } = s[g], {
5376
+ } = s[m], {
5377
5377
  x,
5378
5378
  y: k,
5379
5379
  data: w,
@@ -5398,14 +5398,14 @@ const Qk = async (t, e, n) => {
5398
5398
  ...h[b],
5399
5399
  ...w
5400
5400
  }
5401
- }, v && m <= 50 && (m++, typeof v == "object" && (v.placement && (f = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
5401
+ }, v && g <= 50 && (g++, typeof v == "object" && (v.placement && (f = v.placement), v.rects && (c = v.rects === !0 ? await i.getElementRects({
5402
5402
  reference: t,
5403
5403
  floating: e,
5404
5404
  strategy: a
5405
5405
  }) : v.rects), {
5406
5406
  x: d,
5407
5407
  y: u
5408
- } = Rf(c, f, l)), g = -1);
5408
+ } = Rf(c, f, l)), m = -1);
5409
5409
  }
5410
5410
  return {
5411
5411
  x: d,
@@ -5431,7 +5431,7 @@ async function jd(t, e) {
5431
5431
  elementContext: u = "floating",
5432
5432
  altBoundary: f = !1,
5433
5433
  padding: h = 0
5434
- } = eo(e, t), m = Ip(h), b = s[f ? u === "floating" ? "reference" : "floating" : u], y = vs(await o.getClippingRect({
5434
+ } = eo(e, t), g = Ip(h), b = s[f ? u === "floating" ? "reference" : "floating" : u], y = vs(await o.getClippingRect({
5435
5435
  element: (n = await (o.isElement == null ? void 0 : o.isElement(b))) == null || n ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
5436
5436
  boundary: c,
5437
5437
  rootBoundary: d,
@@ -5453,10 +5453,10 @@ async function jd(t, e) {
5453
5453
  strategy: l
5454
5454
  }) : x);
5455
5455
  return {
5456
- top: (y.top - v.top + m.top) / w.y,
5457
- bottom: (v.bottom - y.bottom + m.bottom) / w.y,
5458
- left: (y.left - v.left + m.left) / w.x,
5459
- right: (v.right - y.right + m.right) / w.x
5456
+ top: (y.top - v.top + g.top) / w.y,
5457
+ bottom: (v.bottom - y.bottom + g.bottom) / w.y,
5458
+ left: (y.left - v.left + g.left) / w.x,
5459
+ right: (v.right - y.right + g.right) / w.x
5460
5460
  };
5461
5461
  }
5462
5462
  const Zk = (t) => ({
@@ -5480,10 +5480,10 @@ const Zk = (t) => ({
5480
5480
  const u = Ip(d), f = {
5481
5481
  x: n,
5482
5482
  y: r
5483
- }, h = Bd(a), m = Wd(h), g = await i.getDimensions(c), b = h === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", w = o.reference[m] + o.reference[h] - f[h] - o.floating[m], v = f[h] - o.reference[h], _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
5483
+ }, h = Bd(a), g = Wd(h), m = await i.getDimensions(c), b = h === "y", y = b ? "top" : "left", x = b ? "bottom" : "right", k = b ? "clientHeight" : "clientWidth", w = o.reference[g] + o.reference[h] - f[h] - o.floating[g], v = f[h] - o.reference[h], _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
5484
5484
  let T = _ ? _[k] : 0;
5485
- (!T || !await (i.isElement == null ? void 0 : i.isElement(_))) && (T = s.floating[k] || o.floating[m]);
5486
- const D = w / 2 - v / 2, P = T / 2 - g[m] / 2 - 1, M = Wa(u[y], P), H = Wa(u[x], P), L = M, S = T - g[m] - H, O = T / 2 - g[m] / 2 + D, E = Xc(L, O, S), F = !l.arrow && Ln(a) != null && O !== E && o.reference[m] / 2 - (O < L ? M : H) - g[m] / 2 < 0, V = F ? O < L ? O - L : O - S : 0;
5485
+ (!T || !await (i.isElement == null ? void 0 : i.isElement(_))) && (T = s.floating[k] || o.floating[g]);
5486
+ const D = w / 2 - v / 2, P = T / 2 - m[g] / 2 - 1, M = Wa(u[y], P), H = Wa(u[x], P), L = M, S = T - m[g] - H, O = T / 2 - m[g] / 2 + D, E = Xc(L, O, S), F = !l.arrow && Ln(a) != null && O !== E && o.reference[g] / 2 - (O < L ? M : H) - m[g] / 2 < 0, V = F ? O < L ? O - L : O - S : 0;
5487
5487
  return {
5488
5488
  [h]: f[h] + V,
5489
5489
  data: {
@@ -5517,21 +5517,21 @@ const e2 = function(t) {
5517
5517
  alignment: u,
5518
5518
  allowedPlacements: f = Nf,
5519
5519
  autoAlignment: h = !0,
5520
- ...m
5521
- } = eo(t, e), g = u !== void 0 || f === Nf ? Jk(u || null, h, f) : f, b = await jd(e, m), y = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, x = g[y];
5520
+ ...g
5521
+ } = eo(t, e), m = u !== void 0 || f === Nf ? Jk(u || null, h, f) : f, b = await jd(e, g), y = ((n = i.autoPlacement) == null ? void 0 : n.index) || 0, x = m[y];
5522
5522
  if (x == null)
5523
5523
  return {};
5524
5524
  const k = Rp(x, o, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
5525
5525
  if (s !== x)
5526
5526
  return {
5527
5527
  reset: {
5528
- placement: g[0]
5528
+ placement: m[0]
5529
5529
  }
5530
5530
  };
5531
5531
  const w = [b[tr(x)], b[k[0]], b[k[1]]], v = [...((r = i.autoPlacement) == null ? void 0 : r.overflows) || [], {
5532
5532
  placement: x,
5533
5533
  overflows: w
5534
- }], _ = g[y + 1];
5534
+ }], _ = m[y + 1];
5535
5535
  if (_)
5536
5536
  return {
5537
5537
  data: {
@@ -5586,14 +5586,14 @@ const e2 = function(t) {
5586
5586
  crossAxis: u = !0,
5587
5587
  fallbackPlacements: f,
5588
5588
  fallbackStrategy: h = "bestFit",
5589
- fallbackAxisSideDirection: m = "none",
5590
- flipAlignment: g = !0,
5589
+ fallbackAxisSideDirection: g = "none",
5590
+ flipAlignment: m = !0,
5591
5591
  ...b
5592
5592
  } = eo(t, e);
5593
5593
  if ((n = o.arrow) != null && n.alignmentOffset)
5594
5594
  return {};
5595
- const y = tr(a), x = tr(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = f || (x || !g ? [ws(s)] : Uk(s));
5596
- !f && m !== "none" && w.push(...Kk(s, g, m, k));
5595
+ const y = tr(a), x = tr(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = f || (x || !m ? [ws(s)] : Uk(s));
5596
+ !f && g !== "none" && w.push(...Kk(s, m, g, k));
5597
5597
  const v = [s, ...w], _ = await jd(e, b), T = [];
5598
5598
  let D = ((r = o.flip) == null ? void 0 : r.overflows) || [];
5599
5599
  if (d && T.push(_[y]), u) {
@@ -5649,7 +5649,7 @@ async function n2(t, e) {
5649
5649
  let {
5650
5650
  mainAxis: f,
5651
5651
  crossAxis: h,
5652
- alignmentAxis: m
5652
+ alignmentAxis: g
5653
5653
  } = typeof u == "number" ? {
5654
5654
  mainAxis: u,
5655
5655
  crossAxis: 0,
@@ -5660,7 +5660,7 @@ async function n2(t, e) {
5660
5660
  alignmentAxis: null,
5661
5661
  ...u
5662
5662
  };
5663
- return s && typeof m == "number" && (h = s === "end" ? m * -1 : m), l ? {
5663
+ return s && typeof g == "number" && (h = s === "end" ? g * -1 : g), l ? {
5664
5664
  x: h * d,
5665
5665
  y: f * c
5666
5666
  } : {
@@ -5719,25 +5719,25 @@ const r2 = function(t) {
5719
5719
  x: n,
5720
5720
  y: r
5721
5721
  }, d = await jd(e, l), u = bl(tr(a)), f = Np(u);
5722
- let h = c[f], m = c[u];
5722
+ let h = c[f], g = c[u];
5723
5723
  if (o) {
5724
5724
  const b = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", x = h + d[b], k = h - d[y];
5725
5725
  h = Xc(x, h, k);
5726
5726
  }
5727
5727
  if (i) {
5728
- const b = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", x = m + d[b], k = m - d[y];
5729
- m = Xc(x, m, k);
5728
+ const b = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", x = g + d[b], k = g - d[y];
5729
+ g = Xc(x, g, k);
5730
5730
  }
5731
- const g = s.fn({
5731
+ const m = s.fn({
5732
5732
  ...e,
5733
5733
  [f]: h,
5734
- [u]: m
5734
+ [u]: g
5735
5735
  });
5736
5736
  return {
5737
- ...g,
5737
+ ...m,
5738
5738
  data: {
5739
- x: g.x - n,
5740
- y: g.y - r
5739
+ x: m.x - n,
5740
+ y: m.y - r
5741
5741
  }
5742
5742
  };
5743
5743
  }
@@ -5791,10 +5791,10 @@ function oa(t, e, n, r) {
5791
5791
  let l = (a.left + s.x) / i.x, c = (a.top + s.y) / i.y, d = a.width / i.x, u = a.height / i.y;
5792
5792
  if (o) {
5793
5793
  const f = $t(o), h = r && Re(r) ? $t(r) : r;
5794
- let m = f, g = qc(m);
5795
- for (; g && r && h !== m; ) {
5796
- const b = Pa(g), y = g.getBoundingClientRect(), x = sn(g), k = y.left + (g.clientLeft + parseFloat(x.paddingLeft)) * b.x, w = y.top + (g.clientTop + parseFloat(x.paddingTop)) * b.y;
5797
- l *= b.x, c *= b.y, d *= b.x, u *= b.y, l += k, c += w, m = $t(g), g = qc(m);
5794
+ let g = f, m = qc(g);
5795
+ for (; m && r && h !== g; ) {
5796
+ const b = Pa(m), y = m.getBoundingClientRect(), x = sn(m), k = y.left + (m.clientLeft + parseFloat(x.paddingLeft)) * b.x, w = y.top + (m.clientTop + parseFloat(x.paddingTop)) * b.y;
5797
+ l *= b.x, c *= b.y, d *= b.x, u *= b.y, l += k, c += w, g = $t(m), m = qc(g);
5798
5798
  }
5799
5799
  }
5800
5800
  return vs({
@@ -6044,8 +6044,8 @@ function w2(t, e) {
6044
6044
  } = c;
6045
6045
  if (s || e(), !f || !h)
6046
6046
  return;
6047
- const m = Ca(u), g = Ca(a.clientWidth - (d + f)), b = Ca(a.clientHeight - (u + h)), y = Ca(d), k = {
6048
- rootMargin: -m + "px " + -g + "px " + -b + "px " + -y + "px",
6047
+ const g = Ca(u), m = Ca(a.clientWidth - (d + f)), b = Ca(a.clientHeight - (u + h)), y = Ca(d), k = {
6048
+ rootMargin: -g + "px " + -m + "px " + -b + "px " + -y + "px",
6049
6049
  threshold: Jr(0, Wa(1, l)) || 1
6050
6050
  };
6051
6051
  let w = !0;
@@ -6096,17 +6096,17 @@ function jp(t, e, n, r) {
6096
6096
  (k = h) == null || k.observe(e);
6097
6097
  })), n();
6098
6098
  }), c && !l && h.observe(c), h.observe(e));
6099
- let m, g = l ? oa(t) : null;
6099
+ let g, m = l ? oa(t) : null;
6100
6100
  l && b();
6101
6101
  function b() {
6102
6102
  const y = oa(t);
6103
- g && !Bp(g, y) && n(), g = y, m = requestAnimationFrame(b);
6103
+ m && !Bp(m, y) && n(), m = y, g = requestAnimationFrame(b);
6104
6104
  }
6105
6105
  return n(), () => {
6106
6106
  var y;
6107
6107
  d.forEach((x) => {
6108
6108
  a && x.removeEventListener("scroll", n), o && x.removeEventListener("resize", n);
6109
- }), u == null || u(), (y = h) == null || y.disconnect(), h = null, l && cancelAnimationFrame(m);
6109
+ }), u == null || u(), (y = h) == null || y.disconnect(), h = null, l && cancelAnimationFrame(g);
6110
6110
  };
6111
6111
  }
6112
6112
  const v2 = r2, x2 = e2, k2 = a2, _2 = t2, Lf = Zk, S2 = (t, e, n) => {
@@ -6189,11 +6189,11 @@ function O2(t) {
6189
6189
  isPositioned: !1
6190
6190
  }), [f, h] = B.useState(r);
6191
6191
  xs(f, r) || h(r);
6192
- const [m, g] = B.useState(null), [b, y] = B.useState(null), x = B.useCallback((G) => {
6193
- G !== _.current && (_.current = G, g(G));
6192
+ const [g, m] = B.useState(null), [b, y] = B.useState(null), x = B.useCallback((G) => {
6193
+ G !== _.current && (_.current = G, m(G));
6194
6194
  }, []), k = B.useCallback((G) => {
6195
6195
  G !== T.current && (T.current = G, y(G));
6196
- }, []), w = o || m, v = i || b, _ = B.useRef(null), T = B.useRef(null), D = B.useRef(d), P = l != null, M = sc(l), H = sc(a), L = sc(c), S = B.useCallback(() => {
6196
+ }, []), w = o || g, v = i || b, _ = B.useRef(null), T = B.useRef(null), D = B.useRef(d), P = l != null, M = sc(l), H = sc(a), L = sc(c), S = B.useCallback(() => {
6197
6197
  if (!_.current || !T.current)
6198
6198
  return;
6199
6199
  const G = {
@@ -6566,8 +6566,8 @@ function J2(t, e) {
6566
6566
  decrement: !0,
6567
6567
  disabledIndices: i
6568
6568
  }), a && (c - o < s || u < 0)) {
6569
- const f = c % o, h = l % o, m = l - (h - f);
6570
- h === f ? u = l : u = h > f ? m : m - o;
6569
+ const f = c % o, h = l % o, g = l - (h - f);
6570
+ h === f ? u = l : u = h > f ? g : g - o;
6571
6571
  }
6572
6572
  Io(t, u) && (u = c);
6573
6573
  }
@@ -6819,8 +6819,8 @@ function h_(t, e) {
6819
6819
  handleClose: u = null,
6820
6820
  mouseOnly: f = !1,
6821
6821
  restMs: h = 0,
6822
- move: m = !0
6823
- } = e, g = ci(), b = vl(), y = Fn(u), x = Fn(d), k = B.useRef(), w = B.useRef(), v = B.useRef(), _ = B.useRef(), T = B.useRef(!0), D = B.useRef(!1), P = B.useRef(() => {
6822
+ move: g = !0
6823
+ } = e, m = ci(), b = vl(), y = Fn(u), x = Fn(d), k = B.useRef(), w = B.useRef(), v = B.useRef(), _ = B.useRef(), T = B.useRef(!0), D = B.useRef(!1), P = B.useRef(() => {
6824
6824
  }), M = B.useCallback(() => {
6825
6825
  var O;
6826
6826
  const E = (O = a.current.openEvent) == null ? void 0 : O.type;
@@ -6883,7 +6883,7 @@ function h_(t, e) {
6883
6883
  if (clearTimeout(_.current), y.current) {
6884
6884
  n || clearTimeout(w.current), v.current = y.current({
6885
6885
  ...t,
6886
- tree: g,
6886
+ tree: m,
6887
6887
  x: G.clientX,
6888
6888
  y: G.clientY,
6889
6889
  onClose() {
@@ -6901,7 +6901,7 @@ function h_(t, e) {
6901
6901
  function V(G) {
6902
6902
  O() || y.current == null || y.current({
6903
6903
  ...t,
6904
- tree: g,
6904
+ tree: m,
6905
6905
  x: G.clientX,
6906
6906
  y: G.clientY,
6907
6907
  onClose() {
@@ -6911,25 +6911,25 @@ function h_(t, e) {
6911
6911
  }
6912
6912
  if (Re(i)) {
6913
6913
  const G = i;
6914
- return n && G.addEventListener("mouseleave", V), s == null || s.addEventListener("mouseleave", V), m && G.addEventListener("mousemove", E, {
6914
+ return n && G.addEventListener("mouseleave", V), s == null || s.addEventListener("mouseleave", V), g && G.addEventListener("mousemove", E, {
6915
6915
  once: !0
6916
6916
  }), G.addEventListener("mouseenter", E), G.addEventListener("mouseleave", F), () => {
6917
- n && G.removeEventListener("mouseleave", V), s == null || s.removeEventListener("mouseleave", V), m && G.removeEventListener("mousemove", E), G.removeEventListener("mouseenter", E), G.removeEventListener("mouseleave", F);
6917
+ n && G.removeEventListener("mouseleave", V), s == null || s.removeEventListener("mouseleave", V), g && G.removeEventListener("mousemove", E), G.removeEventListener("mouseenter", E), G.removeEventListener("mouseleave", F);
6918
6918
  };
6919
6919
  }
6920
- }, [i, s, c, t, f, h, m, H, L, S, r, n, g, x, y, a]), Fe(() => {
6920
+ }, [i, s, c, t, f, h, g, H, L, S, r, n, m, x, y, a]), Fe(() => {
6921
6921
  var O;
6922
6922
  if (c && n && (O = y.current) != null && O.__options.blockPointerEvents && M()) {
6923
6923
  const F = Et(s).body;
6924
6924
  if (F.setAttribute(zf, ""), F.style.pointerEvents = "none", D.current = !0, Re(i) && s) {
6925
6925
  var E;
6926
- const V = i, G = g == null || (E = g.nodesRef.current.find((ee) => ee.id === b)) == null || (E = E.context) == null ? void 0 : E.elements.floating;
6926
+ const V = i, G = m == null || (E = m.nodesRef.current.find((ee) => ee.id === b)) == null || (E = E.context) == null ? void 0 : E.elements.floating;
6927
6927
  return G && (G.style.pointerEvents = ""), V.style.pointerEvents = "auto", s.style.pointerEvents = "auto", () => {
6928
6928
  V.style.pointerEvents = "", s.style.pointerEvents = "";
6929
6929
  };
6930
6930
  }
6931
6931
  }
6932
- }, [c, n, b, s, i, g, y, M]), Fe(() => {
6932
+ }, [c, n, b, s, i, m, y, M]), Fe(() => {
6933
6933
  n || (k.current = void 0, L(), S());
6934
6934
  }, [n, L, S]), B.useEffect(() => () => {
6935
6935
  L(), clearTimeout(w.current), clearTimeout(_.current), S();
@@ -7009,19 +7009,19 @@ function y_(t, e, n, r) {
7009
7009
  !h || s.has(h) || (s.add(h), h.parentNode && u(h.parentNode));
7010
7010
  }
7011
7011
  function f(h) {
7012
- !h || l.has(h) || Array.prototype.forEach.call(h.children, (m) => {
7013
- if (s.has(m))
7014
- f(m);
7012
+ !h || l.has(h) || Array.prototype.forEach.call(h.children, (g) => {
7013
+ if (s.has(g))
7014
+ f(g);
7015
7015
  else {
7016
- const g = o ? m.getAttribute(o) : null, b = g !== null && g !== "false", y = (ya.get(m) || 0) + 1, x = (d.get(m) || 0) + 1;
7017
- ya.set(m, y), d.set(m, x), c.push(m), y === 1 && b && Ni.add(m), x === 1 && m.setAttribute(a, ""), !b && o && m.setAttribute(o, "true");
7016
+ const m = o ? g.getAttribute(o) : null, b = m !== null && m !== "false", y = (ya.get(g) || 0) + 1, x = (d.get(g) || 0) + 1;
7017
+ ya.set(g, y), d.set(g, x), c.push(g), y === 1 && b && Ni.add(g), x === 1 && g.setAttribute(a, ""), !b && o && g.setAttribute(o, "true");
7018
7018
  }
7019
7019
  });
7020
7020
  }
7021
7021
  return uc++, () => {
7022
7022
  c.forEach((h) => {
7023
- const m = (ya.get(h) || 0) - 1, g = (d.get(h) || 0) - 1;
7024
- ya.set(h, m), d.set(h, g), m || (!Ni.has(h) && o && h.removeAttribute(o), Ni.delete(h)), g || h.removeAttribute(a);
7023
+ const g = (ya.get(h) || 0) - 1, m = (d.get(h) || 0) - 1;
7024
+ ya.set(h, g), d.set(h, m), g || (!Ni.has(h) && o && h.removeAttribute(o), Ni.delete(h)), m || h.removeAttribute(a);
7025
7025
  }), uc--, uc || (ya = /* @__PURE__ */ new WeakMap(), ya = /* @__PURE__ */ new WeakMap(), Ni = /* @__PURE__ */ new WeakSet(), Ri = {});
7026
7026
  };
7027
7027
  }
@@ -7145,8 +7145,8 @@ function __(t) {
7145
7145
  return B.useEffect(() => {
7146
7146
  if (!o || !a || i != null && i.modal)
7147
7147
  return;
7148
- function h(m) {
7149
- o && Ao(m) && (m.type === "focusin" ? v_ : w_)(o);
7148
+ function h(g) {
7149
+ o && Ao(g) && (g.type === "focusin" ? v_ : w_)(o);
7150
7150
  }
7151
7151
  return o.addEventListener("focusin", h, !0), o.addEventListener("focusout", h, !0), () => {
7152
7152
  o.removeEventListener("focusin", h, !0), o.removeEventListener("focusout", h, !0);
@@ -7166,11 +7166,11 @@ function __(t) {
7166
7166
  ref: l,
7167
7167
  onFocus: (h) => {
7168
7168
  if (Ao(h, o)) {
7169
- var m;
7170
- (m = d.current) == null || m.focus();
7169
+ var g;
7170
+ (g = d.current) == null || g.focus();
7171
7171
  } else {
7172
- const g = Zp() || (i == null ? void 0 : i.refs.domReference.current);
7173
- g == null || g.focus();
7172
+ const m = Zp() || (i == null ? void 0 : i.refs.domReference.current);
7173
+ m == null || m.focus();
7174
7174
  }
7175
7175
  }
7176
7176
  }), f && o && /* @__PURE__ */ B.createElement("span", {
@@ -7181,11 +7181,11 @@ function __(t) {
7181
7181
  ref: c,
7182
7182
  onFocus: (h) => {
7183
7183
  if (Ao(h, o)) {
7184
- var m;
7185
- (m = u.current) == null || m.focus();
7184
+ var g;
7185
+ (g = u.current) == null || g.focus();
7186
7186
  } else {
7187
- const g = Qp() || (i == null ? void 0 : i.refs.domReference.current);
7188
- g == null || g.focus(), i != null && i.closeOnFocusOut && (i == null || i.onOpenChange(!1, h.nativeEvent));
7187
+ const m = Qp() || (i == null ? void 0 : i.refs.domReference.current);
7188
+ m == null || m.focus(), i != null && i.closeOnFocusOut && (i == null || i.onOpenChange(!1, h.nativeEvent));
7189
7189
  }
7190
7190
  }
7191
7191
  }));
@@ -7231,8 +7231,8 @@ function t0(t) {
7231
7231
  open: u,
7232
7232
  refs: f,
7233
7233
  nodeId: h,
7234
- onOpenChange: m,
7235
- events: g,
7234
+ onOpenChange: g,
7235
+ events: m,
7236
7236
  dataRef: b,
7237
7237
  elements: {
7238
7238
  domReference: y,
@@ -7275,14 +7275,14 @@ function t0(t) {
7275
7275
  return ((z = C.context) == null ? void 0 : z.elements.floating) === I || ((Q = C.context) == null ? void 0 : Q.elements.domReference) === I;
7276
7276
  })));
7277
7277
  I && R && !O.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
7278
- I !== qf() && (S.current = !0, m(!1, A));
7278
+ I !== qf() && (S.current = !0, g(!1, A));
7279
7279
  });
7280
7280
  }
7281
7281
  if (x && kt(y))
7282
7282
  return y.addEventListener("focusout", Y), y.addEventListener("pointerdown", N), !l && x.addEventListener("focusout", Y), () => {
7283
7283
  y.removeEventListener("focusout", Y), y.removeEventListener("pointerdown", N), !l && x.removeEventListener("focusout", Y);
7284
7284
  };
7285
- }, [r, y, x, l, h, P, M, m, d]), B.useEffect(() => {
7285
+ }, [r, y, x, l, h, P, M, g, d]), B.useEffect(() => {
7286
7286
  var N;
7287
7287
  if (r) return;
7288
7288
  const Y = Array.from((M == null || (N = M.portalNode) == null ? void 0 : N.querySelectorAll("[" + ia("portal") + "]")) || []);
@@ -7314,8 +7314,8 @@ function t0(t) {
7314
7314
  } = C;
7315
7315
  z === "escape-key" && f.domReference.current && fc(f.domReference.current), z === "hover" && Q.type === "mouseleave" && (S.current = !0), z === "outside-press" && (q ? (S.current = !1, N = !0) : S.current = !(Ep(Q) || Ld(Q)));
7316
7316
  }
7317
- return g.on("openchange", R), () => {
7318
- g.off("openchange", R);
7317
+ return m.on("openchange", R), () => {
7318
+ m.off("openchange", R);
7319
7319
  const C = Mn(Y), z = at(x, C) || P && ea(P.nodesRef.current, h).some((Z) => {
7320
7320
  var W;
7321
7321
  return at((W = Z.context) == null ? void 0 : W.elements.floating, C);
@@ -7334,18 +7334,18 @@ function t0(t) {
7334
7334
  preventScroll: N
7335
7335
  });
7336
7336
  };
7337
- }, [r, x, D, b, f, g, P, h]), Fe(() => {
7337
+ }, [r, x, D, b, f, m, P, h]), Fe(() => {
7338
7338
  if (!(r || !M))
7339
7339
  return M.setFocusManagerState({
7340
7340
  modal: l,
7341
7341
  closeOnFocusOut: d,
7342
7342
  open: u,
7343
- onOpenChange: m,
7343
+ onOpenChange: g,
7344
7344
  refs: f
7345
7345
  }), () => {
7346
7346
  M.setFocusManagerState(null);
7347
7347
  };
7348
- }, [r, M, l, u, m, f, d]), Fe(() => {
7348
+ }, [r, M, l, u, g, f, d]), Fe(() => {
7349
7349
  if (r || !x || typeof MutationObserver != "function" || k)
7350
7350
  return;
7351
7351
  const N = () => {
@@ -7365,7 +7365,7 @@ function t0(t) {
7365
7365
  function G(N) {
7366
7366
  return r || !c || !l ? null : /* @__PURE__ */ B.createElement(O_, {
7367
7367
  ref: N === "start" ? H : L,
7368
- onClick: (Y) => m(!1, Y.nativeEvent)
7368
+ onClick: (Y) => g(!1, Y.nativeEvent)
7369
7369
  }, typeof c == "string" ? c : "Dismiss");
7370
7370
  }
7371
7371
  const ee = !r && v && (E || l);
@@ -7413,12 +7413,12 @@ const hc = /* @__PURE__ */ new Set(), D_ = /* @__PURE__ */ B.forwardRef(function
7413
7413
  hc.add(o);
7414
7414
  const i = /iP(hone|ad|od)|iOS/.test(Ad()), s = document.body.style, c = Math.round(document.documentElement.getBoundingClientRect().left) + document.documentElement.scrollLeft ? "paddingLeft" : "paddingRight", d = window.innerWidth - document.documentElement.clientWidth, u = s.left ? parseFloat(s.left) : window.pageXOffset, f = s.top ? parseFloat(s.top) : window.pageYOffset;
7415
7415
  if (s.overflow = "hidden", d && (s[c] = d + "px"), i) {
7416
- var h, m;
7417
- const g = ((h = window.visualViewport) == null ? void 0 : h.offsetLeft) || 0, b = ((m = window.visualViewport) == null ? void 0 : m.offsetTop) || 0;
7416
+ var h, g;
7417
+ const m = ((h = window.visualViewport) == null ? void 0 : h.offsetLeft) || 0, b = ((g = window.visualViewport) == null ? void 0 : g.offsetTop) || 0;
7418
7418
  Object.assign(s, {
7419
7419
  position: "fixed",
7420
7420
  top: -(f - Math.floor(b)) + "px",
7421
- left: -(u - Math.floor(g)) + "px",
7421
+ left: -(u - Math.floor(m)) + "px",
7422
7422
  right: "0"
7423
7423
  });
7424
7424
  }
@@ -7526,8 +7526,8 @@ function r0(t, e) {
7526
7526
  outsidePress: u = !0,
7527
7527
  outsidePressEvent: f = "pointerdown",
7528
7528
  referencePress: h = !1,
7529
- referencePressEvent: m = "pointerdown",
7530
- ancestorScroll: g = !1,
7529
+ referencePressEvent: g = "pointerdown",
7530
+ ancestorScroll: m = !1,
7531
7531
  bubbles: b,
7532
7532
  capture: y
7533
7533
  } = e, x = ci(), k = En(typeof u == "function" ? u : () => !1), w = typeof u == "function" ? k : u, v = B.useRef(!1), _ = B.useRef(!1), {
@@ -7621,7 +7621,7 @@ function r0(t, e) {
7621
7621
  const F = Et(s);
7622
7622
  d && F.addEventListener("keydown", P ? L : H, P), w && F.addEventListener(f, M ? O : S, M);
7623
7623
  let V = [];
7624
- return g && (Re(i) && (V = vr(i)), Re(s) && (V = V.concat(vr(s))), !Re(o) && o && o.contextElement && (V = V.concat(vr(o.contextElement)))), V = V.filter((G) => {
7624
+ return m && (Re(i) && (V = vr(i)), Re(s) && (V = V.concat(vr(s))), !Re(o) && o && o.contextElement && (V = V.concat(vr(o.contextElement)))), V = V.filter((G) => {
7625
7625
  var ee;
7626
7626
  return G !== ((ee = F.defaultView) == null ? void 0 : ee.visualViewport);
7627
7627
  }), V.forEach((G) => {
@@ -7633,12 +7633,12 @@ function r0(t, e) {
7633
7633
  G.removeEventListener("scroll", E);
7634
7634
  });
7635
7635
  };
7636
- }, [l, s, i, o, d, w, f, n, r, g, c, T, D, H, P, L, S, M, O]), B.useEffect(() => {
7636
+ }, [l, s, i, o, d, w, f, n, r, m, c, T, D, H, P, L, S, M, O]), B.useEffect(() => {
7637
7637
  v.current = !1;
7638
7638
  }, [w, f]), B.useMemo(() => c ? {
7639
7639
  reference: {
7640
7640
  onKeyDown: H,
7641
- [C_[m]]: (E) => {
7641
+ [C_[g]]: (E) => {
7642
7642
  h && r(!1, E.nativeEvent, "reference-press");
7643
7643
  }
7644
7644
  },
@@ -7654,7 +7654,7 @@ function r0(t, e) {
7654
7654
  v.current = !0;
7655
7655
  }
7656
7656
  }
7657
- } : {}, [c, h, f, m, r, H]);
7657
+ } : {}, [c, h, f, g, r, H]);
7658
7658
  }
7659
7659
  let Gc;
7660
7660
  process.env.NODE_ENV !== "production" && (Gc = /* @__PURE__ */ new Set());
@@ -7677,21 +7677,21 @@ function a0(t) {
7677
7677
  }
7678
7678
  }
7679
7679
  }
7680
- const [l, c] = B.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = O2(t), f = ci(), h = vl() != null, m = En((D, P, M) => {
7680
+ const [l, c] = B.useState(null), d = ((e = t.elements) == null ? void 0 : e.reference) || l, u = O2(t), f = ci(), h = vl() != null, g = En((D, P, M) => {
7681
7681
  D && (b.current.openEvent = P), y.emit("openchange", {
7682
7682
  open: D,
7683
7683
  event: P,
7684
7684
  reason: M,
7685
7685
  nested: h
7686
7686
  }), r == null || r(D, P, M);
7687
- }), g = B.useRef(null), b = B.useRef({}), y = B.useState(() => d_())[0], x = wl(), k = B.useCallback((D) => {
7687
+ }), m = B.useRef(null), b = B.useRef({}), y = B.useState(() => d_())[0], x = wl(), k = B.useCallback((D) => {
7688
7688
  const P = Re(D) ? {
7689
7689
  getBoundingClientRect: () => D.getBoundingClientRect(),
7690
7690
  contextElement: D
7691
7691
  } : D;
7692
7692
  u.refs.setReference(P);
7693
7693
  }, [u.refs]), w = B.useCallback((D) => {
7694
- (Re(D) || D === null) && (g.current = D, c(D)), (Re(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
7694
+ (Re(D) || D === null) && (m.current = D, c(D)), (Re(u.refs.reference.current) || u.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
7695
7695
  // `null` to support `positionReference` + an unstable `reference`
7696
7696
  // callback ref.
7697
7697
  D !== null && !Re(D)) && u.refs.setReference(D);
@@ -7699,7 +7699,7 @@ function a0(t) {
7699
7699
  ...u.refs,
7700
7700
  setReference: w,
7701
7701
  setPositionReference: k,
7702
- domReference: g
7702
+ domReference: m
7703
7703
  }), [u.refs, w, k]), _ = B.useMemo(() => ({
7704
7704
  ...u.elements,
7705
7705
  domReference: d
@@ -7712,8 +7712,8 @@ function a0(t) {
7712
7712
  floatingId: x,
7713
7713
  events: y,
7714
7714
  open: n,
7715
- onOpenChange: m
7716
- }), [u, a, x, y, n, m, v, _]);
7715
+ onOpenChange: g
7716
+ }), [u, a, x, y, n, g, v, _]);
7717
7717
  return Fe(() => {
7718
7718
  const D = f == null ? void 0 : f.nodesRef.current.find((P) => P.id === a);
7719
7719
  D && (D.context = T);
@@ -7745,20 +7745,20 @@ function E_(t, e) {
7745
7745
  function h() {
7746
7746
  !n && kt(i) && i === Mn(Et(i)) && (c.current = !0);
7747
7747
  }
7748
- function m() {
7748
+ function g() {
7749
7749
  u.current = !0;
7750
7750
  }
7751
- return f.addEventListener("blur", h), f.addEventListener("keydown", m, !0), () => {
7752
- f.removeEventListener("blur", h), f.removeEventListener("keydown", m, !0);
7751
+ return f.addEventListener("blur", h), f.addEventListener("keydown", g, !0), () => {
7752
+ f.removeEventListener("blur", h), f.removeEventListener("keydown", g, !0);
7753
7753
  };
7754
7754
  }, [i, n, s]), B.useEffect(() => {
7755
7755
  if (!s)
7756
7756
  return;
7757
7757
  function f(h) {
7758
7758
  let {
7759
- reason: m
7759
+ reason: g
7760
7760
  } = h;
7761
- (m === "reference-press" || m === "escape-key") && (c.current = !0);
7761
+ (g === "reference-press" || g === "escape-key") && (c.current = !0);
7762
7762
  }
7763
7763
  return a.on("openchange", f), () => {
7764
7764
  a.off("openchange", f);
@@ -7788,10 +7788,10 @@ function E_(t, e) {
7788
7788
  },
7789
7789
  onBlur(f) {
7790
7790
  c.current = !1;
7791
- const h = f.relatedTarget, m = Re(h) && h.hasAttribute(ia("focus-guard")) && h.getAttribute("data-type") === "outside";
7791
+ const h = f.relatedTarget, g = Re(h) && h.hasAttribute(ia("focus-guard")) && h.getAttribute("data-type") === "outside";
7792
7792
  d.current = window.setTimeout(() => {
7793
- const g = Mn(i ? i.ownerDocument : document);
7794
- !h && g === i || at(o.floating.current, g) || at(i, g) || m || r(!1, f.nativeEvent, "focus");
7793
+ const m = Mn(i ? i.ownerDocument : document);
7794
+ !h && m === i || at(o.floating.current, m) || at(i, m) || g || r(!1, f.nativeEvent, "focus");
7795
7795
  });
7796
7796
  }
7797
7797
  }
@@ -7824,9 +7824,9 @@ function gc(t, e, n) {
7824
7824
  if (r.has(c) || r.set(c, []), typeof d == "function") {
7825
7825
  var u;
7826
7826
  (u = r.get(c)) == null || u.push(d), i[c] = function() {
7827
- for (var f, h = arguments.length, m = new Array(h), g = 0; g < h; g++)
7828
- m[g] = arguments[g];
7829
- return (f = r.get(c)) == null ? void 0 : f.map((b) => b(...m)).find((b) => b !== void 0);
7827
+ for (var f, h = arguments.length, g = new Array(h), m = 0; m < h; m++)
7828
+ g[m] = arguments[m];
7829
+ return (f = r.get(c)) == null ? void 0 : f.map((b) => b(...g)).find((b) => b !== void 0);
7830
7830
  };
7831
7831
  }
7832
7832
  } else
@@ -7891,8 +7891,8 @@ function T_(t, e) {
7891
7891
  selectedIndex: u = null,
7892
7892
  allowEscape: f = !1,
7893
7893
  loop: h = !1,
7894
- nested: m = !1,
7895
- rtl: g = !1,
7894
+ nested: g = !1,
7895
+ rtl: m = !1,
7896
7896
  virtual: b = !1,
7897
7897
  focusItemOnOpen: y = "auto",
7898
7898
  focusItemOnHover: x = !0,
@@ -7944,12 +7944,12 @@ function T_(t, e) {
7944
7944
  if (ee.current && (E.current = -1, Z(s, E)), !ee.current && O.current && (F.current != null || O.current === !0 && F.current == null)) {
7945
7945
  let $ = 0;
7946
7946
  const re = () => {
7947
- s.current[0] == null ? ($ < 2 && ($ ? requestAnimationFrame : queueMicrotask)(re), $++) : (E.current = F.current == null || mc(F.current, v, g) || m ? lc(s, A.current) : Wf(s, A.current), F.current = null, S(E.current));
7947
+ s.current[0] == null ? ($ < 2 && ($ ? requestAnimationFrame : queueMicrotask)(re), $++) : (E.current = F.current == null || mc(F.current, v, m) || g ? lc(s, A.current) : Wf(s, A.current), F.current = null, S(E.current));
7948
7948
  };
7949
7949
  re();
7950
7950
  }
7951
7951
  } else Io(s, l) || (E.current = l, Z(s, E, Y.current), Y.current = !1);
7952
- }, [d, n, i, l, u, m, s, v, g, S, Z, A]), Fe(() => {
7952
+ }, [d, n, i, l, u, g, s, v, m, S, Z, A]), Fe(() => {
7953
7953
  var $;
7954
7954
  if (!d || i || !L || b || !ee.current)
7955
7955
  return;
@@ -8017,7 +8017,7 @@ function T_(t, e) {
8017
8017
  function re(ie) {
8018
8018
  if (V.current = !1, N.current = !0, !I.current && ie.currentTarget === a.floating.current)
8019
8019
  return;
8020
- if (m && eh(ie.key, v, g)) {
8020
+ if (g && eh(ie.key, v, m)) {
8021
8021
  yt(ie), r(!1, ie.nativeEvent, "list-navigation"), kt(o) && !b && o.focus();
8022
8022
  return;
8023
8023
  }
@@ -8057,10 +8057,10 @@ function T_(t, e) {
8057
8057
  }
8058
8058
  if (Jf(ie.key, v)) {
8059
8059
  if (yt(ie), n && !b && Mn(ie.currentTarget.ownerDocument) === ie.currentTarget) {
8060
- E.current = mc(ie.key, v, g) ? be : He, S(E.current);
8060
+ E.current = mc(ie.key, v, m) ? be : He, S(E.current);
8061
8061
  return;
8062
8062
  }
8063
- mc(ie.key, v, g) ? h ? E.current = Ve >= He ? f && Ve !== s.current.length ? -1 : be : St(s, {
8063
+ mc(ie.key, v, m) ? h ? E.current = Ve >= He ? f && Ve !== s.current.length ? -1 : be : St(s, {
8064
8064
  startingIndex: Ve,
8065
8065
  disabledIndices: $
8066
8066
  }) : E.current = Math.min(He, St(s, {
@@ -8091,7 +8091,7 @@ function T_(t, e) {
8091
8091
  ...me,
8092
8092
  onKeyDown(ie) {
8093
8093
  V.current = !1;
8094
- const Ve = ie.key.indexOf("Arrow") === 0, be = P_(ie.key, v, g), He = eh(ie.key, v, g), Ue = Jf(ie.key, v), Ge = (m ? be : Ue) || ie.key === "Enter" || ie.key.trim() === "";
8094
+ const Ve = ie.key.indexOf("Arrow") === 0, be = P_(ie.key, v, m), He = eh(ie.key, v, m), Ue = Jf(ie.key, v), Ge = (g ? be : Ue) || ie.key === "Enter" || ie.key.trim() === "";
8095
8095
  if (b && n) {
8096
8096
  const cr = L == null ? void 0 : L.nodesRef.current.find((Mi) => Mi.parentId == null), Ut = L && cr ? m_(L.nodesRef.current, cr.id) : null;
8097
8097
  if (Ve && Ut && D) {
@@ -8113,7 +8113,7 @@ function T_(t, e) {
8113
8113
  return re(ie);
8114
8114
  }
8115
8115
  if (!(!n && !k && Ve)) {
8116
- if (Ge && (F.current = m && Ue ? null : ie.key), m) {
8116
+ if (Ge && (F.current = g && Ue ? null : ie.key), g) {
8117
8117
  be && (yt(ie), n ? (E.current = lc(s, $), S(E.current)) : r(!0, ie.nativeEvent, "list-navigation"));
8118
8118
  return;
8119
8119
  }
@@ -8137,7 +8137,7 @@ function T_(t, e) {
8137
8137
  },
8138
8138
  item: te
8139
8139
  };
8140
- }, [o, a, C, Q, A, I, s, d, v, g, b, n, W, m, u, k, f, _, h, y, S, r, te, L, D, P, M]);
8140
+ }, [o, a, C, Q, A, I, s, d, v, m, b, n, W, g, u, k, f, _, h, y, S, r, te, L, D, P, M]);
8141
8141
  }
8142
8142
  const N_ = /* @__PURE__ */ new Map([["select", "listbox"], ["combobox", "listbox"], ["label", !1]]);
8143
8143
  function i0(t, e) {
@@ -8193,9 +8193,9 @@ function i0(t, e) {
8193
8193
  item(f) {
8194
8194
  let {
8195
8195
  active: h,
8196
- selected: m
8196
+ selected: g
8197
8197
  } = f;
8198
- const g = {
8198
+ const m = {
8199
8199
  role: "option",
8200
8200
  ...h && {
8201
8201
  id: a + "-option"
@@ -8204,12 +8204,12 @@ function i0(t, e) {
8204
8204
  switch (i) {
8205
8205
  case "select":
8206
8206
  return {
8207
- ...g,
8208
- "aria-selected": h && m
8207
+ ...m,
8208
+ "aria-selected": h && g
8209
8209
  };
8210
8210
  case "combobox":
8211
8211
  return {
8212
- ...g,
8212
+ ...m,
8213
8213
  ...h && {
8214
8214
  "aria-selected": !0
8215
8215
  }
@@ -8235,11 +8235,11 @@ function R_(t, e) {
8235
8235
  resetMs: u = 750,
8236
8236
  ignoreKeys: f = [],
8237
8237
  selectedIndex: h = null
8238
- } = e, m = B.useRef(), g = B.useRef(""), b = B.useRef((n = h ?? i) != null ? n : -1), y = B.useRef(null), x = En(s), k = En(l), w = Fn(d), v = Fn(f);
8238
+ } = e, g = B.useRef(), m = B.useRef(""), b = B.useRef((n = h ?? i) != null ? n : -1), y = B.useRef(null), x = En(s), k = En(l), w = Fn(d), v = Fn(f);
8239
8239
  return Fe(() => {
8240
- r && (clearTimeout(m.current), y.current = null, g.current = "");
8240
+ r && (clearTimeout(g.current), y.current = null, m.current = "");
8241
8241
  }, [r]), Fe(() => {
8242
- if (r && g.current === "") {
8242
+ if (r && m.current === "") {
8243
8243
  var _;
8244
8244
  b.current = (_ = h ?? i) != null ? _ : -1;
8245
8245
  }
@@ -8255,18 +8255,18 @@ function R_(t, e) {
8255
8255
  }
8256
8256
  function D(P) {
8257
8257
  const M = o.current;
8258
- if (g.current.length > 0 && g.current[0] !== " " && (T(M, M, g.current) === -1 ? _(!1) : P.key === " " && yt(P)), M == null || v.current.includes(P.key) || // Character key.
8258
+ if (m.current.length > 0 && m.current[0] !== " " && (T(M, M, m.current) === -1 ? _(!1) : P.key === " " && yt(P)), M == null || v.current.includes(P.key) || // Character key.
8259
8259
  P.key.length !== 1 || // Modifier key.
8260
8260
  P.ctrlKey || P.metaKey || P.altKey)
8261
8261
  return;
8262
8262
  r && P.key !== " " && (yt(P), _(!0)), M.every((O) => {
8263
8263
  var E, F;
8264
8264
  return O ? ((E = O[0]) == null ? void 0 : E.toLocaleLowerCase()) !== ((F = O[1]) == null ? void 0 : F.toLocaleLowerCase()) : !0;
8265
- }) && g.current === P.key && (g.current = "", b.current = y.current), g.current += P.key, clearTimeout(m.current), m.current = setTimeout(() => {
8266
- g.current = "", b.current = y.current, _(!1);
8265
+ }) && m.current === P.key && (m.current = "", b.current = y.current), m.current += P.key, clearTimeout(g.current), g.current = setTimeout(() => {
8266
+ m.current = "", b.current = y.current, _(!1);
8267
8267
  }, u);
8268
- const L = b.current, S = T(M, [...M.slice((L || 0) + 1), ...M.slice(0, (L || 0) + 1)], g.current);
8269
- S !== -1 ? (x(S), y.current = S) : P.key !== " " && (g.current = "", _(!1));
8268
+ const L = b.current, S = T(M, [...M.slice((L || 0) + 1), ...M.slice(0, (L || 0) + 1)], m.current);
8269
+ S !== -1 ? (x(S), y.current = S) : P.key !== " " && (m.current = "", _(!1));
8270
8270
  }
8271
8271
  return {
8272
8272
  reference: {
@@ -8303,18 +8303,18 @@ function A_(t) {
8303
8303
  } = t;
8304
8304
  let a, o = !1, i = null, s = null, l = performance.now();
8305
8305
  function c(u, f) {
8306
- const h = performance.now(), m = h - l;
8307
- if (i === null || s === null || m === 0)
8306
+ const h = performance.now(), g = h - l;
8307
+ if (i === null || s === null || g === 0)
8308
8308
  return i = u, s = f, l = h, null;
8309
- const g = u - i, b = f - s, x = Math.sqrt(g * g + b * b) / m;
8309
+ const m = u - i, b = f - s, x = Math.sqrt(m * m + b * b) / g;
8310
8310
  return i = u, s = f, l = h, x;
8311
8311
  }
8312
8312
  const d = (u) => {
8313
8313
  let {
8314
8314
  x: f,
8315
8315
  y: h,
8316
- placement: m,
8317
- elements: g,
8316
+ placement: g,
8317
+ elements: m,
8318
8318
  onClose: b,
8319
8319
  nodeId: y,
8320
8320
  tree: x
@@ -8323,19 +8323,19 @@ function A_(t) {
8323
8323
  function v() {
8324
8324
  clearTimeout(a), b();
8325
8325
  }
8326
- if (clearTimeout(a), !g.domReference || !g.floating || m == null || f == null || h == null)
8326
+ if (clearTimeout(a), !m.domReference || !m.floating || g == null || f == null || h == null)
8327
8327
  return;
8328
8328
  const {
8329
8329
  clientX: _,
8330
8330
  clientY: T
8331
- } = w, D = [_, T], P = gr(w), M = w.type === "mouseleave", H = at(g.floating, P), L = at(g.domReference, P), S = g.domReference.getBoundingClientRect(), O = g.floating.getBoundingClientRect(), E = m.split("-")[0], F = f > O.right - O.width / 2, V = h > O.bottom - O.height / 2, G = I_(D, S), ee = O.width > S.width, N = O.height > S.height, Y = (ee ? S : O).left, A = (ee ? S : O).right, I = (N ? S : O).top, R = (N ? S : O).bottom;
8331
+ } = w, D = [_, T], P = gr(w), M = w.type === "mouseleave", H = at(m.floating, P), L = at(m.domReference, P), S = m.domReference.getBoundingClientRect(), O = m.floating.getBoundingClientRect(), E = g.split("-")[0], F = f > O.right - O.width / 2, V = h > O.bottom - O.height / 2, G = I_(D, S), ee = O.width > S.width, N = O.height > S.height, Y = (ee ? S : O).left, A = (ee ? S : O).right, I = (N ? S : O).top, R = (N ? S : O).bottom;
8332
8332
  if (H && (o = !0, !M))
8333
8333
  return;
8334
8334
  if (L && (o = !1), L && !M) {
8335
8335
  o = !0;
8336
8336
  return;
8337
8337
  }
8338
- if (M && Re(w.relatedTarget) && at(g.floating, w.relatedTarget) || x && ea(x.nodesRef.current, y).some((Q) => {
8338
+ if (M && Re(w.relatedTarget) && at(m.floating, w.relatedTarget) || x && ea(x.nodesRef.current, y).some((Q) => {
8339
8339
  let {
8340
8340
  context: q
8341
8341
  } = Q;
@@ -8450,7 +8450,7 @@ const Ud = ({ className: t, theme: e = {}, ...n }) => {
8450
8450
  ] });
8451
8451
  }, Xd = Me(
8452
8452
  ({ children: t, className: e, icon: n, onClick: r, theme: a = {}, ...o }, i) => {
8453
- const { ref: s, index: l } = i_({ label: typeof t == "string" ? t : void 0 }), c = Up([i, s]), { theme: d, activeIndex: u, dismissOnClick: f, getItemProps: h, handleSelect: m } = qd(), g = u === l, b = ae(d.floating.item, a), y = o;
8453
+ const { ref: s, index: l } = i_({ label: typeof t == "string" ? t : void 0 }), c = Up([i, s]), { theme: d, activeIndex: u, dismissOnClick: f, getItemProps: h, handleSelect: g } = qd(), m = u === l, b = ae(d.floating.item, a), y = o;
8454
8454
  return /* @__PURE__ */ p("li", { role: "menuitem", className: b.container, children: /* @__PURE__ */ j(
8455
8455
  Pd,
8456
8456
  {
@@ -8459,10 +8459,10 @@ const Ud = ({ className: t, theme: e = {}, ...n }) => {
8459
8459
  ...y,
8460
8460
  ...h({
8461
8461
  onClick: () => {
8462
- r == null || r(), f && m(null);
8462
+ r == null || r(), f && g(null);
8463
8463
  }
8464
8464
  }),
8465
- tabIndex: g ? 0 : -1,
8465
+ tabIndex: m ? 0 : -1,
8466
8466
  children: [
8467
8467
  n && /* @__PURE__ */ p(n, { className: b.icon }),
8468
8468
  t
@@ -8504,7 +8504,7 @@ const W_ = {
8504
8504
  renderTrigger: a,
8505
8505
  ...o
8506
8506
  }) => {
8507
- const [i, s] = ge(!1), [l, c] = ge(null), [d, u] = ge(null), [f, h] = ge(void 0), m = Jt([]), g = Jt([]), b = ae(he().dropdown, r), y = o, x = o["data-testid"] || "flowbite-dropdown-target", {
8507
+ const [i, s] = ge(!1), [l, c] = ge(null), [d, u] = ge(null), [f, h] = ge(void 0), g = Jt([]), m = Jt([]), b = ae(he().dropdown, r), y = o, x = o["data-testid"] || "flowbite-dropdown-target", {
8508
8508
  placement: k = o.inline ? "bottom-start" : "bottom",
8509
8509
  trigger: w = "click",
8510
8510
  label: v,
@@ -8523,12 +8523,12 @@ const W_ = {
8523
8523
  setOpen: s,
8524
8524
  placement: k
8525
8525
  }), O = T_(H, {
8526
- listRef: m,
8526
+ listRef: g,
8527
8527
  activeIndex: l,
8528
8528
  selectedIndex: d,
8529
8529
  onNavigate: c
8530
8530
  }), E = R_(H, {
8531
- listRef: g,
8531
+ listRef: m,
8532
8532
  activeIndex: l,
8533
8533
  selectedIndex: d,
8534
8534
  onMatch: M
@@ -8577,7 +8577,7 @@ const W_ = {
8577
8577
  e
8578
8578
  )
8579
8579
  }),
8580
- children: /* @__PURE__ */ p(o_, { elementsRef: m, labelsRef: g, children: /* @__PURE__ */ p("ul", { className: b.content, tabIndex: -1, children: t }) })
8580
+ children: /* @__PURE__ */ p(o_, { elementsRef: g, labelsRef: m, children: /* @__PURE__ */ p("ul", { className: b.content, tabIndex: -1, children: t }) })
8581
8581
  }
8582
8582
  ) })
8583
8583
  ] });
@@ -8919,19 +8919,19 @@ const D0 = ({ children: t, className: e, theme: n = {}, ...r }) => {
8919
8919
  initialFocus: d,
8920
8920
  ...u
8921
8921
  }, f) => {
8922
- const [h, m] = ge(void 0), g = ae(he().modal, c), { context: b } = a0({
8922
+ const [h, g] = ge(void 0), m = ae(he().modal, c), { context: b } = a0({
8923
8923
  open: s,
8924
8924
  onOpenChange: () => r && r()
8925
8925
  }), y = Up([b.refs.setFloating, f]), x = n0(b), k = r0(b, { outsidePressEvent: "mousedown", enabled: n }), w = i0(b), { getFloatingProps: v } = o0([x, k, w]);
8926
- return s ? /* @__PURE__ */ p(O0.Provider, { value: { theme: g, popup: a, onClose: r, setHeaderId: m }, children: /* @__PURE__ */ p(__, { root: i, children: /* @__PURE__ */ p(
8926
+ return s ? /* @__PURE__ */ p(O0.Provider, { value: { theme: m, popup: a, onClose: r, setHeaderId: g }, children: /* @__PURE__ */ p(__, { root: i, children: /* @__PURE__ */ p(
8927
8927
  D_,
8928
8928
  {
8929
8929
  lockScroll: !0,
8930
8930
  "data-testid": "modal-overlay",
8931
8931
  className: X(
8932
- g.root.base,
8933
- g.root.positions[o],
8934
- s ? g.root.show.on : g.root.show.off,
8932
+ m.root.base,
8933
+ m.root.positions[o],
8934
+ s ? m.root.show.on : m.root.show.off,
8935
8935
  e
8936
8936
  ),
8937
8937
  ...u,
@@ -8941,8 +8941,8 @@ const D0 = ({ children: t, className: e, theme: n = {}, ...r }) => {
8941
8941
  ref: y,
8942
8942
  ...v(u),
8943
8943
  "aria-labelledby": h,
8944
- className: X(g.content.base, g.root.sizes[l]),
8945
- children: /* @__PURE__ */ p("div", { className: g.content.inner, children: t })
8944
+ className: X(m.content.base, m.root.sizes[l]),
8945
+ children: /* @__PURE__ */ p("div", { className: m.content.inner, children: t })
8946
8946
  }
8947
8947
  ) })
8948
8948
  }
@@ -9146,9 +9146,9 @@ const L0 = ({
9146
9146
  totalPages: c,
9147
9147
  ...d
9148
9148
  }) => {
9149
- const u = ae(he().pagination, l), f = Math.min(Math.max(n === "pagination" ? e + 2 : e + 4, 5), c), h = Math.max(1, f - 4), m = () => {
9149
+ const u = ae(he().pagination, l), f = Math.min(Math.max(n === "pagination" ? e + 2 : e + 4, 5), c), h = Math.max(1, f - 4), g = () => {
9150
9150
  a(Math.min(e + 1, c));
9151
- }, g = () => {
9151
+ }, m = () => {
9152
9152
  a(Math.max(e - 1, 1));
9153
9153
  };
9154
9154
  return /* @__PURE__ */ j("nav", { className: X(u.base, t), ...d, children: [
@@ -9166,7 +9166,7 @@ const L0 = ({
9166
9166
  Qc,
9167
9167
  {
9168
9168
  className: X(u.pages.previous.base, s && u.pages.showIcon),
9169
- onClick: g,
9169
+ onClick: m,
9170
9170
  disabled: e === 1,
9171
9171
  children: [
9172
9172
  s && /* @__PURE__ */ p(Vx, { "aria-hidden": !0, className: u.pages.previous.icon }),
@@ -9184,7 +9184,7 @@ const L0 = ({
9184
9184
  Qc,
9185
9185
  {
9186
9186
  className: X(u.pages.next.base, s && u.pages.showIcon),
9187
- onClick: m,
9187
+ onClick: g,
9188
9188
  disabled: e === c,
9189
9189
  children: [
9190
9190
  r,
@@ -9328,21 +9328,21 @@ const Q_ = ({
9328
9328
  minWidth: c,
9329
9329
  ...d
9330
9330
  }) => {
9331
- const u = Jt(null), [f, h] = ge(!1), m = s0({
9331
+ const u = Jt(null), [f, h] = ge(!1), g = s0({
9332
9332
  open: f,
9333
9333
  placement: o,
9334
9334
  arrowRef: u,
9335
9335
  setOpen: h
9336
9336
  }), {
9337
- context: g,
9337
+ context: m,
9338
9338
  middlewareData: { arrow: { x: b, y } = {} },
9339
9339
  refs: x,
9340
9340
  strategy: k,
9341
9341
  update: w,
9342
9342
  x: v,
9343
9343
  y: _
9344
- } = m, T = E_(g), { getFloatingProps: D, getReferenceProps: P } = l0({
9345
- context: g,
9344
+ } = g, T = E_(m), { getFloatingProps: D, getReferenceProps: P } = l0({
9345
+ context: m,
9346
9346
  role: "tooltip",
9347
9347
  trigger: l,
9348
9348
  interactions: [T]
@@ -9400,7 +9400,7 @@ const Q_ = ({
9400
9400
  left: b ?? " ",
9401
9401
  right: " ",
9402
9402
  bottom: " ",
9403
- [$_({ placement: m.placement })]: s.arrow.placement
9403
+ [$_({ placement: g.placement })]: s.arrow.placement
9404
9404
  },
9405
9405
  children: " "
9406
9406
  }
@@ -9464,7 +9464,7 @@ const H0 = ({
9464
9464
  theme: s = {},
9465
9465
  ...l
9466
9466
  }) => {
9467
- const c = ua(), [d, u] = ge(i), { theme: f, isCollapsed: h } = no(), m = ae(f.collapse, s);
9467
+ const c = ua(), [d, u] = ge(i), { theme: f, isCollapsed: h } = no(), g = ae(f.collapse, s);
9468
9468
  return ot(() => u(i), [i]), /* @__PURE__ */ j(({ children: b }) => /* @__PURE__ */ p("li", { children: h && !d ? /* @__PURE__ */ p(_l, { content: r, placement: "right", children: b }) : b }), { children: [
9469
9469
  /* @__PURE__ */ j(
9470
9470
  "button",
@@ -9473,7 +9473,7 @@ const H0 = ({
9473
9473
  onClick: () => u(!d),
9474
9474
  title: r,
9475
9475
  type: "button",
9476
- className: X(m.button, e),
9476
+ className: X(g.button, e),
9477
9477
  ...l,
9478
9478
  children: [
9479
9479
  n && /* @__PURE__ */ p(
@@ -9481,23 +9481,23 @@ const H0 = ({
9481
9481
  {
9482
9482
  "aria-hidden": !0,
9483
9483
  "data-testid": "flowbite-sidebar-collapse-icon",
9484
- className: X(m.icon.base, m.icon.open[d ? "on" : "off"])
9484
+ className: X(g.icon.base, g.icon.open[d ? "on" : "off"])
9485
9485
  }
9486
9486
  ),
9487
9487
  h ? /* @__PURE__ */ p("span", { className: "sr-only", children: r }) : /* @__PURE__ */ j(Tt, { children: [
9488
- /* @__PURE__ */ p("span", { "data-testid": "flowbite-sidebar-collapse-label", className: m.label.base, children: r }),
9489
- o ? o(m, d) : /* @__PURE__ */ p(
9488
+ /* @__PURE__ */ p("span", { "data-testid": "flowbite-sidebar-collapse-label", className: g.label.base, children: r }),
9489
+ o ? o(g, d) : /* @__PURE__ */ p(
9490
9490
  a,
9491
9491
  {
9492
9492
  "aria-hidden": !0,
9493
- className: X(m.label.icon.base, m.label.icon.open[d ? "on" : "off"])
9493
+ className: X(g.label.icon.base, g.label.icon.open[d ? "on" : "off"])
9494
9494
  }
9495
9495
  )
9496
9496
  ] })
9497
9497
  ]
9498
9498
  }
9499
9499
  ),
9500
- /* @__PURE__ */ p("ul", { "aria-labelledby": `flowbite-sidebar-collapse-${c}`, hidden: !d, className: m.list, children: /* @__PURE__ */ p(Jd.Provider, { value: { isInsideCollapse: !0 }, children: t }) })
9500
+ /* @__PURE__ */ p("ul", { "aria-labelledby": `flowbite-sidebar-collapse-${c}`, hidden: !d, className: g.list, children: /* @__PURE__ */ p(Jd.Provider, { value: { isInsideCollapse: !0 }, children: t }) })
9501
9501
  ] });
9502
9502
  };
9503
9503
  H0.displayName = "Sidebar.Collapse";
@@ -9548,17 +9548,17 @@ const J_ = ({ id: t, theme: e, isCollapsed: n, tooltipChildren: r, children: a,
9548
9548
  theme: s = {},
9549
9549
  ...l
9550
9550
  }, c) => {
9551
- var g, b, y, x;
9552
- const d = ua(), { theme: u, isCollapsed: f } = no(), { isInsideCollapse: h } = Z_(), m = ae(u.item, s);
9553
- return /* @__PURE__ */ p(J_, { theme: m, className: m.listItem, id: d, isCollapsed: f, tooltipChildren: n, children: /* @__PURE__ */ j(
9551
+ var m, b, y, x;
9552
+ const d = ua(), { theme: u, isCollapsed: f } = no(), { isInsideCollapse: h } = Z_(), g = ae(u.item, s);
9553
+ return /* @__PURE__ */ p(J_, { theme: g, className: g.listItem, id: d, isCollapsed: f, tooltipChildren: n, children: /* @__PURE__ */ j(
9554
9554
  e,
9555
9555
  {
9556
9556
  "aria-labelledby": `flowbite-sidebar-item-${d}`,
9557
9557
  ref: c,
9558
9558
  className: X(
9559
- m.base,
9560
- t && m.active,
9561
- !f && h && ((g = m.collapsed) == null ? void 0 : g.insideCollapse),
9559
+ g.base,
9560
+ t && g.active,
9561
+ !f && h && ((m = g.collapsed) == null ? void 0 : m.insideCollapse),
9562
9562
  r
9563
9563
  ),
9564
9564
  ...l,
@@ -9568,12 +9568,12 @@ const J_ = ({ id: t, theme: e, isCollapsed: n, tooltipChildren: r, children: a,
9568
9568
  {
9569
9569
  "aria-hidden": !0,
9570
9570
  "data-testid": "flowbite-sidebar-item-icon",
9571
- className: X((b = m.icon) == null ? void 0 : b.base, t && ((y = m.icon) == null ? void 0 : y.active))
9571
+ className: X((b = g.icon) == null ? void 0 : b.base, t && ((y = g.icon) == null ? void 0 : y.active))
9572
9572
  }
9573
9573
  ),
9574
- f && !a && /* @__PURE__ */ p("span", { className: (x = m.collapsed) == null ? void 0 : x.noIcon, children: n.charAt(0).toLocaleUpperCase() ?? "?" }),
9575
- !f && /* @__PURE__ */ p(V0, { id: d, theme: m, children: n }),
9576
- !f && o && /* @__PURE__ */ p(cp, { color: i, "data-testid": "flowbite-sidebar-label", hidden: f, className: m.label, children: o })
9574
+ f && !a && /* @__PURE__ */ p("span", { className: (x = g.collapsed) == null ? void 0 : x.noIcon, children: n.charAt(0).toLocaleUpperCase() ?? "?" }),
9575
+ !f && /* @__PURE__ */ p(V0, { id: d, theme: g, children: n }),
9576
+ !f && o && /* @__PURE__ */ p(cp, { color: i, "data-testid": "flowbite-sidebar-label", hidden: f, className: g.label, children: o })
9577
9577
  ]
9578
9578
  }
9579
9579
  ) });
@@ -9746,18 +9746,18 @@ const sb = Me(
9746
9746
  0,
9747
9747
  c.findIndex((w) => w.active)
9748
9748
  )
9749
- ), [h, m] = ge(-1), g = (w) => {
9749
+ ), [h, g] = ge(-1), m = (w) => {
9750
9750
  f(w), n && n(w);
9751
9751
  }, b = ({ target: w }) => {
9752
- g(w), m(w);
9752
+ m(w), g(w);
9753
9753
  }, y = ({ event: w, target: v }) => {
9754
- w.key === "ArrowLeft" && m(Math.max(0, h - 1)), w.key === "ArrowRight" && m(Math.min(c.length - 1, h + 1)), w.key === "Enter" && (g(v), m(v));
9754
+ w.key === "ArrowLeft" && g(Math.max(0, h - 1)), w.key === "ArrowRight" && g(Math.min(c.length - 1, h + 1)), w.key === "Enter" && (m(v), g(v));
9755
9755
  }, x = s.tablist.tabitem.styles[r], k = s.tabitemcontainer.styles[r];
9756
9756
  return ot(() => {
9757
9757
  var w;
9758
9758
  (w = d.current[h]) == null || w.focus();
9759
9759
  }, [h]), Hm(i, () => ({
9760
- setActiveTab: g
9760
+ setActiveTab: m
9761
9761
  })), /* @__PURE__ */ j("div", { className: X(s.base, e), children: [
9762
9762
  /* @__PURE__ */ p(
9763
9763
  "div",
@@ -9970,8 +9970,8 @@ const vb = ({
9970
9970
  "button",
9971
9971
  {
9972
9972
  "aria-label": "Close",
9973
- onClick: (m) => {
9974
- if (e && e(m), a) {
9973
+ onClick: (g) => {
9974
+ if (e && e(g), a) {
9975
9975
  a();
9976
9976
  return;
9977
9977
  }
@@ -10023,9 +10023,9 @@ const oS = Me(
10023
10023
  theme: l = {},
10024
10024
  ...c
10025
10025
  }, d) => {
10026
- const u = ua(), f = ae(he().toggleSwitch, l), h = () => s(!t), m = () => {
10026
+ const u = ua(), f = ae(he().toggleSwitch, l), h = () => s(!t), g = () => {
10027
10027
  h();
10028
- }, g = (b) => {
10028
+ }, m = (b) => {
10029
10029
  b.code == "Enter" && b.preventDefault();
10030
10030
  };
10031
10031
  return /* @__PURE__ */ j(Tt, { children: [
@@ -10037,8 +10037,8 @@ const oS = Me(
10037
10037
  "aria-labelledby": `${u}-flowbite-toggleswitch-label`,
10038
10038
  disabled: a,
10039
10039
  id: `${u}-flowbite-toggleswitch`,
10040
- onClick: m,
10041
- onKeyDown: g,
10040
+ onClick: g,
10041
+ onKeyDown: m,
10042
10042
  role: "switch",
10043
10043
  tabIndex: 0,
10044
10044
  type: "button",
@@ -11297,45 +11297,45 @@ function wh(t, e, n, r) {
11297
11297
  }
11298
11298
  function Ib(t, e, n, r, a) {
11299
11299
  let o, i, s, l, c, d, u, f;
11300
- const h = e.pointStyle, m = e.rotation, g = e.radius;
11301
- let b = (m || 0) * jS;
11300
+ const h = e.pointStyle, g = e.rotation, m = e.radius;
11301
+ let b = (g || 0) * jS;
11302
11302
  if (h && typeof h == "object" && (o = h.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
11303
11303
  t.save(), t.translate(n, r), t.rotate(b), t.drawImage(h, -h.width / 2, -h.height / 2, h.width, h.height), t.restore();
11304
11304
  return;
11305
11305
  }
11306
- if (!(isNaN(g) || g <= 0)) {
11306
+ if (!(isNaN(m) || m <= 0)) {
11307
11307
  switch (t.beginPath(), h) {
11308
11308
  default:
11309
- a ? t.ellipse(n, r, a / 2, g, 0, 0, st) : t.arc(n, r, g, 0, st), t.closePath();
11309
+ a ? t.ellipse(n, r, a / 2, m, 0, 0, st) : t.arc(n, r, m, 0, st), t.closePath();
11310
11310
  break;
11311
11311
  case "triangle":
11312
- d = a ? a / 2 : g, t.moveTo(n + Math.sin(b) * d, r - Math.cos(b) * g), b += dh, t.lineTo(n + Math.sin(b) * d, r - Math.cos(b) * g), b += dh, t.lineTo(n + Math.sin(b) * d, r - Math.cos(b) * g), t.closePath();
11312
+ d = a ? a / 2 : m, t.moveTo(n + Math.sin(b) * d, r - Math.cos(b) * m), b += dh, t.lineTo(n + Math.sin(b) * d, r - Math.cos(b) * m), b += dh, t.lineTo(n + Math.sin(b) * d, r - Math.cos(b) * m), t.closePath();
11313
11313
  break;
11314
11314
  case "rectRounded":
11315
- c = g * 0.516, l = g - c, i = Math.cos(b + Nr) * l, u = Math.cos(b + Nr) * (a ? a / 2 - c : l), s = Math.sin(b + Nr) * l, f = Math.sin(b + Nr) * (a ? a / 2 - c : l), t.arc(n - u, r - s, c, b - ze, b - ht), t.arc(n + f, r - i, c, b - ht, b), t.arc(n + u, r + s, c, b, b + ht), t.arc(n - f, r + i, c, b + ht, b + ze), t.closePath();
11315
+ c = m * 0.516, l = m - c, i = Math.cos(b + Nr) * l, u = Math.cos(b + Nr) * (a ? a / 2 - c : l), s = Math.sin(b + Nr) * l, f = Math.sin(b + Nr) * (a ? a / 2 - c : l), t.arc(n - u, r - s, c, b - ze, b - ht), t.arc(n + f, r - i, c, b - ht, b), t.arc(n + u, r + s, c, b, b + ht), t.arc(n - f, r + i, c, b + ht, b + ze), t.closePath();
11316
11316
  break;
11317
11317
  case "rect":
11318
- if (!m) {
11319
- l = Math.SQRT1_2 * g, d = a ? a / 2 : l, t.rect(n - d, r - l, 2 * d, 2 * l);
11318
+ if (!g) {
11319
+ l = Math.SQRT1_2 * m, d = a ? a / 2 : l, t.rect(n - d, r - l, 2 * d, 2 * l);
11320
11320
  break;
11321
11321
  }
11322
11322
  b += Nr;
11323
11323
  case "rectRot":
11324
- u = Math.cos(b) * (a ? a / 2 : g), i = Math.cos(b) * g, s = Math.sin(b) * g, f = Math.sin(b) * (a ? a / 2 : g), t.moveTo(n - u, r - s), t.lineTo(n + f, r - i), t.lineTo(n + u, r + s), t.lineTo(n - f, r + i), t.closePath();
11324
+ u = Math.cos(b) * (a ? a / 2 : m), i = Math.cos(b) * m, s = Math.sin(b) * m, f = Math.sin(b) * (a ? a / 2 : m), t.moveTo(n - u, r - s), t.lineTo(n + f, r - i), t.lineTo(n + u, r + s), t.lineTo(n - f, r + i), t.closePath();
11325
11325
  break;
11326
11326
  case "crossRot":
11327
11327
  b += Nr;
11328
11328
  case "cross":
11329
- u = Math.cos(b) * (a ? a / 2 : g), i = Math.cos(b) * g, s = Math.sin(b) * g, f = Math.sin(b) * (a ? a / 2 : g), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i);
11329
+ u = Math.cos(b) * (a ? a / 2 : m), i = Math.cos(b) * m, s = Math.sin(b) * m, f = Math.sin(b) * (a ? a / 2 : m), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i);
11330
11330
  break;
11331
11331
  case "star":
11332
- u = Math.cos(b) * (a ? a / 2 : g), i = Math.cos(b) * g, s = Math.sin(b) * g, f = Math.sin(b) * (a ? a / 2 : g), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i), b += Nr, u = Math.cos(b) * (a ? a / 2 : g), i = Math.cos(b) * g, s = Math.sin(b) * g, f = Math.sin(b) * (a ? a / 2 : g), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i);
11332
+ u = Math.cos(b) * (a ? a / 2 : m), i = Math.cos(b) * m, s = Math.sin(b) * m, f = Math.sin(b) * (a ? a / 2 : m), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i), b += Nr, u = Math.cos(b) * (a ? a / 2 : m), i = Math.cos(b) * m, s = Math.sin(b) * m, f = Math.sin(b) * (a ? a / 2 : m), t.moveTo(n - u, r - s), t.lineTo(n + u, r + s), t.moveTo(n + f, r - i), t.lineTo(n - f, r + i);
11333
11333
  break;
11334
11334
  case "line":
11335
- i = a ? a / 2 : Math.cos(b) * g, s = Math.sin(b) * g, t.moveTo(n - i, r - s), t.lineTo(n + i, r + s);
11335
+ i = a ? a / 2 : Math.cos(b) * m, s = Math.sin(b) * m, t.moveTo(n - i, r - s), t.lineTo(n + i, r + s);
11336
11336
  break;
11337
11337
  case "dash":
11338
- t.moveTo(n, r), t.lineTo(n + Math.cos(b) * (a ? a / 2 : g), r + Math.sin(b) * g);
11338
+ t.moveTo(n, r), t.lineTo(n + Math.cos(b) * (a ? a / 2 : m), r + Math.sin(b) * m);
11339
11339
  break;
11340
11340
  case !1:
11341
11341
  t.closePath();
@@ -11738,10 +11738,10 @@ function Yr(t, e) {
11738
11738
  if ("native" in t)
11739
11739
  return t;
11740
11740
  const { canvas: n, currentDevicePixelRatio: r } = e, a = Ol(n), o = a.boxSizing === "border-box", i = ta(a, "padding"), s = ta(a, "border", "width"), { x: l, y: c, box: d } = TO(t, n), u = i.left + (d && s.left), f = i.top + (d && s.top);
11741
- let { width: h, height: m } = e;
11742
- return o && (h -= i.width + s.width, m -= i.height + s.height), {
11741
+ let { width: h, height: g } = e;
11742
+ return o && (h -= i.width + s.width, g -= i.height + s.height), {
11743
11743
  x: Math.round((l - u) / h * n.width / r),
11744
- y: Math.round((c - f) / m * n.height / r)
11744
+ y: Math.round((c - f) / g * n.height / r)
11745
11745
  };
11746
11746
  }
11747
11747
  function NO(t, e, n) {
@@ -12214,8 +12214,8 @@ function Mh(t, e) {
12214
12214
  const { chart: n, _cachedMeta: r } = t, a = n._stacks || (n._stacks = {}), { iScale: o, vScale: i, index: s } = r, l = o.axis, c = i.axis, d = UO(o, i, r), u = e.length;
12215
12215
  let f;
12216
12216
  for (let h = 0; h < u; ++h) {
12217
- const m = e[h], { [l]: g, [c]: b } = m, y = m._stacks || (m._stacks = {});
12218
- f = y[c] = KO(a, d, g), f[s] = b, f._top = Ch(f, i, !0, r.type), f._bottom = Ch(f, i, !1, r.type);
12217
+ const g = e[h], { [l]: m, [c]: b } = g, y = g._stacks || (g._stacks = {});
12218
+ f = y[c] = KO(a, d, m), f[s] = b, f._top = Ch(f, i, !0, r.type), f._bottom = Ch(f, i, !1, r.type);
12219
12219
  const x = f._visualValues || (f._visualValues = {});
12220
12220
  x[s] = b;
12221
12221
  }
@@ -12274,7 +12274,7 @@ class Bo {
12274
12274
  this.index !== e && go(this._cachedMeta), this.index = e;
12275
12275
  }
12276
12276
  linkScales() {
12277
- const e = this.chart, n = this._cachedMeta, r = this.getDataset(), a = (u, f, h, m) => u === "x" ? f : u === "r" ? m : h, o = n.xAxisID = Pe(r.xAxisID, vc(e, "x")), i = n.yAxisID = Pe(r.yAxisID, vc(e, "y")), s = n.rAxisID = Pe(r.rAxisID, vc(e, "r")), l = n.indexAxis, c = n.iAxisID = a(l, o, i, s), d = n.vAxisID = a(l, i, o, s);
12277
+ const e = this.chart, n = this._cachedMeta, r = this.getDataset(), a = (u, f, h, g) => u === "x" ? f : u === "r" ? g : h, o = n.xAxisID = Pe(r.xAxisID, vc(e, "x")), i = n.yAxisID = Pe(r.yAxisID, vc(e, "y")), s = n.rAxisID = Pe(r.rAxisID, vc(e, "r")), l = n.indexAxis, c = n.iAxisID = a(l, o, i, s), d = n.vAxisID = a(l, i, o, s);
12278
12278
  n.xScale = this.getScaleForId(o), n.yScale = this.getScaleForId(i), n.rScale = this.getScaleForId(s), n.iScale = this.getScaleForId(c), n.vScale = this.getScaleForId(d);
12279
12279
  }
12280
12280
  getDataset() {
@@ -12342,11 +12342,11 @@ class Bo {
12342
12342
  }
12343
12343
  parsePrimitiveData(e, n, r, a) {
12344
12344
  const { iScale: o, vScale: i } = e, s = o.axis, l = i.axis, c = o.getLabels(), d = o === i, u = new Array(a);
12345
- let f, h, m;
12345
+ let f, h, g;
12346
12346
  for (f = 0, h = a; f < h; ++f)
12347
- m = f + r, u[f] = {
12348
- [s]: d || o.parse(c[m], m),
12349
- [l]: i.parse(n[m], m)
12347
+ g = f + r, u[f] = {
12348
+ [s]: d || o.parse(c[g], g),
12349
+ [l]: i.parse(n[g], g)
12350
12350
  };
12351
12351
  return u;
12352
12352
  }
@@ -12397,16 +12397,16 @@ class Bo {
12397
12397
  max: Number.NEGATIVE_INFINITY
12398
12398
  }, { min: d, max: u } = XO(s);
12399
12399
  let f, h;
12400
- function m() {
12400
+ function g() {
12401
12401
  h = a[f];
12402
- const g = h[s.axis];
12403
- return !nr(h[e.axis]) || d > g || u < g;
12402
+ const m = h[s.axis];
12403
+ return !nr(h[e.axis]) || d > m || u < m;
12404
12404
  }
12405
- for (f = 0; f < i && !(!m() && (this.updateRangeFromParsed(c, e, h, l), o)); ++f)
12405
+ for (f = 0; f < i && !(!g() && (this.updateRangeFromParsed(c, e, h, l), o)); ++f)
12406
12406
  ;
12407
12407
  if (o) {
12408
12408
  for (f = i - 1; f >= 0; --f)
12409
- if (!m()) {
12409
+ if (!g()) {
12410
12410
  this.updateRangeFromParsed(c, e, h, l);
12411
12411
  break;
12412
12412
  }
@@ -12478,8 +12478,8 @@ class Bo {
12478
12478
  ] : [
12479
12479
  e,
12480
12480
  ""
12481
- ], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(Je.elements[e]), m = () => this.getContext(r, a, n), g = c.resolveNamedOptions(f, h, m, u);
12482
- return g.$shared && (g.$shared = l, o[i] = Object.freeze(Eh(g, l))), g;
12481
+ ], f = c.getOptionScopes(this.getDataset(), d), h = Object.keys(Je.elements[e]), g = () => this.getContext(r, a, n), m = c.resolveNamedOptions(f, h, g, u);
12482
+ return m.$shared && (m.$shared = l, o[i] = Object.freeze(Eh(m, l))), m;
12483
12483
  }
12484
12484
  _resolveAnimations(e, n, r) {
12485
12485
  const a = this.chart, o = this._cachedDataOpts, i = `animation-${n}`, s = o[i];
@@ -12622,8 +12622,8 @@ J(Bo, "defaults", {}), J(Bo, "datasetElementType", null), J(Bo, "dataElementType
12622
12622
  function JO(t, e, n) {
12623
12623
  let r = 1, a = 1, o = 0, i = 0;
12624
12624
  if (e < st) {
12625
- const s = t, l = s + e, c = Math.cos(s), d = Math.sin(s), u = Math.cos(l), f = Math.sin(l), h = (k, w, v) => Ns(k, s, l, !0) ? 1 : Math.max(w, w * n, v, v * n), m = (k, w, v) => Ns(k, s, l, !0) ? -1 : Math.min(w, w * n, v, v * n), g = h(0, c, u), b = h(ht, d, f), y = m(ze, c, u), x = m(ze + ht, d, f);
12626
- r = (g - y) / 2, a = (b - x) / 2, o = -(g + y) / 2, i = -(b + x) / 2;
12625
+ const s = t, l = s + e, c = Math.cos(s), d = Math.sin(s), u = Math.cos(l), f = Math.sin(l), h = (k, w, v) => Ns(k, s, l, !0) ? 1 : Math.max(w, w * n, v, v * n), g = (k, w, v) => Ns(k, s, l, !0) ? -1 : Math.min(w, w * n, v, v * n), m = h(0, c, u), b = h(ht, d, f), y = g(ze, c, u), x = g(ze + ht, d, f);
12626
+ r = (m - y) / 2, a = (b - x) / 2, o = -(m + y) / 2, i = -(b + x) / 2;
12627
12627
  }
12628
12628
  return {
12629
12629
  ratioX: r,
@@ -12672,15 +12672,15 @@ class Mo extends Bo {
12672
12672
  };
12673
12673
  }
12674
12674
  update(e) {
12675
- const n = this.chart, { chartArea: r } = n, a = this._cachedMeta, o = a.data, i = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, s = Math.max((Math.min(r.width, r.height) - i) / 2, 0), l = Math.min(AS(this.options.cutout, s), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: m, offsetY: g } = JO(u, d, l), b = (r.width - i) / f, y = (r.height - i) / h, x = Math.max(Math.min(b, y) / 2, 0), k = Db(this.options.radius, x), w = Math.max(k * l, 0), v = (k - w) / this._getVisibleDatasetWeightTotal();
12676
- this.offsetX = m * k, this.offsetY = g * k, a.total = this.calculateTotal(), this.outerRadius = k - v * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - v * c, 0), this.updateElements(o, 0, o.length, e);
12675
+ const n = this.chart, { chartArea: r } = n, a = this._cachedMeta, o = a.data, i = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, s = Math.max((Math.min(r.width, r.height) - i) / 2, 0), l = Math.min(AS(this.options.cutout, s), 1), c = this._getRingWeight(this.index), { circumference: d, rotation: u } = this._getRotationExtents(), { ratioX: f, ratioY: h, offsetX: g, offsetY: m } = JO(u, d, l), b = (r.width - i) / f, y = (r.height - i) / h, x = Math.max(Math.min(b, y) / 2, 0), k = Db(this.options.radius, x), w = Math.max(k * l, 0), v = (k - w) / this._getVisibleDatasetWeightTotal();
12676
+ this.offsetX = g * k, this.offsetY = m * k, a.total = this.calculateTotal(), this.outerRadius = k - v * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - v * c, 0), this.updateElements(o, 0, o.length, e);
12677
12677
  }
12678
12678
  _circumference(e, n) {
12679
12679
  const r = this.options, a = this._cachedMeta, o = this._getCircumference();
12680
12680
  return n && r.animation.animateRotate || !this.chart.getDataVisibility(e) || a._parsed[e] === null || a.data[e].hidden ? 0 : this.calculateCircumference(a._parsed[e] * o / st);
12681
12681
  }
12682
12682
  updateElements(e, n, r, a) {
12683
- const o = a === "reset", i = this.chart, s = i.chartArea, c = i.options.animation, d = (s.left + s.right) / 2, u = (s.top + s.bottom) / 2, f = o && c.animateScale, h = f ? 0 : this.innerRadius, m = f ? 0 : this.outerRadius, { sharedOptions: g, includeOptions: b } = this._getSharedOptions(n, a);
12683
+ const o = a === "reset", i = this.chart, s = i.chartArea, c = i.options.animation, d = (s.left + s.right) / 2, u = (s.top + s.bottom) / 2, f = o && c.animateScale, h = f ? 0 : this.innerRadius, g = f ? 0 : this.outerRadius, { sharedOptions: m, includeOptions: b } = this._getSharedOptions(n, a);
12684
12684
  let y = this._getRotation(), x;
12685
12685
  for (x = 0; x < n; ++x)
12686
12686
  y += this._circumference(x, o);
@@ -12691,10 +12691,10 @@ class Mo extends Bo {
12691
12691
  startAngle: y,
12692
12692
  endAngle: y + k,
12693
12693
  circumference: k,
12694
- outerRadius: m,
12694
+ outerRadius: g,
12695
12695
  innerRadius: h
12696
12696
  };
12697
- b && (v.options = g || this.resolveDataElementOptions(x, w.active ? "active" : a)), y += k, this.updateElement(w, x, v, a);
12697
+ b && (v.options = m || this.resolveDataElementOptions(x, w.active ? "active" : a)), y += k, this.updateElement(w, x, v, a);
12698
12698
  }
12699
12699
  }
12700
12700
  calculateTotal() {
@@ -12888,10 +12888,10 @@ function tD(t, e, n, r) {
12888
12888
  } else {
12889
12889
  const d = c(o, e, n);
12890
12890
  if (l) {
12891
- const { vScale: u } = a._cachedMeta, { _parsed: f } = t, h = f.slice(0, d.lo + 1).reverse().findIndex((g) => !Ot(g[u.axis]));
12891
+ const { vScale: u } = a._cachedMeta, { _parsed: f } = t, h = f.slice(0, d.lo + 1).reverse().findIndex((m) => !Ot(m[u.axis]));
12892
12892
  d.lo -= Math.max(0, h);
12893
- const m = f.slice(d.hi).findIndex((g) => !Ot(g[u.axis]));
12894
- d.hi += Math.max(0, m);
12893
+ const g = f.slice(d.hi).findIndex((m) => !Ot(m[u.axis]));
12894
+ d.hi += Math.max(0, g);
12895
12895
  }
12896
12896
  return d;
12897
12897
  }
@@ -12906,8 +12906,8 @@ function Dl(t, e, n, r, a) {
12906
12906
  for (let s = 0, l = o.length; s < l; ++s) {
12907
12907
  const { index: c, data: d } = o[s], { lo: u, hi: f } = tD(o[s], e, i, a);
12908
12908
  for (let h = u; h <= f; ++h) {
12909
- const m = d[h];
12910
- m.skip || r(m, c, h);
12909
+ const g = d[h];
12910
+ g.skip || r(g, c, h);
12911
12911
  }
12912
12912
  }
12913
12913
  }
@@ -12954,10 +12954,10 @@ function aD(t, e, n, r, a, o) {
12954
12954
  const h = d.inRange(e.x, e.y, a);
12955
12955
  if (r && !h)
12956
12956
  return;
12957
- const m = d.getCenterPoint(a);
12958
- if (!(!!o || t.isPointInArea(m)) && !h)
12957
+ const g = d.getCenterPoint(a);
12958
+ if (!(!!o || t.isPointInArea(g)) && !h)
12959
12959
  return;
12960
- const b = s(e, m);
12960
+ const b = s(e, g);
12961
12961
  b < l ? (i = [
12962
12962
  {
12963
12963
  element: d,
@@ -13212,10 +13212,10 @@ var br = {
13212
13212
  if (!t)
13213
13213
  return;
13214
13214
  const a = pn(t.options.layout.padding), o = Math.max(e - a.width, 0), i = Math.max(n - a.height, 0), s = cD(t.boxes), l = s.vertical, c = s.horizontal;
13215
- Ee(t.boxes, (g) => {
13216
- typeof g.beforeLayout == "function" && g.beforeLayout();
13215
+ Ee(t.boxes, (m) => {
13216
+ typeof m.beforeLayout == "function" && m.beforeLayout();
13217
13217
  });
13218
- const d = l.reduce((g, b) => b.box.options && b.box.options.display === !1 ? g : g + 1, 0) || 1, u = Object.freeze({
13218
+ const d = l.reduce((m, b) => b.box.options && b.box.options.display === !1 ? m : m + 1, 0) || 1, u = Object.freeze({
13219
13219
  outerWidth: e,
13220
13220
  outerHeight: n,
13221
13221
  padding: a,
@@ -13231,16 +13231,16 @@ var br = {
13231
13231
  h: i,
13232
13232
  x: a.left,
13233
13233
  y: a.top
13234
- }, a), m = lD(l.concat(c), u);
13235
- Eo(s.fullSize, h, u, m), Eo(l, h, u, m), Eo(c, h, u, m) && Eo(l, h, u, m), uD(h), Rh(s.leftAndTop, h, u, m), h.x += h.w, h.y += h.h, Rh(s.rightAndBottom, h, u, m), t.chartArea = {
13234
+ }, a), g = lD(l.concat(c), u);
13235
+ Eo(s.fullSize, h, u, g), Eo(l, h, u, g), Eo(c, h, u, g) && Eo(l, h, u, g), uD(h), Rh(s.leftAndTop, h, u, g), h.x += h.w, h.y += h.h, Rh(s.rightAndBottom, h, u, g), t.chartArea = {
13236
13236
  left: h.left,
13237
13237
  top: h.top,
13238
13238
  right: h.left + h.w,
13239
13239
  bottom: h.top + h.h,
13240
13240
  height: h.h,
13241
13241
  width: h.w
13242
- }, Ee(s.chartArea, (g) => {
13243
- const b = g.box;
13242
+ }, Ee(s.chartArea, (m) => {
13243
+ const b = m.box;
13244
13244
  Object.assign(b, t.chartArea), b.update(h.w, h.h, {
13245
13245
  left: 0,
13246
13246
  top: 0,
@@ -13603,24 +13603,24 @@ function $D(t, e, n) {
13603
13603
  }
13604
13604
  function WD(t, e, n, r) {
13605
13605
  const { top: a, left: o, bottom: i, right: s, chart: l } = t, { chartArea: c, scales: d } = l;
13606
- let u = 0, f, h, m;
13607
- const g = i - a, b = s - o;
13606
+ let u = 0, f, h, g;
13607
+ const m = i - a, b = s - o;
13608
13608
  if (t.isHorizontal()) {
13609
13609
  if (h = Kt(r, o, s), we(n)) {
13610
13610
  const y = Object.keys(n)[0], x = n[y];
13611
- m = d[y].getPixelForValue(x) + g - e;
13612
- } else n === "center" ? m = (c.bottom + c.top) / 2 + g - e : m = Lh(t, n, e);
13611
+ g = d[y].getPixelForValue(x) + m - e;
13612
+ } else n === "center" ? g = (c.bottom + c.top) / 2 + m - e : g = Lh(t, n, e);
13613
13613
  f = s - o;
13614
13614
  } else {
13615
13615
  if (we(n)) {
13616
13616
  const y = Object.keys(n)[0], x = n[y];
13617
13617
  h = d[y].getPixelForValue(x) - b + e;
13618
13618
  } else n === "center" ? h = (c.left + c.right) / 2 - b + e : h = Lh(t, n, e);
13619
- m = Kt(r, i, a), u = n === "left" ? -ht : ht;
13619
+ g = Kt(r, i, a), u = n === "left" ? -ht : ht;
13620
13620
  }
13621
13621
  return {
13622
13622
  titleX: h,
13623
- titleY: m,
13623
+ titleY: g,
13624
13624
  maxWidth: f,
13625
13625
  rotation: u
13626
13626
  };
@@ -13800,15 +13800,15 @@ class Cl extends ui {
13800
13800
  if (i) {
13801
13801
  const l = Wh(a, n.options.font);
13802
13802
  if (s ? (e.width = this.maxWidth, e.height = bo(o) + l) : (e.height = this.maxHeight, e.width = bo(o) + l), r.display && this.ticks.length) {
13803
- const { first: c, last: d, widest: u, highest: f } = this._getLabelSizes(), h = r.padding * 2, m = Gr(this.labelRotation), g = Math.cos(m), b = Math.sin(m);
13803
+ const { first: c, last: d, widest: u, highest: f } = this._getLabelSizes(), h = r.padding * 2, g = Gr(this.labelRotation), m = Math.cos(g), b = Math.sin(g);
13804
13804
  if (s) {
13805
- const y = r.mirror ? 0 : b * u.width + g * f.height;
13805
+ const y = r.mirror ? 0 : b * u.width + m * f.height;
13806
13806
  e.height = Math.min(this.maxHeight, e.height + y + h);
13807
13807
  } else {
13808
- const y = r.mirror ? 0 : g * u.width + b * f.height;
13808
+ const y = r.mirror ? 0 : m * u.width + b * f.height;
13809
13809
  e.width = Math.min(this.maxWidth, e.width + y + h);
13810
13810
  }
13811
- this._calculatePadding(c, d, b, g);
13811
+ this._calculatePadding(c, d, b, m);
13812
13812
  }
13813
13813
  }
13814
13814
  this._handleMargins(), s ? (this.width = this._length = n.width - this._margins.left - this._margins.right, this.height = e.height) : (this.width = e.width, this.height = this._length = n.height - this._margins.top - this._margins.bottom);
@@ -13857,16 +13857,16 @@ class Cl extends ui {
13857
13857
  }
13858
13858
  _computeLabelSizes(e, n, r) {
13859
13859
  const { ctx: a, _longestTextCache: o } = this, i = [], s = [], l = Math.floor(n / Fh(n, r));
13860
- let c = 0, d = 0, u, f, h, m, g, b, y, x, k, w, v;
13860
+ let c = 0, d = 0, u, f, h, g, m, b, y, x, k, w, v;
13861
13861
  for (u = 0; u < n; u += l) {
13862
- if (m = e[u].label, g = this._resolveTickFontOptions(u), a.font = b = g.string, y = o[b] = o[b] || {
13862
+ if (g = e[u].label, m = this._resolveTickFontOptions(u), a.font = b = m.string, y = o[b] = o[b] || {
13863
13863
  data: {},
13864
13864
  gc: []
13865
- }, x = g.lineHeight, k = w = 0, !Ot(m) && !vt(m))
13866
- k = bh(a, y.data, y.gc, k, m), w = x;
13867
- else if (vt(m))
13868
- for (f = 0, h = m.length; f < h; ++f)
13869
- v = m[f], !Ot(v) && !vt(v) && (k = bh(a, y.data, y.gc, k, v), w += x);
13865
+ }, x = m.lineHeight, k = w = 0, !Ot(g) && !vt(g))
13866
+ k = bh(a, y.data, y.gc, k, g), w = x;
13867
+ else if (vt(g))
13868
+ for (f = 0, h = g.length; f < h; ++f)
13869
+ v = g[f], !Ot(v) && !vt(v) && (k = bh(a, y.data, y.gc, k, v), w += x);
13870
13870
  i.push(k), s.push(w), c = Math.max(k, c), d = Math.max(w, d);
13871
13871
  }
13872
13872
  AD(o, n);
@@ -13928,8 +13928,8 @@ class Cl extends ui {
13928
13928
  return e !== "auto" ? !!e : this.getMatchingVisibleMetas().length > 0;
13929
13929
  }
13930
13930
  _computeGridLineItems(e) {
13931
- const n = this.axis, r = this.chart, a = this.options, { grid: o, position: i, border: s } = a, l = o.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = bo(o), h = [], m = s.setContext(this.getContext()), g = m.display ? m.width : 0, b = g / 2, y = function(F) {
13932
- return Rr(r, F, g);
13931
+ const n = this.axis, r = this.chart, a = this.options, { grid: o, position: i, border: s } = a, l = o.offset, c = this.isHorizontal(), u = this.ticks.length + (l ? 1 : 0), f = bo(o), h = [], g = s.setContext(this.getContext()), m = g.display ? g.width : 0, b = m / 2, y = function(F) {
13932
+ return Rr(r, F, m);
13933
13933
  };
13934
13934
  let x, k, w, v, _, T, D, P, M, H, L, S;
13935
13935
  if (i === "top")
@@ -13982,12 +13982,12 @@ class Cl extends ui {
13982
13982
  return this._ticksLength = u, this._borderValue = x, h;
13983
13983
  }
13984
13984
  _computeLabelItems(e) {
13985
- const n = this.axis, r = this.options, { position: a, ticks: o } = r, i = this.isHorizontal(), s = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = o, f = bo(r.grid), h = f + d, m = u ? -d : h, g = -Gr(this.labelRotation), b = [];
13985
+ const n = this.axis, r = this.options, { position: a, ticks: o } = r, i = this.isHorizontal(), s = this.ticks, { align: l, crossAlign: c, padding: d, mirror: u } = o, f = bo(r.grid), h = f + d, g = u ? -d : h, m = -Gr(this.labelRotation), b = [];
13986
13986
  let y, x, k, w, v, _, T, D, P, M, H, L, S = "middle";
13987
13987
  if (a === "top")
13988
- _ = this.bottom - m, T = this._getXAxisLabelAlignment();
13988
+ _ = this.bottom - g, T = this._getXAxisLabelAlignment();
13989
13989
  else if (a === "bottom")
13990
- _ = this.top + m, T = this._getXAxisLabelAlignment();
13990
+ _ = this.top + g, T = this._getXAxisLabelAlignment();
13991
13991
  else if (a === "left") {
13992
13992
  const E = this._getYAxisLabelAlignment(f);
13993
13993
  T = E.textAlign, v = E.x;
@@ -14019,7 +14019,7 @@ class Cl extends ui {
14019
14019
  D = this.getPixelForTick(y) + o.labelOffset, P = this._resolveTickFontOptions(y), M = P.lineHeight, H = vt(w) ? w.length : 1;
14020
14020
  const F = H / 2, V = E.color, G = E.textStrokeColor, ee = E.textStrokeWidth;
14021
14021
  let N = T;
14022
- i ? (v = D, T === "inner" && (y === x - 1 ? N = this.options.reverse ? "left" : "right" : y === 0 ? N = this.options.reverse ? "right" : "left" : N = "center"), a === "top" ? c === "near" || g !== 0 ? L = -H * M + M / 2 : c === "center" ? L = -O.highest.height / 2 - F * M + M : L = -O.highest.height + M / 2 : c === "near" || g !== 0 ? L = M / 2 : c === "center" ? L = O.highest.height / 2 - F * M : L = O.highest.height - H * M, u && (L *= -1), g !== 0 && !E.showLabelBackdrop && (v += M / 2 * Math.sin(g))) : (_ = D, L = (1 - H) * M / 2);
14022
+ i ? (v = D, T === "inner" && (y === x - 1 ? N = this.options.reverse ? "left" : "right" : y === 0 ? N = this.options.reverse ? "right" : "left" : N = "center"), a === "top" ? c === "near" || m !== 0 ? L = -H * M + M / 2 : c === "center" ? L = -O.highest.height / 2 - F * M + M : L = -O.highest.height + M / 2 : c === "near" || m !== 0 ? L = M / 2 : c === "center" ? L = O.highest.height / 2 - F * M : L = O.highest.height - H * M, u && (L *= -1), m !== 0 && !E.showLabelBackdrop && (v += M / 2 * Math.sin(m))) : (_ = D, L = (1 - H) * M / 2);
14023
14023
  let Y;
14024
14024
  if (E.showLabelBackdrop) {
14025
14025
  const A = pn(E.backdropPadding), I = O.heights[y], R = O.widths[y];
@@ -14056,7 +14056,7 @@ class Cl extends ui {
14056
14056
  font: P,
14057
14057
  textOffset: L,
14058
14058
  options: {
14059
- rotation: g,
14059
+ rotation: m,
14060
14060
  color: V,
14061
14061
  strokeColor: G,
14062
14062
  strokeWidth: ee,
@@ -15229,8 +15229,8 @@ function cC(t, e, n) {
15229
15229
  if (d === "round")
15230
15230
  t.arc(a, o, f, n - ze / 2, r + ze / 2, !0);
15231
15231
  else if (d === "bevel") {
15232
- const h = 2 * f * f, m = -h * Math.cos(n + ze / 2) + a, g = -h * Math.sin(n + ze / 2) + o, b = h * Math.cos(r + ze / 2) + a, y = h * Math.sin(r + ze / 2) + o;
15233
- t.lineTo(m, g), t.lineTo(b, y);
15232
+ const h = 2 * f * f, g = -h * Math.cos(n + ze / 2) + a, m = -h * Math.sin(n + ze / 2) + o, b = h * Math.cos(r + ze / 2) + a, y = h * Math.sin(r + ze / 2) + o;
15233
+ t.lineTo(g, m), t.lineTo(b, y);
15234
15234
  }
15235
15235
  }
15236
15236
  t.closePath(), t.moveTo(0, 0), t.rect(0, 0, t.canvas.width, t.canvas.height), t.clip("evenodd");
@@ -15269,12 +15269,12 @@ function va(t, e, n, r) {
15269
15269
  function Ls(t, e, n, r, a, o) {
15270
15270
  const { x: i, y: s, startAngle: l, pixelMargin: c, innerRadius: d } = e, u = Math.max(e.outerRadius + r + n - c, 0), f = d > 0 ? d + r + n + c : 0;
15271
15271
  let h = 0;
15272
- const m = a - l;
15272
+ const g = a - l;
15273
15273
  if (r) {
15274
- const E = d > 0 ? d - r : 0, F = u > 0 ? u - r : 0, V = (E + F) / 2, G = V !== 0 ? m * V / (V + r) : m;
15275
- h = (m - G) / 2;
15274
+ const E = d > 0 ? d - r : 0, F = u > 0 ? u - r : 0, V = (E + F) / 2, G = V !== 0 ? g * V / (V + r) : g;
15275
+ h = (g - G) / 2;
15276
15276
  }
15277
- const g = Math.max(1e-3, m * u - n / ze) / u, b = (m - g) / 2, y = l + b + h, x = a - b - h, { outerStart: k, outerEnd: w, innerStart: v, innerEnd: _ } = fC(e, f, u, x - y), T = u - k, D = u - w, P = y + k / T, M = x - w / D, H = f + v, L = f + _, S = y + v / H, O = x - _ / L;
15277
+ const m = Math.max(1e-3, g * u - n / ze) / u, b = (g - m) / 2, y = l + b + h, x = a - b - h, { outerStart: k, outerEnd: w, innerStart: v, innerEnd: _ } = fC(e, f, u, x - y), T = u - k, D = u - w, P = y + k / T, M = x - w / D, H = f + v, L = f + _, S = y + v / H, O = x - _ / L;
15278
15278
  if (t.beginPath(), o) {
15279
15279
  const E = (P + M) / 2;
15280
15280
  if (t.arc(i, s, u, P, E), t.arc(i, s, u, E, M), w > 0) {
@@ -15317,18 +15317,18 @@ function hC(t, e, n, r, a) {
15317
15317
  return Ls(t, e, n, r, l, a), t.fill(), l;
15318
15318
  }
15319
15319
  function gC(t, e, n, r, a) {
15320
- const { fullCircles: o, startAngle: i, circumference: s, options: l } = e, { borderWidth: c, borderJoinStyle: d, borderDash: u, borderDashOffset: f, borderRadius: h } = l, m = l.borderAlign === "inner";
15320
+ const { fullCircles: o, startAngle: i, circumference: s, options: l } = e, { borderWidth: c, borderJoinStyle: d, borderDash: u, borderDashOffset: f, borderRadius: h } = l, g = l.borderAlign === "inner";
15321
15321
  if (!c)
15322
15322
  return;
15323
- t.setLineDash(u || []), t.lineDashOffset = f, m ? (t.lineWidth = c * 2, t.lineJoin = d || "round") : (t.lineWidth = c, t.lineJoin = d || "bevel");
15324
- let g = e.endAngle;
15323
+ t.setLineDash(u || []), t.lineDashOffset = f, g ? (t.lineWidth = c * 2, t.lineJoin = d || "round") : (t.lineWidth = c, t.lineJoin = d || "bevel");
15324
+ let m = e.endAngle;
15325
15325
  if (o) {
15326
- Ls(t, e, n, r, g, a);
15326
+ Ls(t, e, n, r, m, a);
15327
15327
  for (let b = 0; b < o; ++b)
15328
15328
  t.stroke();
15329
- isNaN(s) || (g = i + (s % st || st));
15329
+ isNaN(s) || (m = i + (s % st || st));
15330
15330
  }
15331
- m && dC(t, e, g), l.selfJoin && g - i >= ze && h === 0 && d !== "miter" && cC(t, e, g), o || (Ls(t, e, n, r, g, a), t.stroke());
15331
+ g && dC(t, e, m), l.selfJoin && m - i >= ze && h === 0 && d !== "miter" && cC(t, e, m), o || (Ls(t, e, n, r, m, a), t.stroke());
15332
15332
  }
15333
15333
  class Po extends ui {
15334
15334
  constructor(n) {
@@ -15355,7 +15355,7 @@ class Po extends ui {
15355
15355
  "innerRadius",
15356
15356
  "outerRadius",
15357
15357
  "circumference"
15358
- ], a), h = (this.options.spacing + this.options.borderWidth) / 2, m = Pe(f, c - l), g = Ns(i, l, c) && l !== c, b = m >= st || g, y = Co(s, d + h, u + h);
15358
+ ], a), h = (this.options.spacing + this.options.borderWidth) / 2, g = Pe(f, c - l), m = Ns(i, l, c) && l !== c, b = g >= st || m, y = Co(s, d + h, u + h);
15359
15359
  return b && y;
15360
15360
  }
15361
15361
  getCenterPoint(n) {
@@ -15447,9 +15447,9 @@ class Gh extends ui {
15447
15447
  let u = e;
15448
15448
  o.textAlign = "left", o.textBaseline = "middle";
15449
15449
  let f = -1, h = -d;
15450
- return this.legendItems.forEach((m, g) => {
15451
- const b = r + n / 2 + o.measureText(m.text).width;
15452
- (g === 0 || c[c.length - 1] + b + 2 * s > i) && (u += d, c[c.length - (g > 0 ? 0 : 1)] = 0, h += d, f++), l[g] = {
15450
+ return this.legendItems.forEach((g, m) => {
15451
+ const b = r + n / 2 + o.measureText(g.text).width;
15452
+ (m === 0 || c[c.length - 1] + b + 2 * s > i) && (u += d, c[c.length - (m > 0 ? 0 : 1)] = 0, h += d, f++), l[m] = {
15453
15453
  left: 0,
15454
15454
  top: h,
15455
15455
  row: f,
@@ -15460,16 +15460,16 @@ class Gh extends ui {
15460
15460
  }
15461
15461
  _fitCols(e, n, r, a) {
15462
15462
  const { ctx: o, maxHeight: i, options: { labels: { padding: s } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], d = i - e;
15463
- let u = s, f = 0, h = 0, m = 0, g = 0;
15463
+ let u = s, f = 0, h = 0, g = 0, m = 0;
15464
15464
  return this.legendItems.forEach((b, y) => {
15465
15465
  const { itemWidth: x, itemHeight: k } = pC(r, n, o, b, a);
15466
15466
  y > 0 && h + k + 2 * s > d && (u += f + s, c.push({
15467
15467
  width: f,
15468
15468
  height: h
15469
- }), m += f + s, g++, f = h = 0), l[y] = {
15470
- left: m,
15469
+ }), g += f + s, m++, f = h = 0), l[y] = {
15470
+ left: g,
15471
15471
  top: h,
15472
- col: g,
15472
+ col: m,
15473
15473
  width: x,
15474
15474
  height: k
15475
15475
  }, f = Math.max(f, x), h += k + s;
@@ -15505,28 +15505,28 @@ class Gh extends ui {
15505
15505
  const { options: e, columnSizes: n, lineWidths: r, ctx: a } = this, { align: o, labels: i } = e, s = Je.color, l = Ta(e.rtl, this.left, this.width), c = Ft(i.font), { padding: d } = i, u = c.size, f = u / 2;
15506
15506
  let h;
15507
15507
  this.drawTitle(), a.textAlign = l.textAlign("left"), a.textBaseline = "middle", a.lineWidth = 0.5, a.font = c.string;
15508
- const { boxWidth: m, boxHeight: g, itemHeight: b } = Kh(i, u), y = function(_, T, D) {
15509
- if (isNaN(m) || m <= 0 || isNaN(g) || g < 0)
15508
+ const { boxWidth: g, boxHeight: m, itemHeight: b } = Kh(i, u), y = function(_, T, D) {
15509
+ if (isNaN(g) || g <= 0 || isNaN(m) || m < 0)
15510
15510
  return;
15511
15511
  a.save();
15512
15512
  const P = Pe(D.lineWidth, 1);
15513
15513
  if (a.fillStyle = Pe(D.fillStyle, s), a.lineCap = Pe(D.lineCap, "butt"), a.lineDashOffset = Pe(D.lineDashOffset, 0), a.lineJoin = Pe(D.lineJoin, "miter"), a.lineWidth = P, a.strokeStyle = Pe(D.strokeStyle, s), a.setLineDash(Pe(D.lineDash, [])), i.usePointStyle) {
15514
15514
  const M = {
15515
- radius: g * Math.SQRT2 / 2,
15515
+ radius: m * Math.SQRT2 / 2,
15516
15516
  pointStyle: D.pointStyle,
15517
15517
  rotation: D.rotation,
15518
15518
  borderWidth: P
15519
- }, H = l.xPlus(_, m / 2), L = T + f;
15520
- Ib(a, M, H, L, i.pointStyleWidth && m);
15519
+ }, H = l.xPlus(_, g / 2), L = T + f;
15520
+ Ib(a, M, H, L, i.pointStyleWidth && g);
15521
15521
  } else {
15522
- const M = T + Math.max((u - g) / 2, 0), H = l.leftForLtr(_, m), L = Wo(D.borderRadius);
15522
+ const M = T + Math.max((u - m) / 2, 0), H = l.leftForLtr(_, g), L = Wo(D.borderRadius);
15523
15523
  a.beginPath(), Object.values(L).some((S) => S !== 0) ? td(a, {
15524
15524
  x: H,
15525
15525
  y: M,
15526
- w: m,
15527
- h: g,
15526
+ w: g,
15527
+ h: m,
15528
15528
  radius: L
15529
- }) : a.rect(H, M, m, g), a.fill(), P !== 0 && a.stroke();
15529
+ }) : a.rect(H, M, g, m), a.fill(), P !== 0 && a.stroke();
15530
15530
  }
15531
15531
  a.restore();
15532
15532
  }, x = function(_, T, D) {
@@ -15547,11 +15547,11 @@ class Gh extends ui {
15547
15547
  const v = b + d;
15548
15548
  this.legendItems.forEach((_, T) => {
15549
15549
  a.strokeStyle = _.fontColor, a.fillStyle = _.fontColor;
15550
- const D = a.measureText(_.text).width, P = l.textAlign(_.textAlign || (_.textAlign = i.textAlign)), M = m + f + D;
15550
+ const D = a.measureText(_.text).width, P = l.textAlign(_.textAlign || (_.textAlign = i.textAlign)), M = g + f + D;
15551
15551
  let H = h.x, L = h.y;
15552
15552
  l.setWidth(this.width), k ? T > 0 && H + M + d > this.right && (L = h.y += v, h.line++, H = h.x = Kt(o, this.left + d, this.right - r[h.line])) : T > 0 && L + v > this.bottom && (H = h.x = H + n[h.line].width + d, h.line++, L = h.y = Kt(o, this.top + w + d, this.bottom - n[h.line].height));
15553
15553
  const S = l.x(H);
15554
- if (y(S, L, _), H = ZS(P, H + m + f, k ? H + M : this.right, e.rtl), x(l.x(H), L, _), k)
15554
+ if (y(S, L, _), H = ZS(P, H + g + f, k ? H + M : this.right, e.rtl), x(l.x(H), L, _), k)
15555
15555
  h.x += M + d;
15556
15556
  else if (typeof _.text != "string") {
15557
15557
  const O = c.lineHeight;
@@ -15569,8 +15569,8 @@ class Gh extends ui {
15569
15569
  if (this.isHorizontal())
15570
15570
  f = Math.max(...this.lineWidths), d = this.top + c, u = Kt(e.align, u, this.right - f);
15571
15571
  else {
15572
- const m = this.columnSizes.reduce((g, b) => Math.max(g, b.height), 0);
15573
- d = c + Kt(e.align, this.top, this.bottom - m - e.labels.padding - this._computeTitleHeight());
15572
+ const g = this.columnSizes.reduce((m, b) => Math.max(m, b.height), 0);
15573
+ d = c + Kt(e.align, this.top, this.bottom - g - e.labels.padding - this._computeTitleHeight());
15574
15574
  }
15575
15575
  const h = Kt(s, u, u + f);
15576
15576
  i.textAlign = o.textAlign(Nb(s)), i.textBaseline = "middle", i.strokeStyle = n.color, i.fillStyle = n.color, i.font = r.string, Rs(i, n.text, h, d, r);
@@ -15780,22 +15780,22 @@ function xC(t, e) {
15780
15780
  };
15781
15781
  }
15782
15782
  function Qh(t, e) {
15783
- const n = t.chart.ctx, { body: r, footer: a, title: o } = t, { boxWidth: i, boxHeight: s } = e, l = Ft(e.bodyFont), c = Ft(e.titleFont), d = Ft(e.footerFont), u = o.length, f = a.length, h = r.length, m = pn(e.padding);
15784
- let g = m.height, b = 0, y = r.reduce((w, v) => w + v.before.length + v.lines.length + v.after.length, 0);
15785
- if (y += t.beforeBody.length + t.afterBody.length, u && (g += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), y) {
15783
+ const n = t.chart.ctx, { body: r, footer: a, title: o } = t, { boxWidth: i, boxHeight: s } = e, l = Ft(e.bodyFont), c = Ft(e.titleFont), d = Ft(e.footerFont), u = o.length, f = a.length, h = r.length, g = pn(e.padding);
15784
+ let m = g.height, b = 0, y = r.reduce((w, v) => w + v.before.length + v.lines.length + v.after.length, 0);
15785
+ if (y += t.beforeBody.length + t.afterBody.length, u && (m += u * c.lineHeight + (u - 1) * e.titleSpacing + e.titleMarginBottom), y) {
15786
15786
  const w = e.displayColors ? Math.max(s, l.lineHeight) : l.lineHeight;
15787
- g += h * w + (y - h) * l.lineHeight + (y - 1) * e.bodySpacing;
15787
+ m += h * w + (y - h) * l.lineHeight + (y - 1) * e.bodySpacing;
15788
15788
  }
15789
- f && (g += e.footerMarginTop + f * d.lineHeight + (f - 1) * e.footerSpacing);
15789
+ f && (m += e.footerMarginTop + f * d.lineHeight + (f - 1) * e.footerSpacing);
15790
15790
  let x = 0;
15791
15791
  const k = function(w) {
15792
15792
  b = Math.max(b, n.measureText(w).width + x);
15793
15793
  };
15794
15794
  return n.save(), n.font = c.string, Ee(t.title, k), n.font = l.string, Ee(t.beforeBody.concat(t.afterBody), k), x = e.displayColors ? i + 2 + e.boxPadding : 0, Ee(r, (w) => {
15795
15795
  Ee(w.before, k), Ee(w.lines, k), Ee(w.after, k);
15796
- }), x = 0, n.font = d.string, Ee(t.footer, k), n.restore(), b += m.width, {
15796
+ }), x = 0, n.font = d.string, Ee(t.footer, k), n.restore(), b += g.width, {
15797
15797
  width: b,
15798
- height: g
15798
+ height: m
15799
15799
  };
15800
15800
  }
15801
15801
  function kC(t, e) {
@@ -15829,11 +15829,11 @@ function DC(t, e, n) {
15829
15829
  }
15830
15830
  function Jh(t, e, n, r) {
15831
15831
  const { caretSize: a, caretPadding: o, cornerRadius: i } = t, { xAlign: s, yAlign: l } = n, c = a + o, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: h } = Wo(i);
15832
- let m = OC(e, s);
15833
- const g = DC(e, l, c);
15834
- return l === "center" ? s === "left" ? m += c : s === "right" && (m -= c) : s === "left" ? m -= Math.max(d, f) + a : s === "right" && (m += Math.max(u, h) + a), {
15835
- x: on(m, 0, r.width - e.width),
15836
- y: on(g, 0, r.height - e.height)
15832
+ let g = OC(e, s);
15833
+ const m = DC(e, l, c);
15834
+ return l === "center" ? s === "left" ? g += c : s === "right" && (g -= c) : s === "left" ? g -= Math.max(d, f) + a : s === "right" && (g += Math.max(u, h) + a), {
15835
+ x: on(g, 0, r.width - e.width),
15836
+ y: on(m, 0, r.height - e.height)
15837
15837
  };
15838
15838
  }
15839
15839
  function Yi(t, e, n) {
@@ -15996,9 +15996,9 @@ class ad extends ui {
15996
15996
  n.lineTo(o.x1, o.y1), n.lineTo(o.x2, o.y2), n.lineTo(o.x3, o.y3);
15997
15997
  }
15998
15998
  getCaretPosition(e, n, r) {
15999
- const { xAlign: a, yAlign: o } = this, { caretSize: i, cornerRadius: s } = r, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = Wo(s), { x: f, y: h } = e, { width: m, height: g } = n;
15999
+ const { xAlign: a, yAlign: o } = this, { caretSize: i, cornerRadius: s } = r, { topLeft: l, topRight: c, bottomLeft: d, bottomRight: u } = Wo(s), { x: f, y: h } = e, { width: g, height: m } = n;
16000
16000
  let b, y, x, k, w, v;
16001
- return o === "center" ? (w = h + g / 2, a === "left" ? (b = f, y = b - i, k = w + i, v = w - i) : (b = f + m, y = b + i, k = w - i, v = w + i), x = b) : (a === "left" ? y = f + Math.max(l, d) + i : a === "right" ? y = f + m - Math.max(c, u) - i : y = this.caretX, o === "top" ? (k = h, w = k - i, b = y - i, x = y + i) : (k = h + g, w = k + i, b = y + i, x = y - i), v = k), {
16001
+ return o === "center" ? (w = h + m / 2, a === "left" ? (b = f, y = b - i, k = w + i, v = w - i) : (b = f + g, y = b + i, k = w - i, v = w + i), x = b) : (a === "left" ? y = f + Math.max(l, d) + i : a === "right" ? y = f + g - Math.max(c, u) - i : y = this.caretX, o === "top" ? (k = h, w = k - i, b = y - i, x = y + i) : (k = h + m, w = k + i, b = y + i, x = y - i), v = k), {
16002
16002
  x1: b,
16003
16003
  x2: y,
16004
16004
  x3: x,
@@ -16017,47 +16017,47 @@ class ad extends ui {
16017
16017
  }
16018
16018
  }
16019
16019
  _drawColorBox(e, n, r, a, o) {
16020
- const i = this.labelColors[r], s = this.labelPointStyles[r], { boxHeight: l, boxWidth: c } = o, d = Ft(o.bodyFont), u = Yi(this, "left", o), f = a.x(u), h = l < d.lineHeight ? (d.lineHeight - l) / 2 : 0, m = n.y + h;
16020
+ const i = this.labelColors[r], s = this.labelPointStyles[r], { boxHeight: l, boxWidth: c } = o, d = Ft(o.bodyFont), u = Yi(this, "left", o), f = a.x(u), h = l < d.lineHeight ? (d.lineHeight - l) / 2 : 0, g = n.y + h;
16021
16021
  if (o.usePointStyle) {
16022
- const g = {
16022
+ const m = {
16023
16023
  radius: Math.min(c, l) / 2,
16024
16024
  pointStyle: s.pointStyle,
16025
16025
  rotation: s.rotation,
16026
16026
  borderWidth: 1
16027
- }, b = a.leftForLtr(f, c) + c / 2, y = m + l / 2;
16028
- e.strokeStyle = o.multiKeyBackground, e.fillStyle = o.multiKeyBackground, wh(e, g, b, y), e.strokeStyle = i.borderColor, e.fillStyle = i.backgroundColor, wh(e, g, b, y);
16027
+ }, b = a.leftForLtr(f, c) + c / 2, y = g + l / 2;
16028
+ e.strokeStyle = o.multiKeyBackground, e.fillStyle = o.multiKeyBackground, wh(e, m, b, y), e.strokeStyle = i.borderColor, e.fillStyle = i.backgroundColor, wh(e, m, b, y);
16029
16029
  } else {
16030
16030
  e.lineWidth = we(i.borderWidth) ? Math.max(...Object.values(i.borderWidth)) : i.borderWidth || 1, e.strokeStyle = i.borderColor, e.setLineDash(i.borderDash || []), e.lineDashOffset = i.borderDashOffset || 0;
16031
- const g = a.leftForLtr(f, c), b = a.leftForLtr(a.xPlus(f, 1), c - 2), y = Wo(i.borderRadius);
16031
+ const m = a.leftForLtr(f, c), b = a.leftForLtr(a.xPlus(f, 1), c - 2), y = Wo(i.borderRadius);
16032
16032
  Object.values(y).some((x) => x !== 0) ? (e.beginPath(), e.fillStyle = o.multiKeyBackground, td(e, {
16033
- x: g,
16034
- y: m,
16033
+ x: m,
16034
+ y: g,
16035
16035
  w: c,
16036
16036
  h: l,
16037
16037
  radius: y
16038
16038
  }), e.fill(), e.stroke(), e.fillStyle = i.backgroundColor, e.beginPath(), td(e, {
16039
16039
  x: b,
16040
- y: m + 1,
16040
+ y: g + 1,
16041
16041
  w: c - 2,
16042
16042
  h: l - 2,
16043
16043
  radius: y
16044
- }), e.fill()) : (e.fillStyle = o.multiKeyBackground, e.fillRect(g, m, c, l), e.strokeRect(g, m, c, l), e.fillStyle = i.backgroundColor, e.fillRect(b, m + 1, c - 2, l - 2));
16044
+ }), e.fill()) : (e.fillStyle = o.multiKeyBackground, e.fillRect(m, g, c, l), e.strokeRect(m, g, c, l), e.fillStyle = i.backgroundColor, e.fillRect(b, g + 1, c - 2, l - 2));
16045
16045
  }
16046
16046
  e.fillStyle = this.labelTextColors[r];
16047
16047
  }
16048
16048
  drawBody(e, n, r) {
16049
16049
  const { body: a } = this, { bodySpacing: o, bodyAlign: i, displayColors: s, boxHeight: l, boxWidth: c, boxPadding: d } = r, u = Ft(r.bodyFont);
16050
16050
  let f = u.lineHeight, h = 0;
16051
- const m = Ta(r.rtl, this.x, this.width), g = function(D) {
16052
- n.fillText(D, m.x(e.x + h), e.y + f / 2), e.y += f + o;
16053
- }, b = m.textAlign(i);
16051
+ const g = Ta(r.rtl, this.x, this.width), m = function(D) {
16052
+ n.fillText(D, g.x(e.x + h), e.y + f / 2), e.y += f + o;
16053
+ }, b = g.textAlign(i);
16054
16054
  let y, x, k, w, v, _, T;
16055
- for (n.textAlign = i, n.textBaseline = "middle", n.font = u.string, e.x = Yi(this, b, r), n.fillStyle = r.bodyColor, Ee(this.beforeBody, g), h = s && b !== "right" ? i === "center" ? c / 2 + d : c + 2 + d : 0, w = 0, _ = a.length; w < _; ++w) {
16056
- for (y = a[w], x = this.labelTextColors[w], n.fillStyle = x, Ee(y.before, g), k = y.lines, s && k.length && (this._drawColorBox(n, e, w, m, r), f = Math.max(u.lineHeight, l)), v = 0, T = k.length; v < T; ++v)
16057
- g(k[v]), f = u.lineHeight;
16058
- Ee(y.after, g);
16055
+ for (n.textAlign = i, n.textBaseline = "middle", n.font = u.string, e.x = Yi(this, b, r), n.fillStyle = r.bodyColor, Ee(this.beforeBody, m), h = s && b !== "right" ? i === "center" ? c / 2 + d : c + 2 + d : 0, w = 0, _ = a.length; w < _; ++w) {
16056
+ for (y = a[w], x = this.labelTextColors[w], n.fillStyle = x, Ee(y.before, m), k = y.lines, s && k.length && (this._drawColorBox(n, e, w, g, r), f = Math.max(u.lineHeight, l)), v = 0, T = k.length; v < T; ++v)
16057
+ m(k[v]), f = u.lineHeight;
16058
+ Ee(y.after, m);
16059
16059
  }
16060
- h = 0, f = u.lineHeight, Ee(this.afterBody, g), e.y -= o;
16060
+ h = 0, f = u.lineHeight, Ee(this.afterBody, m), e.y -= o;
16061
16061
  }
16062
16062
  drawFooter(e, n, r) {
16063
16063
  const a = this.footer, o = a.length;
@@ -16069,8 +16069,8 @@ class ad extends ui {
16069
16069
  }
16070
16070
  }
16071
16071
  drawBackground(e, n, r, a) {
16072
- const { xAlign: o, yAlign: i } = this, { x: s, y: l } = e, { width: c, height: d } = r, { topLeft: u, topRight: f, bottomLeft: h, bottomRight: m } = Wo(a.cornerRadius);
16073
- n.fillStyle = a.backgroundColor, n.strokeStyle = a.borderColor, n.lineWidth = a.borderWidth, n.beginPath(), n.moveTo(s + u, l), i === "top" && this.drawCaret(e, n, r, a), n.lineTo(s + c - f, l), n.quadraticCurveTo(s + c, l, s + c, l + f), i === "center" && o === "right" && this.drawCaret(e, n, r, a), n.lineTo(s + c, l + d - m), n.quadraticCurveTo(s + c, l + d, s + c - m, l + d), i === "bottom" && this.drawCaret(e, n, r, a), n.lineTo(s + h, l + d), n.quadraticCurveTo(s, l + d, s, l + d - h), i === "center" && o === "left" && this.drawCaret(e, n, r, a), n.lineTo(s, l + u), n.quadraticCurveTo(s, l, s + u, l), n.closePath(), n.fill(), a.borderWidth > 0 && n.stroke();
16072
+ const { xAlign: o, yAlign: i } = this, { x: s, y: l } = e, { width: c, height: d } = r, { topLeft: u, topRight: f, bottomLeft: h, bottomRight: g } = Wo(a.cornerRadius);
16073
+ n.fillStyle = a.backgroundColor, n.strokeStyle = a.borderColor, n.lineWidth = a.borderWidth, n.beginPath(), n.moveTo(s + u, l), i === "top" && this.drawCaret(e, n, r, a), n.lineTo(s + c - f, l), n.quadraticCurveTo(s + c, l, s + c, l + f), i === "center" && o === "right" && this.drawCaret(e, n, r, a), n.lineTo(s + c, l + d - g), n.quadraticCurveTo(s + c, l + d, s + c - g, l + d), i === "bottom" && this.drawCaret(e, n, r, a), n.lineTo(s + h, l + d), n.quadraticCurveTo(s, l + d, s, l + d - h), i === "center" && o === "left" && this.drawCaret(e, n, r, a), n.lineTo(s, l + u), n.quadraticCurveTo(s, l, s + u, l), n.closePath(), n.fill(), a.borderWidth > 0 && n.stroke();
16074
16074
  }
16075
16075
  _updateAnimationTarget(e) {
16076
16076
  const n = this.chart, r = this.$animations, a = r && r.x, o = r && r.y;
@@ -16428,10 +16428,10 @@ class Fs extends Cl {
16428
16428
  let u = n, f, h;
16429
16429
  if (c && (u = +e.startOf(u, "isoWeek", l)), u = +e.startOf(u, c ? "day" : i), e.diff(r, n, i) > 1e5 * s)
16430
16430
  throw new Error(n + " and " + r + " are too far apart with stepSize of " + s + " " + i);
16431
- const m = a.ticks.source === "data" && this.getDataTimestamps();
16431
+ const g = a.ticks.source === "data" && this.getDataTimestamps();
16432
16432
  for (f = u, h = 0; f < r; f = +e.add(f, s, i), h++)
16433
- og(d, f, m);
16434
- return (f === r || a.bounds === "ticks" || h === 1) && og(d, f, m), Object.keys(d).sort(ng).map((g) => +g);
16433
+ og(d, f, g);
16434
+ return (f === r || a.bounds === "ticks" || h === 1) && og(d, f, g), Object.keys(d).sort(ng).map((m) => +m);
16435
16435
  }
16436
16436
  getLabelForValue(e) {
16437
16437
  const n = this._adapter, r = this.options.time;
@@ -16613,35 +16613,35 @@ function RC(t) {
16613
16613
  return ny(n, t.labels), ry(n, t.datasets, e), n;
16614
16614
  }
16615
16615
  function IC(t, e) {
16616
- const { height: n = 150, width: r = 300, redraw: a = !1, datasetIdKey: o, type: i, data: s, options: l, plugins: c = [], fallbackContent: d, updateMode: u, ...f } = t, h = Jt(null), m = Jt(null), g = () => {
16617
- h.current && (m.current = new Ml(h.current, {
16616
+ const { height: n = 150, width: r = 300, redraw: a = !1, datasetIdKey: o, type: i, data: s, options: l, plugins: c = [], fallbackContent: d, updateMode: u, ...f } = t, h = Jt(null), g = Jt(null), m = () => {
16617
+ h.current && (g.current = new Ml(h.current, {
16618
16618
  type: i,
16619
16619
  data: RC(s, o),
16620
16620
  options: l && {
16621
16621
  ...l
16622
16622
  },
16623
16623
  plugins: c
16624
- }), lg(e, m.current));
16624
+ }), lg(e, g.current));
16625
16625
  }, b = () => {
16626
- lg(e, null), m.current && (m.current.destroy(), m.current = null);
16626
+ lg(e, null), g.current && (g.current.destroy(), g.current = null);
16627
16627
  };
16628
16628
  return ot(() => {
16629
- !a && m.current && l && NC(m.current, l);
16629
+ !a && g.current && l && NC(g.current, l);
16630
16630
  }, [
16631
16631
  a,
16632
16632
  l
16633
16633
  ]), ot(() => {
16634
- !a && m.current && ny(m.current.config.data, s.labels);
16634
+ !a && g.current && ny(g.current.config.data, s.labels);
16635
16635
  }, [
16636
16636
  a,
16637
16637
  s.labels
16638
16638
  ]), ot(() => {
16639
- !a && m.current && s.datasets && ry(m.current.config.data, s.datasets, o);
16639
+ !a && g.current && s.datasets && ry(g.current.config.data, s.datasets, o);
16640
16640
  }, [
16641
16641
  a,
16642
16642
  s.datasets
16643
16643
  ]), ot(() => {
16644
- m.current && (a ? (b(), setTimeout(g)) : m.current.update(u));
16644
+ g.current && (a ? (b(), setTimeout(m)) : g.current.update(u));
16645
16645
  }, [
16646
16646
  a,
16647
16647
  l,
@@ -16649,10 +16649,10 @@ function IC(t, e) {
16649
16649
  s.datasets,
16650
16650
  u
16651
16651
  ]), ot(() => {
16652
- m.current && (b(), setTimeout(g));
16652
+ g.current && (b(), setTimeout(m));
16653
16653
  }, [
16654
16654
  i
16655
- ]), ot(() => (g(), () => b()), []), /* @__PURE__ */ ne.createElement("canvas", {
16655
+ ]), ot(() => (m(), () => b()), []), /* @__PURE__ */ ne.createElement("canvas", {
16656
16656
  ref: h,
16657
16657
  role: "img",
16658
16658
  height: n,
@@ -17017,10 +17017,10 @@ function dg(t) {
17017
17017
  return ly(ls("", null, null, null, [""], t = sy(t), 0, [0], t));
17018
17018
  }
17019
17019
  function ls(t, e, n, r, a, o, i, s, l) {
17020
- for (var c = 0, d = 0, u = i, f = 0, h = 0, m = 0, g = 1, b = 1, y = 1, x = 0, k = "", w = a, v = o, _ = r, T = k; b; )
17021
- switch (m = x, x = Qt()) {
17020
+ for (var c = 0, d = 0, u = i, f = 0, h = 0, g = 0, m = 1, b = 1, y = 1, x = 0, k = "", w = a, v = o, _ = r, T = k; b; )
17021
+ switch (g = x, x = Qt()) {
17022
17022
  case 40:
17023
- if (m != 108 && wt(T, u - 1) == 58) {
17023
+ if (g != 108 && wt(T, u - 1) == 58) {
17024
17024
  id(T += Ce(ss(x), "&", "&\f"), "&\f") != -1 && (y = -1);
17025
17025
  break;
17026
17026
  }
@@ -17033,7 +17033,7 @@ function ls(t, e, n, r, a, o, i, s, l) {
17033
17033
  case 10:
17034
17034
  case 13:
17035
17035
  case 32:
17036
- T += rM(m);
17036
+ T += rM(g);
17037
17037
  break;
17038
17038
  case 92:
17039
17039
  T += aM(is() - 1, 7);
@@ -17048,9 +17048,9 @@ function ls(t, e, n, r, a, o, i, s, l) {
17048
17048
  T += "/";
17049
17049
  }
17050
17050
  break;
17051
- case 123 * g:
17051
+ case 123 * m:
17052
17052
  s[c++] = Cn(T) * y;
17053
- case 125 * g:
17053
+ case 125 * m:
17054
17054
  case 59:
17055
17055
  case 0:
17056
17056
  switch (x) {
@@ -17077,18 +17077,18 @@ function ls(t, e, n, r, a, o, i, s, l) {
17077
17077
  ls(T, _, _, _, [""], v, 0, s, v);
17078
17078
  }
17079
17079
  }
17080
- c = d = h = 0, g = y = 1, k = T = "", u = i;
17080
+ c = d = h = 0, m = y = 1, k = T = "", u = i;
17081
17081
  break;
17082
17082
  case 58:
17083
- u = 1 + Cn(T), h = m;
17083
+ u = 1 + Cn(T), h = g;
17084
17084
  default:
17085
- if (g < 1) {
17085
+ if (m < 1) {
17086
17086
  if (x == 123)
17087
- --g;
17088
- else if (x == 125 && g++ == 0 && nM() == 125)
17087
+ --m;
17088
+ else if (x == 125 && m++ == 0 && nM() == 125)
17089
17089
  continue;
17090
17090
  }
17091
- switch (T += Tl(x), x * g) {
17091
+ switch (T += Tl(x), x * m) {
17092
17092
  case 38:
17093
17093
  y = d > 0 ? 1 : (T += "\f", -1);
17094
17094
  break;
@@ -17099,15 +17099,15 @@ function ls(t, e, n, r, a, o, i, s, l) {
17099
17099
  $n() === 45 && (T += ss(Qt())), f = $n(), d = u = Cn(k = T += iM(is())), x++;
17100
17100
  break;
17101
17101
  case 45:
17102
- m === 45 && Cn(T) == 2 && (g = 0);
17102
+ g === 45 && Cn(T) == 2 && (m = 0);
17103
17103
  }
17104
17104
  }
17105
17105
  return o;
17106
17106
  }
17107
17107
  function ug(t, e, n, r, a, o, i, s, l, c, d) {
17108
- for (var u = a - 1, f = a === 0 ? o : [""], h = vu(f), m = 0, g = 0, b = 0; m < r; ++m)
17109
- for (var y = 0, x = Zo(t, u + 1, u = GC(g = i[m])), k = t; y < h; ++y)
17110
- (k = oy(g > 0 ? f[y] + " " + x : Ce(x, /&\f/g, f[y]))) && (l[b++] = k);
17108
+ for (var u = a - 1, f = a === 0 ? o : [""], h = vu(f), g = 0, m = 0, b = 0; g < r; ++g)
17109
+ for (var y = 0, x = Zo(t, u + 1, u = GC(m = i[g])), k = t; y < h; ++y)
17110
+ (k = oy(m > 0 ? f[y] + " " + x : Ce(x, /&\f/g, f[y]))) && (l[b++] = k);
17111
17111
  return Rl(t, e, n, a === 0 ? yu : s, l, c, d);
17112
17112
  }
17113
17113
  function sM(t, e, n) {
@@ -17434,8 +17434,8 @@ If multiple caches share the same key they might "fight" for each other's style
17434
17434
  }), h(v ? v + "{" + _.styles + "}" : _.styles), D && (k.inserted[_.name] = !0);
17435
17435
  };
17436
17436
  } else {
17437
- var m = [hg], g = gg(c.concat(a, m)), b = function(v) {
17438
- return na(dg(v), g);
17437
+ var g = [hg], m = gg(c.concat(a, g)), b = function(v) {
17438
+ return na(dg(v), m);
17439
17439
  }, y = xM(a)(n), x = function(v, _) {
17440
17440
  var T = _.name;
17441
17441
  return y[T] === void 0 && (y[T] = b(v ? v + "{" + _.styles + "}" : _.styles)), y[T];
@@ -18096,36 +18096,36 @@ You may have forgotten to import it.`);
18096
18096
  for (var f = d.length, h = 1; h < f; h++)
18097
18097
  process.env.NODE_ENV !== "production" && d[0][h] === void 0 && console.error(Tg), u.push(d[h], d[0][h]);
18098
18098
  }
18099
- var m = ku(function(g, b, y) {
18100
- var x = c && g.as || a, k = "", w = [], v = g;
18101
- if (g.theme == null) {
18099
+ var g = ku(function(m, b, y) {
18100
+ var x = c && m.as || a, k = "", w = [], v = m;
18101
+ if (m.theme == null) {
18102
18102
  v = {};
18103
- for (var _ in g)
18104
- v[_] = g[_];
18103
+ for (var _ in m)
18104
+ v[_] = m[_];
18105
18105
  v.theme = ct(_u);
18106
18106
  }
18107
- typeof g.className == "string" ? k = BM(b.registered, w, g.className) : g.className != null && (k = g.className + " ");
18107
+ typeof m.className == "string" ? k = BM(b.registered, w, m.className) : m.className != null && (k = m.className + " ");
18108
18108
  var T = ZM(u.concat(w), b.registered, v);
18109
18109
  k += b.key + "-" + T.name, i !== void 0 && (k += " " + i);
18110
18110
  var D = c && s === void 0 ? Eg(x) : l, P = {};
18111
- for (var M in g)
18111
+ for (var M in m)
18112
18112
  c && M === "as" || // $FlowFixMe
18113
- D(M) && (P[M] = g[M]);
18113
+ D(M) && (P[M] = m[M]);
18114
18114
  return P.className = k, P.ref = y, /* @__PURE__ */ In(Cd, null, /* @__PURE__ */ In(nE, {
18115
18115
  cache: b,
18116
18116
  serialized: T,
18117
18117
  isStringTag: typeof x == "string"
18118
18118
  }), /* @__PURE__ */ In(x, P));
18119
18119
  });
18120
- return m.displayName = o !== void 0 ? o : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", m.defaultProps = e.defaultProps, m.__emotion_real = m, m.__emotion_base = a, m.__emotion_styles = u, m.__emotion_forwardProp = s, Object.defineProperty(m, "toString", {
18120
+ return g.displayName = o !== void 0 ? o : "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 = s, Object.defineProperty(g, "toString", {
18121
18121
  value: function() {
18122
18122
  return i === void 0 && process.env.NODE_ENV !== "production" ? "NO_COMPONENT_SELECTOR" : "." + i;
18123
18123
  }
18124
- }), m.withComponent = function(g, b) {
18125
- return t(g, od({}, n, b, {
18126
- shouldForwardProp: Pg(m, b, !0)
18124
+ }), g.withComponent = function(m, b) {
18125
+ return t(m, od({}, n, b, {
18126
+ shouldForwardProp: Pg(g, b, !0)
18127
18127
  })).apply(void 0, u);
18128
- }, m;
18128
+ }, g;
18129
18129
  };
18130
18130
  }, aE = [
18131
18131
  "a",
@@ -18554,11 +18554,11 @@ var ft = ky.exports, oE = ne.createContext(void 0), iE = function() {
18554
18554
  rtl: !1,
18555
18555
  transitionDuration: 300
18556
18556
  }), hE = ne.forwardRef(function(t, e) {
18557
- var n, r = t.collapsed, a = t.toggled, o = t.onBackdropClick, i = t.onBreakPoint, s = t.width, l = s === void 0 ? "250px" : s, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, m = t.breakPoint, g = t.customBreakPoint, b = t.backgroundColor, y = b === void 0 ? "rgb(249, 249, 249, 0.7)" : b, x = t.transitionDuration, k = x === void 0 ? 300 : x, w = t.image, v = t.rtl, _ = t.rootStyles, T = la(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), D = function() {
18558
- if (g)
18559
- return "(max-width: ".concat(g, ")");
18557
+ var n, r = t.collapsed, a = t.toggled, o = t.onBackdropClick, i = t.onBreakPoint, s = t.width, l = s === void 0 ? "250px" : s, c = t.collapsedWidth, d = c === void 0 ? "80px" : c, u = t.defaultCollapsed, f = t.className, h = t.children, g = t.breakPoint, m = t.customBreakPoint, b = t.backgroundColor, y = b === void 0 ? "rgb(249, 249, 249, 0.7)" : b, x = t.transitionDuration, k = x === void 0 ? 300 : x, w = t.image, v = t.rtl, _ = t.rootStyles, T = la(t, ["collapsed", "toggled", "onBackdropClick", "onBreakPoint", "width", "collapsedWidth", "defaultCollapsed", "className", "children", "breakPoint", "customBreakPoint", "backgroundColor", "transitionDuration", "image", "rtl", "rootStyles"]), D = function() {
18560
18558
  if (m)
18561
- return ["xs", "sm", "md", "lg", "xl", "xxl"].includes(m) ? "(max-width: ".concat(cE[m], ")") : m === "always" || m === "all" ? (m === "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(m, ")");
18559
+ return "(max-width: ".concat(m, ")");
18560
+ if (g)
18561
+ return ["xs", "sm", "md", "lg", "xl", "xxl"].includes(g) ? "(max-width: ".concat(cE[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, ")");
18562
18562
  }, P = ne.useRef();
18563
18563
  P.current = function(G) {
18564
18564
  i == null || i(G);
@@ -19061,7 +19061,7 @@ var BE = function(e, n) {
19061
19061
  function jE(t) {
19062
19062
  var e, n = t.state, r = t.name, a = t.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, s = mn(n.placement), l = Mu(s), c = [Bt, cn].indexOf(s) >= 0, d = c ? "height" : "width";
19063
19063
  if (!(!o || !i)) {
19064
- var u = BE(a.padding, n), f = Cu(o), h = l === "y" ? Wt : Bt, m = l === "y" ? ln : cn, g = n.rects.reference[d] + n.rects.reference[l] - i[l] - n.rects.popper[d], b = i[l] - n.rects.reference[l], y = gi(o), x = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = g / 2 - b / 2, w = u[h], v = x - f[d] - u[m], _ = x / 2 - f[d] / 2 + k, T = jo(w, _, v), D = l;
19064
+ var u = BE(a.padding, n), f = Cu(o), h = l === "y" ? Wt : Bt, g = l === "y" ? ln : cn, m = n.rects.reference[d] + n.rects.reference[l] - i[l] - n.rects.popper[d], b = i[l] - n.rects.reference[l], y = gi(o), x = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, k = m / 2 - b / 2, w = u[h], v = x - f[d] - u[g], _ = x / 2 - f[d] / 2 + k, T = jo(w, _, v), D = l;
19065
19065
  n.modifiersData[r] = (e = {}, e[D] = T, e.centerOffset = T - _, e);
19066
19066
  }
19067
19067
  }
@@ -19101,14 +19101,14 @@ function VE(t) {
19101
19101
  };
19102
19102
  }
19103
19103
  function Xg(t) {
19104
- var e, n = t.popper, r = t.popperRect, a = t.placement, o = t.variation, i = t.offsets, s = t.position, l = t.gpuAcceleration, c = t.adaptive, d = t.roundOffsets, u = t.isFixed, f = i.x, h = f === void 0 ? 0 : f, m = i.y, g = m === void 0 ? 0 : m, b = typeof d == "function" ? d({
19104
+ var e, n = t.popper, r = t.popperRect, a = t.placement, o = t.variation, i = t.offsets, s = t.position, l = t.gpuAcceleration, c = t.adaptive, d = t.roundOffsets, u = t.isFixed, f = i.x, h = f === void 0 ? 0 : f, g = i.y, m = g === void 0 ? 0 : g, b = typeof d == "function" ? d({
19105
19105
  x: h,
19106
- y: g
19106
+ y: m
19107
19107
  }) : {
19108
19108
  x: h,
19109
- y: g
19109
+ y: m
19110
19110
  };
19111
- h = b.x, g = b.y;
19111
+ h = b.x, m = b.y;
19112
19112
  var y = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), k = Bt, w = Wt, v = window;
19113
19113
  if (c) {
19114
19114
  var _ = gi(n), T = "clientHeight", D = "clientWidth";
@@ -19118,7 +19118,7 @@ function Xg(t) {
19118
19118
  // $FlowFixMe[prop-missing]
19119
19119
  _[T]
19120
19120
  );
19121
- g -= P - r.height, g *= l ? 1 : -1;
19121
+ m -= P - r.height, m *= l ? 1 : -1;
19122
19122
  }
19123
19123
  if (a === Bt || (a === Wt || a === ln) && o === ri) {
19124
19124
  k = cn;
@@ -19133,16 +19133,16 @@ function Xg(t) {
19133
19133
  position: s
19134
19134
  }, c && YE), L = d === !0 ? VE({
19135
19135
  x: h,
19136
- y: g
19136
+ y: m
19137
19137
  }) : {
19138
19138
  x: h,
19139
- y: g
19139
+ y: m
19140
19140
  };
19141
- if (h = L.x, g = L.y, l) {
19141
+ if (h = L.x, m = L.y, l) {
19142
19142
  var S;
19143
- return Object.assign({}, H, (S = {}, S[w] = x ? "0" : "", S[k] = y ? "0" : "", S.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", S));
19143
+ return Object.assign({}, H, (S = {}, S[w] = x ? "0" : "", S[k] = y ? "0" : "", S.transform = (v.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", S));
19144
19144
  }
19145
- return Object.assign({}, H, (e = {}, e[w] = x ? g + "px" : "", e[k] = y ? h + "px" : "", e.transform = "", e));
19145
+ return Object.assign({}, H, (e = {}, e[w] = x ? m + "px" : "", e[k] = y ? h + "px" : "", e.transform = "", e));
19146
19146
  }
19147
19147
  function qE(t) {
19148
19148
  var e = t.state, n = t.options, r = n.gpuAcceleration, a = r === void 0 ? !0 : r, o = n.adaptive, i = o === void 0 ? !0 : o, s = n.roundOffsets, l = s === void 0 ? !0 : s;
@@ -19351,7 +19351,7 @@ function Fy(t) {
19351
19351
  }
19352
19352
  function ai(t, e) {
19353
19353
  e === void 0 && (e = {});
19354
- var n = e, r = n.placement, a = r === void 0 ? t.placement : r, o = n.strategy, i = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? _E : s, c = n.rootBoundary, d = c === void 0 ? Ey : c, u = n.elementContext, f = u === void 0 ? vo : u, h = n.altBoundary, m = h === void 0 ? !1 : h, g = n.padding, b = g === void 0 ? 0 : g, y = Iy(typeof b != "number" ? b : Ay(b, hi)), x = f === vo ? SE : vo, k = t.rects.popper, w = t.elements[m ? x : f], v = nP(ca(w) ? w : w.contextElement || Mr(t.elements.popper), l, d, i), _ = qa(t.elements.reference), T = Fy({
19354
+ var n = e, r = n.placement, a = r === void 0 ? t.placement : r, o = n.strategy, i = o === void 0 ? t.strategy : o, s = n.boundary, l = s === void 0 ? _E : s, c = n.rootBoundary, d = c === void 0 ? Ey : c, u = n.elementContext, f = u === void 0 ? vo : u, h = n.altBoundary, g = h === void 0 ? !1 : h, m = n.padding, b = m === void 0 ? 0 : m, y = Iy(typeof b != "number" ? b : Ay(b, hi)), x = f === vo ? SE : vo, k = t.rects.popper, w = t.elements[g ? x : f], v = nP(ca(w) ? w : w.contextElement || Mr(t.elements.popper), l, d, i), _ = qa(t.elements.reference), T = Fy({
19355
19355
  reference: _,
19356
19356
  element: k,
19357
19357
  placement: a
@@ -19372,22 +19372,22 @@ function ai(t, e) {
19372
19372
  }
19373
19373
  function rP(t, e) {
19374
19374
  e === void 0 && (e = {});
19375
- var n = e, r = n.placement, a = n.boundary, o = n.rootBoundary, i = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Py : l, d = Ua(r), u = d ? s ? qg : qg.filter(function(m) {
19376
- return Ua(m) === d;
19377
- }) : hi, f = u.filter(function(m) {
19378
- return c.indexOf(m) >= 0;
19375
+ var n = e, r = n.placement, a = n.boundary, o = n.rootBoundary, i = n.padding, s = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? Py : l, d = Ua(r), u = d ? s ? qg : qg.filter(function(g) {
19376
+ return Ua(g) === d;
19377
+ }) : hi, f = u.filter(function(g) {
19378
+ return c.indexOf(g) >= 0;
19379
19379
  });
19380
19380
  f.length === 0 && (f = u, process.env.NODE_ENV !== "production" && console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" ")));
19381
- var h = f.reduce(function(m, g) {
19382
- return m[g] = ai(t, {
19383
- placement: g,
19381
+ var h = f.reduce(function(g, m) {
19382
+ return g[m] = ai(t, {
19383
+ placement: m,
19384
19384
  boundary: a,
19385
19385
  rootBoundary: o,
19386
19386
  padding: i
19387
- })[mn(g)], m;
19387
+ })[mn(m)], g;
19388
19388
  }, {});
19389
- return Object.keys(h).sort(function(m, g) {
19390
- return h[m] - h[g];
19389
+ return Object.keys(h).sort(function(g, m) {
19390
+ return h[g] - h[m];
19391
19391
  });
19392
19392
  }
19393
19393
  function aP(t) {
@@ -19399,14 +19399,14 @@ function aP(t) {
19399
19399
  function oP(t) {
19400
19400
  var e = t.state, n = t.options, r = t.name;
19401
19401
  if (!e.modifiersData[r]._skip) {
19402
- for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, b = e.options.placement, y = mn(b), x = y === b, k = l || (x || !m ? [ds(b)] : aP(b)), w = [b].concat(k).reduce(function(R, C) {
19402
+ for (var a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !0 : i, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, g = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, b = e.options.placement, y = mn(b), x = y === b, k = l || (x || !g ? [ds(b)] : aP(b)), w = [b].concat(k).reduce(function(R, C) {
19403
19403
  return R.concat(mn(C) === Al ? rP(e, {
19404
19404
  placement: C,
19405
19405
  boundary: d,
19406
19406
  rootBoundary: u,
19407
19407
  padding: c,
19408
- flipVariations: m,
19409
- allowedAutoPlacements: g
19408
+ flipVariations: g,
19409
+ allowedAutoPlacements: m
19410
19410
  }) : C);
19411
19411
  }, []), v = e.rects.reference, _ = e.rects.popper, T = /* @__PURE__ */ new Map(), D = !0, P = w[0], M = 0; M < w.length; M++) {
19412
19412
  var H = w[M], L = mn(H), S = Ua(H) === Ya, O = [Wt, ln].indexOf(L) >= 0, E = O ? "width" : "height", F = ai(e, {
@@ -19427,7 +19427,7 @@ function oP(t) {
19427
19427
  T.set(H, ee);
19428
19428
  }
19429
19429
  if (D)
19430
- for (var N = m ? 3 : 1, Y = function(C) {
19430
+ for (var N = g ? 3 : 1, Y = function(C) {
19431
19431
  var z = w.find(function(Q) {
19432
19432
  var q = T.get(Q);
19433
19433
  if (q)
@@ -19537,14 +19537,14 @@ function gP(t) {
19537
19537
  return t === "x" ? "y" : "x";
19538
19538
  }
19539
19539
  function mP(t) {
19540
- var e = t.state, n = t.options, r = t.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !1 : i, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, u = n.padding, f = n.tether, h = f === void 0 ? !0 : f, m = n.tetherOffset, g = m === void 0 ? 0 : m, b = ai(e, {
19540
+ var e = t.state, n = t.options, r = t.name, a = n.mainAxis, o = a === void 0 ? !0 : a, i = n.altAxis, s = i === void 0 ? !1 : i, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, u = n.padding, f = n.tether, h = f === void 0 ? !0 : f, g = n.tetherOffset, m = g === void 0 ? 0 : g, b = ai(e, {
19541
19541
  boundary: l,
19542
19542
  rootBoundary: c,
19543
19543
  padding: u,
19544
19544
  altBoundary: d
19545
- }), y = mn(e.placement), x = Ua(e.placement), k = !x, w = Mu(y), v = gP(w), _ = e.modifiersData.popperOffsets, T = e.rects.reference, D = e.rects.popper, P = typeof g == "function" ? g(Object.assign({}, e.rects, {
19545
+ }), y = mn(e.placement), x = Ua(e.placement), k = !x, w = Mu(y), v = gP(w), _ = e.modifiersData.popperOffsets, T = e.rects.reference, D = e.rects.popper, P = typeof m == "function" ? m(Object.assign({}, e.rects, {
19546
19546
  placement: e.placement
19547
- })) : g, M = typeof P == "number" ? {
19547
+ })) : m, M = typeof P == "number" ? {
19548
19548
  mainAxis: P,
19549
19549
  altAxis: P
19550
19550
  } : Object.assign({
@@ -19746,7 +19746,7 @@ function EP(t) {
19746
19746
  state: d,
19747
19747
  setOptions: function(y) {
19748
19748
  var x = typeof y == "function" ? y(d.options) : y;
19749
- g(), d.options = Object.assign({}, o, d.options, x), d.scrollParents = {
19749
+ m(), d.options = Object.assign({}, o, d.options, x), d.scrollParents = {
19750
19750
  reference: ca(s) ? zo(s) : s.contextElement ? zo(s.contextElement) : [],
19751
19751
  popper: zo(l)
19752
19752
  };
@@ -19770,7 +19770,7 @@ function EP(t) {
19770
19770
  return parseFloat(H);
19771
19771
  }) && 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(" "));
19772
19772
  }
19773
- return m(), h.update();
19773
+ return g(), h.update();
19774
19774
  },
19775
19775
  // Sync update – it will always be executed, even if not necessary. This
19776
19776
  // is useful for low frequency updates where sync behavior simplifies the
@@ -19817,7 +19817,7 @@ function EP(t) {
19817
19817
  });
19818
19818
  }),
19819
19819
  destroy: function() {
19820
- g(), f = !0;
19820
+ m(), f = !0;
19821
19821
  }
19822
19822
  };
19823
19823
  if (!nm(s, l))
@@ -19825,7 +19825,7 @@ function EP(t) {
19825
19825
  h.setOptions(c).then(function(b) {
19826
19826
  !f && c.onFirstUpdate && c.onFirstUpdate(b);
19827
19827
  });
19828
- function m() {
19828
+ function g() {
19829
19829
  d.orderedModifiers.forEach(function(b) {
19830
19830
  var y = b.name, x = b.options, k = x === void 0 ? {} : x, w = b.effect;
19831
19831
  if (typeof w == "function") {
@@ -19840,7 +19840,7 @@ function EP(t) {
19840
19840
  }
19841
19841
  });
19842
19842
  }
19843
- function g() {
19843
+ function m() {
19844
19844
  u.forEach(function(b) {
19845
19845
  return b();
19846
19846
  }), u = [];
@@ -19965,7 +19965,7 @@ var PP = [KE, hP, UE, LE, uP, iP, pP, HE, lP], TP = /* @__PURE__ */ EP({
19965
19965
  var e = t.buttonStyles;
19966
19966
  return e;
19967
19967
  }), AP = function(t, e) {
19968
- var n, r = t.children, a = t.className, o = t.label, i = t.icon, s = t.title, l = t.prefix, c = t.suffix, d = t.open, u = t.defaultOpen, f = t.active, h = f === void 0 ? !1 : f, m = t.disabled, g = m === void 0 ? !1 : m, b = t.rootStyles, y = t.component, x = t.onOpenChange, k = t.onClick, w = t.onKeyUp, v = la(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), _ = ne.useContext(js), T = ne.useContext(Il), D = T.collapsed, P = T.rtl, M = T.transitionDuration, H = Ou(), L = H.renderExpandIcon, S = H.closeOnClick, O = H.menuItemStyles, E = H.transitionDuration, F = ne.useState(!!u), V = F[0], G = F[1], ee = ne.useState(!1), N = ee[0], Y = ee[1], A = ne.useState(!1), I = A[0], R = A[1], C = ne.useRef(null), z = ne.useRef(null), Q = ne.useRef(), q = NP({
19968
+ var n, r = t.children, a = t.className, o = t.label, i = t.icon, s = 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, b = t.rootStyles, y = t.component, x = t.onOpenChange, k = t.onClick, w = t.onKeyUp, v = la(t, ["children", "className", "label", "icon", "title", "prefix", "suffix", "open", "defaultOpen", "active", "disabled", "rootStyles", "component", "onOpenChange", "onClick", "onKeyUp"]), _ = ne.useContext(js), T = ne.useContext(Il), D = T.collapsed, P = T.rtl, M = T.transitionDuration, H = Ou(), L = H.renderExpandIcon, S = H.closeOnClick, O = H.menuItemStyles, E = H.transitionDuration, F = ne.useState(!!u), V = F[0], G = F[1], ee = ne.useState(!1), N = ee[0], Y = ee[1], A = ne.useState(!1), I = A[0], R = A[1], C = ne.useRef(null), z = ne.useRef(null), Q = ne.useRef(), q = NP({
19969
19969
  level: _,
19970
19970
  buttonRef: C,
19971
19971
  contentRef: z
@@ -19995,7 +19995,7 @@ var PP = [KE, hP, UE, LE, uP, iP, pP, HE, lP], TP = /* @__PURE__ */ EP({
19995
19995
  w == null || w(me), me.key === "Enter" && te();
19996
19996
  }, oe = function(me) {
19997
19997
  if (O) {
19998
- var ce = { level: _, disabled: g, active: h, isSubmenu: !0, open: d ?? V }, ie = O.root, Ve = O.button, be = O.label, He = O.icon, Ue = O.prefix, Ge = O.suffix, Yt = O.subMenuContent, Vt = O.SubMenuExpandIcon;
19998
+ var ce = { level: _, disabled: m, active: h, isSubmenu: !0, open: d ?? V }, ie = O.root, Ve = O.button, be = O.label, He = O.icon, Ue = O.prefix, Ge = O.suffix, Yt = O.subMenuContent, Vt = O.SubMenuExpandIcon;
19999
19999
  switch (me) {
20000
20000
  case "root":
20001
20001
  return typeof ie == "function" ? ie(ce) : ie;
@@ -20039,10 +20039,10 @@ var PP = [KE, hP, UE, LE, uP, iP, pP, HE, lP], TP = /* @__PURE__ */ EP({
20039
20039
  }, [D, _, S, N]), ne.useEffect(function() {
20040
20040
  R(!0);
20041
20041
  }, []);
20042
- var se = (n = {}, n[ke.active] = h, n[ke.disabled] = g, n[ke.open] = d ?? V, n);
20042
+ var se = (n = {}, n[ke.active] = h, n[ke.disabled] = m, n[ke.open] = d ?? V, n);
20043
20043
  return ne.createElement(
20044
20044
  IP,
20045
- { ref: e, className: ft(ke.menuItemRoot, ke.subMenuRoot, se, a), menuItemStyles: oe("root"), level: _, collapsed: D, rtl: P, disabled: g, active: h, buttonStyles: oe("button"), rootStyles: b },
20045
+ { ref: e, className: ft(ke.menuItemRoot, ke.subMenuRoot, se, a), menuItemStyles: oe("root"), level: _, collapsed: D, rtl: P, disabled: m, active: h, buttonStyles: oe("button"), rootStyles: b },
20046
20046
  ne.createElement(
20047
20047
  Wy,
20048
20048
  Gt({ "data-testid": "".concat(ke.button, "-test-id"), ref: C, title: s, className: ft(ke.button, se), onClick: $, onKeyUp: re, component: y, tabIndex: 0 }, v),
@@ -20052,7 +20052,7 @@ var PP = [KE, hP, UE, LE, uP, iP, pP, HE, lP], TP = /* @__PURE__ */ EP({
20052
20052
  c && ne.createElement(My, { collapsed: D, transitionDuration: M, firstLevel: _ === 0, className: ft(ke.suffix, se), rootStyles: oe("suffix") }, c),
20053
20053
  ne.createElement(vE, { rtl: P, className: ft(ke.SubMenuExpandIcon, se), collapsed: D, level: _, rootStyles: oe("SubMenuExpandIcon") }, L ? L({
20054
20054
  level: _,
20055
- disabled: g,
20055
+ disabled: m,
20056
20056
  active: h,
20057
20057
  open: d ?? V
20058
20058
  }) : D && _ === 0 ? ne.createElement(kE, null) : ne.createElement(xE, { rtl: P, open: d ?? V }))
@@ -20110,9 +20110,9 @@ var rm, LP = mt.li(am || (am = Ct([`
20110
20110
  var e = t.buttonStyles;
20111
20111
  return e;
20112
20112
  }), FP = function(t, e) {
20113
- var n, r = t.children, a = t.icon, o = t.className, i = t.prefix, s = 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, m = la(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), g = ne.useContext(js), b = ne.useContext(Il), y = b.collapsed, x = b.rtl, k = b.transitionDuration, w = Ou().menuItemStyles, v = function(T) {
20113
+ var n, r = t.children, a = t.icon, o = t.className, i = t.prefix, s = 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 = la(t, ["children", "icon", "className", "prefix", "suffix", "active", "disabled", "component", "rootStyles"]), m = ne.useContext(js), b = ne.useContext(Il), y = b.collapsed, x = b.rtl, k = b.transitionDuration, w = Ou().menuItemStyles, v = function(T) {
20114
20114
  if (w) {
20115
- var D = { level: g, disabled: u, active: c, isSubmenu: !1 }, P = w.root, M = w.button, H = w.label, L = w.icon, S = w.prefix, O = w.suffix;
20115
+ var D = { level: m, disabled: u, active: c, isSubmenu: !1 }, P = w.root, M = w.button, H = w.label, L = w.icon, S = w.prefix, O = w.suffix;
20116
20116
  switch (T) {
20117
20117
  case "root":
20118
20118
  return typeof P == "function" ? P(D) : P;
@@ -20133,14 +20133,14 @@ var rm, LP = mt.li(am || (am = Ct([`
20133
20133
  }, _ = (n = {}, n[ke.active] = c, n[ke.disabled] = u, n);
20134
20134
  return ne.createElement(
20135
20135
  LP,
20136
- { ref: e, className: ft(ke.menuItemRoot, _, o), menuItemStyles: v("root"), level: g, collapsed: y, rtl: x, disabled: u, active: c, buttonStyles: v("button"), rootStyles: h },
20136
+ { ref: e, className: ft(ke.menuItemRoot, _, o), menuItemStyles: v("root"), level: m, collapsed: y, rtl: x, disabled: u, active: c, buttonStyles: v("button"), rootStyles: h },
20137
20137
  ne.createElement(
20138
20138
  Wy,
20139
- Gt({ className: ft(ke.button, _), "data-testid": "".concat(ke.button, "-test-id"), component: f, tabIndex: 0 }, m),
20139
+ Gt({ className: ft(ke.button, _), "data-testid": "".concat(ke.button, "-test-id"), component: f, tabIndex: 0 }, g),
20140
20140
  a && ne.createElement(Dy, { rtl: x, className: ft(ke.icon, _), rootStyles: v("icon") }, a),
20141
- i && ne.createElement(Cy, { collapsed: y, transitionDuration: k, firstLevel: g === 0, className: ft(ke.prefix, _), rtl: x, rootStyles: v("prefix") }, i),
20141
+ i && ne.createElement(Cy, { collapsed: y, transitionDuration: k, firstLevel: m === 0, className: ft(ke.prefix, _), rtl: x, rootStyles: v("prefix") }, i),
20142
20142
  ne.createElement(Oy, { className: ft(ke.label, _), rootStyles: v("label") }, r),
20143
- s && ne.createElement(My, { collapsed: y, transitionDuration: k, firstLevel: g === 0, className: ft(ke.suffix, _), rootStyles: v("suffix") }, s)
20143
+ s && ne.createElement(My, { collapsed: y, transitionDuration: k, firstLevel: m === 0, className: ft(ke.suffix, _), rootStyles: v("suffix") }, s)
20144
20144
  )
20145
20145
  );
20146
20146
  }, $P = ne.forwardRef(FP), am;
@@ -20188,7 +20188,7 @@ const OF = ({
20188
20188
  textColor: s = "#ffffff",
20189
20189
  className: l = ""
20190
20190
  }) => {
20191
- const [c, d] = ge(o), [u, f] = ge(null), [h, m] = ge(/* @__PURE__ */ new Set()), [g, b] = ge(null), [y, x] = ge(null), k = n.filter((S) => S.position !== "bottom"), w = n.filter((S) => S.position === "bottom"), v = (S) => typeof S == "string" ? /* @__PURE__ */ p("img", { src: S, style: { width: "20px", height: "20px" } }) : S ? ne.createElement(S, { style: { width: "20px", height: "20px" } }) : null, _ = (S = !1, O = !1) => ({
20191
+ const [c, d] = ge(o), [u, f] = ge(null), [h, g] = ge(/* @__PURE__ */ new Set()), [m, b] = ge(null), [y, x] = ge(null), k = n.filter((S) => S.position !== "bottom"), w = n.filter((S) => S.position === "bottom"), v = (S) => typeof S == "string" ? /* @__PURE__ */ p("img", { src: S, style: { width: "20px", height: "20px" } }) : S ? ne.createElement(S, { style: { width: "20px", height: "20px" } }) : null, _ = (S = !1, O = !1) => ({
20192
20192
  background: c ? "transparent" : O ? "#FFFFFF55" : S ? "#FFFFFF22" : "#FFFFFF33",
20193
20193
  color: s,
20194
20194
  borderRadius: S ? "15px" : "20px",
@@ -20199,7 +20199,7 @@ const OF = ({
20199
20199
  fontSize: S ? "0.9rem" : void 0
20200
20200
  }
20201
20201
  }), T = (S, O = !1, E) => {
20202
- const F = O ? y === S.id : g === S.id;
20202
+ const F = O ? y === S.id : m === S.id;
20203
20203
  return /* @__PURE__ */ p(
20204
20204
  $P,
20205
20205
  {
@@ -20227,11 +20227,11 @@ const OF = ({
20227
20227
  ] }, O.id)), P = () => {
20228
20228
  u || d(!1);
20229
20229
  }, M = () => {
20230
- u || (d(!0), m(/* @__PURE__ */ new Set()));
20230
+ u || (d(!0), g(/* @__PURE__ */ new Set()));
20231
20231
  }, H = (S, O) => {
20232
20232
  if (O ? (b(O), x(S.id)) : (b(S.id), x(null)), S.subMenuSection) {
20233
20233
  const E = new Set(h);
20234
- E.has(S.id) ? E.delete(S.id) : E.add(S.id), m(E);
20234
+ E.has(S.id) ? E.delete(S.id) : E.add(S.id), g(E);
20235
20235
  } else S.action ? S.action() : S.href && (S.target === "_blank" ? window.open(S.href, "_blank") : window.location.href = S.href);
20236
20236
  }, L = (S) => {
20237
20237
  S.action ? S.action() : S.href && (S.target === "_blank" ? window.open(S.href, "_blank") : window.location.href = S.href);
@@ -20431,11 +20431,11 @@ function Hy({
20431
20431
  onBackgroundColor: "#DEE9FF",
20432
20432
  onCircleColor: "#191960",
20433
20433
  onCircleBorderColor: "#191960"
20434
- }, ...s }, m = (D) => {
20434
+ }, ...s }, g = (D) => {
20435
20435
  if (o) return;
20436
20436
  const P = D.target.checked;
20437
20437
  u(P), i == null || i(P);
20438
- }, g = d ? h.onBackgroundColor : h.offBackgroundColor, b = d ? h.onCircleColor : h.offCircleColor, y = d ? h.onCircleBorderColor : h.offCircleBorderColor, x = t || n || r || e, k = `text-sm ${o ? "text-gray-500" : "text-gray-700"}`, w = t && /* @__PURE__ */ p("span", { className: !d && c ? "font-bold " + k : k, children: t }), v = e && /* @__PURE__ */ p("span", { className: d && c ? "font-bold " + k : k, children: e }), _ = /* @__PURE__ */ j(
20438
+ }, m = d ? h.onBackgroundColor : h.offBackgroundColor, b = d ? h.onCircleColor : h.offCircleColor, y = d ? h.onCircleBorderColor : h.offCircleBorderColor, x = t || n || r || e, k = `text-sm ${o ? "text-gray-500" : "text-gray-700"}`, w = t && /* @__PURE__ */ p("span", { className: !d && c ? "font-bold " + k : k, children: t }), v = e && /* @__PURE__ */ p("span", { className: d && c ? "font-bold " + k : k, children: e }), _ = /* @__PURE__ */ j(
20439
20439
  "label",
20440
20440
  {
20441
20441
  className: `inline-flex items-center ${o ? "cursor-not-allowed opacity-60" : "cursor-pointer"}`,
@@ -20446,7 +20446,7 @@ function Hy({
20446
20446
  type: "checkbox",
20447
20447
  className: "peer sr-only",
20448
20448
  checked: d,
20449
- onChange: m,
20449
+ onChange: g,
20450
20450
  disabled: o
20451
20451
  }
20452
20452
  ),
@@ -20461,8 +20461,8 @@ function Hy({
20461
20461
  peer-checked:after:translate-x-full
20462
20462
  dark:peer-focus:ring-blue-800 rtl:peer-checked:after:-translate-x-full`,
20463
20463
  style: {
20464
- backgroundColor: g,
20465
- borderColor: g,
20464
+ backgroundColor: m,
20465
+ borderColor: m,
20466
20466
  "--circle-color": b,
20467
20467
  "--circle-border-color": y
20468
20468
  }
@@ -20498,7 +20498,7 @@ const DF = ({
20498
20498
  onRowSelect: u,
20499
20499
  onSelectAll: f
20500
20500
  }) => {
20501
- const [h, m] = B.useState(""), [g, b] = B.useState(1), [y, x] = B.useState(null), k = B.useMemo(() => y ? [...e].sort((S, O) => {
20501
+ const [h, g] = B.useState(""), [m, b] = B.useState(1), [y, x] = B.useState(null), k = B.useMemo(() => y ? [...e].sort((S, O) => {
20502
20502
  const E = S[y.key], F = O[y.key];
20503
20503
  return E == null || F == null ? 0 : typeof E == "string" && typeof F == "string" ? y.direction === "asc" ? E.localeCompare(F) : F.localeCompare(E) : y.direction === "asc" ? Number(E) - Number(F) : Number(F) - Number(E);
20504
20504
  }) : e, [e, y]), w = B.useMemo(() => h.trim() ? k.filter(
@@ -20507,9 +20507,9 @@ const DF = ({
20507
20507
  return E != null && String(E).toLowerCase().includes(h.toLowerCase().trim());
20508
20508
  })
20509
20509
  ) : k, [k, h, t]), v = B.useMemo(() => {
20510
- const S = (g - 1) * r, O = S + r;
20510
+ const S = (m - 1) * r, O = S + r;
20511
20511
  return w.slice(S, O);
20512
- }, [w, g, r]), _ = Math.ceil(w.length / r), T = () => {
20512
+ }, [w, m, r]), _ = Math.ceil(w.length / r), T = () => {
20513
20513
  if (f) {
20514
20514
  const S = v.length > 0 && v.every((O) => c.has(O.id));
20515
20515
  f(!S);
@@ -20561,7 +20561,7 @@ const DF = ({
20561
20561
  rightIcon: qm,
20562
20562
  placeholder: "Buscar",
20563
20563
  value: h,
20564
- onChange: (S) => m(S.target.value)
20564
+ onChange: (S) => g(S.target.value)
20565
20565
  }
20566
20566
  ) }) }),
20567
20567
  /* @__PURE__ */ j("div", { className: "mt-0", children: [
@@ -20636,7 +20636,7 @@ const DF = ({
20636
20636
  s && _ > 1 && /* @__PURE__ */ p("div", { className: "mt-2 flex w-full justify-end", children: /* @__PURE__ */ p(
20637
20637
  zy,
20638
20638
  {
20639
- currentPage: g,
20639
+ currentPage: m,
20640
20640
  totalPages: _,
20641
20641
  onPageChange: b
20642
20642
  }
@@ -22476,17 +22476,17 @@ const pm = {
22476
22476
  (b) => {
22477
22477
  if (b.preventDefault(), b.stopPropagation(), s(!1), o) return;
22478
22478
  const y = Array.from(b.dataTransfer.files);
22479
- y.length > 0 && g(y);
22479
+ y.length > 0 && m(y);
22480
22480
  },
22481
22481
  [o, e, n, r, t]
22482
- ), m = Ur(
22482
+ ), g = Ur(
22483
22483
  (b) => {
22484
22484
  if (o) return;
22485
22485
  const y = Array.from(b.target.files || []);
22486
- y.length > 0 && g(y), l.current && (l.current.value = "");
22486
+ y.length > 0 && m(y), l.current && (l.current.value = "");
22487
22487
  },
22488
22488
  [o, e, n, r, t]
22489
- ), g = Ur(
22489
+ ), m = Ur(
22490
22490
  (b) => {
22491
22491
  if (!r && b.length > 1) {
22492
22492
  alert("Solo se permite un archivo");
@@ -22539,7 +22539,7 @@ const pm = {
22539
22539
  {
22540
22540
  id: "dropzone-file",
22541
22541
  className: "hidden",
22542
- onChange: m,
22542
+ onChange: g,
22543
22543
  accept: c,
22544
22544
  multiple: r,
22545
22545
  ref: l,
@@ -22624,13 +22624,13 @@ function IF({
22624
22624
  defaultActiveTab: s,
22625
22625
  onTabChange: l
22626
22626
  }) {
22627
- var m, g;
22628
- const [c, d] = ge(s || ((m = t[0]) == null ? void 0 : m.id) || ""), u = (b) => {
22627
+ var g, m;
22628
+ const [c, d] = ge(s || ((g = t[0]) == null ? void 0 : g.id) || ""), u = (b) => {
22629
22629
  d(b), l == null || l(b);
22630
22630
  }, f = (b) => {
22631
22631
  const y = b.target.value;
22632
22632
  d(y), l == null || l(y);
22633
- }, h = (g = t.find((b) => b.id === c)) == null ? void 0 : g.content;
22633
+ }, h = (m = t.find((b) => b.id === c)) == null ? void 0 : m.content;
22634
22634
  return /* @__PURE__ */ j("div", { className: `${e} tabs-container`, children: [
22635
22635
  /* @__PURE__ */ j("div", { className: "mb-4 sm:hidden", children: [
22636
22636
  /* @__PURE__ */ p("label", { htmlFor: "tabs-select", className: "sr-only", children: "Selecciona una pestaña" }),
@@ -22677,7 +22677,7 @@ var ym;
22677
22677
  function $N() {
22678
22678
  if (ym) return Oe;
22679
22679
  ym = 1;
22680
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = 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, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
22680
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = 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, b = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
22681
22681
  function k(v) {
22682
22682
  if (typeof v == "object" && v !== null) {
22683
22683
  var _ = v.$$typeof;
@@ -22695,7 +22695,7 @@ function $N() {
22695
22695
  switch (v = v && v.$$typeof, v) {
22696
22696
  case s:
22697
22697
  case d:
22698
- case m:
22698
+ case g:
22699
22699
  case h:
22700
22700
  case i:
22701
22701
  return v;
@@ -22711,7 +22711,7 @@ function $N() {
22711
22711
  function w(v) {
22712
22712
  return k(v) === c;
22713
22713
  }
22714
- return Oe.AsyncMode = l, Oe.ConcurrentMode = c, Oe.ContextConsumer = s, Oe.ContextProvider = i, Oe.Element = e, Oe.ForwardRef = d, Oe.Fragment = r, Oe.Lazy = m, Oe.Memo = h, Oe.Portal = n, Oe.Profiler = o, Oe.StrictMode = a, Oe.Suspense = u, Oe.isAsyncMode = function(v) {
22714
+ return Oe.AsyncMode = l, Oe.ConcurrentMode = c, Oe.ContextConsumer = s, Oe.ContextProvider = i, Oe.Element = e, Oe.ForwardRef = d, Oe.Fragment = r, Oe.Lazy = g, Oe.Memo = h, Oe.Portal = n, Oe.Profiler = o, Oe.StrictMode = a, Oe.Suspense = u, Oe.isAsyncMode = function(v) {
22715
22715
  return w(v) || k(v) === l;
22716
22716
  }, Oe.isConcurrentMode = w, Oe.isContextConsumer = function(v) {
22717
22717
  return k(v) === s;
@@ -22724,7 +22724,7 @@ function $N() {
22724
22724
  }, Oe.isFragment = function(v) {
22725
22725
  return k(v) === r;
22726
22726
  }, Oe.isLazy = function(v) {
22727
- return k(v) === m;
22727
+ return k(v) === g;
22728
22728
  }, Oe.isMemo = function(v) {
22729
22729
  return k(v) === h;
22730
22730
  }, Oe.isPortal = function(v) {
@@ -22736,7 +22736,7 @@ function $N() {
22736
22736
  }, Oe.isSuspense = function(v) {
22737
22737
  return k(v) === u;
22738
22738
  }, Oe.isValidElementType = function(v) {
22739
- return typeof v == "string" || typeof v == "function" || v === r || v === c || v === o || v === a || v === u || v === f || typeof v == "object" && v !== null && (v.$$typeof === m || v.$$typeof === h || v.$$typeof === i || v.$$typeof === s || v.$$typeof === d || v.$$typeof === b || v.$$typeof === y || v.$$typeof === x || v.$$typeof === g);
22739
+ return typeof v == "string" || typeof v == "function" || v === r || v === c || v === o || v === a || v === u || v === f || typeof v == "object" && v !== null && (v.$$typeof === g || v.$$typeof === h || v.$$typeof === i || v.$$typeof === s || v.$$typeof === d || v.$$typeof === b || v.$$typeof === y || v.$$typeof === x || v.$$typeof === m);
22740
22740
  }, Oe.typeOf = k, Oe;
22741
22741
  }
22742
22742
  var De = {};
@@ -22751,10 +22751,10 @@ var De = {};
22751
22751
  var wm;
22752
22752
  function WN() {
22753
22753
  return wm || (wm = 1, process.env.NODE_ENV !== "production" && function() {
22754
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = 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, m = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
22754
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = 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, b = t ? Symbol.for("react.fundamental") : 60117, y = t ? Symbol.for("react.responder") : 60118, x = t ? Symbol.for("react.scope") : 60119;
22755
22755
  function k($) {
22756
22756
  return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
22757
- $ === r || $ === c || $ === o || $ === a || $ === u || $ === f || typeof $ == "object" && $ !== null && ($.$$typeof === m || $.$$typeof === h || $.$$typeof === i || $.$$typeof === s || $.$$typeof === d || $.$$typeof === b || $.$$typeof === y || $.$$typeof === x || $.$$typeof === g);
22757
+ $ === r || $ === c || $ === o || $ === a || $ === u || $ === f || typeof $ == "object" && $ !== null && ($.$$typeof === g || $.$$typeof === h || $.$$typeof === i || $.$$typeof === s || $.$$typeof === d || $.$$typeof === b || $.$$typeof === y || $.$$typeof === x || $.$$typeof === m);
22758
22758
  }
22759
22759
  function w($) {
22760
22760
  if (typeof $ == "object" && $ !== null) {
@@ -22775,7 +22775,7 @@ function WN() {
22775
22775
  switch (se) {
22776
22776
  case s:
22777
22777
  case d:
22778
- case m:
22778
+ case g:
22779
22779
  case h:
22780
22780
  case i:
22781
22781
  return se;
@@ -22788,7 +22788,7 @@ function WN() {
22788
22788
  }
22789
22789
  }
22790
22790
  }
22791
- var v = l, _ = c, T = s, D = i, P = e, M = d, H = r, L = m, S = h, O = n, E = o, F = a, V = u, G = !1;
22791
+ var v = l, _ = c, T = s, D = i, P = e, M = d, H = r, L = g, S = h, O = n, E = o, F = a, V = u, G = !1;
22792
22792
  function ee($) {
22793
22793
  return G || (G = !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.")), N($) || w($) === l;
22794
22794
  }
@@ -22811,7 +22811,7 @@ function WN() {
22811
22811
  return w($) === r;
22812
22812
  }
22813
22813
  function z($) {
22814
- return w($) === m;
22814
+ return w($) === g;
22815
22815
  }
22816
22816
  function Q($) {
22817
22817
  return w($) === h;
@@ -22927,8 +22927,8 @@ function jN() {
22927
22927
  throw f.name = "Invariant Violation", f;
22928
22928
  }
22929
22929
  u = o[d](i, d, l, s, null, e);
22930
- } catch (m) {
22931
- u = m;
22930
+ } catch (g) {
22931
+ u = g;
22932
22932
  }
22933
22933
  if (u && !(u instanceof Error) && t(
22934
22934
  (l || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -22991,13 +22991,13 @@ function zN() {
22991
22991
  shape: L,
22992
22992
  exact: S
22993
22993
  };
22994
- function m(N, Y) {
22994
+ function g(N, Y) {
22995
22995
  return N === Y ? N !== 0 || 1 / N === 1 / Y : N !== N && Y !== Y;
22996
22996
  }
22997
- function g(N, Y) {
22997
+ function m(N, Y) {
22998
22998
  this.message = N, this.data = Y && typeof Y == "object" ? Y : {}, this.stack = "";
22999
22999
  }
23000
- g.prototype = Error.prototype;
23000
+ m.prototype = Error.prototype;
23001
23001
  function b(N) {
23002
23002
  if (process.env.NODE_ENV !== "production")
23003
23003
  var Y = {}, A = 0;
@@ -23016,7 +23016,7 @@ function zN() {
23016
23016
  ), Y[re] = !0, A++);
23017
23017
  }
23018
23018
  }
23019
- return z[Q] == null ? C ? z[Q] === null ? new g("The " + Z + " `" + W + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new g("The " + Z + " `" + W + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : N(z, Q, q, Z, W);
23019
+ return z[Q] == null ? C ? z[Q] === null ? new m("The " + Z + " `" + W + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new m("The " + Z + " `" + W + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : N(z, Q, q, Z, W);
23020
23020
  }
23021
23021
  var R = I.bind(null, !1);
23022
23022
  return R.isRequired = I.bind(null, !0), R;
@@ -23026,7 +23026,7 @@ function zN() {
23026
23026
  var q = A[I], Z = F(q);
23027
23027
  if (Z !== N) {
23028
23028
  var W = V(q);
23029
- return new g(
23029
+ return new m(
23030
23030
  "Invalid " + C + " `" + z + "` of type " + ("`" + W + "` supplied to `" + R + "`, expected ") + ("`" + N + "`."),
23031
23031
  { expectedType: N }
23032
23032
  );
@@ -23041,11 +23041,11 @@ function zN() {
23041
23041
  function k(N) {
23042
23042
  function Y(A, I, R, C, z) {
23043
23043
  if (typeof N != "function")
23044
- return new g("Property `" + z + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
23044
+ return new m("Property `" + z + "` of component `" + R + "` has invalid PropType notation inside arrayOf.");
23045
23045
  var Q = A[I];
23046
23046
  if (!Array.isArray(Q)) {
23047
23047
  var q = F(Q);
23048
- return new g("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an array."));
23048
+ return new m("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an array."));
23049
23049
  }
23050
23050
  for (var Z = 0; Z < Q.length; Z++) {
23051
23051
  var W = N(Q, Z, R, C, z + "[" + Z + "]", n);
@@ -23061,7 +23061,7 @@ function zN() {
23061
23061
  var z = Y[A];
23062
23062
  if (!s(z)) {
23063
23063
  var Q = F(z);
23064
- return new g("Invalid " + R + " `" + C + "` of type " + ("`" + Q + "` supplied to `" + I + "`, expected a single ReactElement."));
23064
+ return new m("Invalid " + R + " `" + C + "` of type " + ("`" + Q + "` supplied to `" + I + "`, expected a single ReactElement."));
23065
23065
  }
23066
23066
  return null;
23067
23067
  }
@@ -23072,7 +23072,7 @@ function zN() {
23072
23072
  var z = Y[A];
23073
23073
  if (!t.isValidElementType(z)) {
23074
23074
  var Q = F(z);
23075
- return new g("Invalid " + R + " `" + C + "` of type " + ("`" + Q + "` supplied to `" + I + "`, expected a single ReactElement type."));
23075
+ return new m("Invalid " + R + " `" + C + "` of type " + ("`" + Q + "` supplied to `" + I + "`, expected a single ReactElement type."));
23076
23076
  }
23077
23077
  return null;
23078
23078
  }
@@ -23082,7 +23082,7 @@ function zN() {
23082
23082
  function Y(A, I, R, C, z) {
23083
23083
  if (!(A[I] instanceof N)) {
23084
23084
  var Q = N.name || f, q = ee(A[I]);
23085
- return new g("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("instance of `" + Q + "`."));
23085
+ return new m("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected ") + ("instance of `" + Q + "`."));
23086
23086
  }
23087
23087
  return null;
23088
23088
  }
@@ -23095,23 +23095,23 @@ function zN() {
23095
23095
  ) : o("Invalid argument supplied to oneOf, expected an array.")), i;
23096
23096
  function Y(A, I, R, C, z) {
23097
23097
  for (var Q = A[I], q = 0; q < N.length; q++)
23098
- if (m(Q, N[q]))
23098
+ if (g(Q, N[q]))
23099
23099
  return null;
23100
23100
  var Z = JSON.stringify(N, function(te, $) {
23101
23101
  var re = V($);
23102
23102
  return re === "symbol" ? String($) : $;
23103
23103
  });
23104
- return new g("Invalid " + C + " `" + z + "` of value `" + String(Q) + "` " + ("supplied to `" + R + "`, expected one of " + Z + "."));
23104
+ return new m("Invalid " + C + " `" + z + "` of value `" + String(Q) + "` " + ("supplied to `" + R + "`, expected one of " + Z + "."));
23105
23105
  }
23106
23106
  return b(Y);
23107
23107
  }
23108
23108
  function D(N) {
23109
23109
  function Y(A, I, R, C, z) {
23110
23110
  if (typeof N != "function")
23111
- return new g("Property `" + z + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
23111
+ return new m("Property `" + z + "` of component `" + R + "` has invalid PropType notation inside objectOf.");
23112
23112
  var Q = A[I], q = F(Q);
23113
23113
  if (q !== "object")
23114
- return new g("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an object."));
23114
+ return new m("Invalid " + C + " `" + z + "` of type " + ("`" + q + "` supplied to `" + R + "`, expected an object."));
23115
23115
  for (var Z in Q)
23116
23116
  if (r(Q, Z)) {
23117
23117
  var W = N(Q, Z, R, C, z + "." + Z, n);
@@ -23140,18 +23140,18 @@ function zN() {
23140
23140
  $.data && r($.data, "expectedType") && Z.push($.data.expectedType);
23141
23141
  }
23142
23142
  var re = Z.length > 0 ? ", expected one of type [" + Z.join(", ") + "]" : "";
23143
- return new g("Invalid " + Q + " `" + q + "` supplied to " + ("`" + z + "`" + re + "."));
23143
+ return new m("Invalid " + Q + " `" + q + "` supplied to " + ("`" + z + "`" + re + "."));
23144
23144
  }
23145
23145
  return b(I);
23146
23146
  }
23147
23147
  function M() {
23148
23148
  function N(Y, A, I, R, C) {
23149
- return O(Y[A]) ? null : new g("Invalid " + R + " `" + C + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
23149
+ return O(Y[A]) ? null : new m("Invalid " + R + " `" + C + "` supplied to " + ("`" + I + "`, expected a ReactNode."));
23150
23150
  }
23151
23151
  return b(N);
23152
23152
  }
23153
23153
  function H(N, Y, A, I, R) {
23154
- return new g(
23154
+ return new m(
23155
23155
  (N || "React class") + ": " + Y + " type `" + A + "." + I + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + R + "`."
23156
23156
  );
23157
23157
  }
@@ -23159,7 +23159,7 @@ function zN() {
23159
23159
  function Y(A, I, R, C, z) {
23160
23160
  var Q = A[I], q = F(Q);
23161
23161
  if (q !== "object")
23162
- return new g("Invalid " + C + " `" + z + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
23162
+ return new m("Invalid " + C + " `" + z + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
23163
23163
  for (var Z in N) {
23164
23164
  var W = N[Z];
23165
23165
  if (typeof W != "function")
@@ -23176,14 +23176,14 @@ function zN() {
23176
23176
  function Y(A, I, R, C, z) {
23177
23177
  var Q = A[I], q = F(Q);
23178
23178
  if (q !== "object")
23179
- return new g("Invalid " + C + " `" + z + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
23179
+ return new m("Invalid " + C + " `" + z + "` of type `" + q + "` " + ("supplied to `" + R + "`, expected `object`."));
23180
23180
  var Z = e({}, A[I], N);
23181
23181
  for (var W in Z) {
23182
23182
  var te = N[W];
23183
23183
  if (r(N, W) && typeof te != "function")
23184
23184
  return H(R, C, z, W, V(te));
23185
23185
  if (!te)
23186
- return new g(
23186
+ return new m(
23187
23187
  "Invalid " + C + " `" + z + "` key `" + W + "` supplied to `" + R + "`.\nBad object: " + JSON.stringify(A[I], null, " ") + `
23188
23188
  Valid keys: ` + JSON.stringify(Object.keys(N), null, " ")
23189
23189
  );
@@ -23355,8 +23355,8 @@ function _a(t, e, n) {
23355
23355
  hours: s = 0,
23356
23356
  minutes: l = 0,
23357
23357
  seconds: c = 0
23358
- } = e, d = K(t, n == null ? void 0 : n.in), u = a || r ? Si(d, a + r * 12) : d, f = i || o ? un(u, i + o * 7) : u, h = l + s * 60, g = (c + h * 60) * 1e3;
23359
- return le((n == null ? void 0 : n.in) || t, +f + g);
23358
+ } = e, d = K(t, n == null ? void 0 : n.in), u = a || r ? Si(d, a + r * 12) : d, f = i || o ? un(u, i + o * 7) : u, h = l + s * 60, m = (c + h * 60) * 1e3;
23359
+ return le((n == null ? void 0 : n.in) || t, +f + m);
23360
23360
  }
23361
23361
  function Kw(t, e) {
23362
23362
  return K(t, e == null ? void 0 : e.in).getDay() === 6;
@@ -24982,8 +24982,8 @@ function aI(t, e, n) {
24982
24982
  }
24983
24983
  const oI = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, iI = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, sI = /^'([^]*?)'?$/, lI = /''/g, cI = /[a-zA-Z]/;
24984
24984
  function il(t, e, n) {
24985
- var d, u, f, h, m, g, b, y;
24986
- const r = Rt(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? co, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((g = (m = n == null ? void 0 : n.locale) == null ? void 0 : m.options) == null ? void 0 : g.weekStartsOn) ?? r.weekStartsOn ?? ((y = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : y.weekStartsOn) ?? 0, s = K(t, n == null ? void 0 : n.in);
24985
+ var d, u, f, h, g, m, b, y;
24986
+ const r = Rt(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? co, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((u = (d = n == null ? void 0 : n.locale) == null ? void 0 : d.options) == null ? void 0 : u.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((h = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = (n == null ? void 0 : n.weekStartsOn) ?? ((m = (g = n == null ? void 0 : n.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? r.weekStartsOn ?? ((y = (b = r.locale) == null ? void 0 : b.options) == null ? void 0 : y.weekStartsOn) ?? 0, s = K(t, n == null ? void 0 : n.in);
24987
24987
  if (!or(s))
24988
24988
  throw new RangeError("Invalid time value");
24989
24989
  let l = e.match(iI).map((x) => {
@@ -25043,23 +25043,23 @@ function vv(t, e, n) {
25043
25043
  if (f < 90)
25044
25044
  return a.formatDistance("aboutXHours", 1, s);
25045
25045
  if (f < Js) {
25046
- const m = Math.round(f / 60);
25047
- return a.formatDistance("aboutXHours", m, s);
25046
+ const g = Math.round(f / 60);
25047
+ return a.formatDistance("aboutXHours", g, s);
25048
25048
  } else {
25049
25049
  if (f < o)
25050
25050
  return a.formatDistance("xDays", 1, s);
25051
25051
  if (f < Ma) {
25052
- const m = Math.round(f / Js);
25053
- return a.formatDistance("xDays", m, s);
25052
+ const g = Math.round(f / Js);
25053
+ return a.formatDistance("xDays", g, s);
25054
25054
  } else if (f < Ma * 2)
25055
25055
  return h = Math.round(f / Ma), a.formatDistance("aboutXMonths", h, s);
25056
25056
  }
25057
25057
  if (h = Vl(c, l), h < 12) {
25058
- const m = Math.round(f / Ma);
25059
- return a.formatDistance("xMonths", m, s);
25058
+ const g = Math.round(f / Ma);
25059
+ return a.formatDistance("xMonths", g, s);
25060
25060
  } else {
25061
- const m = h % 12, g = Math.trunc(h / 12);
25062
- return m < 3 ? a.formatDistance("aboutXYears", g, s) : m < 9 ? a.formatDistance("overXYears", g, s) : a.formatDistance("almostXYears", g + 1, s);
25061
+ const g = h % 12, m = Math.trunc(h / 12);
25062
+ return g < 3 ? a.formatDistance("aboutXYears", m, s) : g < 9 ? a.formatDistance("overXYears", m, s) : a.formatDistance("almostXYears", m + 1, s);
25063
25063
  }
25064
25064
  }
25065
25065
  function xv(t, e, n) {
@@ -25072,23 +25072,23 @@ function xv(t, e, n) {
25072
25072
  }), [s, l] = Ie(
25073
25073
  n == null ? void 0 : n.in,
25074
25074
  ...o > 0 ? [e, t] : [t, e]
25075
- ), c = Er((n == null ? void 0 : n.roundingMethod) ?? "round"), d = l.getTime() - s.getTime(), u = d / ar, f = Ht(l) - Ht(s), h = (d - f) / ar, m = n == null ? void 0 : n.unit;
25076
- let g;
25077
- if (m ? g = m : u < 1 ? g = "second" : u < 60 ? g = "minute" : u < Js ? g = "hour" : h < Ma ? g = "day" : h < Cm ? g = "month" : g = "year", g === "second") {
25075
+ ), c = Er((n == null ? void 0 : n.roundingMethod) ?? "round"), d = l.getTime() - s.getTime(), u = d / ar, f = Ht(l) - Ht(s), h = (d - f) / ar, g = n == null ? void 0 : n.unit;
25076
+ let m;
25077
+ if (g ? m = g : u < 1 ? m = "second" : u < 60 ? m = "minute" : u < Js ? m = "hour" : h < Ma ? m = "day" : h < Cm ? m = "month" : m = "year", m === "second") {
25078
25078
  const b = c(d / 1e3);
25079
25079
  return a.formatDistance("xSeconds", b, i);
25080
- } else if (g === "minute") {
25080
+ } else if (m === "minute") {
25081
25081
  const b = c(u);
25082
25082
  return a.formatDistance("xMinutes", b, i);
25083
- } else if (g === "hour") {
25083
+ } else if (m === "hour") {
25084
25084
  const b = c(u / 60);
25085
25085
  return a.formatDistance("xHours", b, i);
25086
- } else if (g === "day") {
25086
+ } else if (m === "day") {
25087
25087
  const b = c(h / Js);
25088
25088
  return a.formatDistance("xDays", b, i);
25089
- } else if (g === "month") {
25089
+ } else if (m === "month") {
25090
25090
  const b = c(h / Ma);
25091
- return b === 12 && m !== "month" ? a.formatDistance("xYears", 1, i) : a.formatDistance("xMonths", b, i);
25091
+ return b === 12 && g !== "month" ? a.formatDistance("xYears", 1, i) : a.formatDistance("xMonths", b, i);
25092
25092
  } else {
25093
25093
  const b = c(h / Cm);
25094
25094
  return a.formatDistance("xYears", b, i);
@@ -25130,12 +25130,12 @@ function mI(t, e) {
25130
25130
  if (a !== "date") {
25131
25131
  const c = n.getTimezoneOffset();
25132
25132
  if (c !== 0) {
25133
- const g = Math.abs(c), b = de(Math.trunc(g / 60), 2), y = de(g % 60, 2);
25133
+ const m = Math.abs(c), b = de(Math.trunc(m / 60), 2), y = de(m % 60, 2);
25134
25134
  i = `${c < 0 ? "+" : "-"}${b}:${y}`;
25135
25135
  } else
25136
25136
  i = "Z";
25137
- const d = de(n.getHours(), 2), u = de(n.getMinutes(), 2), f = de(n.getSeconds(), 2), h = o === "" ? "" : "T", m = [d, u, f].join(l);
25138
- o = `${o}${h}${m}${i}`;
25137
+ const d = de(n.getHours(), 2), u = de(n.getMinutes(), 2), f = de(n.getSeconds(), 2), h = o === "" ? "" : "T", g = [d, u, f].join(l);
25138
+ o = `${o}${h}${g}${i}`;
25139
25139
  }
25140
25140
  return o;
25141
25141
  }
@@ -25174,16 +25174,16 @@ function yI(t, e) {
25174
25174
  const r = (e == null ? void 0 : e.fractionDigits) ?? 0, a = de(n.getDate(), 2), o = de(n.getMonth() + 1, 2), i = n.getFullYear(), s = de(n.getHours(), 2), l = de(n.getMinutes(), 2), c = de(n.getSeconds(), 2);
25175
25175
  let d = "";
25176
25176
  if (r > 0) {
25177
- const h = n.getMilliseconds(), m = Math.trunc(
25177
+ const h = n.getMilliseconds(), g = Math.trunc(
25178
25178
  h * Math.pow(10, r - 3)
25179
25179
  );
25180
- d = "." + de(m, r);
25180
+ d = "." + de(g, r);
25181
25181
  }
25182
25182
  let u = "";
25183
25183
  const f = n.getTimezoneOffset();
25184
25184
  if (f !== 0) {
25185
- const h = Math.abs(f), m = de(Math.trunc(h / 60), 2), g = de(h % 60, 2);
25186
- u = `${f < 0 ? "+" : "-"}${m}:${g}`;
25185
+ const h = Math.abs(f), g = de(Math.trunc(h / 60), 2), m = de(h % 60, 2);
25186
+ u = `${f < 0 ? "+" : "-"}${g}:${m}`;
25187
25187
  } else
25188
25188
  u = "Z";
25189
25189
  return `${i}-${o}-${a}T${s}:${l}:${c}${d}${u}`;
@@ -25210,8 +25210,8 @@ function xI(t) {
25210
25210
  return `${n}, ${r} ${a} ${o} ${i}:${s}:${l} GMT`;
25211
25211
  }
25212
25212
  function kI(t, e, n) {
25213
- var u, f, h, m;
25214
- const [r, a] = Ie(n == null ? void 0 : n.in, t, e), o = Rt(), i = (n == null ? void 0 : n.locale) ?? o.locale ?? co, s = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? o.weekStartsOn ?? ((m = (h = o.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? 0, l = Wn(r, a);
25213
+ var u, f, h, g;
25214
+ const [r, a] = Ie(n == null ? void 0 : n.in, t, e), o = Rt(), i = (n == null ? void 0 : n.locale) ?? o.locale ?? co, s = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? o.weekStartsOn ?? ((g = (h = o.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? 0, l = Wn(r, a);
25215
25215
  if (isNaN(l))
25216
25216
  throw new RangeError("Invalid time value");
25217
25217
  let c;
@@ -25344,8 +25344,8 @@ function zI(t, e) {
25344
25344
  u && (a.hours = u);
25345
25345
  const f = _a(d, { hours: a.hours }), h = rl(r, f);
25346
25346
  h && (a.minutes = h);
25347
- const m = _a(f, { minutes: a.minutes }), g = Aa(r, m);
25348
- return g && (a.seconds = g), a;
25347
+ const g = _a(f, { minutes: a.minutes }), m = Aa(r, g);
25348
+ return m && (a.seconds = m), a;
25349
25349
  }
25350
25350
  function HI(t, e, n) {
25351
25351
  let r;
@@ -26185,8 +26185,8 @@ class b4 extends Se {
26185
26185
  }
26186
26186
  }
26187
26187
  function Kl(t, e, n) {
26188
- var u, f, h, m;
26189
- const r = Rt(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? r.weekStartsOn ?? ((m = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = K(t, n == null ? void 0 : n.in), i = o.getDay(), l = (e % 7 + 7) % 7, c = 7 - a, d = e < 0 || e > 6 ? e - (i + c) % 7 : (l + c) % 7 - (i + c) % 7;
26188
+ var u, f, h, g;
26189
+ const r = Rt(), a = (n == null ? void 0 : n.weekStartsOn) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? r.weekStartsOn ?? ((g = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : g.weekStartsOn) ?? 0, o = K(t, n == null ? void 0 : n.in), i = o.getDay(), l = (e % 7 + 7) % 7, c = 7 - a, d = e < 0 || e > 6 ? e - (i + c) % 7 : (l + c) % 7 - (i + c) % 7;
26190
26190
  return un(o, d, n);
26191
26191
  }
26192
26192
  class y4 extends Se {
@@ -26920,16 +26920,16 @@ function Fv(t, e, n, r) {
26920
26920
  const h = d.map((D) => D.priority).sort((D, P) => P - D).filter((D, P, M) => M.indexOf(D) === P).map(
26921
26921
  (D) => d.filter((P) => P.priority === D).sort((P, M) => M.subPriority - P.subPriority)
26922
26922
  ).map((D) => D[0]);
26923
- let m = K(n, r == null ? void 0 : r.in);
26924
- if (isNaN(+m)) return a();
26925
- const g = {};
26923
+ let g = K(n, r == null ? void 0 : r.in);
26924
+ if (isNaN(+g)) return a();
26925
+ const m = {};
26926
26926
  for (const D of h) {
26927
- if (!D.validate(m, c))
26927
+ if (!D.validate(g, c))
26928
26928
  return a();
26929
- const P = D.set(m, g, c);
26930
- Array.isArray(P) ? (m = P[0], Object.assign(g, P[1])) : m = P;
26929
+ const P = D.set(g, m, c);
26930
+ Array.isArray(P) ? (g = P[0], Object.assign(m, P[1])) : g = P;
26931
26931
  }
26932
- return m;
26932
+ return g;
26933
26933
  }
26934
26934
  function z4(t) {
26935
26935
  return t.match($4)[1].replace(W4, "'");
@@ -27490,8 +27490,8 @@ function C3(t, e, n) {
27490
27490
  hours: s = 0,
27491
27491
  minutes: l = 0,
27492
27492
  seconds: c = 0
27493
- } = e, d = Uv(t, a + r * 12, n), u = Gl(d, i + o * 7, n), f = l + s * 60, m = (c + f * 60) * 1e3;
27494
- return le((n == null ? void 0 : n.in) || t, +u - m);
27493
+ } = e, d = Uv(t, a + r * 12, n), u = Gl(d, i + o * 7, n), f = l + s * 60, g = (c + f * 60) * 1e3;
27494
+ return le((n == null ? void 0 : n.in) || t, +u - g);
27495
27495
  }
27496
27496
  function M3(t, e, n) {
27497
27497
  return Qw(t, -e, n);
@@ -28146,12 +28146,12 @@ class ff extends Xr.PureComponent {
28146
28146
  if (n === "dateRange" && a.status) {
28147
28147
  let {
28148
28148
  startDate: h,
28149
- endDate: m
28149
+ endDate: g
28150
28150
  } = a.range;
28151
- u = u.map((g, b) => b !== r[0] ? g : {
28152
- ...g,
28151
+ u = u.map((m, b) => b !== r[0] ? m : {
28152
+ ...m,
28153
28153
  startDate: h,
28154
- endDate: m
28154
+ endDate: g
28155
28155
  });
28156
28156
  }
28157
28157
  const f = this.props.showPreview && !a.disablePreview;
@@ -28166,8 +28166,8 @@ class ff extends Xr.PureComponent {
28166
28166
  }, (0, rt.eachDayOfInterval)({
28167
28167
  start: d.start,
28168
28168
  end: d.end
28169
- }).map((h, m) => {
28170
- const g = (0, rt.isSameDay)(h, d.startDateOfMonth), b = (0, rt.isSameDay)(h, d.endDateOfMonth), y = l && (0, rt.isBefore)(h, l) || c && (0, rt.isAfter)(h, c), x = i.some((w) => (0, rt.isSameDay)(w, h)), k = s(h);
28169
+ }).map((h, g) => {
28170
+ const m = (0, rt.isSameDay)(h, d.startDateOfMonth), b = (0, rt.isSameDay)(h, d.endDateOfMonth), y = l && (0, rt.isBefore)(h, l) || c && (0, rt.isAfter)(h, c), x = i.some((w) => (0, rt.isSameDay)(w, h)), k = s(h);
28171
28171
  return /* @__PURE__ */ Xr.default.createElement(Gv.default, Sd({}, this.props, {
28172
28172
  ranges: u,
28173
28173
  day: h,
@@ -28176,9 +28176,9 @@ class ff extends Xr.PureComponent {
28176
28176
  isToday: (0, rt.isSameDay)(h, e),
28177
28177
  isStartOfWeek: (0, rt.isSameDay)(h, (0, rt.startOfWeek)(h, this.props.dateOptions)),
28178
28178
  isEndOfWeek: (0, rt.isSameDay)(h, (0, rt.endOfWeek)(h, this.props.dateOptions)),
28179
- isStartOfMonth: g,
28179
+ isStartOfMonth: m,
28180
28180
  isEndOfMonth: b,
28181
- key: m,
28181
+ key: g,
28182
28182
  disabled: y || x || k,
28183
28183
  isPassive: !(0, rt.isWithinInterval)(h, {
28184
28184
  start: d.startDateOfMonth,
@@ -28432,14 +28432,14 @@ var tx = {};
28432
28432
  }
28433
28433
  function h(A, I) {
28434
28434
  if (typeof I != "function" && I !== null) throw new TypeError("Super expression must either be null or a function");
28435
- A.prototype = Object.create(I && I.prototype, { constructor: { value: A, writable: !0, configurable: !0 } }), Object.defineProperty(A, "prototype", { writable: !1 }), I && m(A, I);
28435
+ A.prototype = Object.create(I && I.prototype, { constructor: { value: A, writable: !0, configurable: !0 } }), Object.defineProperty(A, "prototype", { writable: !1 }), I && g(A, I);
28436
28436
  }
28437
- function m(A, I) {
28438
- return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, C) {
28437
+ function g(A, I) {
28438
+ return g = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, C) {
28439
28439
  return R.__proto__ = C, R;
28440
- }, m(A, I);
28440
+ }, g(A, I);
28441
28441
  }
28442
- function g(A, I) {
28442
+ function m(A, I) {
28443
28443
  var R = Object.keys(A);
28444
28444
  if (Object.getOwnPropertySymbols) {
28445
28445
  var C = Object.getOwnPropertySymbols(A);
@@ -28452,9 +28452,9 @@ var tx = {};
28452
28452
  function b(A) {
28453
28453
  for (var I = 1; I < arguments.length; I++) {
28454
28454
  var R = arguments[I] != null ? arguments[I] : {};
28455
- I % 2 ? g(Object(R), !0).forEach(function(C) {
28455
+ I % 2 ? m(Object(R), !0).forEach(function(C) {
28456
28456
  y(A, C, R[C]);
28457
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(R)) : g(Object(R)).forEach(function(C) {
28457
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(R)) : m(Object(R)).forEach(function(C) {
28458
28458
  Object.defineProperty(A, C, Object.getOwnPropertyDescriptor(R, C));
28459
28459
  });
28460
28460
  }
@@ -29564,45 +29564,45 @@ class Za extends Ne.PureComponent {
29564
29564
  maxDate: c,
29565
29565
  showMonthAndYearPickers: d,
29566
29566
  ariaLabels: u
29567
- } = i, f = (c || Za.defaultProps.maxDate).getFullYear(), h = (l || Za.defaultProps.minDate).getFullYear(), m = this.styles;
29567
+ } = i, f = (c || Za.defaultProps.maxDate).getFullYear(), h = (l || Za.defaultProps.minDate).getFullYear(), g = this.styles;
29568
29568
  return /* @__PURE__ */ Ne.default.createElement("div", {
29569
- onMouseUp: (g) => g.stopPropagation(),
29570
- className: m.monthAndYearWrapper
29569
+ onMouseUp: (m) => m.stopPropagation(),
29570
+ className: g.monthAndYearWrapper
29571
29571
  }, s ? /* @__PURE__ */ Ne.default.createElement("button", {
29572
29572
  type: "button",
29573
- className: (0, $r.default)(m.nextPrevButton, m.prevButton),
29573
+ className: (0, $r.default)(g.nextPrevButton, g.prevButton),
29574
29574
  onClick: () => o(-1, "monthOffset"),
29575
29575
  "aria-label": u.prevButton
29576
29576
  }, /* @__PURE__ */ Ne.default.createElement("i", null)) : null, d ? /* @__PURE__ */ Ne.default.createElement("span", {
29577
- className: m.monthAndYearPickers
29577
+ className: g.monthAndYearPickers
29578
29578
  }, /* @__PURE__ */ Ne.default.createElement("span", {
29579
- className: m.monthPicker
29579
+ className: g.monthPicker
29580
29580
  }, /* @__PURE__ */ Ne.default.createElement("select", {
29581
29581
  value: a.getMonth(),
29582
- onChange: (g) => o(g.target.value, "setMonth"),
29582
+ onChange: (m) => o(m.target.value, "setMonth"),
29583
29583
  "aria-label": u.monthPicker
29584
- }, this.state.monthNames.map((g, b) => /* @__PURE__ */ Ne.default.createElement("option", {
29584
+ }, this.state.monthNames.map((m, b) => /* @__PURE__ */ Ne.default.createElement("option", {
29585
29585
  key: b,
29586
29586
  value: b
29587
- }, g)))), /* @__PURE__ */ Ne.default.createElement("span", {
29588
- className: m.monthAndYearDivider
29587
+ }, m)))), /* @__PURE__ */ Ne.default.createElement("span", {
29588
+ className: g.monthAndYearDivider
29589
29589
  }), /* @__PURE__ */ Ne.default.createElement("span", {
29590
- className: m.yearPicker
29590
+ className: g.yearPicker
29591
29591
  }, /* @__PURE__ */ Ne.default.createElement("select", {
29592
29592
  value: a.getFullYear(),
29593
- onChange: (g) => o(g.target.value, "setYear"),
29593
+ onChange: (m) => o(m.target.value, "setYear"),
29594
29594
  "aria-label": u.yearPicker
29595
- }, new Array(f - h + 1).fill(f).map((g, b) => {
29596
- const y = g - b;
29595
+ }, new Array(f - h + 1).fill(f).map((m, b) => {
29596
+ const y = m - b;
29597
29597
  return /* @__PURE__ */ Ne.default.createElement("option", {
29598
29598
  key: y,
29599
29599
  value: y
29600
29600
  }, y);
29601
29601
  })))) : /* @__PURE__ */ Ne.default.createElement("span", {
29602
- className: m.monthAndYearPickers
29602
+ className: g.monthAndYearPickers
29603
29603
  }, this.state.monthNames[a.getMonth()], " ", a.getFullYear()), s ? /* @__PURE__ */ Ne.default.createElement("button", {
29604
29604
  type: "button",
29605
- className: (0, $r.default)(m.nextPrevButton, m.nextButton),
29605
+ className: (0, $r.default)(g.nextPrevButton, g.nextButton),
29606
29606
  onClick: () => o(1, "monthOffset"),
29607
29607
  "aria-label": u.nextButton
29608
29608
  }, /* @__PURE__ */ Ne.default.createElement("i", null)) : null);
@@ -29617,39 +29617,39 @@ class Za extends Ne.PureComponent {
29617
29617
  startDatePlaceholder: d,
29618
29618
  endDatePlaceholder: u,
29619
29619
  ariaLabels: f
29620
- } = this.props, h = s[a[0]] || o, m = this.styles;
29620
+ } = this.props, h = s[a[0]] || o, g = this.styles;
29621
29621
  return /* @__PURE__ */ Ne.default.createElement("div", {
29622
- className: m.dateDisplayWrapper
29623
- }, i.map((g, b) => g.showDateDisplay === !1 || g.disabled && !g.showDateDisplay ? null : /* @__PURE__ */ Ne.default.createElement("div", {
29624
- className: m.dateDisplay,
29622
+ className: g.dateDisplayWrapper
29623
+ }, i.map((m, b) => m.showDateDisplay === !1 || m.disabled && !m.showDateDisplay ? null : /* @__PURE__ */ Ne.default.createElement("div", {
29624
+ className: g.dateDisplay,
29625
29625
  key: b,
29626
29626
  style: {
29627
- color: g.color || h
29627
+ color: m.color || h
29628
29628
  }
29629
29629
  }, /* @__PURE__ */ Ne.default.createElement(Im.default, {
29630
- className: (0, $r.default)(m.dateDisplayItem, {
29631
- [m.dateDisplayItemActive]: a[0] === b && a[1] === 0
29630
+ className: (0, $r.default)(g.dateDisplayItem, {
29631
+ [g.dateDisplayItemActive]: a[0] === b && a[1] === 0
29632
29632
  }),
29633
29633
  readOnly: !c,
29634
- disabled: g.disabled,
29635
- value: g.startDate,
29634
+ disabled: m.disabled,
29635
+ value: m.startDate,
29636
29636
  placeholder: d,
29637
29637
  dateOptions: this.dateOptions,
29638
29638
  dateDisplayFormat: l,
29639
- ariaLabel: f.dateInput && f.dateInput[g.key] && f.dateInput[g.key].startDate,
29639
+ ariaLabel: f.dateInput && f.dateInput[m.key] && f.dateInput[m.key].startDate,
29640
29640
  onChange: this.onDragSelectionEnd,
29641
29641
  onFocus: () => this.handleRangeFocusChange(b, 0)
29642
29642
  }), /* @__PURE__ */ Ne.default.createElement(Im.default, {
29643
- className: (0, $r.default)(m.dateDisplayItem, {
29644
- [m.dateDisplayItemActive]: a[0] === b && a[1] === 1
29643
+ className: (0, $r.default)(g.dateDisplayItem, {
29644
+ [g.dateDisplayItemActive]: a[0] === b && a[1] === 1
29645
29645
  }),
29646
29646
  readOnly: !c,
29647
- disabled: g.disabled,
29648
- value: g.endDate,
29647
+ disabled: m.disabled,
29648
+ value: m.endDate,
29649
29649
  placeholder: u,
29650
29650
  dateOptions: this.dateOptions,
29651
29651
  dateDisplayFormat: l,
29652
- ariaLabel: f.dateInput && f.dateInput[g.key] && f.dateInput[g.key].endDate,
29652
+ ariaLabel: f.dateInput && f.dateInput[m.key] && f.dateInput[m.key].endDate,
29653
29653
  onChange: this.onDragSelectionEnd,
29654
29654
  onFocus: () => this.handleRangeFocusChange(b, 1)
29655
29655
  }))));
@@ -29813,8 +29813,8 @@ class Za extends Ne.PureComponent {
29813
29813
  className: f,
29814
29814
  preview: h
29815
29815
  } = this.props, {
29816
- scrollArea: m,
29817
- focusedDate: g
29816
+ scrollArea: g,
29817
+ focusedDate: m
29818
29818
  } = this.state, b = a === "vertical", y = u || this.renderMonthAndYear, x = this.props.ranges.map((k, w) => ({
29819
29819
  ...k,
29820
29820
  color: k.color || c[w] || d
@@ -29835,12 +29835,12 @@ class Za extends Ne.PureComponent {
29835
29835
  }
29836
29836
  });
29837
29837
  }
29838
- }, e && this.renderDateDisplay(), y(g, this.changeShownDate, this.props), r.enabled ? /* @__PURE__ */ Ne.default.createElement("div", null, b && this.renderWeekdays(this.dateOptions), /* @__PURE__ */ Ne.default.createElement("div", {
29838
+ }, e && this.renderDateDisplay(), y(m, this.changeShownDate, this.props), r.enabled ? /* @__PURE__ */ Ne.default.createElement("div", null, b && this.renderWeekdays(this.dateOptions), /* @__PURE__ */ Ne.default.createElement("div", {
29839
29839
  className: (0, $r.default)(this.styles.infiniteMonths, b ? this.styles.monthsVertical : this.styles.monthsHorizontal),
29840
29840
  onMouseLeave: () => n && n(),
29841
29841
  style: {
29842
- width: m.calendarWidth + 11,
29843
- height: m.calendarHeight + 11
29842
+ width: g.calendarWidth + 11,
29843
+ height: g.calendarHeight + 11
29844
29844
  },
29845
29845
  onScroll: this.handleScroll
29846
29846
  }, /* @__PURE__ */ Ne.default.createElement(XL.default, {
@@ -29870,7 +29870,7 @@ class Za extends Ne.PureComponent {
29870
29870
  style: b ? {
29871
29871
  height: this.estimateMonthSize(k)
29872
29872
  } : {
29873
- height: m.monthHeight,
29873
+ height: g.monthHeight,
29874
29874
  width: this.estimateMonthSize(k)
29875
29875
  },
29876
29876
  showMonthName: !0,
@@ -30059,31 +30059,31 @@ class vf extends Am.Component {
30059
30059
  moveRangeOnFirstSelection: d,
30060
30060
  retainEndDateOnFirstSelection: u,
30061
30061
  disabledDates: f
30062
- } = r.props, h = i[0], m = s[h];
30063
- if (!m || !l) return {};
30062
+ } = r.props, h = i[0], g = s[h];
30063
+ if (!g || !l) return {};
30064
30064
  let {
30065
- startDate: g,
30065
+ startDate: m,
30066
30066
  endDate: b
30067
- } = m;
30067
+ } = g;
30068
30068
  const y = /* @__PURE__ */ new Date();
30069
30069
  let x;
30070
30070
  if (!o)
30071
- g = a.startDate, b = a.endDate;
30071
+ m = a.startDate, b = a.endDate;
30072
30072
  else if (i[1] === 0) {
30073
- const v = (0, xn.differenceInCalendarDays)(b || y, g), _ = () => d ? (0, xn.addDays)(a, v) : u ? !b || (0, xn.isBefore)(a, b) ? b : a : a || y;
30074
- g = a, b = _(), c && (b = (0, xn.min)([b, c])), x = [i[0], 1];
30073
+ const v = (0, xn.differenceInCalendarDays)(b || y, m), _ = () => d ? (0, xn.addDays)(a, v) : u ? !b || (0, xn.isBefore)(a, b) ? b : a : a || y;
30074
+ m = a, b = _(), c && (b = (0, xn.min)([b, c])), x = [i[0], 1];
30075
30075
  } else
30076
30076
  b = a;
30077
30077
  let k = i[1] === 0;
30078
- (0, xn.isBefore)(b, g) && (k = !k, [g, b] = [b, g]);
30078
+ (0, xn.isBefore)(b, m) && (k = !k, [m, b] = [b, m]);
30079
30079
  const w = f.filter((v) => (0, xn.isWithinInterval)(v, {
30080
- start: g,
30080
+ start: m,
30081
30081
  end: b
30082
30082
  }));
30083
- return w.length > 0 && (k ? g = (0, xn.addDays)((0, xn.max)(w), 1) : b = (0, xn.addDays)((0, xn.min)(w), -1)), x || (x = [(0, zc.findNextRangeIndex)(r.props.ranges, i[0]), 0]), {
30083
+ return w.length > 0 && (k ? m = (0, xn.addDays)((0, xn.max)(w), 1) : b = (0, xn.addDays)((0, xn.min)(w), -1)), x || (x = [(0, zc.findNextRangeIndex)(r.props.ranges, i[0]), 0]), {
30084
30084
  wasValid: !(w.length > 0),
30085
30085
  range: {
30086
- startDate: g,
30086
+ startDate: m,
30087
30087
  endDate: b
30088
30088
  },
30089
30089
  nextFocusRange: x
@@ -30471,8 +30471,8 @@ class kf extends Wr.Component {
30471
30471
  selectedRange: f,
30472
30472
  focusedRangeIndex: h
30473
30473
  } = this.getSelectedRange(i, d);
30474
- let m;
30475
- return d.hasCustomRendering ? m = s(d) : m = d.label, /* @__PURE__ */ Wr.default.createElement("button", {
30474
+ let g;
30475
+ return d.hasCustomRendering ? g = s(d) : g = d.label, /* @__PURE__ */ Wr.default.createElement("button", {
30476
30476
  type: "button",
30477
30477
  className: (0, Wm.default)(Br.default.staticRange, {
30478
30478
  [Br.default.staticRangeSelected]: !!f
@@ -30490,7 +30490,7 @@ class kf extends Wr.Component {
30490
30490
  }, /* @__PURE__ */ Wr.default.createElement("span", {
30491
30491
  tabIndex: -1,
30492
30492
  className: Br.default.staticRangeLabel
30493
- }, m));
30493
+ }, g));
30494
30494
  })), /* @__PURE__ */ Wr.default.createElement("div", {
30495
30495
  className: Br.default.inputRanges
30496
30496
  }, a.map((d, u) => /* @__PURE__ */ Wr.default.createElement(m6.default, {
@@ -31046,7 +31046,7 @@ const S6 = {
31046
31046
  endDate: /* @__PURE__ */ new Date(),
31047
31047
  key: "selection"
31048
31048
  }
31049
- ]), [l, c] = ge(!1), [d, u] = ge({}), f = Jt(null), h = Jt(null), m = a ?? tF, g = t ? [{ ...t, key: "selection" }] : i;
31049
+ ]), [l, c] = ge(!1), [d, u] = ge({}), f = Jt(null), h = Jt(null), g = a ?? tF, m = t ? [{ ...t, key: "selection" }] : i;
31050
31050
  ot(() => {
31051
31051
  if (l && h.current && f.current) {
31052
31052
  const w = h.current.getBoundingClientRect(), v = f.current.offsetWidth || 700, _ = window.innerWidth - w.right, T = w.left, D = {
@@ -31078,7 +31078,7 @@ const S6 = {
31078
31078
  ref: h,
31079
31079
  type: "text",
31080
31080
  readOnly: !0,
31081
- value: `${k(g[0].startDate)} - ${k(g[0].endDate)}`,
31081
+ value: `${k(m[0].startDate)} - ${k(m[0].endDate)}`,
31082
31082
  onClick: () => c(!l),
31083
31083
  className: `${Un["date-input"]} ${o}`
31084
31084
  }
@@ -31091,7 +31091,7 @@ const S6 = {
31091
31091
  style: d,
31092
31092
  children: [
31093
31093
  /* @__PURE__ */ j("div", { className: Un["date-menu"], children: [
31094
- m.map((w, v) => /* @__PURE__ */ p(
31094
+ g.map((w, v) => /* @__PURE__ */ p(
31095
31095
  "div",
31096
31096
  {
31097
31097
  className: Un["date-menuItem"] + (v === 2 ? " " + Un["date-menuItemActive"] : ""),
@@ -31115,7 +31115,7 @@ const S6 = {
31115
31115
  editableDateInputs: !1,
31116
31116
  onChange: b,
31117
31117
  moveRangeOnFirstSelection: !1,
31118
- ranges: g,
31118
+ ranges: m,
31119
31119
  rangeColors: ["#C0D4FF99"],
31120
31120
  minDate: n,
31121
31121
  maxDate: r,
@@ -31173,9 +31173,9 @@ const S6 = {
31173
31173
  icon: u,
31174
31174
  iconSize: f = 20
31175
31175
  }) => {
31176
- const [h, m] = ge(c), g = (k, w) => {
31176
+ const [h, g] = ge(c), m = (k, w) => {
31177
31177
  const v = w ? [...h, k] : h.filter((_) => _ !== k);
31178
- m(v), l == null || l(v);
31178
+ g(v), l == null || l(v);
31179
31179
  }, b = () => n.map((k) => /* @__PURE__ */ p(
31180
31180
  Xd,
31181
31181
  {
@@ -31196,7 +31196,7 @@ const S6 = {
31196
31196
  {
31197
31197
  type: "checkbox",
31198
31198
  checked: _,
31199
- onChange: (T) => g(v, T.target.checked),
31199
+ onChange: (T) => m(v, T.target.checked),
31200
31200
  disabled: w.disabled,
31201
31201
  className: "size-3 rounded border-gray-300 bg-gray-100 text-blue-600 focus:ring-blue-500"
31202
31202
  }
@@ -31252,16 +31252,16 @@ const S6 = {
31252
31252
  const y = u - 1;
31253
31253
  l ? (r == null || r(y), i == null || i()) : (d(y), i == null || i());
31254
31254
  }
31255
- }, m = (y) => {
31255
+ }, g = (y) => {
31256
31256
  y !== u && (y < 1 || y > t.length || (l ? r == null || r(y) : d(y)));
31257
- }, g = {
31257
+ }, m = {
31258
31258
  activeStep: u,
31259
31259
  stepsLength: t.length,
31260
31260
  isFirst: u === 1,
31261
31261
  isLast: u === t.length,
31262
31262
  next: f,
31263
31263
  back: h,
31264
- goToStep: m
31264
+ goToStep: g
31265
31265
  };
31266
31266
  return /* @__PURE__ */ j("div", { className: "mx-auto flex w-full flex-col md:flex-row", children: [
31267
31267
  /* @__PURE__ */ p("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((y, x) => {
@@ -31286,7 +31286,7 @@ const S6 = {
31286
31286
  }) }),
31287
31287
  /* @__PURE__ */ j("div", { className: "w-full mt-6 ml-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300", children: [
31288
31288
  /* @__PURE__ */ p("div", { children: ((b = t[u - 1]) == null ? void 0 : b.content) || /* @__PURE__ */ p("p", { children: "No hay contenido." }) }),
31289
- /* @__PURE__ */ p("div", { className: "bottom-0 left-0 w-full", children: /* @__PURE__ */ p("div", { className: "flex justify-end gap-2", children: a ? /* @__PURE__ */ p("div", { className: "w-full flex justify-end", children: a(g) }) : /* @__PURE__ */ j(Tt, { children: [
31289
+ /* @__PURE__ */ p("div", { className: "bottom-0 left-0 w-full", children: /* @__PURE__ */ p("div", { className: "flex justify-end gap-2", children: a ? /* @__PURE__ */ p("div", { className: "w-full flex justify-end", children: a(m) }) : /* @__PURE__ */ j(Tt, { children: [
31290
31290
  /* @__PURE__ */ p(
31291
31291
  Zr,
31292
31292
  {
@@ -31447,53 +31447,55 @@ const dl = ({
31447
31447
  minCharsToSearch: a = 3,
31448
31448
  debounceMs: o = 300,
31449
31449
  classIncludes: i,
31450
- iconSearch: s = !1
31450
+ iconSearch: s = !1,
31451
+ disabled: l = !1
31451
31452
  }) => {
31452
- const [l, c] = ge(!1), [d, u] = ge(""), [f, h] = ge(e), m = Jt(null);
31453
+ const [c, d] = ge(!1), [u, f] = ge(""), [h, g] = ge(e), m = Jt(null);
31453
31454
  ot(() => {
31454
- h(e);
31455
+ g(e);
31455
31456
  }, [e]), ot(() => {
31456
31457
  if (!r) return;
31457
- if (d.trim().length < a) {
31458
- h([]);
31458
+ if (u.trim().length < a) {
31459
+ g([]);
31459
31460
  return;
31460
31461
  }
31461
- const b = new AbortController(), y = setTimeout(async () => {
31462
+ const y = new AbortController(), x = setTimeout(async () => {
31462
31463
  try {
31463
- const x = await r(d.trim());
31464
- h(x);
31464
+ const k = await r(u.trim());
31465
+ g(k);
31465
31466
  } catch {
31466
- h([]);
31467
+ g([]);
31467
31468
  }
31468
31469
  }, o);
31469
31470
  return () => {
31470
- clearTimeout(y), b.abort();
31471
+ clearTimeout(x), y.abort();
31471
31472
  };
31472
- }, [d, r, o, a]);
31473
- const g = (b) => {
31474
- t(b), u(b.label), c(!1);
31473
+ }, [u, r, o, a]);
31474
+ const b = (y) => {
31475
+ t(y), f(y.label), d(!1);
31475
31476
  };
31476
31477
  return /* @__PURE__ */ j("div", { ref: m, className: i, children: [
31477
31478
  /* @__PURE__ */ p(
31478
31479
  Sl,
31479
31480
  {
31480
- classInclude: "rounded-[10px] w-min-290px",
31481
+ classInclude: `rounded-[10px] w-min-290px ${l ? "opacity-80 cursor-not-allowed" : "border border-[#19196080]"}`,
31481
31482
  type: "search",
31482
31483
  placeholder: n,
31483
31484
  name: "search",
31484
- value: d,
31485
- onChange: (b) => {
31486
- u(b.target.value), c(!0);
31485
+ value: u,
31486
+ onChange: (y) => {
31487
+ f(y.target.value), d(!0);
31487
31488
  },
31488
- onFocus: () => c(!0),
31489
+ onFocus: () => d(!0),
31489
31490
  onBlur: () => {
31490
- c(!1);
31491
+ d(!1);
31491
31492
  },
31492
31493
  icon: s,
31493
- autoComplete: "off"
31494
+ autoComplete: "off",
31495
+ disabled: l
31494
31496
  }
31495
31497
  ),
31496
- l && f.length > 0 && /* @__PURE__ */ p(
31498
+ c && h.length > 0 && /* @__PURE__ */ p(
31497
31499
  "ul",
31498
31500
  {
31499
31501
  style: {
@@ -31507,20 +31509,20 @@ const dl = ({
31507
31509
  position: "absolute",
31508
31510
  zIndex: 9999
31509
31511
  },
31510
- children: f.map((b) => /* @__PURE__ */ p(
31512
+ children: h.map((y) => /* @__PURE__ */ p(
31511
31513
  "li",
31512
31514
  {
31513
- onMouseDown: (y) => {
31514
- y.preventDefault(), y.stopPropagation(), g(b);
31515
+ onMouseDown: (x) => {
31516
+ x.preventDefault(), x.stopPropagation(), b(y);
31515
31517
  },
31516
31518
  style: {
31517
31519
  padding: 6,
31518
31520
  cursor: "pointer",
31519
31521
  borderRadius: 6
31520
31522
  },
31521
- children: /* @__PURE__ */ p("div", { className: "text-xs", children: b.label })
31523
+ children: /* @__PURE__ */ p("div", { className: "text-xs", children: y.label })
31522
31524
  },
31523
- b.id
31525
+ y.id
31524
31526
  ))
31525
31527
  }
31526
31528
  )
@@ -31603,8 +31605,8 @@ const dl = ({
31603
31605
  onRowSelect: u,
31604
31606
  onSelectAll: f,
31605
31607
  collapsible: h = !1,
31606
- collapseMode: m = "multi",
31607
- defaultOpenRows: g = [],
31608
+ collapseMode: g = "multi",
31609
+ defaultOpenRows: m = [],
31608
31610
  onCollapseChange: b,
31609
31611
  openRowIds: y,
31610
31612
  getSubRows: x,
@@ -31614,12 +31616,12 @@ const dl = ({
31614
31616
  parentRowClassName: _,
31615
31617
  subRowClassName: T
31616
31618
  }) => {
31617
- const [D, P] = B.useState(""), [M, H] = B.useState(1), [L, S] = B.useState(null), [O, E] = B.useState(g), F = y ?? O, V = (W) => {
31619
+ const [D, P] = B.useState(""), [M, H] = B.useState(1), [L, S] = B.useState(null), [O, E] = B.useState(m), F = y ?? O, V = (W) => {
31618
31620
  if (y) return b == null ? void 0 : b(W);
31619
31621
  E(W), b == null || b(W);
31620
31622
  }, G = (W) => {
31621
31623
  h && V(
31622
- m === "multi" ? F.includes(W) ? F.filter((te) => te !== W) : [...F, W] : F.includes(W) ? [] : [W]
31624
+ g === "multi" ? F.includes(W) ? F.filter((te) => te !== W) : [...F, W] : F.includes(W) ? [] : [W]
31623
31625
  );
31624
31626
  }, ee = B.useMemo(() => L ? [...e].sort((W, te) => {
31625
31627
  const $ = W[L.key], re = te[L.key];
@@ -31841,26 +31843,26 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
31841
31843
  }
31842
31844
  ]), l = (h) => {
31843
31845
  o(
31844
- (m) => m.includes(h) ? m.filter((g) => g !== h) : [...m, h]
31846
+ (g) => g.includes(h) ? g.filter((m) => m !== h) : [...g, h]
31845
31847
  );
31846
- }, c = (h, m, g) => {
31848
+ }, c = (h, g, m) => {
31847
31849
  const b = i.map((y) => {
31848
31850
  if (y.id === h) {
31849
- const x = y.groups.map((k) => k.id === m ? k.conditions.some(
31850
- (v) => v.categoryId === g.categoryId && v.itemId === g.itemId
31851
- ) ? k : { ...k, conditions: [...k.conditions, g] } : k);
31851
+ const x = y.groups.map((k) => k.id === g ? k.conditions.some(
31852
+ (v) => v.categoryId === m.categoryId && v.itemId === m.itemId
31853
+ ) ? k : { ...k, conditions: [...k.conditions, m] } : k);
31852
31854
  return { ...y, groups: x };
31853
31855
  }
31854
31856
  return y;
31855
31857
  });
31856
31858
  s(b), e == null || e(b);
31857
- }, d = (h, m, g) => {
31859
+ }, d = (h, g, m) => {
31858
31860
  const b = i.map((y) => {
31859
31861
  if (y.id === h) {
31860
31862
  const x = y.groups.map(
31861
- (k) => k.id === m ? {
31863
+ (k) => k.id === g ? {
31862
31864
  ...k,
31863
- conditions: k.conditions.filter((w) => w.id !== g)
31865
+ conditions: k.conditions.filter((w) => w.id !== m)
31864
31866
  } : k
31865
31867
  );
31866
31868
  return { ...y, groups: x };
@@ -31869,20 +31871,20 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
31869
31871
  });
31870
31872
  s(b), e == null || e(b);
31871
31873
  }, u = (h) => {
31872
- const m = i.map((g) => g.id === h && g.groups.length < n ? {
31873
- ...g,
31874
+ const g = i.map((m) => m.id === h && m.groups.length < n ? {
31875
+ ...m,
31874
31876
  groups: [
31875
- ...g.groups,
31877
+ ...m.groups,
31876
31878
  { id: Sa(), conditions: [], operator: "OR" }
31877
31879
  ]
31878
- } : g);
31879
- s(m), e == null || e(m);
31880
- }, f = (h, m) => {
31881
- const g = i.map((b) => b.id === h && b.groups.length > 1 ? {
31880
+ } : m);
31881
+ s(g), e == null || e(g);
31882
+ }, f = (h, g) => {
31883
+ const m = i.map((b) => b.id === h && b.groups.length > 1 ? {
31882
31884
  ...b,
31883
- groups: b.groups.filter((y) => y.id !== m)
31885
+ groups: b.groups.filter((y) => y.id !== g)
31884
31886
  } : b);
31885
- s(g), e == null || e(g);
31887
+ s(m), e == null || e(m);
31886
31888
  };
31887
31889
  return /* @__PURE__ */ j("div", { className: "flex gap-4 w-full h-full", children: [
31888
31890
  /* @__PURE__ */ j("div", { className: "w-1/4 bg-white p-4 overflow-y-auto", children: [
@@ -31907,13 +31909,13 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
31907
31909
  icon: /* @__PURE__ */ p(ms, { className: "w-5 h-5" }),
31908
31910
  iconPosition: "right",
31909
31911
  classes: "p-2",
31910
- children: /* @__PURE__ */ p("div", { className: "space-y-1", children: /* @__PURE__ */ p("div", { className: "space-y-1", children: h.items.map((m) => /* @__PURE__ */ p(
31912
+ children: /* @__PURE__ */ p("div", { className: "space-y-1", children: /* @__PURE__ */ p("div", { className: "space-y-1", children: h.items.map((g) => /* @__PURE__ */ p(
31911
31913
  sF,
31912
31914
  {
31913
- item: m,
31915
+ item: g,
31914
31916
  categoryId: h.id
31915
31917
  },
31916
- m.id
31918
+ g.id
31917
31919
  )) }) }, h.id)
31918
31920
  },
31919
31921
  h.id
@@ -31931,19 +31933,19 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
31931
31933
  iconPosition: "right",
31932
31934
  classes: "p-4",
31933
31935
  children: /* @__PURE__ */ j("div", { className: "space-y-2", children: [
31934
- h.groups.map((m, g) => /* @__PURE__ */ j("div", { children: [
31935
- g > 0 && /* @__PURE__ */ p("div", { className: "flex justify-center my-2", children: /* @__PURE__ */ p("span", { className: "px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded", children: "OR" }) }),
31936
+ h.groups.map((g, m) => /* @__PURE__ */ j("div", { children: [
31937
+ m > 0 && /* @__PURE__ */ p("div", { className: "flex justify-center my-2", children: /* @__PURE__ */ p("span", { className: "px-2 py-1 bg-[#191960] text-white text-xs font-semibold rounded", children: "OR" }) }),
31936
31938
  /* @__PURE__ */ j("div", { className: "flex flex-row space-y-1", children: [
31937
31939
  /* @__PURE__ */ p("div", { className: "w-11/12", children: /* @__PURE__ */ p(
31938
31940
  lF,
31939
31941
  {
31940
- groupId: m.id,
31941
- conditions: m.conditions,
31942
+ groupId: g.id,
31943
+ conditions: g.conditions,
31942
31944
  onDrop: (b, y) => c(h.id, b, y),
31943
31945
  onRemoveCondition: (b, y) => d(h.id, b, y)
31944
31946
  }
31945
31947
  ) }),
31946
- /* @__PURE__ */ p("div", { className: "w-1/12", children: h.groups.length > 1 && g > 0 && /* @__PURE__ */ p("div", { className: "flex justify-end", children: /* @__PURE__ */ p(
31948
+ /* @__PURE__ */ p("div", { className: "w-1/12", children: h.groups.length > 1 && m > 0 && /* @__PURE__ */ p("div", { className: "flex justify-end", children: /* @__PURE__ */ p(
31947
31949
  Zr,
31948
31950
  {
31949
31951
  leftIcon: "https://ftp.mathilde-ads.com/382-6986b247c2c7729fb231da467b8e913c.svg",
@@ -31952,12 +31954,12 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
31952
31954
  typeButton: "blue",
31953
31955
  full: !1,
31954
31956
  type: "button",
31955
- onClick: () => f(h.id, m.id),
31957
+ onClick: () => f(h.id, g.id),
31956
31958
  classes: "px-1 rounded-[10px] text-white w-8 h-8"
31957
31959
  }
31958
31960
  ) }) })
31959
31961
  ] })
31960
- ] }, m.id)),
31962
+ ] }, g.id)),
31961
31963
  h.groups.length < n && /* @__PURE__ */ p("div", { className: "flex mt-3", children: /* @__PURE__ */ p(
31962
31964
  Zr,
31963
31965
  {
@@ -32016,33 +32018,33 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
32016
32018
  }
32017
32019
  ]);
32018
32020
  return ot(() => {
32019
- a((g) => g.length === 0 && c.length > 0 ? [c[0].id] : g);
32021
+ a((m) => m.length === 0 && c.length > 0 ? [c[0].id] : m);
32020
32022
  }, []), {
32021
32023
  filterSections: c,
32022
32024
  openCategoryId: s,
32023
32025
  openAccordions: r,
32024
32026
  dragData: o,
32025
32027
  setDragData: i,
32026
- toggleAccordion: (g) => {
32028
+ toggleAccordion: (m) => {
32027
32029
  a(
32028
- (b) => b.includes(g) ? b.filter((y) => y !== g) : [...b, g]
32030
+ (b) => b.includes(m) ? b.filter((y) => y !== m) : [...b, m]
32029
32031
  );
32030
32032
  },
32031
- handleDrop: (g, b, y) => {
32032
- const x = cF(c, g, b, y, n);
32033
+ handleDrop: (m, b, y) => {
32034
+ const x = cF(c, m, b, y, n);
32033
32035
  d(x), e == null || e(x);
32034
32036
  },
32035
- handleRemoveCondition: (g, b, y) => {
32036
- const x = dF(c, g, b, y);
32037
+ handleRemoveCondition: (m, b, y) => {
32038
+ const x = dF(c, m, b, y);
32037
32039
  d(x), e == null || e(x);
32038
32040
  },
32039
- handleSearch: (g) => {
32040
- if (!g) {
32041
+ handleSearch: (m) => {
32042
+ if (!m) {
32041
32043
  l(null);
32042
32044
  return;
32043
32045
  }
32044
32046
  const b = t.find(
32045
- (y) => y.title.toLowerCase().includes(g.toLowerCase())
32047
+ (y) => y.title.toLowerCase().includes(m.toLowerCase())
32046
32048
  );
32047
32049
  l(b ? b.id : null);
32048
32050
  }
@@ -32142,20 +32144,20 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
32142
32144
  if (h != null && h.trim())
32143
32145
  try {
32144
32146
  f = JSON.parse(h);
32145
- } catch (g) {
32146
- console.error("Error al procesar el drop:", g);
32147
+ } catch (m) {
32148
+ console.error("Error al procesar el drop:", m);
32147
32149
  return;
32148
32150
  }
32149
32151
  else s && (f = s);
32150
32152
  if (!f || e.length > 0 && a && f.categoryId !== a)
32151
32153
  return;
32152
- const m = {
32154
+ const g = {
32153
32155
  id: Sf(),
32154
32156
  categoryId: f.categoryId,
32155
32157
  itemId: f.itemId,
32156
32158
  label: f.label
32157
32159
  };
32158
- n(t || null, m);
32160
+ n(t || null, g);
32159
32161
  },
32160
32162
  children: /* @__PURE__ */ p("div", { className: "flex flex-col gap-2 overflow-y-auto", children: e.map((u) => /* @__PURE__ */ p("div", { className: "flex items-center gap-1", children: /* @__PURE__ */ j("div", { className: "px-3 py-1 border border-qb-border rounded-[5px] text-sm inline-flex items-center gap-1", children: [
32161
32163
  /* @__PURE__ */ p(ac, { className: "w-4 h-4 text-qb-primary" }),
@@ -32251,8 +32253,8 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
32251
32253
  toggleAccordion: u,
32252
32254
  handleDrop: f,
32253
32255
  handleRemoveCondition: h,
32254
- handleSearch: m
32255
- } = uF({ categories: t, onQueryChange: e, maxGroups: n }), g = a ? /* @__PURE__ */ j("div", { className: "flex items-center gap-2", children: [
32256
+ handleSearch: g
32257
+ } = uF({ categories: t, onQueryChange: e, maxGroups: n }), m = a ? /* @__PURE__ */ j("div", { className: "flex items-center gap-2", children: [
32256
32258
  /* @__PURE__ */ p("span", { children: "Configuración de audiencia" }),
32257
32259
  /* @__PURE__ */ p(mx, { content: o, trigger: "hover", children: /* @__PURE__ */ p(iF, { className: "size-4 text-qb-primary" }) })
32258
32260
  ] }) : "Configuración de audiencia";
@@ -32263,7 +32265,7 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
32263
32265
  title: r,
32264
32266
  categories: t,
32265
32267
  openCategoryId: s,
32266
- onSearch: m
32268
+ onSearch: g
32267
32269
  }
32268
32270
  ),
32269
32271
  /* @__PURE__ */ p(
@@ -32272,7 +32274,7 @@ const Sa = () => `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, sF
32272
32274
  filterSections: i,
32273
32275
  openAccordions: l,
32274
32276
  maxGroups: n,
32275
- sectionTitle: g,
32277
+ sectionTitle: m,
32276
32278
  onToggleAccordion: u,
32277
32279
  onDrop: f,
32278
32280
  onRemoveCondition: h