@nxgt/material 3.64.0 → 3.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/{alert-dialog-RHm6WtQj.js → alert-dialog-C0nGUSCP.js} +1 -1
  3. package/dist/{async-slice-DmX59NyA.js → async-slice-CyansBvD.js} +1 -1
  4. package/dist/{button-DfS_amfQ.js → button-D5k3K-gM.js} +1 -1
  5. package/dist/charts.js +818 -807
  6. package/dist/{chip-Cbndukko.js → chip-lWXIJkqo.js} +2 -2
  7. package/dist/{code-editor-B0tN8Ha_.js → code-editor-aXG4CdY-.js} +403 -393
  8. package/dist/code-editor.js +5 -5
  9. package/dist/{code-language-items-andgHKrM.js → code-language-items-CsaXyApg.js} +2 -2
  10. package/dist/components/ui/display/chip/chip-soft.css +19 -5
  11. package/dist/{components-2kTVPsMg.js → components-DNcTvjlv.js} +9685 -9674
  12. package/dist/components.js +21 -21
  13. package/dist/{dialog-Bd7Hid2L.js → dialog-DWNaxpa-.js} +4 -4
  14. package/dist/dnd.js +1 -1
  15. package/dist/{dropdown-menu-_SyVmSuy.js → dropdown-menu-ChvAIQIW.js} +1 -1
  16. package/dist/editor.js +10 -10
  17. package/dist/{empty-state-D-2ZMXXJ.js → empty-state-CFLcVzKL.js} +2 -2
  18. package/dist/{field-blur-DyOByjzw.js → field-blur-CV9orzdJ.js} +1 -1
  19. package/dist/{field-blur-context-DPe5_Nv5.js → field-blur-context-C8BX8IBy.js} +1 -1
  20. package/dist/{hooks-a7_exKWS.js → hooks-DilW-3jc.js} +2 -2
  21. package/dist/hooks.js +2 -2
  22. package/dist/{hover-card-D_0smKBQ.js → hover-card-IeS_1RPH.js} +1 -1
  23. package/dist/i18n.js +3 -3
  24. package/dist/{icon-badge-CBCU3ySF.js → icon-badge-Bf4SoA2i.js} +3 -3
  25. package/dist/{icon-button-hKHsWTAt.js → icon-button-l3dQTRrC.js} +1 -1
  26. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +1 -0
  27. package/dist/lib/components/ui/collections/server-table/past-end.d.ts +3 -0
  28. package/dist/lib/components/ui/collections/server-table/types.d.ts +2 -2
  29. package/dist/lib/components/ui/collections/server-table/use-table-answer.d.ts +1 -1
  30. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  31. package/dist/lib/components/ui/widgets/code-editor/code-editor-field.d.ts +7 -6
  32. package/dist/lib/components/ui/widgets/code-editor/code-editor-types.d.ts +6 -0
  33. package/dist/lib/components/ui/widgets/code-editor/use-code-editor-instance.d.ts +12 -1
  34. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +16 -2
  35. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  36. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  37. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  38. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  39. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  40. package/dist/lib/i18n/translator.d.ts +1 -1
  41. package/dist/lib.js +1 -1
  42. package/dist/main.js +25 -25
  43. package/dist/map.js +8 -8
  44. package/dist/material.css +1 -1
  45. package/dist/pdf-reader.js +1 -1
  46. package/dist/print.js +1 -1
  47. package/dist/{public-D8JGp3PH.js → public-B-greXGt.js} +9 -9
  48. package/dist/{rich-code-block-0R3bidsM.js → rich-code-block-Cv6s59vB.js} +5 -5
  49. package/dist/{sortable-provider-B75v53sB.js → sortable-provider-DVmZcglU.js} +2 -2
  50. package/dist/{spinner-CAnpF3RK.js → spinner-OQAweH2r.js} +1 -1
  51. package/dist/theme-picker.js +2 -2
  52. package/dist/{theme-toggle-pQ5F602V.js → theme-toggle-DPx44p6a.js} +1 -1
  53. package/dist/{toolbar-items-_ezD5B0r.js → toolbar-items-CQ3S_XZw.js} +3 -3
  54. package/dist/{translate-material-CvZK8_S6.js → translate-material-BHL4g2UB.js} +1 -1
  55. package/dist/{translator-Caf-d96e.js → translator-BJsjXcAp.js} +2 -0
  56. package/dist/{typography-CEK19bj8.js → typography-CwhEwPay.js} +1 -1
  57. package/dist/{use-chat-composer-Dpvi_-CR.js → use-chat-composer-R0vng5RU.js} +16 -16
  58. package/dist/{use-heading-spy-mmcyEGmm.js → use-heading-spy-Brcn0l_J.js} +4 -4
  59. package/dist/{use-material-translation-C_1cWRzW.js → use-material-translation-mY3U83TV.js} +1 -1
  60. package/dist/{use-return-focus-1ZIchrBM.js → use-return-focus-BQ413TNG.js} +1 -1
  61. package/docs/components/buttons-and-actions.md +1 -1
  62. package/docs/components/data-table-filter-and-lists.md +16 -3
  63. package/docs/components/navigation-and-layout.md +9 -5
  64. package/docs/components/rich-widgets.md +1 -0
  65. package/docs/guides/charts.md +1 -1
  66. package/docs/guides/code-editor.md +14 -0
  67. package/docs/guides/i18n.md +3 -1
  68. package/docs/troubleshooting.md +9 -7
  69. package/lib/components/ui/display/chip/chip-soft.css +19 -5
  70. package/package.json +2 -2
package/dist/charts.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "./ui.utils-CAnKTCw5.js";
2
2
  import { t } from "./utils-BLfntITJ.js";
3
3
  import { t as n } from "./warn-once-C_e47JM8.js";
4
- import { t as r } from "./button-DfS_amfQ.js";
5
- import { t as i } from "./use-material-translation-C_1cWRzW.js";
4
+ import { t as r } from "./button-D5k3K-gM.js";
5
+ import { t as i } from "./use-material-translation-mY3U83TV.js";
6
6
  import { t as a } from "./use-ssr-media-query-C6M5m8sf.js";
7
7
  import { i as o, n as s, r as c, t as l } from "./util-4heV2LPI.js";
8
8
  import { t as u } from "./useIsomorphicLayoutEffect-DfgAhWcH.js";
9
- import { t as d } from "./chip-Cbndukko.js";
9
+ import { t as d } from "./chip-lWXIJkqo.js";
10
10
  import { c as f, d as p, f as m, i as h, o as g, p as _, s as v, t as y } from "./line-path-C5pZGC49.js";
11
11
  import { t as b } from "./live-status-BGPaN8r8.js";
12
12
  import { t as x } from "./linear-G97mfnKF.js";
