@nxgt/material 3.103.0 → 3.104.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 (133) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +5 -3
  3. package/dist/{alert-dialog-NFyAiSqc.js → alert-dialog-CK_47jfm.js} +1 -1
  4. package/dist/{async-slice-D35bX79S.js → async-slice-1ZNMiwyJ.js} +1 -1
  5. package/dist/{button-Be7GZzF9.js → button-YfEMZbRO.js} +1 -1
  6. package/dist/{calculator-BGy1Q7rn.js → calculator-BmYZId4c.js} +11 -11
  7. package/dist/calculator-field.js +6 -6
  8. package/dist/{calculator-segment-uixk6lBg.js → calculator-segment-DJ08DJ-n.js} +1 -1
  9. package/dist/calculator.js +1 -1
  10. package/dist/charts.js +819 -764
  11. package/dist/{chip-3rWebZEM.js → chip-DPj6e-3v.js} +2 -2
  12. package/dist/{code-editor-BqSVMfy-.js → code-editor-CZg3nLZO.js} +4 -4
  13. package/dist/code-editor.js +4 -4
  14. package/dist/{code-language-items-Cf2LJVg2.js → code-language-items-Nq1iOGId.js} +2 -2
  15. package/dist/components/ui/display/chip/chip-soft.css +27 -2
  16. package/dist/components/ui/primitives/collapsible/collapsible.css +9 -0
  17. package/dist/{components-D2liJ9Yu.js → components-B2wrH_W0.js} +16884 -16603
  18. package/dist/components.js +38 -38
  19. package/dist/{conversion-variant-clFZ6ZMJ.js → conversion-variant-C-LPx5ek.js} +4 -4
  20. package/dist/{currency-field-CBFEVNM1.js → currency-field-DnsRIA80.js} +4 -4
  21. package/dist/{dialog-CrIIINTk.js → dialog-BKBsDGFc.js} +3 -3
  22. package/dist/dnd.js +1 -1
  23. package/dist/{dropdown-menu-BnfLWu8n.js → dropdown-menu-QMDbRidH.js} +1 -1
  24. package/dist/editor.js +8 -8
  25. package/dist/{empty-state-CuUaCPY7.js → empty-state-BLIJ6znY.js} +1 -1
  26. package/dist/{financial-variant-BY_VCUuk.js → financial-variant-Ws0Jp01H.js} +5 -5
  27. package/dist/{hooks-hHoZbL-4.js → hooks-C3vkQmzh.js} +2 -2
  28. package/dist/hooks.js +2 -2
  29. package/dist/{hover-card-Do2-uzlF.js → hover-card-Df649U6I.js} +1 -1
  30. package/dist/i18n.js +3 -3
  31. package/dist/{icon-badge-CHaVNEmb.js → icon-badge-Cma1qOOJ.js} +1 -1
  32. package/dist/{icon-button-BIAubLeJ.js → icon-button-CpKxV264.js} +1 -1
  33. package/dist/keypad.js +3 -3
  34. package/dist/lib/components/ui/actions/index.d.ts +1 -0
  35. package/dist/lib/components/ui/actions/product-tile/index.d.ts +1 -0
  36. package/dist/lib/components/ui/actions/product-tile/product-tile-link.d.ts +16 -0
  37. package/dist/lib/components/ui/actions/product-tile/product-tile.d.ts +41 -0
  38. package/dist/lib/components/ui/collections/data-table/data-table-density.d.ts +1 -1
  39. package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.d.ts +4 -1
  40. package/dist/lib/components/ui/collections/data-table/partials/layouts/data-table-list-bar.d.ts +6 -3
  41. package/dist/lib/components/ui/collections/data-table/partials/layouts/list-bar-in-row.d.ts +2 -1
  42. package/dist/lib/components/ui/collections/data-table/types.d.ts +11 -8
  43. package/dist/lib/components/ui/collections/data-table/virtual-option.d.ts +9 -3
  44. package/dist/lib/components/ui/collections/filter/use-filter-field-config.d.ts +2 -0
  45. package/dist/lib/components/ui/collections/server-table/partials/server-table-passed-through.d.ts +1 -0
  46. package/dist/lib/components/ui/collections/server-table/types.d.ts +1 -1
  47. package/dist/lib/components/ui/display/chip/chip.variants.d.ts +5 -4
  48. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  49. package/dist/lib/components/ui/fields/index.d.ts +1 -0
  50. package/dist/lib/components/ui/fields/quantity-field/types.d.ts +1 -1
  51. package/dist/lib/components/ui/fields/quantity-stepper/index.d.ts +2 -0
  52. package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-model.d.ts +9 -0
  53. package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper-value.d.ts +15 -0
  54. package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.d.ts +9 -0
  55. package/dist/lib/components/ui/fields/quantity-stepper/quantity-stepper.types.d.ts +35 -0
  56. package/dist/lib/components/ui/fields/quantity-stepper/use-quantity-stepper.d.ts +28 -0
  57. package/dist/lib/components/ui/layout/pane-layout/pane-layout.d.ts +8 -3
  58. package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-classes.d.ts +2 -2
  59. package/dist/lib/components/ui/layout/pane-layout/partials/pane-layout-context.d.ts +9 -0
  60. package/dist/lib/components/ui/layout/pane-layout/partials/use-pane-layout-state.d.ts +7 -2
  61. package/dist/lib/components/ui/layout/panel-card/panel-card.d.ts +3 -1
  62. package/dist/lib/components/ui/primitives/collapsible/collapsible.d.ts +9 -1
  63. package/dist/lib/components/ui/primitives/tabs/partials/tabs-list.d.ts +6 -1
  64. package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +1 -0
  65. package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.d.ts +8 -0
  66. package/dist/lib/components/ui/selection/chip-group-field/chip-group-field.types.d.ts +6 -0
  67. package/dist/lib/components/ui/selection/chip-group-field/partials/chip-group-reasons.d.ts +10 -0
  68. package/dist/lib/components/ui/selection/chip-group-field/partials/use-chip-rail.d.ts +12 -0
  69. package/dist/lib/components/ui/selection/choice-group/choice-group-root.d.ts +5 -2
  70. package/dist/lib/components/ui/widgets/native-charts/core/label-placement.d.ts +25 -0
  71. package/dist/lib/components/ui/widgets/native-charts/core/reference-geometry.d.ts +3 -2
  72. package/dist/lib/i18n/resources/en/en.d.ts +3 -0
  73. package/dist/lib/i18n/resources/en/material.json.d.ts +4 -1
  74. package/dist/lib/i18n/resources/fr/fr.d.ts +3 -0
  75. package/dist/lib/i18n/resources/fr/material.json.d.ts +4 -1
  76. package/dist/lib/i18n/resources/resources.d.ts +6 -0
  77. package/dist/lib/i18n/translator.d.ts +1 -1
  78. package/dist/lib/print/output/csv.d.ts +37 -0
  79. package/dist/lib/print/output/index.d.ts +1 -0
  80. package/dist/lib.js +1 -1
  81. package/dist/main.js +54 -54
  82. package/dist/map.js +8 -8
  83. package/dist/material.css +1 -1
  84. package/dist/pdf-reader.js +1 -1
  85. package/dist/{percent-field-DU8eIMD3.js → percent-field-sAq7BaxN.js} +2 -2
  86. package/dist/{picker-surface-XmA--JVI.js → picker-surface--6E-nvpU.js} +4 -4
  87. package/dist/{popover-D8iHiAbl.js → popover-bEB8I_-w.js} +1 -1
  88. package/dist/{pos-types-BEAY27Rm.js → pos-types-Cpdc4E33.js} +1 -1
  89. package/dist/{pos-variant-ClGI92Lt.js → pos-variant-ClMGu59I.js} +5 -5
  90. package/dist/print.js +146 -127
  91. package/dist/{programmer-variant-Boq2O8hB.js → programmer-variant-ChzgyA7x.js} +2 -2
  92. package/dist/{public-DOrXKmcL.js → public-BY8N5NDT.js} +9 -9
  93. package/dist/{rich-code-block-Djj2XE_u.js → rich-code-block-D2GiWuqD.js} +5 -5
  94. package/dist/{scientific-variant-BzF_aMQP.js → scientific-variant-31_93gcZ.js} +2 -2
  95. package/dist/{sortable-provider-DCZjsIIH.js → sortable-provider-DGiVn72t.js} +2 -2
  96. package/dist/{spinner-Cg0y_E_K.js → spinner-CEVomQ5K.js} +1 -1
  97. package/dist/{tabs-DpessV5s.js → tabs-B8MXBbPW.js} +14 -14
  98. package/dist/{text-field-Dxk9lAKM.js → text-field-DN88qD0Q.js} +1 -1
  99. package/dist/theme-picker.js +2 -2
  100. package/dist/{theme-toggle-B6Jl5Kfn.js → theme-toggle-C7pnu1Xh.js} +1 -1
  101. package/dist/{toolbar-items-Cs1XrZsH.js → toolbar-items-BDfoh8QB.js} +4 -4
  102. package/dist/{translate-material-Du0j0t97.js → translate-material-s_lxIV43.js} +1 -1
  103. package/dist/{translator-BVs4n0Fz.js → translator-Cgql9srO.js} +4 -2
  104. package/dist/{use-calculator-keyboard-BZ1CA4Ut.js → use-calculator-keyboard-DysnFK8m.js} +1 -1
  105. package/dist/{use-chat-composer-B4m3OEm1.js → use-chat-composer-xCcp9fVc.js} +2050 -1996
  106. package/dist/{use-heading-spy-CO3_AtY9.js → use-heading-spy-FIZlf9qj.js} +4 -4
  107. package/dist/{use-material-translation-uNc1FyC8.js → use-material-translation-xNzbSVgS.js} +1 -1
  108. package/dist/{use-return-focus-AfLRrUm-.js → use-return-focus-CW9KkDkp.js} +1 -1
  109. package/docs/README.md +1 -1
  110. package/docs/components/README.md +1 -0
  111. package/docs/components/buttons-and-actions.md +47 -0
  112. package/docs/components/data-display.md +2 -2
  113. package/docs/components/data-table-filter-and-lists.md +19 -6
  114. package/docs/components/form-fields.md +60 -7
  115. package/docs/components/navigation-and-layout.md +20 -2
  116. package/docs/components/primitives.md +44 -2
  117. package/docs/components/selection-and-choice.md +56 -1
  118. package/docs/guides/cards-and-tiles.md +10 -0
  119. package/docs/guides/csp.md +4 -3
  120. package/docs/guides/data-grid.md +5 -4
  121. package/docs/guides/field-look-refined.md +2 -2
  122. package/docs/guides/keypad.md +9 -1
  123. package/docs/guides/printing.md +51 -1
  124. package/docs/previews/buttons-actions-producttile.webp +0 -0
  125. package/docs/previews/form-fields-quantitystepper.webp +0 -0
  126. package/docs/previews/navigation-layout-panelcard.webp +0 -0
  127. package/docs/roadmap.md +10 -10
  128. package/docs/troubleshooting.md +5 -4
  129. package/lib/components/ui/display/chip/chip-soft.css +27 -2
  130. package/lib/components/ui/primitives/collapsible/collapsible.css +9 -0
  131. package/lib/components/ui/widgets/calculator/calculator-keys.css +3 -0
  132. package/lib/components/ui/widgets/calculator/calculator.css +38 -7
  133. package/package.json +1 -1
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-Be7GZzF9.js";
5
- import { t as i } from "./use-material-translation-uNc1FyC8.js";
4
+ import { t as r } from "./button-YfEMZbRO.js";
5
+ import { t as i } from "./use-material-translation-xNzbSVgS.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-3rWebZEM.js";
9
+ import { t as d } from "./chip-DPj6e-3v.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,17 +500,12 @@ 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, t, n, r) {
504
- return e.flatMap((e, i) => e !== null && t(i) >= n - 8 && t(i) <= r + 8 ? [e] : []);
503
+ var Et = 8;
504
+ function Dt(e, t = [], n = Infinity) {
505
+ let r = e - 5, i = e + 15, a = n - 2, o = (e) => e >= 9 && e <= a, s = r < 9 ? i : r, c = s === r ? i : r, l = (e) => t.some((t) => t >= e - 9 - Et && t <= e + 2 + Et), u = [s, c].find((e) => o(e) && !l(e));
506
+ return u === void 0 ? [s, c].find(o) ?? Math.max(9, Math.min(a, s)) : u;
505
507
  }
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) {
508
+ function Ot(e, t) {
514
509
  let n = 0, r = 0;
515
510
  return e.forEach((e, i) => {
516
511
  if (typeof e != "number" || !Number.isFinite(e)) return;
@@ -521,9 +516,9 @@ function kt(e, t) {
521
516
  total: r
522
517
  };
523
518
  }
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);
519
+ var kt = /[֐-ࣿיִ-﷿ﹰ-]/;
520
+ function At(e, t) {
521
+ let n = Array.from(e).find((e) => /\p{L}/u.test(e)), r = n !== void 0 && kt.test(n);
527
522
  return {
528
523
  direction: r ? "rtl" : "ltr",
529
524
  textAnchor: t === "left" === r ? "end" : "start"
@@ -531,14 +526,14 @@ function jt(e, t) {
531
526
  }
532
527
  //#endregion
533
528
  //#region lib/components/ui/widgets/native-charts/core/reference-text.ts
534
- function Mt(e, t, n) {
529
+ function jt(e, t, n) {
535
530
  let r = t[n.first] ?? String(n.first + 1), i = t[n.last] ?? String(n.last + 1);
536
531
  return r === i || n.first === n.last ? r : e("material.charts.reference.span", "{first} to {last}", {
537
532
  first: r,
538
533
  last: i
539
534
  });
540
535
  }
541
- function Nt(e, t) {
536
+ function Mt(e, t) {
542
537
  let { format: n } = t, r = t.labels ?? [], i = r.length;
543
538
  return [...t.bands.map((t) => t.ranges ? e("material.charts.reference.steps", "{label}: {list}", {
544
539
  label: t.label,
@@ -547,7 +542,7 @@ function Nt(e, t) {
547
542
  from: n(t.value.from),
548
543
  to: n(t.value.to)
549
544
  }),
550
- where: Mt(e, r, t)
545
+ where: jt(e, r, t)
551
546
  })).join(", ")
552
547
  }) : e("material.charts.reference.band", "{label}: {from} to {to}", {
553
548
  label: t.label,
@@ -557,21 +552,21 @@ function Nt(e, t) {
557
552
  label: t.label,
558
553
  list: bt(t, i).map((t) => e("material.charts.reference.step", "{value} ({where})", {
559
554
  value: n(t.value),
560
- where: Mt(e, r, t)
555
+ where: jt(e, r, t)
561
556
  })).join(", ")
562
557
  }) : e("material.charts.reference.threshold", "{label}: {value}", {
563
558
  label: t.label,
564
559
  value: n(t.value)
565
560
  }))];
566
561
  }
567
- function Pt(e, t) {
562
+ function Nt(e, t) {
568
563
  let { bands: n, thresholds: r, series: i, format: a, labels: o } = t, s = [];
569
- n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list: Nt(e, {
564
+ n.length > 0 && s.push(e("material.charts.summary.bands", "Reference ranges: {list}.", { list: Mt(e, {
570
565
  bands: n,
571
566
  thresholds: [],
572
567
  format: a,
573
568
  labels: o
574
- }).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list: Nt(e, {
569
+ }).join(", ") })), r.length > 0 && s.push(e("material.charts.summary.thresholds", "Thresholds: {list}.", { list: Mt(e, {
575
570
  bands: [],
576
571
  thresholds: r,
577
572
  format: a,
@@ -579,7 +574,7 @@ function Pt(e, t) {
579
574
  }).join(", ") }));
580
575
  for (let t of i) {
581
576
  for (let r of n) {
582
- let { outside: n, total: i } = kt(t.values, r);
577
+ let { outside: n, total: i } = Ot(t.values, r);
583
578
  n !== 0 && s.push(e("material.charts.summary.outside", "{series}: {count} of {total, plural, one {# point} other {# points}} outside {band}.", {
584
579
  series: t.label,
585
580
  count: n,
@@ -601,16 +596,16 @@ function Pt(e, t) {
601
596
  }
602
597
  //#endregion
603
598
  //#region lib/components/ui/widgets/native-charts/hooks/use-model-parts.ts
604
- function Ft(e, t, n) {
599
+ function Pt(e, t, n) {
605
600
  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(() => {
606
601
  let e = _ ?? F(a);
607
602
  return {
608
- table: Nt(r, {
603
+ table: Mt(r, {
609
604
  ...g,
610
605
  format: e,
611
606
  labels: p
612
607
  }),
613
- summary: Pt(r, {
608
+ summary: Nt(r, {
614
609
  ...g,
615
610
  format: e,
616
611
  labels: p,
@@ -671,17 +666,17 @@ function Ft(e, t, n) {
671
666
  }
672
667
  //#endregion
673
668
  //#region lib/components/ui/widgets/native-charts/core/reference.ts
674
- var It = (e) => typeof e == "number" && Number.isFinite(e);
675
- function Lt(e, t, n) {
669
+ var Ft = (e) => typeof e == "number" && Number.isFinite(e);
670
+ function It(e, t, n) {
676
671
  let r = typeof e == "function" ? e(t, n) : typeof e == "string" ? t?.[e] : e;
677
- return It(r) ? r : null;
672
+ return Ft(r) ? r : null;
678
673
  }
679
- function Rt(e, t = []) {
674
+ function Lt(e, t = []) {
680
675
  let n = [];
681
676
  for (let r of e ?? []) {
682
677
  let { from: e, to: i, ...a } = r;
683
678
  if (typeof e == "number" && typeof i == "number") {
684
- if (!It(e) || !It(i)) continue;
679
+ if (!Ft(e) || !Ft(i)) continue;
685
680
  n.push(e <= i ? {
686
681
  ...a,
687
682
  from: e,
@@ -694,7 +689,7 @@ function Rt(e, t = []) {
694
689
  continue;
695
690
  }
696
691
  let o = t.map((t, n) => {
697
- let r = Lt(e, t, n), a = Lt(i, t, n);
692
+ let r = It(e, t, n), a = It(i, t, n);
698
693
  return r === null || a === null ? null : r <= a ? {
699
694
  from: r,
700
695
  to: a
@@ -717,18 +712,18 @@ function Rt(e, t = []) {
717
712
  }
718
713
  return n;
719
714
  }
720
- function zt(e, t = []) {
715
+ function Rt(e, t = []) {
721
716
  let n = [];
722
717
  for (let r of e ?? []) {
723
718
  let { value: e, ...i } = r;
724
719
  if (typeof e == "number") {
725
- It(e) && n.push({
720
+ Ft(e) && n.push({
726
721
  ...i,
727
722
  value: e
728
723
  });
729
724
  continue;
730
725
  }
731
- let a = t.map((t, n) => Lt(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
726
+ let a = t.map((t, n) => It(e, t, n)), o = a.filter((e) => e !== null), s = o[0];
732
727
  if (s === void 0) continue;
733
728
  let c = o.length === a.length && o.every((e) => e === s);
734
729
  n.push(c ? {
@@ -742,12 +737,12 @@ function zt(e, t = []) {
742
737
  }
743
738
  return n;
744
739
  }
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
+ function zt(e, t) {
741
+ return [...e.flatMap((e) => [e.from, e.to]), ...t.flatMap((e) => e.values ? e.values.filter(Ft) : [e.value])];
747
742
  }
748
743
  //#endregion
749
744
  //#region lib/components/ui/widgets/native-charts/hooks/model-series.ts
750
- function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
745
+ function Bt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
751
746
  let o = e.filter((e) => !t.includes(e.key)).map((e) => {
752
747
  let t = r?.(e);
753
748
  return {
@@ -766,7 +761,7 @@ function Vt({ series: e, hidden: t, data: n, axes: r, yAxis: i, language: a }) {
766
761
  }
767
762
  //#endregion
768
763
  //#region lib/components/ui/widgets/native-charts/hooks/model-tones.ts
769
- function Ht(e, t) {
764
+ function Vt(e, t) {
770
765
  let { shown: n, labels: r, data: i, offset: a, pointTone: o, words: s } = t;
771
766
  return n.map((t) => {
772
767
  let c = t.values.map((c, l) => {
@@ -788,15 +783,15 @@ function Ht(e, t) {
788
783
  }
789
784
  //#endregion
790
785
  //#region lib/components/ui/widgets/native-charts/hooks/use-model-shown.ts
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
+ function Ht({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offset: s, reference: c }) {
787
+ let { t: l, language: u } = i(), d = O(() => Lt(c?.bands, n), [c?.bands, n]), f = O(() => Rt(c?.thresholds, n), [c?.thresholds, n]), p = O(() => ({
793
788
  bands: d,
794
789
  thresholds: f
795
790
  }), [d, f]), m = c?.pointTone, h = c?.toneLabels;
796
791
  return {
797
792
  refs: p,
798
793
  shown: O(() => {
799
- let i = Vt({
794
+ let i = Bt({
800
795
  series: e,
801
796
  hidden: t,
802
797
  data: n,
@@ -804,7 +799,7 @@ function Ut({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offse
804
799
  yAxis: a,
805
800
  language: u
806
801
  });
807
- return m ? Ht(l, {
802
+ return m ? Vt(l, {
808
803
  shown: i,
809
804
  labels: o,
810
805
  data: n,
@@ -827,90 +822,90 @@ function Ut({ series: e, hidden: t, data: n, axes: r, yAxis: a, labels: o, offse
827
822
  ])
828
823
  };
829
824
  }
830
- var Wt = (e) => Math.min(2, Math.max(1, e));
831
- function Gt(e) {
825
+ var Ut = (e) => Math.min(2, Math.max(1, e));
826
+ function Wt(e) {
832
827
  return [0, Math.max(0, e - 1)];
833
828
  }
834
- function Kt(e, t) {
835
- let [n, r] = Gt(t);
829
+ function Gt(e, t) {
830
+ let [n, r] = Wt(t);
836
831
  return e[0] <= n && e[1] >= r;
837
832
  }
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
+ function Kt(e, t) {
834
+ let n = Math.max(0, t - 1), r = Ut(t) - 1, i = Math.min(n, Math.max(0, Math.round(e[0]))), a = Math.min(n, Math.max(0, Math.round(e[1])));
840
835
  return a < i && ([i, a] = [a, i]), a - i < r && (a = Math.min(n, i + r), i = Math.max(0, a - r)), [i, a];
841
836
  }
842
- function Jt(e, t, n) {
843
- let r = Wt(n) - 1;
837
+ function qt(e, t, n) {
838
+ let r = Ut(n) - 1;
844
839
  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)];
845
840
  }
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
+ function Jt(e, t, n, r) {
842
+ let [i, a] = qt(t, e, r), o = Math.min(a, Math.max(i, Math.round(n)));
848
843
  return t === "start" ? [o, e[1]] : [e[0], o];
849
844
  }
850
- function Xt(e, t, n) {
845
+ function Yt(e, t, n) {
851
846
  let r = e[1] - e[0], i = Math.min(Math.max(0, n - 1 - r), Math.max(0, Math.round(e[0] + t)));
852
847
  return [i, i + r];
853
848
  }
854
- function Zt(e) {
849
+ function Xt(e) {
855
850
  return Math.max(1, Math.round(e * .1));
856
851
  }
857
- function Qt(e, t) {
852
+ function Zt(e, t) {
858
853
  switch (e) {
859
854
  case "ArrowRight":
860
855
  case "ArrowUp": return { by: 1 };
861
856
  case "ArrowLeft":
862
857
  case "ArrowDown": return { by: -1 };
863
- case "PageUp": return { by: Zt(t) };
864
- case "PageDown": return { by: -Zt(t) };
858
+ case "PageUp": return { by: Xt(t) };
859
+ case "PageDown": return { by: -Xt(t) };
865
860
  case "Home": return { to: "min" };
866
861
  case "End": return { to: "max" };
867
862
  default: return null;
868
863
  }
869
864
  }
870
- function $t(e, t, n, r) {
871
- let i = Qt(n, r);
865
+ function Qt(e, t, n, r) {
866
+ let i = Zt(n, r);
872
867
  if (!i) return null;
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
+ let [a, o] = qt(t, e, r), s = t === "start" ? e[0] : e[1];
869
+ return Jt(e, t, "by" in i ? s + i.by : i.to === "min" ? a : o, r);
875
870
  }
876
- function en(e, t, n) {
877
- let r = Qt(t, n);
871
+ function $t(e, t, n) {
872
+ let r = Zt(t, n);
878
873
  if (!r) return null;
879
874
  let i = n - 1 - (e[1] - e[0]);
880
- return "by" in r ? Xt(e, r.by, n) : Xt(e, r.to === "min" ? -e[0] : i, n);
875
+ return "by" in r ? Yt(e, r.by, n) : Yt(e, r.to === "min" ? -e[0] : i, n);
881
876
  }
882
- function tn(e, t) {
877
+ function en(e, t) {
883
878
  return e.slice(t[0], t[1] + 1);
884
879
  }
885
- function nn(e, t, n, r) {
880
+ function tn(e, t, n, r) {
886
881
  return t <= 1 ? r : r + e * (n - 2 * r) / (t - 1);
887
882
  }
888
883
  //#endregion
889
884
  //#region lib/components/ui/widgets/native-charts/core/nav.ts
890
- var rn = {
885
+ var nn = {
891
886
  index: null,
892
887
  series: 0
893
888
  };
894
- function an(e, t) {
889
+ function rn(e, t) {
895
890
  return t.includes(e) ? e : t[0] ?? 0;
896
891
  }
897
- function on(e, t, n) {
892
+ function an(e, t, n) {
898
893
  let r = t.indexOf(e);
899
894
  return r < 0 ? t[0] ?? e : t[Math.min(t.length - 1, Math.max(0, r + n))] ?? e;
900
895
  }
901
- function sn(e, t) {
896
+ function on(e, t) {
902
897
  return Math.min(t - 1, Math.max(0, e));
903
898
  }
904
- function cn(e, t, { count: n, visible: r }) {
899
+ function sn(e, t, { count: n, visible: r }) {
905
900
  let i = {
906
901
  state: e,
907
902
  handled: !1,
908
903
  activate: !1
909
904
  };
910
905
  if (n <= 0) return i;
911
- let a = an(e.series, r), o = e.index, s = (e, t = a) => ({
906
+ let a = rn(e.series, r), o = e.index, s = (e, t = a) => ({
912
907
  state: {
913
- index: sn(e, n),
908
+ index: on(e, n),
914
909
  series: t
915
910
  },
916
911
  handled: !0,
@@ -919,10 +914,10 @@ function cn(e, t, { count: n, visible: r }) {
919
914
  switch (t) {
920
915
  case "ArrowRight": return s(o === null ? 0 : o + 1);
921
916
  case "ArrowLeft": return s(o === null ? 0 : o - 1);
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));
917
+ case "ArrowDown": return s(o ?? 0, o === null ? a : an(a, r, 1));
918
+ case "ArrowUp": return s(o ?? 0, o === null ? a : an(a, r, -1));
919
+ case "PageUp": return s(o === null ? 0 : o + Xt(n));
920
+ case "PageDown": return s(o === null ? 0 : o - Xt(n));
926
921
  case "Home": return s(0);
927
922
  case "End": return s(n - 1);
928
923
  case "Enter":
@@ -947,13 +942,13 @@ function cn(e, t, { count: n, visible: r }) {
947
942
  }
948
943
  //#endregion
949
944
  //#region lib/components/ui/widgets/native-charts/hooks/use-point-nav.ts
950
- var ln = {
951
- ...rn,
945
+ var cn = {
946
+ ...nn,
952
947
  source: "key"
953
948
  };
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, {
949
+ function ln({ count: e, visible: t, onActivate: n, keyMap: r }) {
950
+ let [i, a] = A(cn), o = T((o) => {
951
+ let s = sn(i, r ? r(o.key) : o.key, {
957
952
  count: e,
958
953
  visible: t
959
954
  });
@@ -982,7 +977,7 @@ function un({ count: e, visible: t, onActivate: n, keyMap: r }) {
982
977
  source: "pointer"
983
978
  };
984
979
  });
985
- }, []), c = T(() => s(null), [s]), l = an(i.series, t);
980
+ }, []), c = T(() => s(null), [s]), l = rn(i.series, t);
986
981
  return {
987
982
  active: i.index === null || i.index >= e ? null : {
988
983
  index: i.index,
@@ -996,27 +991,27 @@ function un({ count: e, visible: t, onActivate: n, keyMap: r }) {
996
991
  }
997
992
  //#endregion
998
993
  //#region lib/components/ui/widgets/native-charts/core/visibility.ts
999
- function dn(e, t, n) {
994
+ function un(e, t, n) {
1000
995
  if (e.includes(t)) return e.filter((e) => e !== t);
1001
996
  let r = n.filter((t) => !e.includes(t));
1002
997
  return r.length <= 1 && r[0] === t ? [...e] : n.filter((n) => n === t || e.includes(n));
1003
998
  }
1004
- function fn(e, t, n) {
999
+ function dn(e, t, n) {
1005
1000
  let r = n.filter((t) => !e.includes(t));
1006
1001
  return r.length === 1 && r[0] === t && n.length > 1;
1007
1002
  }
1008
- function pn(e, t, n) {
1009
- return fn(e, t, n) ? [] : n.filter((e) => e !== t);
1003
+ function fn(e, t, n) {
1004
+ return dn(e, t, n) ? [] : n.filter((e) => e !== t);
1010
1005
  }
1011
- function mn(e, t, n) {
1006
+ function pn(e, t, n) {
1012
1007
  if (t < 3) return new Set(e);
1013
1008
  let r = n && e.includes(n) ? n : e[0];
1014
1009
  return new Set(r ? [r] : []);
1015
1010
  }
1016
- var hn = (e, t) => mn(e, e.length, t);
1011
+ var mn = (e, t) => pn(e, e.length, t);
1017
1012
  //#endregion
1018
1013
  //#region lib/components/ui/widgets/native-charts/hooks/use-series-visibility.ts
1019
- function gn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1014
+ function hn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1020
1015
  let [i, a] = A(n ?? []), o = t ?? i, s = O(() => {
1021
1016
  let t = e.filter((e) => o.includes(e));
1022
1017
  return t.length === e.length ? t.slice(1) : t;
@@ -1031,15 +1026,15 @@ function gn({ keys: e, hidden: t, defaultHidden: n, onHiddenChange: r }) {
1031
1026
  hidden: s,
1032
1027
  visible: O(() => e.filter((e) => !s.includes(e)), [e, s]),
1033
1028
  isHidden: (e) => s.includes(e),
1034
- toggle: (t) => c(dn(s, t, e)),
1035
- isolate: (t) => c(pn(s, t, e)),
1029
+ toggle: (t) => c(un(s, t, e)),
1030
+ isolate: (t) => c(fn(s, t, e)),
1036
1031
  showAll: () => c([])
1037
1032
  };
1038
1033
  }
1039
1034
  //#endregion
1040
1035
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-model.ts
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
+ function gn(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1037
+ 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 = hn({
1043
1038
  keys: h,
1044
1039
  hidden: e.hidden,
1045
1040
  defaultHidden: e.defaultHidden,
@@ -1049,7 +1044,7 @@ function _n(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1049
1044
  c,
1050
1045
  l,
1051
1046
  p
1052
- ]), y = a?.offset, { refs: b, shown: x } = Ut({
1047
+ ]), y = a?.offset, { refs: b, shown: x } = Ht({
1053
1048
  series: m,
1054
1049
  hidden: g.hidden,
1055
1050
  data: s,
@@ -1067,7 +1062,7 @@ function _n(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1067
1062
  v,
1068
1063
  s,
1069
1064
  y
1070
- ]), C = un({
1065
+ ]), C = ln({
1071
1066
  count: s.length,
1072
1067
  visible: O(() => x.map((e) => e.position), [x]),
1073
1068
  keyMap: n,
@@ -1077,7 +1072,7 @@ function _n(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1077
1072
  }
1078
1073
  }), w = C.active;
1079
1074
  return {
1080
- ...Ft(e, t, {
1075
+ ...Pt(e, t, {
1081
1076
  series: m,
1082
1077
  shown: x,
1083
1078
  labels: v,
@@ -1108,23 +1103,23 @@ function _n(e, t, { keyMap: n, axes: r, span: a, reference: o } = {}) {
1108
1103
  }
1109
1104
  };
1110
1105
  }
1111
- function vn(e, t) {
1106
+ function _n(e, t) {
1112
1107
  return e === !1 ? null : typeof e == "object" ? e.minPointWidth ?? 28 : e === !0 || t ? 28 : null;
1113
1108
  }
1114
- function yn(e, t, n) {
1109
+ function vn(e, t, n) {
1115
1110
  if (n === null || e <= 1) return t;
1116
1111
  let r = Math.ceil(e * n + 60);
1117
1112
  return r > t ? r : t;
1118
1113
  }
1119
- var bn = 20;
1120
- function xn({ x: e, content: t, frame: n, current: r, pinLeft: i = 0, pinRight: a = 0 }) {
1114
+ var yn = 20;
1115
+ function bn({ x: e, content: t, frame: n, current: r, pinLeft: i = 0, pinRight: a = 0 }) {
1121
1116
  if (t <= n) return 0;
1122
1117
  let o = r;
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));
1118
+ return e - yn < r + i ? o = e - yn - i : e + yn > r + n - a && (o = e + yn + a - n), Math.min(t - n, Math.max(0, o));
1124
1119
  }
1125
1120
  //#endregion
1126
1121
  //#region ../../node_modules/d3-shape/src/area.js
1127
- function Sn(e, t, n) {
1122
+ function xn(e, t, n) {
1128
1123
  var r = null, i = C(!0), a = null, o = ne, s = null, c = w(l);
1129
1124
  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);
1130
1125
  function l(l) {
@@ -1170,37 +1165,37 @@ function Sn(e, t, n) {
1170
1165
  }
1171
1166
  //#endregion
1172
1167
  //#region lib/components/ui/widgets/native-charts/core/lines.ts
1173
- function Cn(e = "smooth") {
1168
+ function Sn(e = "smooth") {
1174
1169
  return e === "linear" ? ne : e === "step" ? re : te;
1175
1170
  }
1176
- function wn(e) {
1171
+ function Cn(e) {
1177
1172
  let t = Math.max(0, ...e.map((e) => e.length)), n = Array.from({ length: t }, () => 0);
1178
1173
  return e.map((e) => ({
1179
1174
  y0: [...n],
1180
1175
  y1: e.map((e, t) => (n[t] = (n[t] ?? 0) + (e ?? 0), e === null ? null : n[t]))
1181
1176
  }));
1182
1177
  }
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
+ function wn({ y0: e, y1: t, x: n, y: r, curve: i }) {
1179
+ let a = t.map((e, t) => t), o = (e) => t[e] !== null && t[e] !== void 0, s = Sn(i);
1185
1180
  return {
1186
1181
  line: oe().defined(o).x(n).y((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) ?? ""
1182
+ area: xn().defined(o).x(n).y0((t) => r(e[t] ?? 0)).y1((e) => r(t[e])).curve(s)(a) ?? ""
1188
1183
  };
1189
1184
  }
1190
- function En(e) {
1185
+ function Tn(e) {
1191
1186
  let t = (t) => typeof e[t] == "number";
1192
1187
  return e.flatMap((e, n) => t(n) && !t(n - 1) && !t(n + 1) ? [n] : []);
1193
1188
  }
1194
- function Dn(e, t) {
1189
+ function En(e, t) {
1195
1190
  let n = null;
1196
1191
  return e.forEach((r, i) => {
1197
1192
  r !== null && (n === null || Math.abs(r - t) < Math.abs(e[n] - t)) && (n = i);
1198
1193
  }), n;
1199
1194
  }
1200
- function On(e, t) {
1195
+ function Dn(e, t) {
1201
1196
  return Math.max(t ? 32 : 40, Math.ceil(rt(e, 11.5)) + 16);
1202
1197
  }
1203
- function kn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1198
+ function On(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1204
1199
  let a = /* @__PURE__ */ new Map();
1205
1200
  for (let t of e) {
1206
1201
  let e = a.get(t.group) ?? [];
@@ -1209,10 +1204,10 @@ function kn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1209
1204
  }
1210
1205
  let o = n - 6;
1211
1206
  return e.map((e) => {
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({
1207
+ 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 } = wn({
1213
1208
  y1: e.values,
1214
1209
  y0: e.values.map(() => Math.max(s, 0)),
1215
- x: (e) => nn(e, u, t, r),
1210
+ x: (e) => tn(e, u, t, r),
1216
1211
  y: l,
1217
1212
  curve: i
1218
1213
  });
@@ -1225,14 +1220,14 @@ function kn(e, { width: t, height: n = 48, pad: r = 12, curve: i }) {
1225
1220
  }
1226
1221
  //#endregion
1227
1222
  //#region lib/components/ui/widgets/native-charts/hooks/use-overview-drag.ts
1228
- function An({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a }) {
1223
+ function kn({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a }) {
1229
1224
  let o = k(null), s = k(e), c = (e) => {
1230
1225
  let i = o.current;
1231
1226
  if (!i) return null;
1232
1227
  let a = Math.round((e.clientX - i.x) * r() / n);
1233
- if (i.part === "window") return Xt(i.range, a, t);
1228
+ if (i.part === "window") return Yt(i.range, a, t);
1234
1229
  let s = i.part === "start" ? i.range[0] : i.range[1];
1235
- return Yt(i.range, i.part, s + a, t);
1230
+ return Jt(i.range, i.part, s + a, t);
1236
1231
  };
1237
1232
  return (t) => ({
1238
1233
  onPointerDown: (n) => {
@@ -1268,9 +1263,9 @@ function An({ range: e, count: t, step: n, unit: r, onChange: i, onCommit: a })
1268
1263
  }
1269
1264
  //#endregion
1270
1265
  //#region lib/components/ui/widgets/native-charts/partials/range-handle.tsx
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];
1266
+ var An = 10, jn = 24, Mn = 28, Nn = Math.min(8, An / 3);
1267
+ function Pn({ which: e, x: t, zoom: n, drag: r }) {
1268
+ let { t: a } = i(), { range: o, count: s, labels: c } = n, [l, u] = qt(e, o, s), d = e === "start" ? o[0] : o[1];
1274
1269
  return /* @__PURE__ */ N("g", {
1275
1270
  role: "slider",
1276
1271
  tabIndex: 0,
@@ -1284,24 +1279,24 @@ function Fn({ which: e, x: t, zoom: n, drag: r }) {
1284
1279
  "data-slot": "chart-range-handle",
1285
1280
  "data-handle": e,
1286
1281
  onKeyDown: (t) => {
1287
- let r = $t(o, e, t.key, s);
1282
+ let r = Qt(o, e, t.key, s);
1288
1283
  r && (t.preventDefault(), n.set(r));
1289
1284
  },
1290
1285
  ...r,
1291
1286
  children: [
1292
1287
  /* @__PURE__ */ M("rect", {
1293
- x: t - Mn / 2,
1288
+ x: t - jn / 2,
1294
1289
  y: 0,
1295
- width: Mn,
1290
+ width: jn,
1296
1291
  height: 48,
1297
1292
  className: "nxgt-chart-handle-hit"
1298
1293
  }),
1299
1294
  /* @__PURE__ */ M("rect", {
1300
- x: t - jn / 2,
1301
- y: (48 - Nn) / 2,
1302
- width: jn,
1303
- height: Nn,
1304
- rx: Pn,
1295
+ x: t - An / 2,
1296
+ y: (48 - Mn) / 2,
1297
+ width: An,
1298
+ height: Mn,
1299
+ rx: Nn,
1305
1300
  className: "nxgt-chart-handle-grip"
1306
1301
  }),
1307
1302
  /* @__PURE__ */ M("path", {
@@ -1313,8 +1308,8 @@ function Fn({ which: e, x: t, zoom: n, drag: r }) {
1313
1308
  }
1314
1309
  //#endregion
1315
1310
  //#region lib/components/ui/widgets/native-charts/partials/overview-track.tsx
1316
- function In({ series: e, width: t, curve: n }) {
1317
- let r = O(() => kn(e, {
1311
+ function Fn({ series: e, width: t, curve: n }) {
1312
+ let r = O(() => On(e, {
1318
1313
  width: t,
1319
1314
  curve: n
1320
1315
  }), [
@@ -1334,7 +1329,7 @@ function In({ series: e, width: t, curve: n }) {
1334
1329
  })]
1335
1330
  }, e.key));
1336
1331
  }
1337
- function Ln({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1332
+ function In({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1338
1333
  let { t: o } = i(), { range: s, count: c, labels: l } = e;
1339
1334
  return /* @__PURE__ */ M("rect", {
1340
1335
  ref: a,
@@ -1357,14 +1352,14 @@ function Ln({ zoom: e, x0: t, x1: n, drag: r, windowRef: a }) {
1357
1352
  className: "nxgt-chart-window",
1358
1353
  "data-slot": "chart-range-window",
1359
1354
  onKeyDown: (t) => {
1360
- let n = en(s, t.key, c);
1355
+ let n = $t(s, t.key, c);
1361
1356
  n && (t.preventDefault(), e.set(n));
1362
1357
  },
1363
1358
  ...r
1364
1359
  });
1365
1360
  }
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
+ function Ln({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1362
+ let a = k(null), { range: o, count: s } = e, c = (e) => tn(e, s, n, 12), [l, u] = [c(o[0]), c(o[1])], d = kn({
1368
1363
  range: o,
1369
1364
  count: s,
1370
1365
  step: (n - 24) / Math.max(1, s - 1),
@@ -1380,7 +1375,7 @@ function Rn({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1380
1375
  className: "nxgt-chart-overview-svg",
1381
1376
  "data-slot": "chart-overview-track",
1382
1377
  children: [
1383
- /* @__PURE__ */ M(In, {
1378
+ /* @__PURE__ */ M(Fn, {
1384
1379
  series: t,
1385
1380
  width: n,
1386
1381
  curve: r
@@ -1399,20 +1394,20 @@ function Rn({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1399
1394
  height: 48,
1400
1395
  className: "nxgt-chart-overview-dim"
1401
1396
  }),
1402
- /* @__PURE__ */ M(Ln, {
1397
+ /* @__PURE__ */ M(In, {
1403
1398
  zoom: e,
1404
1399
  x0: l,
1405
1400
  x1: u,
1406
1401
  drag: d("window"),
1407
1402
  windowRef: i
1408
1403
  }),
1409
- /* @__PURE__ */ M(Fn, {
1404
+ /* @__PURE__ */ M(Pn, {
1410
1405
  which: "start",
1411
1406
  x: l,
1412
1407
  zoom: e,
1413
1408
  drag: d("start")
1414
1409
  }),
1415
- /* @__PURE__ */ M(Fn, {
1410
+ /* @__PURE__ */ M(Pn, {
1416
1411
  which: "end",
1417
1412
  x: u,
1418
1413
  zoom: e,
@@ -1423,7 +1418,7 @@ function Rn({ zoom: e, series: t, width: n, curve: r, windowRef: i }) {
1423
1418
  }
1424
1419
  //#endregion
1425
1420
  //#region lib/components/ui/widgets/native-charts/partials/chart-overview.tsx
1426
- function zn({ zoom: e, series: t, width: n, curve: a }) {
1421
+ function Rn({ zoom: e, series: t, width: n, curve: a }) {
1427
1422
  let { t: o } = i(), { range: s, labels: c } = e, l = k(null);
1428
1423
  return /* @__PURE__ */ N("div", {
1429
1424
  role: "group",
@@ -1451,7 +1446,7 @@ function zn({ zoom: e, series: t, width: n, curve: a }) {
1451
1446
  children: [/* @__PURE__ */ M(he, { "aria-hidden": !0 }), o("material.charts.zoom-reset", "Reset zoom")]
1452
1447
  })]
1453
1448
  }),
1454
- /* @__PURE__ */ M(Rn, {
1449
+ /* @__PURE__ */ M(Ln, {
1455
1450
  zoom: e,
1456
1451
  series: t,
1457
1452
  width: n || 320,
@@ -1467,7 +1462,7 @@ function zn({ zoom: e, series: t, width: n, curve: a }) {
1467
1462
  }
1468
1463
  //#endregion
1469
1464
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-view.tsx
1470
- function Bn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll: o = !0 }) {
1465
+ function zn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll: o = !0 }) {
1471
1466
  let [s, c] = t.range, { clear: l } = e.nav, { onShift: u } = t;
1472
1467
  pe(() => {
1473
1468
  u.current = l;
@@ -1476,7 +1471,7 @@ function Bn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1476
1471
  E(() => {
1477
1472
  f.current !== d && (f.current = d, l());
1478
1473
  }, [d, l]);
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) => ({
1474
+ let { size: p } = e, m = o ? _n(n.scroll, p.phone) : null, h = vn(e.labels.length, p.width, m), g = p.measured && h > p.width, { shown: _ } = e, v = O(() => _.map((e) => ({
1480
1475
  key: e.key,
1481
1476
  paint: e.paint,
1482
1477
  group: i?.(e.key) ?? "all",
@@ -1485,7 +1480,7 @@ function Bn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1485
1480
  _,
1486
1481
  r,
1487
1482
  i
1488
- ]), y = t.enabled ? /* @__PURE__ */ M(zn, {
1483
+ ]), y = t.enabled ? /* @__PURE__ */ M(Rn, {
1489
1484
  zoom: t,
1490
1485
  width: p.width,
1491
1486
  series: v,
@@ -1511,7 +1506,7 @@ function Bn({ model: e, zoom: t, props: n, data: r, group: i, curve: a, scroll:
1511
1506
  }
1512
1507
  //#endregion
1513
1508
  //#region lib/components/ui/widgets/native-charts/hooks/use-range-announcement.ts
1514
- function Vn(e, t) {
1509
+ function Bn(e, t) {
1515
1510
  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}", {
1516
1511
  from: e[t[0]] ?? "",
1517
1512
  to: e[t[1]] ?? ""
@@ -1535,20 +1530,20 @@ function Vn(e, t) {
1535
1530
  }
1536
1531
  //#endregion
1537
1532
  //#region lib/components/ui/widgets/native-charts/hooks/use-chart-zoom.ts
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) : [], [
1533
+ var Vn = (e) => typeof e == "object" ? e : {};
1534
+ function Hn(e) {
1535
+ let { data: t, x: n, xAxis: r } = e, { language: a } = i(), o = Vn(e.zoom), s = t.length, c = !!e.zoom && s > 2, [l, u] = A(o.defaultRange ?? null), d = o.range ?? l ?? Wt(s), f = c ? Kt(d, s) : Wt(s), p = O(() => c ? je(t, n, r, a) : [], [
1541
1536
  c,
1542
1537
  t,
1543
1538
  n,
1544
1539
  r,
1545
1540
  a
1546
- ]), { onRangeChange: m } = o, h = o.range !== void 0, [g, _] = f, v = Vn(p, f), y = k([g, _]), b = k(null);
1541
+ ]), { onRangeChange: m } = o, h = o.range !== void 0, [g, _] = f, v = Bn(p, f), y = k([g, _]), b = k(null);
1547
1542
  E(() => {
1548
1543
  y.current = [g, _];
1549
1544
  }, [g, _]);
1550
1545
  let x = T((e, { announce: t = !0 } = {}) => {
1551
- let n = qt(e, s);
1546
+ let n = Kt(e, s);
1552
1547
  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));
1553
1548
  }, [
1554
1549
  s,
@@ -1560,7 +1555,7 @@ function Un(e) {
1560
1555
  enabled: c,
1561
1556
  range: f,
1562
1557
  count: s,
1563
- rows: O(() => c ? tn(t, [g, _]) : t, [
1558
+ rows: O(() => c ? en(t, [g, _]) : t, [
1564
1559
  c,
1565
1560
  t,
1566
1561
  g,
@@ -1571,9 +1566,9 @@ function Un(e) {
1571
1566
  total: s
1572
1567
  } : void 0,
1573
1568
  labels: p,
1574
- zoomed: c && !Kt(f, s),
1569
+ zoomed: c && !Gt(f, s),
1575
1570
  set: x,
1576
- reset: () => x(Gt(s)),
1571
+ reset: () => x(Wt(s)),
1577
1572
  announce: v.announce,
1578
1573
  onShift: b,
1579
1574
  announcement: v.announcement
@@ -1581,7 +1576,7 @@ function Un(e) {
1581
1576
  }
1582
1577
  //#endregion
1583
1578
  //#region lib/components/ui/widgets/native-charts/partials/chart-data-table.tsx
1584
- function Wn({ model: e, caption: t }) {
1579
+ function Un({ model: e, caption: t }) {
1585
1580
  let n = O(() => typeof e == "function" ? e() : e, [e]);
1586
1581
  return /* @__PURE__ */ N("section", {
1587
1582
  className: "nxgt-chart-table",
@@ -1621,7 +1616,7 @@ function Wn({ model: e, caption: t }) {
1621
1616
  }
1622
1617
  //#endregion
1623
1618
  //#region lib/components/ui/widgets/native-charts/partials/chart-frame-header.tsx
1624
- function Gn({ titleId: t, title: n, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1619
+ function Wn({ titleId: t, title: n, description: a, headline: o, tableId: s, open: c, onOpenChange: l }) {
1625
1620
  let { t: u } = i();
1626
1621
  return /* @__PURE__ */ N(j, { children: [/* @__PURE__ */ N("div", {
1627
1622
  className: "nxgt-chart-pad flex flex-wrap items-start justify-between gap-x-3 gap-y-1",
@@ -1653,7 +1648,7 @@ function Gn({ titleId: t, title: n, description: a, headline: o, tableId: s, ope
1653
1648
  }
1654
1649
  //#endregion
1655
1650
  //#region lib/components/ui/widgets/native-charts/hooks/use-css-variables.ts
1656
- function Kn(e, t) {
1651
+ function Gn(e, t) {
1657
1652
  u(() => {
1658
1653
  let n = e.current;
1659
1654
  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);
@@ -1661,9 +1656,9 @@ function Kn(e, t) {
1661
1656
  }
1662
1657
  //#endregion
1663
1658
  //#region lib/components/ui/widgets/native-charts/partials/chart-plot-state.tsx
1664
- function qn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1659
+ function Kn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1665
1660
  let { t: o } = i(), s = k(null);
1666
- return Kn(s, { "--nxgt-chart-height": e }), t ? /* @__PURE__ */ M("div", {
1661
+ return Gn(s, { "--nxgt-chart-height": e }), t ? /* @__PURE__ */ M("div", {
1667
1662
  ref: s,
1668
1663
  className: "nxgt-chart-skeleton",
1669
1664
  "data-slot": "chart-skeleton",
@@ -1683,7 +1678,7 @@ function qn({ height: e, loading: t, empty: n, emptyState: r, children: a }) {
1683
1678
  }
1684
1679
  //#endregion
1685
1680
  //#region lib/components/ui/widgets/native-charts/partials/chart-frame.tsx
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 }) {
1681
+ function qn({ 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 }) {
1687
1682
  let b = D(), x = D(), [S, C] = A(!1), w = !!a && o !== !1 && !u, ee = s || o === "bottom", te = /* @__PURE__ */ M("div", {
1688
1683
  className: "nxgt-chart-pad",
1689
1684
  "data-slot": "chart-legend-box",
@@ -1698,7 +1693,7 @@ function Jn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1698
1693
  "data-phone": s || void 0,
1699
1694
  className: t("nxgt-chart", h),
1700
1695
  children: [
1701
- /* @__PURE__ */ M(Gn, {
1696
+ /* @__PURE__ */ M(Wn, {
1702
1697
  titleId: b,
1703
1698
  title: e,
1704
1699
  description: n,
@@ -1718,7 +1713,7 @@ function Jn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1718
1713
  className: "nxgt-chart-pad min-w-0",
1719
1714
  children: [
1720
1715
  !(u || d) && v,
1721
- /* @__PURE__ */ M(qn, {
1716
+ /* @__PURE__ */ M(Kn, {
1722
1717
  height: l,
1723
1718
  loading: u,
1724
1719
  empty: d,
@@ -1740,30 +1735,30 @@ function Jn({ title: e, description: n, headline: r, summary: i, legend: a, lege
1740
1735
  }
1741
1736
  //#endregion
1742
1737
  //#region lib/components/ui/widgets/native-charts/core/marks.ts
1743
- var Yn = {
1738
+ var Jn = {
1744
1739
  circle: "circle",
1745
1740
  square: "square",
1746
1741
  diamond: "diamond",
1747
1742
  triangle: "triangle",
1748
1743
  pentagon: "pentagon"
1749
1744
  };
1750
- function Xn(e, t, n) {
1745
+ function Yn(e, t, n) {
1751
1746
  let r = 0;
1752
1747
  return e.replace(/-?\d+(?:\.\d+)?(?:e-?\d+)?/g, (e) => {
1753
1748
  let i = Number(e) + (r++ % 2 == 0 ? t : n);
1754
1749
  return String(Math.round(i * 100) / 100);
1755
1750
  });
1756
1751
  }
1757
- function Zn(e, t, n, r) {
1758
- return Xn(ue(le(Yn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1752
+ function Xn(e, t, n, r) {
1753
+ return Yn(ue(le(Jn[e], "circle"), { size: t }), n - t / 2, r - t / 2);
1759
1754
  }
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);
1755
+ var Zn;
1756
+ function Qn(e, t, n, r) {
1757
+ return Zn ??= se(le("circle", "circle"), le("cookie-6", "circle")), Yn(ue(ce(Zn, Math.min(1, Math.max(0, e))), { size: t }), n - t / 2, r - t / 2);
1763
1758
  }
1764
1759
  //#endregion
1765
1760
  //#region lib/components/ui/widgets/native-charts/partials/series-marker.tsx
1766
- function er({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className: a }) {
1761
+ function $n({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className: a }) {
1767
1762
  return n ? /* @__PURE__ */ M("svg", {
1768
1763
  ...e,
1769
1764
  width: "10",
@@ -1772,7 +1767,7 @@ function er({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className:
1772
1767
  "aria-hidden": "true",
1773
1768
  className: t("nxgt-chart-marker shrink-0", a),
1774
1769
  children: /* @__PURE__ */ M("path", {
1775
- d: Zn(n, 9, 5, 5),
1770
+ d: Xn(n, 9, 5, 5),
1776
1771
  fill: r ? "currentColor" : "none",
1777
1772
  stroke: "currentColor",
1778
1773
  strokeWidth: "1.5"
@@ -1786,7 +1781,7 @@ function er({ paint: e, shape: n, filled: r = !0, variant: i = "dot", className:
1786
1781
  }
1787
1782
  //#endregion
1788
1783
  //#region lib/components/ui/widgets/native-charts/partials/chart-legend.tsx
1789
- function tr(e) {
1784
+ function er(e) {
1790
1785
  return e.note ? /* @__PURE__ */ N(j, { children: [
1791
1786
  e.label,
1792
1787
  /* @__PURE__ */ M("span", {
@@ -1804,8 +1799,8 @@ function tr(e) {
1804
1799
  })
1805
1800
  ] }) : e.label;
1806
1801
  }
1807
- function nr({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1808
- let o = /* @__PURE__ */ M(er, {
1802
+ function tr({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1803
+ let o = /* @__PURE__ */ M($n, {
1809
1804
  paint: e.paint,
1810
1805
  shape: r ? e.shape : void 0,
1811
1806
  filled: n
@@ -1813,7 +1808,7 @@ function nr({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1813
1808
  return /* @__PURE__ */ M(d, {
1814
1809
  size: "sm",
1815
1810
  variant: n ? "tonal" : "outlined",
1816
- label: tr(e),
1811
+ label: er(e),
1817
1812
  leading: n ? void 0 : o,
1818
1813
  trailing: n ? o : void 0,
1819
1814
  "aria-pressed": n,
@@ -1826,7 +1821,7 @@ function nr({ item: e, on: n, patterns: r, onToggle: i, onIsolate: a }) {
1826
1821
  className: t(!n && "text-muted-foreground")
1827
1822
  });
1828
1823
  }
1829
- function rr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1824
+ function nr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patterns: s, className: c }) {
1830
1825
  let { t: l } = i(), u = D();
1831
1826
  return /* @__PURE__ */ N("div", {
1832
1827
  className: t("nxgt-chart-legend", c),
@@ -1835,7 +1830,7 @@ function rr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patt
1835
1830
  "aria-label": l("material.charts.series", "Series"),
1836
1831
  "aria-describedby": u,
1837
1832
  "data-slot": "chart-legend",
1838
- children: e.map((e) => /* @__PURE__ */ M("li", { children: /* @__PURE__ */ M(nr, {
1833
+ children: e.map((e) => /* @__PURE__ */ M("li", { children: /* @__PURE__ */ M(tr, {
1839
1834
  item: e,
1840
1835
  on: !n.includes(e.key),
1841
1836
  patterns: s,
@@ -1860,25 +1855,25 @@ function rr({ items: e, hidden: n, onToggle: r, onIsolate: a, onShowAll: o, patt
1860
1855
  }
1861
1856
  //#endregion
1862
1857
  //#region lib/components/ui/widgets/native-charts/partials/scroll-context.ts
1863
- var ir = de(null);
1858
+ var rr = de(null);
1864
1859
  //#endregion
1865
1860
  //#region lib/components/ui/widgets/native-charts/partials/chart-scroll.tsx
1866
- function ar(e, t) {
1861
+ function ir(e, t) {
1867
1862
  let n = e.scrollWidth - e.clientWidth;
1868
1863
  t.toggleAttribute("data-more-start", e.scrollLeft > 1), t.toggleAttribute("data-more-end", e.scrollLeft < n - 1);
1869
1864
  }
1870
- function or({ width: e, count: t, active: n }) {
1865
+ function ar({ width: e, count: t, active: n }) {
1871
1866
  let r = k(null), i = k(null), a = k(null), o = k([]), s = k({
1872
1867
  left: 0,
1873
1868
  right: 0
1874
1869
  });
1875
- return Kn(a, { "--nxgt-chart-content": e }), pe(() => {
1870
+ return Gn(a, { "--nxgt-chart-content": e }), pe(() => {
1876
1871
  let e = i.current;
1877
- e && (t > 0 && (e.scrollLeft = e.scrollWidth - e.clientWidth), r.current && ar(e, r.current));
1872
+ e && (t > 0 && (e.scrollLeft = e.scrollWidth - e.clientWidth), r.current && ir(e, r.current));
1878
1873
  }, [t]), E(() => {
1879
1874
  let e = i.current, t = r.current;
1880
1875
  if (!(e && t)) return;
1881
- let n = () => ar(e, t);
1876
+ let n = () => ir(e, t);
1882
1877
  n(), e.addEventListener("scroll", n, { passive: !0 });
1883
1878
  let o = new ResizeObserver(n);
1884
1879
  return a.current && o.observe(a.current), () => {
@@ -1889,7 +1884,7 @@ function or({ width: e, count: t, active: n }) {
1889
1884
  if (!t || n === null) return;
1890
1885
  let r = o.current[n];
1891
1886
  if (r === void 0) return;
1892
- let a = xn({
1887
+ let a = bn({
1893
1888
  x: r,
1894
1889
  content: e,
1895
1890
  frame: t.clientWidth,
@@ -1906,8 +1901,8 @@ function or({ width: e, count: t, active: n }) {
1906
1901
  pinned: s
1907
1902
  };
1908
1903
  }
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
+ function or({ config: e, children: t }) {
1905
+ let { frame: n, scroller: r, inner: i, xs: a, pinned: o } = ar(e), [s, c] = A({
1911
1906
  left: null,
1912
1907
  right: null
1913
1908
  }), l = T((e) => c((t) => ({
@@ -1917,7 +1912,7 @@ function sr({ config: e, children: t }) {
1917
1912
  ...t,
1918
1913
  right: e
1919
1914
  })), []);
1920
- return /* @__PURE__ */ M(ir.Provider, {
1915
+ return /* @__PURE__ */ M(rr.Provider, {
1921
1916
  value: {
1922
1917
  slots: s,
1923
1918
  xs: a,
@@ -1964,8 +1959,8 @@ function sr({ config: e, children: t }) {
1964
1959
  })
1965
1960
  });
1966
1961
  }
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
+ function sr({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1963
+ let a = fe(rr), o = a?.slots[e], s = e === "left" ? t.left : t.right;
1969
1964
  if (E(() => {
1970
1965
  a && (a.pinned.current[e] = s, a.frame.current?.style.setProperty(`--nxgt-chart-pin-${e}`, `${s}px`));
1971
1966
  }, [
@@ -1993,7 +1988,7 @@ function cr({ side: e = "left", margin: t, width: n, height: r, children: i }) {
1993
1988
  //#region lib/components/ui/widgets/native-charts/partials/chart-shell.tsx
1994
1989
  function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader: a, scroll: o }) {
1995
1990
  let { size: s, visibility: c } = e;
1996
- return /* @__PURE__ */ M(Jn, {
1991
+ return /* @__PURE__ */ M(qn, {
1997
1992
  title: t.title,
1998
1993
  description: t.description,
1999
1994
  headline: t.headline,
@@ -2010,7 +2005,7 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2010
2005
  overview: i,
2011
2006
  plotHeader: a,
2012
2007
  legendPosition: t.legend,
2013
- legend: r ?? (c && /* @__PURE__ */ M(rr, {
2008
+ legend: r ?? (c && /* @__PURE__ */ M(nr, {
2014
2009
  items: e.legendItems,
2015
2010
  hidden: c.hidden,
2016
2011
  onToggle: c.toggle,
@@ -2018,11 +2013,11 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2018
2013
  onShowAll: c.showAll,
2019
2014
  patterns: t.patterns
2020
2015
  })),
2021
- table: e.table && /* @__PURE__ */ M(Wn, {
2016
+ table: e.table && /* @__PURE__ */ M(Un, {
2022
2017
  caption: e.tableCaption,
2023
2018
  model: e.table
2024
2019
  }),
2025
- children: s.measured && (o ? /* @__PURE__ */ M(sr, {
2020
+ children: s.measured && (o ? /* @__PURE__ */ M(or, {
2026
2021
  config: o,
2027
2022
  children: n
2028
2023
  }) : n)
@@ -2030,7 +2025,7 @@ function z({ model: e, props: t, children: n, legend: r, overview: i, plotHeader
2030
2025
  }
2031
2026
  //#endregion
2032
2027
  //#region lib/components/ui/widgets/native-charts/partials/chart-axes.tsx
2033
- function lr({ ticks: e, y: t, width: n, variant: r = "dotted" }) {
2028
+ function cr({ ticks: e, y: t, width: n, variant: r = "dotted" }) {
2034
2029
  return r === "none" ? null : /* @__PURE__ */ M("g", {
2035
2030
  className: "nxgt-chart-grid",
2036
2031
  "data-grid": r,
@@ -2056,7 +2051,7 @@ function B({ ticks: e, y: t, format: n, width: r, side: i = "left" }) {
2056
2051
  }, e))
2057
2052
  });
2058
2053
  }
2059
- function ur({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2054
+ function lr({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2060
2055
  return /* @__PURE__ */ M("g", {
2061
2056
  className: "nxgt-chart-axis",
2062
2057
  "data-axis": "bottom",
@@ -2073,7 +2068,7 @@ function ur({ labels: e, xOf: t, baseline: n, step: r = 1 }) {
2073
2068
  function V({ kind: e, title: n, status: r, onKeyDown: a, pointXs: o, pointYs: s, locate: c, onPointer: l, onActivate: u, className: d, children: f }) {
2074
2069
  let { t: p } = i(), m = k(null);
2075
2070
  ve(m, () => l?.(null));
2076
- let h = fe(ir);
2071
+ let h = fe(rr);
2077
2072
  E(() => {
2078
2073
  h && o && (h.xs.current = o);
2079
2074
  }, [h, o]);
@@ -2111,7 +2106,7 @@ function V({ kind: e, title: n, status: r, onKeyDown: a, pointXs: o, pointYs: s,
2111
2106
  }
2112
2107
  //#endregion
2113
2108
  //#region lib/components/ui/svg/rounded-rect.ts
2114
- function dr(e, t, n, r, i) {
2109
+ function ur(e, t, n, r, i) {
2115
2110
  if (n <= 0 || r <= 0) return "";
2116
2111
  let a = h(Math.max(0, Math.min(i, n / 2, r))), [o, s, c, l] = [
2117
2112
  h(e),
@@ -2129,7 +2124,7 @@ function dr(e, t, n, r, i) {
2129
2124
  "Z"
2130
2125
  ].join("");
2131
2126
  }
2132
- function fr(e, t, n, r, i) {
2127
+ function dr(e, t, n, r, i) {
2133
2128
  if (n <= 0 || r <= 0) return "";
2134
2129
  let a = h(Math.max(0, Math.min(i, r / 2, n))), [o, s, c, l] = [
2135
2130
  h(e),
@@ -2147,7 +2142,7 @@ function fr(e, t, n, r, i) {
2147
2142
  "Z"
2148
2143
  ].join("");
2149
2144
  }
2150
- function pr(e, t, n, r, i) {
2145
+ function fr(e, t, n, r, i) {
2151
2146
  if (n <= 0 || r <= 0) return "";
2152
2147
  let a = h(Math.max(0, Math.min(i, n / 2, r))), [o, s, c, l] = [
2153
2148
  h(e),
@@ -2165,7 +2160,7 @@ function pr(e, t, n, r, i) {
2165
2160
  "Z"
2166
2161
  ].join("");
2167
2162
  }
2168
- function mr(e, t, n, r, i) {
2163
+ function pr(e, t, n, r, i) {
2169
2164
  if (n <= 0 || r <= 0) return "";
2170
2165
  let a = h(Math.max(0, Math.min(i, r / 2, n))), [o, s, c, l] = [
2171
2166
  h(e),
@@ -2183,7 +2178,7 @@ function mr(e, t, n, r, i) {
2183
2178
  "Z"
2184
2179
  ].join("");
2185
2180
  }
2186
- function H(e, t, n, r, i) {
2181
+ function mr(e, t, n, r, i) {
2187
2182
  if (n <= 0 || r <= 0) return "";
2188
2183
  let a = h(Math.max(0, Math.min(i, n / 2, r / 2))), [o, s, c, l] = [
2189
2184
  h(e),
@@ -2209,11 +2204,11 @@ function hr(e, t, n) {
2209
2204
  }
2210
2205
  function gr(e, t, n, r, i = 8) {
2211
2206
  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);
2207
+ return n > r ? fr(e, r, t, n - r, a) : ur(e, n, t, r - n, a);
2213
2208
  }
2214
2209
  function _r(e, t, n, r, i = 8) {
2215
2210
  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);
2211
+ return r < n ? pr(r, e, n - r, t, a) : dr(n, e, r - n, t, a);
2217
2212
  }
2218
2213
  function vr(e, t, n = 3) {
2219
2214
  let r = [];
@@ -2240,7 +2235,7 @@ function yr(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2240
2235
  index: e,
2241
2236
  y: r,
2242
2237
  height: i,
2243
- d: H(t, r, n, i, hr(a, i, 3))
2238
+ d: mr(t, r, n, i, hr(a, i, 3))
2244
2239
  }));
2245
2240
  }
2246
2241
  function br(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
@@ -2248,7 +2243,7 @@ function br(e, t, n, r, { gap: i = 3, radius: a = 8 } = {}) {
2248
2243
  index: e,
2249
2244
  x: r,
2250
2245
  width: i,
2251
- d: H(r, t, i, n, hr(a, i, 3))
2246
+ d: mr(r, t, i, n, hr(a, i, 3))
2252
2247
  }));
2253
2248
  }
2254
2249
  function xr(e, t, n, r = 18, { prefer: i = "right", min: a = 0 } = {}) {
@@ -2316,7 +2311,7 @@ function wr({ title: e, rows: n, className: r }) {
2316
2311
  children: a.map((e) => /* @__PURE__ */ N("li", {
2317
2312
  className: "flex items-center gap-2",
2318
2313
  children: [
2319
- /* @__PURE__ */ M(er, {
2314
+ /* @__PURE__ */ M($n, {
2320
2315
  paint: e.paint,
2321
2316
  variant: "bar"
2322
2317
  }),
@@ -2348,7 +2343,7 @@ function Tr({ mode: e, x: n, width: r, top: i = 4, gap: a, prefer: o, min: s, on
2348
2343
  t.width && t.width !== f && p(t.width);
2349
2344
  let n = m.current;
2350
2345
  n?.width === t.width && n.height === t.height || (m.current = t, c?.(t));
2351
- }), Kn(d, {
2346
+ }), Gn(d, {
2352
2347
  "--nxgt-chart-tip-x": e === "sheet" ? null : xr(n, f, r, a, {
2353
2348
  prefer: o,
2354
2349
  min: s
@@ -2425,7 +2420,7 @@ function Ar(e, t) {
2425
2420
  }
2426
2421
  return n;
2427
2422
  }
2428
- function U(e, t) {
2423
+ function H(e, t) {
2429
2424
  let n = Array.from(e);
2430
2425
  return n.length <= t ? e : `${n.slice(0, Math.max(1, t - 1)).join("").trimEnd()}…`;
2431
2426
  }
@@ -2451,7 +2446,7 @@ function Nr(e) {
2451
2446
  //#endregion
2452
2447
  //#region lib/components/ui/widgets/native-charts/line-chart/line-geometry.ts
2453
2448
  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) => ({
2449
+ let { width: t, height: n, labels: r, series: i, yAxis: a, curve: o, stacked: s } = e, c = r.length, l = s ? Cn(i.map((e) => e.values)) : i.map((e) => ({
2455
2450
  y0: [],
2456
2451
  y1: e.values
2457
2452
  })), u = Math.max(10, n - 12 - 28), d = ct([...l.flatMap((e) => [...e.y1, ...s ? e.y0 : []].filter((e) => e !== null)), ...e.extra ?? []], u, {
@@ -2463,7 +2458,7 @@ function Pr(e) {
2463
2458
  bottom: 28,
2464
2459
  left: e.margin(f)
2465
2460
  }, 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) => {
2466
- let n = l[t], r = Tn({
2461
+ let n = l[t], r = wn({
2467
2462
  y1: n.y1,
2468
2463
  y0: s ? n.y0 : n.y1.map(() => y),
2469
2464
  x: h,
@@ -2484,14 +2479,14 @@ function Pr(e) {
2484
2479
  y: d,
2485
2480
  ticks: f,
2486
2481
  domain: v,
2487
- labels: r.map((e) => U(e, S)),
2482
+ labels: r.map((e) => H(e, S)),
2488
2483
  step: x,
2489
2484
  bands: b
2490
2485
  };
2491
2486
  }
2492
2487
  //#endregion
2493
2488
  //#region lib/components/ui/widgets/native-charts/core/motion.ts
2494
- var W = {
2489
+ var U = {
2495
2490
  bars: 600,
2496
2491
  lines: 700,
2497
2492
  sweep: 650,
@@ -2503,18 +2498,18 @@ var W = {
2503
2498
  function Ir(e) {
2504
2499
  return e <= 0 ? 0 : e >= 1 ? 1 : 1 + 2.5 * (e - 1) ** 3 + Fr * (e - 1) ** 2;
2505
2500
  }
2506
- function G(e) {
2501
+ function W(e) {
2507
2502
  return e <= 0 ? 0 : e >= 1 ? 1 : 1 - (1 - e) ** 3;
2508
2503
  }
2509
- function K(e, t = 0) {
2510
- return e * W.groupStagger + t * W.itemStagger;
2504
+ function G(e, t = 0) {
2505
+ return e * U.groupStagger + t * U.itemStagger;
2511
2506
  }
2512
- function q(e, t, n = 0) {
2507
+ function K(e, t, n = 0) {
2513
2508
  return t <= 0 ? 1 : Math.min(1, Math.max(0, (e - n) / t));
2514
2509
  }
2515
2510
  //#endregion
2516
2511
  //#region lib/components/ui/widgets/native-charts/partials/chart-defs.tsx
2517
- var J = (e, t) => `${e}-pattern-${t}`, Lr = (e, t) => `${e}-gradient-${t}`;
2512
+ var q = (e, t) => `${e}-pattern-${t}`, Lr = (e, t) => `${e}-gradient-${t}`;
2518
2513
  function Rr({ kind: e }) {
2519
2514
  switch (e % 5) {
2520
2515
  case 0: return /* @__PURE__ */ M("path", {
@@ -2545,7 +2540,7 @@ function Rr({ kind: e }) {
2545
2540
  });
2546
2541
  }
2547
2542
  }
2548
- function Y({ id: e, series: t, patterns: n }) {
2543
+ function J({ id: e, series: t, patterns: n }) {
2549
2544
  return /* @__PURE__ */ M("defs", { children: t.map((t) => {
2550
2545
  let r = P(t);
2551
2546
  return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ N("linearGradient", {
@@ -2564,7 +2559,7 @@ function Y({ id: e, series: t, patterns: n }) {
2564
2559
  })]
2565
2560
  }), n && /* @__PURE__ */ N("pattern", {
2566
2561
  ...r,
2567
- id: J(e, t.position),
2562
+ id: q(e, t.position),
2568
2563
  width: "6",
2569
2564
  height: "6",
2570
2565
  patternUnits: "userSpaceOnUse",
@@ -2594,10 +2589,10 @@ var Br = (e) => `${e}-reveal`;
2594
2589
  //#endregion
2595
2590
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/area-fills.tsx
2596
2591
  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)})` };
2592
+ return n ? { fill: `url(#${q(e, t)})` } : r ? { className: "nxgt-chart-band" } : { fill: `url(#${Lr(e, t)})` };
2598
2593
  }
2599
2594
  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);
2595
+ let o = t.map((e) => e.series.key), s = r ? new Set(o) : pn(o, o.length, n);
2601
2596
  return t.map(({ series: t, area: n }) => s.has(t.key) ? /* @__PURE__ */ M("g", {
2602
2597
  ...t.paint,
2603
2598
  opacity: a,
@@ -2651,8 +2646,8 @@ function Gr() {
2651
2646
  //#endregion
2652
2647
  //#region lib/components/ui/widgets/native-charts/hooks/use-morph.ts
2653
2648
  function Kr(e) {
2654
- let t = Gr(), n = Ur(t ? null : e, W.morph);
2655
- return t || e === null ? 0 : n / W.morph;
2649
+ let t = Gr(), n = Ur(t ? null : e, U.morph);
2650
+ return t || e === null ? 0 : n / U.morph;
2656
2651
  }
2657
2652
  //#endregion
2658
2653
  //#region lib/components/ui/widgets/native-charts/partials/plot-marks.tsx
@@ -2677,7 +2672,7 @@ function Jr({ cx: e, cy: t, paint: n, morph: r, shape: i, size: a = 18 }) {
2677
2672
  r: a * .7,
2678
2673
  className: "nxgt-chart-halo"
2679
2674
  }), /* @__PURE__ */ M("path", {
2680
- d: i ? Zn(i, a - 2, e, t) : $n(r, a, e, t),
2675
+ d: i ? Xn(i, a - 2, e, t) : Qn(r, a, e, t),
2681
2676
  className: "nxgt-chart-active-mark"
2682
2677
  })]
2683
2678
  });
@@ -2705,12 +2700,12 @@ function Yr({ geo: e, index: t, patterns: n }) {
2705
2700
  function Xr({ geo: e, phone: t, patterns: n, points: r }) {
2706
2701
  let { x: i, y: a, bands: o } = e;
2707
2702
  return /* @__PURE__ */ M(j, { children: o.map(({ series: e, y1: o }) => {
2708
- let s = new Set(En(o)), c = t && o.length > 12 ? 2 : 1;
2703
+ let s = new Set(Tn(o)), c = t && o.length > 12 ? 2 : 1;
2709
2704
  return /* @__PURE__ */ M("g", {
2710
2705
  ...e.paint,
2711
2706
  "data-slot": "chart-markers",
2712
2707
  children: o.map((t, o) => t === null || !((n || r) && o % c === 0) && !s.has(o) ? null : n ? /* @__PURE__ */ M("path", {
2713
- d: Zn(e.shape, 9, i(o), a(t)),
2708
+ d: Xn(e.shape, 9, i(o), a(t)),
2714
2709
  className: "nxgt-chart-active-mark"
2715
2710
  }, o) : /* @__PURE__ */ M("circle", {
2716
2711
  cx: i(o),
@@ -2740,7 +2735,7 @@ function Zr({ geo: e, patterns: t }) {
2740
2735
  r: 7,
2741
2736
  className: "nxgt-chart-tone-ring"
2742
2737
  }), t ? /* @__PURE__ */ M("path", {
2743
- d: Zn(e.shape, 8, n(a), r(i)),
2738
+ d: Xn(e.shape, 8, n(a), r(i)),
2744
2739
  className: "nxgt-chart-tone-dot"
2745
2740
  }) : /* @__PURE__ */ M("circle", {
2746
2741
  cx: n(a),
@@ -2780,9 +2775,59 @@ function Qr({ geo: e, clipPath: n, phone: r, patterns: i, points: a }) {
2780
2775
  });
2781
2776
  }
2782
2777
  //#endregion
2778
+ //#region lib/components/ui/widgets/native-charts/core/label-placement.ts
2779
+ var $r = 9, ei = 2;
2780
+ function ti(e, t) {
2781
+ let n = null;
2782
+ for (let r of e) {
2783
+ if (r === null) {
2784
+ n = null;
2785
+ continue;
2786
+ }
2787
+ if (r.x >= t.x1 - 8 && r.x <= t.x2 + 8 && r.y >= t.y1 - 8 && r.y <= t.y2 + 8) return !0;
2788
+ if (n) {
2789
+ let e = n.x <= r.x ? n : r, i = n.x <= r.x ? r : n, a = Math.max(e.x, t.x1), o = Math.min(i.x, t.x2);
2790
+ if (a <= o) {
2791
+ let n = (t) => i.x === e.x ? e.y : e.y + (i.y - e.y) * (t - e.x) / (i.x - e.x), r = n(a), s = n(o);
2792
+ if (Math.max(r, s) >= t.y1 && Math.min(r, s) <= t.y2) return !0;
2793
+ }
2794
+ }
2795
+ n = r;
2796
+ }
2797
+ return !1;
2798
+ }
2799
+ function ni(e) {
2800
+ let { lineY: t, floor: n, edge: r, startEdge: i, width: a, series: o } = e, s = $r, c = n - ei, l = [t - 5, t + 15].map((e) => e), u = [{
2801
+ side: "end",
2802
+ x1: r - a,
2803
+ x2: r
2804
+ }, {
2805
+ side: "start",
2806
+ x1: i,
2807
+ x2: i + a
2808
+ }];
2809
+ for (let { side: e, x1: t, x2: n } of u) for (let r of l) {
2810
+ if (r < s || r > c) continue;
2811
+ let i = {
2812
+ x1: t,
2813
+ x2: n,
2814
+ y1: r - $r,
2815
+ y2: r + ei
2816
+ };
2817
+ if (!o.some((e) => ti(e, i))) return {
2818
+ side: e,
2819
+ baseline: r
2820
+ };
2821
+ }
2822
+ return {
2823
+ side: "end",
2824
+ baseline: Dt(t, o.flatMap((e) => e.flatMap((e) => e && e.x >= r - a - 8 && e.x <= r + 8 ? [e.y] : [])), n)
2825
+ };
2826
+ }
2827
+ //#endregion
2783
2828
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/reference-marks.tsx
2784
- var $r = .45, ei = 6;
2785
- function ti({ refs: e, geo: t }) {
2829
+ var ri = .45, ii = 6, ai = 12;
2830
+ function oi({ refs: e, geo: t }) {
2786
2831
  let { domain: n, y: r, iw: i, x: a } = t, o = t.labels.length;
2787
2832
  return /* @__PURE__ */ N("g", {
2788
2833
  "data-slot": "chart-reference",
@@ -2816,7 +2861,7 @@ function ti({ refs: e, geo: t }) {
2816
2861
  }))]
2817
2862
  });
2818
2863
  }
2819
- function ni({ refs: e, geo: t }) {
2864
+ function si({ refs: e, geo: t }) {
2820
2865
  let { domain: n, y: r, iw: i, x: a } = t, o = t.labels.length;
2821
2866
  return /* @__PURE__ */ N("g", {
2822
2867
  "data-slot": "chart-reference-labels",
@@ -2833,9 +2878,9 @@ function ni({ refs: e, geo: t }) {
2833
2878
  });
2834
2879
  }
2835
2880
  if (!s) return null;
2836
- let c = jt(e.label, "left"), l = Mr(Math.min(i * $r, s.x2 - s.x1 - ei));
2881
+ let c = At(e.label, "left"), l = Mr(Math.min(i * ri, s.x2 - s.x1 - ii));
2837
2882
  return /* @__PURE__ */ M("text", {
2838
- x: s.x1 + ei,
2883
+ x: s.x1 + ii,
2839
2884
  y: Tt(s.top, s.height),
2840
2885
  textAnchor: c.textAnchor,
2841
2886
  direction: c.direction,
@@ -2843,33 +2888,43 @@ function ni({ refs: e, geo: t }) {
2843
2888
  "data-kind": "band",
2844
2889
  "data-tone": e.tone,
2845
2890
  className: "nxgt-chart-ref-label",
2846
- children: U(e.label, l)
2891
+ children: H(e.label, l)
2847
2892
  }, `${t}-${e.label}`);
2848
- }), e.thresholds.map((e, n) => /* @__PURE__ */ M(ri, {
2893
+ }), e.thresholds.map((e, n) => /* @__PURE__ */ M(ci, {
2849
2894
  th: e,
2850
2895
  geo: t
2851
2896
  }, `${n}-${e.label}`))]
2852
2897
  });
2853
2898
  }
2854
- function ri({ th: e, geo: t }) {
2899
+ function ci({ th: e, geo: t }) {
2855
2900
  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
2901
  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));
2902
+ let c = wt(s.value, n, r), { x1: l, x2: u } = xt(s, o, a, i), d = Mr(Math.min(i * ri, u - l - ai)), f = H(e.label, d), p = nt(f), { side: m, baseline: h } = ni({
2903
+ lineY: c,
2904
+ floor: t.ih,
2905
+ edge: u - ai,
2906
+ startEdge: l + ii,
2907
+ width: p,
2908
+ series: t.bands.map((e) => e.y1.map((e, t) => e === null ? null : {
2909
+ x: a(t),
2910
+ y: r(e)
2911
+ }))
2912
+ }), g = At(e.label, m === "end" ? "right" : "left");
2858
2913
  return /* @__PURE__ */ M("text", {
2859
- x: u - ei,
2860
- y: Ot(c, g),
2861
- textAnchor: f.textAnchor,
2862
- direction: f.direction,
2914
+ x: m === "end" ? u - ai : l + ii,
2915
+ y: h,
2916
+ textAnchor: g.textAnchor,
2917
+ direction: g.direction,
2863
2918
  "data-slot": "chart-ref-label",
2864
2919
  "data-kind": "threshold",
2865
2920
  "data-tone": e.tone,
2866
2921
  className: "nxgt-chart-ref-label",
2867
- children: p
2922
+ children: f
2868
2923
  });
2869
2924
  }
2870
2925
  //#endregion
2871
2926
  //#region lib/components/ui/widgets/native-charts/hooks/use-entry-motion.ts
2872
- function X({ total: e, animate: t = !0, replay: n }) {
2927
+ function Y({ total: e, animate: t = !0, replay: n }) {
2873
2928
  let r = Gr(), [i, a] = A(!1);
2874
2929
  u(() => a(!0), []);
2875
2930
  let o = i && t && !r && e > 0, s = Ur(o ? n ?? !0 : null, e), c = o && s < e;
@@ -2883,21 +2938,21 @@ function X({ total: e, animate: t = !0, replay: n }) {
2883
2938
  }
2884
2939
  //#endregion
2885
2940
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/use-line-reveal.ts
2886
- function ii(e, t) {
2887
- let n = X({
2888
- total: W.lines,
2941
+ function li(e, t) {
2942
+ let n = Y({
2943
+ total: U.lines,
2889
2944
  animate: t,
2890
2945
  replay: e.motionKey
2891
2946
  });
2892
2947
  return {
2893
2948
  motion: n,
2894
- fade: q(n.elapsed, W.lines * .6, W.lines * .4)
2949
+ fade: K(n.elapsed, U.lines * .6, U.lines * .4)
2895
2950
  };
2896
2951
  }
2897
2952
  //#endregion
2898
2953
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-svg.tsx
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;
2954
+ function ui({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }) {
2955
+ 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 } = li(e, n.animate), b = u.active;
2901
2956
  return /* @__PURE__ */ N("svg", {
2902
2957
  width: c.width,
2903
2958
  height: c.height,
@@ -2905,7 +2960,7 @@ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2905
2960
  className: t(v.reduced && "nxgt-chart-fade"),
2906
2961
  ...v.attributes,
2907
2962
  children: [
2908
- /* @__PURE__ */ M(Y, {
2963
+ /* @__PURE__ */ M(J, {
2909
2964
  id: i,
2910
2965
  series: l,
2911
2966
  patterns: n.patterns
@@ -2914,25 +2969,25 @@ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2914
2969
  id: i,
2915
2970
  width: f,
2916
2971
  height: c.height,
2917
- progress: G(v.progress)
2972
+ progress: W(v.progress)
2918
2973
  }),
2919
2974
  /* @__PURE__ */ N("g", {
2920
2975
  transform: `translate(${d.left},${d.top})`,
2921
2976
  children: [
2922
- /* @__PURE__ */ M(lr, {
2977
+ /* @__PURE__ */ M(cr, {
2923
2978
  ticks: g,
2924
2979
  y: h,
2925
2980
  width: f,
2926
2981
  variant: n.grid
2927
2982
  }),
2928
2983
  s,
2929
- /* @__PURE__ */ M(ur, {
2984
+ /* @__PURE__ */ M(lr, {
2930
2985
  labels: r.labels,
2931
2986
  xOf: m,
2932
2987
  baseline: p,
2933
2988
  step: r.step
2934
2989
  }),
2935
- /* @__PURE__ */ M(ti, {
2990
+ /* @__PURE__ */ M(oi, {
2936
2991
  refs: e.refs,
2937
2992
  geo: r
2938
2993
  }),
@@ -2942,7 +2997,7 @@ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2942
2997
  activeKey: b && l.find((e) => e.position === b.series)?.key,
2943
2998
  stacked: o,
2944
2999
  patterns: n.patterns,
2945
- fade: G(y)
3000
+ fade: W(y)
2946
3001
  }),
2947
3002
  /* @__PURE__ */ M(Qr, {
2948
3003
  geo: r,
@@ -2951,7 +3006,7 @@ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2951
3006
  patterns: n.patterns,
2952
3007
  points: n.points
2953
3008
  }),
2954
- /* @__PURE__ */ M(ni, {
3009
+ /* @__PURE__ */ M(si, {
2955
3010
  refs: e.refs,
2956
3011
  geo: r
2957
3012
  }),
@@ -2967,20 +3022,20 @@ function ai({ model: e, props: n, geo: r, id: i, area: a, stacked: o, yAxis: s }
2967
3022
  }
2968
3023
  //#endregion
2969
3024
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/use-line-pointer.ts
2970
- function oi(e, t) {
3025
+ function di(e, t) {
2971
3026
  let { nav: n, shown: r } = e;
2972
3027
  return (e, i) => {
2973
3028
  if (e === null) return n.clear();
2974
3029
  let a = t.bands.map((n) => {
2975
3030
  let r = n.y1[e];
2976
3031
  return r == null ? null : t.m.top + t.y(r);
2977
- }), o = i === void 0 ? null : Dn(a, i);
3032
+ }), o = i === void 0 ? null : En(a, i);
2978
3033
  n.pointTo(e, o === null ? void 0 : r[o]?.position);
2979
3034
  };
2980
3035
  }
2981
3036
  //#endregion
2982
3037
  //#region lib/components/ui/widgets/native-charts/line-chart/partials/line-plot.tsx
2983
- function si({ model: e, props: t, kind: n }) {
3038
+ function fi({ model: e, props: t, kind: n }) {
2984
3039
  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({
2985
3040
  width: c,
2986
3041
  height: l,
@@ -2989,9 +3044,9 @@ function si({ model: e, props: t, kind: n }) {
2989
3044
  yAxis: t.yAxis,
2990
3045
  curve: t.curve,
2991
3046
  stacked: p,
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, {
3047
+ extra: zt(e.refs.bands, e.refs.thresholds),
3048
+ margin: (e) => Dn(e.map(m), u)
3049
+ }), { m: g, iw: _, x: v, y, ticks: b } = h, x = s.active, S = di(e, h), C = /* @__PURE__ */ M(B, {
2995
3050
  ticks: b,
2996
3051
  y,
2997
3052
  width: _,
@@ -3006,7 +3061,7 @@ function si({ model: e, props: t, kind: n }) {
3006
3061
  onPointer: S,
3007
3062
  onActivate: e.activate,
3008
3063
  children: [
3009
- /* @__PURE__ */ M(ai, {
3064
+ /* @__PURE__ */ M(ui, {
3010
3065
  model: e,
3011
3066
  props: t,
3012
3067
  geo: h,
@@ -3015,7 +3070,7 @@ function si({ model: e, props: t, kind: n }) {
3015
3070
  stacked: p,
3016
3071
  yAxis: C
3017
3072
  }),
3018
- /* @__PURE__ */ M(cr, {
3073
+ /* @__PURE__ */ M(sr, {
3019
3074
  margin: g,
3020
3075
  width: c,
3021
3076
  height: l,
@@ -3031,9 +3086,9 @@ function si({ model: e, props: t, kind: n }) {
3031
3086
  }
3032
3087
  //#endregion
3033
3088
  //#region lib/components/ui/widgets/native-charts/line-chart/line-area-chart.tsx
3034
- function ci({ kind: e, ...t }) {
3035
- let n = Un(t), { model: r, shell: i } = Bn({
3036
- model: _n({
3089
+ function pi({ kind: e, ...t }) {
3090
+ let n = Hn(t), { model: r, shell: i } = zn({
3091
+ model: gn({
3037
3092
  ...t,
3038
3093
  data: n.rows
3039
3094
  }, e, {
@@ -3049,7 +3104,7 @@ function ci({ kind: e, ...t }) {
3049
3104
  model: r,
3050
3105
  props: t,
3051
3106
  ...i,
3052
- children: /* @__PURE__ */ M(si, {
3107
+ children: /* @__PURE__ */ M(fi, {
3053
3108
  model: r,
3054
3109
  props: t,
3055
3110
  kind: e
@@ -3058,19 +3113,19 @@ function ci({ kind: e, ...t }) {
3058
3113
  }
3059
3114
  //#endregion
3060
3115
  //#region lib/components/ui/widgets/native-charts/area-chart/area-chart.tsx
3061
- function li(e) {
3062
- return /* @__PURE__ */ M(ci, {
3116
+ function mi(e) {
3117
+ return /* @__PURE__ */ M(pi, {
3063
3118
  ...e,
3064
3119
  kind: "area"
3065
3120
  });
3066
3121
  }
3067
3122
  //#endregion
3068
3123
  //#region lib/components/ui/widgets/native-charts/bar-chart/bar-geometry.ts
3069
- function ui(e) {
3124
+ function hi(e) {
3070
3125
  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, {
3071
3126
  min: a?.min,
3072
3127
  max: a?.max
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 = {
3128
+ }), u = l.ticks(dt(t, a?.ticks)), d = o ? jr(e.labels, i) : null, f = d ? d.left : Dn(u.map(e.format), i), p = {
3074
3129
  top: 12,
3075
3130
  right: o ? 20 : 12,
3076
3131
  bottom: 28,
@@ -3097,11 +3152,11 @@ function ui(e) {
3097
3152
  size: v,
3098
3153
  offset: (g - v) / 2
3099
3154
  },
3100
- labels: e.labels.map((e) => U(e, b)),
3155
+ labels: e.labels.map((e) => H(e, b)),
3101
3156
  step: y
3102
3157
  };
3103
3158
  }
3104
- function di(e, t, n, r) {
3159
+ function gi(e, t, n, r) {
3105
3160
  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) => ({
3106
3161
  position: e.position,
3107
3162
  key: e.key,
@@ -3129,14 +3184,14 @@ function di(e, t, n, r) {
3129
3184
  return [l(t, h, [d, f], [i, p])];
3130
3185
  });
3131
3186
  }
3132
- var fi = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2, pi = {
3187
+ var _i = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2, vi = {
3133
3188
  width: 180,
3134
3189
  height: 120
3135
3190
  };
3136
- function mi(e, t, n, r, i = pi) {
3191
+ function yi(e, t, n, r, i = vi) {
3137
3192
  let { m: a } = e;
3138
3193
  if (!e.horizontal) return {
3139
- x: a.left + fi(e, n),
3194
+ x: a.left + _i(e, n),
3140
3195
  gap: e.band.bandwidth() / 2 + 14
3141
3196
  };
3142
3197
  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;
@@ -3147,7 +3202,7 @@ function mi(e, t, n, r, i = pi) {
3147
3202
  }
3148
3203
  //#endregion
3149
3204
  //#region lib/components/ui/widgets/native-charts/partials/bar-marks.tsx
3150
- function hi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i, chartId: a }) {
3205
+ function bi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i, chartId: a }) {
3151
3206
  return /* @__PURE__ */ M(j, { children: t.map((t) => /* @__PURE__ */ M("g", {
3152
3207
  ...t.paint,
3153
3208
  "data-series": t.key,
@@ -3162,12 +3217,12 @@ function hi({ rows: e, series: t, activeRow: n, activePosition: r, patterns: i,
3162
3217
  "data-active": l || void 0,
3163
3218
  "data-dim": c && !l ? !0 : void 0,
3164
3219
  "data-pattern": i || void 0,
3165
- fill: i ? `url(#${J(a, t.position)})` : void 0
3220
+ fill: i ? `url(#${q(a, t.position)})` : void 0
3166
3221
  }, o);
3167
3222
  })
3168
3223
  }, t.key)) });
3169
3224
  }
3170
- function gi({ geo: e, index: t }) {
3225
+ function xi({ geo: e, index: t }) {
3171
3226
  let n = (e.band(t) ?? 0) - 6, r = e.band.bandwidth() + 12;
3172
3227
  return e.horizontal ? /* @__PURE__ */ M("rect", {
3173
3228
  className: "nxgt-chart-crosshair",
@@ -3189,7 +3244,7 @@ function gi({ geo: e, index: t }) {
3189
3244
  }
3190
3245
  //#endregion
3191
3246
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-axes.tsx
3192
- function _i({ geo: e, format: t, grid: n }) {
3247
+ function Si({ geo: e, format: t, grid: n }) {
3193
3248
  let { horizontal: r, ticks: i, value: a, iw: o, ih: s, labels: c } = e;
3194
3249
  return /* @__PURE__ */ N(j, { children: [r ? /* @__PURE__ */ N(j, { children: [
3195
3250
  n !== "none" && /* @__PURE__ */ M("g", {
@@ -3217,14 +3272,14 @@ function _i({ geo: e, format: t, grid: n }) {
3217
3272
  "data-axis": "left",
3218
3273
  children: c.map((t, n) => /* @__PURE__ */ M("text", {
3219
3274
  x: -8,
3220
- y: fi(e, n),
3275
+ y: _i(e, n),
3221
3276
  dy: "0.32em",
3222
3277
  textAnchor: "end",
3223
3278
  children: t
3224
3279
  }, `${n}-${t}`))
3225
3280
  })
3226
3281
  ] }) : /* @__PURE__ */ N(j, { children: [
3227
- /* @__PURE__ */ M(lr, {
3282
+ /* @__PURE__ */ M(cr, {
3228
3283
  ticks: i,
3229
3284
  y: a,
3230
3285
  width: o,
@@ -3236,9 +3291,9 @@ function _i({ geo: e, format: t, grid: n }) {
3236
3291
  width: o,
3237
3292
  format: t
3238
3293
  }),
3239
- /* @__PURE__ */ M(ur, {
3294
+ /* @__PURE__ */ M(lr, {
3240
3295
  labels: c,
3241
- xOf: (t) => fi(e, t),
3296
+ xOf: (t) => _i(e, t),
3242
3297
  baseline: s,
3243
3298
  step: e.step
3244
3299
  })
@@ -3253,36 +3308,36 @@ function _i({ geo: e, format: t, grid: n }) {
3253
3308
  }
3254
3309
  //#endregion
3255
3310
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-svg.tsx
3256
- function vi({ model: e, props: n, geo: r, id: i, format: a }) {
3257
- let { size: o, shown: s, labels: c, nav: l } = e, u = X({
3258
- total: W.bars + K(c.length - 1, e.series.length - 1),
3311
+ function Ci({ model: e, props: n, geo: r, id: i, format: a }) {
3312
+ let { size: o, shown: s, labels: c, nav: l } = e, u = Y({
3313
+ total: U.bars + G(c.length - 1, e.series.length - 1),
3259
3314
  animate: n.animate,
3260
3315
  replay: e.motionKey
3261
- }), d = (e) => (t) => Ir(q(u.elapsed, W.bars, K(e, r.stacked ? 0 : t))), f = l.active;
3316
+ }), d = (e) => (t) => Ir(K(u.elapsed, U.bars, G(e, r.stacked ? 0 : t))), f = l.active;
3262
3317
  return /* @__PURE__ */ N("svg", {
3263
3318
  width: o.width,
3264
3319
  height: o.height,
3265
3320
  "aria-hidden": "true",
3266
3321
  className: t(u.reduced && "nxgt-chart-fade"),
3267
3322
  ...u.attributes,
3268
- children: [/* @__PURE__ */ M(Y, {
3323
+ children: [/* @__PURE__ */ M(J, {
3269
3324
  id: i,
3270
3325
  series: s,
3271
3326
  patterns: n.patterns
3272
3327
  }), /* @__PURE__ */ N("g", {
3273
3328
  transform: `translate(${r.m.left},${r.m.top})`,
3274
3329
  children: [
3275
- /* @__PURE__ */ M(_i, {
3330
+ /* @__PURE__ */ M(Si, {
3276
3331
  geo: r,
3277
3332
  format: a,
3278
3333
  grid: n.grid
3279
3334
  }),
3280
- f && /* @__PURE__ */ M(gi, {
3335
+ f && /* @__PURE__ */ M(xi, {
3281
3336
  geo: r,
3282
3337
  index: f.index
3283
3338
  }),
3284
- /* @__PURE__ */ M(hi, {
3285
- rows: c.map((e, t) => di(r, s, t, d(t))),
3339
+ /* @__PURE__ */ M(bi, {
3340
+ rows: c.map((e, t) => gi(r, s, t, d(t))),
3286
3341
  series: s,
3287
3342
  activeRow: f?.index ?? null,
3288
3343
  activePosition: f?.series ?? null,
@@ -3295,11 +3350,11 @@ function vi({ model: e, props: n, geo: r, id: i, format: a }) {
3295
3350
  }
3296
3351
  //#endregion
3297
3352
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/use-bar-pointer.ts
3298
- function yi(e, t) {
3353
+ function wi(e, t) {
3299
3354
  let { nav: n, shown: r } = e, { m: i, horizontal: a, stacked: o } = t;
3300
3355
  return (e, s, c) => {
3301
3356
  if (e === null || s === void 0 || c === void 0) return n.clear();
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) => ({
3357
+ let l = gi(t, r, e, () => 1), [u, d] = a ? [c - i.left, s - i.top] : [s - i.top, c - i.left], f = Ar(l.map((e) => ({
3303
3358
  position: e.position,
3304
3359
  ...o ? e.along : e.across
3305
3360
  })), o ? u : d);
@@ -3308,8 +3363,8 @@ function yi(e, t) {
3308
3363
  }
3309
3364
  //#endregion
3310
3365
  //#region lib/components/ui/widgets/native-charts/bar-chart/partials/bar-plot.tsx
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({
3366
+ function Ti({ model: e, props: t }) {
3367
+ 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 = hi({
3313
3368
  width: s,
3314
3369
  height: c,
3315
3370
  labels: a,
@@ -3319,7 +3374,7 @@ function bi({ model: e, props: t }) {
3319
3374
  phone: l,
3320
3375
  yAxis: t.yAxis,
3321
3376
  format: f
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, {
3377
+ }), { m, horizontal: h } = p, g = wi(e, p), [_, v] = A(vi), y = o.active, b = a.map((e, t) => h ? m.top + _i(p, t) : m.left + _i(p, t)), x = y ? yi(p, gi(p, r, y.index, () => 1), y.index, {
3323
3378
  width: s,
3324
3379
  height: c
3325
3380
  }, _) : { x: 0 };
@@ -3333,14 +3388,14 @@ function bi({ model: e, props: t }) {
3333
3388
  onPointer: g,
3334
3389
  onActivate: e.activate,
3335
3390
  children: [
3336
- /* @__PURE__ */ M(vi, {
3391
+ /* @__PURE__ */ M(Ci, {
3337
3392
  model: e,
3338
3393
  props: t,
3339
3394
  geo: p,
3340
3395
  id: u,
3341
3396
  format: f
3342
3397
  }),
3343
- !h && /* @__PURE__ */ M(cr, {
3398
+ !h && /* @__PURE__ */ M(sr, {
3344
3399
  margin: m,
3345
3400
  width: s,
3346
3401
  height: c,
@@ -3364,9 +3419,9 @@ function bi({ model: e, props: t }) {
3364
3419
  }
3365
3420
  //#endregion
3366
3421
  //#region lib/components/ui/widgets/native-charts/bar-chart/bar-chart.tsx
3367
- function xi(e) {
3368
- let t = e, n = t.orientation === "horizontal", r = Un(t), { model: i, shell: a } = Bn({
3369
- model: _n({
3422
+ function Ei(e) {
3423
+ let t = e, n = t.orientation === "horizontal", r = Hn(t), { model: i, shell: a } = zn({
3424
+ model: gn({
3370
3425
  ...t,
3371
3426
  data: r.rows
3372
3427
  }, "bar", {
@@ -3382,7 +3437,7 @@ function xi(e) {
3382
3437
  model: i,
3383
3438
  props: t,
3384
3439
  ...a,
3385
- children: /* @__PURE__ */ M(bi, {
3440
+ children: /* @__PURE__ */ M(Ti, {
3386
3441
  model: i,
3387
3442
  props: t
3388
3443
  })
@@ -3390,7 +3445,7 @@ function xi(e) {
3390
3445
  }
3391
3446
  //#endregion
3392
3447
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-axis-titles.tsx
3393
- function Si({ model: e, props: t }) {
3448
+ function Di({ model: e, props: t }) {
3394
3449
  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;
3395
3450
  return i || a ? /* @__PURE__ */ N("div", {
3396
3451
  className: "nxgt-chart-axis-titles",
@@ -3406,7 +3461,7 @@ function Si({ model: e, props: t }) {
3406
3461
  }
3407
3462
  //#endregion
3408
3463
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-geometry.ts
3409
- function Ci(e, t, n) {
3464
+ function Oi(e, t, n) {
3410
3465
  let r = e.series.filter((e) => e.side === t);
3411
3466
  if (r.length === 0) return null;
3412
3467
  let i = e[t], a = ct(r.flatMap((e) => e.values.filter((e) => e !== null)), n, {
@@ -3421,8 +3476,8 @@ function Ci(e, t, n) {
3421
3476
  format: e.formats[t]
3422
3477
  };
3423
3478
  }
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 = {
3479
+ function ki(e) {
3480
+ let { width: t, height: n, series: r, phone: i } = e, a = Math.max(10, n - 12 - 28), o = Oi(e, "left", a), s = Oi(e, "right", a), c = (e) => e ? Dn(e.ticks.map(e.format), i) : 12, l = {
3426
3481
  top: 12,
3427
3482
  right: c(s),
3428
3483
  bottom: 28,
@@ -3440,17 +3495,17 @@ function wi(e) {
3440
3495
  max: 44,
3441
3496
  gap: 4
3442
3497
  }),
3443
- labels: e.labels.map((e) => U(e, h)),
3498
+ labels: e.labels.map((e) => H(e, h)),
3444
3499
  step: m
3445
3500
  };
3446
3501
  }
3447
- var Ti = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2;
3448
- function Ei(e, t) {
3502
+ var X = (e, t) => (e.band(t) ?? 0) + e.band.bandwidth() / 2;
3503
+ function Ai(e, t) {
3449
3504
  let n = t.side === "right" ? e.right : e.left;
3450
3505
  if (!n) throw Error(`ComboChart: no ${t.side} axis for "${t.key}"`);
3451
3506
  return n;
3452
3507
  }
3453
- function Di(e, t, n) {
3508
+ function ji(e, t, n) {
3454
3509
  return {
3455
3510
  horizontal: !1,
3456
3511
  stacked: !1,
@@ -3474,12 +3529,12 @@ function Di(e, t, n) {
3474
3529
  step: e.step
3475
3530
  };
3476
3531
  }
3477
- function Oi(e, t, n = "smooth") {
3532
+ function Mi(e, t, n = "smooth") {
3478
3533
  return t.map((t) => {
3479
- let r = Ei(e, t), i = Tn({
3534
+ let r = Ai(e, t), i = wn({
3480
3535
  y1: t.values,
3481
3536
  y0: t.values.map(() => r.base),
3482
- x: (t) => Ti(e, t),
3537
+ x: (t) => X(e, t),
3483
3538
  y: r.y,
3484
3539
  curve: n
3485
3540
  });
@@ -3490,11 +3545,11 @@ function Oi(e, t, n = "smooth") {
3490
3545
  };
3491
3546
  });
3492
3547
  }
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) {
3548
+ var Ni = (e, t, n) => e < t ? t - e : e > n ? e - n : 0, Pi = (e, t, n) => e.kind === "point" ? Math.hypot(e.x - t, e.y - n) : Math.hypot(Ni(t, e.across.lo, e.across.hi), Ni(n, e.along.lo, e.along.hi));
3549
+ function Fi(e, t, n) {
3495
3550
  let r = null, i = null;
3496
3551
  for (let a of e) {
3497
- let e = Ai(a, t, n);
3552
+ let e = Pi(a, t, n);
3498
3553
  (!i || e < i.d) && (i = {
3499
3554
  position: a.position,
3500
3555
  d: e
@@ -3507,7 +3562,7 @@ function ji(e, t, n) {
3507
3562
  }
3508
3563
  //#endregion
3509
3564
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-scene.ts
3510
- function Mi(e, t) {
3565
+ function Ii(e, t) {
3511
3566
  let n = Re(t).bars;
3512
3567
  return ["left", "right"].flatMap((t) => {
3513
3568
  let r = t === "left" ? e.left : e.right, i = n.flatMap((e, n) => e.side === t ? [{
@@ -3515,26 +3570,26 @@ function Mi(e, t) {
3515
3570
  i: n
3516
3571
  }] : []);
3517
3572
  return !r || i.length === 0 ? [] : [{
3518
- view: Di(e, r, i.map(({ i: t }) => e.cluster.offsets[t] ?? 0)),
3573
+ view: ji(e, r, i.map(({ i: t }) => e.cluster.offsets[t] ?? 0)),
3519
3574
  bars: i.map(({ bar: e }) => e),
3520
3575
  index: i.map(({ i: e }) => e)
3521
3576
  }];
3522
3577
  });
3523
3578
  }
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)));
3579
+ function Li(e, t, n) {
3580
+ return e.flatMap(({ view: e, bars: r, index: i }) => gi(e, r, t, (e) => n(i[e] ?? 0)));
3526
3581
  }
3527
- function Pi(e, t, n) {
3528
- return Array.from({ length: t }, (t, r) => Ni(e, r, (e) => n(r, e)));
3582
+ function Ri(e, t, n) {
3583
+ return Array.from({ length: t }, (t, r) => Li(e, r, (e) => n(r, e)));
3529
3584
  }
3530
- function Fi(e, t, n, r) {
3585
+ function zi(e, t, n, r) {
3531
3586
  let i = n.flatMap(({ series: t, y1: n }) => {
3532
3587
  let i = n[r];
3533
3588
  return i == null ? [] : [{
3534
3589
  kind: "point",
3535
3590
  position: t.position,
3536
- x: Ti(e, r),
3537
- y: Ei(e, t).y(i)
3591
+ x: X(e, r),
3592
+ y: Ai(e, t).y(i)
3538
3593
  }];
3539
3594
  }), a = t.map((e) => ({
3540
3595
  kind: "bar",
@@ -3546,7 +3601,7 @@ function Fi(e, t, n, r) {
3546
3601
  }
3547
3602
  //#endregion
3548
3603
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-scene.ts
3549
- function Ii(e, t) {
3604
+ function Bi(e, t) {
3550
3605
  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) => ({
3551
3606
  ...e,
3552
3607
  type: c.get(e.key)?.type ?? "line",
@@ -3555,7 +3610,7 @@ function Ii(e, t) {
3555
3610
  return {
3556
3611
  id: n,
3557
3612
  shown: l,
3558
- geo: wi({
3613
+ geo: ki({
3559
3614
  width: a,
3560
3615
  height: o,
3561
3616
  labels: e.labels,
@@ -3570,39 +3625,39 @@ function Ii(e, t) {
3570
3625
  })
3571
3626
  };
3572
3627
  }
3573
- function Li(e, t, { shown: n, geo: r }) {
3574
- let i = e.labels.length, a = X({
3575
- total: Math.max(W.lines, W.bars + K(i - 1, e.series.length - 1)),
3628
+ function Vi(e, t, { shown: n, geo: r }) {
3629
+ let i = e.labels.length, a = Y({
3630
+ total: Math.max(U.lines, U.bars + G(i - 1, e.series.length - 1)),
3576
3631
  animate: t.animate,
3577
3632
  replay: e.motionKey
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;
3633
+ }), o = Ri(Ii(r, n), i, (e, t) => Ir(K(a.elapsed, U.bars, G(e, t)))), { areas: s, lines: c } = Re(n), l = Mi(r, [...s, ...c], t.curve), u = e.nav.active, d = u ? n.find((e) => e.position === u.series)?.key : null;
3579
3634
  return {
3580
3635
  rows: o,
3581
3636
  paths: l,
3582
3637
  areaPaths: l.filter((e) => e.series.type === "area"),
3583
3638
  linePaths: l.filter((e) => e.series.type === "line"),
3584
- filled: mn(s.map((e) => e.key), n.length, d),
3585
- reveal: G(q(a.elapsed, W.lines)),
3586
- fade: G(q(a.elapsed, W.lines * .4, W.lines * .6)),
3639
+ filled: pn(s.map((e) => e.key), n.length, d),
3640
+ reveal: W(K(a.elapsed, U.lines)),
3641
+ fade: W(K(a.elapsed, U.lines * .4, U.lines * .6)),
3587
3642
  reduced: a.reduced,
3588
3643
  running: a.running,
3589
3644
  attributes: a.attributes
3590
3645
  };
3591
3646
  }
3592
- function Ri(e, { shown: t, geo: n }, r) {
3647
+ function Hi(e, { shown: t, geo: n }, r) {
3593
3648
  let { nav: i } = e;
3594
3649
  return (e, a, o) => {
3595
3650
  if (e === null || a === void 0 || o === void 0) return i.clear();
3596
- let s = ji(Fi(n, Ni(Mi(n, t), e, () => 1), r, e), o - n.m.left, a - n.m.top);
3651
+ let s = Fi(zi(n, Li(Ii(n, t), e, () => 1), r, e), o - n.m.left, a - n.m.top);
3597
3652
  i.pointTo(e, s ?? void 0);
3598
3653
  };
3599
3654
  }
3600
3655
  //#endregion
3601
3656
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-axes.tsx
3602
- function zi({ geo: e, grid: t }) {
3657
+ function Ui({ geo: e, grid: t }) {
3603
3658
  let { left: n, right: r, iw: i, ih: a } = e;
3604
3659
  return /* @__PURE__ */ N(j, { children: [
3605
- e.grid && /* @__PURE__ */ M(lr, {
3660
+ e.grid && /* @__PURE__ */ M(cr, {
3606
3661
  ticks: e.grid.ticks,
3607
3662
  y: e.grid.y,
3608
3663
  width: i,
@@ -3621,9 +3676,9 @@ function zi({ geo: e, grid: t }) {
3621
3676
  format: r.format,
3622
3677
  side: "right"
3623
3678
  }),
3624
- /* @__PURE__ */ M(ur, {
3679
+ /* @__PURE__ */ M(lr, {
3625
3680
  labels: e.labels,
3626
- xOf: (t) => Ti(e, t),
3681
+ xOf: (t) => X(e, t),
3627
3682
  baseline: a,
3628
3683
  step: e.step
3629
3684
  }),
@@ -3639,7 +3694,7 @@ function zi({ geo: e, grid: t }) {
3639
3694
  }
3640
3695
  //#endregion
3641
3696
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-marks.tsx
3642
- function Bi({ path: e, patterns: n }) {
3697
+ function Wi({ path: e, patterns: n }) {
3643
3698
  let r = e.series;
3644
3699
  return /* @__PURE__ */ M("g", {
3645
3700
  ...r.paint,
@@ -3650,7 +3705,7 @@ function Bi({ path: e, patterns: n }) {
3650
3705
  })
3651
3706
  });
3652
3707
  }
3653
- function Vi({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a }) {
3708
+ function Gi({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a }) {
3654
3709
  return /* @__PURE__ */ N("g", {
3655
3710
  "data-layer": "areas",
3656
3711
  children: [e.map(({ series: e, area: a }) => t.has(e.key) ? /* @__PURE__ */ M("g", {
@@ -3659,45 +3714,45 @@ function Vi({ paths: e, filled: t, fade: n, chartId: r, patterns: i, clip: a })
3659
3714
  children: /* @__PURE__ */ M("path", {
3660
3715
  d: a,
3661
3716
  "data-area": e.key,
3662
- fill: `url(#${i ? J(r, e.position) : Lr(r, e.position)})`
3717
+ fill: `url(#${i ? q(r, e.position) : Lr(r, e.position)})`
3663
3718
  })
3664
3719
  }, e.key) : null), /* @__PURE__ */ M("g", {
3665
3720
  clipPath: a,
3666
- children: e.map((e) => /* @__PURE__ */ M(Bi, {
3721
+ children: e.map((e) => /* @__PURE__ */ M(Wi, {
3667
3722
  path: e,
3668
3723
  patterns: i
3669
3724
  }, e.series.key))
3670
3725
  })]
3671
3726
  });
3672
3727
  }
3673
- function Hi({ paths: e, patterns: t, clip: n }) {
3728
+ function Ki({ paths: e, patterns: t, clip: n }) {
3674
3729
  return /* @__PURE__ */ M("g", {
3675
3730
  "data-layer": "lines",
3676
3731
  clipPath: n,
3677
- children: e.map((e) => /* @__PURE__ */ M(Bi, {
3732
+ children: e.map((e) => /* @__PURE__ */ M(Wi, {
3678
3733
  path: e,
3679
3734
  patterns: t
3680
3735
  }, e.series.key))
3681
3736
  });
3682
3737
  }
3683
- function Ui({ geo: e, paths: t, phone: n, patterns: r }) {
3738
+ function qi({ geo: e, paths: t, phone: n, patterns: r }) {
3684
3739
  return /* @__PURE__ */ M(j, { children: t.map((t) => /* @__PURE__ */ M(Xr, {
3685
3740
  geo: {
3686
- x: (t) => Ti(e, t),
3687
- y: Ei(e, t.series).y,
3741
+ x: (t) => X(e, t),
3742
+ y: Ai(e, t.series).y,
3688
3743
  bands: [t]
3689
3744
  },
3690
3745
  phone: n,
3691
3746
  patterns: r
3692
3747
  }, t.series.key)) });
3693
3748
  }
3694
- function Wi({ geo: e, paths: t, index: n, patterns: r }) {
3749
+ function Ji({ geo: e, paths: t, index: n, patterns: r }) {
3695
3750
  let i = Kr(String(n));
3696
3751
  return /* @__PURE__ */ M(j, { children: t.map(({ series: t, y1: a }) => {
3697
3752
  let o = a[n];
3698
3753
  return o == null ? null : /* @__PURE__ */ M(Jr, {
3699
- cx: Ti(e, n),
3700
- cy: Ei(e, t).y(o),
3754
+ cx: X(e, n),
3755
+ cy: Ai(e, t).y(o),
3701
3756
  paint: t.paint,
3702
3757
  morph: i,
3703
3758
  shape: r ? t.shape : void 0
@@ -3706,7 +3761,7 @@ function Wi({ geo: e, paths: t, index: n, patterns: r }) {
3706
3761
  }
3707
3762
  //#endregion
3708
3763
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-svg.tsx
3709
- function Gi({ model: e, props: n, layout: r, draw: i }) {
3764
+ function Yi({ model: e, props: n, layout: r, draw: i }) {
3710
3765
  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;
3711
3766
  return /* @__PURE__ */ N("svg", {
3712
3767
  width: c,
@@ -3715,7 +3770,7 @@ function Gi({ model: e, props: n, layout: r, draw: i }) {
3715
3770
  className: t(i.reduced && "nxgt-chart-fade"),
3716
3771
  ...i.attributes,
3717
3772
  children: [
3718
- /* @__PURE__ */ M(Y, {
3773
+ /* @__PURE__ */ M(J, {
3719
3774
  id: a,
3720
3775
  series: o,
3721
3776
  patterns: n.patterns
@@ -3729,17 +3784,17 @@ function Gi({ model: e, props: n, layout: r, draw: i }) {
3729
3784
  /* @__PURE__ */ N("g", {
3730
3785
  transform: `translate(${d.left},${d.top})`,
3731
3786
  children: [
3732
- /* @__PURE__ */ M(zi, {
3787
+ /* @__PURE__ */ M(Ui, {
3733
3788
  geo: s,
3734
3789
  grid: n.grid
3735
3790
  }),
3736
- p && s.grid && /* @__PURE__ */ M(gi, {
3737
- geo: Di(s, s.grid, []),
3791
+ p && s.grid && /* @__PURE__ */ M(xi, {
3792
+ geo: ji(s, s.grid, []),
3738
3793
  index: p.index
3739
3794
  }),
3740
3795
  /* @__PURE__ */ M("g", {
3741
3796
  "data-layer": "bars",
3742
- children: /* @__PURE__ */ M(hi, {
3797
+ children: /* @__PURE__ */ M(bi, {
3743
3798
  rows: i.rows,
3744
3799
  series: m,
3745
3800
  activeRow: h ? p?.index ?? null : null,
@@ -3748,7 +3803,7 @@ function Gi({ model: e, props: n, layout: r, draw: i }) {
3748
3803
  chartId: a
3749
3804
  })
3750
3805
  }),
3751
- /* @__PURE__ */ M(Vi, {
3806
+ /* @__PURE__ */ M(Gi, {
3752
3807
  paths: i.areaPaths,
3753
3808
  filled: i.filled,
3754
3809
  fade: i.fade,
@@ -3756,18 +3811,18 @@ function Gi({ model: e, props: n, layout: r, draw: i }) {
3756
3811
  patterns: n.patterns,
3757
3812
  clip: g
3758
3813
  }),
3759
- /* @__PURE__ */ M(Hi, {
3814
+ /* @__PURE__ */ M(Ki, {
3760
3815
  paths: i.linePaths,
3761
3816
  patterns: n.patterns,
3762
3817
  clip: g
3763
3818
  }),
3764
- /* @__PURE__ */ M(Ui, {
3819
+ /* @__PURE__ */ M(qi, {
3765
3820
  geo: s,
3766
3821
  paths: i.paths,
3767
3822
  phone: u,
3768
3823
  patterns: n.patterns
3769
3824
  }),
3770
- p && /* @__PURE__ */ M(Wi, {
3825
+ p && /* @__PURE__ */ M(Ji, {
3771
3826
  geo: s,
3772
3827
  paths: i.paths,
3773
3828
  index: p.index,
@@ -3780,18 +3835,18 @@ function Gi({ model: e, props: n, layout: r, draw: i }) {
3780
3835
  }
3781
3836
  //#endregion
3782
3837
  //#region lib/components/ui/widgets/native-charts/combo-chart/partials/combo-plot.tsx
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;
3838
+ function Xi({ model: e, props: t }) {
3839
+ let { nav: n } = e, r = Bi(e, t), i = Vi(e, t, r), a = Hi(e, r, i.paths), { geo: o } = r, s = n.active;
3785
3840
  return /* @__PURE__ */ N(V, {
3786
3841
  kind: "combo",
3787
3842
  title: t.title,
3788
3843
  status: e.status,
3789
3844
  onKeyDown: n.onKeyDown,
3790
- pointXs: e.labels.map((e, t) => o.m.left + Ti(o, t)),
3845
+ pointXs: e.labels.map((e, t) => o.m.left + X(o, t)),
3791
3846
  onPointer: a,
3792
3847
  onActivate: e.activate,
3793
3848
  children: [
3794
- /* @__PURE__ */ M(Gi, {
3849
+ /* @__PURE__ */ M(Yi, {
3795
3850
  model: e,
3796
3851
  props: t,
3797
3852
  layout: r,
@@ -3799,7 +3854,7 @@ function Ki({ model: e, props: t }) {
3799
3854
  }),
3800
3855
  ["left", "right"].map((t) => {
3801
3856
  let n = o[t], { width: r, height: i } = e.size;
3802
- return n && /* @__PURE__ */ M(cr, {
3857
+ return n && /* @__PURE__ */ M(sr, {
3803
3858
  side: t,
3804
3859
  margin: o.m,
3805
3860
  width: r,
@@ -3815,7 +3870,7 @@ function Ki({ model: e, props: t }) {
3815
3870
  }),
3816
3871
  s && /* @__PURE__ */ M(Er, {
3817
3872
  model: e,
3818
- x: o.m.left + Ti(o, s.index),
3873
+ x: o.m.left + X(o, s.index),
3819
3874
  gap: o.band.bandwidth() / 2 + 14,
3820
3875
  tooltip: t.tooltip
3821
3876
  })
@@ -3824,7 +3879,7 @@ function Ki({ model: e, props: t }) {
3824
3879
  }
3825
3880
  //#endregion
3826
3881
  //#region lib/components/ui/widgets/native-charts/combo-chart/use-combo-model.ts
3827
- function qi(e, t) {
3882
+ function Zi(e, t) {
3828
3883
  let { t: n } = i(), { series: r, yAxis: a, rightAxis: o } = e, s = O(() => r.some((e) => e.axis === "right") ? Ie(n, r, {
3829
3884
  left: a,
3830
3885
  right: o
@@ -3834,7 +3889,7 @@ function qi(e, t) {
3834
3889
  a,
3835
3890
  o
3836
3891
  ]);
3837
- return _n({
3892
+ return gn({
3838
3893
  ...e,
3839
3894
  data: t.rows
3840
3895
  }, "combo", {
@@ -3844,11 +3899,11 @@ function qi(e, t) {
3844
3899
  }
3845
3900
  //#endregion
3846
3901
  //#region lib/components/ui/widgets/native-charts/combo-chart/combo-chart.tsx
3847
- function Ji(e) {
3848
- let t = e, n = Un(t), r = qi(t, n), { series: i } = t, a = T((e) => {
3902
+ function Qi(e) {
3903
+ let t = e, n = Hn(t), r = Zi(t, n), { series: i } = t, a = T((e) => {
3849
3904
  let t = i.find((t) => t.key === e);
3850
3905
  return t ? Pe(t) : "left";
3851
- }, [i]), { model: o, shell: s } = Bn({
3906
+ }, [i]), { model: o, shell: s } = zn({
3852
3907
  model: r,
3853
3908
  zoom: n,
3854
3909
  props: t,
@@ -3859,12 +3914,12 @@ function Ji(e) {
3859
3914
  return /* @__PURE__ */ M(z, {
3860
3915
  model: o,
3861
3916
  props: t,
3862
- plotHeader: /* @__PURE__ */ M(Si, {
3917
+ plotHeader: /* @__PURE__ */ M(Di, {
3863
3918
  model: o,
3864
3919
  props: t
3865
3920
  }),
3866
3921
  ...s,
3867
- children: /* @__PURE__ */ M(Ki, {
3922
+ children: /* @__PURE__ */ M(Xi, {
3868
3923
  model: o,
3869
3924
  props: t
3870
3925
  })
@@ -3872,11 +3927,11 @@ function Ji(e) {
3872
3927
  }
3873
3928
  //#endregion
3874
3929
  //#region lib/components/ui/widgets/native-charts/core/funnel.ts
3875
- var Yi = (e) => Number.isFinite(e) && e > 0 ? e : 0;
3876
- function Xi(e) {
3877
- let t = Yi(e[0] ?? 0);
3930
+ var $i = (e) => Number.isFinite(e) && e > 0 ? e : 0;
3931
+ function ea(e) {
3932
+ let t = $i(e[0] ?? 0);
3878
3933
  return e.map((n, r) => {
3879
- let i = Yi(n), a = r === 0 ? 0 : Yi(e[r - 1] ?? 0), o = r === 0 || a === 0 ? null : i / a;
3934
+ let i = $i(n), a = r === 0 ? 0 : $i(e[r - 1] ?? 0), o = r === 0 || a === 0 ? null : i / a;
3880
3935
  return {
3881
3936
  ofFirst: t === 0 ? 0 : i / t,
3882
3937
  ofPrevious: o,
@@ -3885,7 +3940,7 @@ function Xi(e) {
3885
3940
  };
3886
3941
  });
3887
3942
  }
3888
- function Zi(e) {
3943
+ function ta(e) {
3889
3944
  let t = null, n = 0;
3890
3945
  return e.forEach((e, r) => {
3891
3946
  e.drop !== null && e.drop > n && (t = r, n = e.drop);
@@ -3897,7 +3952,7 @@ function Z(e, t) {
3897
3952
  maximumFractionDigits: 1
3898
3953
  }).format(e);
3899
3954
  }
3900
- function Qi(e, t) {
3955
+ function na(e, t) {
3901
3956
  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;
3902
3957
  return {
3903
3958
  bar: i,
@@ -3905,15 +3960,15 @@ function Qi(e, t) {
3905
3960
  height: n * (22 + i) + (n - 1) * 24
3906
3961
  };
3907
3962
  }
3908
- function $i(e, t, n = 16, r = 1) {
3963
+ function ra(e, t, n = 16, r = 1) {
3909
3964
  return r <= 0 ? 0 : Math.min(t, Math.max(n, e * t));
3910
3965
  }
3911
- function ea(e, t) {
3966
+ function ia(e, t) {
3912
3967
  return Math.min(kr(e), hr(8, t, 3));
3913
3968
  }
3914
3969
  //#endregion
3915
3970
  //#region lib/components/ui/widgets/native-charts/core/funnel-text.ts
3916
- function ta(e, t) {
3971
+ function aa(e, t) {
3917
3972
  let { steps: n, rates: r, language: i } = t, a = I(e, "funnel"), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
3918
3973
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
3919
3974
  title: t.title
@@ -3926,17 +3981,17 @@ function ta(e, t) {
3926
3981
  lastValue: c.value,
3927
3982
  share: Z(r[r.length - 1]?.ofFirst ?? 0, i)
3928
3983
  }));
3929
- let l = Zi(r), u = l === null ? void 0 : n[l - 1], d = l === null ? void 0 : n[l];
3984
+ let l = ta(r), u = l === null ? void 0 : n[l - 1], d = l === null ? void 0 : n[l];
3930
3985
  return l !== null && u && d && o.push(e("material.charts.summary.funnel-drop", "Biggest drop-off: {from} to {to}, {drop}.", {
3931
3986
  from: u.label,
3932
3987
  to: d.label,
3933
3988
  drop: Z(r[l]?.drop ?? 0, i)
3934
3989
  })), o.join(" ");
3935
3990
  }
3936
- function na(e, t, n) {
3991
+ function oa(e, t, n) {
3937
3992
  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) })}`;
3938
3993
  }
3939
- function ra(e, t, n) {
3994
+ function sa(e, t, n) {
3940
3995
  let r = Z(t.ofFirst, n);
3941
3996
  return t.growth === null ? t.drop === null ? e("material.charts.status-step", "{label}: {value}, {share} of the first step", {
3942
3997
  label: t.label,
@@ -3954,7 +4009,7 @@ function ra(e, t, n) {
3954
4009
  growth: Z(t.growth, n)
3955
4010
  });
3956
4011
  }
3957
- function ia(e, t, n, r) {
4012
+ function ca(e, t, n, r) {
3958
4013
  let i = (e) => Z(e, r);
3959
4014
  return Ge(e("material.charts.table-step", "Step"), t.map((e) => e.label), [
3960
4015
  {
@@ -3979,9 +4034,9 @@ function ia(e, t, n, r) {
3979
4034
  }
3980
4035
  //#endregion
3981
4036
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-marks.tsx
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, {
4037
+ var la = (e) => Math.ceil(nt(e, 12) + 22);
4038
+ function ua({ steps: e, layout: t, width: n, elapsed: r, active: i, patterns: a, chartId: o, language: s, chipText: c }) {
4039
+ return /* @__PURE__ */ M("g", { children: e.map((e, l) => /* @__PURE__ */ M(da, {
3985
4040
  step: e,
3986
4041
  index: l,
3987
4042
  top: t.tops[l] ?? 0,
@@ -3995,8 +4050,8 @@ function oa({ steps: e, layout: t, width: n, elapsed: r, active: i, patterns: a,
3995
4050
  chip: c(e)
3996
4051
  }, e.key)) });
3997
4052
  }
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;
4053
+ function da({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o, patterns: s, chartId: c, language: l, chip: u }) {
4054
+ let d = n + 22, f = ra(e.ofFirst, i, 16, e.value), p = Math.min(i, f * Ir(K(a, U.bars, G(t)))), m = o === t;
4000
4055
  return /* @__PURE__ */ N("g", {
4001
4056
  ...e.paint,
4002
4057
  "data-series": e.key,
@@ -4019,19 +4074,19 @@ function sa({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o
4019
4074
  })]
4020
4075
  }),
4021
4076
  /* @__PURE__ */ M("path", {
4022
- d: H(0, d, i, r, kr(r)),
4077
+ d: mr(0, d, i, r, kr(r)),
4023
4078
  className: "nxgt-chart-funnel-track"
4024
4079
  }),
4025
4080
  /* @__PURE__ */ M("path", {
4026
- d: H((i - p) / 2, d, p, r, ea(r, f)),
4081
+ d: mr((i - p) / 2, d, p, r, ia(r, f)),
4027
4082
  className: "nxgt-chart-funnel-bar",
4028
4083
  "data-step": t,
4029
4084
  "data-active": m || void 0,
4030
4085
  "data-dim": o !== null && !m || void 0,
4031
4086
  "data-pattern": s || void 0,
4032
- fill: s ? `url(#${J(c, e.position)})` : void 0
4087
+ fill: s ? `url(#${q(c, e.position)})` : void 0
4033
4088
  }),
4034
- u && /* @__PURE__ */ M(ca, {
4089
+ u && /* @__PURE__ */ M(fa, {
4035
4090
  text: u,
4036
4091
  x: i / 2,
4037
4092
  y: n - 24 + 2
@@ -4039,12 +4094,12 @@ function sa({ step: e, index: t, top: n, bar: r, width: i, elapsed: a, active: o
4039
4094
  ]
4040
4095
  });
4041
4096
  }
4042
- function ca({ text: e, x: t, y: n }) {
4043
- let r = aa(e);
4097
+ function fa({ text: e, x: t, y: n }) {
4098
+ let r = la(e);
4044
4099
  return /* @__PURE__ */ N("g", {
4045
4100
  className: "nxgt-chart-funnel-chip",
4046
4101
  transform: `translate(${t},${n})`,
4047
- children: [/* @__PURE__ */ M("path", { d: H(-r / 2, 0, r, 20, kr(20)) }), /* @__PURE__ */ M("text", {
4102
+ children: [/* @__PURE__ */ M("path", { d: mr(-r / 2, 0, r, 20, kr(20)) }), /* @__PURE__ */ M("text", {
4048
4103
  y: 14,
4049
4104
  textAnchor: "middle",
4050
4105
  children: e
@@ -4053,7 +4108,7 @@ function ca({ text: e, x: t, y: n }) {
4053
4108
  }
4054
4109
  //#endregion
4055
4110
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-tip.tsx
4056
- function la({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s }) {
4111
+ function pa({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s }) {
4057
4112
  let { t: c, language: l } = i();
4058
4113
  if (s === !1) return null;
4059
4114
  let u = e.growth !== null, d = u ? e.growth : e.drop, f = d === null ? [] : [{
@@ -4082,10 +4137,10 @@ function la({ step: e, point: t, x: n, top: r, width: a, phone: o, tooltip: s })
4082
4137
  }
4083
4138
  //#endregion
4084
4139
  //#region lib/components/ui/widgets/native-charts/funnel-chart/partials/funnel-plot.tsx
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({
4088
- total: W.bars + K(Math.max(0, a.length - 1)),
4140
+ var ma = 100;
4141
+ function ha({ model: e, props: n }) {
4142
+ let { size: r, steps: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: c, language: l } = i(), u = na(r.height, a.length), d = Y({
4143
+ total: U.bars + G(Math.max(0, a.length - 1)),
4089
4144
  animate: n.animate,
4090
4145
  replay: e.motionKey
4091
4146
  }), f = o.active?.index ?? null, p = f === null ? void 0 : a[f], m = a.map((e, t) => (u.tops[t] ?? 0) + 22 + u.bar / 2);
@@ -4106,11 +4161,11 @@ function da({ model: e, props: n }) {
4106
4161
  "aria-hidden": "true",
4107
4162
  "data-entering": d.running || void 0,
4108
4163
  className: t(d.reduced && "nxgt-chart-fade"),
4109
- children: [/* @__PURE__ */ M(Y, {
4164
+ children: [/* @__PURE__ */ M(J, {
4110
4165
  id: s,
4111
4166
  series: a,
4112
4167
  patterns: n.patterns
4113
- }), /* @__PURE__ */ M(oa, {
4168
+ }), /* @__PURE__ */ M(ua, {
4114
4169
  steps: a,
4115
4170
  layout: u,
4116
4171
  width: r.width,
@@ -4119,14 +4174,14 @@ function da({ model: e, props: n }) {
4119
4174
  patterns: n.patterns,
4120
4175
  chartId: s,
4121
4176
  language: l,
4122
- chipText: (e) => na(c, e, l)
4177
+ chipText: (e) => oa(c, e, l)
4123
4178
  })]
4124
- }), p && f !== null && /* @__PURE__ */ M(la, {
4179
+ }), p && f !== null && /* @__PURE__ */ M(pa, {
4125
4180
  step: p,
4126
4181
  point: e.toPoint(f),
4127
- x: Math.min(r.width / 2 + $i(p.ofFirst, r.width, 16, p.value) / 2, r.width - ua),
4182
+ x: Math.min(r.width / 2 + ra(p.ofFirst, r.width, 16, p.value) / 2, r.width - ma),
4128
4183
  top: u.tops[f] ?? 0,
4129
- width: r.width - ua,
4184
+ width: r.width - ma,
4130
4185
  phone: r.phone,
4131
4186
  tooltip: n.tooltip
4132
4187
  })]
@@ -4134,14 +4189,14 @@ function da({ model: e, props: n }) {
4134
4189
  }
4135
4190
  //#endregion
4136
4191
  //#region lib/components/ui/widgets/native-charts/core/slices.ts
4137
- var fa = Math.PI * 2, pa = .035;
4138
- function ma(e, t = pa) {
4192
+ var ga = Math.PI * 2, _a = .035;
4193
+ function va(e, t = _a) {
4139
4194
  let n = e.reduce((e, t) => e + t, 0);
4140
4195
  if (n <= 0) return [];
4141
4196
  let r = 0;
4142
4197
  return e.map((i) => {
4143
4198
  let a = i / n, o = r;
4144
- r += a * fa;
4199
+ r += a * ga;
4145
4200
  let s = r - o, c = e.length > 1 ? Math.min(t / 2, s / 6) : 0;
4146
4201
  return {
4147
4202
  from: o,
@@ -4153,31 +4208,31 @@ function ma(e, t = pa) {
4153
4208
  };
4154
4209
  });
4155
4210
  }
4156
- function ha(e, t) {
4211
+ function ya(e, t) {
4157
4212
  let n = Math.min(e.end, t);
4158
4213
  return n - e.start < .001 ? null : {
4159
4214
  start: e.start,
4160
4215
  end: n
4161
4216
  };
4162
4217
  }
4163
- function ga(e, t, n, r, i) {
4218
+ function ba(e, t, n, r, i) {
4164
4219
  let a = Math.hypot(t, n);
4165
4220
  if (a < r || a > i) return null;
4166
- let o = (Math.atan2(t, -n) + fa) % fa, s = e.findIndex((e) => o >= e.from && o < e.to);
4221
+ let o = (Math.atan2(t, -n) + ga) % ga, s = e.findIndex((e) => o >= e.from && o < e.to);
4167
4222
  return s < 0 ? null : s;
4168
4223
  }
4169
- function _a(e, t, n, r) {
4224
+ function xa(e, t, n, r) {
4170
4225
  let i = n * (r > 0 ? r : t / 2);
4171
4226
  return Math.max(0, Math.round(Math.min(e, t / 3, i / 3) * 100) / 100);
4172
4227
  }
4173
- function va(e, t) {
4228
+ function Q(e, t) {
4174
4229
  let n = +(e > 0 && e < .01);
4175
4230
  return new Intl.NumberFormat(t, {
4176
4231
  style: "percent",
4177
4232
  maximumFractionDigits: n
4178
4233
  }).format(e);
4179
4234
  }
4180
- function ya(e, t) {
4235
+ function Sa(e, t) {
4181
4236
  let { slices: n, hidden: r = [], largest: i = 3 } = t, a = I(e, t.kind), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
4182
4237
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
4183
4238
  title: t.title
@@ -4189,7 +4244,7 @@ function ya(e, t) {
4189
4244
  }
4190
4245
  //#endregion
4191
4246
  //#region lib/components/ui/widgets/native-charts/core/slice-model.ts
4192
- function ba(e, t, n, r) {
4247
+ function Ca(e, t, n, r) {
4193
4248
  let i = e.map((e, n) => ({
4194
4249
  s: e,
4195
4250
  dataIndex: n,
@@ -4206,7 +4261,7 @@ function ba(e, t, n, r) {
4206
4261
  }))
4207
4262
  };
4208
4263
  }
4209
- function xa(e) {
4264
+ function wa(e) {
4210
4265
  return e ? {
4211
4266
  seriesKey: e.key,
4212
4267
  seriesLabel: e.label,
@@ -4216,14 +4271,14 @@ function xa(e) {
4216
4271
  formatted: e.formatted
4217
4272
  } : null;
4218
4273
  }
4219
- function Sa(e, t, n) {
4274
+ function Ta(e, t, n) {
4220
4275
  return e("material.charts.status-slice", "{label}: {value}, {share}", {
4221
4276
  label: t.label,
4222
4277
  value: t.formatted,
4223
- share: va(t.share, n)
4278
+ share: Q(t.share, n)
4224
4279
  });
4225
4280
  }
4226
- function Ca(e, t, n, r) {
4281
+ function Ea(e, t, n, r) {
4227
4282
  return Ge(e("material.charts.table-slice", "Slice"), t.map((e) => e.label), [{
4228
4283
  key: "value",
4229
4284
  label: e("material.charts.table-value", "Value"),
@@ -4233,11 +4288,11 @@ function Ca(e, t, n, r) {
4233
4288
  key: "share",
4234
4289
  label: e("material.charts.table-share", "Share"),
4235
4290
  values: t.map((e) => e.share),
4236
- format: (e) => va(e, r)
4291
+ format: (e) => Q(e, r)
4237
4292
  }]);
4238
4293
  }
4239
- function wa(e, t) {
4240
- return ya(e, {
4294
+ function Da(e, t) {
4295
+ return Sa(e, {
4241
4296
  kind: t.kind,
4242
4297
  title: t.title,
4243
4298
  total: t.total,
@@ -4245,15 +4300,15 @@ function wa(e, t) {
4245
4300
  slices: t.slices.map((e) => ({
4246
4301
  label: e.label,
4247
4302
  value: e.formatted,
4248
- share: va(e.share, t.language),
4303
+ share: Q(e.share, t.language),
4249
4304
  raw: e.value
4250
4305
  }))
4251
4306
  });
4252
4307
  }
4253
4308
  //#endregion
4254
4309
  //#region lib/components/ui/widgets/native-charts/hooks/use-slice-model.ts
4255
- var Ta = (e) => e === "ArrowDown" ? "ArrowRight" : e === "ArrowUp" ? "ArrowLeft" : e;
4256
- function Ea(e, t = !1) {
4310
+ var Oa = (e) => e === "ArrowDown" ? "ArrowRight" : e === "ArrowUp" ? "ArrowLeft" : e;
4311
+ function ka(e, t = !1) {
4257
4312
  let { data: n } = e, r = O(() => Te(n.map(({ key: e, label: t, color: n, tone: r }) => ({
4258
4313
  key: e,
4259
4314
  label: t,
@@ -4263,7 +4318,7 @@ function Ea(e, t = !1) {
4263
4318
  return {
4264
4319
  resolved: r,
4265
4320
  keys: i,
4266
- visibility: gn({
4321
+ visibility: hn({
4267
4322
  keys: O(() => t ? i.filter((e, t) => {
4268
4323
  let r = n[t]?.value;
4269
4324
  return typeof r == "number" && Number.isFinite(r) && r > 0;
@@ -4278,19 +4333,19 @@ function Ea(e, t = !1) {
4278
4333
  })
4279
4334
  };
4280
4335
  }
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) => ({
4336
+ function Aa(e, t) {
4337
+ let { data: n, title: r } = e, { t: a, language: o } = i(), { resolved: s, keys: c, visibility: l } = ka(e, !0), u = R(e.height), d = e.format ?? F(o), f = Ca(s, n.map((e) => e.value), l.hidden, d), p = f.slices.map((e) => ({
4283
4338
  ...e,
4284
4339
  paint: P(e)
4285
- })), m = d(f.sum), h = (e) => xa(p[e]), g = un({
4340
+ })), m = d(f.sum), h = (e) => wa(p[e]), g = ln({
4286
4341
  count: p.length,
4287
4342
  visible: [0],
4288
- keyMap: Ta,
4343
+ keyMap: Oa,
4289
4344
  onActivate: ({ index: t }) => {
4290
4345
  let n = h(t);
4291
4346
  n && e.onPointClick?.(n);
4292
4347
  }
4293
- }), _ = wa(a, {
4348
+ }), _ = Da(a, {
4294
4349
  kind: t,
4295
4350
  title: r,
4296
4351
  total: m,
@@ -4306,9 +4361,9 @@ function Da(e, t) {
4306
4361
  nav: g,
4307
4362
  toPoint: h,
4308
4363
  summary: L(e.summary, _),
4309
- status: v && g.source === "key" ? Sa(a, v, o) : null,
4364
+ status: v && g.source === "key" ? Ta(a, v, o) : null,
4310
4365
  legendItems: Xe(s),
4311
- table: e.dataTable === !1 ? null : Ca(a, p, d, o),
4366
+ table: e.dataTable === !1 ? null : Ea(a, p, d, o),
4312
4367
  tableCaption: a("material.charts.table-caption", "{title}: the data", { title: r }),
4313
4368
  motionKey: c.join(","),
4314
4369
  empty: p.length === 0
@@ -4316,14 +4371,14 @@ function Da(e, t) {
4316
4371
  }
4317
4372
  //#endregion
4318
4373
  //#region lib/components/ui/widgets/native-charts/funnel-chart/use-funnel-model.ts
4319
- function Oa(e) {
4374
+ function ja(e) {
4320
4375
  let { data: t, title: n } = e, { t: r, language: a } = i(), o = O(() => Te(t.map(({ key: e, label: t, color: n, tone: r }) => ({
4321
4376
  key: e,
4322
4377
  label: t,
4323
4378
  color: n ?? 1,
4324
4379
  tone: r
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);
4380
+ }))), [t]), s = R(e.height), c = e.format ?? F(a), l = ea(t.map((e) => e.value)), u = l.map((e, n) => {
4381
+ let r = o[n], i = $i(t[n]?.value ?? 0);
4327
4382
  return {
4328
4383
  ...r,
4329
4384
  ...e,
@@ -4342,15 +4397,15 @@ function Oa(e) {
4342
4397
  value: t.value,
4343
4398
  formatted: t.formatted
4344
4399
  } : null;
4345
- }, f = un({
4400
+ }, f = ln({
4346
4401
  count: u.length,
4347
4402
  visible: [0],
4348
- keyMap: Ta,
4403
+ keyMap: Oa,
4349
4404
  onActivate: ({ index: t }) => {
4350
4405
  let n = d(t);
4351
4406
  n && e.onPointClick?.(n);
4352
4407
  }
4353
- }), p = ta(r, {
4408
+ }), p = aa(r, {
4354
4409
  title: n,
4355
4410
  rates: l,
4356
4411
  language: a,
@@ -4365,9 +4420,9 @@ function Oa(e) {
4365
4420
  nav: f,
4366
4421
  toPoint: d,
4367
4422
  summary: L(e.summary, p),
4368
- status: m && f.source === "key" ? ra(r, m, a) : null,
4423
+ status: m && f.source === "key" ? sa(r, m, a) : null,
4369
4424
  legendItems: [],
4370
- table: e.dataTable === !1 ? null : ia(r, u, c, a),
4425
+ table: e.dataTable === !1 ? null : ca(r, u, c, a),
4371
4426
  tableCaption: r("material.charts.table-caption", "{title}: the data", { title: n }),
4372
4427
  motionKey: o.map((e) => e.key).join(","),
4373
4428
  empty: t.length === 0
@@ -4375,15 +4430,15 @@ function Oa(e) {
4375
4430
  }
4376
4431
  //#endregion
4377
4432
  //#region lib/components/ui/widgets/native-charts/funnel-chart/funnel-chart.tsx
4378
- function ka(e) {
4379
- let t = Oa(e);
4433
+ function Ma(e) {
4434
+ let t = ja(e);
4380
4435
  return /* @__PURE__ */ M(z, {
4381
4436
  model: t,
4382
4437
  props: {
4383
4438
  ...e,
4384
4439
  legend: !1
4385
4440
  },
4386
- children: /* @__PURE__ */ M(da, {
4441
+ children: /* @__PURE__ */ M(ha, {
4387
4442
  model: t,
4388
4443
  props: e
4389
4444
  })
@@ -4391,42 +4446,42 @@ function ka(e) {
4391
4446
  }
4392
4447
  //#endregion
4393
4448
  //#region lib/components/ui/svg/arc-path.ts
4394
- function Q(e, t, n, r) {
4449
+ function Na(e, t, n, r) {
4395
4450
  return [h(e + n * Math.sin(r)), h(t - n * Math.cos(r))];
4396
4451
  }
4397
- function Aa(e, t, n, r, i) {
4452
+ function Pa(e, t, n, r, i) {
4398
4453
  let a = (n, r) => {
4399
- let [a, o] = Q(e, t, n, i), [s, c] = Q(e, t, n, i + Math.PI);
4454
+ let [a, o] = Na(e, t, n, i), [s, c] = Na(e, t, n, i + Math.PI);
4400
4455
  return `M${a} ${o}A${n} ${n} 0 1 ${r} ${s} ${c}A${n} ${n} 0 1 ${r} ${a} ${o}Z`;
4401
4456
  };
4402
4457
  return n > 0 ? a(r, 1) + a(n, 0) : a(r, 1);
4403
4458
  }
4404
- function ja(e, t, n, r, i, a) {
4459
+ function Fa(e, t, n, r, i, a) {
4405
4460
  if (r <= 0 || a <= i) return "";
4406
- if (a - i >= Math.PI * 2 - 1e-4) return Aa(e, t, n, r, i);
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}`;
4461
+ if (a - i >= Math.PI * 2 - 1e-4) return Pa(e, t, n, r, i);
4462
+ let o = a - i, s = i + o, c = +(o > Math.PI), [l, u] = Na(e, t, r, i), [d, f] = Na(e, t, r, s), p = `M${l} ${u}A${r} ${r} 0 ${c} 1 ${d} ${f}`;
4408
4463
  if (n <= 0) return `${p}L${h(e)} ${h(t)}Z`;
4409
- let [m, g] = Q(e, t, n, s), [_, v] = Q(e, t, n, i);
4464
+ let [m, g] = Na(e, t, n, s), [_, v] = Na(e, t, n, i);
4410
4465
  return `${p}L${m} ${g}A${n} ${n} 0 ${c} 0 ${_} ${v}Z`;
4411
4466
  }
4412
- function Ma(e, t, n, r) {
4467
+ function Ia(e, t, n, r) {
4413
4468
  let i = Math.min(e, (n - t) / 2 - .01);
4414
4469
  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;
4415
4470
  return i > .1 ? i : 0;
4416
4471
  }
4417
- function Na(e, t, n, r, i, a, o) {
4472
+ function La(e, t, n, r, i, a, o) {
4418
4473
  let s = a - i;
4419
4474
  if (r <= 0 || s <= 0) return "";
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);
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)}`;
4475
+ let c = Ia(o, n, r, s);
4476
+ if (c === 0 || s >= Math.PI * 2 - .001) return Fa(e, t, n, r, i, a);
4477
+ let l = (n, r) => Na(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)}`;
4423
4478
  if (n <= 0) return `${p}L${h(e)} ${h(t)}Z`;
4424
4479
  let m = Math.sqrt((n + c) ** 2 - c * c), g = Math.asin(c / (n + c)), _ = +(s - 2 * g > Math.PI);
4425
4480
  return `${p}L${l(m, a)}A${c} ${c} 0 0 1 ${l(n, a - g)}A${n} ${n} 0 ${_} 0 ${l(n, i + g)}A${c} ${c} 0 0 1 ${l(m, i)}Z`;
4426
4481
  }
4427
4482
  //#endregion
4428
4483
  //#region lib/components/ui/widgets/native-charts/core/gauge.ts
4429
- var Pa = {
4484
+ var Ra = {
4430
4485
  sm: {
4431
4486
  radius: 76,
4432
4487
  stroke: 12,
@@ -4442,19 +4497,19 @@ var Pa = {
4442
4497
  stroke: 16,
4443
4498
  font: 38
4444
4499
  }
4445
- }, Fa = Math.PI / 2;
4446
- function Ia(e, t, n) {
4500
+ }, za = Math.PI / 2;
4501
+ function Ba(e, t, n) {
4447
4502
  return !Number.isFinite(e) || !(n > t) ? 0 : Math.min(1, Math.max(0, (e - t) / (n - t)));
4448
4503
  }
4449
- var La = (e) => Math.min(8, e / 3);
4450
- function Ra(e, t, n, r, i) {
4504
+ var Va = (e) => Math.min(8, e / 3);
4505
+ function Ha(e, t, n, r, i) {
4451
4506
  let a = Math.PI * Math.min(1, Math.max(0, i));
4452
4507
  if (a <= 0) return "";
4453
4508
  let o = n - r / 2;
4454
- return Na(e, t, o, n + r / 2, -Fa, -Fa + a, _a(La(r), r, a, o));
4509
+ return La(e, t, o, n + r / 2, -za, -za + a, xa(Va(r), r, a, o));
4455
4510
  }
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;
4511
+ function Ua(e, t) {
4512
+ let n = Ra[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;
4458
4513
  return {
4459
4514
  width: o,
4460
4515
  height: Math.round(s + a / 2 + 22),
@@ -4463,24 +4518,24 @@ function za(e, t) {
4463
4518
  radius: r,
4464
4519
  stroke: a,
4465
4520
  font: Math.round(n.font * Math.min(1, Math.max(.75, i))),
4466
- track: Ra(o / 2, s, r, a, 1)
4521
+ track: Ha(o / 2, s, r, a, 1)
4467
4522
  };
4468
4523
  }
4469
- function Ba(e, t) {
4470
- return Ra(e.cx, e.cy, e.radius, e.stroke, t);
4524
+ function Wa(e, t) {
4525
+ return Ha(e.cx, e.cy, e.radius, e.stroke, t);
4471
4526
  }
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;
4527
+ var Ga = (e) => Math.max(2, e * .2), Ka = 2;
4528
+ function qa(e, t) {
4529
+ let n = Ga(e.stroke), r = Math.PI * Math.min(1, Math.max(0, t)), i = n + Ka;
4475
4530
  if (r * e.radius < 2 * i) return null;
4476
- let a = -Fa + r - i / e.radius;
4531
+ let a = -za + r - i / e.radius;
4477
4532
  return {
4478
4533
  r: n,
4479
4534
  x: e.cx + e.radius * Math.sin(a),
4480
4535
  y: e.cy - e.radius * Math.cos(a)
4481
4536
  };
4482
4537
  }
4483
- function Wa(e, t) {
4538
+ function Ja(e, t) {
4484
4539
  let n = I(e, "gauge");
4485
4540
  return e("material.charts.summary.gauge", "{kind}: {title}. {label}: {value}, on a scale from {min} to {max}.", {
4486
4541
  ...t,
@@ -4489,15 +4544,15 @@ function Wa(e, t) {
4489
4544
  }
4490
4545
  //#endregion
4491
4546
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-arcs.tsx
4492
- function Ga({ layout: e, fraction: t }) {
4493
- let n = Ua(e, t);
4547
+ function Ya({ layout: e, fraction: t }) {
4548
+ let n = qa(e, t);
4494
4549
  return /* @__PURE__ */ N(j, { children: [
4495
4550
  /* @__PURE__ */ M("path", {
4496
4551
  d: e.track,
4497
4552
  className: "nxgt-chart-gauge-track"
4498
4553
  }),
4499
4554
  /* @__PURE__ */ M("path", {
4500
- d: Ba(e, t),
4555
+ d: Wa(e, t),
4501
4556
  className: "nxgt-chart-gauge-arc",
4502
4557
  "data-slot": "chart-gauge-arc"
4503
4558
  }),
@@ -4511,7 +4566,7 @@ function Ga({ layout: e, fraction: t }) {
4511
4566
  }
4512
4567
  //#endregion
4513
4568
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-labels.tsx
4514
- function Ka({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4569
+ function Xa({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4515
4570
  let o = e.cy + e.stroke / 2 + 15;
4516
4571
  return /* @__PURE__ */ N(j, { children: [
4517
4572
  /* @__PURE__ */ M("text", {
@@ -4548,12 +4603,12 @@ function Ka({ layout: e, value: t, min: n, max: r, hint: i, hintId: a }) {
4548
4603
  }
4549
4604
  //#endregion
4550
4605
  //#region lib/components/ui/widgets/native-charts/gauge/partials/gauge-plot.tsx
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({
4553
- total: W.sweep,
4606
+ function Za({ model: e, props: n }) {
4607
+ let { size: r, fraction: i, value: a, reading: o, min: s, max: c, format: l } = e, u = Ua(n.size ?? "md", r.width), d = D(), f = Y({
4608
+ total: U.sweep,
4554
4609
  animate: n.animate,
4555
4610
  replay: "gauge"
4556
- }), p = G(f.progress);
4611
+ }), p = W(f.progress);
4557
4612
  return /* @__PURE__ */ M("div", {
4558
4613
  role: "meter",
4559
4614
  tabIndex: 0,
@@ -4572,10 +4627,10 @@ function qa({ model: e, props: n }) {
4572
4627
  "aria-hidden": "true",
4573
4628
  "data-entering": f.running || void 0,
4574
4629
  className: t(f.reduced && "nxgt-chart-fade"),
4575
- children: [/* @__PURE__ */ M(Ga, {
4630
+ children: [/* @__PURE__ */ M(Ya, {
4576
4631
  layout: u,
4577
4632
  fraction: i * p
4578
- }), /* @__PURE__ */ M(Ka, {
4633
+ }), /* @__PURE__ */ M(Xa, {
4579
4634
  layout: u,
4580
4635
  value: l(s + (o - s) * p),
4581
4636
  min: l(s),
@@ -4588,10 +4643,10 @@ function qa({ model: e, props: n }) {
4588
4643
  }
4589
4644
  //#endregion
4590
4645
  //#region lib/components/ui/widgets/native-charts/gauge/use-gauge-model.ts
4591
- function Ja(e) {
4646
+ function Qa(e) {
4592
4647
  let { t, language: r } = i(), { label: a, title: o } = e, [s, c] = [e.min ?? 0, e.max ?? 100];
4593
4648
  s > c && n(`min (${s}) is above max (${c}); the scale is read from ${c} to ${s}.`, "Gauge");
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, {
4649
+ let [l, u] = s > c ? [c, s] : [s, c], d = e.format ?? F(r), f = Ba(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 = Ja(t, {
4595
4650
  title: o,
4596
4651
  label: a,
4597
4652
  value: d(m),
@@ -4628,63 +4683,63 @@ function Ja(e) {
4628
4683
  }
4629
4684
  //#endregion
4630
4685
  //#region lib/components/ui/widgets/native-charts/gauge/gauge.tsx
4631
- function Ya(e) {
4632
- let t = Ja(e);
4686
+ function $a(e) {
4687
+ let t = Qa(e);
4633
4688
  return /* @__PURE__ */ M(z, {
4634
4689
  model: t,
4635
4690
  props: {
4636
4691
  ...e,
4637
4692
  legend: !1
4638
4693
  },
4639
- children: /* @__PURE__ */ M(qa, {
4694
+ children: /* @__PURE__ */ M(Za, {
4640
4695
  model: t,
4641
4696
  props: e
4642
4697
  })
4643
4698
  });
4644
4699
  }
4645
- function Xa(e) {
4700
+ function eo(e) {
4646
4701
  return e === void 0 || !Number.isFinite(e) ? 5 : Math.min(9, Math.max(2, Math.round(e)));
4647
4702
  }
4648
- function Za(e) {
4703
+ function to(e) {
4649
4704
  let t = e.filter((e) => e !== null);
4650
4705
  return [Math.min(0, ...t), Math.max(0, ...t)];
4651
4706
  }
4652
- function Qa(e, [t, n], r) {
4707
+ function no(e, [t, n], r) {
4653
4708
  if (n <= t) return 0;
4654
4709
  let i = (e - t) / (n - t);
4655
4710
  return Math.min(r - 1, Math.max(0, Math.floor(i * r)));
4656
4711
  }
4657
- var $a = 4, eo = 22;
4658
- function to(e, t) {
4712
+ var ro = 4, io = 22;
4713
+ function ao(e, t) {
4659
4714
  return Math.min(t ? 64 : 84, Math.ceil(rt(e)) + 12);
4660
4715
  }
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)));
4716
+ function oo(e, t, n, r, i) {
4717
+ let a = Math.max(0, e - i), o = Math.max(1, (a - (r - 1) * ro) / Math.max(1, r)), s = (t - io - (n - 1) * ro) / Math.max(1, n), c = Math.min(o, Math.max(16, Math.min(36, s)));
4663
4718
  return {
4664
4719
  left: i,
4665
4720
  cell: {
4666
4721
  width: o,
4667
4722
  height: c
4668
4723
  },
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))),
4724
+ gap: ro,
4725
+ axis: io,
4726
+ height: Math.round(n * c + (n - 1) * ro + io),
4727
+ stride: Math.max(1, Math.ceil(30 / (o + ro))),
4673
4728
  showValues: o >= 34 && c >= 22,
4674
4729
  radius: kr(Math.min(o, c))
4675
4730
  };
4676
4731
  }
4677
- function ro(e, t, n) {
4732
+ function so(e, t, n) {
4678
4733
  return {
4679
4734
  x: e.left + n * (e.cell.width + e.gap),
4680
4735
  y: t * (e.cell.height + e.gap)
4681
4736
  };
4682
4737
  }
4683
- function io(e, t, n, r, i) {
4738
+ function co(e, t, n, r, i) {
4684
4739
  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);
4685
4740
  return s < 0 || s >= n || c < 0 || c >= t ? null : c * n + s;
4686
4741
  }
4687
- function ao(e, t) {
4742
+ function lo(e, t) {
4688
4743
  let n = I(e, "heatmap"), r = [e("material.charts.summary.intro", "{kind}: {title}.", {
4689
4744
  kind: n.charAt(0).toLocaleUpperCase() + n.slice(1),
4690
4745
  title: t.title
@@ -4703,60 +4758,60 @@ function ao(e, t) {
4703
4758
  }
4704
4759
  return r.join(" ");
4705
4760
  }
4706
- function oo({ model: e, frame: t, elapsed: n, active: r }) {
4761
+ function uo({ model: e, frame: t, elapsed: n, active: r }) {
4707
4762
  let { values: i, rows: a, columns: o, steps: s, domain: c, format: l } = e;
4708
4763
  return /* @__PURE__ */ N("g", {
4709
4764
  className: "nxgt-chart-heat-cells",
4710
4765
  "data-steps": s,
4711
4766
  ...e.paint,
4712
4767
  children: [
4713
- /* @__PURE__ */ M(so, {
4768
+ /* @__PURE__ */ M(fo, {
4714
4769
  frame: t,
4715
4770
  rows: a,
4716
4771
  columns: o
4717
4772
  }),
4718
4773
  i.map((e, r) => e.map((e, i) => {
4719
- let a = e === null ? void 0 : Qa(e, c, s);
4720
- return /* @__PURE__ */ M(co, {
4774
+ let a = e === null ? void 0 : no(e, c, s);
4775
+ return /* @__PURE__ */ M(po, {
4721
4776
  frame: t,
4722
4777
  at: [r, i],
4723
4778
  step: a,
4724
4779
  text: e === null ? null : l(e),
4725
- opacity: q(n, 300, (r + i) * 20)
4780
+ opacity: K(n, 300, (r + i) * 20)
4726
4781
  }, `${r}-${i}`);
4727
4782
  })),
4728
- r && /* @__PURE__ */ M(lo, {
4783
+ r && /* @__PURE__ */ M(mo, {
4729
4784
  frame: t,
4730
4785
  ...r
4731
4786
  })
4732
4787
  ]
4733
4788
  });
4734
4789
  }
4735
- function so({ frame: e, rows: t, columns: n }) {
4790
+ function fo({ frame: e, rows: t, columns: n }) {
4736
4791
  let r = Math.max(3, it(e.left - 12)), { width: i, height: a } = e.cell, o = t.length * (a + e.gap) - e.gap;
4737
4792
  return /* @__PURE__ */ N("g", {
4738
4793
  className: "nxgt-chart-axis",
4739
4794
  children: [t.map((t, n) => /* @__PURE__ */ M("text", {
4740
4795
  x: e.left - 8,
4741
- y: ro(e, n, 0).y + a / 2,
4796
+ y: so(e, n, 0).y + a / 2,
4742
4797
  dy: "0.32em",
4743
4798
  textAnchor: "end",
4744
- children: U(t, r)
4799
+ children: H(t, r)
4745
4800
  }, `${n}-${t}`)), n.map((t, n) => n % e.stride ? null : /* @__PURE__ */ M("text", {
4746
- x: ro(e, 0, n).x + i / 2,
4801
+ x: so(e, 0, n).x + i / 2,
4747
4802
  y: o + 16,
4748
4803
  textAnchor: "middle",
4749
4804
  children: t
4750
4805
  }, `${n}-${t}`))]
4751
4806
  });
4752
4807
  }
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;
4808
+ function po({ frame: e, at: [t, n], step: r, text: i, opacity: a }) {
4809
+ let { x: o, y: s } = so(e, t, n), { width: c, height: l } = e.cell;
4755
4810
  return /* @__PURE__ */ N("g", {
4756
4811
  opacity: a,
4757
4812
  "data-cell": `${t}-${n}`,
4758
4813
  children: [/* @__PURE__ */ M("path", {
4759
- d: H(o, s, c, l, e.radius),
4814
+ d: mr(o, s, c, l, e.radius),
4760
4815
  className: "nxgt-chart-heat",
4761
4816
  "data-heat": r,
4762
4817
  "data-empty": i === null || void 0
@@ -4771,21 +4826,21 @@ function co({ frame: e, at: [t, n], step: r, text: i, opacity: a }) {
4771
4826
  })]
4772
4827
  });
4773
4828
  }
4774
- function lo({ frame: e, row: t, column: n }) {
4775
- let { x: r, y: i } = ro(e, t, n);
4829
+ function mo({ frame: e, row: t, column: n }) {
4830
+ let { x: r, y: i } = so(e, t, n);
4776
4831
  return /* @__PURE__ */ M("path", {
4777
- d: H(r - 2, i - 2, e.cell.width + 4, e.cell.height + 4, e.radius + 2),
4832
+ d: mr(r - 2, i - 2, e.cell.width + 4, e.cell.height + 4, e.radius + 2),
4778
4833
  className: "nxgt-chart-heat-active"
4779
4834
  });
4780
4835
  }
4781
4836
  //#endregion
4782
4837
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-tip.tsx
4783
- function uo({ model: e, frame: t, tooltip: n }) {
4838
+ function ho({ model: e, frame: t, tooltip: n }) {
4784
4839
  let { size: r } = e, { active: i } = e.nav;
4785
4840
  if (!i || n === !1) return null;
4786
4841
  let a = e.values[i.row]?.[i.column], o = e.toPoint(i.row, i.column);
4787
4842
  if (a == null) return null;
4788
- let s = ro(t, i.row, i.column);
4843
+ let s = so(t, i.row, i.column);
4789
4844
  return /* @__PURE__ */ M(Tr, {
4790
4845
  mode: r.phone ? "sheet" : "float",
4791
4846
  x: s.x + t.cell.width / 2,
@@ -4806,8 +4861,8 @@ function uo({ model: e, frame: t, tooltip: n }) {
4806
4861
  }
4807
4862
  //#endregion
4808
4863
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-plot.tsx
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({
4864
+ function go({ model: e, props: n }) {
4865
+ let { size: r, rows: i, columns: a, nav: o } = e, s = oo(r.width, r.height, i.length, a.length, ao(i, r.phone)), c = Y({
4811
4866
  total: 300 + (i.length + a.length) * 20,
4812
4867
  animate: n.animate,
4813
4868
  replay: e.motionKey
@@ -4817,7 +4872,7 @@ function fo({ model: e, props: n }) {
4817
4872
  title: n.title,
4818
4873
  status: e.status,
4819
4874
  onKeyDown: o.onKeyDown,
4820
- locate: (e, t) => io(s, i.length, a.length, e, t),
4875
+ locate: (e, t) => co(s, i.length, a.length, e, t),
4821
4876
  onPointer: (e) => o.pointTo(e),
4822
4877
  onActivate: () => {
4823
4878
  let t = l && e.toPoint(l.row, l.column);
@@ -4829,13 +4884,13 @@ function fo({ model: e, props: n }) {
4829
4884
  "aria-hidden": "true",
4830
4885
  "data-entering": c.running || void 0,
4831
4886
  className: t(c.reduced && "nxgt-chart-fade"),
4832
- children: /* @__PURE__ */ M(oo, {
4887
+ children: /* @__PURE__ */ M(uo, {
4833
4888
  model: e,
4834
4889
  frame: s,
4835
4890
  elapsed: c.elapsed,
4836
4891
  active: l
4837
4892
  })
4838
- }), /* @__PURE__ */ M(uo, {
4893
+ }), /* @__PURE__ */ M(ho, {
4839
4894
  model: e,
4840
4895
  frame: s,
4841
4896
  tooltip: n.tooltip
@@ -4844,7 +4899,7 @@ function fo({ model: e, props: n }) {
4844
4899
  }
4845
4900
  //#endregion
4846
4901
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/partials/heat-scale.tsx
4847
- function po({ model: e }) {
4902
+ function _o({ model: e }) {
4848
4903
  let { t } = i(), [n, r] = e.domain, a = t("material.charts.heat-scale", "Colour scale, from {min} (lightest) to {max} (darkest)", {
4849
4904
  min: e.format(n),
4850
4905
  max: e.format(r)
@@ -4875,7 +4930,7 @@ function po({ model: e }) {
4875
4930
  }
4876
4931
  //#endregion
4877
4932
  //#region lib/components/ui/widgets/native-charts/core/heat-model.ts
4878
- function mo(e, t, n, r) {
4933
+ function vo(e, t, n, r) {
4879
4934
  let i = e.values[t]?.[n], a = e.columns[n];
4880
4935
  return i == null || !a ? null : {
4881
4936
  seriesKey: a.key,
@@ -4887,17 +4942,17 @@ function mo(e, t, n, r) {
4887
4942
  row: e.data[t]
4888
4943
  };
4889
4944
  }
4890
- function ho(e, t, n) {
4945
+ function yo(e, t, n) {
4891
4946
  return `${e.rows[t] ?? ""}, ${e.columns[n]?.label ?? ""}`;
4892
4947
  }
4893
- function go(e, t, n, r) {
4948
+ function bo(e, t, n, r) {
4894
4949
  return e("material.charts.status-cell", "{row}, {column}: {value}", {
4895
4950
  row: t.rows[n.row] ?? "",
4896
4951
  column: t.columns[n.column]?.label ?? "",
4897
4952
  value: Ne(t.values[n.row]?.[n.column], r)
4898
4953
  });
4899
4954
  }
4900
- function _o(e, t, n) {
4955
+ function xo(e, t, n) {
4901
4956
  return Ge(e, t.rows, t.columns.map((e, r) => ({
4902
4957
  key: e.key,
4903
4958
  label: e.label,
@@ -4907,7 +4962,7 @@ function _o(e, t, n) {
4907
4962
  }
4908
4963
  //#endregion
4909
4964
  //#region lib/components/ui/widgets/native-charts/core/heat-keys.ts
4910
- function vo(e, t, { rows: n, columns: r }, i = !1) {
4965
+ function So(e, t, { rows: n, columns: r }, i = !1) {
4911
4966
  let a = {
4912
4967
  state: e,
4913
4968
  handled: !1,
@@ -4948,13 +5003,13 @@ function vo(e, t, { rows: n, columns: r }, i = !1) {
4948
5003
  }
4949
5004
  //#endregion
4950
5005
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/use-heat-nav.ts
4951
- function yo({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
5006
+ function Co({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4952
5007
  let [i, a] = A(null), [o, s] = A("key"), c = i && i.row < e && i.column < t ? i : null;
4953
5008
  return {
4954
5009
  active: c,
4955
5010
  source: o,
4956
5011
  onKeyDown: (i) => {
4957
- let o = vo(c, i.key, {
5012
+ let o = So(c, i.key, {
4958
5013
  rows: e,
4959
5014
  columns: t
4960
5015
  }, i.ctrlKey || i.metaKey);
@@ -4976,7 +5031,7 @@ function yo({ rows: e, columns: t, toPoint: n, onPointClick: r }) {
4976
5031
  }
4977
5032
  //#endregion
4978
5033
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/use-heatmap-model.ts
4979
- function bo(e) {
5034
+ function wo(e) {
4980
5035
  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 = {
4981
5036
  rows: u.length,
4982
5037
  columns: r.length
@@ -4985,15 +5040,15 @@ function bo(e) {
4985
5040
  columns: r,
4986
5041
  values: f,
4987
5042
  data: t
4988
- }, h = (e, t) => mo(m, e, t, l), g = f.flatMap((e, t) => e.flatMap((e, n) => e === null ? [] : [{
5043
+ }, h = (e, t) => vo(m, e, t, l), g = f.flatMap((e, t) => e.flatMap((e, n) => e === null ? [] : [{
4989
5044
  value: e,
4990
5045
  formatted: l(e),
4991
- at: ho(m, t, n)
4992
- }])), _ = yo({
5046
+ at: yo(m, t, n)
5047
+ }])), _ = Co({
4993
5048
  ...p,
4994
5049
  toPoint: h,
4995
5050
  onPointClick: e.onPointClick
4996
- }), v = ao(o, {
5051
+ }), v = lo(o, {
4997
5052
  title: a,
4998
5053
  ...p,
4999
5054
  cells: g
@@ -5004,16 +5059,16 @@ function bo(e) {
5004
5059
  columns: d,
5005
5060
  values: f,
5006
5061
  format: l,
5007
- steps: Xa(e.steps),
5008
- domain: Za(f.flat()),
5062
+ steps: eo(e.steps),
5063
+ domain: to(f.flat()),
5009
5064
  paint: P({ tone: e.tone }),
5010
5065
  nav: _,
5011
5066
  toPoint: h,
5012
- cellTitle: (e, t) => ho(m, e, t),
5067
+ cellTitle: (e, t) => yo(m, e, t),
5013
5068
  summary: L(e.summary, v),
5014
- status: y && _.source === "key" ? go(o, m, y, l) : null,
5069
+ status: y && _.source === "key" ? bo(o, m, y, l) : null,
5015
5070
  legendItems: [],
5016
- table: e.dataTable === !1 ? null : _o(Ke(o, e.categoryLabel), m, l),
5071
+ table: e.dataTable === !1 ? null : xo(Ke(o, e.categoryLabel), m, l),
5017
5072
  tableCaption: o("material.charts.table-caption", "{title}: the data", { title: a }),
5018
5073
  motionKey: `${u.length}x${r.length}`,
5019
5074
  empty: t.length === 0 || r.length === 0
@@ -5021,16 +5076,16 @@ function bo(e) {
5021
5076
  }
5022
5077
  //#endregion
5023
5078
  //#region lib/components/ui/widgets/native-charts/heatmap-chart/heatmap-chart.tsx
5024
- function xo(e) {
5025
- let t = bo(e);
5079
+ function To(e) {
5080
+ let t = wo(e);
5026
5081
  return /* @__PURE__ */ M(z, {
5027
5082
  model: t,
5028
5083
  props: {
5029
5084
  ...e,
5030
5085
  legend: e.legend ?? "bottom"
5031
5086
  },
5032
- legend: /* @__PURE__ */ M(po, { model: t }),
5033
- children: /* @__PURE__ */ M(fo, {
5087
+ legend: /* @__PURE__ */ M(_o, { model: t }),
5088
+ children: /* @__PURE__ */ M(go, {
5034
5089
  model: t,
5035
5090
  props: e
5036
5091
  })
@@ -5038,22 +5093,22 @@ function xo(e) {
5038
5093
  }
5039
5094
  //#endregion
5040
5095
  //#region lib/components/ui/widgets/native-charts/line-chart/line-chart.tsx
5041
- function So(e) {
5042
- return /* @__PURE__ */ M(ci, {
5096
+ function Eo(e) {
5097
+ return /* @__PURE__ */ M(pi, {
5043
5098
  ...e,
5044
5099
  kind: "line"
5045
5100
  });
5046
5101
  }
5047
- var Co = .6;
5048
- function wo(e, t, n) {
5102
+ var Do = .6;
5103
+ function Oo(e, t, n) {
5049
5104
  let r = Math.max(0, Math.min(e, t)), i = Math.max(0, r / 2 - 8);
5050
5105
  return {
5051
5106
  size: r,
5052
5107
  outer: i,
5053
- inner: n ? i * Co : 0
5108
+ inner: n ? i * Do : 0
5054
5109
  };
5055
5110
  }
5056
- function To(e, t) {
5111
+ function ko(e, t) {
5057
5112
  let n = e.size / 2, r = e.outer + 6, i = Math.sin(t.mid) < 0;
5058
5113
  return {
5059
5114
  x: n + (i ? -r : r),
@@ -5064,14 +5119,14 @@ function To(e, t) {
5064
5119
  }
5065
5120
  //#endregion
5066
5121
  //#region lib/components/ui/widgets/native-charts/pie-chart/use-pop.ts
5067
- function Eo(e) {
5068
- return 6 * Ir(Ur(Gr() ? null : e, W.morph) / W.morph);
5122
+ function Ao(e) {
5123
+ return 6 * Ir(Ur(Gr() ? null : e, U.morph) / U.morph);
5069
5124
  }
5070
5125
  //#endregion
5071
5126
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/donut-center.tsx
5072
- function Do({ diameter: t, center: n, caption: r }) {
5127
+ function jo({ diameter: t, center: n, caption: r }) {
5073
5128
  let i = k(null);
5074
- return Kn(i, { "--nxgt-chart-donut-d": t }), /* @__PURE__ */ N("div", {
5129
+ return Gn(i, { "--nxgt-chart-donut-d": t }), /* @__PURE__ */ N("div", {
5075
5130
  ref: i,
5076
5131
  "aria-hidden": "true",
5077
5132
  className: "nxgt-chart-donut-center",
@@ -5087,25 +5142,25 @@ function Do({ diameter: t, center: n, caption: r }) {
5087
5142
  }
5088
5143
  //#endregion
5089
5144
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-marks.tsx
5090
- function Oo({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patterns: o, chartId: s }) {
5145
+ function Mo({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patterns: o, chartId: s }) {
5091
5146
  let c = n.size / 2;
5092
5147
  return /* @__PURE__ */ M("g", {
5093
5148
  transform: `translate(${c},${c})`,
5094
5149
  children: e.map((e, c) => {
5095
- let l = t[c], u = l && ha(l, r);
5150
+ let l = t[c], u = l && ya(l, r);
5096
5151
  if (!l || !u) return null;
5097
- let d = i === c, f = n.outer + (d ? a : 0), p = _a(8, f - n.inner, l.end - l.start, n.inner);
5152
+ let d = i === c, f = n.outer + (d ? a : 0), p = xa(8, f - n.inner, l.end - l.start, n.inner);
5098
5153
  return /* @__PURE__ */ M("g", {
5099
5154
  ...e.paint,
5100
5155
  "data-series": e.key,
5101
5156
  children: /* @__PURE__ */ M("path", {
5102
- d: Na(0, 0, n.inner, f, u.start, u.end, p),
5157
+ d: La(0, 0, n.inner, f, u.start, u.end, p),
5103
5158
  className: "nxgt-chart-slice",
5104
5159
  "data-slice": c,
5105
5160
  "data-active": d || void 0,
5106
5161
  "data-dim": i !== null && !d || void 0,
5107
5162
  "data-pattern": o || void 0,
5108
- fill: o ? `url(#${J(s, e.position)})` : void 0
5163
+ fill: o ? `url(#${q(s, e.position)})` : void 0
5109
5164
  })
5110
5165
  }, e.key);
5111
5166
  })
@@ -5113,7 +5168,7 @@ function Oo({ slices: e, layout: t, frame: n, sweep: r, active: i, pop: a, patte
5113
5168
  }
5114
5169
  //#endregion
5115
5170
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-tip.tsx
5116
- function ko({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o, tooltip: s }) {
5171
+ function No({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o, tooltip: s }) {
5117
5172
  return s === !1 ? null : /* @__PURE__ */ M(Tr, {
5118
5173
  mode: r ? "sheet" : "float",
5119
5174
  x: n.x,
@@ -5133,35 +5188,35 @@ function ko({ slice: e, point: t, spot: n, phone: r, width: i, min: a, share: o,
5133
5188
  })
5134
5189
  });
5135
5190
  }
5136
- function Ao({ model: e, frame: t, layout: n, tooltip: r }) {
5191
+ function Po({ model: e, frame: t, layout: n, tooltip: r }) {
5137
5192
  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];
5138
5193
  if (!s || !c || o === void 0) return null;
5139
5194
  let { size: l } = e, u = (l.width - t.size) / 2;
5140
- return /* @__PURE__ */ M(ko, {
5195
+ return /* @__PURE__ */ M(No, {
5141
5196
  slice: s,
5142
5197
  point: e.toPoint(o),
5143
- spot: To(t, c),
5198
+ spot: ko(t, c),
5144
5199
  phone: l.phone,
5145
5200
  width: l.width - u,
5146
5201
  min: -u,
5147
- share: va(s.share, a),
5202
+ share: Q(s.share, a),
5148
5203
  tooltip: r
5149
5204
  });
5150
5205
  }
5151
5206
  //#endregion
5152
5207
  //#region lib/components/ui/widgets/native-charts/pie-chart/partials/slice-plot.tsx
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({
5155
- total: W.sweep,
5208
+ function Fo({ model: e, props: n, donut: r }) {
5209
+ let { size: a, slices: o, nav: s } = e, c = D().replace(/[^a-zA-Z0-9-]/g, ""), { t: l } = i(), u = Oo(a.width, a.height, r), d = va(o.map((e) => e.value)), f = Y({
5210
+ total: U.sweep,
5156
5211
  animate: n.animate,
5157
5212
  replay: e.motionKey
5158
- }), p = s.active?.index ?? null, m = Eo(p === null ? null : o[p]?.key ?? null);
5213
+ }), p = s.active?.index ?? null, m = Ao(p === null ? null : o[p]?.key ?? null);
5159
5214
  return /* @__PURE__ */ N(V, {
5160
5215
  kind: r ? "donut" : "pie",
5161
5216
  title: n.title,
5162
5217
  status: e.status,
5163
5218
  onKeyDown: s.onKeyDown,
5164
- locate: (e, t) => ga(d, e - u.size / 2, t - u.size / 2, u.inner * .9, u.outer + 6 + 4),
5219
+ locate: (e, t) => ba(d, e - u.size / 2, t - u.size / 2, u.inner * .9, u.outer + 6 + 4),
5165
5220
  onPointer: (e) => e === null ? s.clear() : s.pointTo(e),
5166
5221
  onActivate: () => {
5167
5222
  let t = p === null ? null : e.toPoint(p);
@@ -5175,27 +5230,27 @@ function jo({ model: e, props: n, donut: r }) {
5175
5230
  "aria-hidden": "true",
5176
5231
  "data-entering": f.running || void 0,
5177
5232
  className: t(f.reduced && "nxgt-chart-fade"),
5178
- children: [/* @__PURE__ */ M(Y, {
5233
+ children: [/* @__PURE__ */ M(J, {
5179
5234
  id: c,
5180
5235
  series: o,
5181
5236
  patterns: n.patterns
5182
- }), /* @__PURE__ */ M(Oo, {
5237
+ }), /* @__PURE__ */ M(Mo, {
5183
5238
  slices: o,
5184
5239
  layout: d,
5185
5240
  frame: u,
5186
- sweep: Math.PI * 2 * G(f.progress),
5241
+ sweep: Math.PI * 2 * W(f.progress),
5187
5242
  active: p,
5188
5243
  pop: m,
5189
5244
  patterns: n.patterns,
5190
5245
  chartId: c
5191
5246
  })]
5192
5247
  }),
5193
- r && /* @__PURE__ */ M(Do, {
5248
+ r && /* @__PURE__ */ M(jo, {
5194
5249
  diameter: u.inner * 2,
5195
5250
  center: n.center ?? e.total,
5196
5251
  caption: n.caption ?? l("material.charts.total", "Total")
5197
5252
  }),
5198
- /* @__PURE__ */ M(Ao, {
5253
+ /* @__PURE__ */ M(Po, {
5199
5254
  model: e,
5200
5255
  frame: u,
5201
5256
  layout: d,
@@ -5206,12 +5261,12 @@ function jo({ model: e, props: n, donut: r }) {
5206
5261
  }
5207
5262
  //#endregion
5208
5263
  //#region lib/components/ui/widgets/native-charts/pie-chart/donut-chart.tsx
5209
- function Mo(e) {
5210
- let t = Da(e, "donut");
5264
+ function Io(e) {
5265
+ let t = Aa(e, "donut");
5211
5266
  return /* @__PURE__ */ M(z, {
5212
5267
  model: t,
5213
5268
  props: e,
5214
- children: /* @__PURE__ */ M(jo, {
5269
+ children: /* @__PURE__ */ M(Fo, {
5215
5270
  model: t,
5216
5271
  props: e,
5217
5272
  donut: !0
@@ -5220,12 +5275,12 @@ function Mo(e) {
5220
5275
  }
5221
5276
  //#endregion
5222
5277
  //#region lib/components/ui/widgets/native-charts/pie-chart/pie-chart.tsx
5223
- function No(e) {
5224
- let t = Da(e, "pie");
5278
+ function Lo(e) {
5279
+ let t = Aa(e, "pie");
5225
5280
  return /* @__PURE__ */ M(z, {
5226
5281
  model: t,
5227
5282
  props: e,
5228
- children: /* @__PURE__ */ M(jo, {
5283
+ children: /* @__PURE__ */ M(Fo, {
5229
5284
  model: t,
5230
5285
  props: e,
5231
5286
  donut: !1
@@ -5234,7 +5289,7 @@ function No(e) {
5234
5289
  }
5235
5290
  //#endregion
5236
5291
  //#region lib/components/ui/widgets/native-charts/core/radar.ts
5237
- function Po(e, t, n, r) {
5292
+ function Ro(e, t, n, r) {
5238
5293
  let i = Math.min(r ? 76 : 108, Math.ceil(rt(n)) + 14), a = Math.max(24, Math.min(e / 2 - i, t / 2 - 34));
5239
5294
  return {
5240
5295
  width: e,
@@ -5246,18 +5301,18 @@ function Po(e, t, n, r) {
5246
5301
  margin: i
5247
5302
  };
5248
5303
  }
5249
- function Fo(e, t) {
5304
+ function zo(e, t) {
5250
5305
  return t > 0 ? e / t * Math.PI * 2 : 0;
5251
5306
  }
5252
5307
  function $(e, t, n) {
5253
- let r = Fo(t, e.count);
5308
+ let r = zo(t, e.count);
5254
5309
  return [e.cx + Math.sin(r) * n, e.cy - Math.cos(r) * n];
5255
5310
  }
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`;
5311
+ var Bo = (e) => Math.round(e * 100) / 100;
5312
+ function Vo(e) {
5313
+ return e.length === 0 ? "" : `${e.map(([e, t], n) => `${n === 0 ? "M" : "L"}${Bo(e)} ${Bo(t)}`).join("")}Z`;
5259
5314
  }
5260
- function Ro(e, t, n, r) {
5315
+ function Ho(e, t, n, r) {
5261
5316
  let i = ct(e, t, {
5262
5317
  min: n?.min,
5263
5318
  max: n?.max
@@ -5267,7 +5322,7 @@ function Ro(e, t, n, r) {
5267
5322
  ticks: i.ticks(r).filter((e) => t - i(e) > .5)
5268
5323
  };
5269
5324
  }
5270
- function zo(e, t, n, r = 1) {
5325
+ function Uo(e, t, n, r = 1) {
5271
5326
  return n.map((n, i) => {
5272
5327
  let [a, o] = $(e, i, n === null ? 0 : t(n) * r);
5273
5328
  return {
@@ -5277,13 +5332,13 @@ function zo(e, t, n, r = 1) {
5277
5332
  };
5278
5333
  });
5279
5334
  }
5280
- function Bo(e, t, n) {
5335
+ function Wo(e, t, n) {
5281
5336
  let [r, i] = [t - e.cx, n - e.cy];
5282
5337
  if (e.count <= 0 || Math.hypot(r, i) > e.r + e.margin) return null;
5283
5338
  let a = (Math.atan2(r, -i) + Math.PI * 2) % (Math.PI * 2);
5284
5339
  return Math.round(a / (Math.PI * 2) * e.count) % e.count;
5285
5340
  }
5286
- function Vo(e, t, n) {
5341
+ function Go(e, t, n) {
5287
5342
  let r = null, i = Infinity;
5288
5343
  return e.forEach((e, a) => {
5289
5344
  if (!e?.has) return;
@@ -5291,8 +5346,8 @@ function Vo(e, t, n) {
5291
5346
  o < i && ([r, i] = [a, o]);
5292
5347
  }), r;
5293
5348
  }
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];
5349
+ function Ko(e, t, n = 1) {
5350
+ let r = zo(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];
5296
5351
  return {
5297
5352
  x: o,
5298
5353
  y: s,
@@ -5300,20 +5355,20 @@ function Ho(e, t, n = 1) {
5300
5355
  dy: `${+(c - (n - 1) * l).toFixed(2)}em`
5301
5356
  };
5302
5357
  }
5303
- var Uo = 4;
5304
- function Wo(e) {
5358
+ var qo = 4;
5359
+ function Jo(e) {
5305
5360
  return Math.min(240, Math.max(176, 70 + rt(e, 12)));
5306
5361
  }
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;
5362
+ function Yo(e, t, n = 176) {
5363
+ let [, r] = $(e, t, e.r), i = Math.sin(zo(t, e.count)) >= -.01, a = e.r + e.margin - 12;
5309
5364
  return {
5310
5365
  x: i ? e.cx + a : e.cx - a,
5311
5366
  top: Math.min(Math.max(4, r - 24), Math.max(4, e.height - 110)),
5312
5367
  prefer: i ? "right" : "left",
5313
- sheet: e.width / 2 - a < n + Uo
5368
+ sheet: e.width / 2 - a < n + qo
5314
5369
  };
5315
5370
  }
5316
- function Ko(e, t) {
5371
+ function Xo(e, t) {
5317
5372
  if (e.count < 3) return {
5318
5373
  x: e.cx + 4,
5319
5374
  y: e.cy - t - 3
@@ -5326,28 +5381,28 @@ function Ko(e, t) {
5326
5381
  }
5327
5382
  //#endregion
5328
5383
  //#region lib/components/ui/widgets/native-charts/radar-chart/use-radar-geometry.ts
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;
5384
+ function Zo(e, t, n) {
5385
+ let { size: r, shown: i, labels: a, nav: o } = e, s = Ro(r.width, r.height, a, r.phone), c = Ho(i.flatMap((e) => e.values.filter((e) => e !== null)), s.r, t.yAxis, dt(r.width, t.yAxis?.ticks)), l = i.map((e) => Uo(s, c.radius, e.values, n)), u = o.active ? i.find((e) => e.position === o.active?.series)?.key : null;
5331
5386
  return {
5332
5387
  frame: s,
5333
5388
  scale: c,
5334
5389
  vertices: l,
5335
- filled: hn(i.map((e) => e.key), u)
5390
+ filled: mn(i.map((e) => e.key), u)
5336
5391
  };
5337
5392
  }
5338
- function Jo(e, t, n, r = 0, i = 0) {
5393
+ function Qo(e, t, n, r = 0, i = 0) {
5339
5394
  let { nav: a, shown: o } = e;
5340
5395
  if (n === null) return a.clear();
5341
- let s = Vo(t.map((e) => e[n] ?? null), i, r);
5396
+ let s = Go(t.map((e) => e[n] ?? null), i, r);
5342
5397
  a.pointTo(n, s === null ? void 0 : o[s]?.position);
5343
5398
  }
5344
5399
  //#endregion
5345
5400
  //#region lib/components/ui/widgets/native-charts/core/radar-labels.ts
5346
- function Yo(e) {
5401
+ function $o(e) {
5347
5402
  return Math.max(3, it(e - 14));
5348
5403
  }
5349
- function Xo(e, t) {
5350
- let n = Yo(e.margin);
5404
+ function es(e, t) {
5405
+ let n = $o(e.margin);
5351
5406
  if (Array.from(t).length <= n) return [t];
5352
5407
  let r = t.split(/\s+/), i = "", a = 0;
5353
5408
  for (let e of r) {
@@ -5355,22 +5410,22 @@ function Xo(e, t) {
5355
5410
  if (Array.from(t).length > n) break;
5356
5411
  i = t, a++;
5357
5412
  }
5358
- return i ? [i, U(r.slice(a).join(" "), n)] : [U(t, n)];
5413
+ return i ? [i, H(r.slice(a).join(" "), n)] : [H(t, n)];
5359
5414
  }
5360
- var Zo = 12;
5361
- function Qo(e, t, n, r) {
5415
+ var ts = 12;
5416
+ function ns(e, t, n, r) {
5362
5417
  if (!r) return t;
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;
5418
+ let i = Ro(e, t, n, r), a = (e) => n[e] === void 0 ? 1 : es(i, n[e]).length, o = 34 + (a(0) - 1) * ts, s = 24 + (a(Math.floor(n.length / 2)) - 1) * ts, c = Math.max(34, o, s) + 3;
5364
5419
  return Math.min(t, Math.round(2 * (i.r + c)));
5365
5420
  }
5366
5421
  //#endregion
5367
5422
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-axis-names.tsx
5368
- function $o({ frame: e, labels: t, active: n }) {
5423
+ function rs({ frame: e, labels: t, active: n }) {
5369
5424
  return /* @__PURE__ */ M("g", {
5370
5425
  className: "nxgt-chart-axis",
5371
5426
  "data-axis": "radar",
5372
5427
  children: t.map((t, r) => {
5373
- let i = Xo(e, t), a = Ho(e, r, i.length);
5428
+ let i = es(e, t), a = Ko(e, r, i.length);
5374
5429
  return /* @__PURE__ */ M("text", {
5375
5430
  x: a.x,
5376
5431
  y: a.y,
@@ -5388,14 +5443,14 @@ function $o({ frame: e, labels: t, active: n }) {
5388
5443
  }
5389
5444
  //#endregion
5390
5445
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-marks.tsx
5391
- function es({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, active: o }) {
5446
+ function is({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, active: o }) {
5392
5447
  let s = i.map((e, t) => t);
5393
5448
  return /* @__PURE__ */ N(j, { children: [
5394
5449
  a !== "none" && /* @__PURE__ */ N("g", {
5395
5450
  className: "nxgt-chart-grid",
5396
5451
  "data-grid": a,
5397
5452
  "data-shape": "radar",
5398
- children: [t.map((t) => /* @__PURE__ */ M("path", { d: Lo(s.map((r) => $(e, r, n(t)))) }, t)), s.map((t) => {
5453
+ children: [t.map((t) => /* @__PURE__ */ M("path", { d: Vo(s.map((r) => $(e, r, n(t)))) }, t)), s.map((t) => {
5399
5454
  let [n, r] = $(e, t, e.r);
5400
5455
  return /* @__PURE__ */ M("line", {
5401
5456
  x1: e.cx,
@@ -5409,7 +5464,7 @@ function es({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, acti
5409
5464
  className: "nxgt-chart-axis",
5410
5465
  "data-axis": "rings",
5411
5466
  children: t.map((t) => {
5412
- let i = Ko(e, n(t));
5467
+ let i = Xo(e, n(t));
5413
5468
  return /* @__PURE__ */ M("text", {
5414
5469
  x: i.x,
5415
5470
  y: i.y,
@@ -5419,35 +5474,35 @@ function es({ frame: e, ticks: t, radius: n, format: r, labels: i, grid: a, acti
5419
5474
  }, t);
5420
5475
  })
5421
5476
  }),
5422
- /* @__PURE__ */ M($o, {
5477
+ /* @__PURE__ */ M(rs, {
5423
5478
  frame: e,
5424
5479
  labels: i,
5425
5480
  active: o
5426
5481
  })
5427
5482
  ] });
5428
5483
  }
5429
- function ts({ series: e, vertices: n, filled: r, patterns: i, chartId: a, phone: o }) {
5430
- let s = r ? i ? { fill: `url(#${J(a, e.position)})` } : void 0 : { fill: "none" };
5484
+ function as({ series: e, vertices: n, filled: r, patterns: i, chartId: a, phone: o }) {
5485
+ let s = r ? i ? { fill: `url(#${q(a, e.position)})` } : void 0 : { fill: "none" };
5431
5486
  return /* @__PURE__ */ N("g", {
5432
5487
  ...e.paint,
5433
5488
  "data-series": e.key,
5434
5489
  children: [/* @__PURE__ */ M("path", {
5435
- d: Lo(n.map((e) => [e.x, e.y])),
5490
+ d: Vo(n.map((e) => [e.x, e.y])),
5436
5491
  className: t("nxgt-chart-radar", r && !i && "nxgt-chart-radar-wash", i && `nxgt-chart-dash-${e.dash}`),
5437
5492
  "data-filled": r || void 0,
5438
5493
  ...s
5439
- }), /* @__PURE__ */ M(ns, {
5494
+ }), /* @__PURE__ */ M(os, {
5440
5495
  vertices: n,
5441
5496
  shape: i ? e.shape : void 0,
5442
5497
  size: o ? 7 : 9
5443
5498
  })]
5444
5499
  });
5445
5500
  }
5446
- function ns({ vertices: e, shape: t, size: n }) {
5501
+ function os({ vertices: e, shape: t, size: n }) {
5447
5502
  return /* @__PURE__ */ M("g", {
5448
5503
  "data-slot": "chart-markers",
5449
5504
  children: e.map((e, r) => e.has ? t ? /* @__PURE__ */ M("path", {
5450
- d: Zn(t, n, e.x, e.y),
5505
+ d: Xn(t, n, e.x, e.y),
5451
5506
  className: "nxgt-chart-active-mark"
5452
5507
  }, r) : /* @__PURE__ */ M("circle", {
5453
5508
  cx: e.x,
@@ -5457,7 +5512,7 @@ function ns({ vertices: e, shape: t, size: n }) {
5457
5512
  }, r) : null)
5458
5513
  });
5459
5514
  }
5460
- function rs({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5515
+ function ss({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5461
5516
  let a = Kr(String(t)), [o, s] = $(e, t, e.r);
5462
5517
  return /* @__PURE__ */ N("g", { children: [/* @__PURE__ */ M("line", {
5463
5518
  className: "nxgt-chart-spoke",
@@ -5478,7 +5533,7 @@ function rs({ frame: e, index: t, series: n, vertices: r, patterns: i }) {
5478
5533
  }
5479
5534
  //#endregion
5480
5535
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-svg.tsx
5481
- function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, language: s }) {
5536
+ function cs({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, language: s }) {
5482
5537
  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;
5483
5538
  return /* @__PURE__ */ N("svg", {
5484
5539
  width: c.width,
@@ -5487,12 +5542,12 @@ function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5487
5542
  "data-entering": a.running || void 0,
5488
5543
  className: t(a.reduced && "nxgt-chart-fade"),
5489
5544
  children: [
5490
- /* @__PURE__ */ M(Y, {
5545
+ /* @__PURE__ */ M(J, {
5491
5546
  id: r,
5492
5547
  series: l,
5493
5548
  patterns: n.patterns
5494
5549
  }),
5495
- /* @__PURE__ */ M(es, {
5550
+ /* @__PURE__ */ M(is, {
5496
5551
  frame: f,
5497
5552
  ticks: p.ticks,
5498
5553
  radius: p.radius,
@@ -5503,7 +5558,7 @@ function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5503
5558
  }),
5504
5559
  /* @__PURE__ */ M("g", {
5505
5560
  opacity: o,
5506
- children: l.map((e, t) => /* @__PURE__ */ M(ts, {
5561
+ children: l.map((e, t) => /* @__PURE__ */ M(as, {
5507
5562
  series: e,
5508
5563
  vertices: m[t] ?? [],
5509
5564
  filled: h.has(e.key),
@@ -5512,7 +5567,7 @@ function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5512
5567
  phone: c.phone
5513
5568
  }, e.key))
5514
5569
  }),
5515
- _ && /* @__PURE__ */ M(rs, {
5570
+ _ && /* @__PURE__ */ M(ss, {
5516
5571
  frame: f,
5517
5572
  index: _.index,
5518
5573
  series: l,
@@ -5524,24 +5579,24 @@ function is({ model: e, props: n, id: r, geometry: i, motion: a, fade: o, langua
5524
5579
  }
5525
5580
  //#endregion
5526
5581
  //#region lib/components/ui/widgets/native-charts/radar-chart/partials/radar-plot.tsx
5527
- function as({ model: e, props: t }) {
5528
- let { shown: n, nav: r } = e, a = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: o } = i(), s = X({
5529
- total: W.lines,
5582
+ function ls({ model: e, props: t }) {
5583
+ let { shown: n, nav: r } = e, a = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: o } = i(), s = Y({
5584
+ total: U.lines,
5530
5585
  animate: t.animate,
5531
5586
  replay: e.motionKey
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;
5587
+ }), c = Zo(e, t, W(s.progress)), { frame: l, vertices: u } = c, d = W(K(s.elapsed, U.lines * .6, U.lines * .4)), { active: f } = r, p = f ? Yo(l, f.index, Jo(n.map((e) => e.label))) : null;
5533
5588
  return /* @__PURE__ */ N(V, {
5534
5589
  kind: "radar",
5535
5590
  title: t.title,
5536
5591
  status: e.status,
5537
5592
  onKeyDown: r.onKeyDown,
5538
- locate: (e, t) => Bo(l, e, t),
5539
- onPointer: (t, n, r) => Jo(e, u, t, n, r),
5593
+ locate: (e, t) => Wo(l, e, t),
5594
+ onPointer: (t, n, r) => Qo(e, u, t, n, r),
5540
5595
  onActivate: () => {
5541
5596
  let n = f && e.toPoint(f.index, f.series);
5542
5597
  n && t.onPointClick?.(n);
5543
5598
  },
5544
- children: [/* @__PURE__ */ M(is, {
5599
+ children: [/* @__PURE__ */ M(cs, {
5545
5600
  model: e,
5546
5601
  props: t,
5547
5602
  id: a,
@@ -5562,7 +5617,7 @@ function as({ model: e, props: t }) {
5562
5617
  }
5563
5618
  //#endregion
5564
5619
  //#region lib/components/ui/widgets/native-charts/core/radar-text.ts
5565
- function os(e, t) {
5620
+ function us(e, t) {
5566
5621
  let { labels: n, hidden: r = [] } = t, i = I(e, "radar"), a = [e("material.charts.summary.intro", "{kind}: {title}.", {
5567
5622
  kind: i.charAt(0).toLocaleUpperCase() + i.slice(1),
5568
5623
  title: t.title
@@ -5589,16 +5644,16 @@ function os(e, t) {
5589
5644
  }
5590
5645
  //#endregion
5591
5646
  //#region lib/components/ui/widgets/native-charts/radar-chart/use-radar-model.ts
5592
- function ss(e) {
5593
- let { t } = i(), n = _n({
5647
+ function ds(e) {
5648
+ let { t } = i(), n = gn({
5594
5649
  ...e,
5595
5650
  height: e.height ?? 340
5596
- }, "radar"), r = os(t, {
5651
+ }, "radar"), r = us(t, {
5597
5652
  title: e.title,
5598
5653
  labels: n.labels,
5599
5654
  series: n.shown,
5600
5655
  hidden: n.series.filter((e) => n.visibility.hidden.includes(e.key)).map((e) => e.label)
5601
- }), { size: a } = n, o = e.height === void 0 ? Qo(a.width, a.height, n.labels, a.phone) : a.height;
5656
+ }), { size: a } = n, o = e.height === void 0 ? ns(a.width, a.height, n.labels, a.phone) : a.height;
5602
5657
  return {
5603
5658
  ...n,
5604
5659
  size: {
@@ -5610,12 +5665,12 @@ function ss(e) {
5610
5665
  }
5611
5666
  //#endregion
5612
5667
  //#region lib/components/ui/widgets/native-charts/radar-chart/radar-chart.tsx
5613
- function cs(e) {
5614
- let t = ss(e);
5668
+ function fs(e) {
5669
+ let t = ds(e);
5615
5670
  return /* @__PURE__ */ M(z, {
5616
5671
  model: t,
5617
5672
  props: e,
5618
- children: /* @__PURE__ */ M(as, {
5673
+ children: /* @__PURE__ */ M(ls, {
5619
5674
  model: t,
5620
5675
  props: e
5621
5676
  })
@@ -5623,44 +5678,44 @@ function cs(e) {
5623
5678
  }
5624
5679
  //#endregion
5625
5680
  //#region lib/components/ui/widgets/native-charts/core/radial.ts
5626
- var ls = 6, us = 18;
5627
- function ds(e, t) {
5681
+ var ps = 6, ms = 18;
5682
+ function hs(e, t) {
5628
5683
  if (t !== void 0 && Number.isFinite(t) && t > 0) return t;
5629
5684
  let n = Math.max(0, ...e.filter((e) => Number.isFinite(e)));
5630
5685
  return n > 0 ? n : 1;
5631
5686
  }
5632
- function fs(e, t) {
5687
+ function gs(e, t) {
5633
5688
  return !Number.isFinite(e) || e <= 0 || t <= 0 ? 0 : e / t;
5634
5689
  }
5635
- function ps(e, t, n) {
5690
+ function _s(e, t, n) {
5636
5691
  let r = Math.max(0, Math.min(e, t)), i = Math.max(0, r / 2 - 8), a = Math.max(1, n), o = i * .3;
5637
5692
  return {
5638
5693
  size: r,
5639
5694
  outer: i,
5640
- thick: Math.max(6, Math.min(us, Math.floor((i - o) / a - ls))),
5641
- gap: ls
5695
+ thick: Math.max(6, Math.min(ms, Math.floor((i - o) / a - ps))),
5696
+ gap: ps
5642
5697
  };
5643
5698
  }
5644
- function ms(e, t) {
5699
+ function vs(e, t) {
5645
5700
  let n = e.outer - t * (e.thick + e.gap);
5646
5701
  return {
5647
5702
  outer: n,
5648
5703
  inner: Math.max(0, n - e.thick)
5649
5704
  };
5650
5705
  }
5651
- function hs(e, t, n, r) {
5706
+ function ys(e, t, n, r) {
5652
5707
  let i = Math.hypot(n, r);
5653
5708
  for (let n = 0; n < t; n++) {
5654
- let { inner: t, outer: r } = ms(e, n);
5709
+ let { inner: t, outer: r } = vs(e, n);
5655
5710
  if (i >= t - e.gap / 2 && i <= r + e.gap / 2) return n;
5656
5711
  }
5657
5712
  return null;
5658
5713
  }
5659
- function gs(e, t, n) {
5660
- let { inner: r, outer: i } = ms(e, t);
5661
- return _a(8, i - r, n, r);
5714
+ function bs(e, t, n) {
5715
+ let { inner: r, outer: i } = vs(e, t);
5716
+ return xa(8, i - r, n, r);
5662
5717
  }
5663
- function _s(e, t) {
5718
+ function xs(e, t) {
5664
5719
  let n = I(e, "radial-bar"), r = [e("material.charts.summary.intro", "{kind}: {title}.", {
5665
5720
  kind: n.charAt(0).toLocaleUpperCase() + n.slice(1),
5666
5721
  title: t.title
@@ -5670,7 +5725,7 @@ function _s(e, t) {
5670
5725
  })];
5671
5726
  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(" ");
5672
5727
  }
5673
- function vs(e, t, n, r) {
5728
+ function Ss(e, t, n, r) {
5674
5729
  return Ge(e("material.charts.table-ring", "Ring"), t.map((e) => e.label), [{
5675
5730
  key: "value",
5676
5731
  label: e("material.charts.table-value", "Value"),
@@ -5680,32 +5735,32 @@ function vs(e, t, n, r) {
5680
5735
  key: "share",
5681
5736
  label: e("material.charts.table-of-max", "Of max"),
5682
5737
  values: t.map((e) => e.share),
5683
- format: (e) => va(e, r)
5738
+ format: (e) => Q(e, r)
5684
5739
  }]);
5685
5740
  }
5686
5741
  //#endregion
5687
5742
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/partials/radial-marks.tsx
5688
- var ys = Math.PI * 2;
5689
- function bs({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, chartId: o }) {
5743
+ var Cs = Math.PI * 2;
5744
+ function ws({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, chartId: o }) {
5690
5745
  let s = t.size / 2;
5691
5746
  return /* @__PURE__ */ M("g", {
5692
5747
  transform: `translate(${s},${s})`,
5693
5748
  children: e.map((e, s) => {
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);
5749
+ let { inner: c, outer: l } = vs(t, s), u = r === s, d = l + (u ? i : 0), f = Cs * Math.min(1, e.share), p = f * W(K(n, U.sweep, G(s))), m = bs(t, s, f);
5695
5750
  return /* @__PURE__ */ N("g", {
5696
5751
  ...e.paint,
5697
5752
  "data-series": e.key,
5698
5753
  children: [/* @__PURE__ */ M("path", {
5699
- d: Na(0, 0, c, l, 0, ys, 0),
5754
+ d: La(0, 0, c, l, 0, Cs, 0),
5700
5755
  className: "nxgt-chart-ring-track"
5701
5756
  }), /* @__PURE__ */ M("path", {
5702
- d: p > .001 ? Na(0, 0, c, d, 0, p, m) : "",
5757
+ d: p > .001 ? La(0, 0, c, d, 0, p, m) : "",
5703
5758
  className: "nxgt-chart-ring",
5704
5759
  "data-ring": s,
5705
5760
  "data-active": u || void 0,
5706
5761
  "data-dim": r !== null && !u || void 0,
5707
5762
  "data-pattern": a || void 0,
5708
- fill: a ? `url(#${J(o, e.position)})` : void 0
5763
+ fill: a ? `url(#${q(o, e.position)})` : void 0
5709
5764
  })]
5710
5765
  }, e.key);
5711
5766
  })
@@ -5713,18 +5768,18 @@ function bs({ rings: e, frame: t, elapsed: n, active: r, pop: i, patterns: a, ch
5713
5768
  }
5714
5769
  //#endregion
5715
5770
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/partials/radial-plot.tsx
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({
5718
- total: W.sweep + K(Math.max(0, a.length - 1)),
5771
+ function Ts({ model: e, props: n }) {
5772
+ let { size: r, rings: a, nav: o } = e, s = D().replace(/[^a-zA-Z0-9-]/g, ""), { language: c } = i(), l = _s(r.width, r.height, a.length), u = Y({
5773
+ total: U.sweep + G(Math.max(0, a.length - 1)),
5719
5774
  animate: n.animate,
5720
5775
  replay: e.motionKey
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;
5776
+ }), d = o.active?.index ?? null, f = d === null ? void 0 : a[d], p = Ao(f?.key ?? null) / 2, m = (r.width - l.size) / 2;
5722
5777
  return /* @__PURE__ */ N(V, {
5723
5778
  kind: "radial-bar",
5724
5779
  title: n.title,
5725
5780
  status: e.status,
5726
5781
  onKeyDown: o.onKeyDown,
5727
- locate: (e, t) => hs(l, a.length, e - l.size / 2, t - l.size / 2),
5782
+ locate: (e, t) => ys(l, a.length, e - l.size / 2, t - l.size / 2),
5728
5783
  onPointer: (e) => e === null ? o.clear() : o.pointTo(e),
5729
5784
  onActivate: () => {
5730
5785
  let t = d === null ? null : e.toPoint(d);
@@ -5737,11 +5792,11 @@ function xs({ model: e, props: n }) {
5737
5792
  "aria-hidden": "true",
5738
5793
  "data-entering": u.running || void 0,
5739
5794
  className: t(u.reduced && "nxgt-chart-fade"),
5740
- children: [/* @__PURE__ */ M(Y, {
5795
+ children: [/* @__PURE__ */ M(J, {
5741
5796
  id: s,
5742
5797
  series: a,
5743
5798
  patterns: n.patterns
5744
- }), /* @__PURE__ */ M(bs, {
5799
+ }), /* @__PURE__ */ M(ws, {
5745
5800
  rings: a,
5746
5801
  frame: l,
5747
5802
  elapsed: u.elapsed,
@@ -5750,7 +5805,7 @@ function xs({ model: e, props: n }) {
5750
5805
  patterns: n.patterns,
5751
5806
  chartId: s
5752
5807
  })]
5753
- }), f && d !== null && /* @__PURE__ */ M(ko, {
5808
+ }), f && d !== null && /* @__PURE__ */ M(No, {
5754
5809
  slice: f,
5755
5810
  point: e.toPoint(d),
5756
5811
  spot: {
@@ -5762,15 +5817,15 @@ function xs({ model: e, props: n }) {
5762
5817
  phone: r.phone,
5763
5818
  width: r.width - m,
5764
5819
  min: -m,
5765
- share: va(f.share, c),
5820
+ share: Q(f.share, c),
5766
5821
  tooltip: n.tooltip
5767
5822
  })]
5768
5823
  });
5769
5824
  }
5770
5825
  //#endregion
5771
5826
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/use-radial-model.ts
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) => {
5827
+ function Es(e) {
5828
+ let { data: t, title: n } = e, { t: r, language: a } = i(), { resolved: o, keys: s, visibility: c } = ka(e), l = R(e.height), u = e.format ?? F(a), d = hs(t.map((e) => e.value), e.max), f = o.flatMap((e, n) => {
5774
5829
  if (c.hidden.includes(e.key)) return [];
5775
5830
  let r = t[n]?.value ?? 0, i = Number.isFinite(r) ? Math.max(0, r) : 0;
5776
5831
  return [{
@@ -5778,24 +5833,24 @@ function Ss(e) {
5778
5833
  paint: P(e),
5779
5834
  value: i,
5780
5835
  formatted: u(i),
5781
- share: fs(i, d),
5836
+ share: gs(i, d),
5782
5837
  dataIndex: n
5783
5838
  }];
5784
- }), p = (e) => xa(f[e]), m = un({
5839
+ }), p = (e) => wa(f[e]), m = ln({
5785
5840
  count: f.length,
5786
5841
  visible: [0],
5787
- keyMap: Ta,
5842
+ keyMap: Oa,
5788
5843
  onActivate: ({ index: t }) => {
5789
5844
  let n = p(t);
5790
5845
  n && e.onPointClick?.(n);
5791
5846
  }
5792
- }), h = _s(r, {
5847
+ }), h = xs(r, {
5793
5848
  title: n,
5794
5849
  max: u(d),
5795
5850
  rings: f.map((e) => ({
5796
5851
  label: e.label,
5797
5852
  value: e.formatted,
5798
- share: va(e.share, a)
5853
+ share: Q(e.share, a)
5799
5854
  })),
5800
5855
  hidden: o.filter((e) => c.hidden.includes(e.key)).map((e) => e.label)
5801
5856
  }), g = m.active && f[m.active.index];
@@ -5807,9 +5862,9 @@ function Ss(e) {
5807
5862
  nav: m,
5808
5863
  toPoint: p,
5809
5864
  summary: L(e.summary, h),
5810
- status: g && m.source === "key" ? Sa(r, g, a) : null,
5865
+ status: g && m.source === "key" ? Ta(r, g, a) : null,
5811
5866
  legendItems: Xe(o),
5812
- table: e.dataTable === !1 ? null : vs(r, f, u, a),
5867
+ table: e.dataTable === !1 ? null : Ss(r, f, u, a),
5813
5868
  tableCaption: r("material.charts.table-caption", "{title}: the data", { title: n }),
5814
5869
  motionKey: s.join(","),
5815
5870
  empty: t.length === 0
@@ -5817,12 +5872,12 @@ function Ss(e) {
5817
5872
  }
5818
5873
  //#endregion
5819
5874
  //#region lib/components/ui/widgets/native-charts/radial-bar-chart/radial-bar-chart.tsx
5820
- function Cs(e) {
5821
- let t = Ss(e);
5875
+ function Ds(e) {
5876
+ let t = Es(e);
5822
5877
  return /* @__PURE__ */ M(z, {
5823
5878
  model: t,
5824
5879
  props: e,
5825
- children: /* @__PURE__ */ M(xs, {
5880
+ children: /* @__PURE__ */ M(Ts, {
5826
5881
  model: t,
5827
5882
  props: e
5828
5883
  })
@@ -5830,9 +5885,9 @@ function Cs(e) {
5830
5885
  }
5831
5886
  //#endregion
5832
5887
  //#region lib/components/ui/widgets/native-charts/core/scatter.ts
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) ? [{
5888
+ var Os = (e) => Number.isFinite(e.x) && Number.isFinite(e.y);
5889
+ function ks(e) {
5890
+ return e.flatMap((e) => e.points.flatMap((t, n) => Os(t) ? [{
5836
5891
  key: e.key,
5837
5892
  position: e.position,
5838
5893
  i: n,
@@ -5841,10 +5896,10 @@ function Ts(e) {
5841
5896
  label: t.label
5842
5897
  }] : [])).sort((e, t) => e.x - t.x || e.y - t.y || e.position - t.position || e.i - t.i);
5843
5898
  }
5844
- function Es(e, t) {
5899
+ function As(e, t) {
5845
5900
  return t ?? Math.min(8, Math.max(3, Math.floor(e / 90)));
5846
5901
  }
5847
- function Ds(e, t, n, r) {
5902
+ function js(e, t, n, r) {
5848
5903
  let i = x().domain(st(e.map((e) => e.x), {
5849
5904
  min: n.x?.min,
5850
5905
  max: n.x?.max,
@@ -5864,15 +5919,15 @@ function Ds(e, t, n, r) {
5864
5919
  yTicks: a.ticks(r.y)
5865
5920
  };
5866
5921
  }
5867
- var Os = (e, t) => mt(e, t, 56);
5868
- function ks(e, t, n, r, i = 28) {
5922
+ var Ms = (e, t) => mt(e, t, 56);
5923
+ function Ns(e, t, n, r, i = 28) {
5869
5924
  let a = -1, o = i;
5870
5925
  return e.forEach((e, i) => {
5871
5926
  let [s, c] = t(e), l = Math.hypot(s - n, c - r);
5872
5927
  l <= o && (a = i, o = l);
5873
5928
  }), a < 0 ? null : a;
5874
5929
  }
5875
- function As(e, t, n, r, i) {
5930
+ function Ps(e, t, n, r, i) {
5876
5931
  let [a, o, s] = [
5877
5932
  12,
5878
5933
  24,
@@ -5881,7 +5936,7 @@ function As(e, t, n, r, i) {
5881
5936
  top: a,
5882
5937
  right: o,
5883
5938
  bottom: s,
5884
- left: i(Ds(e, {
5939
+ left: i(js(e, {
5885
5940
  width: 100,
5886
5941
  height: c
5887
5942
  }, n, {
@@ -5890,11 +5945,11 @@ function As(e, t, n, r, i) {
5890
5945
  }).yTicks)
5891
5946
  }, u = Math.max(10, t.width - l.left - l.right);
5892
5947
  return {
5893
- ...Ds(e, {
5948
+ ...js(e, {
5894
5949
  width: u,
5895
5950
  height: c
5896
5951
  }, n, {
5897
- x: Es(u, r.x),
5952
+ x: As(u, r.x),
5898
5953
  y: r.y
5899
5954
  }),
5900
5955
  m: l,
@@ -5904,10 +5959,10 @@ function As(e, t, n, r, i) {
5904
5959
  }
5905
5960
  //#endregion
5906
5961
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-layout.ts
5907
- function js(e, t) {
5962
+ function Fs(e, t) {
5908
5963
  let { language: n } = i(), { width: r, height: a, phone: o } = e.size, s = t.yAxis?.format ?? F(n);
5909
5964
  return {
5910
- layout: As(e.dots, {
5965
+ layout: Ps(e.dots, {
5911
5966
  width: r,
5912
5967
  height: a
5913
5968
  }, {
@@ -5916,33 +5971,33 @@ function js(e, t) {
5916
5971
  }, {
5917
5972
  x: t.xAxis?.ticks,
5918
5973
  y: dt(r, t.yAxis?.ticks)
5919
- }, (e) => On(e.map(s), o)),
5974
+ }, (e) => Dn(e.map(s), o)),
5920
5975
  formatY: s
5921
5976
  };
5922
5977
  }
5923
5978
  //#endregion
5924
5979
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-marks.tsx
5925
- var Ms = 4.5, Ns = 11;
5926
- function Ps({ shown: e, dots: t, at: n, elapsed: r, patterns: i }) {
5980
+ var Is = 4.5, Ls = 11;
5981
+ function Rs({ shown: e, dots: t, at: n, elapsed: r, patterns: i }) {
5927
5982
  return /* @__PURE__ */ M(j, { children: e.map((e) => /* @__PURE__ */ M("g", {
5928
5983
  ...e.paint,
5929
5984
  "data-series": e.key,
5930
5985
  children: t.map((a, o) => {
5931
5986
  if (a.key !== e.key) return null;
5932
- let s = G(q(r, 320, o / t.length * 380)), [c, l] = n(a);
5987
+ let s = W(K(r, 320, o / t.length * 380)), [c, l] = n(a);
5933
5988
  return i ? /* @__PURE__ */ M("path", {
5934
- d: Zn(e.shape, Ns * Math.max(.01, s), c, l),
5989
+ d: Xn(e.shape, Ls * Math.max(.01, s), c, l),
5935
5990
  className: "nxgt-chart-dot"
5936
5991
  }, a.i) : /* @__PURE__ */ M("circle", {
5937
5992
  cx: c,
5938
5993
  cy: l,
5939
- r: Ms * s,
5994
+ r: Is * s,
5940
5995
  className: "nxgt-chart-dot"
5941
5996
  }, a.i);
5942
5997
  })
5943
5998
  }, e.key)) });
5944
5999
  }
5945
- function Fs({ x: e, y: t, height: n }) {
6000
+ function zs({ x: e, y: t, height: n }) {
5946
6001
  return /* @__PURE__ */ N("g", {
5947
6002
  className: "nxgt-chart-guides",
5948
6003
  children: [/* @__PURE__ */ M("line", {
@@ -5960,8 +6015,8 @@ function Fs({ x: e, y: t, height: n }) {
5960
6015
  }
5961
6016
  //#endregion
5962
6017
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-svg.tsx
5963
- function Is({ model: e, props: n, layout: r, formatY: i }) {
5964
- let { size: a, shown: o, dots: s, active: c } = e, { m: l, iw: u, ih: d, x: f, y: p } = r, m = X({
6018
+ function Bs({ model: e, props: n, layout: r, formatY: i }) {
6019
+ let { size: a, shown: o, dots: s, active: c } = e, { m: l, iw: u, ih: d, x: f, y: p } = r, m = Y({
5965
6020
  total: 700,
5966
6021
  animate: n.animate,
5967
6022
  replay: e.motionKey
@@ -5975,7 +6030,7 @@ function Is({ model: e, props: n, layout: r, formatY: i }) {
5975
6030
  children: /* @__PURE__ */ N("g", {
5976
6031
  transform: `translate(${l.left},${l.top})`,
5977
6032
  children: [
5978
- /* @__PURE__ */ M(lr, {
6033
+ /* @__PURE__ */ M(cr, {
5979
6034
  ticks: r.yTicks,
5980
6035
  y: p,
5981
6036
  width: u,
@@ -5987,18 +6042,18 @@ function Is({ model: e, props: n, layout: r, formatY: i }) {
5987
6042
  width: u,
5988
6043
  format: i
5989
6044
  }),
5990
- /* @__PURE__ */ M(ur, {
6045
+ /* @__PURE__ */ M(lr, {
5991
6046
  labels: g,
5992
6047
  xOf: (e) => f(r.xTicks[e] ?? 0),
5993
6048
  baseline: d,
5994
- step: Os(g.length, u)
6049
+ step: Ms(g.length, u)
5995
6050
  }),
5996
- c && /* @__PURE__ */ M(Fs, {
6051
+ c && /* @__PURE__ */ M(zs, {
5997
6052
  x: f(c.dot.x),
5998
6053
  y: p(c.dot.y),
5999
6054
  height: d
6000
6055
  }),
6001
- /* @__PURE__ */ M(Ps, {
6056
+ /* @__PURE__ */ M(Rs, {
6002
6057
  shown: o,
6003
6058
  dots: s,
6004
6059
  at: h,
@@ -6018,8 +6073,8 @@ function Is({ model: e, props: n, layout: r, formatY: i }) {
6018
6073
  }
6019
6074
  //#endregion
6020
6075
  //#region lib/components/ui/widgets/native-charts/core/scatter-tip.ts
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 = {
6076
+ var Vs = (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, Hs = (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)));
6077
+ function Us(e, t, n, r = {
6023
6078
  width: 220,
6024
6079
  height: 108
6025
6080
  }, i = 14) {
@@ -6035,7 +6090,7 @@ function zs(e, t, n, r = {
6035
6090
  let o = Math.max(4, e);
6036
6091
  if (!(o + r.height > n.height)) for (let e of ["right", "left"]) {
6037
6092
  let s = e === "right" ? a + i : a - i - r.width;
6038
- if (!(s < 0 || s + r.width > n.width) && Ls(t, s, o, r) === 0) return {
6093
+ if (!(s < 0 || s + r.width > n.width) && Vs(t, s, o, r) === 0) return {
6039
6094
  x: a,
6040
6095
  prefer: e,
6041
6096
  top: o
@@ -6044,7 +6099,7 @@ function zs(e, t, n, r = {
6044
6099
  }
6045
6100
  let c, l = Infinity, u = Math.max(4, n.height - r.height);
6046
6101
  for (let i = 0; i + r.width <= n.width; i += 16) for (let n = 4; n <= u; n += 12) {
6047
- let a = Ls(t, i, n, r) * 1e4 + Rs(e, i, n, r);
6102
+ let a = Vs(t, i, n, r) * 1e4 + Hs(e, i, n, r);
6048
6103
  a < l && ([c, l] = [{
6049
6104
  left: i,
6050
6105
  top: n
@@ -6062,11 +6117,11 @@ function zs(e, t, n, r = {
6062
6117
  }
6063
6118
  //#endregion
6064
6119
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-tip.tsx
6065
- function Bs({ model: e, layout: t, dot: n, tooltip: r }) {
6120
+ function Ws({ model: e, layout: t, dot: n, tooltip: r }) {
6066
6121
  if (r === !1) return null;
6067
6122
  let { size: i, names: a } = e, o = e.shown.find((e) => e.key === n.key);
6068
6123
  if (!o) return null;
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), {
6124
+ let s = (e) => [t.m.left + t.x(e.x), t.m.top + t.y(e.y)], c = Us(s(n), e.dots.filter((e) => e !== n).map(s), {
6070
6125
  width: i.width,
6071
6126
  height: t.m.top + t.ih
6072
6127
  }), l = e.toPoint(n);
@@ -6108,7 +6163,7 @@ function Bs({ model: e, layout: t, dot: n, tooltip: r }) {
6108
6163
  })]
6109
6164
  }), n.label && /* @__PURE__ */ N("li", {
6110
6165
  className: "flex items-center gap-2",
6111
- children: [/* @__PURE__ */ M(er, {
6166
+ children: [/* @__PURE__ */ M($n, {
6112
6167
  paint: o.paint,
6113
6168
  variant: "bar"
6114
6169
  }), /* @__PURE__ */ M("span", {
@@ -6123,24 +6178,24 @@ function Bs({ model: e, layout: t, dot: n, tooltip: r }) {
6123
6178
  }
6124
6179
  //#endregion
6125
6180
  //#region lib/components/ui/widgets/native-charts/scatter-chart/partials/scatter-plot.tsx
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;
6181
+ function Gs({ model: e, props: t }) {
6182
+ let { dots: n, active: r } = e, { layout: i, formatY: a } = Fs(e, t), { m: o, x: s, y: c } = i;
6128
6183
  return /* @__PURE__ */ N(V, {
6129
6184
  kind: "scatter",
6130
6185
  title: t.title,
6131
6186
  status: e.status,
6132
6187
  onKeyDown: e.onKeyDown,
6133
- locate: (e, t) => ks(n, (e) => [o.left + s(e.x), o.top + c(e.y)], e, t),
6188
+ locate: (e, t) => Ns(n, (e) => [o.left + s(e.x), o.top + c(e.y)], e, t),
6134
6189
  onPointer: (t) => e.pointTo(t),
6135
6190
  onActivate: () => {
6136
6191
  r && t.onPointClick?.(e.toPoint(r.dot));
6137
6192
  },
6138
- children: [/* @__PURE__ */ M(Is, {
6193
+ children: [/* @__PURE__ */ M(Bs, {
6139
6194
  model: e,
6140
6195
  props: t,
6141
6196
  layout: i,
6142
6197
  formatY: a
6143
- }), r && /* @__PURE__ */ M(Bs, {
6198
+ }), r && /* @__PURE__ */ M(Ws, {
6144
6199
  model: e,
6145
6200
  layout: i,
6146
6201
  dot: r.dot,
@@ -6150,7 +6205,7 @@ function Vs({ model: e, props: t }) {
6150
6205
  }
6151
6206
  //#endregion
6152
6207
  //#region lib/components/ui/widgets/native-charts/core/scatter-text.ts
6153
- function Hs(e, t, n) {
6208
+ function Ks(e, t, n) {
6154
6209
  let r = e.find((e) => e.key === n.key);
6155
6210
  return {
6156
6211
  seriesKey: n.key,
@@ -6161,8 +6216,8 @@ function Hs(e, t, n) {
6161
6216
  formatted: (r?.formatY ?? String)(n.y)
6162
6217
  };
6163
6218
  }
6164
- function Us(e, t, n, r) {
6165
- let i = Hs(t, n, r);
6219
+ function qs(e, t, n, r) {
6220
+ let i = Ks(t, n, r);
6166
6221
  return e("material.charts.status-scatter", "{label}, {series}: {xName} {x}, {yName} {y}", {
6167
6222
  label: i.label,
6168
6223
  series: i.seriesLabel,
@@ -6172,16 +6227,16 @@ function Us(e, t, n, r) {
6172
6227
  y: i.formatted
6173
6228
  });
6174
6229
  }
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}.", {
6230
+ var Js = (e) => Number.isFinite(e.x) && Number.isFinite(e.y), Ys = (e) => e.length === 0 ? null : [Math.min(...e), Math.max(...e)];
6231
+ function Xs(e, t) {
6232
+ let { shown: n, names: r } = t, i = n.flatMap((e) => e.points.filter(Js)), a = I(e, "scatter"), o = [e("material.charts.summary.intro", "{kind}: {title}.", {
6178
6233
  kind: a.charAt(0).toLocaleUpperCase() + a.slice(1),
6179
6234
  title: t.title
6180
6235
  }), e("material.charts.summary.scatter", "{points, plural, one {# point} other {# points}} in {series, plural, one {# series} other {# series}}.", {
6181
6236
  points: i.length,
6182
6237
  series: n.length
6183
6238
  })], s = (t, n, r) => {
6184
- let [i, a] = Gs(n) ?? [];
6239
+ let [i, a] = Ys(n) ?? [];
6185
6240
  i === void 0 || a === void 0 || o.push(e("material.charts.summary.scatter-range", "{axis} from {min} to {max}.", {
6186
6241
  axis: t,
6187
6242
  min: r(i),
@@ -6191,11 +6246,11 @@ function Ks(e, t) {
6191
6246
  s(r.x, i.map((e) => e.x), r.formatX), s(r.y, i.map((e) => e.y), n[0]?.formatY ?? String);
6192
6247
  for (let t of n) o.push(e("material.charts.summary.scatter-series", "{series}: {count, plural, one {# point} other {# points}}.", {
6193
6248
  series: t.label,
6194
- count: t.points.filter(Ws).length
6249
+ count: t.points.filter(Js).length
6195
6250
  }));
6196
6251
  return t.hidden.length > 0 && o.push(e("material.charts.summary.hidden", "Hidden: {series}.", { series: t.hidden.join(", ") })), o.join(" ");
6197
6252
  }
6198
- function qs(e, t, n) {
6253
+ function Zs(e, t, n) {
6199
6254
  return {
6200
6255
  corner: e("material.charts.table-point", "Point"),
6201
6256
  columns: [
@@ -6225,27 +6280,27 @@ function qs(e, t, n) {
6225
6280
  }
6226
6281
  //#endregion
6227
6282
  //#region lib/components/ui/widgets/native-charts/core/scatter-nav.ts
6228
- var Js = (e, t) => t !== null && e.key === t.key && e.i === t.i, Ys = (e) => e ? {
6283
+ var Qs = (e, t) => t !== null && e.key === t.key && e.i === t.i, $s = (e) => e ? {
6229
6284
  key: e.key,
6230
6285
  i: e.i
6231
6286
  } : null;
6232
- function Xs(e, t) {
6233
- return e.findIndex((e) => Js(e, t));
6287
+ function ec(e, t) {
6288
+ return e.findIndex((e) => Qs(e, t));
6234
6289
  }
6235
- function Zs(e, t, n) {
6290
+ function tc(e, t, n) {
6236
6291
  let r;
6237
6292
  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);
6238
6293
  return r;
6239
6294
  }
6240
- function Qs(e, t, n) {
6295
+ function nc(e, t, n) {
6241
6296
  let r = {
6242
6297
  active: e,
6243
6298
  handled: !1,
6244
6299
  activate: !1
6245
6300
  };
6246
6301
  if (n.length === 0) return r;
6247
- let i = Xs(n, e), a = (e) => ({
6248
- active: Ys(n[Math.min(n.length - 1, Math.max(0, e))]),
6302
+ let i = ec(n, e), a = (e) => ({
6303
+ active: $s(n[Math.min(n.length - 1, Math.max(0, e))]),
6249
6304
  handled: !0,
6250
6305
  activate: !1
6251
6306
  });
@@ -6260,7 +6315,7 @@ function Qs(e, t, n) {
6260
6315
  if (!e) return a(0);
6261
6316
  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))];
6262
6317
  return {
6263
- active: Ys(s === void 0 ? e : Zs(n, e, s)),
6318
+ active: $s(s === void 0 ? e : tc(n, e, s)),
6264
6319
  handled: !0,
6265
6320
  activate: !1
6266
6321
  };
@@ -6281,8 +6336,8 @@ function Qs(e, t, n) {
6281
6336
  }
6282
6337
  //#endregion
6283
6338
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-active.ts
6284
- function $s(e, t, n) {
6285
- let [r, i] = A(null), [a, o] = A("key"), s = Xs(e, r), c = e[s];
6339
+ function rc(e, t, n) {
6340
+ let [r, i] = A(null), [a, o] = A("key"), s = ec(e, r), c = e[s];
6286
6341
  return {
6287
6342
  active: c ? {
6288
6343
  dot: c,
@@ -6290,10 +6345,10 @@ function $s(e, t, n) {
6290
6345
  } : null,
6291
6346
  source: a,
6292
6347
  onKeyDown: (a) => {
6293
- let s = Qs(r, a.key, e);
6348
+ let s = nc(r, a.key, e);
6294
6349
  if (!s.handled) return;
6295
6350
  a.preventDefault(), i(s.active), o("key");
6296
- let c = e[Xs(e, s.active)];
6351
+ let c = e[ec(e, s.active)];
6297
6352
  s.activate && c && n?.(t(c));
6298
6353
  },
6299
6354
  pointTo: (t) => {
@@ -6307,8 +6362,8 @@ function $s(e, t, n) {
6307
6362
  }
6308
6363
  //#endregion
6309
6364
  //#region lib/components/ui/widgets/native-charts/scatter-chart/use-scatter-model.ts
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({
6365
+ function ic(e) {
6366
+ 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 = hn({
6312
6367
  keys: l,
6313
6368
  hidden: e.hidden,
6314
6369
  defaultHidden: e.defaultHidden,
@@ -6322,7 +6377,7 @@ function ec(e) {
6322
6377
  paint: P(e),
6323
6378
  points: t[e.position]?.points ?? [],
6324
6379
  formatY: Ae(e, r, s)
6325
- })), m = Ts(p), h = (e) => Hs(p, f, e), g = $s(m, h, e.onPointClick), _ = g.active?.dot, v = Ks(o, {
6380
+ })), m = ks(p), h = (e) => Ks(p, f, e), g = rc(m, h, e.onPointClick), _ = g.active?.dot, v = Xs(o, {
6326
6381
  title: a,
6327
6382
  shown: p,
6328
6383
  names: f,
@@ -6339,14 +6394,14 @@ function ec(e) {
6339
6394
  pointTo: g.pointTo,
6340
6395
  toPoint: h,
6341
6396
  summary: L(e.summary, v),
6342
- status: _ && g.source === "key" ? Us(o, p, f, _) : null,
6397
+ status: _ && g.source === "key" ? qs(o, p, f, _) : null,
6343
6398
  legendItems: c.map((e) => ({
6344
6399
  key: e.key,
6345
6400
  label: e.label,
6346
6401
  paint: P(e),
6347
6402
  shape: e.shape
6348
6403
  })),
6349
- table: e.dataTable === !1 ? null : qs(o, p, f),
6404
+ table: e.dataTable === !1 ? null : Zs(o, p, f),
6350
6405
  tableCaption: o("material.charts.table-caption", "{title}: the data", { title: a }),
6351
6406
  motionKey: `${t.length}:${l.join(",")}`,
6352
6407
  empty: !t.some((e) => e.points.length > 0)
@@ -6354,16 +6409,16 @@ function ec(e) {
6354
6409
  }
6355
6410
  //#endregion
6356
6411
  //#region lib/components/ui/widgets/native-charts/scatter-chart/scatter-chart.tsx
6357
- function tc(e) {
6358
- let t = ec(e);
6412
+ function ac(e) {
6413
+ let t = ic(e);
6359
6414
  return /* @__PURE__ */ M(z, {
6360
6415
  model: t,
6361
6416
  props: e,
6362
- children: /* @__PURE__ */ M(Vs, {
6417
+ children: /* @__PURE__ */ M(Gs, {
6363
6418
  model: t,
6364
6419
  props: e
6365
6420
  })
6366
6421
  });
6367
6422
  }
6368
6423
  //#endregion
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 };
6424
+ export { mi as AreaChart, Ei as BarChart, Qi as ComboChart, Io as DonutChart, Ma as FunnelChart, $a as Gauge, To as HeatmapChart, Eo as LineChart, Lo as PieChart, fs as RadarChart, Ds as RadialBarChart, ac as ScatterChart };