@@ -500,10 +500,17 @@ function wt(e, t, n) {
500
500
  function Tt(e, t) {
501
501
  return t >= 16 ? e + 12 : e - 4;
502
502
  }
503
- function Et(e) {
504
- return e - 5 < 9 ? e + 13 : e - 5;
503
+ function Et(e, t, n, r) {
504
+ return e.flatMap((e, i) => e !== null && t(i) >= n - 8 && t(i) <= r + 8 ? [e] : []);
505
505
  }
506
- function Dt(e, t) {
506
+ var Dt = 8;
507
+ function Ot(e, t = []) {
508
+ let n = e - 5, r = e + 15, i = n < 9 ? r : n, a = (e) => t.some((t) => t >= e - 9 - Dt && t <= e + 2 + Dt);
509
+ if (!a(i)) return i;
510
+ let o = i === n ? r : n;
511
+ return o >= 9 && !a(o) ? o : i;
512
+ }
513
+ function kt(e, t) {
507
514
  let n = 0, r = 0;
508
515
  return e.forEach((e, i) => {
509
516
  if (typeof e != "number" || !Number.isFinite(e)) return;
@@ -514,9 +521,9 @@ function Dt(e, t) {
514
521
  total: r
515
522
  };
516
523
  }
517
- var Ot = /[֐-ࣿיִ-﷿ﹰ-]/;
518
- function kt(e, t) {
519
- let n = Array.from(e).find((e) => /\p{L}/u.test(e)), r = n !== void 0 && Ot.test(n);
524
+ var At = /[֐-ࣿיִ-﷿ﹰ-]/;
525
+ function jt(e, t) {
526
+ let n = Array.from(e).find((e) => /\p{L}/u.test(e)), r = n !== void 0 && At.test(n);
520
527
  return {
521
528
  direction: r ? "rtl" : "ltr",
522
529
  textAnchor: t === "left" === r ? "end" : "start"
@@ -524,14 +531,14 @@ function kt(e, t) {
524
531
  }
525
532
  //#endregion
526
533
  //#region lib/components/ui/widgets/native-charts/core/reference-text.ts
527
- function At(e, t, n) {
534
+ function Mt(e, t, n) {
528
535
  let r = t[n.first] ?? String(n.first + 1), i = t[n.last] ?? String(n.last + 1);
529
536
  return r === i || n.first === n.last ? r : e("material.charts.reference.span", "{first} to {last}", {
530
537
  first: r,
531
538
  last: i
532
539
  });
533
540
  }
534
- function jt(e, t) {
541
+ function Nt(e, t) {
535
542
  let { format: n } = t, r = t.labels ?? [], i = r.length;
536
543
  return [...t.bands.map((t) => t.ranges ? e("material.charts.reference.steps", "{label}: {list}", {
537
544
  label: t.label,
@@ -540,7 +547,7 @@ function jt(e, t) {
540
547
  from: n(t.value.from),
541
548
  to: n(t.value.to)
542
549
  }),
543
- where: At(e, r, t)
550
+ where: Mt(e, r, t)
544
551
  })).join(", ")
545
552
  }) : e("material.charts.reference.band", "{label}: {from} to {to}", {
546
553
  label: t.label,
@@ -550,21 +557,21 @@ function jt(e, t) {
550
557
  label: t.label,
551
558
  list: bt(t, i).map((t) => e("material.charts.reference.step", "{value} ({where})", {
552
559
  value: n(t.value),
553
- where: At(e, r, t)
560
+ where: Mt(e, r, t)
554
561
  })).join(", ")
555
562
  }) : e("material.charts.reference.threshold", "{label}: {value}", {
556
563
  label: t.label,
557
564
  value: n(t.value)
558
565
  }))];
559
566
  }
560
- function Mt(e, t) {
567
+ function Pt(e, t) {
561
568
  let { bands: n, thresholds: r, series: i, format: a, labels: o } = t, s = [];
562
- n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list: jt(e, {
569
+ n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list: Nt(e, {
563
570
  bands: n,
564
571
  thresholds: [],
565
572
  format: a,
566
573
  labels: o
567
- }).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list: jt(e, {
574
+ }).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list: Nt(e, {
568
575
  bands: [],
569
576
  thresholds: r,
570
577
  format: a,
@@ -572,7 +579,7 @@ function Mt(e, t) {
572
579
  }).join(", ") }));
573
580
  for (let t of i) {
574
581
  for (let r of n) {
575
- let { outside: n, total: i } = Dt(t.values, r);
582
+ let { outside: n, total: i } = kt(t.values, r);
576
583
  n !== 0 && s.push(e("material.charts.summary.outside", "{series}: {count} of {total, plural, one {# point} other {# points}} outside {band}.", {
577
584
  series: t.label,
578
585
  count: n,
@@ -594,16 +601,16 @@ function Mt(e, t) {
594
601
  }
595
602
  //#endregion
596
603
  //#region lib/components/ui/widgets/native-charts/hooks/use-model-parts.ts
597
- function Nt(e, t, n) {
604
+ function Ft(e, t, n) {
598
605
  let { t: r, language: a } = i(), { title: o, categoryLabel: s, dataTable: c, summary: l } = e, u = e.xAxis?.label, { series: d, shown: f, labels: p, hidden: m, axes: h, refs: g } = n, _ = e.yAxis?.format, v = O(() => {
599
606
  let e = _ ?? F(a);
600
607
  return {
601
- table: jt(r, {
608
+ table: Nt(r, {
602
609
  ...g,
603
610
  format: e,
604
611
  labels: p
605
612
  }),
606
- summary: Mt(r, {
613
+ summary: Pt(r, {
607
614
  ...g,
608
615
  format: e,
609
616
  labels: p,
@@ -664,17 +671,17 @@ function Nt(e, t, n) {
664
671
  }
665
672
  //#endregion
666
673
  //#region lib/components/ui/widgets/native-charts/core/reference.ts
667
- var Pt = (e) => typeof e == "number" && Number.isFinite(e);
668
- function Ft(e, t, n) {
674
+ var It = (e) => typeof e == "number" && Number.isFinite(e);
675
+ function Lt(e, t, n) {
669
676
  let r = typeof e == "function" ? e(t, n) : typeof e == "string" ? t?.[e] : e;
670
- return Pt(r) ? r : null;
677
+ return It(r) ? r : null;
671
678
  }
672
- function It(e, t = []) {
679
+ function Rt(e, t = []) {
673
680
  let n = [];
674
681
  for (let r of e ?? []) {
675
682
  let { from: e, to: i, ...a } = r;
676
683
  if (typeof e == "number" && typeof i == "number") {
677
- if (!Pt(e) || !Pt(i)) continue;
684
+ if (!It(e) || !It(i)) continue;
678
685
  n.push(e <= i ? {
679
686
  ...a,
680
687
  from: e,
@@ -687,7 +694,7 @@ function It(e, t = []) {
687
694
  continue;
688
695
  }
689
696
  let o = t.map((t, n) => {
690
- let r = Ft(e, t, n), a = Ft(i, t, n);
697
+ let r = Lt(e, t, n), a = Lt(i, t, n);
691
698
  return r === null || a === null ? null : r <= a ? {
692
699
  from: r,
693
700
  to: a
@@ -710,18 +717,18 @@ function It(e, t = []) {
710
717
  }
711
718
  return n;
712
719
  }
713
- function Lt(e, t = []) {
720
+ function zt(e, t = []) {
714
721
  let n = [];
715
722
  for (let r of e ?? []) {
716
723
  let { value: e, ...i } = r;
717
724
  if (typeof e == "number") {
718
- Pt(e) && n.push({
725
+ It(e) && n.push({
719
726
  ...i,
720
727
  value: e
721
728
  });
722
729
  continue;
723
730
  }
724
- let a = t.map((t, n) => Ft(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
731
+ let a = t.map((t, n) => Lt(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
725
732
  if (s === void 0) continue;
726
733
  let c = o.length === a.length && o.every((e) => e === s);
727
734
  n.push(c ? {
@@ -735,12 +742,12 @@ function Lt(e, t = []) {
735
742
  }
736
743
  return n;
737
744
  }
738
- function Rt(e, t) {
739
- return [...e.flatMap((e) => [e.from, e.to]), ...t.flatMap((e) => e.values ? e.values.filter(Pt) : [e.value])];
745
+ function Bt(e, t) {
746
+ return [...e.flatMap((e) => [e.from, e.to]), ...t.flatMap((e) => e.values ? e.values.filter(It) : [e.value])];
740
747
  }
741
748
  //#endregion
742
749
  //#region lib/components/ui/widgets/native-charts/hooks/model-series.ts
743
- function zt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
750
+ function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
744
751
  let o = e.filter((e) => !t.includes(e.key)).map((e) => {
745
752
  let t = r?.(e);
746
753
  return {
@@ -759,7 +766,7 @@ function zt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
759
766
  }
760
767
  //#endregion
761
768
  //#region lib/components/ui/widgets/native-charts/hooks/model-tones.ts
762
- function Bt(e, t) {
769
+ function Ht(e, t) {
763
770
  let { shown: n, labels: r, data: i, offset: a, pointTone: o, words: s } = t;
764
771
  return n.map((t) => {
765
772
  let c = t.values.map((c, l) => {
@@ -781,15 +788,15 @@ function Bt(e, t) {
781
788
  }
782
789
  //#endregion
783
790
  //#region lib/components/ui/widgets/native-charts/hooks/use-model-shown.ts
784
- function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offset: s, reference: c }) {
785
- let { t: l, language: u } = i(), d = O(() => It(c?.bands, n), [c?.bands, n]), f = O(() => Lt(c?.thresholds, n), [c?.thresholds, n]), p = O(() => ({
791
+ function Ut({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offset: s, reference: c }) {
792
+ let { t: l, language: u } = i(), d = O(() => Rt(c?.bands, n), [c?.bands, n]), f = O(() => zt(c?.thresholds, n), [c?.thresholds, n]), p = O(() => ({
786
793
  bands: d,
787
794
  thresholds: f
788
795
  }), [d, f]), m = c?.pointTone, h = c?.toneLabels;
789
796
  return {
790
797
  refs: p,
791
798
  shown: O(() => {
792
- let i = zt({
799
+ let i = Vt({
793
800
  series: e,
794
801
  hidden: t,
795
802
  data: n,
@@ -797,7 +804,7 @@ function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offse
797
804
  yAxis: a,
798
805
  language: u
799
806
  });
800
- return m ? Bt(l, {
807
+ return m ? Ht(l, {
801
808
  shown: i,
802
809
  labels: o,
803
810
  data: n,
@@ -820,90 +827,90 @@ function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offse
820
827
  ])
821
828
  };
822
829
  }
823
- var Ht = (e) => Math.min(2, Math.max(1, e));
824
- function Ut(e) {
830
+ var Wt = (e) => Math.min(2, Math.max(1, e));
831
+ function Gt(e) {
825
832
  return [0, Math.max(0, e - 1)];
826
833
  }
827
- function Wt(e, t) {
828
- let [n, r] = Ut(t);
834
+ function Kt(e, t) {
835
+ let [n, r] = Gt(t);
829
836
  return e[0] <= n && e[1] >= r;
830
837
  }
831
- function Gt(e, t) {
832
- let n = Math.max(0, t - 1), r = Ht(t) - 1, i = Math.min(n, Math.max(0, Math.round(e[0]))), a = Math.min(n, Math.max(0, Math.round(e[1])));
838
+ function qt(e, t) {
839
+ let n = Math.max(0, t - 1), r = Wt(t) - 1, i = Math.min(n, Math.max(0, Math.round(e[0]))), a = Math.min(n, Math.max(0, Math.round(e[1])));
833
840
  return a < i && ([i, a] = [a, i]), a - i < r && (a = Math.min(n, i + r), i = Math.max(0, a - r)), [i, a];
834
841
  }
835
- function Kt(e, t, n) {
836
- let r = Ht(n) - 1;
842
+ function Jt(e, t, n) {
843
+ let r = Wt(n) - 1;
837
844
  return e === "start" ? [0, Math.max(0, t[1] - r)] : [Math.min(Math.max(0, n - 1), t[0] + r), Math.max(0, n - 1)];
838
845
  }
839
- function qt(e, t, n, r) {
840
- let [i, a] = Kt(t, e, r), o = Math.min(a, Math.max(i, Math.round(n)));
846
+ function Yt(e, t, n, r) {
847
+ let [i, a] = Jt(t, e, r), o = Math.min(a, Math.max(i, Math.round(n)));
841
848
  return t === "start" ? [o, e[1]] : [e[0], o];
842
849
  }
843
- function Jt(e, t, n) {
850
+ function Xt(e, t, n) {
844
851
  let r = e[1] - e[0], i = Math.min(Math.max(0, n - 1 - r), Math.max(0, Math.round(e[0] + t)));
845
852
  return [i, i + r];
846
853
  }
847
- function Yt(e) {
854
+ function Zt(e) {
848
855
  return Math.max(1, Math.round(e * .1));
849
856
  }
850
- function Xt(e, t) {
857
+ function Qt(e, t) {
851
858
  switch (e) {
852
859
  case "ArrowRight":
853
860
  case "ArrowUp": return { by: 1 };
854
861
  case "ArrowLeft":
855
862
  case "ArrowDown": return { by: -1 };
856
- case "PageUp": return { by: Yt(t) };
857
- case "PageDown": return { by: -Yt(t) };
863
+ case "PageUp": return { by: Zt(t) };
864
+ case "PageDown": return { by: -Zt(t) };
858
865
  case "Home": return { to: "min" };
859
866
  case "End": return { to: "max" };
860
867
  default: return null;
861
868
  }
862
869
  }
863
- function Zt(e, t, n, r) {
864
- let i = Xt(n, r);
870
+ function $t(e, t, n, r) {
871
+ let i = Qt(n, r);
865
872
  if (!i) return null;
866
- let [a, o] = Kt(t, e, r), s = t === "start" ? e[0] : e[1];
867
- return qt(e, t, "by" in i ? s + i.by : i.to === "min" ? a : o, r);
873
+ let [a, o] = Jt(t, e, r), s = t === "start" ? e[0] : e[1];
874
+ return Yt(e, t, "by" in i ? s + i.by : i.to === "min" ? a : o, r);
868
875
  }
869
- function Qt(e, t, n) {
870
- let r = Xt(t, n);
876
+ function en(e, t, n) {
877
+ let r = Qt(t, n);
871
878
  if (!r) return null;
872
879
  let i = n - 1 - (e[1] - e[0]);
873
- return "by" in r ? Jt(e, r.by, n) : Jt(e, r.to === "min" ? -e[0] : i, n);
880
+ return "by" in r ? Xt(e, r.by, n) : Xt(e, r.to === "min" ? -e[0] : i, n);
874
881
  }
875
- function $t(e, t) {
882
+ function tn(e, t) {
876
883
  return e.slice(t[0], t[1] + 1);
877
884
  }
878
- function en(e, t, n, r) {
885
+ function nn(e, t, n, r) {
879
886
  return t <= 1 ? r : r + e * (n - 2 * r) / (t - 1);
880
887
  }
881
888
  //#endregion
882
889
  //#region lib/components/ui/widgets/native-charts/core/nav.ts
883
- var tn = {
890
+ var rn = {
884
891
  index: null,
885
892
  series: 0
886
893
  };
887
- function nn(e, t) {
894
+ function an(e, t) {
888
895
  return t.includes(e) ? e : t[0] ?? 0;
889
896
  }
890
- function rn(e, t, n) {
897
+ function on(e, t, n) {
891
898
  let r = t.indexOf(e);
892
899
  return r < 0 ? t[0] ?? e : t[Math.min(t.length - 1, Math.max(0, r + n))] ?? e;
893
900
  }
894
- function an(e, t) {
901
+ function sn(e, t) {
895
902
  return Math.min(t - 1, Math.max(0, e));
896
903
  }
897
- function on(e, t, { count: n, visible: r }) {
904
+ function cn(e, t, { count: n, visible: r }) {
898
905
  let i = {
899
906
  state: e,
900
907
  handled: !1,
901
908
  activate: !1
902
909
  };
903
910
  if (n <= 0) return i;
904
- let a = nn(e.series, r), o = e.index, s = (e, t = a) => ({
911
+ let a = an(e.series, r), o = e.index, s = (e, t = a) => ({
905
912
  state: {
906
- index: an(e, n),
913
+ index: sn(e, n),
907
914
  series: t
908
915
  },
909
916
  handled: !0,
@@ -912,10 +919,10 @@ function on(e, t, { count: n, visible: r }) {
912
919
  switch (t) {
913
920
  case "ArrowRight": return s(o === null ? 0 : o + 1);
914
921
  case "ArrowLeft": return s(o === null ? 0 : o - 1);
915
- case "ArrowDown": return s(o ?? 0, o === null ? a : rn(a, r, 1));
916
- case "ArrowUp": return s(o ?? 0, o === null ? a : rn(a, r, -1));
917
- case "PageUp": return s(o === null ? 0 : o + Yt(n));
918
- case "PageDown": return s(o === null ? 0 : o - Yt(n));
922
+ case "ArrowDown": return s(o ?? 0, o === null ? a : on(a, r, 1));
923
+ case "ArrowUp": return s(o ?? 0, o === null ? a : on(a, r, -1));
924
+ case "PageUp": return s(o === null ? 0 : o + Zt(n));
925
+ case "PageDown": return s(o === null ? 0 : o - Zt(n));
919
926
  case "Home": return s(0);
920
927
  case "End": return s(n - 1);
921
928
  case "Enter":
@@ -940,13 +947,13 @@ function on(e, t, { count: n, visible: r }) {
940
947
  }
941
948
  //#endregion
942
949
  //#region lib/components/ui/widgets/native-charts/hooks/use-point-nav.ts
943
- var sn = {
944
- ...tn,
950
+ var ln = {
951
+ ...rn,
945
952
  source: "key"
946
953
  };
947
- function cn({ count: e, visible: t, onActivate: n, keyMap: r }) {
948
- let [i, a] = A(sn), o = T((o) => {
949
- let s = on(i, r ? r(o.key) : o.key, {
954
+ function un({ count: e, visible: t, onActivate: n, keyMap: r }) {
955
+ let [i, a] = A(ln), o = T((o) => {
956
+ let s = cn(i, r ? r(o.key) : o.key, {
950
957
  count: e,
951
958
  visible: t
952
959
  });
@@ -975,7 +982,7 @@ function cn({ count: e, visible: t, onActivate: n, keyMap: r }) {
975
982
  source: "pointer"
976
983
  };
977
984
  });
978
- }, []), c = T(() => s(null), [s]), l = nn(i.series, t);
985
+ }, []), c = T(() => s(null), [s]), l = an(i.series, t);
979
986
  return {
980
987
  active: i.index === null || i.index >= e ? null : {
981
988
  index: i.index,
@@ -989,27 +996,27 @@ function cn({ count: e, visible: t, onActivate: n, keyMap: r }) {
989
996
  }
990
997
  //#endregion
991
998
  //#region lib/components/ui/widgets/native-charts/core/visibility.ts
992
- function ln(e, t, n) {
999
+ function dn(e, t, n) {
993
1000
  if (e.includes(t)) return e.filter((e) => e !== t);
994
1001
  let r = n.filter((t) => !e.includes(t));
995
1002
  return r.length <= 1 && r[0] === t ? [...e] : n.filter((n) => n === t || e.includes(n));
996
1003
  }
997
- function un(e, t, n) {
1004
+ function fn(e, t, n) {
998
1005
  let r = n.filter((t) => !e.includes(t));
999
1006
  return r.length === 1 && r[0] === t && n.length > 1;
1000
1007
  }
1001
- function dn(e, t, n) {
1002
- return un(e, t, n) ? [] : n.filter((e) => e !== t);
1008
+ function pn(e, t, n) {
1009
+ return fn(e, t, n) ? [] : n.filter((e) => e !== t);
1003
1010
  }
1004
- function fn(e, t, n) {
1011
+ function mn(e, t, n) {
1005
1012
  if (t < 3) return new Set(e);
1006
1013
  let r = n && e.includes(n) ? n : e[0];
1007
1014
  return new Set(r ? [r] : []);
1008
1015
  }
1009
- var pn = (e, t) => fn(e, e.length, t);
1016
+ var hn = (e, t) => mn(e, e.length, t);
1010
1017
  //#endregion
1011
1018
  //#region lib/components/ui/widgets/native-charts/hooks/use-series-visibility.ts
1012
- function mn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1019
+ function gn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1013
1020
  let [i, a] = A(n ?? []), o = t ?? i, s = O(() => {
1014
1021
  let t = e.filter((e) => o.includes(e));
1015
1022
  return t.length === e.length ? t.slice(1) : t;
@@ -1024,15 +1031,15 @@ function mn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1024
1031
  hidden: s,
1025
1032
  visible: O(() => e.filter((e) => !s.includes(e)), [e, s]),
1026
1033
  isHidden: (e) => s.includes(e),
1027
- toggle: (t) => c(ln(s, t, e)),
1028
- isolate: (t) => c(dn(s, t, e)),
1034
+ toggle: (t) => c(dn(s, t, e)),
1035
+ isolate: (t) => c(pn(s, t, e)),
1029
1036
  showAll: () => c([])
1030
1037
  };
1031
1038
  }
1032
1039
  //#endregion
1033
1040
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-model.ts
1034
- function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1035
- let { data: s, x: c, xAxis: l, yAxis: u, onPointClick: d } = e, { t: f, language: p } = i(), m = O(() => Te(e.series), [e.series]), h = O(() => m.map((e) => e.key), [m]), g = mn({
1041
+ function _n(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1042
+ let { data: s, x: c, xAxis: l, yAxis: u, onPointClick: d } = e, { t: f, language: p } = i(), m = O(() => Te(e.series), [e.series]), h = O(() => m.map((e) => e.key), [m]), g = gn({
1036
1043
  keys: h,
1037
1044
  hidden: e.hidden,
1038
1045
  defaultHidden: e.defaultHidden,
@@ -1042,7 +1049,7 @@ function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1042
1049
  c,
1043
1050
  l,
1044
1051
  p
1045
- ]), y = a?.offset, { refs: b, shown: x } = Vt({
1052
+ ]), y = a?.offset, { refs: b, shown: x } = Ut({
1046
1053
  series: m,
1047
1054
  hidden: g.hidden,
1048
1055
  data: s,
@@ -1060,7 +1067,7 @@ function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1060
1067
  v,
1061
1068
  s,
1062
1069
  y
1063
- ]), C = cn({
1070
+ ]), C = un({
1064
1071
  count: s.length,
1065
1072
  visible: O(() => x.map((e) => e.position), [x]),
1066
1073
  keyMap: n,
@@ -1070,7 +1077,7 @@ function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1070
1077
  }
1071
1078
  }), w = C.active;
1072
1079
  return {
1073
- ...Nt(e, t, {
1080
+ ...Ft(e, t, {
1074
1081
  series: m,
1075
1082
  shown: x,
1076
1083
  labels: v,
@@ -1101,23 +1108,23 @@ function hn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1101
1108
  }
1102
1109
  };
1103
1110
  }
1104
- function gn(e, t) {
1111
+ function vn(e, t) {
1105
1112
  return e === !1 ? null : typeof e == "object" ? e.minPointWidth ?? 28 : e === !0 || t ? 28 : null;
1106
1113
  }
1107
- function _n(e, t, n) {
1114
+ function yn(e, t, n) {
1108
1115
  if (n === null || e <= 1) return t;
1109
1116
  let r = Math.ceil(e * n + 60);
1110
1117
  return r > t ? r : t;
1111
1118
  }
1112
- var vn = 20;
1113
- function yn({ x: e, content: t, frame: n, current: r, pinLeft: i = 0, pinRight: a = 0 }) {
1119
+ var bn = 20;
1120
+ function xn({ x: e, content: t, frame: n, current: r, pinLeft: i = 0, pinRight: a = 0 }) {
1114
1121
  if (t <= n) return 0;
1115
1122
  let o = r;
1116
- return e - vn < r + i ? o = e - vn - i : e + vn > r + n - a && (o = e + vn + a - n), Math.min(t - n, Math.max(0, o));
1123
+ return e - bn < r + i ? o = e - bn - i : e + bn > r + n - a && (o = e + bn + a - n), Math.min(t - n, Math.max(0, o));
1117
1124
  }
1118
1125
  //#endregion
1119
1126
  //#region ../../node_modules/d3-shape/src/area.js
1120
- function bn(e, t, n) {
1127
+ function Sn(e, t, n) {
1121
1128
  var r = null, i = C(!0), a = null, o = ne, s = null, c = w(l);
1122
1129
  e = typeof e == "function" ? e : e === void 0 ? ie : C(+e), t = typeof t == "function" ? t : C(t === void 0 ? 0 : +t), n = typeof n == "function" ? n : n === void 0 ? ae : C(+n);
1123
1130
  function l(l) {
@@ -1163,37 +1170,37 @@ function bn(e, t, n) {
1163
1170
  }
1164
1171
  //#endregion
1165
1172
  //#region lib/components/ui/widgets/native-charts/core/lines.ts
1166
- function xn(e = "smooth") {
1173
+ function Cn(e = "smooth") {
1167
1174
  return e === "linear" ? ne : e === "step" ? re : te;
1168
1175
  }
1169
- function Sn(e) {
1176
+ function wn(e) {
1170
1177
  let t = Math.max(0, ...e.map((e) => e.length)), n = Array.from({ length: t }, () => 0);
1171
1178
  return e.map((e) => ({
1172
1179
  y0: [...n],
1173
1180
  y1: e.map((e, t) => (n[t] = (n[t] ?? 0) + (e ?? 0), e === null ? null : n[t]))
1174
1181
  }));
1175
1182
  }
1176
- function Cn({ y0: e, y1: t, x: n, y: r, curve: i }) {
1177
- let a = t.map((e, t) => t), o = (e) => t[e] !== null && t[e] !== void 0, s = xn(i);
1183
+ function Tn({ y0: e, y1: t, x: n, y: r, curve: i }) {
1184
+ let a = t.map((e, t) => t), o = (e) => t[e] !== null && t[e] !== void 0, s = Cn(i);
1178
1185
  return {
1179
1186
  line: oe().defined(o).x(n).y((e) => r(t[e])).curve(s)(a) ?? "",
1180
- area: bn().defined(o).x(n).y0((t) => r(e[t] ?? 0)).y1((e) => r(t[e])).curve(s)(a) ?? ""
1187
+ area: Sn().defined(o).x(n).y0((t) => r(e[t] ?? 0)).y1((e) => r(t[e])).curve(s)(a) ?? ""
1181
1188
  };
1182
1189
  }
1183
- function wn(e) {
1190
+ function En(e) {
1184
1191
  let t = (t) => typeof e[t] == "number";
1185
1192
  return e.flatMap((e, n) => t(n) && !t(n - 1) && !t(n + 1) ? [n] : []);
1186
1193
  }
1187
- function Tn(e, t) {
1194
+ function Dn(e, t) {
1188
1195
  let n = null;
1189
1196
  return e.forEach((r, i) => {
1190
1197
  r !== null && (n === null || Math.abs(r - t) < Math.abs(e[n] - t)) && (n = i);
1191
1198
  }), n;
1192
1199
  }
1193
- function En(e, t) {
1200
+ function On(e, t) {
1194
1201
  return Math.max(t ? 32 : 40, Math.ceil(rt(e, 11.5)) + 16);
1195
1202
  }
1196
- function Dn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1203
+ function kn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1197
1204
  let a = /* @__PURE__ */ new Map();
1198
1205
  for (let t of e) {
1199
1206
  let e = a.get(t.group) ?? [];
@@ -1202,10 +1209,10 @@ function Dn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1202
1209
  }
1203
1210
  let o = n - 6;
1204
1211
  return e.map((e) => {
1205
- let n = a.get(e.group) ?? [], s = Math.min(0, ...n), c = Math.max(s + 1, ...n), l = x().domain([s, c]).range([o, 8]), u = e.values.length, { line: d, area: f } = Cn({
1212
+ let n = a.get(e.group) ?? [], s = Math.min(0, ...n), c = Math.max(s + 1, ...n), l = x().domain([s, c]).range([o, 8]), u = e.values.length, { line: d, area: f } = Tn({
1206
1213
  y1: e.values,
1207
1214
  y0: e.values.map(() => Math.max(s, 0)),
1208
- x: (e) => en(e, u, t, r),
1215
+ x: (e) => nn(e, u, t, r),
1209
1216
  y: l,
1210
1217
  curve: i
1211
1218
  });
@@ -1218,14 +1225,14 @@ function Dn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1218
1225
  }
1219
1226
  //#endregion
1220
1227
  //#region lib/components/ui/widgets/native-charts/hooks/use-overview-drag.ts
1221
- function On({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a }) {
1228
+ function An({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a }) {
1222
1229
  let o = k(null), s = k(e), c = (e) => {
1223
1230
  let i = o.current;
1224
1231
  if (!i) return null;
1225
1232
  let a = Math.round((e.clientX - i.x) * r() / n);
1226
- if (i.part === "window") return Jt(i.range, a, t);
1233
+ if (i.part === "window") return Xt(i.range, a, t);
1227
1234
  let s = i.part === "start" ? i.range[0] : i.range[1];
1228
- return qt(i.range, i.part, s + a, t);
1235
+ return Yt(i.range, i.part, s + a, t);
1229
1236
  };
1230
1237
  return (t) => ({
1231
1238
  onPointerDown: (n) => {
@@ -1261,9 +1268,9 @@ function On({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a })
1261
1268
  }
1262
1269
  //#endregion
1263
1270
  //#region lib/components/ui/widgets/native-charts/partials/range-handle.tsx
1264
- var kn = 10, An = 24, jn = 28, Mn = Math.min(8, kn / 3);
1265
- function Nn({ which: e, x: t, zoom: n, drag: r }) {
1266
- let { t: a } = i(), { range: o, count: s, labels: c } = n, [l, u] = Kt(e, o, s), d = e === "start" ? o[0] : o[1];
1271
+ var jn = 10, Mn = 24, Nn = 28, Pn = Math.min(8, jn / 3);
1272
+ function Fn({ which: e, x: t, zoom: n, drag: r }) {
1273
+ let { t: a } = i(), { range: o, count: s, labels: c } = n, [l, u] = Jt(e, o, s), d = e === "start" ? o[0] : o[1];
1267
1274
  return /* @__PURE__ */ N("g", {
1268
1275
  role: "slider",
1269
1276
  tabIndex: 0,
@@ -1277,24 +1284,24 @@ function Nn({ which: e, x: t, zoom: n, drag: r }) {
1277
1284
  "data-slot": "chart-range-handle",
1278
1285
  "data-handle": e,
1279
1286
  onKeyDown: (t) => {
1280
- let r = Zt(o, e, t.key, s);
1287
+ let r = $t(o, e, t.key, s);
1281
1288
  r && (t.preventDefault(), n.set(r));
1282
1289
  },
1283
1290
  ...r,
1284
1291
  children: [
1285
1292
  /* @__PURE__ */ M("rect", {
1286
- x: t - An / 2,
1293
+ x: t - Mn / 2,
1287
1294
  y: 0,
1288
- width: An,
1295
+ width: Mn,
1289
1296
  height: 48,
1290
1297
  className: "nxgt-chart-handle-hit"
1291
1298
  }),
1292
1299
  /* @__PURE__ */ M("rect", {
1293
- x: t - kn / 2,
1294
- y: (48 - jn) / 2,
1295
- width: kn,
1296
- height: jn,
1297
- rx: Mn,
1300
+ x: t - jn / 2,
1301
+ y: (48 - Nn) / 2,
1302
+ width: jn,
1303
+ height: Nn,
1304
+ rx: Pn,
1298
1305
  className: "nxgt-chart-handle-grip"
1299
1306
  }),
1300
1307
  /* @__PURE__ */ M("path", {
@@ -1306,8 +1313,8 @@ function Nn({ which: e, x: t, zoom: n, drag: r }) {
1306
1313
  }
1307
1314
  //#endregion
1308
1315
  //#region lib/components/ui/widgets/native-charts/partials/overview-track.tsx
1309
- function Pn({ series: e, width: t, curve: n }) {
1310
- let r = O(() => Dn(e, {
1316
+ function In({ series: e, width: t, curve: n }) {
1317
+ let r = O(() => kn(e, {
1311
1318
  width: t,
1312
1319
  curve: n
1313
1320
  }), [
@@ -1327,7 +1334,7 @@ function Pn({ series: e, width: t, curve: n }) {
1327
1334
  })]
1328
1335
  }, e.key));
1329
1336
  }
1330
- function Fn({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1337
+ function Ln({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1331
1338
  let { t: o } = i(), { range: s, count: c, labels: l } = e;
1332
1339
  return /* @__PURE__ */ M("rect", {
1333
1340
  ref: a,
@@ -1350,14 +1357,14 @@ function Fn({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1350
1357
  className: "nxgt-chart-window",
1351
1358
  "data-slot": "chart-range-window",
1352
1359
  onKeyDown: (t) => {
1353
- let n = Qt(s, t.key, c);
1360
+ let n = en(s, t.key, c);
1354
1361
  n && (t.preventDefault(), e.set(n));
1355
1362
  },
1356
1363
  ...r
1357
1364
  });
1358
1365
  }
1359
- function In({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1360
- let a = k(null), { range: o, count: s } = e, c = (e) => en(e, s, n, 12), [l, u] = [c(o[0]), c(o[1])], d = On({
1366
+ function Rn({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1367
+ let a = k(null), { range: o, count: s } = e, c = (e) => nn(e, s, n, 12), [l, u] = [c(o[0]), c(o[1])], d = An({
1361
1368
  range: o,
1362
1369
  count: s,
1363
1370
  step: (n - 24) / Math.max(1, s - 1),
@@ -1373,7 +1380,7 @@ function In({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1373
1380
  className: "nxgt-chart-overview-svg",
1374
1381
  "data-slot": "chart-overview-track",
1375
1382
  children: [
1376
- /* @__PURE__ */ M(Pn, {
1383
+ /* @__PURE__ */ M(In, {
1377
1384
  series: t,
1378
1385
  width: n,
1379
1386
  curve: r
@@ -1392,20 +1399,20 @@ function In({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1392
1399
  height: 48,
1393
1400
  className: "nxgt-chart-overview-dim"
1394
1401
  }),
1395
- /* @__PURE__ */ M(Fn, {
1402
+ /* @__PURE__ */ M(Ln, {
1396
1403
  zoom: e,
1397
1404
  x0: l,
1398
1405
  x1: u,
1399
1406
  drag: d("window"),
1400
1407
  windowRef: i
1401
1408
  }),
1402
- /* @__PURE__ */ M(Nn, {
1409
+ /* @__PURE__ */ M(Fn, {
1403
1410
  which: "start",
1404
1411
  x: l,
1405
1412
  zoom: e,
1406
1413
  drag: d("start")
1407
1414
  }),
1408
- /* @__PURE__ */ M(Nn, {
1415
+ /* @__PURE__ */ M(Fn, {
1409
1416
  which: "end",
1410
1417
  x: u,
1411
1418
  zoom: e,
@@ -1416,7 +1423,7 @@ function In({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1416
1423
  }
1417
1424
  //#endregion
1418
1425
  //#region lib/components/ui/widgets/native-charts/partials/chart-overview.tsx
1419
- function Ln({ zoom: e, series: t, width: n, curve: a }) {
1426
+ function zn({ zoom: e, series: t, width: n, curve: a }) {
1420
1427
  let { t: o } = i(), { range: s, labels: c } = e, l = k(null);
1421
1428
  return /* @__PURE__ */ N("div", {
1422
1429
  role: "group",
@@ -1444,7 +1451,7 @@ function Ln({ zoom: e, series: t, width: n, curve: a }) {
1444
1451
  children: [/* @__PURE__ */ M(he, { "aria-hidden": !0 }), o("material.charts.zoom-reset", "Reset zoom")]
1445
1452
  })]
1446
1453
  }),
1447
- /* @__PURE__ */ M(In, {
1454
+ /* @__PURE__ */ M(Rn, {
1448
1455
  zoom: e,
1449
1456
  series: t,
1450
1457
  width: n || 320,
@@ -1460,7 +1467,7 @@ function Ln({ zoom: e, series: t, width: n, curve: a }) {
1460
1467
  }
1461
1468
  //#endregion
1462
1469
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-view.tsx
1463
- function Rn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll: o = !0 }) {
1470
+ function Bn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll: o = !0 }) {
1464
1471
  let [s, c] = t.range, { clear: l } = e.nav, { onShift: u } = t;
1465
1472
  pe(() => {
1466
1473
  u.current = l;
@@ -1469,7 +1476,7 @@ function Rn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1469
1476
  E(() => {
1470
1477
  f.current !== d && (f.current = d, l());
1471
1478
  }, [d, l]);
1472
- let { size: p } = e, m = o ? gn(n.scroll, p.phone) : null, h = _n(e.labels.length, p.width, m), g = p.measured && h > p.width, { shown: _ } = e, v = O(() => _.map((e) => ({
1479
+ let { size: p } = e, m = o ? vn(n.scroll, p.phone) : null, h = yn(e.labels.length, p.width, m), g = p.measured && h > p.width, { shown: _ } = e, v = O(() => _.map((e) => ({
1473
1480
  key: e.key,
1474
1481
  paint: e.paint,
1475
1482
  group: i?.(e.key) ?? "all",
@@ -1478,7 +1485,7 @@ function Rn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1478
1485
  _,
1479
1486
  r,
1480
1487
  i
1481
- ]), y = t.enabled ? /* @__PURE__ */ M(Ln, {
1488
+ ]), y = t.enabled ? /* @__PURE__ */ M(zn, {
1482
1489
  zoom: t,
1483
1490
  width: p.width,
1484
1491
  series: v,
@@ -1504,7 +1511,7 @@ function Rn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1504
1511
  }
1505
1512
  //#endregion
1506
1513
  //#region lib/components/ui/widgets/native-charts/hooks/use-range-announcement.ts
1507
- function zn(e, t) {
1514
+ function Vn(e, t) {
1508
1515
  let { t: n } = i(), [r, a] = A(null), [o, s] = t, c = k([o, s]), l = k(null), u = T((t) => a(n("material.charts.zoom-showing", "Showing {from} to {to}", {
1509
1516
  from: e[t[0]] ?? "",
1510
1517
  to: e[t[1]] ?? ""
@@ -1528,20 +1535,20 @@ function zn(e, t) {
1528
1535
  }
1529
1536
  //#endregion
1530
1537
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-zoom.ts
1531
- var Bn = (e) => typeof e == "object" ? e : {};
1532
- function Vn(e) {
1533
- let { data: t, x: n, xAxis: r } = e, { language: a } = i(), o = Bn(e.zoom), s = t.length, c = !!e.zoom && s > 2, [l, u] = A(o.defaultRange ?? null), d = o.range ?? l ?? Ut(s), f = c ? Gt(d, s) : Ut(s), p = O(() => c ? je(t, n, r, a) : [], [
1538
+ var Hn = (e) => typeof e == "object" ? e : {};
1539
+ function Un(e) {
1540
+ let { data: t, x: n, xAxis: r } = e, { language: a } = i(), o = Hn(e.zoom), s = t.length, c = !!e.zoom && s > 2, [l, u] = A(o.defaultRange ?? null), d = o.range ?? l ?? Gt(s), f = c ? qt(d, s) : Gt(s), p = O(() => c ? je(t, n, r, a) : [], [
1534
1541
  c,
1535
1542
  t,
1536
1543
  n,
1537
1544
  r,
1538
1545
  a
1539
- ]), { onRangeChange: m } = o, h = o.range !== void 0, [g, _] = f, v = zn(p, f), y = k([g, _]), b = k(null);
1546
+ ]), { onRangeChange: m } = o, h = o.range !== void 0, [g, _] = f, v = Vn(p, f), y = k([g, _]), b = k(null);
1540
1547
  E(() => {
1541
1548
  y.current = [g, _];
1542
1549
  }, [g, _]);
1543
1550
  let x = T((e, { announce: t = !0 } = {}) => {
1544
- let n = Gt(e, s);
1551
+ let n = qt(e, s);
1545
1552
  n[0] === y.current[0] && n[1] === y.current[1] || (h || (y.current = n), v.arm(t ? n : null), b.current?.(), h || u(n), m?.(n));
1546
1553
  }, [
1547
1554
  s,
@@ -1553,7 +1560,7 @@ function Vn(e) {
1553
1560
  enabled: c,
1554
1561
  range: f,
1555
1562
  count: s,
1556
- rows: O(() => c ? $t(t, [g, _]) : t, [
1563
+ rows: O(() => c ? tn(t, [g, _]) : t, [
1557
1564
  c,
1558
1565
  t,
1559
1566
  g,
@@ -1564,9 +1571,9 @@ function Vn(e) {
1564
1571
  total: s
1565
1572
  } : void 0,
1566
1573
  labels: p,
1567
- zoomed: c && !Wt(f, s),
1574
+ zoomed: c && !Kt(f, s),
1568
1575
  set: x,
1569
- reset: () => x(Ut(s)),
1576
+ reset: () => x(Gt(s)),
1570
1577
  announce: v.announce,
1571
1578
  onShift: b,
1572
1579
  announcement: v.announcement
@@ -1574,7 +1581,7 @@ function Vn(e) {
1574
1581
  }
1575
1582
  //#endregion
1576
1583
  //#region lib/components/ui/widgets/native-charts/partials/chart-data-table.tsx
1577
- function Hn({ model: e, caption: t }) {
1584
+ function Wn({ model: e, caption: t }) {
1578
1585
  let n = O(() => typeof e == "function" ? e() : e, [e]);
1579
1586
  return /* @__PURE__ */ N("section", {
1580
1587
  className: "nxgt-chart-table",
@@ -1614,7 +1621,7 @@ function Hn({ model: e, caption: t }) {
1614
1621
  }
1615
1622
  //#endregion
1616
1623
  //#region lib/components/ui/widgets/native-charts/partials/chart-frame-header.tsx
1617
- function Un({ titleId: t, title: n, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1624
+ function Gn({ titleId: t, title: n, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1618
1625
  let { t: u } = i();
1619
1626
  return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
1620
1627
  className: "nxgt-chart-pad flex flex-wrap items-start justify-between gap-x-3 gap-y-1",
@@ -1646,7 +1653,7 @@ function Un({ titleId: t, title: n, description: a, headline: o, tableId: s, ope
1646
1653
  }
1647
1654
  //#endregion
1648
1655
  //#region lib/components/ui/widgets/native-charts/hooks/use-css-variables.ts
1649
- function Wn(e, t) {
1656
+ function Kn(e, t) {
1650
1657
  u(() => {
1651
1658
  let n = e.current;
1652
1659
  if (n) for (let [e, r] of Object.entries(t)) r == null ? n.style.removeProperty(e) : n.style.setProperty(e, typeof r == "number" ? `${r}px` : r);
@@ -1654,9 +1661,9 @@ function Wn(e, t) {
1654
1661
  }
1655
1662
  //#endregion
1656
1663
  //#region lib/components/ui/widgets/native-charts/partials/chart-plot-state.tsx
1657
- function Gn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1664
+ function qn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1658
1665
  let { t: o } = i(), s = k(null);
1659
- return Wn(s, { "--nxgt-chart-height": e }), t ? /* @__PURE__ */ M("div", {
1666
+ return Kn(s, { "--nxgt-chart-height": e }), t ? /* @__PURE__ */ M("div", {
1660
1667
  ref: s,
1661
1668
  className: "nxgt-chart-skeleton",
1662
1669
  "data-slot": "chart-skeleton",
@@ -1676,7 +1683,7 @@ function Gn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1676
1683
  }
1677
1684
  //#endregion
1678
1685
  //#region lib/components/ui/widgets/native-charts/partials/chart-frame.tsx
1679
- function Kn({ title: e, description: n, headline: r, summary: i, legend: a, legendPosition: o = "top", phone: s = !1, table: c, height: l, loading: u, empty: d, emptyState: f, surface: p = "card", palette: m, className: h, plotRef: g, overview: _, plotHeader: v, children: y }) {
1686
+ function Jn({ title: e, description: n, headline: r, summary: i, legend: a, legendPosition: o = "top", phone: s = !1, table: c, height: l, loading: u, empty: d, emptyState: f, surface: p = "card", palette: m, className: h, plotRef: g, overview: _, plotHeader: v, children: y }) {
1680
1687
  let b = D(), x = D(), [S, C] = A(!1), w = !!a && o !== !1 && !u, ee = s || o === "bottom", te = /* @__PURE__ */ M("div", {
1681
1688
  className: "nxgt-chart-pad",
1682
1689
  "data-slot": "chart-legend-box",
@@ -1691,7 +1698,7 @@ function Kn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1691
1698
  "data-phone": s || void 0,
1692
1699
  className: t("nxgt-chart", h),
1693
1700
  children: [
1694
- /* @__PURE__ */ M(Un, {
1701
+ /* @__PURE__ */ M(Gn, {
1695
1702
  titleId: b,
1696
1703
  title: e,
1697
1704
  description: n,
@@ -1711,7 +1718,7 @@ function Kn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1711
1718
  className: "nxgt-chart-pad min-w-0",
1712
1719
  children: [
1713
1720
  !(u || d) && v,
1714
- /* @__PURE__ */ M(Gn, {
1721
+ /* @__PURE__ */ M(qn, {
1715
1722
  height: l,
1716
1723
  loading: u,
1717
1724
  empty: d,
@@ -1733,30 +1740,30 @@ function Kn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1733
1740
  }
1734
1741
  //#endregion
1735
1742
  //#region lib/components/ui/widgets/native-charts/core/marks.ts
1736
- var qn = {
1743
+ var Yn = {
1737
1744
  circle: "circle",
1738
1745
  square: "square",
1739
1746
  diamond: "diamond",
1740
1747
  triangle: "triangle",
1741
1748
  pentagon: "pentagon"
1742
1749
  };
1743
- function Jn(e, t, n) {
1750
+ function Xn(e, t, n) {
1744
1751
  let r = 0;
1745
1752
  return e.replace(/-?\d+(?:\.\d+)?(?:e-?\d+)?/g, (e) => {
1746
1753
  let i = Number(e) + (r++ % 2 == 0 ? t : n);
1747
1754
  return String(Math.round(i * 100) / 100);
1748
1755
  });
1749
1756
  }
1750
- function Yn(e, t, n, r) {
1751
- return Jn(ue(le(qn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1752
- }
1753
- var Xn;
1754
1757
  function Zn(e, t, n, r) {
1755
- return Xn ??= se(le("circle", "circle"), le("cookie-6", "circle")), Jn(ue(ce(Xn, Math.min(1, Math.max(0, e))), { size: t }), n - t / 2, r - t / 2);
1758
+ return Xn(ue(le(Yn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1759
+ }
1760
+ var Qn;
1761
+ function $n(e, t, n, r) {
1762
+ return Qn ??= se(le("circle", "circle"), le("cookie-6", "circle")), Xn(ue(ce(Qn, Math.min(1, Math.max(0, e))), { size: t }), n - t / 2, r - t / 2);
1756
1763
  }
1757
1764
  //#endregion
1758
1765
  //#region lib/components/ui/widgets/native-charts/partials/series-marker.tsx
1759
- function Qn({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className: a }) {
1766
+ function er({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className: a }) {
1760
1767
  return n ? /* @__PURE__ */ M("svg", {
1761
1768
  ...e,
1762
1769
  width: "10",
@@ -1765,7 +1772,7 @@ function Qn({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className:
1765
1772
  "aria-hidden": "true",
1766
1773
  className: t("nxgt-chart-marker shrink-0", a),
1767
1774
  children: /* @__PURE__ */ M("path", {
1768
- d: Yn(n, 9, 5, 5),
1775
+ d: Zn(n, 9, 5, 5),
1769
1776
  fill: r ? "currentColor" : "none",
1770
1777
  stroke: "currentColor",
1771
1778
  strokeWidth: "1.5"
@@ -1779,7 +1786,7 @@ function Qn({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className:
1779
1786
  }
1780
1787
  //#endregion
1781
1788
  //#region lib/components/ui/widgets/native-charts/partials/chart-legend.tsx
1782
- function $n(e) {
1789
+ function tr(e) {
1783
1790
  return e.note ? /* @__PURE__ */ N(j, { children: [
1784
1791
  e.label,
1785
1792
  /* @__PURE__ */ M("span", {
@@ -1797,8 +1804,8 @@ function $n(e) {
1797
1804
  })
1798
1805
  ] }) : e.label;
1799
1806
  }
1800
- function er({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1801
- let o = /* @__PURE__ */ M(Qn, {
1807
+ function nr({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1808
+ let o = /* @__PURE__ */ M(er, {
1802
1809
  paint: e.paint,
1803
1810
  shape: r ? e.shape : void 0,
1804
1811
  filled: n
@@ -1806,7 +1813,7 @@ function er({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1806
1813
  return /* @__PURE__ */ M(d, {
1807
1814
  size: "sm",
1808
1815
  variant: n ? "tonal" : "outlined",
1809
- label: $n(e),
1816
+ label: tr(e),
1810
1817
  leading: n ? void 0 : o,
1811
1818
  trailing: n ? o : void 0,
1812
1819
  "aria-pressed": n,
@@ -1819,7 +1826,7 @@ function er({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1819
1826
  className: t(!n && "text-muted-foreground")
1820
1827
  });
1821
1828
  }
1822
- function tr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1829
+ function rr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1823
1830
  let { t: l } = i(), u = D();
1824
1831
  return /* @__PURE__ */ N("div", {
1825
1832
  className: t("nxgt-chart-legend", c),
@@ -1828,7 +1835,7 @@ function tr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patt
1828
1835
  "aria-label": l("material.charts.series", "Series"),
1829
1836
  "aria-describedby": u,
1830
1837
  "data-slot": "chart-legend",
1831
- children: e.map((e) => /* @__PURE__ */ M("li", { children: /* @__PURE__ */ M(er, {
1838
+ children: e.map((e) => /* @__PURE__ */ M("li", { children: /* @__PURE__ */ M(nr, {
1832
1839
  item: e,
1833
1840
  on: !n.includes(e.key),
1834
1841
  patterns: s,
@@ -1853,25 +1860,25 @@ function tr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patt
1853
1860
  }
1854
1861
  //#endregion
1855
1862
  //#region lib/components/ui/widgets/native-charts/partials/scroll-context.ts
1856
- var nr = de(null);
1863
+ var ir = de(null);
1857
1864
  //#endregion
1858
1865
  //#region lib/components/ui/widgets/native-charts/partials/chart-scroll.tsx
1859
- function rr(e, t) {
1866
+ function ar(e, t) {
1860
1867
  let n = e.scrollWidth - e.clientWidth;
1861
1868
  t.toggleAttribute("data-more-start", e.scrollLeft > 1), t.toggleAttribute("data-more-end", e.scrollLeft < n - 1);
1862
1869
  }
1863
- function ir({ width: e, count: t, active: n }) {
1870
+ function or({ width: e, count: t, active: n }) {
1864
1871
  let r = k(null), i = k(null), a = k(null), o = k([]), s = k({
1865
1872
  left: 0,
1866
1873
  right: 0
1867
1874
  });
1868
- return Wn(a, { "--nxgt-chart-content": e }), pe(() => {
1875
+ return Kn(a, { "--nxgt-chart-content": e }), pe(() => {
1869
1876
  let e = i.current;
1870
- e && (t > 0 && (e.scrollLeft = e.scrollWidth - e.clientWidth), r.current && rr(e, r.current));
1877
+ e && (t > 0 && (e.scrollLeft = e.scrollWidth - e.clientWidth), r.current && ar(e, r.current));
1871
1878
  }, [t]), E(() => {
1872
1879
  let e = i.current, t = r.current;
1873
1880
  if (!(e && t)) return;
1874
- let n = () => rr(e, t);
1881
+ let n = () => ar(e, t);
1875
1882
  n(), e.addEventListener("scroll", n, { passive: !0 });
1876
1883
  let o = new ResizeObserver(n);
1877
1884
  return a.current && o.observe(a.current), () => {
@@ -1882,7 +1889,7 @@ function ir({ width: e, count: t, active: n }) {
1882
1889
  if (!t || n === null) return;
1883
1890
  let r = o.current[n];
1884
1891
  if (r === void 0) return;
1885
- let a = yn({
1892
+ let a = xn({
1886
1893
  x: r,
1887
1894
  content: e,
1888
1895
  frame: t.clientWidth,
@@ -1899,8 +1906,8 @@ function ir({ width: e, count: t, active: n }) {
1899
1906
  pinned: s
1900
1907
  };
1901
1908
  }
1902
- function ar({ config: e, children: t }) {
1903
- let { frame: n, scroller: r, inner: i, xs: a, pinned: o } = ir(e), [s, c] = A({
1909
+ function sr({ config: e, children: t }) {
1910
+ let { frame: n, scroller: r, inner: i, xs: a, pinned: o } = or(e), [s, c] = A({
1904
1911
  left: null,
1905
1912
  right: null
1906
1913
  }), l = T((e) => c((t) => ({
@@ -1910,7 +1917,7 @@ function ar({ config: e, children: t }) {
1910
1917
  ...t,
1911
1918
  right: e
1912
1919
  })), []);
1913
- return /* @__PURE__ */ M(nr.Provider, {
1920
+ return /* @__PURE__ */ M(ir.Provider, {
1914
1921
  value: {
1915
1922
  slots: s,
1916
1923
  xs: a,
@@ -1957,8 +1964,8 @@ function ar({ config: e, children: t }) {
1957
1964
  })
1958
1965
  });
1959
1966
  }
1960
- function or({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1961
- let a = fe(nr), o = a?.slots[e], s = e === "left" ? t.left : t.right;
1967
+ function cr({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1968
+ let a = fe(ir), o = a?.slots[e], s = e === "left" ? t.left : t.right;
1962
1969
  if (E(() => {
1963
1970
  a && (a.pinned.current[e] = s, a.frame.current?.style.setProperty(`--nxgt-chart-pin-${e}`, `${s}px`));
1964
1971
  }, [
@@ -1986,7 +1993,7 @@ function or({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1986
1993
  //#region lib/components/ui/widgets/native-charts/partials/chart-shell.tsx
1987
1994
  function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader: a, scroll: o }) {
1988
1995
  let { size: s, visibility: c } = e;
1989
- return /* @__PURE__ */ M(Kn, {
1996
+ return /* @__PURE__ */ M(Jn, {
1990
1997
  title: t.title,
1991
1998
  description: t.description,
1992
1999
  headline: t.headline,
@@ -2003,7 +2010,7 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2003
2010
  overview: i,
2004
2011
  plotHeader: a,
2005
2012
  legendPosition: t.legend,
2006
- legend: r ?? (c && /* @__PURE__ */ M(tr, {
2013
+ legend: r ?? (c && /* @__PURE__ */ M(rr, {
2007
2014
  items: e.legendItems,
2008
2015
  hidden: c.hidden,
2009
2016
  onToggle: c.toggle,
@@ -2011,11 +2018,11 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2011
2018
  onShowAll: c.showAll,
2012
2019
  patterns: t.patterns
2013
2020
  })),
2014
- table: e.table && /* @__PURE__ */ M(Hn, {
2021
+ table: e.table && /* @__PURE__ */ M(Wn, {
2015
2022
  caption: e.tableCaption,
2016
2023
  model: e.table
2017
2024
  }),
2018
- children: s.measured && (o ? /* @__PURE__ */ M(ar, {
2025
+ children: s.measured && (o ? /* @__PURE__ */ M(sr, {
2019
2026
  config: o,
2020
2027
  children: n
2021
2028
  }) : n)
@@ -2023,7 +2030,7 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2023
2030
  }
2024
2031
  //#endregion
2025
2032
  //#region lib/components/ui/widgets/native-charts/partials/chart-axes.tsx
2026
- function sr({ ticks: e, y: t, width: n, variant: r = "dotted" }) {
2033
+ function lr({ ticks: e, y: t, width: n, variant: r = "dotted" }) {
2027
2034
  return r === "none" ? null : /* @__PURE__ */ M("g", {
2028
2035
  className: "nxgt-chart-grid",
2029
2036
  "data-grid": r,
@@ -2049,7 +2056,7 @@ function B({ ticks: e, y: t, format: n, width: r, side: i = "left" }) {
2049
2056
  }, e))
2050
2057
  });
2051
2058
  }
2052
- function cr({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2059
+ function ur({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2053
2060
  return /* @__PURE__ */ M("g", {
2054
2061
  className: "nxgt-chart-axis",
2055
2062
  "data-axis": "bottom",
@@ -2066,7 +2073,7 @@ function cr({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2066
2073
  function V({ kind: e, title: n, status: r, onKeyDown: a, pointXs: o, pointYs: s, locate: c, onPointer: l, onActivate: u, className: d, children: f }) {
2067
2074
  let { t: p } = i(), m = k(null);
2068
2075
  ve(m, () => l?.(null));
2069
- let h = fe(nr);
2076
+ let h = fe(ir);
2070
2077
  E(() => {
2071
2078
  h && o && (h.xs.current = o);
2072
2079
  }, [h, o]);
@@ -2104,7 +2111,7 @@ function V({ kind: e, title: n, status: r, onKeyDown: a, pointXs: o, pointYs: s,
2104
2111
  }
2105
2112
  //#endregion
2106
2113
  //#region lib/components/ui/svg/rounded-rect.ts
2107
- function lr(e, t, n, r, i) {
2114
+ function dr(e, t, n, r, i) {
2108
2115
  if (n <= 0 || r <= 0) return "";
2109
2116
  let a = h(Math.max(0, Math.min(i, n / 2, r))), [o, s, c, l] = [
2110
2117
  h(e),
@@ -2122,7 +2129,7 @@ function lr(e, t, n, r, i) {
2122
2129
  "Z"
2123
2130
  ].join("");
2124
2131
  }
2125
- function ur(e, t, n, r, i) {
2132
+ function fr(e, t, n, r, i) {
2126
2133
  if (n <= 0 || r <= 0) return "";
2127
2134
  let a = h(Math.max(0, Math.min(i, r / 2, n))), [o, s, c, l] = [
2128
2135
  h(e),
@@ -2140,7 +2147,7 @@ function ur(e, t, n, r, i) {
2140
2147
  "Z"
2141
2148
  ].join("");
2142
2149
  }
2143
- function dr(e, t, n, r, i) {
2150
+ function pr(e, t, n, r, i) {
2144
2151
  if (n <= 0 || r <= 0) return "";
2145
2152
  let a = h(Math.max(0, Math.min(i, n / 2, r))), [o, s, c, l] = [
2146
2153
  h(e),
@@ -2158,7 +2165,7 @@ function dr(e, t, n, r, i) {
2158
2165
  "Z"
2159
2166
  ].join("");
2160
2167
  }
2161
- function fr(e, t, n, r, i) {
2168
+ function mr(e, t, n, r, i) {
2162
2169
  if (n <= 0 || r <= 0) return "";
2163
2170
  let a = h(Math.max(0, Math.min(i, r / 2, n))), [o, s, c, l] = [
2164
2171
  h(e),
@@ -2197,18 +2204,18 @@ function H(e, t, n, r, i) {
2197
2204
  "Z"
2198
2205
  ].join("");
2199
2206
  }
2200
- function pr(e, t, n) {
2207
+ function hr(e, t, n) {
2201
2208
  return Math.min(e, Math.round(t / n * 100) / 100);
2202
2209
  }
2203
- function mr(e, t, n, r, i = 8) {
2204
- let a = pr(i, Math.abs(r - n), 2);
2205
- return n > r ? dr(e, r, t, n - r, a) : lr(e, n, t, r - n, a);
2210
+ function gr(e, t, n, r, i = 8) {
2211
+ let a = hr(i, Math.abs(r - n), 2);
2212
+ return n > r ? pr(e, r, t, n - r, a) : dr(e, n, t, r - n, a);
2206
2213
  }
2207
- function hr(e, t, n, r, i = 8) {
2208
- let a = pr(i, Math.abs(r - n), 2);
2209
- return r < n ? fr(r, e, n - r, t, a) : ur(n, e, r - n, t, a);
2214
+ function _r(e, t, n, r, i = 8) {
2215
+ let a = hr(i, Math.abs(r - n), 2);
2216
+ return r < n ? mr(r, e, n - r, t, a) : fr(n, e, r - n, t, a);
2210
2217
  }
2211
- function gr(e, t, n = 3) {
2218
+ function vr(e, t, n = 3) {
2212
2219
  let r = [];
2213
2220
  for (let i of [1, -1]) {
2214
2221
  let a = e.map((e, t) => ({
@@ -2228,29 +2235,29 @@ function gr(e, t, n = 3) {
2228
2235
  }
2229
2236
  return r.sort((e, t) => e.index - t.index);
2230
2237
  }
2231
- function _r(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2232
- return gr(e, r, i).map(({ index: e, start: r, size: i }) => ({
2238
+ function yr(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2239
+ return vr(e, r, i).map(({ index: e, start: r, size: i }) => ({
2233
2240
  index: e,
2234
2241
  y: r,
2235
2242
  height: i,
2236
- d: H(t, r, n, i, pr(a, i, 3))
2243
+ d: H(t, r, n, i, hr(a, i, 3))
2237
2244
  }));
2238
2245
  }
2239
- function vr(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2240
- return gr(e, r, i).map(({ index: e, start: r, size: i }) => ({
2246
+ function br(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2247
+ return vr(e, r, i).map(({ index: e, start: r, size: i }) => ({
2241
2248
  index: e,
2242
2249
  x: r,
2243
2250
  width: i,
2244
- d: H(r, t, i, n, pr(a, i, 3))
2251
+ d: H(r, t, i, n, hr(a, i, 3))
2245
2252
  }));
2246
2253
  }
2247
- function yr(e, t, n, r = 18, { prefer: i = "right", min: a = 0 } = {}) {
2254
+ function xr(e, t, n, r = 18, { prefer: i = "right", min: a = 0 } = {}) {
2248
2255
  let o = e + r, s = e - r - t, c = o + t <= n;
2249
2256
  return Math.max(a, (i === "left" ? !(s >= a) && c : c) ? o : s);
2250
2257
  }
2251
2258
  //#endregion
2252
2259
  //#region lib/components/ui/widgets/native-charts/partials/chart-tooltip.tsx
2253
- function br({ mark: e }) {
2260
+ function Sr({ mark: e }) {
2254
2261
  return /* @__PURE__ */ N("span", {
2255
2262
  className: "nxgt-chart-tip-tone",
2256
2263
  "data-slot": "chart-tip-tone",
@@ -2271,14 +2278,14 @@ function br({ mark: e }) {
2271
2278
  }), e.word]
2272
2279
  });
2273
2280
  }
2274
- function xr({ note: e }) {
2281
+ function Cr({ note: e }) {
2275
2282
  return /* @__PURE__ */ M("span", {
2276
2283
  className: "text-[11px] text-muted-foreground",
2277
2284
  "data-slot": "chart-tip-axis",
2278
2285
  children: e
2279
2286
  });
2280
2287
  }
2281
- function Sr({ title: e, rows: n, className: r }) {
2288
+ function wr({ title: e, rows: n, className: r }) {
2282
2289
  let [i, ...a] = n;
2283
2290
  return /* @__PURE__ */ N("div", {
2284
2291
  className: t("nxgt-chart-tip", r),
@@ -2300,8 +2307,8 @@ function Sr({ title: e, rows: n, className: r }) {
2300
2307
  ...i.paint,
2301
2308
  children: i.label
2302
2309
  }),
2303
- i.note && /* @__PURE__ */ M(xr, { note: i.note }),
2304
- i.tone && /* @__PURE__ */ M(br, { mark: i.tone })
2310
+ i.note && /* @__PURE__ */ M(Cr, { note: i.note }),
2311
+ i.tone && /* @__PURE__ */ M(Sr, { mark: i.tone })
2305
2312
  ]
2306
2313
  }),
2307
2314
  a.length > 0 && /* @__PURE__ */ M("ul", {
@@ -2309,7 +2316,7 @@ function Sr({ title: e, rows: n, className: r }) {
2309
2316
  children: a.map((e) => /* @__PURE__ */ N("li", {
2310
2317
  className: "flex items-center gap-2",
2311
2318
  children: [
2312
- /* @__PURE__ */ M(Qn, {
2319
+ /* @__PURE__ */ M(er, {
2313
2320
  paint: e.paint,
2314
2321
  variant: "bar"
2315
2322
  }),
@@ -2317,8 +2324,8 @@ function Sr({ title: e, rows: n, className: r }) {
2317
2324
  className: "min-w-0 flex-1 truncate",
2318
2325
  children: e.label
2319
2326
  }),
2320
- e.note && /* @__PURE__ */ M(xr, { note: e.note }),
2321
- e.tone && /* @__PURE__ */ M(br, { mark: e.tone }),
2327
+ e.note && /* @__PURE__ */ M(Cr, { note: e.note }),
2328
+ e.tone && /* @__PURE__ */ M(Sr, { mark: e.tone }),
2322
2329
  /* @__PURE__ */ M("span", {
2323
2330
  className: "font-medium tabular-nums",
2324
2331
  children: e.value
@@ -2329,7 +2336,7 @@ function Sr({ title: e, rows: n, className: r }) {
2329
2336
  ]
2330
2337
  });
2331
2338
  }
2332
- function Cr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, onMeasure: c, children: l }) {
2339
+ function Tr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, onMeasure: c, children: l }) {
2333
2340
  let d = k(null), [f, p] = A(176), m = k(null);
2334
2341
  return u(() => {
2335
2342
  let e = d.current;
@@ -2341,8 +2348,8 @@ function Cr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, on
2341
2348
  t.width && t.width !== f && p(t.width);
2342
2349
  let n = m.current;
2343
2350
  n?.width === t.width && n.height === t.height || (m.current = t, c?.(t));
2344
- }), Wn(d, {
2345
- "--nxgt-chart-tip-x": e === "sheet" ? null : yr(n, f, r, a, {
2351
+ }), Kn(d, {
2352
+ "--nxgt-chart-tip-x": e === "sheet" ? null : xr(n, f, r, a, {
2346
2353
  prefer: o,
2347
2354
  min: s
2348
2355
  }),
@@ -2357,10 +2364,10 @@ function Cr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, on
2357
2364
  }
2358
2365
  //#endregion
2359
2366
  //#region lib/components/ui/widgets/native-charts/partials/point-tip.tsx
2360
- function wr({ model: e, x: t, top: n, gap: r, prefer: i, sheet: a, tooltip: o, onMeasure: s }) {
2367
+ function Er({ model: e, x: t, top: n, gap: r, prefer: i, sheet: a, tooltip: o, onMeasure: s }) {
2361
2368
  let c = e.nav.active;
2362
2369
  if (!c || o === !1) return null;
2363
- let l = [...e.shown.filter((e) => e.position === c.series), ...e.shown.filter((e) => e.position !== c.series)], u = e.labels[c.index] ?? "", d = o ? o(l.map((t) => e.toPoint(c.index, t.position)).filter((e) => e !== null)) : /* @__PURE__ */ M(Sr, {
2370
+ let l = [...e.shown.filter((e) => e.position === c.series), ...e.shown.filter((e) => e.position !== c.series)], u = e.labels[c.index] ?? "", d = o ? o(l.map((t) => e.toPoint(c.index, t.position)).filter((e) => e !== null)) : /* @__PURE__ */ M(wr, {
2364
2371
  title: u,
2365
2372
  rows: l.map((e) => ({
2366
2373
  key: e.key,
@@ -2371,7 +2378,7 @@ function wr({ model: e, x: t, top: n, gap: r, prefer: i, sheet: a, tooltip: o, o
2371
2378
  tone: e.tones?.[c.index] ?? void 0
2372
2379
  }))
2373
2380
  });
2374
- return /* @__PURE__ */ M(Cr, {
2381
+ return /* @__PURE__ */ M(Tr, {
2375
2382
  mode: e.size.phone || a ? "sheet" : "float",
2376
2383
  x: t,
2377
2384
  top: n,
@@ -2384,7 +2391,7 @@ function wr({ model: e, x: t, top: n, gap: r, prefer: i, sheet: a, tooltip: o, o
2384
2391
  }
2385
2392
  //#endregion
2386
2393
  //#region lib/components/ui/widgets/native-charts/core/bars.ts
2387
- function Tr(e, t, { gap: n = 4, max: r = 44 } = {}) {
2394
+ function Dr(e, t, { gap: n = 4, max: r = 44 } = {}) {
2388
2395
  if (t <= 0 || e <= 0) return {
2389
2396
  size: 0,
2390
2397
  offsets: []
@@ -2395,7 +2402,7 @@ function Tr(e, t, { gap: n = 4, max: r = 44 } = {}) {
2395
2402
  offsets: Array.from({ length: t }, (e, t) => a + t * (i + n))
2396
2403
  };
2397
2404
  }
2398
- function Er(e, t) {
2405
+ function Or(e, t) {
2399
2406
  if (!t) return e.flatMap((e) => e.filter((e) => e !== null));
2400
2407
  let n = Math.max(0, ...e.map((e) => e.length));
2401
2408
  return Array.from({ length: n }, (t, n) => {
@@ -2407,10 +2414,10 @@ function Er(e, t) {
2407
2414
  return [r, i];
2408
2415
  }).flat();
2409
2416
  }
2410
- function Dr(e) {
2417
+ function kr(e) {
2411
2418
  return Math.min(8, Math.round(e / 3 * 100) / 100);
2412
2419
  }
2413
- function Or(e, t) {
2420
+ function Ar(e, t) {
2414
2421
  let n = null, r = Infinity;
2415
2422
  for (let { position: i, lo: a, hi: o } of e) {
2416
2423
  let e = t < a ? a - t : t > o ? t - o : 0;
@@ -2422,17 +2429,17 @@ function U(e, t) {
2422
2429
  let n = Array.from(e);
2423
2430
  return n.length <= t ? e : `${n.slice(0, Math.max(1, t - 1)).join("").trimEnd()}…`;
2424
2431
  }
2425
- function kr(e, t) {
2432
+ function jr(e, t) {
2426
2433
  let n = Math.min(t ? 84 : 140, Math.ceil(rt(e)) + 14);
2427
2434
  return {
2428
2435
  left: n,
2429
2436
  chars: Math.max(3, it(n - 14))
2430
2437
  };
2431
2438
  }
2432
- function Ar(e) {
2439
+ function Mr(e) {
2433
2440
  return Math.max(3, it(e));
2434
2441
  }
2435
- function jr(e) {
2442
+ function Nr(e) {
2436
2443
  switch (e) {
2437
2444
  case "ArrowUp": return "ArrowLeft";
2438
2445
  case "ArrowDown": return "ArrowRight";
@@ -2443,8 +2450,8 @@ function jr(e) {
2443
2450
  }
2444
2451
  //#endregion
2445
2452
  //#region lib/components/ui/widgets/native-charts/line-chart/line-geometry.ts
2446
- function Mr(e) {
2447
- let { width: t, height: n, labels: r, series: i, yAxis: a, curve: o, stacked: s } = e, c = r.length, l = s ? Sn(i.map((e) => e.values)) : i.map((e) => ({
2453
+ function Pr(e) {
2454
+ let { width: t, height: n, labels: r, series: i, yAxis: a, curve: o, stacked: s } = e, c = r.length, l = s ? wn(i.map((e) => e.values)) : i.map((e) => ({
2448
2455
  y0: [],
2449
2456
  y1: e.values
2450
2457
  })), u = Math.max(10, n - 12 - 28), d = ct([...l.flatMap((e) => [...e.y1, ...s ? e.y0 : []].filter((e) => e !== null)), ...e.extra ?? []], u, {
@@ -2456,7 +2463,7 @@ function Mr(e) {
2456
2463
  bottom: 28,
2457
2464
  left: e.margin(f)
2458
2465
  }, m = Math.max(10, t - p.left - p.right), h = lt(c, m), [g = 0, _ = 0] = [...d.domain()].sort((e, t) => e - t), v = [g, _], y = Math.min(_, Math.max(g, 0)), b = i.map((e, t) => {
2459
- let n = l[t], r = Cn({
2466
+ let n = l[t], r = Tn({
2460
2467
  y1: n.y1,
2461
2468
  y0: s ? n.y0 : n.y1.map(() => y),
2462
2469
  x: h,
@@ -2468,7 +2475,7 @@ function Mr(e) {
2468
2475
  y1: n.y1,
2469
2476
  ...r
2470
2477
  };
2471
- }), x = mt(c, m, pt(r)), S = Ar((c > 1 ? m / (c - 1) : m) * x - 8);
2478
+ }), x = mt(c, m, pt(r)), S = Mr((c > 1 ? m / (c - 1) : m) * x - 8);
2472
2479
  return {
2473
2480
  m: p,
2474
2481
  iw: m,
@@ -2492,9 +2499,9 @@ var W = {
2492
2499
  reducedFade: 120,
2493
2500
  groupStagger: 60,
2494
2501
  itemStagger: 30
2495
- }, Nr = 1.5;
2496
- function Pr(e) {
2497
- return e <= 0 ? 0 : e >= 1 ? 1 : 1 + 2.5 * (e - 1) ** 3 + Nr * (e - 1) ** 2;
2502
+ }, Fr = 1.5;
2503
+ function Ir(e) {
2504
+ return e <= 0 ? 0 : e >= 1 ? 1 : 1 + 2.5 * (e - 1) ** 3 + Fr * (e - 1) ** 2;
2498
2505
  }
2499
2506
  function G(e) {
2500
2507
  return e <= 0 ? 0 : e >= 1 ? 1 : 1 - (1 - e) ** 3;
@@ -2507,8 +2514,8 @@ function q(e, t, n = 0) {
2507
2514
  }
2508
2515
  //#endregion
2509
2516
  //#region lib/components/ui/widgets/native-charts/partials/chart-defs.tsx
2510
- var J = (e, t) => `${e}-pattern-${t}`, Fr = (e, t) => `${e}-gradient-${t}`;
2511
- function Ir({ kind: e }) {
2517
+ var J = (e, t) => `${e}-pattern-${t}`, Lr = (e, t) => `${e}-gradient-${t}`;
2518
+ function Rr({ kind: e }) {
2512
2519
  switch (e % 5) {
2513
2520
  case 0: return /* @__PURE__ */ M("path", {
2514
2521
  d: "M-1,1 l2,-2 M0,6 l6,-6 M5,7 l2,-2",
@@ -2543,7 +2550,7 @@ function Y({ id: e, series: t, patterns: n }) {
2543
2550
  let r = P(t);
2544
2551
  return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ N("linearGradient", {
2545
2552
  ...r,
2546
- id: Fr(e, t.position),
2553
+ id: Lr(e, t.position),
2547
2554
  x1: "0",
2548
2555
  x2: "0",
2549
2556
  y1: "0",
@@ -2566,15 +2573,15 @@ function Y({ id: e, series: t, patterns: n }) {
2566
2573
  height: "6",
2567
2574
  fill: "currentColor",
2568
2575
  opacity: "0.18"
2569
- }), /* @__PURE__ */ M(Ir, { kind: t.position })]
2576
+ }), /* @__PURE__ */ M(Rr, { kind: t.position })]
2570
2577
  })] }, t.key);
2571
2578
  }) });
2572
2579
  }
2573
2580
  //#endregion
2574
2581
  //#region lib/components/ui/widgets/native-charts/partials/reveal-clip.tsx
2575
- function Lr({ id: e, width: t, height: n, progress: r }) {
2582
+ function zr({ id: e, width: t, height: n, progress: r }) {
2576
2583
  return /* @__PURE__ */ M("clipPath", {
2577
- id: Rr(e),
2584
+ id: Br(e),
2578
2585
  children: /* @__PURE__ */ M("rect", {
2579
2586
  x: -8,
2580
2587
  y: -40,
@@ -2583,21 +2590,21 @@ function Lr({ id: e, width: t, height: n, progress: r }) {
2583
2590
  })
2584
2591
  });
2585
2592
  }
2586
- var Rr = (e) => `${e}-reveal`;
2593
+ var Br = (e) => `${e}-reveal`;
2587
2594
  //#endregion
2588
2595
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/area-fills.tsx
2589
- function zr(e, t, { patterns: n, stacked: r }) {
2590
- return n ? { fill: `url(#${J(e, t)})` } : r ? { className: "nxgt-chart-band" } : { fill: `url(#${Fr(e, t)})` };
2596
+ function Vr(e, t, { patterns: n, stacked: r }) {
2597
+ return n ? { fill: `url(#${J(e, t)})` } : r ? { className: "nxgt-chart-band" } : { fill: `url(#${Lr(e, t)})` };
2591
2598
  }
2592
- function Br({ id: e, bands: t, activeKey: n, stacked: r, patterns: i, fade: a }) {
2593
- let o = t.map((e) => e.series.key), s = r ? new Set(o) : fn(o, o.length, n);
2599
+ function Hr({ id: e, bands: t, activeKey: n, stacked: r, patterns: i, fade: a }) {
2600
+ let o = t.map((e) => e.series.key), s = r ? new Set(o) : mn(o, o.length, n);
2594
2601
  return t.map(({ series: t, area: n }) => s.has(t.key) ? /* @__PURE__ */ M("g", {
2595
2602
  ...t.paint,
2596
2603
  opacity: a,
2597
2604
  children: /* @__PURE__ */ M("path", {
2598
2605
  d: n,
2599
2606
  "data-area": t.key,
2600
- ...zr(e, t.position, {
2607
+ ...Vr(e, t.position, {
2601
2608
  patterns: i,
2602
2609
  stacked: r
2603
2610
  })
@@ -2606,10 +2613,10 @@ function Br({ id: e, bands: t, activeKey: n, stacked: r, patterns: i, fade: a })
2606
2613
  }
2607
2614
  //#endregion
2608
2615
  //#region lib/components/ui/widgets/native-charts/hooks/use-frame-clock.ts
2609
- function Vr(e, t) {
2616
+ function Ur(e, t) {
2610
2617
  let [n, r] = A(() => ({
2611
2618
  run: e,
2612
- elapsed: Hr(e, t)
2619
+ elapsed: Wr(e, t)
2613
2620
  }));
2614
2621
  return E(() => {
2615
2622
  if (e === null || t <= 0) {
@@ -2631,25 +2638,25 @@ function Vr(e, t) {
2631
2638
  run: e,
2632
2639
  elapsed: 0
2633
2640
  }), n = requestAnimationFrame(a), () => cancelAnimationFrame(n);
2634
- }, [e, t]), Object.is(n.run, e) ? n.elapsed : Hr(e, t);
2641
+ }, [e, t]), Object.is(n.run, e) ? n.elapsed : Wr(e, t);
2635
2642
  }
2636
- function Hr(e, t) {
2643
+ function Wr(e, t) {
2637
2644
  return e === null || t <= 0 ? Math.max(0, t) : 0;
2638
2645
  }
2639
2646
  //#endregion
2640
2647
  //#region lib/components/ui/widgets/native-charts/hooks/use-reduced-motion.ts
2641
- function Ur() {
2648
+ function Gr() {
2642
2649
  return a("(prefers-reduced-motion: reduce)", !1);
2643
2650
  }
2644
2651
  //#endregion
2645
2652
  //#region lib/components/ui/widgets/native-charts/hooks/use-morph.ts
2646
- function Wr(e) {
2647
- let t = Ur(), n = Vr(t ? null : e, W.morph);
2653
+ function Kr(e) {
2654
+ let t = Gr(), n = Ur(t ? null : e, W.morph);
2648
2655
  return t || e === null ? 0 : n / W.morph;
2649
2656
  }
2650
2657
  //#endregion
2651
2658
  //#region lib/components/ui/widgets/native-charts/partials/plot-marks.tsx
2652
- function Gr({ x: e, height: t, width: n = 28 }) {
2659
+ function qr({ x: e, height: t, width: n = 28 }) {
2653
2660
  return /* @__PURE__ */ M("rect", {
2654
2661
  className: "nxgt-chart-crosshair",
2655
2662
  x: e - n / 2,
@@ -2659,7 +2666,7 @@ function Gr({ x: e, height: t, width: n = 28 }) {
2659
2666
  rx: 8
2660
2667
  });
2661
2668
  }
2662
- function Kr({ cx: e, cy: t, paint: n, morph: r, shape: i, size: a = 18 }) {
2669
+ function Jr({ cx: e, cy: t, paint: n, morph: r, shape: i, size: a = 18 }) {
2663
2670
  return /* @__PURE__ */ N("g", {
2664
2671
  ...n,
2665
2672
  className: "nxgt-chart-active",
@@ -2670,21 +2677,21 @@ function Kr({ cx: e, cy: t, paint: n, morph: r, shape: i, size: a = 18 }) {
2670
2677
  r: a * .7,
2671
2678
  className: "nxgt-chart-halo"
2672
2679
  }), /* @__PURE__ */ M("path", {
2673
- d: i ? Yn(i, a - 2, e, t) : Zn(r, a, e, t),
2680
+ d: i ? Zn(i, a - 2, e, t) : $n(r, a, e, t),
2674
2681
  className: "nxgt-chart-active-mark"
2675
2682
  })]
2676
2683
  });
2677
2684
  }
2678
2685
  //#endregion
2679
2686
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-marks.tsx
2680
- function qr({ geo: e, index: t, patterns: n }) {
2681
- let { x: r, y: i, ih: a, bands: o } = e, s = Wr(String(t));
2682
- return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M(Gr, {
2687
+ function Yr({ geo: e, index: t, patterns: n }) {
2688
+ let { x: r, y: i, ih: a, bands: o } = e, s = Kr(String(t));
2689
+ return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M(qr, {
2683
2690
  x: r(t),
2684
2691
  height: a
2685
2692
  }), o.map(({ series: e, y1: a }) => {
2686
2693
  let o = a[t];
2687
- return o == null ? null : /* @__PURE__ */ M(Kr, {
2694
+ return o == null ? null : /* @__PURE__ */ M(Jr, {
2688
2695
  cx: r(t),
2689
2696
  cy: i(o),
2690
2697
  paint: e.paint,
@@ -2695,15 +2702,15 @@ function qr({ geo: e, index: t, patterns: n }) {
2695
2702
  }
2696
2703
  //#endregion
2697
2704
  //#region lib/components/ui/widgets/native-charts/partials/point-marks.tsx
2698
- function Jr({ geo: e, phone: t, patterns: n, points: r }) {
2705
+ function Xr({ geo: e, phone: t, patterns: n, points: r }) {
2699
2706
  let { x: i, y: a, bands: o } = e;
2700
2707
  return /* @__PURE__ */ M(j, { children: o.map(({ series: e, y1: o }) => {
2701
- let s = new Set(wn(o)), c = t && o.length > 12 ? 2 : 1;
2708
+ let s = new Set(En(o)), c = t && o.length > 12 ? 2 : 1;
2702
2709
  return /* @__PURE__ */ M("g", {
2703
2710
  ...e.paint,
2704
2711
  "data-slot": "chart-markers",
2705
2712
  children: o.map((t, o) => t === null || !((n || r) && o % c === 0) && !s.has(o) ? null : n ? /* @__PURE__ */ M("path", {
2706
- d: Yn(e.shape, 9, i(o), a(t)),
2713
+ d: Zn(e.shape, 9, i(o), a(t)),
2707
2714
  className: "nxgt-chart-active-mark"
2708
2715
  }, o) : /* @__PURE__ */ M("circle", {
2709
2716
  cx: i(o),
@@ -2716,7 +2723,7 @@ function Jr({ geo: e, phone: t, patterns: n, points: r }) {
2716
2723
  }
2717
2724
  //#endregion
2718
2725
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/tone-points.tsx
2719
- function Yr({ geo: e, patterns: t }) {
2726
+ function Zr({ geo: e, patterns: t }) {
2720
2727
  let { x: n, y: r, bands: i } = e;
2721
2728
  return /* @__PURE__ */ M(j, { children: i.map(({ series: e, y1: i }) => e.tones ? /* @__PURE__ */ M("g", {
2722
2729
  "data-slot": "chart-tone-points",
@@ -2733,7 +2740,7 @@ function Yr({ geo: e, patterns: t }) {
2733
2740
  r: 7,
2734
2741
  className: "nxgt-chart-tone-ring"
2735
2742
  }), t ? /* @__PURE__ */ M("path", {
2736
- d: Yn(e.shape, 8, n(a), r(i)),
2743
+ d: Zn(e.shape, 8, n(a), r(i)),
2737
2744
  className: "nxgt-chart-tone-dot"
2738
2745
  }) : /* @__PURE__ */ M("circle", {
2739
2746
  cx: n(a),
@@ -2747,7 +2754,7 @@ function Yr({ geo: e, patterns: t }) {
2747
2754
  }
2748
2755
  //#endregion
2749
2756
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-strokes.tsx
2750
- function Xr({ geo: e, clipPath: n, phone: r, patterns: i, points: a }) {
2757
+ function Qr({ geo: e, clipPath: n, phone: r, patterns: i, points: a }) {
2751
2758
  return /* @__PURE__ */ N("g", {
2752
2759
  clipPath: n,
2753
2760
  children: [
@@ -2759,13 +2766,13 @@ function Xr({ geo: e, clipPath: n, phone: r, patterns: i, points: a }) {
2759
2766
  className: t("nxgt-chart-line", i && `nxgt-chart-dash-${e.dash}`)
2760
2767
  })
2761
2768
  }, e.key)),
2762
- /* @__PURE__ */ M(Jr, {
2769
+ /* @__PURE__ */ M(Xr, {
2763
2770
  geo: e,
2764
2771
  phone: r,
2765
2772
  patterns: i,
2766
2773
  points: a
2767
2774
  }),
2768
- /* @__PURE__ */ M(Yr, {
2775
+ /* @__PURE__ */ M(Zr, {
2769
2776
  geo: e,
2770
2777
  patterns: i
2771
2778
  })
@@ -2774,8 +2781,8 @@ function Xr({ geo: e, clipPath: n, phone: r, patterns: i, points: a }) {
2774
2781
  }
2775
2782
  //#endregion
2776
2783
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/reference-marks.tsx
2777
- var Zr = .45, Qr = 6;
2778
- function $r({ refs: e, geo: t }) {
2784
+ var $r = .45, ei = 6;
2785
+ function ti({ refs: e, geo: t }) {
2779
2786
  let { domain: n, y: r, iw: i, x: a } = t, o = t.labels.length;
2780
2787
  return /* @__PURE__ */ N("g", {
2781
2788
  "data-slot": "chart-reference",
@@ -2809,7 +2816,7 @@ function $r({ refs: e, geo: t }) {
2809
2816
  }))]
2810
2817
  });
2811
2818
  }
2812
- function ei({ refs: e, geo: t }) {
2819
+ function ni({ refs: e, geo: t }) {
2813
2820
  let { domain: n, y: r, iw: i, x: a } = t, o = t.labels.length;
2814
2821
  return /* @__PURE__ */ N("g", {
2815
2822
  "data-slot": "chart-reference-labels",
@@ -2826,9 +2833,9 @@ function ei({ refs: e, geo: t }) {
2826
2833
  });
2827
2834
  }
2828
2835
  if (!s) return null;
2829
- let c = kt(e.label, "left"), l = Ar(Math.min(i * Zr, s.x2 - s.x1 - Qr));
2836
+ let c = jt(e.label, "left"), l = Mr(Math.min(i * $r, s.x2 - s.x1 - ei));
2830
2837
  return /* @__PURE__ */ M("text", {
2831
- x: s.x1 + Qr,
2838
+ x: s.x1 + ei,
2832
2839
  y: Tt(s.top, s.height),
2833
2840
  textAnchor: c.textAnchor,
2834
2841
  direction: c.direction,
@@ -2838,30 +2845,34 @@ function ei({ refs: e, geo: t }) {
2838
2845
  className: "nxgt-chart-ref-label",
2839
2846
  children: U(e.label, l)
2840
2847
  }, `${t}-${e.label}`);
2841
- }), e.thresholds.map((e, t) => {
2842
- let s = bt(e, o).filter((e) => wt(e.value, n, r) !== null).pop();
2843
- if (!s) return null;
2844
- let c = wt(s.value, n, r), { x1: l, x2: u } = xt(s, o, a, i), d = Ar(Math.min(i * Zr, u - l - Qr)), f = kt(e.label, "right");
2845
- return /* @__PURE__ */ M("text", {
2846
- x: u - Qr,
2847
- y: Et(c),
2848
- textAnchor: f.textAnchor,
2849
- direction: f.direction,
2850
- "data-slot": "chart-ref-label",
2851
- "data-kind": "threshold",
2852
- "data-tone": e.tone,
2853
- className: "nxgt-chart-ref-label",
2854
- children: U(e.label, d)
2855
- }, `${t}-${e.label}`);
2856
- })]
2848
+ }), e.thresholds.map((e, n) => /* @__PURE__ */ M(ri, {
2849
+ th: e,
2850
+ geo: t
2851
+ }, `${n}-${e.label}`))]
2852
+ });
2853
+ }
2854
+ function ri({ th: e, geo: t }) {
2855
+ let { domain: n, y: r, iw: i, x: a } = t, o = t.labels.length, s = bt(e, o).filter((e) => wt(e.value, n, r) !== null).pop();
2856
+ if (!s) return null;
2857
+ let c = wt(s.value, n, r), { x1: l, x2: u } = xt(s, o, a, i), d = Mr(Math.min(i * $r, u - l - ei)), f = jt(e.label, "right"), p = U(e.label, d), m = u - ei, h = m - nt(p), g = t.bands.flatMap((e) => Et(e.y1.map((e) => e === null ? null : r(e)), a, h, m));
2858
+ return /* @__PURE__ */ M("text", {
2859
+ x: u - ei,
2860
+ y: Ot(c, g),
2861
+ textAnchor: f.textAnchor,
2862
+ direction: f.direction,
2863
+ "data-slot": "chart-ref-label",
2864
+ "data-kind": "threshold",
2865
+ "data-tone": e.tone,
2866
+ className: "nxgt-chart-ref-label",
2867
+ children: p
2857
2868
  });
2858
2869
  }
2859
2870
  //#endregion
2860
2871
  //#region lib/components/ui/widgets/native-charts/hooks/use-entry-motion.ts
2861
2872
  function X({ total: e, animate: t = !0, replay: n }) {
2862
- let r = Ur(), [i, a] = A(!1);
2873
+ let r = Gr(), [i, a] = A(!1);
2863
2874
  u(() => a(!0), []);
2864
- let o = i && t && !r && e > 0, s = Vr(o ? n ?? !0 : null, e), c = o && s < e;
2875
+ let o = i && t && !r && e > 0, s = Ur(o ? n ?? !0 : null, e), c = o && s < e;
2865
2876
  return {
2866
2877
  elapsed: o ? s : e,
2867
2878
  progress: o ? Math.min(1, s / e) : 1,
@@ -2872,7 +2883,7 @@ function X({ total: e, animate: t = !0, replay: n }) {
2872
2883
  }
2873
2884
  //#endregion
2874
2885
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.ts
2875
- function ti(e, t) {
2886
+ function ii(e, t) {
2876
2887
  let n = X({
2877
2888
  total: W.lines,
2878
2889
  animate: t,
@@ -2885,8 +2896,8 @@ function ti(e, t) {
2885
2896
  }
2886
2897
  //#endregion
2887
2898
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-svg.tsx
2888
- function ni({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }) {
2889
- let { size: c, shown: l, nav: u } = e, { m: d, iw: f, ih: p, x: m, y: h, ticks: g, bands: _ } = r, { motion: v, fade: y } = ti(e, n.animate), b = u.active;
2899
+ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }) {
2900
+ let { size: c, shown: l, nav: u } = e, { m: d, iw: f, ih: p, x: m, y: h, ticks: g, bands: _ } = r, { motion: v, fade: y } = ii(e, n.animate), b = u.active;
2890
2901
  return /* @__PURE__ */ N("svg", {
2891
2902
  width: c.width,
2892
2903
  height: c.height,
@@ -2899,7 +2910,7 @@ function ni({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2899
2910
  series: l,
2900
2911
  patterns: n.patterns
2901
2912
  }),
2902
- /* @__PURE__ */ M(Lr, {
2913
+ /* @__PURE__ */ M(zr, {
2903
2914
  id: i,
2904
2915
  width: f,
2905
2916
  height: c.height,
@@ -2908,24 +2919,24 @@ function ni({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2908
2919
  /* @__PURE__ */ N("g", {
2909
2920
  transform: `translate(${d.left},${d.top})`,
2910
2921
  children: [
2911
- /* @__PURE__ */ M(sr, {
2922
+ /* @__PURE__ */ M(lr, {
2912
2923
  ticks: g,
2913
2924
  y: h,
2914
2925
  width: f,
2915
2926
  variant: n.grid
2916
2927
  }),
2917
2928
  s,
2918
- /* @__PURE__ */ M(cr, {
2929
+ /* @__PURE__ */ M(ur, {
2919
2930
  labels: r.labels,
2920
2931
  xOf: m,
2921
2932
  baseline: p,
2922
2933
  step: r.step
2923
2934
  }),
2924
- /* @__PURE__ */ M($r, {
2935
+ /* @__PURE__ */ M(ti, {
2925
2936
  refs: e.refs,
2926
2937
  geo: r
2927
2938
  }),
2928
- a && /* @__PURE__ */ M(Br, {
2939
+ a && /* @__PURE__ */ M(Hr, {
2929
2940
  id: i,
2930
2941
  bands: _,
2931
2942
  activeKey: b && l.find((e) => e.position === b.series)?.key,
@@ -2933,18 +2944,18 @@ function ni({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2933
2944
  patterns: n.patterns,
2934
2945
  fade: G(y)
2935
2946
  }),
2936
- /* @__PURE__ */ M(Xr, {
2947
+ /* @__PURE__ */ M(Qr, {
2937
2948
  geo: r,
2938
- clipPath: v.running ? `url(#${Rr(i)})` : void 0,
2949
+ clipPath: v.running ? `url(#${Br(i)})` : void 0,
2939
2950
  phone: c.phone,
2940
2951
  patterns: n.patterns,
2941
2952
  points: n.points
2942
2953
  }),
2943
- /* @__PURE__ */ M(ei, {
2954
+ /* @__PURE__ */ M(ni, {
2944
2955
  refs: e.refs,
2945
2956
  geo: r
2946
2957
  }),
2947
- b && /* @__PURE__ */ M(qr, {
2958
+ b && /* @__PURE__ */ M(Yr, {
2948
2959
  geo: r,
2949
2960
  index: b.index,
2950
2961
  patterns: n.patterns
@@ -2956,21 +2967,21 @@ function ni({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2956
2967
  }
2957
2968
  //#endregion
2958
2969
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/use-line-pointer.ts
2959
- function ri(e, t) {
2970
+ function oi(e, t) {
2960
2971
  let { nav: n, shown: r } = e;
2961
2972
  return (e, i) => {
2962
2973
  if (e === null) return n.clear();
2963
2974
  let a = t.bands.map((n) => {
2964
2975
  let r = n.y1[e];
2965
2976
  return r == null ? null : t.m.top + t.y(r);
2966
- }), o = i === void 0 ? null : Tn(a, i);
2977
+ }), o = i === void 0 ? null : Dn(a, i);
2967
2978
  n.pointTo(e, o === null ? void 0 : r[o]?.position);
2968
2979
  };
2969
2980
  }
2970
2981
  //#endregion
2971
2982
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-plot.tsx
2972
- function ii({ model: e, props: t, kind: n }) {
2973
- let { size: r, shown: a, labels: o, nav: s } = e, { width: c, height: l, phone: u } = r, d = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: f } = i(), p = n === "area" && t.stacked === !0, m = t.yAxis?.format ?? F(f), h = Mr({
2983
+ function si({ model: e, props: t, kind: n }) {
2984
+ let { size: r, shown: a, labels: o, nav: s } = e, { width: c, height: l, phone: u } = r, d = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: f } = i(), p = n === "area" && t.stacked === !0, m = t.yAxis?.format ?? F(f), h = Pr({
2974
2985
  width: c,
2975
2986
  height: l,
2976
2987
  labels: o,
@@ -2978,9 +2989,9 @@ function ii({ model: e, props: t, kind: n }) {
2978
2989
  yAxis: t.yAxis,
2979
2990
  curve: t.curve,
2980
2991
  stacked: p,
2981
- extra: Rt(e.refs.bands, e.refs.thresholds),
2982
- margin: (e) => En(e.map(m), u)
2983
- }), { m: g, iw: _, x: v, y, ticks: b } = h, x = s.active, S = ri(e, h), C = /* @__PURE__ */ M(B, {
2992
+ extra: Bt(e.refs.bands, e.refs.thresholds),
2993
+ margin: (e) => On(e.map(m), u)
2994
+ }), { m: g, iw: _, x: v, y, ticks: b } = h, x = s.active, S = oi(e, h), C = /* @__PURE__ */ M(B, {
2984
2995
  ticks: b,
2985
2996
  y,
2986
2997
  width: _,
@@ -2995,7 +3006,7 @@ function ii({ model: e, props: t, kind: n }) {
2995
3006
  onPointer: S,
2996
3007
  onActivate: e.activate,
2997
3008
  children: [
2998
- /* @__PURE__ */ M(ni, {
3009
+ /* @__PURE__ */ M(ai, {
2999
3010
  model: e,
3000
3011
  props: t,
3001
3012
  geo: h,
@@ -3004,13 +3015,13 @@ function ii({ model: e, props: t, kind: n }) {
3004
3015
  stacked: p,
3005
3016
  yAxis: C
3006
3017
  }),
3007
- /* @__PURE__ */ M(or, {
3018
+ /* @__PURE__ */ M(cr, {
3008
3019
  margin: g,
3009
3020
  width: c,
3010
3021
  height: l,
3011
3022
  children: C
3012
3023
  }),
3013
- x && /* @__PURE__ */ M(wr, {
3024
+ x && /* @__PURE__ */ M(Er, {
3014
3025
  model: e,
3015
3026
  x: g.left + v(x.index),
3016
3027
  tooltip: t.tooltip
@@ -3020,9 +3031,9 @@ function ii({ model: e, props: t, kind: n }) {
3020
3031
  }
3021
3032
  //#endregion
3022
3033
  //#region lib/components/ui/widgets/native-charts/line-chart/line-area-chart.tsx
3023
- function ai({ kind: e, ...t }) {
3024
- let n = Vn(t), { model: r, shell: i } = Rn({
3025
- model: hn({
3034
+ function ci({ kind: e, ...t }) {
3035
+ let n = Un(t), { model: r, shell: i } = Bn({
3036
+ model: _n({
3026
3037
  ...t,
3027
3038
  data: n.rows
3028
3039
  }, e, {
@@ -3038,7 +3049,7 @@ function ai({ kind: e, ...t }) {
3038
3049
  model: r,
3039
3050
  props: t,
3040
3051
  ...i,
3041
- children: /* @__PURE__ */ M(ii, {
3052
+ children: /* @__PURE__ */ M(si, {
3042
3053
  model: r,
3043
3054
  props: t,
3044
3055
  kind: e
@@ -3047,29 +3058,29 @@ function ai({ kind: e, ...t }) {
3047
3058
  }
3048
3059
  //#endregion
3049
3060
  //#region lib/components/ui/widgets/native-charts/area-chart/area-chart.tsx
3050
- function oi(e) {
3051
- return /* @__PURE__ */ M(ai, {
3061
+ function li(e) {
3062
+ return /* @__PURE__ */ M(ci, {
3052
3063
  ...e,
3053
3064
  kind: "area"
3054
3065
  });
3055
3066
  }
3056
3067
  //#endregion
3057
3068
  //#region lib/components/ui/widgets/native-charts/bar-chart/bar-geometry.ts
3058
- function si(e) {
3059
- let { width: t, height: n, series: r, phone: i, yAxis: a } = e, o = e.orientation === "horizontal", s = e.layout === "stacked", c = Math.max(10, n - 12 - 28), l = ct(Er(r.map((e) => e.values), s), c, {
3069
+ function ui(e) {
3070
+ let { width: t, height: n, series: r, phone: i, yAxis: a } = e, o = e.orientation === "horizontal", s = e.layout === "stacked", c = Math.max(10, n - 12 - 28), l = ct(Or(r.map((e) => e.values), s), c, {
3060
3071
  min: a?.min,
3061
3072
  max: a?.max
3062
- }), u = l.ticks(dt(t, a?.ticks)), d = o ? kr(e.labels, i) : null, f = d ? d.left : En(u.map(e.format), i), p = {
3073
+ }), u = l.ticks(dt(t, a?.ticks)), d = o ? jr(e.labels, i) : null, f = d ? d.left : On(u.map(e.format), i), p = {
3063
3074
  top: 12,
3064
3075
  right: o ? 20 : 12,
3065
3076
  bottom: 28,
3066
3077
  left: f
3067
3078
  }, m = Math.max(10, t - p.left - p.right);
3068
3079
  l.range(o ? [0, m] : [c, 0]);
3069
- let h = ut(e.labels.length, o ? c : m), g = h.bandwidth(), _ = Tr(g, r.length, {
3080
+ let h = ut(e.labels.length, o ? c : m), g = h.bandwidth(), _ = Dr(g, r.length, {
3070
3081
  max: o ? 28 : 44,
3071
3082
  gap: o ? 3 : 4
3072
- }), v = Math.min(g, o ? 32 : 56), y = o ? 1 : mt(e.labels.length, m, pt(e.labels)), b = d ? d.chars : Ar(g * y), [x = 0, S = 0] = [...l.domain()].sort((e, t) => e - t);
3083
+ }), v = Math.min(g, o ? 32 : 56), y = o ? 1 : mt(e.labels.length, m, pt(e.labels)), b = d ? d.chars : Mr(g * y), [x = 0, S = 0] = [...l.domain()].sort((e, t) => e - t);
3073
3084
  return {
3074
3085
  horizontal: o,
3075
3086
  stacked: s,
@@ -3090,7 +3101,7 @@ function si(e) {
3090
3101
  step: y
3091
3102
  };
3092
3103
  }
3093
- function ci(e, t, n, r) {
3104
+ function di(e, t, n, r) {
3094
3105
  let { zero: i, value: a, horizontal: o } = e, s = e.band(n) ?? 0, c = (e, t) => i + (a(e) - i) * t, l = (e, t, n, r) => ({
3095
3106
  position: e.position,
3096
3107
  key: e.key,
@@ -3105,8 +3116,8 @@ function ci(e, t, n, r) {
3105
3116
  }
3106
3117
  });
3107
3118
  if (e.stacked) {
3108
- let i = (e) => c(e, r(0)), a = Dr(e.stack.size), u = t.map((e) => e.values[n]), d = s + e.stack.offset, f = d + e.stack.size;
3109
- return (o ? vr(u, d, e.stack.size, i, { radius: a }) : _r(u, d, e.stack.size, i, { radius: a })).map((e) => {
3119
+ let i = (e) => c(e, r(0)), a = kr(e.stack.size), u = t.map((e) => e.values[n]), d = s + e.stack.offset, f = d + e.stack.size;
3120
+ return (o ? br(u, d, e.stack.size, i, { radius: a }) : yr(u, d, e.stack.size, i, { radius: a })).map((e) => {
3110
3121
  let n = t[e.index], r = "x" in e ? [e.x, e.x + e.width] : [e.y, e.y + e.height];
3111
3122
  return l(n, e.d, [d, f], r);
3112
3123
  });
@@ -3114,18 +3125,18 @@ function ci(e, t, n, r) {
3114
3125
  return t.flatMap((t, a) => {
3115
3126
  let u = t.values[n];
3116
3127
  if (u == null) return [];
3117
- let d = s + (e.cluster.offsets[a] ?? 0), f = d + e.cluster.size, p = c(u, r(a)), m = Dr(e.cluster.size), h = o ? hr(d, e.cluster.size, i, p, m) : mr(d, e.cluster.size, p, i, m);
3128
+ let d = s + (e.cluster.offsets[a] ?? 0), f = d + e.cluster.size, p = c(u, r(a)), m = kr(e.cluster.size), h = o ? _r(d, e.cluster.size, i, p, m) : gr(d, e.cluster.size, p, i, m);
3118
3129
  return [l(t, h, [d, f], [i, p])];
3119
3130
  });
3120
3131
  }
3121
- var li = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2, ui = {
3132
+ var fi = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2, pi = {
3122
3133
  width: 180,
3123
3134
  height: 120
3124
3135
  };
3125
- function di(e, t, n, r, i = ui) {
3136
+ function mi(e, t, n, r, i = pi) {
3126
3137
  let { m: a } = e;
3127
3138
  if (!e.horizontal) return {
3128
- x: a.left + li(e, n),
3139
+ x: a.left + fi(e, n),
3129
3140
  gap: e.band.bandwidth() / 2 + 14
3130
3141
  };
3131
3142
  let o = Math.max(e.zero, ...t.map((e) => e.along.hi)), s = a.left + o, c = a.top + (e.band(n) ?? 0), l = s + 18 + i.width <= r.width ? c : c + e.band.bandwidth() + 6, u = r.height - a.bottom - i.height;
@@ -3136,7 +3147,7 @@ function di(e, t, n, r, i = ui) {
3136
3147
  }
3137
3148
  //#endregion
3138
3149
  //#region lib/components/ui/widgets/native-charts/partials/bar-marks.tsx
3139
- function fi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i, chartId: a }) {
3150
+ function hi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i, chartId: a }) {
3140
3151
  return /* @__PURE__ */ M(j, { children: t.map((t) => /* @__PURE__ */ M("g", {
3141
3152
  ...t.paint,
3142
3153
  "data-series": t.key,
@@ -3156,7 +3167,7 @@ function fi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i,
3156
3167
  })
3157
3168
  }, t.key)) });
3158
3169
  }
3159
- function pi({ geo: e, index: t }) {
3170
+ function gi({ geo: e, index: t }) {
3160
3171
  let n = (e.band(t) ?? 0) - 6, r = e.band.bandwidth() + 12;
3161
3172
  return e.horizontal ? /* @__PURE__ */ M("rect", {
3162
3173
  className: "nxgt-chart-crosshair",
@@ -3178,7 +3189,7 @@ function pi({ geo: e, index: t }) {
3178
3189
  }
3179
3190
  //#endregion
3180
3191
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-axes.tsx
3181
- function mi({ geo: e, format: t, grid: n }) {
3192
+ function _i({ geo: e, format: t, grid: n }) {
3182
3193
  let { horizontal: r, ticks: i, value: a, iw: o, ih: s, labels: c } = e;
3183
3194
  return /* @__PURE__ */ N(j, { children: [r ? /* @__PURE__ */ N(j, { children: [
3184
3195
  n !== "none" && /* @__PURE__ */ M("g", {
@@ -3206,14 +3217,14 @@ function mi({ geo: e, format: t, grid: n }) {
3206
3217
  "data-axis": "left",
3207
3218
  children: c.map((t, n) => /* @__PURE__ */ M("text", {
3208
3219
  x: -8,
3209
- y: li(e, n),
3220
+ y: fi(e, n),
3210
3221
  dy: "0.32em",
3211
3222
  textAnchor: "end",
3212
3223
  children: t
3213
3224
  }, `${n}-${t}`))
3214
3225
  })
3215
3226
  ] }) : /* @__PURE__ */ N(j, { children: [
3216
- /* @__PURE__ */ M(sr, {
3227
+ /* @__PURE__ */ M(lr, {
3217
3228
  ticks: i,
3218
3229
  y: a,
3219
3230
  width: o,
@@ -3225,9 +3236,9 @@ function mi({ geo: e, format: t, grid: n }) {
3225
3236
  width: o,
3226
3237
  format: t
3227
3238
  }),
3228
- /* @__PURE__ */ M(cr, {
3239
+ /* @__PURE__ */ M(ur, {
3229
3240
  labels: c,
3230
- xOf: (t) => li(e, t),
3241
+ xOf: (t) => fi(e, t),
3231
3242
  baseline: s,
3232
3243
  step: e.step
3233
3244
  })
@@ -3242,12 +3253,12 @@ function mi({ geo: e, format: t, grid: n }) {
3242
3253
  }
3243
3254
  //#endregion
3244
3255
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-svg.tsx
3245
- function hi({ model: e, props: n, geo: r, id: i, format: a }) {
3256
+ function vi({ model: e, props: n, geo: r, id: i, format: a }) {
3246
3257
  let { size: o, shown: s, labels: c, nav: l } = e, u = X({
3247
3258
  total: W.bars + K(c.length - 1, e.series.length - 1),
3248
3259
  animate: n.animate,
3249
3260
  replay: e.motionKey
3250
- }), d = (e) => (t) => Pr(q(u.elapsed, W.bars, K(e, r.stacked ? 0 : t))), f = l.active;
3261
+ }), d = (e) => (t) => Ir(q(u.elapsed, W.bars, K(e, r.stacked ? 0 : t))), f = l.active;
3251
3262
  return /* @__PURE__ */ N("svg", {
3252
3263
  width: o.width,
3253
3264
  height: o.height,
@@ -3261,17 +3272,17 @@ function hi({ model: e, props: n, geo: r, id: i, format: a }) {
3261
3272
  }), /* @__PURE__ */ N("g", {
3262
3273
  transform: `translate(${r.m.left},${r.m.top})`,
3263
3274
  children: [
3264
- /* @__PURE__ */ M(mi, {
3275
+ /* @__PURE__ */ M(_i, {
3265
3276
  geo: r,
3266
3277
  format: a,
3267
3278
  grid: n.grid
3268
3279
  }),
3269
- f && /* @__PURE__ */ M(pi, {
3280
+ f && /* @__PURE__ */ M(gi, {
3270
3281
  geo: r,
3271
3282
  index: f.index
3272
3283
  }),
3273
- /* @__PURE__ */ M(fi, {
3274
- rows: c.map((e, t) => ci(r, s, t, d(t))),
3284
+ /* @__PURE__ */ M(hi, {
3285
+ rows: c.map((e, t) => di(r, s, t, d(t))),
3275
3286
  series: s,
3276
3287
  activeRow: f?.index ?? null,
3277
3288
  activePosition: f?.series ?? null,
@@ -3284,11 +3295,11 @@ function hi({ model: e, props: n, geo: r, id: i, format: a }) {
3284
3295
  }
3285
3296
  //#endregion
3286
3297
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/use-bar-pointer.ts
3287
- function gi(e, t) {
3298
+ function yi(e, t) {
3288
3299
  let { nav: n, shown: r } = e, { m: i, horizontal: a, stacked: o } = t;
3289
3300
  return (e, s, c) => {
3290
3301
  if (e === null || s === void 0 || c === void 0) return n.clear();
3291
- let l = ci(t, r, e, () => 1), [u, d] = a ? [c - i.left, s - i.top] : [s - i.top, c - i.left], f = Or(l.map((e) => ({
3302
+ let l = di(t, r, e, () => 1), [u, d] = a ? [c - i.left, s - i.top] : [s - i.top, c - i.left], f = Ar(l.map((e) => ({
3292
3303
  position: e.position,
3293
3304
  ...o ? e.along : e.across
3294
3305
  })), o ? u : d);
@@ -3297,8 +3308,8 @@ function gi(e, t) {
3297
3308
  }
3298
3309
  //#endregion
3299
3310
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-plot.tsx
3300
- function _i({ model: e, props: t }) {
3301
- let { size: n, shown: r, labels: a, nav: o } = e, { width: s, height: c, phone: l } = n, u = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: d } = i(), f = t.yAxis?.format ?? F(d), p = si({
3311
+ function bi({ model: e, props: t }) {
3312
+ let { size: n, shown: r, labels: a, nav: o } = e, { width: s, height: c, phone: l } = n, u = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: d } = i(), f = t.yAxis?.format ?? F(d), p = ui({
3302
3313
  width: s,
3303
3314
  height: c,
3304
3315
  labels: a,
@@ -3308,7 +3319,7 @@ function _i({ model: e, props: t }) {
3308
3319
  phone: l,
3309
3320
  yAxis: t.yAxis,
3310
3321
  format: f
3311
- }), { m, horizontal: h } = p, g = gi(e, p), [_, v] = A(ui), y = o.active, b = a.map((e, t) => h ? m.top + li(p, t) : m.left + li(p, t)), x = y ? di(p, ci(p, r, y.index, () => 1), y.index, {
3322
+ }), { m, horizontal: h } = p, g = yi(e, p), [_, v] = A(pi), y = o.active, b = a.map((e, t) => h ? m.top + fi(p, t) : m.left + fi(p, t)), x = y ? mi(p, di(p, r, y.index, () => 1), y.index, {
3312
3323
  width: s,
3313
3324
  height: c
3314
3325
  }, _) : { x: 0 };
@@ -3322,14 +3333,14 @@ function _i({ model: e, props: t }) {
3322
3333
  onPointer: g,
3323
3334
  onActivate: e.activate,
3324
3335
  children: [
3325
- /* @__PURE__ */ M(hi, {
3336
+ /* @__PURE__ */ M(vi, {
3326
3337
  model: e,
3327
3338
  props: t,
3328
3339
  geo: p,
3329
3340
  id: u,
3330
3341
  format: f
3331
3342
  }),
3332
- !h && /* @__PURE__ */ M(or, {
3343
+ !h && /* @__PURE__ */ M(cr, {
3333
3344
  margin: m,
3334
3345
  width: s,
3335
3346
  height: c,
@@ -3340,7 +3351,7 @@ function _i({ model: e, props: t }) {
3340
3351
  format: f
3341
3352
  })
3342
3353
  }),
3343
- y && /* @__PURE__ */ M(wr, {
3354
+ y && /* @__PURE__ */ M(Er, {
3344
3355
  model: e,
3345
3356
  x: x.x,
3346
3357
  top: x.top,
@@ -3353,13 +3364,13 @@ function _i({ model: e, props: t }) {
3353
3364
  }
3354
3365
  //#endregion
3355
3366
  //#region lib/components/ui/widgets/native-charts/bar-chart/bar-chart.tsx
3356
- function vi(e) {
3357
- let t = e, n = t.orientation === "horizontal", r = Vn(t), { model: i, shell: a } = Rn({
3358
- model: hn({
3367
+ function xi(e) {
3368
+ let t = e, n = t.orientation === "horizontal", r = Un(t), { model: i, shell: a } = Bn({
3369
+ model: _n({
3359
3370
  ...t,
3360
3371
  data: r.rows
3361
3372
  }, "bar", {
3362
- keyMap: n ? jr : void 0,
3373
+ keyMap: n ? Nr : void 0,
3363
3374
  span: r.span
3364
3375
  }),
3365
3376
  zoom: r,
@@ -3371,7 +3382,7 @@ function vi(e) {
3371
3382
  model: i,
3372
3383
  props: t,
3373
3384
  ...a,
3374
- children: /* @__PURE__ */ M(_i, {
3385
+ children: /* @__PURE__ */ M(bi, {
3375
3386
  model: i,
3376
3387
  props: t
3377
3388
  })
@@ -3379,7 +3390,7 @@ function vi(e) {
3379
3390
  }
3380
3391
  //#endregion
3381
3392
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-axis-titles.tsx
3382
- function yi({ model: e, props: t }) {
3393
+ function Si({ model: e, props: t }) {
3383
3394
  let n = Fe(t.series), r = new Set(e.shown.map((e) => n.get(e.key)?.side)), i = r.has("left") ? t.yAxis?.label : void 0, a = r.has("right") ? t.rightAxis?.label : void 0;
3384
3395
  return i || a ? /* @__PURE__ */ N("div", {
3385
3396
  className: "nxgt-chart-axis-titles",
@@ -3395,7 +3406,7 @@ function yi({ model: e, props: t }) {
3395
3406
  }
3396
3407
  //#endregion
3397
3408
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-geometry.ts
3398
- function bi(e, t, n) {
3409
+ function Ci(e, t, n) {
3399
3410
  let r = e.series.filter((e) => e.side === t);
3400
3411
  if (r.length === 0) return null;
3401
3412
  let i = e[t], a = ct(r.flatMap((e) => e.values.filter((e) => e !== null)), n, {
@@ -3410,13 +3421,13 @@ function bi(e, t, n) {
3410
3421
  format: e.formats[t]
3411
3422
  };
3412
3423
  }
3413
- function xi(e) {
3414
- let { width: t, height: n, series: r, phone: i } = e, a = Math.max(10, n - 12 - 28), o = bi(e, "left", a), s = bi(e, "right", a), c = (e) => e ? En(e.ticks.map(e.format), i) : 12, l = {
3424
+ function wi(e) {
3425
+ let { width: t, height: n, series: r, phone: i } = e, a = Math.max(10, n - 12 - 28), o = Ci(e, "left", a), s = Ci(e, "right", a), c = (e) => e ? On(e.ticks.map(e.format), i) : 12, l = {
3415
3426
  top: 12,
3416
3427
  right: c(s),
3417
3428
  bottom: 28,
3418
3429
  left: c(o)
3419
- }, u = Math.max(10, t - l.left - l.right), d = ut(e.labels.length, u), f = d.bandwidth(), p = Re(r).bars.length, m = mt(e.labels.length, u, pt(e.labels)), h = Ar(f * m);
3430
+ }, u = Math.max(10, t - l.left - l.right), d = ut(e.labels.length, u), f = d.bandwidth(), p = Re(r).bars.length, m = mt(e.labels.length, u, pt(e.labels)), h = Mr(f * m);
3420
3431
  return {
3421
3432
  m: l,
3422
3433
  iw: u,
@@ -3425,7 +3436,7 @@ function xi(e) {
3425
3436
  right: s,
3426
3437
  grid: o ?? s,
3427
3438
  band: d,
3428
- cluster: Tr(f, p, {
3439
+ cluster: Dr(f, p, {
3429
3440
  max: 44,
3430
3441
  gap: 4
3431
3442
  }),
@@ -3433,13 +3444,13 @@ function xi(e) {
3433
3444
  step: m
3434
3445
  };
3435
3446
  }
3436
- var Si = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2;
3437
- function Ci(e, t) {
3447
+ var Ti = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2;
3448
+ function Ei(e, t) {
3438
3449
  let n = t.side === "right" ? e.right : e.left;
3439
3450
  if (!n) throw Error(`ComboChart: no ${t.side} axis for "${t.key}"`);
3440
3451
  return n;
3441
3452
  }
3442
- function wi(e, t, n) {
3453
+ function Di(e, t, n) {
3443
3454
  return {
3444
3455
  horizontal: !1,
3445
3456
  stacked: !1,
@@ -3463,12 +3474,12 @@ function wi(e, t, n) {
3463
3474
  step: e.step
3464
3475
  };
3465
3476
  }
3466
- function Ti(e, t, n = "smooth") {
3477
+ function Oi(e, t, n = "smooth") {
3467
3478
  return t.map((t) => {
3468
- let r = Ci(e, t), i = Cn({
3479
+ let r = Ei(e, t), i = Tn({
3469
3480
  y1: t.values,
3470
3481
  y0: t.values.map(() => r.base),
3471
- x: (t) => Si(e, t),
3482
+ x: (t) => Ti(e, t),
3472
3483
  y: r.y,
3473
3484
  curve: n
3474
3485
  });
@@ -3479,11 +3490,11 @@ function Ti(e, t, n = "smooth") {
3479
3490
  };
3480
3491
  });
3481
3492
  }
3482
- var Ei = (e, t, n) => e < t ? t - e : e > n ? e - n : 0, Di = (e, t, n) => e.kind === "point" ? Math.hypot(e.x - t, e.y - n) : Math.hypot(Ei(t, e.across.lo, e.across.hi), Ei(n, e.along.lo, e.along.hi));
3483
- function Oi(e, t, n) {
3493
+ var ki = (e, t, n) => e < t ? t - e : e > n ? e - n : 0, Ai = (e, t, n) => e.kind === "point" ? Math.hypot(e.x - t, e.y - n) : Math.hypot(ki(t, e.across.lo, e.across.hi), ki(n, e.along.lo, e.along.hi));
3494
+ function ji(e, t, n) {
3484
3495
  let r = null, i = null;
3485
3496
  for (let a of e) {
3486
- let e = Di(a, t, n);
3497
+ let e = Ai(a, t, n);
3487
3498
  (!i || e < i.d) && (i = {
3488
3499
  position: a.position,
3489
3500
  d: e
@@ -3496,7 +3507,7 @@ function Oi(e, t, n) {
3496
3507
  }
3497
3508
  //#endregion
3498
3509
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-scene.ts
3499
- function ki(e, t) {
3510
+ function Mi(e, t) {
3500
3511
  let n = Re(t).bars;
3501
3512
  return ["left", "right"].flatMap((t) => {
3502
3513
  let r = t === "left" ? e.left : e.right, i = n.flatMap((e, n) => e.side === t ? [{
@@ -3504,26 +3515,26 @@ function ki(e, t) {
3504
3515
  i: n
3505
3516
  }] : []);
3506
3517
  return !r || i.length === 0 ? [] : [{
3507
- view: wi(e, r, i.map(({ i: t }) => e.cluster.offsets[t] ?? 0)),
3518
+ view: Di(e, r, i.map(({ i: t }) => e.cluster.offsets[t] ?? 0)),
3508
3519
  bars: i.map(({ bar: e }) => e),
3509
3520
  index: i.map(({ i: e }) => e)
3510
3521
  }];
3511
3522
  });
3512
3523
  }
3513
- function Ai(e, t, n) {
3514
- return e.flatMap(({ view: e, bars: r, index: i }) => ci(e, r, t, (e) => n(i[e] ?? 0)));
3524
+ function Ni(e, t, n) {
3525
+ return e.flatMap(({ view: e, bars: r, index: i }) => di(e, r, t, (e) => n(i[e] ?? 0)));
3515
3526
  }
3516
- function ji(e, t, n) {
3517
- return Array.from({ length: t }, (t, r) => Ai(e, r, (e) => n(r, e)));
3527
+ function Pi(e, t, n) {
3528
+ return Array.from({ length: t }, (t, r) => Ni(e, r, (e) => n(r, e)));
3518
3529
  }
3519
- function Mi(e, t, n, r) {
3530
+ function Fi(e, t, n, r) {
3520
3531
  let i = n.flatMap(({ series: t, y1: n }) => {
3521
3532
  let i = n[r];
3522
3533
  return i == null ? [] : [{
3523
3534
  kind: "point",
3524
3535
  position: t.position,
3525
- x: Si(e, r),
3526
- y: Ci(e, t).y(i)
3536
+ x: Ti(e, r),
3537
+ y: Ei(e, t).y(i)
3527
3538
  }];
3528
3539
  }), a = t.map((e) => ({
3529
3540
  kind: "bar",
@@ -3535,7 +3546,7 @@ function Mi(e, t, n, r) {
3535
3546
  }
3536
3547
  //#endregion
3537
3548
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-scene.ts
3538
- function Ni(e, t) {
3549
+ function Ii(e, t) {
3539
3550
  let n = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: r } = i(), { width: a, height: o, phone: s } = e.size, c = Fe(t.series), l = e.shown.map((e) => ({
3540
3551
  ...e,
3541
3552
  type: c.get(e.key)?.type ?? "line",
@@ -3544,7 +3555,7 @@ function Ni(e, t) {
3544
3555
  return {
3545
3556
  id: n,
3546
3557
  shown: l,
3547
- geo: xi({
3558
+ geo: wi({
3548
3559
  width: a,
3549
3560
  height: o,
3550
3561
  labels: e.labels,
@@ -3559,18 +3570,18 @@ function Ni(e, t) {
3559
3570
  })
3560
3571
  };
3561
3572
  }
3562
- function Pi(e, t, { shown: n, geo: r }) {
3573
+ function Li(e, t, { shown: n, geo: r }) {
3563
3574
  let i = e.labels.length, a = X({
3564
3575
  total: Math.max(W.lines, W.bars + K(i - 1, e.series.length - 1)),
3565
3576
  animate: t.animate,
3566
3577
  replay: e.motionKey
3567
- }), o = ji(ki(r, n), i, (e, t) => Pr(q(a.elapsed, W.bars, K(e, t)))), { areas: s, lines: c } = Re(n), l = Ti(r, [...s, ...c], t.curve), u = e.nav.active, d = u ? n.find((e) => e.position === u.series)?.key : null;
3578
+ }), o = Pi(Mi(r, n), i, (e, t) => Ir(q(a.elapsed, W.bars, K(e, t)))), { areas: s, lines: c } = Re(n), l = Oi(r, [...s, ...c], t.curve), u = e.nav.active, d = u ? n.find((e) => e.position === u.series)?.key : null;
3568
3579
  return {
3569
3580
  rows: o,
3570
3581
  paths: l,
3571
3582
  areaPaths: l.filter((e) => e.series.type === "area"),
3572
3583
  linePaths: l.filter((e) => e.series.type === "line"),
3573
- filled: fn(s.map((e) => e.key), n.length, d),
3584
+ filled: mn(s.map((e) => e.key), n.length, d),
3574
3585
  reveal: G(q(a.elapsed, W.lines)),
3575
3586
  fade: G(q(a.elapsed, W.lines * .4, W.lines * .6)),
3576
3587
  reduced: a.reduced,
@@ -3578,20 +3589,20 @@ function Pi(e, t, { shown: n, geo: r }) {
3578
3589
  attributes: a.attributes
3579
3590
  };
3580
3591
  }
3581
- function Fi(e, { shown: t, geo: n }, r) {
3592
+ function Ri(e, { shown: t, geo: n }, r) {
3582
3593
  let { nav: i } = e;
3583
3594
  return (e, a, o) => {
3584
3595
  if (e === null || a === void 0 || o === void 0) return i.clear();
3585
- let s = Oi(Mi(n, Ai(ki(n, t), e, () => 1), r, e), o - n.m.left, a - n.m.top);
3596
+ let s = ji(Fi(n, Ni(Mi(n, t), e, () => 1), r, e), o - n.m.left, a - n.m.top);
3586
3597
  i.pointTo(e, s ?? void 0);
3587
3598
  };
3588
3599
  }
3589
3600
  //#endregion
3590
3601
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-axes.tsx
3591
- function Ii({ geo: e, grid: t }) {
3602
+ function zi({ geo: e, grid: t }) {
3592
3603
  let { left: n, right: r, iw: i, ih: a } = e;
3593
3604
  return /* @__PURE__ */ N(j, { children: [
3594
- e.grid && /* @__PURE__ */ M(sr, {
3605
+ e.grid && /* @__PURE__ */ M(lr, {
3595
3606
  ticks: e.grid.ticks,
3596
3607
  y: e.grid.y,
3597
3608
  width: i,
@@ -3610,9 +3621,9 @@ function Ii({ geo: e, grid: t }) {
3610
3621
  format: r.format,
3611
3622
  side: "right"
3612
3623
  }),
3613
- /* @__PURE__ */ M(cr, {
3624
+ /* @__PURE__ */ M(ur, {
3614
3625
  labels: e.labels,
3615
- xOf: (t) => Si(e, t),
3626
+ xOf: (t) => Ti(e, t),
3616
3627
  baseline: a,
3617
3628
  step: e.step
3618
3629
  }),
@@ -3628,7 +3639,7 @@ function Ii({ geo: e, grid: t }) {
3628
3639
  }
3629
3640
  //#endregion
3630
3641
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-marks.tsx
3631
- function Li({ path: e, patterns: n }) {
3642
+ function Bi({ path: e, patterns: n }) {
3632
3643
  let r = e.series;
3633
3644
  return /* @__PURE__ */ M("g", {
3634
3645
  ...r.paint,
@@ -3639,7 +3650,7 @@ function Li({ path: e, patterns: n }) {
3639
3650
  })
3640
3651
  });
3641
3652
  }
3642
- function Ri({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a }) {
3653
+ function Vi({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a }) {
3643
3654
  return /* @__PURE__ */ N("g", {
3644
3655
  "data-layer": "areas",
3645
3656
  children: [e.map(({ series: e, area: a }) => t.has(e.key) ? /* @__PURE__ */ M("g", {
@@ -3648,45 +3659,45 @@ function Ri({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a })
3648
3659
  children: /* @__PURE__ */ M("path", {
3649
3660
  d: a,
3650
3661
  "data-area": e.key,
3651
- fill: `url(#${i ? J(r, e.position) : Fr(r, e.position)})`
3662
+ fill: `url(#${i ? J(r, e.position) : Lr(r, e.position)})`
3652
3663
  })
3653
3664
  }, e.key) : null), /* @__PURE__ */ M("g", {
3654
3665
  clipPath: a,
3655
- children: e.map((e) => /* @__PURE__ */ M(Li, {
3666
+ children: e.map((e) => /* @__PURE__ */ M(Bi, {
3656
3667
  path: e,
3657
3668
  patterns: i
3658
3669
  }, e.series.key))
3659
3670
  })]
3660
3671
  });
3661
3672
  }
3662
- function zi({ paths: e, patterns: t, clip: n }) {
3673
+ function Hi({ paths: e, patterns: t, clip: n }) {
3663
3674
  return /* @__PURE__ */ M("g", {
3664
3675
  "data-layer": "lines",
3665
3676
  clipPath: n,
3666
- children: e.map((e) => /* @__PURE__ */ M(Li, {
3677
+ children: e.map((e) => /* @__PURE__ */ M(Bi, {
3667
3678
  path: e,
3668
3679
  patterns: t
3669
3680
  }, e.series.key))
3670
3681
  });
3671
3682
  }
3672
- function Bi({ geo: e, paths: t, phone: n, patterns: r }) {
3673
- return /* @__PURE__ */ M(j, { children: t.map((t) => /* @__PURE__ */ M(Jr, {
3683
+ function Ui({ geo: e, paths: t, phone: n, patterns: r }) {
3684
+ return /* @__PURE__ */ M(j, { children: t.map((t) => /* @__PURE__ */ M(Xr, {
3674
3685
  geo: {
3675
- x: (t) => Si(e, t),
3676
- y: Ci(e, t.series).y,
3686
+ x: (t) => Ti(e, t),
3687
+ y: Ei(e, t.series).y,
3677
3688
  bands: [t]
3678
3689
  },
3679
3690
  phone: n,
3680
3691
  patterns: r
3681
3692
  }, t.series.key)) });
3682
3693
  }
3683
- function Vi({ geo: e, paths: t, index: n, patterns: r }) {
3684
- let i = Wr(String(n));
3694
+ function Wi({ geo: e, paths: t, index: n, patterns: r }) {
3695
+ let i = Kr(String(n));
3685
3696
  return /* @__PURE__ */ M(j, { children: t.map(({ series: t, y1: a }) => {
3686
3697
  let o = a[n];
3687
- return o == null ? null : /* @__PURE__ */ M(Kr, {
3688
- cx: Si(e, n),
3689
- cy: Ci(e, t).y(o),
3698
+ return o == null ? null : /* @__PURE__ */ M(Jr, {
3699
+ cx: Ti(e, n),
3700
+ cy: Ei(e, t).y(o),
3690
3701
  paint: t.paint,
3691
3702
  morph: i,
3692
3703
  shape: r ? t.shape : void 0
@@ -3695,8 +3706,8 @@ function Vi({ geo: e, paths: t, index: n, patterns: r }) {
3695
3706
  }
3696
3707
  //#endregion
3697
3708
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-svg.tsx
3698
- function Hi({ model: e, props: n, layout: r, draw: i }) {
3699
- let { id: a, shown: o, geo: s } = r, { width: c, height: l, phone: u } = e.size, { m: d, iw: f } = s, p = e.nav.active, m = Re(o).bars, h = m.some((e) => e.position === p?.series), g = i.running ? `url(#${Rr(a)})` : void 0;
3709
+ function Gi({ model: e, props: n, layout: r, draw: i }) {
3710
+ let { id: a, shown: o, geo: s } = r, { width: c, height: l, phone: u } = e.size, { m: d, iw: f } = s, p = e.nav.active, m = Re(o).bars, h = m.some((e) => e.position === p?.series), g = i.running ? `url(#${Br(a)})` : void 0;
3700
3711
  return /* @__PURE__ */ N("svg", {
3701
3712
  width: c,
3702
3713
  height: l,
@@ -3709,7 +3720,7 @@ function Hi({ model: e, props: n, layout: r, draw: i }) {
3709
3720
  series: o,
3710
3721
  patterns: n.patterns
3711
3722
  }),
3712
- /* @__PURE__ */ M(Lr, {
3723
+ /* @__PURE__ */ M(zr, {
3713
3724
  id: a,
3714
3725
  width: f,
3715
3726
  height: l,
@@ -3718,17 +3729,17 @@ function Hi({ model: e, props: n, layout: r, draw: i }) {
3718
3729
  /* @__PURE__ */ N("g", {
3719
3730
  transform: `translate(${d.left},${d.top})`,
3720
3731
  children: [
3721
- /* @__PURE__ */ M(Ii, {
3732
+ /* @__PURE__ */ M(zi, {
3722
3733
  geo: s,
3723
3734
  grid: n.grid
3724
3735
  }),
3725
- p && s.grid && /* @__PURE__ */ M(pi, {
3726
- geo: wi(s, s.grid, []),
3736
+ p && s.grid && /* @__PURE__ */ M(gi, {
3737
+ geo: Di(s, s.grid, []),
3727
3738
  index: p.index
3728
3739
  }),
3729
3740
  /* @__PURE__ */ M("g", {
3730
3741
  "data-layer": "bars",
3731
- children: /* @__PURE__ */ M(fi, {
3742
+ children: /* @__PURE__ */ M(hi, {
3732
3743
  rows: i.rows,
3733
3744
  series: m,
3734
3745
  activeRow: h ? p?.index ?? null : null,
@@ -3737,7 +3748,7 @@ function Hi({ model: e, props: n, layout: r, draw: i }) {
3737
3748
  chartId: a
3738
3749
  })
3739
3750
  }),
3740
- /* @__PURE__ */ M(Ri, {
3751
+ /* @__PURE__ */ M(Vi, {
3741
3752
  paths: i.areaPaths,
3742
3753
  filled: i.filled,
3743
3754
  fade: i.fade,
@@ -3745,18 +3756,18 @@ function Hi({ model: e, props: n, layout: r, draw: i }) {
3745
3756
  patterns: n.patterns,
3746
3757
  clip: g
3747
3758
  }),
3748
- /* @__PURE__ */ M(zi, {
3759
+ /* @__PURE__ */ M(Hi, {
3749
3760
  paths: i.linePaths,
3750
3761
  patterns: n.patterns,
3751
3762
  clip: g
3752
3763
  }),
3753
- /* @__PURE__ */ M(Bi, {
3764
+ /* @__PURE__ */ M(Ui, {
3754
3765
  geo: s,
3755
3766
  paths: i.paths,
3756
3767
  phone: u,
3757
3768
  patterns: n.patterns
3758
3769
  }),
3759
- p && /* @__PURE__ */ M(Vi, {
3770
+ p && /* @__PURE__ */ M(Wi, {
3760
3771
  geo: s,
3761
3772
  paths: i.paths,
3762
3773
  index: p.index,
@@ -3769,18 +3780,18 @@ function Hi({ model: e, props: n, layout: r, draw: i }) {
3769
3780
  }
3770
3781
  //#endregion
3771
3782
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-plot.tsx
3772
- function Ui({ model: e, props: t }) {
3773
- let { nav: n } = e, r = Ni(e, t), i = Pi(e, t, r), a = Fi(e, r, i.paths), { geo: o } = r, s = n.active;
3783
+ function Ki({ model: e, props: t }) {
3784
+ let { nav: n } = e, r = Ii(e, t), i = Li(e, t, r), a = Ri(e, r, i.paths), { geo: o } = r, s = n.active;
3774
3785
  return /* @__PURE__ */ N(V, {
3775
3786
  kind: "combo",
3776
3787
  title: t.title,
3777
3788
  status: e.status,
3778
3789
  onKeyDown: n.onKeyDown,
3779
- pointXs: e.labels.map((e, t) => o.m.left + Si(o, t)),
3790
+ pointXs: e.labels.map((e, t) => o.m.left + Ti(o, t)),
3780
3791
  onPointer: a,
3781
3792
  onActivate: e.activate,
3782
3793
  children: [
3783
- /* @__PURE__ */ M(Hi, {
3794
+ /* @__PURE__ */ M(Gi, {
3784
3795
  model: e,
3785
3796
  props: t,
3786
3797
  layout: r,
@@ -3788,7 +3799,7 @@ function Ui({ model: e, props: t }) {
3788
3799
  }),
3789
3800
  ["left", "right"].map((t) => {
3790
3801
  let n = o[t], { width: r, height: i } = e.size;
3791
- return n && /* @__PURE__ */ M(or, {
3802
+ return n && /* @__PURE__ */ M(cr, {
3792
3803
  side: t,
3793
3804
  margin: o.m,
3794
3805
  width: r,
@@ -3802,9 +3813,9 @@ function Ui({ model: e, props: t }) {
3802
3813
  })
3803
3814
  }, t);
3804
3815
  }),
3805
- s && /* @__PURE__ */ M(wr, {
3816
+ s && /* @__PURE__ */ M(Er, {
3806
3817
  model: e,
3807
- x: o.m.left + Si(o, s.index),
3818
+ x: o.m.left + Ti(o, s.index),
3808
3819
  gap: o.band.bandwidth() / 2 + 14,
3809
3820
  tooltip: t.tooltip
3810
3821
  })
@@ -3813,7 +3824,7 @@ function Ui({ model: e, props: t }) {
3813
3824
  }
3814
3825
  //#endregion
3815
3826
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-model.ts
3816
- function Wi(e, t) {
3827
+ function qi(e, t) {
3817
3828
  let { t: n } = i(), { series: r, yAxis: a, rightAxis: o } = e, s = O(() => r.some((e) => e.axis === "right") ? Ie(n, r, {
3818
3829
  left: a,
3819
3830
  right: o
@@ -3823,7 +3834,7 @@ function Wi(e, t) {
3823
3834
  a,
3824
3835
  o
3825
3836
  ]);
3826
- return hn({
3837
+ return _n({
3827
3838
  ...e,
3828
3839
  data: t.rows
3829
3840
  }, "combo", {
@@ -3833,11 +3844,11 @@ function Wi(e, t) {
3833
3844
  }
3834
3845
  //#endregion
3835
3846
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-chart.tsx
3836
- function Gi(e) {
3837
- let t = e, n = Vn(t), r = Wi(t, n), { series: i } = t, a = T((e) => {
3847
+ function Ji(e) {
3848
+ let t = e, n = Un(t), r = qi(t, n), { series: i } = t, a = T((e) => {
3838
3849
  let t = i.find((t) => t.key === e);
3839
3850
  return t ? Pe(t) : "left";
3840
- }, [i]), { model: o, shell: s } = Rn({
3851
+ }, [i]), { model: o, shell: s } = Bn({
3841
3852
  model: r,
3842
3853
  zoom: n,
3843
3854
  props: t,
@@ -3848,12 +3859,12 @@ function Gi(e) {
3848
3859
  return /* @__PURE__ */ M(z, {
3849
3860
  model: o,
3850
3861
  props: t,
3851
- plotHeader: /* @__PURE__ */ M(yi, {
3862
+ plotHeader: /* @__PURE__ */ M(Si, {
3852
3863
  model: o,
3853
3864
  props: t
3854
3865
  }),
3855
3866
  ...s,
3856
- children: /* @__PURE__ */ M(Ui, {
3867
+ children: /* @__PURE__ */ M(Ki, {
3857
3868
  model: o,
3858
3869
  props: t
3859
3870
  })
@@ -3861,11 +3872,11 @@ function Gi(e) {
3861
3872
  }
3862
3873
  //#endregion
3863
3874
  //#region lib/components/ui/widgets/native-charts/core/funnel.ts
3864
- var Ki = (e) => Number.isFinite(e) && e > 0 ? e : 0;
3865
- function qi(e) {
3866
- let t = Ki(e[0] ?? 0);
3875
+ var Yi = (e) => Number.isFinite(e) && e > 0 ? e : 0;
3876
+ function Xi(e) {
3877
+ let t = Yi(e[0] ?? 0);
3867
3878
  return e.map((n, r) => {
3868
- let i = Ki(n), a = r === 0 ? 0 : Ki(e[r - 1] ?? 0), o = r === 0 || a === 0 ? null : i / a;
3879
+ let i = Yi(n), a = r === 0 ? 0 : Yi(e[r - 1] ?? 0), o = r === 0 || a === 0 ? null : i / a;
3869
3880
  return {
3870
3881
  ofFirst: t === 0 ? 0 : i / t,
3871
3882
  ofPrevious: o,
@@ -3874,7 +3885,7 @@ function qi(e) {
3874
3885
  };
3875
3886
  });
3876
3887
  }
3877
- function Ji(e) {
3888
+ function Zi(e) {
3878
3889
  let t = null, n = 0;
3879
3890
  return e.forEach((e, r) => {
3880
3891
  e.drop !== null && e.drop > n && (t = r, n = e.drop);
@@ -3886,7 +3897,7 @@ function Z(e, t) {
3886
3897
  maximumFractionDigits: 1
3887
3898
  }).format(e);
3888
3899
  }
3889
- function Yi(e, t) {
3900
+ function Qi(e, t) {
3890
3901
  let n = Math.max(1, t), r = (e - (n - 1) * 24) / n - 22, i = Math.round(Math.max(14, Math.min(36, r))), a = 22 + i + 24;
3891
3902
  return {
3892
3903
  bar: i,
@@ -3894,15 +3905,15 @@ function Yi(e, t) {
3894
3905
  height: n * (22 + i) + (n - 1) * 24
3895
3906
  };
3896
3907
  }
3897
- function Xi(e, t, n = 16, r = 1) {
3908
+ function $i(e, t, n = 16, r = 1) {
3898
3909
  return r <= 0 ? 0 : Math.min(t, Math.max(n, e * t));
3899
3910
  }
3900
- function Zi(e, t) {
3901
- return Math.min(Dr(e), pr(8, t, 3));
3911
+ function ea(e, t) {
3912
+ return Math.min(kr(e), hr(8, t, 3));
3902
3913
  }
3903
3914
  //#endregion
3904
3915
  //#region lib/components/ui/widgets/native-charts/core/funnel-text.ts
3905
- function Qi(e, t) {
3916
+ function ta(e, t) {
3906
3917
  let { steps: n, rates: r, language: i } = t, a = I(e, "funnel"), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
3907
3918
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
3908
3919
  title: t.title
@@ -3915,17 +3926,17 @@ function Qi(e, t) {
3915
3926
  lastValue: c.value,
3916
3927
  share: Z(r[r.length - 1]?.ofFirst ?? 0, i)
3917
3928
  }));
3918
- let l = Ji(r), u = l === null ? void 0 : n[l - 1], d = l === null ? void 0 : n[l];
3929
+ let l = Zi(r), u = l === null ? void 0 : n[l - 1], d = l === null ? void 0 : n[l];
3919
3930
  return l !== null && u && d && o.push(e("material.charts.summary.funnel-drop", "Biggest drop-off: {from} to {to}, {drop}.", {
3920
3931
  from: u.label,
3921
3932
  to: d.label,
3922
3933
  drop: Z(r[l]?.drop ?? 0, i)
3923
3934
  })), o.join(" ");
3924
3935
  }
3925
- function $i(e, t, n) {
3936
+ function na(e, t, n) {
3926
3937
  return t.growth === null ? t.drop === null ? null : `↓ ${e("material.charts.funnel-drop", "{drop} drop-off", { drop: Z(t.drop, n) })}` : `↑ ${e("material.charts.funnel-growth", "{growth} increase", { growth: Z(t.growth, n) })}`;
3927
3938
  }
3928
- function ea(e, t, n) {
3939
+ function ra(e, t, n) {
3929
3940
  let r = Z(t.ofFirst, n);
3930
3941
  return t.growth === null ? t.drop === null ? e("material.charts.status-step", "{label}: {value}, {share} of the first step", {
3931
3942
  label: t.label,
@@ -3943,7 +3954,7 @@ function ea(e, t, n) {
3943
3954
  growth: Z(t.growth, n)
3944
3955
  });
3945
3956
  }
3946
- function ta(e, t, n, r) {
3957
+ function ia(e, t, n, r) {
3947
3958
  let i = (e) => Z(e, r);
3948
3959
  return Ge(e("material.charts.table-step", "Step"), t.map((e) => e.label), [
3949
3960
  {
@@ -3968,9 +3979,9 @@ function ta(e, t, n, r) {
3968
3979
  }
3969
3980
  //#endregion
3970
3981
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-marks.tsx
3971
- var na = (e) => Math.ceil(nt(e, 12) + 22);
3972
- function ra({ steps: e, layout: t, width: n, elapsed: r, active: i, patterns: a, chartId: o, language: s, chipText: c }) {
3973
- return /* @__PURE__ */ M("g", { children: e.map((e, l) => /* @__PURE__ */ M(ia, {
3982
+ var aa = (e) => Math.ceil(nt(e, 12) + 22);
3983
+ function oa({ steps: e, layout: t, width: n, elapsed: r, active: i, patterns: a, chartId: o, language: s, chipText: c }) {
3984
+ return /* @__PURE__ */ M("g", { children: e.map((e, l) => /* @__PURE__ */ M(sa, {
3974
3985
  step: e,
3975
3986
  index: l,
3976
3987
  top: t.tops[l] ?? 0,
@@ -3984,8 +3995,8 @@ function ra({ steps: e, layout: t, width: n, elapsed: r, active: i, patterns: a,
3984
3995
  chip: c(e)
3985
3996
  }, e.key)) });
3986
3997
  }
3987
- function ia({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o, patterns: s, chartId: c, language: l, chip: u }) {
3988
- let d = n + 22, f = Xi(e.ofFirst, i, 16, e.value), p = Math.min(i, f * Pr(q(a, W.bars, K(t)))), m = o === t;
3998
+ function sa({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o, patterns: s, chartId: c, language: l, chip: u }) {
3999
+ let d = n + 22, f = $i(e.ofFirst, i, 16, e.value), p = Math.min(i, f * Ir(q(a, W.bars, K(t)))), m = o === t;
3989
4000
  return /* @__PURE__ */ N("g", {
3990
4001
  ...e.paint,
3991
4002
  "data-series": e.key,
@@ -4008,11 +4019,11 @@ function ia({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o
4008
4019
  })]
4009
4020
  }),
4010
4021
  /* @__PURE__ */ M("path", {
4011
- d: H(0, d, i, r, Dr(r)),
4022
+ d: H(0, d, i, r, kr(r)),
4012
4023
  className: "nxgt-chart-funnel-track"
4013
4024
  }),
4014
4025
  /* @__PURE__ */ M("path", {
4015
- d: H((i - p) / 2, d, p, r, Zi(r, f)),
4026
+ d: H((i - p) / 2, d, p, r, ea(r, f)),
4016
4027
  className: "nxgt-chart-funnel-bar",
4017
4028
  "data-step": t,
4018
4029
  "data-active": m || void 0,
@@ -4020,7 +4031,7 @@ function ia({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o
4020
4031
  "data-pattern": s || void 0,
4021
4032
  fill: s ? `url(#${J(c, e.position)})` : void 0
4022
4033
  }),
4023
- u && /* @__PURE__ */ M(aa, {
4034
+ u && /* @__PURE__ */ M(ca, {
4024
4035
  text: u,
4025
4036
  x: i / 2,
4026
4037
  y: n - 24 + 2
@@ -4028,12 +4039,12 @@ function ia({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o
4028
4039
  ]
4029
4040
  });
4030
4041
  }
4031
- function aa({ text: e, x: t, y: n }) {
4032
- let r = na(e);
4042
+ function ca({ text: e, x: t, y: n }) {
4043
+ let r = aa(e);
4033
4044
  return /* @__PURE__ */ N("g", {
4034
4045
  className: "nxgt-chart-funnel-chip",
4035
4046
  transform: `translate(${t},${n})`,
4036
- children: [/* @__PURE__ */ M("path", { d: H(-r / 2, 0, r, 20, Dr(20)) }), /* @__PURE__ */ M("text", {
4047
+ children: [/* @__PURE__ */ M("path", { d: H(-r / 2, 0, r, 20, kr(20)) }), /* @__PURE__ */ M("text", {
4037
4048
  y: 14,
4038
4049
  textAnchor: "middle",
4039
4050
  children: e
@@ -4042,7 +4053,7 @@ function aa({ text: e, x: t, y: n }) {
4042
4053
  }
4043
4054
  //#endregion
4044
4055
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.tsx
4045
- function oa({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s }) {
4056
+ function la({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s }) {
4046
4057
  let { t: c, language: l } = i();
4047
4058
  if (s === !1) return null;
4048
4059
  let u = e.growth !== null, d = u ? e.growth : e.drop, f = d === null ? [] : [{
@@ -4051,14 +4062,14 @@ function oa({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s })
4051
4062
  value: u ? c("material.charts.table-increase", "↑ {growth}", { growth: Z(d, l) }) : Z(d, l),
4052
4063
  paint: e.paint
4053
4064
  }];
4054
- return /* @__PURE__ */ M(Cr, {
4065
+ return /* @__PURE__ */ M(Tr, {
4055
4066
  mode: o ? "sheet" : "float",
4056
4067
  x: n,
4057
4068
  top: r,
4058
4069
  gap: 12,
4059
4070
  prefer: "right",
4060
4071
  width: a,
4061
- children: s && t ? s([t]) : /* @__PURE__ */ M(Sr, {
4072
+ children: s && t ? s([t]) : /* @__PURE__ */ M(wr, {
4062
4073
  title: e.label,
4063
4074
  rows: [{
4064
4075
  key: e.key,
@@ -4071,9 +4082,9 @@ function oa({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s })
4071
4082
  }
4072
4083
  //#endregion
4073
4084
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-plot.tsx
4074
- var sa = 100;
4075
- function ca({ model: e, props: n }) {
4076
- let { size: r, steps: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: c, language: l } = i(), u = Yi(r.height, a.length), d = X({
4085
+ var ua = 100;
4086
+ function da({ model: e, props: n }) {
4087
+ let { size: r, steps: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: c, language: l } = i(), u = Qi(r.height, a.length), d = X({
4077
4088
  total: W.bars + K(Math.max(0, a.length - 1)),
4078
4089
  animate: n.animate,
4079
4090
  replay: e.motionKey
@@ -4099,7 +4110,7 @@ function ca({ model: e, props: n }) {
4099
4110
  id: s,
4100
4111
  series: a,
4101
4112
  patterns: n.patterns
4102
- }), /* @__PURE__ */ M(ra, {
4113
+ }), /* @__PURE__ */ M(oa, {
4103
4114
  steps: a,
4104
4115
  layout: u,
4105
4116
  width: r.width,
@@ -4108,14 +4119,14 @@ function ca({ model: e, props: n }) {
4108
4119
  patterns: n.patterns,
4109
4120
  chartId: s,
4110
4121
  language: l,
4111
- chipText: (e) => $i(c, e, l)
4122
+ chipText: (e) => na(c, e, l)
4112
4123
  })]
4113
- }), p && f !== null && /* @__PURE__ */ M(oa, {
4124
+ }), p && f !== null && /* @__PURE__ */ M(la, {
4114
4125
  step: p,
4115
4126
  point: e.toPoint(f),
4116
- x: Math.min(r.width / 2 + Xi(p.ofFirst, r.width, 16, p.value) / 2, r.width - sa),
4127
+ x: Math.min(r.width / 2 + $i(p.ofFirst, r.width, 16, p.value) / 2, r.width - ua),
4117
4128
  top: u.tops[f] ?? 0,
4118
- width: r.width - sa,
4129
+ width: r.width - ua,
4119
4130
  phone: r.phone,
4120
4131
  tooltip: n.tooltip
4121
4132
  })]
@@ -4123,14 +4134,14 @@ function ca({ model: e, props: n }) {
4123
4134
  }
4124
4135
  //#endregion
4125
4136
  //#region lib/components/ui/widgets/native-charts/core/slices.ts
4126
- var la = Math.PI * 2, ua = .035;
4127
- function da(e, t = ua) {
4137
+ var fa = Math.PI * 2, pa = .035;
4138
+ function ma(e, t = pa) {
4128
4139
  let n = e.reduce((e, t) => e + t, 0);
4129
4140
  if (n <= 0) return [];
4130
4141
  let r = 0;
4131
4142
  return e.map((i) => {
4132
4143
  let a = i / n, o = r;
4133
- r += a * la;
4144
+ r += a * fa;
4134
4145
  let s = r - o, c = e.length > 1 ? Math.min(t / 2, s / 6) : 0;
4135
4146
  return {
4136
4147
  from: o,
@@ -4142,31 +4153,31 @@ function da(e, t = ua) {
4142
4153
  };
4143
4154
  });
4144
4155
  }
4145
- function fa(e, t) {
4156
+ function ha(e, t) {
4146
4157
  let n = Math.min(e.end, t);
4147
4158
  return n - e.start < .001 ? null : {
4148
4159
  start: e.start,
4149
4160
  end: n
4150
4161
  };
4151
4162
  }
4152
- function pa(e, t, n, r, i) {
4163
+ function ga(e, t, n, r, i) {
4153
4164
  let a = Math.hypot(t, n);
4154
4165
  if (a < r || a > i) return null;
4155
- let o = (Math.atan2(t, -n) + la) % la, s = e.findIndex((e) => o >= e.from && o < e.to);
4166
+ let o = (Math.atan2(t, -n) + fa) % fa, s = e.findIndex((e) => o >= e.from && o < e.to);
4156
4167
  return s < 0 ? null : s;
4157
4168
  }
4158
- function ma(e, t, n, r) {
4169
+ function _a(e, t, n, r) {
4159
4170
  let i = n * (r > 0 ? r : t / 2);
4160
4171
  return Math.max(0, Math.round(Math.min(e, t / 3, i / 3) * 100) / 100);
4161
4172
  }
4162
- function ha(e, t) {
4173
+ function va(e, t) {
4163
4174
  let n = +(e > 0 && e < .01);
4164
4175
  return new Intl.NumberFormat(t, {
4165
4176
  style: "percent",
4166
4177
  maximumFractionDigits: n
4167
4178
  }).format(e);
4168
4179
  }
4169
- function ga(e, t) {
4180
+ function ya(e, t) {
4170
4181
  let { slices: n, hidden: r = [], largest: i = 3 } = t, a = I(e, t.kind), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
4171
4182
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
4172
4183
  title: t.title
@@ -4178,7 +4189,7 @@ function ga(e, t) {
4178
4189
  }
4179
4190
  //#endregion
4180
4191
  //#region lib/components/ui/widgets/native-charts/core/slice-model.ts
4181
- function _a(e, t, n, r) {
4192
+ function ba(e, t, n, r) {
4182
4193
  let i = e.map((e, n) => ({
4183
4194
  s: e,
4184
4195
  dataIndex: n,
@@ -4195,7 +4206,7 @@ function _a(e, t, n, r) {
4195
4206
  }))
4196
4207
  };
4197
4208
  }
4198
- function va(e) {
4209
+ function xa(e) {
4199
4210
  return e ? {
4200
4211
  seriesKey: e.key,
4201
4212
  seriesLabel: e.label,
@@ -4205,14 +4216,14 @@ function va(e) {
4205
4216
  formatted: e.formatted
4206
4217
  } : null;
4207
4218
  }
4208
- function ya(e, t, n) {
4219
+ function Sa(e, t, n) {
4209
4220
  return e("material.charts.status-slice", "{label}: {value}, {share}", {
4210
4221
  label: t.label,
4211
4222
  value: t.formatted,
4212
- share: ha(t.share, n)
4223
+ share: va(t.share, n)
4213
4224
  });
4214
4225
  }
4215
- function ba(e, t, n, r) {
4226
+ function Ca(e, t, n, r) {
4216
4227
  return Ge(e("material.charts.table-slice", "Slice"), t.map((e) => e.label), [{
4217
4228
  key: "value",
4218
4229
  label: e("material.charts.table-value", "Value"),
@@ -4222,11 +4233,11 @@ function ba(e, t, n, r) {
4222
4233
  key: "share",
4223
4234
  label: e("material.charts.table-share", "Share"),
4224
4235
  values: t.map((e) => e.share),
4225
- format: (e) => ha(e, r)
4236
+ format: (e) => va(e, r)
4226
4237
  }]);
4227
4238
  }
4228
- function xa(e, t) {
4229
- return ga(e, {
4239
+ function wa(e, t) {
4240
+ return ya(e, {
4230
4241
  kind: t.kind,
4231
4242
  title: t.title,
4232
4243
  total: t.total,
@@ -4234,15 +4245,15 @@ function xa(e, t) {
4234
4245
  slices: t.slices.map((e) => ({
4235
4246
  label: e.label,
4236
4247
  value: e.formatted,
4237
- share: ha(e.share, t.language),
4248
+ share: va(e.share, t.language),
4238
4249
  raw: e.value
4239
4250
  }))
4240
4251
  });
4241
4252
  }
4242
4253
  //#endregion
4243
4254
  //#region lib/components/ui/widgets/native-charts/hooks/use-slice-model.ts
4244
- var Sa = (e) => e === "ArrowDown" ? "ArrowRight" : e === "ArrowUp" ? "ArrowLeft" : e;
4245
- function Ca(e, t = !1) {
4255
+ var Ta = (e) => e === "ArrowDown" ? "ArrowRight" : e === "ArrowUp" ? "ArrowLeft" : e;
4256
+ function Ea(e, t = !1) {
4246
4257
  let { data: n } = e, r = O(() => Te(n.map(({ key: e, label: t, color: n, tone: r }) => ({
4247
4258
  key: e,
4248
4259
  label: t,
@@ -4252,7 +4263,7 @@ function Ca(e, t = !1) {
4252
4263
  return {
4253
4264
  resolved: r,
4254
4265
  keys: i,
4255
- visibility: mn({
4266
+ visibility: gn({
4256
4267
  keys: O(() => t ? i.filter((e, t) => {
4257
4268
  let r = n[t]?.value;
4258
4269
  return typeof r == "number" && Number.isFinite(r) && r > 0;
@@ -4267,19 +4278,19 @@ function Ca(e, t = !1) {
4267
4278
  })
4268
4279
  };
4269
4280
  }
4270
- function wa(e, t) {
4271
- let { data: n, title: r } = e, { t: a, language: o } = i(), { resolved: s, keys: c, visibility: l } = Ca(e, !0), u = R(e.height), d = e.format ?? F(o), f = _a(s, n.map((e) => e.value), l.hidden, d), p = f.slices.map((e) => ({
4281
+ function Da(e, t) {
4282
+ let { data: n, title: r } = e, { t: a, language: o } = i(), { resolved: s, keys: c, visibility: l } = Ea(e, !0), u = R(e.height), d = e.format ?? F(o), f = ba(s, n.map((e) => e.value), l.hidden, d), p = f.slices.map((e) => ({
4272
4283
  ...e,
4273
4284
  paint: P(e)
4274
- })), m = d(f.sum), h = (e) => va(p[e]), g = cn({
4285
+ })), m = d(f.sum), h = (e) => xa(p[e]), g = un({
4275
4286
  count: p.length,
4276
4287
  visible: [0],
4277
- keyMap: Sa,
4288
+ keyMap: Ta,
4278
4289
  onActivate: ({ index: t }) => {
4279
4290
  let n = h(t);
4280
4291
  n && e.onPointClick?.(n);
4281
4292
  }
4282
- }), _ = xa(a, {
4293
+ }), _ = wa(a, {
4283
4294
  kind: t,
4284
4295
  title: r,
4285
4296
  total: m,
@@ -4295,9 +4306,9 @@ function wa(e, t) {
4295
4306
  nav: g,
4296
4307
  toPoint: h,
4297
4308
  summary: L(e.summary, _),
4298
- status: v && g.source === "key" ? ya(a, v, o) : null,
4309
+ status: v && g.source === "key" ? Sa(a, v, o) : null,
4299
4310
  legendItems: Xe(s),
4300
- table: e.dataTable === !1 ? null : ba(a, p, d, o),
4311
+ table: e.dataTable === !1 ? null : Ca(a, p, d, o),
4301
4312
  tableCaption: a("material.charts.table-caption", "{title}: the data", { title: r }),
4302
4313
  motionKey: c.join(","),
4303
4314
  empty: p.length === 0
@@ -4305,14 +4316,14 @@ function wa(e, t) {
4305
4316
  }
4306
4317
  //#endregion
4307
4318
  //#region lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.ts
4308
- function Ta(e) {
4319
+ function Oa(e) {
4309
4320
  let { data: t, title: n } = e, { t: r, language: a } = i(), o = O(() => Te(t.map(({ key: e, label: t, color: n, tone: r }) => ({
4310
4321
  key: e,
4311
4322
  label: t,
4312
4323
  color: n ?? 1,
4313
4324
  tone: r
4314
- }))), [t]), s = R(e.height), c = e.format ?? F(a), l = qi(t.map((e) => e.value)), u = l.map((e, n) => {
4315
- let r = o[n], i = Ki(t[n]?.value ?? 0);
4325
+ }))), [t]), s = R(e.height), c = e.format ?? F(a), l = Xi(t.map((e) => e.value)), u = l.map((e, n) => {
4326
+ let r = o[n], i = Yi(t[n]?.value ?? 0);
4316
4327
  return {
4317
4328
  ...r,
4318
4329
  ...e,
@@ -4331,15 +4342,15 @@ function Ta(e) {
4331
4342
  value: t.value,
4332
4343
  formatted: t.formatted
4333
4344
  } : null;
4334
- }, f = cn({
4345
+ }, f = un({
4335
4346
  count: u.length,
4336
4347
  visible: [0],
4337
- keyMap: Sa,
4348
+ keyMap: Ta,
4338
4349
  onActivate: ({ index: t }) => {
4339
4350
  let n = d(t);
4340
4351
  n && e.onPointClick?.(n);
4341
4352
  }
4342
- }), p = Qi(r, {
4353
+ }), p = ta(r, {
4343
4354
  title: n,
4344
4355
  rates: l,
4345
4356
  language: a,
@@ -4354,9 +4365,9 @@ function Ta(e) {
4354
4365
  nav: f,
4355
4366
  toPoint: d,
4356
4367
  summary: L(e.summary, p),
4357
- status: m && f.source === "key" ? ea(r, m, a) : null,
4368
+ status: m && f.source === "key" ? ra(r, m, a) : null,
4358
4369
  legendItems: [],
4359
- table: e.dataTable === !1 ? null : ta(r, u, c, a),
4370
+ table: e.dataTable === !1 ? null : ia(r, u, c, a),
4360
4371
  tableCaption: r("material.charts.table-caption", "{title}: the data", { title: n }),
4361
4372
  motionKey: o.map((e) => e.key).join(","),
4362
4373
  empty: t.length === 0
@@ -4364,15 +4375,15 @@ function Ta(e) {
4364
4375
  }
4365
4376
  //#endregion
4366
4377
  //#region lib/components/ui/widgets/native-charts/funnel-chart/funnel-chart.tsx
4367
- function Ea(e) {
4368
- let t = Ta(e);
4378
+ function ka(e) {
4379
+ let t = Oa(e);
4369
4380
  return /* @__PURE__ */ M(z, {
4370
4381
  model: t,
4371
4382
  props: {
4372
4383
  ...e,
4373
4384
  legend: !1
4374
4385
  },
4375
- children: /* @__PURE__ */ M(ca, {
4386
+ children: /* @__PURE__ */ M(da, {
4376
4387
  model: t,
4377
4388
  props: e
4378
4389
  })
@@ -4383,31 +4394,31 @@ function Ea(e) {
4383
4394
  function Q(e, t, n, r) {
4384
4395
  return [h(e + n * Math.sin(r)), h(t - n * Math.cos(r))];
4385
4396
  }
4386
- function Da(e, t, n, r, i) {
4397
+ function Aa(e, t, n, r, i) {
4387
4398
  let a = (n, r) => {
4388
4399
  let [a, o] = Q(e, t, n, i), [s, c] = Q(e, t, n, i + Math.PI);
4389
4400
  return `M${a} ${o}A${n} ${n} 0 1 ${r} ${s} ${c}A${n} ${n} 0 1 ${r} ${a} ${o}Z`;
4390
4401
  };
4391
4402
  return n > 0 ? a(r, 1) + a(n, 0) : a(r, 1);
4392
4403
  }
4393
- function Oa(e, t, n, r, i, a) {
4404
+ function ja(e, t, n, r, i, a) {
4394
4405
  if (r <= 0 || a <= i) return "";
4395
- if (a - i >= Math.PI * 2 - 1e-4) return Da(e, t, n, r, i);
4406
+ if (a - i >= Math.PI * 2 - 1e-4) return Aa(e, t, n, r, i);
4396
4407
  let o = a - i, s = i + o, c = +(o > Math.PI), [l, u] = Q(e, t, r, i), [d, f] = Q(e, t, r, s), p = `M${l} ${u}A${r} ${r} 0 ${c} 1 ${d} ${f}`;
4397
4408
  if (n <= 0) return `${p}L${h(e)} ${h(t)}Z`;
4398
4409
  let [m, g] = Q(e, t, n, s), [_, v] = Q(e, t, n, i);
4399
4410
  return `${p}L${m} ${g}A${n} ${n} 0 ${c} 0 ${_} ${v}Z`;
4400
4411
  }
4401
- function ka(e, t, n, r) {
4412
+ function Ma(e, t, n, r) {
4402
4413
  let i = Math.min(e, (n - t) / 2 - .01);
4403
4414
  for (; i > .1 && (2 * Math.asin(Math.min(1, i / (n - i))) >= r * .98 || t > 0 && 2 * Math.asin(i / (t + i)) >= r * .98);) i *= .8;
4404
4415
  return i > .1 ? i : 0;
4405
4416
  }
4406
- function Aa(e, t, n, r, i, a, o) {
4417
+ function Na(e, t, n, r, i, a, o) {
4407
4418
  let s = a - i;
4408
4419
  if (r <= 0 || s <= 0) return "";
4409
- let c = ka(o, n, r, s);
4410
- if (c === 0 || s >= Math.PI * 2 - .001) return Oa(e, t, n, r, i, a);
4420
+ let c = Ma(o, n, r, s);
4421
+ if (c === 0 || s >= Math.PI * 2 - .001) return ja(e, t, n, r, i, a);
4411
4422
  let l = (n, r) => Q(e, t, n, r).join(" "), u = Math.sqrt((r - c) ** 2 - c * c), d = Math.asin(c / (r - c)), f = +(s - 2 * d > Math.PI), p = `M${l(u, i)}A${c} ${c} 0 0 1 ${l(r, i + d)}A${r} ${r} 0 ${f} 1 ${l(r, a - d)}A${c} ${c} 0 0 1 ${l(u, a)}`;
4412
4423
  if (n <= 0) return `${p}L${h(e)} ${h(t)}Z`;
4413
4424
  let m = Math.sqrt((n + c) ** 2 - c * c), g = Math.asin(c / (n + c)), _ = +(s - 2 * g > Math.PI);
@@ -4415,7 +4426,7 @@ function Aa(e, t, n, r, i, a, o) {
4415
4426
  }
4416
4427
  //#endregion
4417
4428
  //#region lib/components/ui/widgets/native-charts/core/gauge.ts
4418
- var ja = {
4429
+ var Pa = {
4419
4430
  sm: {
4420
4431
  radius: 76,
4421
4432
  stroke: 12,
@@ -4431,19 +4442,19 @@ var ja = {
4431
4442
  stroke: 16,
4432
4443
  font: 38
4433
4444
  }
4434
- }, Ma = Math.PI / 2;
4435
- function Na(e, t, n) {
4445
+ }, Fa = Math.PI / 2;
4446
+ function Ia(e, t, n) {
4436
4447
  return !Number.isFinite(e) || !(n > t) ? 0 : Math.min(1, Math.max(0, (e - t) / (n - t)));
4437
4448
  }
4438
- var Pa = (e) => Math.min(8, e / 3);
4439
- function Fa(e, t, n, r, i) {
4449
+ var La = (e) => Math.min(8, e / 3);
4450
+ function Ra(e, t, n, r, i) {
4440
4451
  let a = Math.PI * Math.min(1, Math.max(0, i));
4441
4452
  if (a <= 0) return "";
4442
4453
  let o = n - r / 2;
4443
- return Aa(e, t, o, n + r / 2, -Ma, -Ma + a, ma(Pa(r), r, a, o));
4454
+ return Na(e, t, o, n + r / 2, -Fa, -Fa + a, _a(La(r), r, a, o));
4444
4455
  }
4445
- function Ia(e, t) {
4446
- let n = ja[e], r = Math.max(40, Math.min(n.radius, (t - n.stroke - 4) / 2)), i = r / n.radius, a = Math.round(n.stroke * Math.max(.75, i)), o = Math.round(2 * (r + a / 2) + 4), s = r + a / 2 + 2;
4456
+ function za(e, t) {
4457
+ let n = Pa[e], r = Math.max(40, Math.min(n.radius, (t - n.stroke - 4) / 2)), i = r / n.radius, a = Math.round(n.stroke * Math.max(.75, i)), o = Math.round(2 * (r + a / 2) + 4), s = r + a / 2 + 2;
4447
4458
  return {
4448
4459
  width: o,
4449
4460
  height: Math.round(s + a / 2 + 22),
@@ -4452,24 +4463,24 @@ function Ia(e, t) {
4452
4463
  radius: r,
4453
4464
  stroke: a,
4454
4465
  font: Math.round(n.font * Math.min(1, Math.max(.75, i))),
4455
- track: Fa(o / 2, s, r, a, 1)
4466
+ track: Ra(o / 2, s, r, a, 1)
4456
4467
  };
4457
4468
  }
4458
- function La(e, t) {
4459
- return Fa(e.cx, e.cy, e.radius, e.stroke, t);
4460
- }
4461
- var Ra = (e) => Math.max(2, e * .2), za = 2;
4462
4469
  function Ba(e, t) {
4463
- let n = Ra(e.stroke), r = Math.PI * Math.min(1, Math.max(0, t)), i = n + za;
4470
+ return Ra(e.cx, e.cy, e.radius, e.stroke, t);
4471
+ }
4472
+ var Va = (e) => Math.max(2, e * .2), Ha = 2;
4473
+ function Ua(e, t) {
4474
+ let n = Va(e.stroke), r = Math.PI * Math.min(1, Math.max(0, t)), i = n + Ha;
4464
4475
  if (r * e.radius < 2 * i) return null;
4465
- let a = -Ma + r - i / e.radius;
4476
+ let a = -Fa + r - i / e.radius;
4466
4477
  return {
4467
4478
  r: n,
4468
4479
  x: e.cx + e.radius * Math.sin(a),
4469
4480
  y: e.cy - e.radius * Math.cos(a)
4470
4481
  };
4471
4482
  }
4472
- function Va(e, t) {
4483
+ function Wa(e, t) {
4473
4484
  let n = I(e, "gauge");
4474
4485
  return e("material.charts.summary.gauge", "{kind}: {title}. {label}: {value}, on a scale from {min} to {max}.", {
4475
4486
  ...t,
@@ -4478,15 +4489,15 @@ function Va(e, t) {
4478
4489
  }
4479
4490
  //#endregion
4480
4491
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-arcs.tsx
4481
- function Ha({ layout: e, fraction: t }) {
4482
- let n = Ba(e, t);
4492
+ function Ga({ layout: e, fraction: t }) {
4493
+ let n = Ua(e, t);
4483
4494
  return /* @__PURE__ */ N(j, { children: [
4484
4495
  /* @__PURE__ */ M("path", {
4485
4496
  d: e.track,
4486
4497
  className: "nxgt-chart-gauge-track"
4487
4498
  }),
4488
4499
  /* @__PURE__ */ M("path", {
4489
- d: La(e, t),
4500
+ d: Ba(e, t),
4490
4501
  className: "nxgt-chart-gauge-arc",
4491
4502
  "data-slot": "chart-gauge-arc"
4492
4503
  }),
@@ -4500,7 +4511,7 @@ function Ha({ layout: e, fraction: t }) {
4500
4511
  }
4501
4512
  //#endregion
4502
4513
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-labels.tsx
4503
- function Ua({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4514
+ function Ka({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4504
4515
  let o = e.cy + e.stroke / 2 + 15;
4505
4516
  return /* @__PURE__ */ N(j, { children: [
4506
4517
  /* @__PURE__ */ M("text", {
@@ -4537,8 +4548,8 @@ function Ua({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4537
4548
  }
4538
4549
  //#endregion
4539
4550
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-plot.tsx
4540
- function Wa({ model: e, props: n }) {
4541
- let { size: r, fraction: i, value: a, reading: o, min: s, max: c, format: l } = e, u = Ia(n.size ?? "md", r.width), d = D(), f = X({
4551
+ function qa({ model: e, props: n }) {
4552
+ let { size: r, fraction: i, value: a, reading: o, min: s, max: c, format: l } = e, u = za(n.size ?? "md", r.width), d = D(), f = X({
4542
4553
  total: W.sweep,
4543
4554
  animate: n.animate,
4544
4555
  replay: "gauge"
@@ -4561,10 +4572,10 @@ function Wa({ model: e, props: n }) {
4561
4572
  "aria-hidden": "true",
4562
4573
  "data-entering": f.running || void 0,
4563
4574
  className: t(f.reduced && "nxgt-chart-fade"),
4564
- children: [/* @__PURE__ */ M(Ha, {
4575
+ children: [/* @__PURE__ */ M(Ga, {
4565
4576
  layout: u,
4566
4577
  fraction: i * p
4567
- }), /* @__PURE__ */ M(Ua, {
4578
+ }), /* @__PURE__ */ M(Ka, {
4568
4579
  layout: u,
4569
4580
  value: l(s + (o - s) * p),
4570
4581
  min: l(s),
@@ -4577,10 +4588,10 @@ function Wa({ model: e, props: n }) {
4577
4588
  }
4578
4589
  //#endregion
4579
4590
  //#region lib/components/ui/widgets/native-charts/gauge/use-gauge-model.ts
4580
- function Ga(e) {
4591
+ function Ja(e) {
4581
4592
  let { t, language: r } = i(), { label: a, title: o } = e, [s, c] = [e.min ?? 0, e.max ?? 100];
4582
4593
  s > c && n(`min (${s}) is above max (${c}); the scale is read from ${c} to ${s}.`, "Gauge");
4583
- let [l, u] = s > c ? [c, s] : [s, c], d = e.format ?? F(r), f = Na(e.value, l, u), p = Number.isFinite(e.value) ? Math.min(Math.max(e.value, l), u) : l, m = Number.isFinite(e.value) ? e.value : l, h = Va(t, {
4594
+ let [l, u] = s > c ? [c, s] : [s, c], d = e.format ?? F(r), f = Ia(e.value, l, u), p = Number.isFinite(e.value) ? Math.min(Math.max(e.value, l), u) : l, m = Number.isFinite(e.value) ? e.value : l, h = Wa(t, {
4584
4595
  title: o,
4585
4596
  label: a,
4586
4597
  value: d(m),
@@ -4617,63 +4628,63 @@ function Ga(e) {
4617
4628
  }
4618
4629
  //#endregion
4619
4630
  //#region lib/components/ui/widgets/native-charts/gauge/gauge.tsx
4620
- function Ka(e) {
4621
- let t = Ga(e);
4631
+ function Ya(e) {
4632
+ let t = Ja(e);
4622
4633
  return /* @__PURE__ */ M(z, {
4623
4634
  model: t,
4624
4635
  props: {
4625
4636
  ...e,
4626
4637
  legend: !1
4627
4638
  },
4628
- children: /* @__PURE__ */ M(Wa, {
4639
+ children: /* @__PURE__ */ M(qa, {
4629
4640
  model: t,
4630
4641
  props: e
4631
4642
  })
4632
4643
  });
4633
4644
  }
4634
- function qa(e) {
4645
+ function Xa(e) {
4635
4646
  return e === void 0 || !Number.isFinite(e) ? 5 : Math.min(9, Math.max(2, Math.round(e)));
4636
4647
  }
4637
- function Ja(e) {
4648
+ function Za(e) {
4638
4649
  let t = e.filter((e) => e !== null);
4639
4650
  return [Math.min(0, ...t), Math.max(0, ...t)];
4640
4651
  }
4641
- function Ya(e, [t, n], r) {
4652
+ function Qa(e, [t, n], r) {
4642
4653
  if (n <= t) return 0;
4643
4654
  let i = (e - t) / (n - t);
4644
4655
  return Math.min(r - 1, Math.max(0, Math.floor(i * r)));
4645
4656
  }
4646
- var Xa = 4, Za = 22;
4647
- function Qa(e, t) {
4657
+ var $a = 4, eo = 22;
4658
+ function to(e, t) {
4648
4659
  return Math.min(t ? 64 : 84, Math.ceil(rt(e)) + 12);
4649
4660
  }
4650
- function $a(e, t, n, r, i) {
4651
- let a = Math.max(0, e - i), o = Math.max(1, (a - (r - 1) * Xa) / Math.max(1, r)), s = (t - Za - (n - 1) * Xa) / Math.max(1, n), c = Math.min(o, Math.max(16, Math.min(36, s)));
4661
+ function no(e, t, n, r, i) {
4662
+ let a = Math.max(0, e - i), o = Math.max(1, (a - (r - 1) * $a) / Math.max(1, r)), s = (t - eo - (n - 1) * $a) / Math.max(1, n), c = Math.min(o, Math.max(16, Math.min(36, s)));
4652
4663
  return {
4653
4664
  left: i,
4654
4665
  cell: {
4655
4666
  width: o,
4656
4667
  height: c
4657
4668
  },
4658
- gap: Xa,
4659
- axis: Za,
4660
- height: Math.round(n * c + (n - 1) * Xa + Za),
4661
- stride: Math.max(1, Math.ceil(30 / (o + Xa))),
4669
+ gap: $a,
4670
+ axis: eo,
4671
+ height: Math.round(n * c + (n - 1) * $a + eo),
4672
+ stride: Math.max(1, Math.ceil(30 / (o + $a))),
4662
4673
  showValues: o >= 34 && c >= 22,
4663
- radius: Dr(Math.min(o, c))
4674
+ radius: kr(Math.min(o, c))
4664
4675
  };
4665
4676
  }
4666
- function eo(e, t, n) {
4677
+ function ro(e, t, n) {
4667
4678
  return {
4668
4679
  x: e.left + n * (e.cell.width + e.gap),
4669
4680
  y: t * (e.cell.height + e.gap)
4670
4681
  };
4671
4682
  }
4672
- function to(e, t, n, r, i) {
4683
+ function io(e, t, n, r, i) {
4673
4684
  let a = e.cell.width + e.gap, o = e.cell.height + e.gap, s = Math.floor((r - e.left + e.gap / 2) / a), c = Math.floor((i + e.gap / 2) / o);
4674
4685
  return s < 0 || s >= n || c < 0 || c >= t ? null : c * n + s;
4675
4686
  }
4676
- function no(e, t) {
4687
+ function ao(e, t) {
4677
4688
  let n = I(e, "heatmap"), r = [e("material.charts.summary.intro", "{kind}: {title}.", {
4678
4689
  kind: n.charAt(0).toLocaleUpperCase() + n.slice(1),
4679
4690
  title: t.title
@@ -4692,21 +4703,21 @@ function no(e, t) {
4692
4703
  }
4693
4704
  return r.join(" ");
4694
4705
  }
4695
- function ro({ model: e, frame: t, elapsed: n, active: r }) {
4706
+ function oo({ model: e, frame: t, elapsed: n, active: r }) {
4696
4707
  let { values: i, rows: a, columns: o, steps: s, domain: c, format: l } = e;
4697
4708
  return /* @__PURE__ */ N("g", {
4698
4709
  className: "nxgt-chart-heat-cells",
4699
4710
  "data-steps": s,
4700
4711
  ...e.paint,
4701
4712
  children: [
4702
- /* @__PURE__ */ M(io, {
4713
+ /* @__PURE__ */ M(so, {
4703
4714
  frame: t,
4704
4715
  rows: a,
4705
4716
  columns: o
4706
4717
  }),
4707
4718
  i.map((e, r) => e.map((e, i) => {
4708
- let a = e === null ? void 0 : Ya(e, c, s);
4709
- return /* @__PURE__ */ M(ao, {
4719
+ let a = e === null ? void 0 : Qa(e, c, s);
4720
+ return /* @__PURE__ */ M(co, {
4710
4721
  frame: t,
4711
4722
  at: [r, i],
4712
4723
  step: a,
@@ -4714,33 +4725,33 @@ function ro({ model: e, frame: t, elapsed: n, active: r }) {
4714
4725
  opacity: q(n, 300, (r + i) * 20)
4715
4726
  }, `${r}-${i}`);
4716
4727
  })),
4717
- r && /* @__PURE__ */ M(oo, {
4728
+ r && /* @__PURE__ */ M(lo, {
4718
4729
  frame: t,
4719
4730
  ...r
4720
4731
  })
4721
4732
  ]
4722
4733
  });
4723
4734
  }
4724
- function io({ frame: e, rows: t, columns: n }) {
4735
+ function so({ frame: e, rows: t, columns: n }) {
4725
4736
  let r = Math.max(3, it(e.left - 12)), { width: i, height: a } = e.cell, o = t.length * (a + e.gap) - e.gap;
4726
4737
  return /* @__PURE__ */ N("g", {
4727
4738
  className: "nxgt-chart-axis",
4728
4739
  children: [t.map((t, n) => /* @__PURE__ */ M("text", {
4729
4740
  x: e.left - 8,
4730
- y: eo(e, n, 0).y + a / 2,
4741
+ y: ro(e, n, 0).y + a / 2,
4731
4742
  dy: "0.32em",
4732
4743
  textAnchor: "end",
4733
4744
  children: U(t, r)
4734
4745
  }, `${n}-${t}`)), n.map((t, n) => n % e.stride ? null : /* @__PURE__ */ M("text", {
4735
- x: eo(e, 0, n).x + i / 2,
4746
+ x: ro(e, 0, n).x + i / 2,
4736
4747
  y: o + 16,
4737
4748
  textAnchor: "middle",
4738
4749
  children: t
4739
4750
  }, `${n}-${t}`))]
4740
4751
  });
4741
4752
  }
4742
- function ao({ frame: e, at: [t, n], step: r, text: i, opacity: a }) {
4743
- let { x: o, y: s } = eo(e, t, n), { width: c, height: l } = e.cell;
4753
+ function co({ frame: e, at: [t, n], step: r, text: i, opacity: a }) {
4754
+ let { x: o, y: s } = ro(e, t, n), { width: c, height: l } = e.cell;
4744
4755
  return /* @__PURE__ */ N("g", {
4745
4756
  opacity: a,
4746
4757
  "data-cell": `${t}-${n}`,
@@ -4760,8 +4771,8 @@ function ao({ frame: e, at: [t, n], step: r, text: i, opacity: a }) {
4760
4771
  })]
4761
4772
  });
4762
4773
  }
4763
- function oo({ frame: e, row: t, column: n }) {
4764
- let { x: r, y: i } = eo(e, t, n);
4774
+ function lo({ frame: e, row: t, column: n }) {
4775
+ let { x: r, y: i } = ro(e, t, n);
4765
4776
  return /* @__PURE__ */ M("path", {
4766
4777
  d: H(r - 2, i - 2, e.cell.width + 4, e.cell.height + 4, e.radius + 2),
4767
4778
  className: "nxgt-chart-heat-active"
@@ -4769,20 +4780,20 @@ function oo({ frame: e, row: t, column: n }) {
4769
4780
  }
4770
4781
  //#endregion
4771
4782
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-tip.tsx
4772
- function so({ model: e, frame: t, tooltip: n }) {
4783
+ function uo({ model: e, frame: t, tooltip: n }) {
4773
4784
  let { size: r } = e, { active: i } = e.nav;
4774
4785
  if (!i || n === !1) return null;
4775
4786
  let a = e.values[i.row]?.[i.column], o = e.toPoint(i.row, i.column);
4776
4787
  if (a == null) return null;
4777
- let s = eo(t, i.row, i.column);
4778
- return /* @__PURE__ */ M(Cr, {
4788
+ let s = ro(t, i.row, i.column);
4789
+ return /* @__PURE__ */ M(Tr, {
4779
4790
  mode: r.phone ? "sheet" : "float",
4780
4791
  x: s.x + t.cell.width / 2,
4781
4792
  top: s.y,
4782
4793
  gap: t.cell.width / 2 + 8,
4783
4794
  prefer: "right",
4784
4795
  width: r.width,
4785
- children: n && o ? n([o]) : /* @__PURE__ */ M(Sr, {
4796
+ children: n && o ? n([o]) : /* @__PURE__ */ M(wr, {
4786
4797
  title: e.cellTitle(i.row, i.column),
4787
4798
  rows: [{
4788
4799
  key: "value",
@@ -4795,8 +4806,8 @@ function so({ model: e, frame: t, tooltip: n }) {
4795
4806
  }
4796
4807
  //#endregion
4797
4808
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-plot.tsx
4798
- function co({ model: e, props: n }) {
4799
- let { size: r, rows: i, columns: a, nav: o } = e, s = $a(r.width, r.height, i.length, a.length, Qa(i, r.phone)), c = X({
4809
+ function fo({ model: e, props: n }) {
4810
+ let { size: r, rows: i, columns: a, nav: o } = e, s = no(r.width, r.height, i.length, a.length, to(i, r.phone)), c = X({
4800
4811
  total: 300 + (i.length + a.length) * 20,
4801
4812
  animate: n.animate,
4802
4813
  replay: e.motionKey
@@ -4806,7 +4817,7 @@ function co({ model: e, props: n }) {
4806
4817
  title: n.title,
4807
4818
  status: e.status,
4808
4819
  onKeyDown: o.onKeyDown,
4809
- locate: (e, t) => to(s, i.length, a.length, e, t),
4820
+ locate: (e, t) => io(s, i.length, a.length, e, t),
4810
4821
  onPointer: (e) => o.pointTo(e),
4811
4822
  onActivate: () => {
4812
4823
  let t = l && e.toPoint(l.row, l.column);
@@ -4818,13 +4829,13 @@ function co({ model: e, props: n }) {
4818
4829
  "aria-hidden": "true",
4819
4830
  "data-entering": c.running || void 0,
4820
4831
  className: t(c.reduced && "nxgt-chart-fade"),
4821
- children: /* @__PURE__ */ M(ro, {
4832
+ children: /* @__PURE__ */ M(oo, {
4822
4833
  model: e,
4823
4834
  frame: s,
4824
4835
  elapsed: c.elapsed,
4825
4836
  active: l
4826
4837
  })
4827
- }), /* @__PURE__ */ M(so, {
4838
+ }), /* @__PURE__ */ M(uo, {
4828
4839
  model: e,
4829
4840
  frame: s,
4830
4841
  tooltip: n.tooltip
@@ -4833,7 +4844,7 @@ function co({ model: e, props: n }) {
4833
4844
  }
4834
4845
  //#endregion
4835
4846
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-scale.tsx
4836
- function lo({ model: e }) {
4847
+ function po({ model: e }) {
4837
4848
  let { t } = i(), [n, r] = e.domain, a = t("material.charts.heat-scale", "Colour scale, from {min} (lightest) to {max} (darkest)", {
4838
4849
  min: e.format(n),
4839
4850
  max: e.format(r)
@@ -4864,7 +4875,7 @@ function lo({ model: e }) {
4864
4875
  }
4865
4876
  //#endregion
4866
4877
  //#region lib/components/ui/widgets/native-charts/core/heat-model.ts
4867
- function uo(e, t, n, r) {
4878
+ function mo(e, t, n, r) {
4868
4879
  let i = e.values[t]?.[n], a = e.columns[n];
4869
4880
  return i == null || !a ? null : {
4870
4881
  seriesKey: a.key,
@@ -4876,17 +4887,17 @@ function uo(e, t, n, r) {
4876
4887
  row: e.data[t]
4877
4888
  };
4878
4889
  }
4879
- function fo(e, t, n) {
4890
+ function ho(e, t, n) {
4880
4891
  return `${e.rows[t] ?? ""}, ${e.columns[n]?.label ?? ""}`;
4881
4892
  }
4882
- function po(e, t, n, r) {
4893
+ function go(e, t, n, r) {
4883
4894
  return e("material.charts.status-cell", "{row}, {column}: {value}", {
4884
4895
  row: t.rows[n.row] ?? "",
4885
4896
  column: t.columns[n.column]?.label ?? "",
4886
4897
  value: Ne(t.values[n.row]?.[n.column], r)
4887
4898
  });
4888
4899
  }
4889
- function mo(e, t, n) {
4900
+ function _o(e, t, n) {
4890
4901
  return Ge(e, t.rows, t.columns.map((e, r) => ({
4891
4902
  key: e.key,
4892
4903
  label: e.label,
@@ -4896,7 +4907,7 @@ function mo(e, t, n) {
4896
4907
  }
4897
4908
  //#endregion
4898
4909
  //#region lib/components/ui/widgets/native-charts/core/heat-keys.ts
4899
- function ho(e, t, { rows: n, columns: r }, i = !1) {
4910
+ function vo(e, t, { rows: n, columns: r }, i = !1) {
4900
4911
  let a = {
4901
4912
  state: e,
4902
4913
  handled: !1,
@@ -4937,13 +4948,13 @@ function ho(e, t, { rows: n, columns: r }, i = !1) {
4937
4948
  }
4938
4949
  //#endregion
4939
4950
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/use-heat-nav.ts
4940
- function go({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4951
+ function yo({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4941
4952
  let [i, a] = A(null), [o, s] = A("key"), c = i && i.row < e && i.column < t ? i : null;
4942
4953
  return {
4943
4954
  active: c,
4944
4955
  source: o,
4945
4956
  onKeyDown: (i) => {
4946
- let o = ho(c, i.key, {
4957
+ let o = vo(c, i.key, {
4947
4958
  rows: e,
4948
4959
  columns: t
4949
4960
  }, i.ctrlKey || i.metaKey);
@@ -4965,7 +4976,7 @@ function go({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4965
4976
  }
4966
4977
  //#endregion
4967
4978
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.ts
4968
- function _o(e) {
4979
+ function bo(e) {
4969
4980
  let { data: t, y: n, columns: r, title: a } = e, { t: o, language: s } = i(), c = R(e.height), l = e.format ?? F(s), u = je(t, n, void 0, s), d = r.map((e) => e.label), f = t.map((e) => r.map((t) => Me(e, t.key))), p = {
4970
4981
  rows: u.length,
4971
4982
  columns: r.length
@@ -4974,15 +4985,15 @@ function _o(e) {
4974
4985
  columns: r,
4975
4986
  values: f,
4976
4987
  data: t
4977
- }, h = (e, t) => uo(m, e, t, l), g = f.flatMap((e, t) => e.flatMap((e, n) => e === null ? [] : [{
4988
+ }, h = (e, t) => mo(m, e, t, l), g = f.flatMap((e, t) => e.flatMap((e, n) => e === null ? [] : [{
4978
4989
  value: e,
4979
4990
  formatted: l(e),
4980
- at: fo(m, t, n)
4981
- }])), _ = go({
4991
+ at: ho(m, t, n)
4992
+ }])), _ = yo({
4982
4993
  ...p,
4983
4994
  toPoint: h,
4984
4995
  onPointClick: e.onPointClick
4985
- }), v = no(o, {
4996
+ }), v = ao(o, {
4986
4997
  title: a,
4987
4998
  ...p,
4988
4999
  cells: g
@@ -4993,16 +5004,16 @@ function _o(e) {
4993
5004
  columns: d,
4994
5005
  values: f,
4995
5006
  format: l,
4996
- steps: qa(e.steps),
4997
- domain: Ja(f.flat()),
5007
+ steps: Xa(e.steps),
5008
+ domain: Za(f.flat()),
4998
5009
  paint: P({ tone: e.tone }),
4999
5010
  nav: _,
5000
5011
  toPoint: h,
5001
- cellTitle: (e, t) => fo(m, e, t),
5012
+ cellTitle: (e, t) => ho(m, e, t),
5002
5013
  summary: L(e.summary, v),
5003
- status: y && _.source === "key" ? po(o, m, y, l) : null,
5014
+ status: y && _.source === "key" ? go(o, m, y, l) : null,
5004
5015
  legendItems: [],
5005
- table: e.dataTable === !1 ? null : mo(Ke(o, e.categoryLabel), m, l),
5016
+ table: e.dataTable === !1 ? null : _o(Ke(o, e.categoryLabel), m, l),
5006
5017
  tableCaption: o("material.charts.table-caption", "{title}: the data", { title: a }),
5007
5018
  motionKey: `${u.length}x${r.length}`,
5008
5019
  empty: t.length === 0 || r.length === 0
@@ -5010,16 +5021,16 @@ function _o(e) {
5010
5021
  }
5011
5022
  //#endregion
5012
5023
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/heatmap-chart.tsx
5013
- function vo(e) {
5014
- let t = _o(e);
5024
+ function xo(e) {
5025
+ let t = bo(e);
5015
5026
  return /* @__PURE__ */ M(z, {
5016
5027
  model: t,
5017
5028
  props: {
5018
5029
  ...e,
5019
5030
  legend: e.legend ?? "bottom"
5020
5031
  },
5021
- legend: /* @__PURE__ */ M(lo, { model: t }),
5022
- children: /* @__PURE__ */ M(co, {
5032
+ legend: /* @__PURE__ */ M(po, { model: t }),
5033
+ children: /* @__PURE__ */ M(fo, {
5023
5034
  model: t,
5024
5035
  props: e
5025
5036
  })
@@ -5027,22 +5038,22 @@ function vo(e) {
5027
5038
  }
5028
5039
  //#endregion
5029
5040
  //#region lib/components/ui/widgets/native-charts/line-chart/line-chart.tsx
5030
- function yo(e) {
5031
- return /* @__PURE__ */ M(ai, {
5041
+ function So(e) {
5042
+ return /* @__PURE__ */ M(ci, {
5032
5043
  ...e,
5033
5044
  kind: "line"
5034
5045
  });
5035
5046
  }
5036
- var bo = .6;
5037
- function xo(e, t, n) {
5047
+ var Co = .6;
5048
+ function wo(e, t, n) {
5038
5049
  let r = Math.max(0, Math.min(e, t)), i = Math.max(0, r / 2 - 8);
5039
5050
  return {
5040
5051
  size: r,
5041
5052
  outer: i,
5042
- inner: n ? i * bo : 0
5053
+ inner: n ? i * Co : 0
5043
5054
  };
5044
5055
  }
5045
- function So(e, t) {
5056
+ function To(e, t) {
5046
5057
  let n = e.size / 2, r = e.outer + 6, i = Math.sin(t.mid) < 0;
5047
5058
  return {
5048
5059
  x: n + (i ? -r : r),
@@ -5053,14 +5064,14 @@ function So(e, t) {
5053
5064
  }
5054
5065
  //#endregion
5055
5066
  //#region lib/components/ui/widgets/native-charts/pie-chart/use-pop.ts
5056
- function Co(e) {
5057
- return 6 * Pr(Vr(Ur() ? null : e, W.morph) / W.morph);
5067
+ function Eo(e) {
5068
+ return 6 * Ir(Ur(Gr() ? null : e, W.morph) / W.morph);
5058
5069
  }
5059
5070
  //#endregion
5060
5071
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/donut-center.tsx
5061
- function wo({ diameter: t, center: n, caption: r }) {
5072
+ function Do({ diameter: t, center: n, caption: r }) {
5062
5073
  let i = k(null);
5063
- return Wn(i, { "--nxgt-chart-donut-d": t }), /* @__PURE__ */ N("div", {
5074
+ return Kn(i, { "--nxgt-chart-donut-d": t }), /* @__PURE__ */ N("div", {
5064
5075
  ref: i,
5065
5076
  "aria-hidden": "true",
5066
5077
  className: "nxgt-chart-donut-center",
@@ -5076,19 +5087,19 @@ function wo({ diameter: t, center: n, caption: r }) {
5076
5087
  }
5077
5088
  //#endregion
5078
5089
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-marks.tsx
5079
- function To({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patterns: o, chartId: s }) {
5090
+ function Oo({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patterns: o, chartId: s }) {
5080
5091
  let c = n.size / 2;
5081
5092
  return /* @__PURE__ */ M("g", {
5082
5093
  transform: `translate(${c},${c})`,
5083
5094
  children: e.map((e, c) => {
5084
- let l = t[c], u = l && fa(l, r);
5095
+ let l = t[c], u = l && ha(l, r);
5085
5096
  if (!l || !u) return null;
5086
- let d = i === c, f = n.outer + (d ? a : 0), p = ma(8, f - n.inner, l.end - l.start, n.inner);
5097
+ let d = i === c, f = n.outer + (d ? a : 0), p = _a(8, f - n.inner, l.end - l.start, n.inner);
5087
5098
  return /* @__PURE__ */ M("g", {
5088
5099
  ...e.paint,
5089
5100
  "data-series": e.key,
5090
5101
  children: /* @__PURE__ */ M("path", {
5091
- d: Aa(0, 0, n.inner, f, u.start, u.end, p),
5102
+ d: Na(0, 0, n.inner, f, u.start, u.end, p),
5092
5103
  className: "nxgt-chart-slice",
5093
5104
  "data-slice": c,
5094
5105
  "data-active": d || void 0,
@@ -5102,8 +5113,8 @@ function To({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patte
5102
5113
  }
5103
5114
  //#endregion
5104
5115
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-tip.tsx
5105
- function Eo({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o, tooltip: s }) {
5106
- return s === !1 ? null : /* @__PURE__ */ M(Cr, {
5116
+ function ko({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o, tooltip: s }) {
5117
+ return s === !1 ? null : /* @__PURE__ */ M(Tr, {
5107
5118
  mode: r ? "sheet" : "float",
5108
5119
  x: n.x,
5109
5120
  top: n.top,
@@ -5111,7 +5122,7 @@ function Eo({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o,
5111
5122
  prefer: n.prefer,
5112
5123
  min: a,
5113
5124
  width: i,
5114
- children: s && t ? s([t]) : /* @__PURE__ */ M(Sr, {
5125
+ children: s && t ? s([t]) : /* @__PURE__ */ M(wr, {
5115
5126
  title: e.label,
5116
5127
  rows: [{
5117
5128
  key: e.key,
@@ -5122,35 +5133,35 @@ function Eo({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o,
5122
5133
  })
5123
5134
  });
5124
5135
  }
5125
- function Do({ model: e, frame: t, layout: n, tooltip: r }) {
5136
+ function Ao({ model: e, frame: t, layout: n, tooltip: r }) {
5126
5137
  let { language: a } = i(), o = e.nav.active?.index, s = o === void 0 ? void 0 : e.slices[o], c = o === void 0 ? void 0 : n[o];
5127
5138
  if (!s || !c || o === void 0) return null;
5128
5139
  let { size: l } = e, u = (l.width - t.size) / 2;
5129
- return /* @__PURE__ */ M(Eo, {
5140
+ return /* @__PURE__ */ M(ko, {
5130
5141
  slice: s,
5131
5142
  point: e.toPoint(o),
5132
- spot: So(t, c),
5143
+ spot: To(t, c),
5133
5144
  phone: l.phone,
5134
5145
  width: l.width - u,
5135
5146
  min: -u,
5136
- share: ha(s.share, a),
5147
+ share: va(s.share, a),
5137
5148
  tooltip: r
5138
5149
  });
5139
5150
  }
5140
5151
  //#endregion
5141
5152
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-plot.tsx
5142
- function Oo({ model: e, props: n, donut: r }) {
5143
- let { size: a, slices: o, nav: s } = e, c = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: l } = i(), u = xo(a.width, a.height, r), d = da(o.map((e) => e.value)), f = X({
5153
+ function jo({ model: e, props: n, donut: r }) {
5154
+ let { size: a, slices: o, nav: s } = e, c = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: l } = i(), u = wo(a.width, a.height, r), d = ma(o.map((e) => e.value)), f = X({
5144
5155
  total: W.sweep,
5145
5156
  animate: n.animate,
5146
5157
  replay: e.motionKey
5147
- }), p = s.active?.index ?? null, m = Co(p === null ? null : o[p]?.key ?? null);
5158
+ }), p = s.active?.index ?? null, m = Eo(p === null ? null : o[p]?.key ?? null);
5148
5159
  return /* @__PURE__ */ N(V, {
5149
5160
  kind: r ? "donut" : "pie",
5150
5161
  title: n.title,
5151
5162
  status: e.status,
5152
5163
  onKeyDown: s.onKeyDown,
5153
- locate: (e, t) => pa(d, e - u.size / 2, t - u.size / 2, u.inner * .9, u.outer + 6 + 4),
5164
+ locate: (e, t) => ga(d, e - u.size / 2, t - u.size / 2, u.inner * .9, u.outer + 6 + 4),
5154
5165
  onPointer: (e) => e === null ? s.clear() : s.pointTo(e),
5155
5166
  onActivate: () => {
5156
5167
  let t = p === null ? null : e.toPoint(p);
@@ -5168,7 +5179,7 @@ function Oo({ model: e, props: n, donut: r }) {
5168
5179
  id: c,
5169
5180
  series: o,
5170
5181
  patterns: n.patterns
5171
- }), /* @__PURE__ */ M(To, {
5182
+ }), /* @__PURE__ */ M(Oo, {
5172
5183
  slices: o,
5173
5184
  layout: d,
5174
5185
  frame: u,
@@ -5179,12 +5190,12 @@ function Oo({ model: e, props: n, donut: r }) {
5179
5190
  chartId: c
5180
5191
  })]
5181
5192
  }),
5182
- r && /* @__PURE__ */ M(wo, {
5193
+ r && /* @__PURE__ */ M(Do, {
5183
5194
  diameter: u.inner * 2,
5184
5195
  center: n.center ?? e.total,
5185
5196
  caption: n.caption ?? l("material.charts.total", "Total")
5186
5197
  }),
5187
- /* @__PURE__ */ M(Do, {
5198
+ /* @__PURE__ */ M(Ao, {
5188
5199
  model: e,
5189
5200
  frame: u,
5190
5201
  layout: d,
@@ -5195,12 +5206,12 @@ function Oo({ model: e, props: n, donut: r }) {
5195
5206
  }
5196
5207
  //#endregion
5197
5208
  //#region lib/components/ui/widgets/native-charts/pie-chart/donut-chart.tsx
5198
- function ko(e) {
5199
- let t = wa(e, "donut");
5209
+ function Mo(e) {
5210
+ let t = Da(e, "donut");
5200
5211
  return /* @__PURE__ */ M(z, {
5201
5212
  model: t,
5202
5213
  props: e,
5203
- children: /* @__PURE__ */ M(Oo, {
5214
+ children: /* @__PURE__ */ M(jo, {
5204
5215
  model: t,
5205
5216
  props: e,
5206
5217
  donut: !0
@@ -5209,12 +5220,12 @@ function ko(e) {
5209
5220
  }
5210
5221
  //#endregion
5211
5222
  //#region lib/components/ui/widgets/native-charts/pie-chart/pie-chart.tsx
5212
- function Ao(e) {
5213
- let t = wa(e, "pie");
5223
+ function No(e) {
5224
+ let t = Da(e, "pie");
5214
5225
  return /* @__PURE__ */ M(z, {
5215
5226
  model: t,
5216
5227
  props: e,
5217
- children: /* @__PURE__ */ M(Oo, {
5228
+ children: /* @__PURE__ */ M(jo, {
5218
5229
  model: t,
5219
5230
  props: e,
5220
5231
  donut: !1
@@ -5223,7 +5234,7 @@ function Ao(e) {
5223
5234
  }
5224
5235
  //#endregion
5225
5236
  //#region lib/components/ui/widgets/native-charts/core/radar.ts
5226
- function jo(e, t, n, r) {
5237
+ function Po(e, t, n, r) {
5227
5238
  let i = Math.min(r ? 76 : 108, Math.ceil(rt(n)) + 14), a = Math.max(24, Math.min(e / 2 - i, t / 2 - 34));
5228
5239
  return {
5229
5240
  width: e,
@@ -5235,18 +5246,18 @@ function jo(e, t, n, r) {
5235
5246
  margin: i
5236
5247
  };
5237
5248
  }
5238
- function Mo(e, t) {
5249
+ function Fo(e, t) {
5239
5250
  return t > 0 ? e / t * Math.PI * 2 : 0;
5240
5251
  }
5241
5252
  function $(e, t, n) {
5242
- let r = Mo(t, e.count);
5253
+ let r = Fo(t, e.count);
5243
5254
  return [e.cx + Math.sin(r) * n, e.cy - Math.cos(r) * n];
5244
5255
  }
5245
- var No = (e) => Math.round(e * 100) / 100;
5246
- function Po(e) {
5247
- return e.length === 0 ? "" : `${e.map(([e, t], n) => `${n === 0 ? "M" : "L"}${No(e)} ${No(t)}`).join("")}Z`;
5256
+ var Io = (e) => Math.round(e * 100) / 100;
5257
+ function Lo(e) {
5258
+ return e.length === 0 ? "" : `${e.map(([e, t], n) => `${n === 0 ? "M" : "L"}${Io(e)} ${Io(t)}`).join("")}Z`;
5248
5259
  }
5249
- function Fo(e, t, n, r) {
5260
+ function Ro(e, t, n, r) {
5250
5261
  let i = ct(e, t, {
5251
5262
  min: n?.min,
5252
5263
  max: n?.max
@@ -5256,7 +5267,7 @@ function Fo(e, t, n, r) {
5256
5267
  ticks: i.ticks(r).filter((e) => t - i(e) > .5)
5257
5268
  };
5258
5269
  }
5259
- function Io(e, t, n, r = 1) {
5270
+ function zo(e, t, n, r = 1) {
5260
5271
  return n.map((n, i) => {
5261
5272
  let [a, o] = $(e, i, n === null ? 0 : t(n) * r);
5262
5273
  return {
@@ -5266,13 +5277,13 @@ function Io(e, t, n, r = 1) {
5266
5277
  };
5267
5278
  });
5268
5279
  }
5269
- function Lo(e, t, n) {
5280
+ function Bo(e, t, n) {
5270
5281
  let [r, i] = [t - e.cx, n - e.cy];
5271
5282
  if (e.count <= 0 || Math.hypot(r, i) > e.r + e.margin) return null;
5272
5283
  let a = (Math.atan2(r, -i) + Math.PI * 2) % (Math.PI * 2);
5273
5284
  return Math.round(a / (Math.PI * 2) * e.count) % e.count;
5274
5285
  }
5275
- function Ro(e, t, n) {
5286
+ function Vo(e, t, n) {
5276
5287
  let r = null, i = Infinity;
5277
5288
  return e.forEach((e, a) => {
5278
5289
  if (!e?.has) return;
@@ -5280,8 +5291,8 @@ function Ro(e, t, n) {
5280
5291
  o < i && ([r, i] = [a, o]);
5281
5292
  }), r;
5282
5293
  }
5283
- function zo(e, t, n = 1) {
5284
- let r = Mo(t, e.count), [i, a] = [Math.sin(r), Math.cos(r)], [o, s] = $(e, t, e.r + (a > .9 ? 22 : 12)), [c, l] = a > .9 ? [-.1, 1.1] : a < -.9 ? [.8, 0] : [.32, .55];
5294
+ function Ho(e, t, n = 1) {
5295
+ let r = Fo(t, e.count), [i, a] = [Math.sin(r), Math.cos(r)], [o, s] = $(e, t, e.r + (a > .9 ? 22 : 12)), [c, l] = a > .9 ? [-.1, 1.1] : a < -.9 ? [.8, 0] : [.32, .55];
5285
5296
  return {
5286
5297
  x: o,
5287
5298
  y: s,
@@ -5289,20 +5300,20 @@ function zo(e, t, n = 1) {
5289
5300
  dy: `${+(c - (n - 1) * l).toFixed(2)}em`
5290
5301
  };
5291
5302
  }
5292
- var Bo = 4;
5293
- function Vo(e) {
5303
+ var Uo = 4;
5304
+ function Wo(e) {
5294
5305
  return Math.min(240, Math.max(176, 70 + rt(e, 12)));
5295
5306
  }
5296
- function Ho(e, t, n = 176) {
5297
- let [, r] = $(e, t, e.r), i = Math.sin(Mo(t, e.count)) >= -.01, a = e.r + e.margin - 12;
5307
+ function Go(e, t, n = 176) {
5308
+ let [, r] = $(e, t, e.r), i = Math.sin(Fo(t, e.count)) >= -.01, a = e.r + e.margin - 12;
5298
5309
  return {
5299
5310
  x: i ? e.cx + a : e.cx - a,
5300
5311
  top: Math.min(Math.max(4, r - 24), Math.max(4, e.height - 110)),
5301
5312
  prefer: i ? "right" : "left",
5302
- sheet: e.width / 2 - a < n + Bo
5313
+ sheet: e.width / 2 - a < n + Uo
5303
5314
  };
5304
5315
  }
5305
- function Uo(e, t) {
5316
+ function Ko(e, t) {
5306
5317
  if (e.count < 3) return {
5307
5318
  x: e.cx + 4,
5308
5319
  y: e.cy - t - 3
@@ -5315,28 +5326,28 @@ function Uo(e, t) {
5315
5326
  }
5316
5327
  //#endregion
5317
5328
  //#region lib/components/ui/widgets/native-charts/radar-chart/use-radar-geometry.ts
5318
- function Wo(e, t, n) {
5319
- let { size: r, shown: i, labels: a, nav: o } = e, s = jo(r.width, r.height, a, r.phone), c = Fo(i.flatMap((e) => e.values.filter((e) => e !== null)), s.r, t.yAxis, dt(r.width, t.yAxis?.ticks)), l = i.map((e) => Io(s, c.radius, e.values, n)), u = o.active ? i.find((e) => e.position === o.active?.series)?.key : null;
5329
+ function qo(e, t, n) {
5330
+ let { size: r, shown: i, labels: a, nav: o } = e, s = Po(r.width, r.height, a, r.phone), c = Ro(i.flatMap((e) => e.values.filter((e) => e !== null)), s.r, t.yAxis, dt(r.width, t.yAxis?.ticks)), l = i.map((e) => zo(s, c.radius, e.values, n)), u = o.active ? i.find((e) => e.position === o.active?.series)?.key : null;
5320
5331
  return {
5321
5332
  frame: s,
5322
5333
  scale: c,
5323
5334
  vertices: l,
5324
- filled: pn(i.map((e) => e.key), u)
5335
+ filled: hn(i.map((e) => e.key), u)
5325
5336
  };
5326
5337
  }
5327
- function Go(e, t, n, r = 0, i = 0) {
5338
+ function Jo(e, t, n, r = 0, i = 0) {
5328
5339
  let { nav: a, shown: o } = e;
5329
5340
  if (n === null) return a.clear();
5330
- let s = Ro(t.map((e) => e[n] ?? null), i, r);
5341
+ let s = Vo(t.map((e) => e[n] ?? null), i, r);
5331
5342
  a.pointTo(n, s === null ? void 0 : o[s]?.position);
5332
5343
  }
5333
5344
  //#endregion
5334
5345
  //#region lib/components/ui/widgets/native-charts/core/radar-labels.ts
5335
- function Ko(e) {
5346
+ function Yo(e) {
5336
5347
  return Math.max(3, it(e - 14));
5337
5348
  }
5338
- function qo(e, t) {
5339
- let n = Ko(e.margin);
5349
+ function Xo(e, t) {
5350
+ let n = Yo(e.margin);
5340
5351
  if (Array.from(t).length <= n) return [t];
5341
5352
  let r = t.split(/\s+/), i = "", a = 0;
5342
5353
  for (let e of r) {
@@ -5346,20 +5357,20 @@ function qo(e, t) {
5346
5357
  }
5347
5358
  return i ? [i, U(r.slice(a).join(" "), n)] : [U(t, n)];
5348
5359
  }
5349
- var Jo = 12;
5350
- function Yo(e, t, n, r) {
5360
+ var Zo = 12;
5361
+ function Qo(e, t, n, r) {
5351
5362
  if (!r) return t;
5352
- let i = jo(e, t, n, r), a = (e) => n[e] === void 0 ? 1 : qo(i, n[e]).length, o = 34 + (a(0) - 1) * Jo, s = 24 + (a(Math.floor(n.length / 2)) - 1) * Jo, c = Math.max(34, o, s) + 3;
5363
+ let i = Po(e, t, n, r), a = (e) => n[e] === void 0 ? 1 : Xo(i, n[e]).length, o = 34 + (a(0) - 1) * Zo, s = 24 + (a(Math.floor(n.length / 2)) - 1) * Zo, c = Math.max(34, o, s) + 3;
5353
5364
  return Math.min(t, Math.round(2 * (i.r + c)));
5354
5365
  }
5355
5366
  //#endregion
5356
5367
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-axis-names.tsx
5357
- function Xo({ frame: e, labels: t, active: n }) {
5368
+ function $o({ frame: e, labels: t, active: n }) {
5358
5369
  return /* @__PURE__ */ M("g", {
5359
5370
  className: "nxgt-chart-axis",
5360
5371
  "data-axis": "radar",
5361
5372
  children: t.map((t, r) => {
5362
- let i = qo(e, t), a = zo(e, r, i.length);
5373
+ let i = Xo(e, t), a = Ho(e, r, i.length);
5363
5374
  return /* @__PURE__ */ M("text", {
5364
5375
  x: a.x,
5365
5376
  y: a.y,
@@ -5377,14 +5388,14 @@ function Xo({ frame: e, labels: t, active: n }) {
5377
5388
  }
5378
5389
  //#endregion
5379
5390
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-marks.tsx
5380
- function Zo({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, active: o }) {
5391
+ function es({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, active: o }) {
5381
5392
  let s = i.map((e, t) => t);
5382
5393
  return /* @__PURE__ */ N(j, { children: [
5383
5394
  a !== "none" && /* @__PURE__ */ N("g", {
5384
5395
  className: "nxgt-chart-grid",
5385
5396
  "data-grid": a,
5386
5397
  "data-shape": "radar",
5387
- children: [t.map((t) => /* @__PURE__ */ M("path", { d: Po(s.map((r) => $(e, r, n(t)))) }, t)), s.map((t) => {
5398
+ children: [t.map((t) => /* @__PURE__ */ M("path", { d: Lo(s.map((r) => $(e, r, n(t)))) }, t)), s.map((t) => {
5388
5399
  let [n, r] = $(e, t, e.r);
5389
5400
  return /* @__PURE__ */ M("line", {
5390
5401
  x1: e.cx,
@@ -5398,7 +5409,7 @@ function Zo({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, acti
5398
5409
  className: "nxgt-chart-axis",
5399
5410
  "data-axis": "rings",
5400
5411
  children: t.map((t) => {
5401
- let i = Uo(e, n(t));
5412
+ let i = Ko(e, n(t));
5402
5413
  return /* @__PURE__ */ M("text", {
5403
5414
  x: i.x,
5404
5415
  y: i.y,
@@ -5408,35 +5419,35 @@ function Zo({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, acti
5408
5419
  }, t);
5409
5420
  })
5410
5421
  }),
5411
- /* @__PURE__ */ M(Xo, {
5422
+ /* @__PURE__ */ M($o, {
5412
5423
  frame: e,
5413
5424
  labels: i,
5414
5425
  active: o
5415
5426
  })
5416
5427
  ] });
5417
5428
  }
5418
- function Qo({ series: e, vertices: n, filled: r, patterns: i, chartId: a, phone: o }) {
5429
+ function ts({ series: e, vertices: n, filled: r, patterns: i, chartId: a, phone: o }) {
5419
5430
  let s = r ? i ? { fill: `url(#${J(a, e.position)})` } : void 0 : { fill: "none" };
5420
5431
  return /* @__PURE__ */ N("g", {
5421
5432
  ...e.paint,
5422
5433
  "data-series": e.key,
5423
5434
  children: [/* @__PURE__ */ M("path", {
5424
- d: Po(n.map((e) => [e.x, e.y])),
5435
+ d: Lo(n.map((e) => [e.x, e.y])),
5425
5436
  className: t("nxgt-chart-radar", r && !i && "nxgt-chart-radar-wash", i && `nxgt-chart-dash-${e.dash}`),
5426
5437
  "data-filled": r || void 0,
5427
5438
  ...s
5428
- }), /* @__PURE__ */ M($o, {
5439
+ }), /* @__PURE__ */ M(ns, {
5429
5440
  vertices: n,
5430
5441
  shape: i ? e.shape : void 0,
5431
5442
  size: o ? 7 : 9
5432
5443
  })]
5433
5444
  });
5434
5445
  }
5435
- function $o({ vertices: e, shape: t, size: n }) {
5446
+ function ns({ vertices: e, shape: t, size: n }) {
5436
5447
  return /* @__PURE__ */ M("g", {
5437
5448
  "data-slot": "chart-markers",
5438
5449
  children: e.map((e, r) => e.has ? t ? /* @__PURE__ */ M("path", {
5439
- d: Yn(t, n, e.x, e.y),
5450
+ d: Zn(t, n, e.x, e.y),
5440
5451
  className: "nxgt-chart-active-mark"
5441
5452
  }, r) : /* @__PURE__ */ M("circle", {
5442
5453
  cx: e.x,
@@ -5446,8 +5457,8 @@ function $o({ vertices: e, shape: t, size: n }) {
5446
5457
  }, r) : null)
5447
5458
  });
5448
5459
  }
5449
- function es({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5450
- let a = Wr(String(t)), [o, s] = $(e, t, e.r);
5460
+ function rs({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5461
+ let a = Kr(String(t)), [o, s] = $(e, t, e.r);
5451
5462
  return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M("line", {
5452
5463
  className: "nxgt-chart-spoke",
5453
5464
  x1: e.cx,
@@ -5456,7 +5467,7 @@ function es({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5456
5467
  y2: s
5457
5468
  }), n.map((e, n) => {
5458
5469
  let o = r[n]?.[t];
5459
- return o?.has ? /* @__PURE__ */ M(Kr, {
5470
+ return o?.has ? /* @__PURE__ */ M(Jr, {
5460
5471
  cx: o.x,
5461
5472
  cy: o.y,
5462
5473
  paint: e.paint,
@@ -5467,7 +5478,7 @@ function es({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5467
5478
  }
5468
5479
  //#endregion
5469
5480
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-svg.tsx
5470
- function ts({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, language: s }) {
5481
+ function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, language: s }) {
5471
5482
  let { size: c, shown: l, labels: u, nav: d } = e, { frame: f, scale: p, vertices: m, filled: h } = i, g = n.yAxis?.format ?? F(s), { active: _ } = d;
5472
5483
  return /* @__PURE__ */ N("svg", {
5473
5484
  width: c.width,
@@ -5481,7 +5492,7 @@ function ts({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5481
5492
  series: l,
5482
5493
  patterns: n.patterns
5483
5494
  }),
5484
- /* @__PURE__ */ M(Zo, {
5495
+ /* @__PURE__ */ M(es, {
5485
5496
  frame: f,
5486
5497
  ticks: p.ticks,
5487
5498
  radius: p.radius,
@@ -5492,7 +5503,7 @@ function ts({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5492
5503
  }),
5493
5504
  /* @__PURE__ */ M("g", {
5494
5505
  opacity: o,
5495
- children: l.map((e, t) => /* @__PURE__ */ M(Qo, {
5506
+ children: l.map((e, t) => /* @__PURE__ */ M(ts, {
5496
5507
  series: e,
5497
5508
  vertices: m[t] ?? [],
5498
5509
  filled: h.has(e.key),
@@ -5501,7 +5512,7 @@ function ts({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5501
5512
  phone: c.phone
5502
5513
  }, e.key))
5503
5514
  }),
5504
- _ && /* @__PURE__ */ M(es, {
5515
+ _ && /* @__PURE__ */ M(rs, {
5505
5516
  frame: f,
5506
5517
  index: _.index,
5507
5518
  series: l,
@@ -5513,24 +5524,24 @@ function ts({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5513
5524
  }
5514
5525
  //#endregion
5515
5526
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-plot.tsx
5516
- function ns({ model: e, props: t }) {
5527
+ function as({ model: e, props: t }) {
5517
5528
  let { shown: n, nav: r } = e, a = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: o } = i(), s = X({
5518
5529
  total: W.lines,
5519
5530
  animate: t.animate,
5520
5531
  replay: e.motionKey
5521
- }), c = Wo(e, t, G(s.progress)), { frame: l, vertices: u } = c, d = G(q(s.elapsed, W.lines * .6, W.lines * .4)), { active: f } = r, p = f ? Ho(l, f.index, Vo(n.map((e) => e.label))) : null;
5532
+ }), c = qo(e, t, G(s.progress)), { frame: l, vertices: u } = c, d = G(q(s.elapsed, W.lines * .6, W.lines * .4)), { active: f } = r, p = f ? Go(l, f.index, Wo(n.map((e) => e.label))) : null;
5522
5533
  return /* @__PURE__ */ N(V, {
5523
5534
  kind: "radar",
5524
5535
  title: t.title,
5525
5536
  status: e.status,
5526
5537
  onKeyDown: r.onKeyDown,
5527
- locate: (e, t) => Lo(l, e, t),
5528
- onPointer: (t, n, r) => Go(e, u, t, n, r),
5538
+ locate: (e, t) => Bo(l, e, t),
5539
+ onPointer: (t, n, r) => Jo(e, u, t, n, r),
5529
5540
  onActivate: () => {
5530
5541
  let n = f && e.toPoint(f.index, f.series);
5531
5542
  n && t.onPointClick?.(n);
5532
5543
  },
5533
- children: [/* @__PURE__ */ M(ts, {
5544
+ children: [/* @__PURE__ */ M(is, {
5534
5545
  model: e,
5535
5546
  props: t,
5536
5547
  id: a,
@@ -5538,7 +5549,7 @@ function ns({ model: e, props: t }) {
5538
5549
  motion: s,
5539
5550
  fade: d,
5540
5551
  language: o
5541
- }), f && p && /* @__PURE__ */ M(wr, {
5552
+ }), f && p && /* @__PURE__ */ M(Er, {
5542
5553
  model: e,
5543
5554
  x: p.x,
5544
5555
  top: p.top,
@@ -5551,7 +5562,7 @@ function ns({ model: e, props: t }) {
5551
5562
  }
5552
5563
  //#endregion
5553
5564
  //#region lib/components/ui/widgets/native-charts/core/radar-text.ts
5554
- function rs(e, t) {
5565
+ function os(e, t) {
5555
5566
  let { labels: n, hidden: r = [] } = t, i = I(e, "radar"), a = [e("material.charts.summary.intro", "{kind}: {title}.", {
5556
5567
  kind: i.charAt(0).toLocaleUpperCase() + i.slice(1),
5557
5568
  title: t.title
@@ -5578,16 +5589,16 @@ function rs(e, t) {
5578
5589
  }
5579
5590
  //#endregion
5580
5591
  //#region lib/components/ui/widgets/native-charts/radar-chart/use-radar-model.ts
5581
- function is(e) {
5582
- let { t } = i(), n = hn({
5592
+ function ss(e) {
5593
+ let { t } = i(), n = _n({
5583
5594
  ...e,
5584
5595
  height: e.height ?? 340
5585
- }, "radar"), r = rs(t, {
5596
+ }, "radar"), r = os(t, {
5586
5597
  title: e.title,
5587
5598
  labels: n.labels,
5588
5599
  series: n.shown,
5589
5600
  hidden: n.series.filter((e) => n.visibility.hidden.includes(e.key)).map((e) => e.label)
5590
- }), { size: a } = n, o = e.height === void 0 ? Yo(a.width, a.height, n.labels, a.phone) : a.height;
5601
+ }), { size: a } = n, o = e.height === void 0 ? Qo(a.width, a.height, n.labels, a.phone) : a.height;
5591
5602
  return {
5592
5603
  ...n,
5593
5604
  size: {
@@ -5599,12 +5610,12 @@ function is(e) {
5599
5610
  }
5600
5611
  //#endregion
5601
5612
  //#region lib/components/ui/widgets/native-charts/radar-chart/radar-chart.tsx
5602
- function as(e) {
5603
- let t = is(e);
5613
+ function cs(e) {
5614
+ let t = ss(e);
5604
5615
  return /* @__PURE__ */ M(z, {
5605
5616
  model: t,
5606
5617
  props: e,
5607
- children: /* @__PURE__ */ M(ns, {
5618
+ children: /* @__PURE__ */ M(as, {
5608
5619
  model: t,
5609
5620
  props: e
5610
5621
  })
@@ -5612,44 +5623,44 @@ function as(e) {
5612
5623
  }
5613
5624
  //#endregion
5614
5625
  //#region lib/components/ui/widgets/native-charts/core/radial.ts
5615
- var os = 6, ss = 18;
5616
- function cs(e, t) {
5626
+ var ls = 6, us = 18;
5627
+ function ds(e, t) {
5617
5628
  if (t !== void 0 && Number.isFinite(t) && t > 0) return t;
5618
5629
  let n = Math.max(0, ...e.filter((e) => Number.isFinite(e)));
5619
5630
  return n > 0 ? n : 1;
5620
5631
  }
5621
- function ls(e, t) {
5632
+ function fs(e, t) {
5622
5633
  return !Number.isFinite(e) || e <= 0 || t <= 0 ? 0 : e / t;
5623
5634
  }
5624
- function us(e, t, n) {
5635
+ function ps(e, t, n) {
5625
5636
  let r = Math.max(0, Math.min(e, t)), i = Math.max(0, r / 2 - 8), a = Math.max(1, n), o = i * .3;
5626
5637
  return {
5627
5638
  size: r,
5628
5639
  outer: i,
5629
- thick: Math.max(6, Math.min(ss, Math.floor((i - o) / a - os))),
5630
- gap: os
5640
+ thick: Math.max(6, Math.min(us, Math.floor((i - o) / a - ls))),
5641
+ gap: ls
5631
5642
  };
5632
5643
  }
5633
- function ds(e, t) {
5644
+ function ms(e, t) {
5634
5645
  let n = e.outer - t * (e.thick + e.gap);
5635
5646
  return {
5636
5647
  outer: n,
5637
5648
  inner: Math.max(0, n - e.thick)
5638
5649
  };
5639
5650
  }
5640
- function fs(e, t, n, r) {
5651
+ function hs(e, t, n, r) {
5641
5652
  let i = Math.hypot(n, r);
5642
5653
  for (let n = 0; n < t; n++) {
5643
- let { inner: t, outer: r } = ds(e, n);
5654
+ let { inner: t, outer: r } = ms(e, n);
5644
5655
  if (i >= t - e.gap / 2 && i <= r + e.gap / 2) return n;
5645
5656
  }
5646
5657
  return null;
5647
5658
  }
5648
- function ps(e, t, n) {
5649
- let { inner: r, outer: i } = ds(e, t);
5650
- return ma(8, i - r, n, r);
5659
+ function gs(e, t, n) {
5660
+ let { inner: r, outer: i } = ms(e, t);
5661
+ return _a(8, i - r, n, r);
5651
5662
  }
5652
- function ms(e, t) {
5663
+ function _s(e, t) {
5653
5664
  let n = I(e, "radial-bar"), r = [e("material.charts.summary.intro", "{kind}: {title}.", {
5654
5665
  kind: n.charAt(0).toLocaleUpperCase() + n.slice(1),
5655
5666
  title: t.title
@@ -5659,7 +5670,7 @@ function ms(e, t) {
5659
5670
  })];
5660
5671
  return t.rings.length > 0 && r.push(e("material.charts.summary.ring-list", "{list}.", { list: t.rings.map((t) => e("material.charts.summary.slice", "{label} {value} ({share})", t)).join(", ") })), t.hidden?.length && r.push(e("material.charts.summary.hidden", "Hidden: {series}.", { series: t.hidden.join(", ") })), r.join(" ");
5661
5672
  }
5662
- function hs(e, t, n, r) {
5673
+ function vs(e, t, n, r) {
5663
5674
  return Ge(e("material.charts.table-ring", "Ring"), t.map((e) => e.label), [{
5664
5675
  key: "value",
5665
5676
  label: e("material.charts.table-value", "Value"),
@@ -5669,26 +5680,26 @@ function hs(e, t, n, r) {
5669
5680
  key: "share",
5670
5681
  label: e("material.charts.table-of-max", "Of max"),
5671
5682
  values: t.map((e) => e.share),
5672
- format: (e) => ha(e, r)
5683
+ format: (e) => va(e, r)
5673
5684
  }]);
5674
5685
  }
5675
5686
  //#endregion
5676
5687
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/partials/radial-marks.tsx
5677
- var gs = Math.PI * 2;
5678
- function _s({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, chartId: o }) {
5688
+ var ys = Math.PI * 2;
5689
+ function bs({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, chartId: o }) {
5679
5690
  let s = t.size / 2;
5680
5691
  return /* @__PURE__ */ M("g", {
5681
5692
  transform: `translate(${s},${s})`,
5682
5693
  children: e.map((e, s) => {
5683
- let { inner: c, outer: l } = ds(t, s), u = r === s, d = l + (u ? i : 0), f = gs * Math.min(1, e.share), p = f * G(q(n, W.sweep, K(s))), m = ps(t, s, f);
5694
+ let { inner: c, outer: l } = ms(t, s), u = r === s, d = l + (u ? i : 0), f = ys * Math.min(1, e.share), p = f * G(q(n, W.sweep, K(s))), m = gs(t, s, f);
5684
5695
  return /* @__PURE__ */ N("g", {
5685
5696
  ...e.paint,
5686
5697
  "data-series": e.key,
5687
5698
  children: [/* @__PURE__ */ M("path", {
5688
- d: Aa(0, 0, c, l, 0, gs, 0),
5699
+ d: Na(0, 0, c, l, 0, ys, 0),
5689
5700
  className: "nxgt-chart-ring-track"
5690
5701
  }), /* @__PURE__ */ M("path", {
5691
- d: p > .001 ? Aa(0, 0, c, d, 0, p, m) : "",
5702
+ d: p > .001 ? Na(0, 0, c, d, 0, p, m) : "",
5692
5703
  className: "nxgt-chart-ring",
5693
5704
  "data-ring": s,
5694
5705
  "data-active": u || void 0,
@@ -5702,18 +5713,18 @@ function _s({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, ch
5702
5713
  }
5703
5714
  //#endregion
5704
5715
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/partials/radial-plot.tsx
5705
- function vs({ model: e, props: n }) {
5706
- let { size: r, rings: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: c } = i(), l = us(r.width, r.height, a.length), u = X({
5716
+ function xs({ model: e, props: n }) {
5717
+ let { size: r, rings: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: c } = i(), l = ps(r.width, r.height, a.length), u = X({
5707
5718
  total: W.sweep + K(Math.max(0, a.length - 1)),
5708
5719
  animate: n.animate,
5709
5720
  replay: e.motionKey
5710
- }), d = o.active?.index ?? null, f = d === null ? void 0 : a[d], p = Co(f?.key ?? null) / 2, m = (r.width - l.size) / 2;
5721
+ }), d = o.active?.index ?? null, f = d === null ? void 0 : a[d], p = Eo(f?.key ?? null) / 2, m = (r.width - l.size) / 2;
5711
5722
  return /* @__PURE__ */ N(V, {
5712
5723
  kind: "radial-bar",
5713
5724
  title: n.title,
5714
5725
  status: e.status,
5715
5726
  onKeyDown: o.onKeyDown,
5716
- locate: (e, t) => fs(l, a.length, e - l.size / 2, t - l.size / 2),
5727
+ locate: (e, t) => hs(l, a.length, e - l.size / 2, t - l.size / 2),
5717
5728
  onPointer: (e) => e === null ? o.clear() : o.pointTo(e),
5718
5729
  onActivate: () => {
5719
5730
  let t = d === null ? null : e.toPoint(d);
@@ -5730,7 +5741,7 @@ function vs({ model: e, props: n }) {
5730
5741
  id: s,
5731
5742
  series: a,
5732
5743
  patterns: n.patterns
5733
- }), /* @__PURE__ */ M(_s, {
5744
+ }), /* @__PURE__ */ M(bs, {
5734
5745
  rings: a,
5735
5746
  frame: l,
5736
5747
  elapsed: u.elapsed,
@@ -5739,7 +5750,7 @@ function vs({ model: e, props: n }) {
5739
5750
  patterns: n.patterns,
5740
5751
  chartId: s
5741
5752
  })]
5742
- }), f && d !== null && /* @__PURE__ */ M(Eo, {
5753
+ }), f && d !== null && /* @__PURE__ */ M(ko, {
5743
5754
  slice: f,
5744
5755
  point: e.toPoint(d),
5745
5756
  spot: {
@@ -5751,15 +5762,15 @@ function vs({ model: e, props: n }) {
5751
5762
  phone: r.phone,
5752
5763
  width: r.width - m,
5753
5764
  min: -m,
5754
- share: ha(f.share, c),
5765
+ share: va(f.share, c),
5755
5766
  tooltip: n.tooltip
5756
5767
  })]
5757
5768
  });
5758
5769
  }
5759
5770
  //#endregion
5760
5771
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.ts
5761
- function ys(e) {
5762
- let { data: t, title: n } = e, { t: r, language: a } = i(), { resolved: o, keys: s, visibility: c } = Ca(e), l = R(e.height), u = e.format ?? F(a), d = cs(t.map((e) => e.value), e.max), f = o.flatMap((e, n) => {
5772
+ function Ss(e) {
5773
+ let { data: t, title: n } = e, { t: r, language: a } = i(), { resolved: o, keys: s, visibility: c } = Ea(e), l = R(e.height), u = e.format ?? F(a), d = ds(t.map((e) => e.value), e.max), f = o.flatMap((e, n) => {
5763
5774
  if (c.hidden.includes(e.key)) return [];
5764
5775
  let r = t[n]?.value ?? 0, i = Number.isFinite(r) ? Math.max(0, r) : 0;
5765
5776
  return [{
@@ -5767,24 +5778,24 @@ function ys(e) {
5767
5778
  paint: P(e),
5768
5779
  value: i,
5769
5780
  formatted: u(i),
5770
- share: ls(i, d),
5781
+ share: fs(i, d),
5771
5782
  dataIndex: n
5772
5783
  }];
5773
- }), p = (e) => va(f[e]), m = cn({
5784
+ }), p = (e) => xa(f[e]), m = un({
5774
5785
  count: f.length,
5775
5786
  visible: [0],
5776
- keyMap: Sa,
5787
+ keyMap: Ta,
5777
5788
  onActivate: ({ index: t }) => {
5778
5789
  let n = p(t);
5779
5790
  n && e.onPointClick?.(n);
5780
5791
  }
5781
- }), h = ms(r, {
5792
+ }), h = _s(r, {
5782
5793
  title: n,
5783
5794
  max: u(d),
5784
5795
  rings: f.map((e) => ({
5785
5796
  label: e.label,
5786
5797
  value: e.formatted,
5787
- share: ha(e.share, a)
5798
+ share: va(e.share, a)
5788
5799
  })),
5789
5800
  hidden: o.filter((e) => c.hidden.includes(e.key)).map((e) => e.label)
5790
5801
  }), g = m.active && f[m.active.index];
@@ -5796,9 +5807,9 @@ function ys(e) {
5796
5807
  nav: m,
5797
5808
  toPoint: p,
5798
5809
  summary: L(e.summary, h),
5799
- status: g && m.source === "key" ? ya(r, g, a) : null,
5810
+ status: g && m.source === "key" ? Sa(r, g, a) : null,
5800
5811
  legendItems: Xe(o),
5801
- table: e.dataTable === !1 ? null : hs(r, f, u, a),
5812
+ table: e.dataTable === !1 ? null : vs(r, f, u, a),
5802
5813
  tableCaption: r("material.charts.table-caption", "{title}: the data", { title: n }),
5803
5814
  motionKey: s.join(","),
5804
5815
  empty: t.length === 0
@@ -5806,12 +5817,12 @@ function ys(e) {
5806
5817
  }
5807
5818
  //#endregion
5808
5819
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/radial-bar-chart.tsx
5809
- function bs(e) {
5810
- let t = ys(e);
5820
+ function Cs(e) {
5821
+ let t = Ss(e);
5811
5822
  return /* @__PURE__ */ M(z, {
5812
5823
  model: t,
5813
5824
  props: e,
5814
- children: /* @__PURE__ */ M(vs, {
5825
+ children: /* @__PURE__ */ M(xs, {
5815
5826
  model: t,
5816
5827
  props: e
5817
5828
  })
@@ -5819,9 +5830,9 @@ function bs(e) {
5819
5830
  }
5820
5831
  //#endregion
5821
5832
  //#region lib/components/ui/widgets/native-charts/core/scatter.ts
5822
- var xs = (e) => Number.isFinite(e.x) && Number.isFinite(e.y);
5823
- function Ss(e) {
5824
- return e.flatMap((e) => e.points.flatMap((t, n) => xs(t) ? [{
5833
+ var ws = (e) => Number.isFinite(e.x) && Number.isFinite(e.y);
5834
+ function Ts(e) {
5835
+ return e.flatMap((e) => e.points.flatMap((t, n) => ws(t) ? [{
5825
5836
  key: e.key,
5826
5837
  position: e.position,
5827
5838
  i: n,
@@ -5830,10 +5841,10 @@ function Ss(e) {
5830
5841
  label: t.label
5831
5842
  }] : [])).sort((e, t) => e.x - t.x || e.y - t.y || e.position - t.position || e.i - t.i);
5832
5843
  }
5833
- function Cs(e, t) {
5844
+ function Es(e, t) {
5834
5845
  return t ?? Math.min(8, Math.max(3, Math.floor(e / 90)));
5835
5846
  }
5836
- function ws(e, t, n, r) {
5847
+ function Ds(e, t, n, r) {
5837
5848
  let i = x().domain(st(e.map((e) => e.x), {
5838
5849
  min: n.x?.min,
5839
5850
  max: n.x?.max,
@@ -5853,15 +5864,15 @@ function ws(e, t, n, r) {
5853
5864
  yTicks: a.ticks(r.y)
5854
5865
  };
5855
5866
  }
5856
- var Ts = (e, t) => mt(e, t, 56);
5857
- function Es(e, t, n, r, i = 28) {
5867
+ var Os = (e, t) => mt(e, t, 56);
5868
+ function ks(e, t, n, r, i = 28) {
5858
5869
  let a = -1, o = i;
5859
5870
  return e.forEach((e, i) => {
5860
5871
  let [s, c] = t(e), l = Math.hypot(s - n, c - r);
5861
5872
  l <= o && (a = i, o = l);
5862
5873
  }), a < 0 ? null : a;
5863
5874
  }
5864
- function Ds(e, t, n, r, i) {
5875
+ function As(e, t, n, r, i) {
5865
5876
  let [a, o, s] = [
5866
5877
  12,
5867
5878
  24,
@@ -5870,7 +5881,7 @@ function Ds(e, t, n, r, i) {
5870
5881
  top: a,
5871
5882
  right: o,
5872
5883
  bottom: s,
5873
- left: i(ws(e, {
5884
+ left: i(Ds(e, {
5874
5885
  width: 100,
5875
5886
  height: c
5876
5887
  }, n, {
@@ -5879,11 +5890,11 @@ function Ds(e, t, n, r, i) {
5879
5890
  }).yTicks)
5880
5891
  }, u = Math.max(10, t.width - l.left - l.right);
5881
5892
  return {
5882
- ...ws(e, {
5893
+ ...Ds(e, {
5883
5894
  width: u,
5884
5895
  height: c
5885
5896
  }, n, {
5886
- x: Cs(u, r.x),
5897
+ x: Es(u, r.x),
5887
5898
  y: r.y
5888
5899
  }),
5889
5900
  m: l,
@@ -5893,10 +5904,10 @@ function Ds(e, t, n, r, i) {
5893
5904
  }
5894
5905
  //#endregion
5895
5906
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-layout.ts
5896
- function Os(e, t) {
5907
+ function js(e, t) {
5897
5908
  let { language: n } = i(), { width: r, height: a, phone: o } = e.size, s = t.yAxis?.format ?? F(n);
5898
5909
  return {
5899
- layout: Ds(e.dots, {
5910
+ layout: As(e.dots, {
5900
5911
  width: r,
5901
5912
  height: a
5902
5913
  }, {
@@ -5905,14 +5916,14 @@ function Os(e, t) {
5905
5916
  }, {
5906
5917
  x: t.xAxis?.ticks,
5907
5918
  y: dt(r, t.yAxis?.ticks)
5908
- }, (e) => En(e.map(s), o)),
5919
+ }, (e) => On(e.map(s), o)),
5909
5920
  formatY: s
5910
5921
  };
5911
5922
  }
5912
5923
  //#endregion
5913
5924
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-marks.tsx
5914
- var ks = 4.5, As = 11;
5915
- function js({ shown: e, dots: t, at: n, elapsed: r, patterns: i }) {
5925
+ var Ms = 4.5, Ns = 11;
5926
+ function Ps({ shown: e, dots: t, at: n, elapsed: r, patterns: i }) {
5916
5927
  return /* @__PURE__ */ M(j, { children: e.map((e) => /* @__PURE__ */ M("g", {
5917
5928
  ...e.paint,
5918
5929
  "data-series": e.key,
@@ -5920,18 +5931,18 @@ function js({ shown: e, dots: t, at: n, elapsed: r, patterns: i }) {
5920
5931
  if (a.key !== e.key) return null;
5921
5932
  let s = G(q(r, 320, o / t.length * 380)), [c, l] = n(a);
5922
5933
  return i ? /* @__PURE__ */ M("path", {
5923
- d: Yn(e.shape, As * Math.max(.01, s), c, l),
5934
+ d: Zn(e.shape, Ns * Math.max(.01, s), c, l),
5924
5935
  className: "nxgt-chart-dot"
5925
5936
  }, a.i) : /* @__PURE__ */ M("circle", {
5926
5937
  cx: c,
5927
5938
  cy: l,
5928
- r: ks * s,
5939
+ r: Ms * s,
5929
5940
  className: "nxgt-chart-dot"
5930
5941
  }, a.i);
5931
5942
  })
5932
5943
  }, e.key)) });
5933
5944
  }
5934
- function Ms({ x: e, y: t, height: n }) {
5945
+ function Fs({ x: e, y: t, height: n }) {
5935
5946
  return /* @__PURE__ */ N("g", {
5936
5947
  className: "nxgt-chart-guides",
5937
5948
  children: [/* @__PURE__ */ M("line", {
@@ -5949,12 +5960,12 @@ function Ms({ x: e, y: t, height: n }) {
5949
5960
  }
5950
5961
  //#endregion
5951
5962
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-svg.tsx
5952
- function Ns({ model: e, props: n, layout: r, formatY: i }) {
5963
+ function Is({ model: e, props: n, layout: r, formatY: i }) {
5953
5964
  let { size: a, shown: o, dots: s, active: c } = e, { m: l, iw: u, ih: d, x: f, y: p } = r, m = X({
5954
5965
  total: 700,
5955
5966
  animate: n.animate,
5956
5967
  replay: e.motionKey
5957
- }), h = (e) => [f(e.x), p(e.y)], g = r.xTicks.map(e.names.formatX), _ = Wr(c ? `${c.dot.key}:${c.dot.i}` : null), v = o.find((e) => e.key === c?.dot.key);
5968
+ }), h = (e) => [f(e.x), p(e.y)], g = r.xTicks.map(e.names.formatX), _ = Kr(c ? `${c.dot.key}:${c.dot.i}` : null), v = o.find((e) => e.key === c?.dot.key);
5958
5969
  return /* @__PURE__ */ M("svg", {
5959
5970
  width: a.width,
5960
5971
  height: a.height,
@@ -5964,7 +5975,7 @@ function Ns({ model: e, props: n, layout: r, formatY: i }) {
5964
5975
  children: /* @__PURE__ */ N("g", {
5965
5976
  transform: `translate(${l.left},${l.top})`,
5966
5977
  children: [
5967
- /* @__PURE__ */ M(sr, {
5978
+ /* @__PURE__ */ M(lr, {
5968
5979
  ticks: r.yTicks,
5969
5980
  y: p,
5970
5981
  width: u,
@@ -5976,25 +5987,25 @@ function Ns({ model: e, props: n, layout: r, formatY: i }) {
5976
5987
  width: u,
5977
5988
  format: i
5978
5989
  }),
5979
- /* @__PURE__ */ M(cr, {
5990
+ /* @__PURE__ */ M(ur, {
5980
5991
  labels: g,
5981
5992
  xOf: (e) => f(r.xTicks[e] ?? 0),
5982
5993
  baseline: d,
5983
- step: Ts(g.length, u)
5994
+ step: Os(g.length, u)
5984
5995
  }),
5985
- c && /* @__PURE__ */ M(Ms, {
5996
+ c && /* @__PURE__ */ M(Fs, {
5986
5997
  x: f(c.dot.x),
5987
5998
  y: p(c.dot.y),
5988
5999
  height: d
5989
6000
  }),
5990
- /* @__PURE__ */ M(js, {
6001
+ /* @__PURE__ */ M(Ps, {
5991
6002
  shown: o,
5992
6003
  dots: s,
5993
6004
  at: h,
5994
6005
  elapsed: m.elapsed,
5995
6006
  patterns: n.patterns
5996
6007
  }),
5997
- c && v && /* @__PURE__ */ M(Kr, {
6008
+ c && v && /* @__PURE__ */ M(Jr, {
5998
6009
  cx: f(c.dot.x),
5999
6010
  cy: p(c.dot.y),
6000
6011
  paint: v.paint,
@@ -6007,8 +6018,8 @@ function Ns({ model: e, props: n, layout: r, formatY: i }) {
6007
6018
  }
6008
6019
  //#endregion
6009
6020
  //#region lib/components/ui/widgets/native-charts/core/scatter-tip.ts
6010
- var Ps = (e, t, n, r) => e.filter(([e, i]) => e >= t - 6 && e <= t + r.width + 6 && i >= n - 6 && i <= n + r.height + 6).length, Fs = (e, t, n, r) => Math.hypot(Math.max(t - e[0], 0, e[0] - (t + r.width)), Math.max(n - e[1], 0, e[1] - (n + r.height)));
6011
- function Is(e, t, n, r = {
6021
+ var Ls = (e, t, n, r) => e.filter(([e, i]) => e >= t - 6 && e <= t + r.width + 6 && i >= n - 6 && i <= n + r.height + 6).length, Rs = (e, t, n, r) => Math.hypot(Math.max(t - e[0], 0, e[0] - (t + r.width)), Math.max(n - e[1], 0, e[1] - (n + r.height)));
6022
+ function zs(e, t, n, r = {
6012
6023
  width: 220,
6013
6024
  height: 108
6014
6025
  }, i = 14) {
@@ -6024,7 +6035,7 @@ function Is(e, t, n, r = {
6024
6035
  let o = Math.max(4, e);
6025
6036
  if (!(o + r.height > n.height)) for (let e of ["right", "left"]) {
6026
6037
  let s = e === "right" ? a + i : a - i - r.width;
6027
- if (!(s < 0 || s + r.width > n.width) && Ps(t, s, o, r) === 0) return {
6038
+ if (!(s < 0 || s + r.width > n.width) && Ls(t, s, o, r) === 0) return {
6028
6039
  x: a,
6029
6040
  prefer: e,
6030
6041
  top: o
@@ -6033,7 +6044,7 @@ function Is(e, t, n, r = {
6033
6044
  }
6034
6045
  let c, l = Infinity, u = Math.max(4, n.height - r.height);
6035
6046
  for (let i = 0; i + r.width <= n.width; i += 16) for (let n = 4; n <= u; n += 12) {
6036
- let a = Ps(t, i, n, r) * 1e4 + Fs(e, i, n, r);
6047
+ let a = Ls(t, i, n, r) * 1e4 + Rs(e, i, n, r);
6037
6048
  a < l && ([c, l] = [{
6038
6049
  left: i,
6039
6050
  top: n
@@ -6051,15 +6062,15 @@ function Is(e, t, n, r = {
6051
6062
  }
6052
6063
  //#endregion
6053
6064
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-tip.tsx
6054
- function Ls({ model: e, layout: t, dot: n, tooltip: r }) {
6065
+ function Bs({ model: e, layout: t, dot: n, tooltip: r }) {
6055
6066
  if (r === !1) return null;
6056
6067
  let { size: i, names: a } = e, o = e.shown.find((e) => e.key === n.key);
6057
6068
  if (!o) return null;
6058
- let s = (e) => [t.m.left + t.x(e.x), t.m.top + t.y(e.y)], c = Is(s(n), e.dots.filter((e) => e !== n).map(s), {
6069
+ let s = (e) => [t.m.left + t.x(e.x), t.m.top + t.y(e.y)], c = zs(s(n), e.dots.filter((e) => e !== n).map(s), {
6059
6070
  width: i.width,
6060
6071
  height: t.m.top + t.ih
6061
6072
  }), l = e.toPoint(n);
6062
- return /* @__PURE__ */ M(Cr, {
6073
+ return /* @__PURE__ */ M(Tr, {
6063
6074
  mode: i.phone ? "sheet" : "float",
6064
6075
  x: c.x,
6065
6076
  top: c.top,
@@ -6097,7 +6108,7 @@ function Ls({ model: e, layout: t, dot: n, tooltip: r }) {
6097
6108
  })]
6098
6109
  }), n.label && /* @__PURE__ */ N("li", {
6099
6110
  className: "flex items-center gap-2",
6100
- children: [/* @__PURE__ */ M(Qn, {
6111
+ children: [/* @__PURE__ */ M(er, {
6101
6112
  paint: o.paint,
6102
6113
  variant: "bar"
6103
6114
  }), /* @__PURE__ */ M("span", {
@@ -6112,24 +6123,24 @@ function Ls({ model: e, layout: t, dot: n, tooltip: r }) {
6112
6123
  }
6113
6124
  //#endregion
6114
6125
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-plot.tsx
6115
- function Rs({ model: e, props: t }) {
6116
- let { dots: n, active: r } = e, { layout: i, formatY: a } = Os(e, t), { m: o, x: s, y: c } = i;
6126
+ function Vs({ model: e, props: t }) {
6127
+ let { dots: n, active: r } = e, { layout: i, formatY: a } = js(e, t), { m: o, x: s, y: c } = i;
6117
6128
  return /* @__PURE__ */ N(V, {
6118
6129
  kind: "scatter",
6119
6130
  title: t.title,
6120
6131
  status: e.status,
6121
6132
  onKeyDown: e.onKeyDown,
6122
- locate: (e, t) => Es(n, (e) => [o.left + s(e.x), o.top + c(e.y)], e, t),
6133
+ locate: (e, t) => ks(n, (e) => [o.left + s(e.x), o.top + c(e.y)], e, t),
6123
6134
  onPointer: (t) => e.pointTo(t),
6124
6135
  onActivate: () => {
6125
6136
  r && t.onPointClick?.(e.toPoint(r.dot));
6126
6137
  },
6127
- children: [/* @__PURE__ */ M(Ns, {
6138
+ children: [/* @__PURE__ */ M(Is, {
6128
6139
  model: e,
6129
6140
  props: t,
6130
6141
  layout: i,
6131
6142
  formatY: a
6132
- }), r && /* @__PURE__ */ M(Ls, {
6143
+ }), r && /* @__PURE__ */ M(Bs, {
6133
6144
  model: e,
6134
6145
  layout: i,
6135
6146
  dot: r.dot,
@@ -6139,7 +6150,7 @@ function Rs({ model: e, props: t }) {
6139
6150
  }
6140
6151
  //#endregion
6141
6152
  //#region lib/components/ui/widgets/native-charts/core/scatter-text.ts
6142
- function zs(e, t, n) {
6153
+ function Hs(e, t, n) {
6143
6154
  let r = e.find((e) => e.key === n.key);
6144
6155
  return {
6145
6156
  seriesKey: n.key,
@@ -6150,8 +6161,8 @@ function zs(e, t, n) {
6150
6161
  formatted: (r?.formatY ?? String)(n.y)
6151
6162
  };
6152
6163
  }
6153
- function Bs(e, t, n, r) {
6154
- let i = zs(t, n, r);
6164
+ function Us(e, t, n, r) {
6165
+ let i = Hs(t, n, r);
6155
6166
  return e("material.charts.status-scatter", "{label}, {series}: {xName} {x}, {yName} {y}", {
6156
6167
  label: i.label,
6157
6168
  series: i.seriesLabel,
@@ -6161,16 +6172,16 @@ function Bs(e, t, n, r) {
6161
6172
  y: i.formatted
6162
6173
  });
6163
6174
  }
6164
- var Vs = (e) => Number.isFinite(e.x) && Number.isFinite(e.y), Hs = (e) => e.length === 0 ? null : [Math.min(...e), Math.max(...e)];
6165
- function Us(e, t) {
6166
- let { shown: n, names: r } = t, i = n.flatMap((e) => e.points.filter(Vs)), a = I(e, "scatter"), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
6175
+ var Ws = (e) => Number.isFinite(e.x) && Number.isFinite(e.y), Gs = (e) => e.length === 0 ? null : [Math.min(...e), Math.max(...e)];
6176
+ function Ks(e, t) {
6177
+ let { shown: n, names: r } = t, i = n.flatMap((e) => e.points.filter(Ws)), a = I(e, "scatter"), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
6167
6178
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
6168
6179
  title: t.title
6169
6180
  }), e("material.charts.summary.scatter", "{points, plural, one {# point} other {# points}} in {series, plural, one {# series} other {# series}}.", {
6170
6181
  points: i.length,
6171
6182
  series: n.length
6172
6183
  })], s = (t, n, r) => {
6173
- let [i, a] = Hs(n) ?? [];
6184
+ let [i, a] = Gs(n) ?? [];
6174
6185
  i === void 0 || a === void 0 || o.push(e("material.charts.summary.scatter-range", "{axis} from {min} to {max}.", {
6175
6186
  axis: t,
6176
6187
  min: r(i),
@@ -6180,11 +6191,11 @@ function Us(e, t) {
6180
6191
  s(r.x, i.map((e) => e.x), r.formatX), s(r.y, i.map((e) => e.y), n[0]?.formatY ?? String);
6181
6192
  for (let t of n) o.push(e("material.charts.summary.scatter-series", "{series}: {count, plural, one {# point} other {# points}}.", {
6182
6193
  series: t.label,
6183
- count: t.points.filter(Vs).length
6194
+ count: t.points.filter(Ws).length
6184
6195
  }));
6185
6196
  return t.hidden.length > 0 && o.push(e("material.charts.summary.hidden", "Hidden: {series}.", { series: t.hidden.join(", ") })), o.join(" ");
6186
6197
  }
6187
- function Ws(e, t, n) {
6198
+ function qs(e, t, n) {
6188
6199
  return {
6189
6200
  corner: e("material.charts.table-point", "Point"),
6190
6201
  columns: [
@@ -6214,27 +6225,27 @@ function Ws(e, t, n) {
6214
6225
  }
6215
6226
  //#endregion
6216
6227
  //#region lib/components/ui/widgets/native-charts/core/scatter-nav.ts
6217
- var Gs = (e, t) => t !== null && e.key === t.key && e.i === t.i, Ks = (e) => e ? {
6228
+ var Js = (e, t) => t !== null && e.key === t.key && e.i === t.i, Ys = (e) => e ? {
6218
6229
  key: e.key,
6219
6230
  i: e.i
6220
6231
  } : null;
6221
- function qs(e, t) {
6222
- return e.findIndex((e) => Gs(e, t));
6232
+ function Xs(e, t) {
6233
+ return e.findIndex((e) => Js(e, t));
6223
6234
  }
6224
- function Js(e, t, n) {
6235
+ function Zs(e, t, n) {
6225
6236
  let r;
6226
6237
  for (let i of e) i.position === n && (!r || Math.abs(i.x - t.x) < Math.abs(r.x - t.x) || i.x === t.x && Math.abs(i.y - t.y) < Math.abs(r.y - t.y)) && (r = i);
6227
6238
  return r;
6228
6239
  }
6229
- function Ys(e, t, n) {
6240
+ function Qs(e, t, n) {
6230
6241
  let r = {
6231
6242
  active: e,
6232
6243
  handled: !1,
6233
6244
  activate: !1
6234
6245
  };
6235
6246
  if (n.length === 0) return r;
6236
- let i = qs(n, e), a = (e) => ({
6237
- active: Ks(n[Math.min(n.length - 1, Math.max(0, e))]),
6247
+ let i = Xs(n, e), a = (e) => ({
6248
+ active: Ys(n[Math.min(n.length - 1, Math.max(0, e))]),
6238
6249
  handled: !0,
6239
6250
  activate: !1
6240
6251
  });
@@ -6249,7 +6260,7 @@ function Ys(e, t, n) {
6249
6260
  if (!e) return a(0);
6250
6261
  let r = [...new Set(n.map((e) => e.position))].sort((e, t) => e - t), o = r.indexOf(e.position) + (t === "ArrowDown" ? 1 : -1), s = r[Math.min(r.length - 1, Math.max(0, o))];
6251
6262
  return {
6252
- active: Ks(s === void 0 ? e : Js(n, e, s)),
6263
+ active: Ys(s === void 0 ? e : Zs(n, e, s)),
6253
6264
  handled: !0,
6254
6265
  activate: !1
6255
6266
  };
@@ -6270,8 +6281,8 @@ function Ys(e, t, n) {
6270
6281
  }
6271
6282
  //#endregion
6272
6283
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-active.ts
6273
- function Xs(e, t, n) {
6274
- let [r, i] = A(null), [a, o] = A("key"), s = qs(e, r), c = e[s];
6284
+ function $s(e, t, n) {
6285
+ let [r, i] = A(null), [a, o] = A("key"), s = Xs(e, r), c = e[s];
6275
6286
  return {
6276
6287
  active: c ? {
6277
6288
  dot: c,
@@ -6279,10 +6290,10 @@ function Xs(e, t, n) {
6279
6290
  } : null,
6280
6291
  source: a,
6281
6292
  onKeyDown: (a) => {
6282
- let s = Ys(r, a.key, e);
6293
+ let s = Qs(r, a.key, e);
6283
6294
  if (!s.handled) return;
6284
6295
  a.preventDefault(), i(s.active), o("key");
6285
- let c = e[qs(e, s.active)];
6296
+ let c = e[Xs(e, s.active)];
6286
6297
  s.activate && c && n?.(t(c));
6287
6298
  },
6288
6299
  pointTo: (t) => {
@@ -6296,8 +6307,8 @@ function Xs(e, t, n) {
6296
6307
  }
6297
6308
  //#endregion
6298
6309
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.ts
6299
- function Zs(e) {
6300
- let { series: t, xAxis: n, yAxis: r, title: a } = e, { t: o, language: s } = i(), c = O(() => Te(t), [t]), l = O(() => c.map((e) => e.key), [c]), u = mn({
6310
+ function ec(e) {
6311
+ let { series: t, xAxis: n, yAxis: r, title: a } = e, { t: o, language: s } = i(), c = O(() => Te(t), [t]), l = O(() => c.map((e) => e.key), [c]), u = gn({
6301
6312
  keys: l,
6302
6313
  hidden: e.hidden,
6303
6314
  defaultHidden: e.defaultHidden,
@@ -6311,7 +6322,7 @@ function Zs(e) {
6311
6322
  paint: P(e),
6312
6323
  points: t[e.position]?.points ?? [],
6313
6324
  formatY: Ae(e, r, s)
6314
- })), m = Ss(p), h = (e) => zs(p, f, e), g = Xs(m, h, e.onPointClick), _ = g.active?.dot, v = Us(o, {
6325
+ })), m = Ts(p), h = (e) => Hs(p, f, e), g = $s(m, h, e.onPointClick), _ = g.active?.dot, v = Ks(o, {
6315
6326
  title: a,
6316
6327
  shown: p,
6317
6328
  names: f,
@@ -6328,14 +6339,14 @@ function Zs(e) {
6328
6339
  pointTo: g.pointTo,
6329
6340
  toPoint: h,
6330
6341
  summary: L(e.summary, v),
6331
- status: _ && g.source === "key" ? Bs(o, p, f, _) : null,
6342
+ status: _ && g.source === "key" ? Us(o, p, f, _) : null,
6332
6343
  legendItems: c.map((e) => ({
6333
6344
  key: e.key,
6334
6345
  label: e.label,
6335
6346
  paint: P(e),
6336
6347
  shape: e.shape
6337
6348
  })),
6338
- table: e.dataTable === !1 ? null : Ws(o, p, f),
6349
+ table: e.dataTable === !1 ? null : qs(o, p, f),
6339
6350
  tableCaption: o("material.charts.table-caption", "{title}: the data", { title: a }),
6340
6351
  motionKey: `${t.length}:${l.join(",")}`,
6341
6352
  empty: !t.some((e) => e.points.length > 0)
@@ -6343,16 +6354,16 @@ function Zs(e) {
6343
6354
  }
6344
6355
  //#endregion
6345
6356
  //#region lib/components/ui/widgets/native-charts/scatter-chart/scatter-chart.tsx
6346
- function Qs(e) {
6347
- let t = Zs(e);
6357
+ function tc(e) {
6358
+ let t = ec(e);
6348
6359
  return /* @__PURE__ */ M(z, {
6349
6360
  model: t,
6350
6361
  props: e,
6351
- children: /* @__PURE__ */ M(Rs, {
6362
+ children: /* @__PURE__ */ M(Vs, {
6352
6363
  model: t,
6353
6364
  props: e
6354
6365
  })
6355
6366
  });
6356
6367
  }
6357
6368
  //#endregion
6358
- export { oi as AreaChart, vi as BarChart, Gi as ComboChart, ko as DonutChart, Ea as FunnelChart, Ka as Gauge, vo as HeatmapChart, yo as LineChart, Ao as PieChart, as as RadarChart, bs as RadialBarChart, Qs as ScatterChart };
6369
+ export { li as AreaChart, xi as BarChart, Ji as ComboChart, Mo as DonutChart, ka as FunnelChart, Ya as Gauge, xo as HeatmapChart, So as LineChart, No as PieChart, cs as RadarChart, Cs as RadialBarChart, tc as ScatterChart };