vue-data-ui 3.4.3 → 3.4.4

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 (156) hide show
  1. package/dist/{Arrow-CRe_nKB4.js → Arrow-BGVin3AS.js} +1 -1
  2. package/dist/{BaseDraggableDialog-CbuLbfrc.js → BaseDraggableDialog-ymf2sfB8.js} +2 -2
  3. package/dist/{BaseIcon-B5KaGWWC.js → BaseIcon-BmMbm4d0.js} +1 -1
  4. package/dist/{ColorPicker-BMztHpBp.js → ColorPicker-J5wOPCeB.js} +2 -2
  5. package/dist/{DataTable-DOx3zgih.js → DataTable-BT7VF2ua.js} +2 -2
  6. package/dist/{Legend-C8u37J42.js → Legend-G6GMcdAc.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-BcxfJ-r2.js → NonSvgPenAndPaper-C7TRn0_3.js} +3 -3
  8. package/dist/{PackageVersion-Df-8U2yE.js → PackageVersion-TgflyMpU.js} +1 -1
  9. package/dist/{PenAndPaper-Dj2diYr0.js → PenAndPaper-DSvu9dwa.js} +3 -3
  10. package/dist/{Shape-BhNvlGIN.js → Shape-CNXKB8O0.js} +1 -1
  11. package/dist/{Slicer-BHgEsIBU.js → Slicer-D2wm0coO.js} +2 -2
  12. package/dist/{SlicerPreview-Cobmb_1S.js → SlicerPreview-ij72TAs6.js} +2 -2
  13. package/dist/{SparkTooltip-CL3cNRQ_.js → SparkTooltip-BEewz-_Q.js} +1 -1
  14. package/dist/{Title-D7_5ICX_.js → Title-BWp-37K_.js} +1 -1
  15. package/dist/{Tooltip-Cs4v8OnI.js → Tooltip-68Yi_FFl.js} +1 -1
  16. package/dist/{UserOptions-C0YT60JN.js → UserOptions-1OZ3jcm6.js} +2 -2
  17. package/dist/components/arrow.js +1 -1
  18. package/dist/components/vue-ui-3d-bar.js +1 -1
  19. package/dist/components/vue-ui-accordion.js +1 -1
  20. package/dist/components/vue-ui-age-pyramid.js +1 -1
  21. package/dist/components/vue-ui-annotator.js +1 -1
  22. package/dist/components/vue-ui-bullet.js +1 -1
  23. package/dist/components/vue-ui-candlestick.js +1 -1
  24. package/dist/components/vue-ui-carousel-table.js +1 -1
  25. package/dist/components/vue-ui-chestnut.js +1 -1
  26. package/dist/components/vue-ui-chord.js +1 -1
  27. package/dist/components/vue-ui-circle-pack.js +1 -1
  28. package/dist/components/vue-ui-cursor.js +1 -1
  29. package/dist/components/vue-ui-dashboard.js +1 -1
  30. package/dist/components/vue-ui-digits.js +1 -1
  31. package/dist/components/vue-ui-donut-evolution.js +1 -1
  32. package/dist/components/vue-ui-donut.js +1 -1
  33. package/dist/components/vue-ui-dumbbell.js +1 -1
  34. package/dist/components/vue-ui-flow.js +1 -1
  35. package/dist/components/vue-ui-funnel.js +1 -1
  36. package/dist/components/vue-ui-galaxy.js +1 -1
  37. package/dist/components/vue-ui-gauge.js +1 -1
  38. package/dist/components/vue-ui-gizmo.js +1 -1
  39. package/dist/components/vue-ui-heatmap.js +1 -1
  40. package/dist/components/vue-ui-history-plot.js +1 -1
  41. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  42. package/dist/components/vue-ui-icon.js +1 -1
  43. package/dist/components/vue-ui-kpi.js +1 -1
  44. package/dist/components/vue-ui-mini-loader.js +1 -1
  45. package/dist/components/vue-ui-molecule.js +1 -1
  46. package/dist/components/vue-ui-mood-radar.js +1 -1
  47. package/dist/components/vue-ui-nested-donuts.js +1 -1
  48. package/dist/components/vue-ui-onion.js +1 -1
  49. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  50. package/dist/components/vue-ui-quadrant.js +1 -1
  51. package/dist/components/vue-ui-quick-chart.js +1 -1
  52. package/dist/components/vue-ui-radar.js +1 -1
  53. package/dist/components/vue-ui-rating.js +1 -1
  54. package/dist/components/vue-ui-relation-circle.js +1 -1
  55. package/dist/components/vue-ui-ridgeline.js +1 -1
  56. package/dist/components/vue-ui-rings.js +1 -1
  57. package/dist/components/vue-ui-scatter.js +1 -1
  58. package/dist/components/vue-ui-skeleton.js +1 -1
  59. package/dist/components/vue-ui-smiley.js +1 -1
  60. package/dist/components/vue-ui-spark-trend.js +1 -1
  61. package/dist/components/vue-ui-sparkbar.js +1 -1
  62. package/dist/components/vue-ui-sparkgauge.js +1 -1
  63. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  64. package/dist/components/vue-ui-sparkline.js +1 -1
  65. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  66. package/dist/components/vue-ui-stackbar.js +1 -1
  67. package/dist/components/vue-ui-strip-plot.js +1 -1
  68. package/dist/components/vue-ui-table-heatmap.js +1 -1
  69. package/dist/components/vue-ui-table-sparkline.js +1 -1
  70. package/dist/components/vue-ui-table.js +1 -1
  71. package/dist/components/vue-ui-thermometer.js +1 -1
  72. package/dist/components/vue-ui-timer.js +1 -1
  73. package/dist/components/vue-ui-tiremarks.js +1 -1
  74. package/dist/components/vue-ui-treemap.js +1 -1
  75. package/dist/components/vue-ui-vertical-bar.js +1 -1
  76. package/dist/components/vue-ui-waffle.js +1 -1
  77. package/dist/components/vue-ui-wheel.js +1 -1
  78. package/dist/components/vue-ui-word-cloud.js +1 -1
  79. package/dist/components/vue-ui-world.js +1 -1
  80. package/dist/components/vue-ui-xy-canvas.js +1 -1
  81. package/dist/components/vue-ui-xy.js +1 -1
  82. package/dist/{dom-to-png-xQ7LXrxp.js → dom-to-png--BNgrTZV.js} +1 -1
  83. package/dist/{img-CFY3JivG.js → img-BecE5qXd.js} +1 -1
  84. package/dist/{lib-BcBZIm6u.js → lib-C_mNZmhD.js} +311 -303
  85. package/dist/{pdf-O34i6EQX.js → pdf-DuG5j3Wv.js} +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/types/vue-data-ui.d.ts +8 -0
  88. package/dist/{useAutoSizeLabelsInsideViewbox-BHq4FD8x.js → useAutoSizeLabelsInsideViewbox-BhzfwQ_k.js} +1 -1
  89. package/dist/{useNestedProp-CtheCta-.js → useNestedProp-dJX_8vvZ.js} +10 -2
  90. package/dist/{usePrinter-C1GiglOH.js → usePrinter-DTzqpYKF.js} +2 -2
  91. package/dist/{vue-data-ui-OfJx8jSP.js → vue-data-ui-Cx68QDfQ.js} +64 -64
  92. package/dist/vue-data-ui.js +72 -72
  93. package/dist/{vue-ui-3d-bar-Bp-sqsyU.js → vue-ui-3d-bar-C777yFCa.js} +6 -6
  94. package/dist/{vue-ui-accordion-DXdd_qAk.js → vue-ui-accordion-UpZ765hd.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-CUVtajBe.js → vue-ui-age-pyramid-Dob7mIkZ.js} +6 -6
  96. package/dist/{vue-ui-annotator-D5GKadj6.js → vue-ui-annotator--8upDtTs.js} +7 -7
  97. package/dist/{vue-ui-bullet-rQoLiK2b.js → vue-ui-bullet-K2J31pN0.js} +7 -7
  98. package/dist/{vue-ui-candlestick-D7eCxbQ8.js → vue-ui-candlestick-BYAtu5ns.js} +7 -7
  99. package/dist/{vue-ui-carousel-table-Bu8HSJRc.js → vue-ui-carousel-table-D4mU7lyU.js} +4 -4
  100. package/dist/{vue-ui-chestnut-BqyduBAg.js → vue-ui-chestnut-DCxYsgRF.js} +5 -5
  101. package/dist/{vue-ui-chord-VTRyVBx4.js → vue-ui-chord-jzC9Ioet.js} +8 -8
  102. package/dist/{vue-ui-circle-pack-DIXUixuK.js → vue-ui-circle-pack-y8KHilxj.js} +6 -6
  103. package/dist/{vue-ui-cursor-TFVxgVEa.js → vue-ui-cursor-BqWDtj2I.js} +2 -2
  104. package/dist/{vue-ui-dashboard-DeFPygcZ.js → vue-ui-dashboard-BbXfbRd0.js} +67 -67
  105. package/dist/{vue-ui-digits-B6cIiy1Z.js → vue-ui-digits-Cdn6EcYe.js} +2 -2
  106. package/dist/{vue-ui-donut-B3kaTm1I.js → vue-ui-donut-DCMaXKHe.js} +8 -8
  107. package/dist/{vue-ui-donut-evolution-CGxyHap0.js → vue-ui-donut-evolution-BUu-RAkz.js} +8 -8
  108. package/dist/{vue-ui-dumbbell-BpHU2gPm.js → vue-ui-dumbbell-BeH9PPMc.js} +7 -7
  109. package/dist/{vue-ui-flow-B1jwV-to.js → vue-ui-flow-ITp7cFEx.js} +7 -7
  110. package/dist/{vue-ui-funnel-C07ghZCo.js → vue-ui-funnel-DMyu3e5n.js} +6 -6
  111. package/dist/{vue-ui-galaxy-C2aCa9u0.js → vue-ui-galaxy-BGMtscCZ.js} +7 -7
  112. package/dist/{vue-ui-gauge-BymG1mO4.js → vue-ui-gauge-DmRrw6oc.js} +7 -7
  113. package/dist/{vue-ui-gizmo-BjPbDZKf.js → vue-ui-gizmo-BhyYpiEW.js} +3 -3
  114. package/dist/{vue-ui-heatmap-D2udHyOO.js → vue-ui-heatmap-DBDUKIjw.js} +7 -7
  115. package/dist/{vue-ui-history-plot-C1v5py9J.js → vue-ui-history-plot-CBhE_gIp.js} +7 -7
  116. package/dist/{vue-ui-kpi-4fToBGEE.js → vue-ui-kpi-CVpJH51G.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-o6xsgflK.js → vue-ui-mini-loader-b4D0tPsD.js} +2 -2
  118. package/dist/{vue-ui-molecule-QJY9Jg--.js → vue-ui-molecule-D1TlMhn-.js} +5 -5
  119. package/dist/{vue-ui-mood-radar-CYz7t7cO.js → vue-ui-mood-radar-CUYY-Szv.js} +7 -7
  120. package/dist/{vue-ui-nested-donuts-Cs_KVggH.js → vue-ui-nested-donuts-D2Po_PPW.js} +7 -7
  121. package/dist/{vue-ui-onion-DI__t0Yo.js → vue-ui-onion-CfzTGHTz.js} +8 -8
  122. package/dist/{vue-ui-parallel-coordinate-plot-BUFBIY0H.js → vue-ui-parallel-coordinate-plot-Ci8_8l5O.js} +8 -8
  123. package/dist/{vue-ui-quadrant-q27Crjhv.js → vue-ui-quadrant-BO_6zkWH.js} +8 -8
  124. package/dist/{vue-ui-quick-chart-vA-5-zU_.js → vue-ui-quick-chart-BGsUTlN6.js} +6 -6
  125. package/dist/{vue-ui-radar-v6sFZlta.js → vue-ui-radar-Cb4NhTp9.js} +8 -8
  126. package/dist/{vue-ui-rating-B1TGv80Y.js → vue-ui-rating-CvJlfRvs.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-C_7j_HC1.js → vue-ui-relation-circle-gKV4FDiD.js} +7 -7
  128. package/dist/{vue-ui-ridgeline-BaDr8YsQ.js → vue-ui-ridgeline-B5Z_H1U_.js} +8 -8
  129. package/dist/{vue-ui-rings-BcsyGpD-.js → vue-ui-rings-DXYT08cN.js} +8 -8
  130. package/dist/{vue-ui-scatter-DsvtDcRf.js → vue-ui-scatter-B_e_aVVt.js} +8 -8
  131. package/dist/{vue-ui-skeleton-DJka_Bjy.js → vue-ui-skeleton-oFjhyDNo.js} +3 -3
  132. package/dist/{vue-ui-smiley-D-W7GeoN.js → vue-ui-smiley-D3k4b6h1.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-ufRxrEgv.js → vue-ui-spark-trend-CAMWrCuF.js} +3 -3
  134. package/dist/{vue-ui-sparkbar-C0hU8raA.js → vue-ui-sparkbar-VN-3rFCT.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-1bi-EEqb.js → vue-ui-sparkgauge-B1QNNxyJ.js} +3 -3
  136. package/dist/{vue-ui-sparkhistogram-H1BSDVyx.js → vue-ui-sparkhistogram-Cb7ACr7x.js} +4 -4
  137. package/dist/{vue-ui-sparkline-DElVjWGk.js → vue-ui-sparkline-DA40psbw.js} +3 -3
  138. package/dist/{vue-ui-sparkstackbar-DE3D2xTJ.js → vue-ui-sparkstackbar-CJ_L5xwe.js} +3 -3
  139. package/dist/{vue-ui-stackbar-DVTV6JcM.js → vue-ui-stackbar-CJgS4kt9.js} +9 -9
  140. package/dist/{vue-ui-strip-plot-0RudVLPB.js → vue-ui-strip-plot-DQ8uM3vL.js} +7 -7
  141. package/dist/{vue-ui-table-jbkT9pG2.js → vue-ui-table-DXJzV47E.js} +5 -5
  142. package/dist/{vue-ui-table-heatmap-BQgeM3lZ.js → vue-ui-table-heatmap-zbRs5HKh.js} +5 -5
  143. package/dist/{vue-ui-table-sparkline-Elk05A1j.js → vue-ui-table-sparkline-DCll7_tQ.js} +4 -4
  144. package/dist/{vue-ui-thermometer-6QNHvlxi.js → vue-ui-thermometer-BamrnCX9.js} +7 -7
  145. package/dist/{vue-ui-timer-BvHuXOu1.js → vue-ui-timer-ClzIo0W7.js} +5 -5
  146. package/dist/{vue-ui-tiremarks-CCfLSw7X.js → vue-ui-tiremarks-zcoGGB82.js} +6 -6
  147. package/dist/vue-ui-treemap-B-Jt_hzH.js +1289 -0
  148. package/dist/{vue-ui-vertical-bar-C8UcI92_.js → vue-ui-vertical-bar-B5lTNJP2.js} +9 -9
  149. package/dist/{vue-ui-waffle-CMO0x41z.js → vue-ui-waffle-CLN7Vhv2.js} +8 -8
  150. package/dist/{vue-ui-wheel-CB2KRY13.js → vue-ui-wheel-Cc7zjB8c.js} +6 -6
  151. package/dist/{vue-ui-word-cloud-BDP2WP1p.js → vue-ui-word-cloud-BW8UT3gD.js} +6 -6
  152. package/dist/{vue-ui-world-CobFs5Vm.js → vue-ui-world-BKaac8Ew.js} +6 -6
  153. package/dist/{vue-ui-xy-DmWHarZg.js → vue-ui-xy-DXMbNkHe.js} +9 -9
  154. package/dist/{vue-ui-xy-canvas-BwhZD5_d.js → vue-ui-xy-canvas-Dm-LZ-LP.js} +10 -10
  155. package/package.json +1 -1
  156. package/dist/vue-ui-treemap-DNimXWh4.js +0 -1131
@@ -1,48 +1,48 @@
1
- import { unref as J, isRef as tt, toRaw as ut } from "vue";
2
- const lt = "#COMP# dataset prop is either missing, undefined or empty.", ft = "#COMP# dataset is missing the '#ATTR#' attribute.", ht = "#COMP# dataset '#ATTR#' attribute cannot be empty.", Ft = "#COMP# dataset #KEY# item at index #INDX# is missing the '#ATTR#' attribute.", dt = "#COMP# : Chart could not be built. Dataset is not formatted correctly", gt = "#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value).", Et = {
3
- dataset: lt,
1
+ import { unref as J, isRef as tt, toRaw as lt } from "vue";
2
+ const ut = "#COMP# dataset prop is either missing, undefined or empty.", ft = "#COMP# dataset is missing the '#ATTR#' attribute.", ht = "#COMP# dataset '#ATTR#' attribute cannot be empty.", Ft = "#COMP# dataset #KEY# item at index #INDX# is missing the '#ATTR#' attribute.", dt = "#COMP# : Chart could not be built. Dataset is not formatted correctly", gt = "#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value).", pt = {
3
+ dataset: ut,
4
4
  datasetAttribute: ft,
5
5
  datasetAttributeEmpty: ht,
6
6
  datasetSerieAttribute: Ft,
7
7
  notBuildable: dt,
8
8
  attributeWrongValue: gt
9
9
  };
10
- function kt(t, n, e, o, r, s = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a = 0) {
10
+ function kt(t, n, e, o, r, s = 1.99999, c = 2, i = 1.45, l = 360, u = 105.25, a = 0) {
11
11
  const { series: f } = t;
12
12
  if (!f || f.length === 0)
13
13
  return [];
14
- const h = f.reduce((E, y) => E + y.value, 0), F = [];
14
+ const h = f.reduce((p, y) => p + y.value, 0), F = [];
15
15
  let d = 0;
16
- for (let E = 0; E < f.length; E++) {
17
- const y = f[E].value, x = f.length === 1, p = x ? 1 : h > 0 ? y / h : 0, C = p * (Math.PI * s), O = (x ? 0.5 : h > 0 ? y / 2 / h : 0.5) * (Math.PI * c), { startX: L, startY: m, endX: $, endY: M, path: D } = Z(
16
+ for (let p = 0; p < f.length; p++) {
17
+ const y = f[p].value, x = f.length === 1, E = x ? 1 : h > 0 ? y / h : 0, C = E * (Math.PI * s), O = (x ? 0.5 : h > 0 ? y / 2 / h : 0.5) * (Math.PI * c), { startX: L, startY: m, endX: $, endY: M, path: D } = Z(
18
18
  [n, e],
19
19
  [o, r],
20
20
  [d, C],
21
- l,
22
21
  u,
22
+ l,
23
23
  c
24
24
  ), g = Z(
25
25
  [n, e],
26
26
  [o - a, r - a],
27
27
  [d, C],
28
- l,
29
28
  u,
29
+ l,
30
30
  c,
31
31
  !0
32
32
  ), I = Z(
33
33
  [n, e],
34
34
  [o * i, r * i],
35
35
  [d, O],
36
- l,
37
36
  u,
37
+ l,
38
38
  c
39
39
  );
40
40
  F.push({
41
41
  arcSlice: `${D} L ${g.startX} ${g.startY} ${g.path} L ${L} ${m}`,
42
42
  cx: A(n),
43
43
  cy: A(e),
44
- ...f[E],
45
- proportion: A(p),
44
+ ...f[p],
45
+ proportion: A(E),
46
46
  ratio: A(C),
47
47
  path: D.replaceAll("NaN", "0"),
48
48
  startX: A(L),
@@ -68,15 +68,15 @@ function nt([t, n], [e, o]) {
68
68
  function et([[t, n], [e, o]], [r, s]) {
69
69
  return [t * r + n * s, e * r + o * s];
70
70
  }
71
- function pt(t) {
71
+ function Et(t) {
72
72
  return [
73
73
  [Math.cos(t), -Math.sin(t)],
74
74
  [Math.sin(t), Math.cos(t)]
75
75
  ];
76
76
  }
77
- function Z([t, n], [e, o], [r, s], c, i = 360, u = 2, l = !1) {
78
- s = s % (u * Math.PI);
79
- const a = pt(c), [f, h] = nt(
77
+ function Z([t, n], [e, o], [r, s], c, i = 360, l = 2, u = !1) {
78
+ s = s % (l * Math.PI);
79
+ const a = Et(c), [f, h] = nt(
80
80
  et(a, [
81
81
  e * Math.cos(r),
82
82
  o * Math.sin(r)
@@ -88,20 +88,20 @@ function Z([t, n], [e, o], [r, s], c, i = 360, u = 2, l = !1) {
88
88
  o * Math.sin(r + s)
89
89
  ]),
90
90
  [t, n]
91
- ), E = s > Math.PI ? 1 : 0, y = s > 0 ? l ? 0 : 1 : l ? 1 : 0;
91
+ ), p = s > Math.PI ? 1 : 0, y = s > 0 ? u ? 0 : 1 : u ? 1 : 0;
92
92
  return {
93
- startX: A(l ? F : f),
94
- startY: A(l ? d : h),
95
- endX: A(l ? f : F),
96
- endY: A(l ? h : d),
97
- path: `M${A(l ? F : f)} ${A(l ? d : h)} A ${[
93
+ startX: A(u ? F : f),
94
+ startY: A(u ? d : h),
95
+ endX: A(u ? f : F),
96
+ endY: A(u ? h : d),
97
+ path: `M${A(u ? F : f)} ${A(u ? d : h)} A ${[
98
98
  A(e),
99
99
  A(o),
100
- A(c / (u * Math.PI) * i),
101
- A(E),
100
+ A(c / (l * Math.PI) * i),
101
+ A(p),
102
102
  A(y),
103
- A(l ? f : F),
104
- A(l ? h : d)
103
+ A(u ? f : F),
104
+ A(u ? h : d)
105
105
  ].join(" ")}`
106
106
  };
107
107
  }
@@ -368,8 +368,8 @@ function at(t) {
368
368
  if (t == null || typeof t == "number" && isNaN(t))
369
369
  return null;
370
370
  if (t = tt?.(t) ? J(t) : t, t = Bt(t), Array.isArray(t)) {
371
- const [i, u, l, a = 1] = t;
372
- t = `rgba(${i},${u},${l},${a})`;
371
+ const [i, l, u, a = 1] = t;
372
+ t = `rgba(${i},${l},${u},${a})`;
373
373
  } else if (typeof t == "object")
374
374
  if (Number.isFinite(t.r) && Number.isFinite(t.g) && Number.isFinite(t.b)) {
375
375
  const i = Number.isFinite(t.a) ? t.a : 1;
@@ -377,24 +377,24 @@ function at(t) {
377
377
  } else
378
378
  return null;
379
379
  else if (typeof t == "number") {
380
- const i = t >>> 0, u = i.toString(16).padStart(i <= 16777215 ? 6 : 8, "0");
381
- return `#${u.length === 6 ? u + "ff" : u}`;
380
+ const i = t >>> 0, l = i.toString(16).padStart(i <= 16777215 ? 6 : 8, "0");
381
+ return `#${l.length === 6 ? l + "ff" : l}`;
382
382
  } else if (typeof t != "string")
383
383
  return null;
384
384
  if (t = t.trim(), t.toLowerCase() === "transparent")
385
385
  return "#FFFFFF00";
386
- t = t.replace(e, (i, u, l, a, f) => `#${u}${u}${l}${l}${a}${a}${f ? f + f : ""}`);
386
+ t = t.replace(e, (i, l, u, a, f) => `#${l}${l}${u}${u}${a}${a}${f ? f + f : ""}`);
387
387
  let s, c = 1;
388
388
  if (s = t.match(n)) {
389
- const [, i, u, l, a] = s;
390
- return c = a ? parseInt(a, 16) / 255 : 1, `#${i}${u}${l}${G(Math.round(c * 255))}`;
389
+ const [, i, l, u, a] = s;
390
+ return c = a ? parseInt(a, 16) / 255 : 1, `#${i}${l}${u}${G(Math.round(c * 255))}`;
391
391
  } else if (s = t.match(o)) {
392
- const [, i, u, l, a] = s;
393
- return c = a ? parseFloat(a) : 1, `#${G(i)}${G(u)}${G(l)}${G(Math.round(c * 255))}`;
392
+ const [, i, l, u, a] = s;
393
+ return c = a ? parseFloat(a) : 1, `#${G(i)}${G(l)}${G(u)}${G(Math.round(c * 255))}`;
394
394
  } else if (s = t.match(r)) {
395
- const [, i, u, l, a] = s;
395
+ const [, i, l, u, a] = s;
396
396
  c = a ? parseFloat(a) : 1;
397
- const [f, h, F] = bt(Number(i), Number(u), Number(l));
397
+ const [f, h, F] = bt(Number(i), Number(l), Number(u));
398
398
  return `#${G(f)}${G(h)}${G(F)}${G(Math.round(c * 255))}`;
399
399
  }
400
400
  return null;
@@ -409,8 +409,8 @@ function bt(t, n, e, o = 1) {
409
409
  if (n === 0)
410
410
  r = s = c = e;
411
411
  else {
412
- const i = (a, f, h) => (h < 0 && (h += 1), h > 1 && (h -= 1), h < 0.16666666666666666 ? a + (f - a) * 6 * h : h < 0.5 ? f : h < 0.6666666666666666 ? a + (f - a) * (0.6666666666666666 - h) * 6 : a), u = e < 0.5 ? e * (1 + n) : e + n - e * n, l = 2 * e - u;
413
- r = i(l, u, t + 1 / 3), s = i(l, u, t), c = i(l, u, t - 1 / 3);
412
+ const i = (a, f, h) => (h < 0 && (h += 1), h > 1 && (h -= 1), h < 0.16666666666666666 ? a + (f - a) * 6 * h : h < 0.5 ? f : h < 0.6666666666666666 ? a + (f - a) * (0.6666666666666666 - h) * 6 : a), l = e < 0.5 ? e * (1 + n) : e + n - e * n, u = 2 * e - l;
413
+ r = i(u, l, t + 1 / 3), s = i(u, l, t), c = i(u, l, t - 1 / 3);
414
414
  }
415
415
  return [
416
416
  Math.round(r * 255),
@@ -426,13 +426,13 @@ function Gt(t, n) {
426
426
  b: parseInt(f.substring(5, 7), 16)
427
427
  }), s = ({ r: f, g: h, b: F }) => {
428
428
  f /= 255, h /= 255, F /= 255;
429
- const d = Math.max(f, h, F), E = Math.min(f, h, F);
430
- let y, x, p = (d + E) / 2;
431
- if (d === E)
429
+ const d = Math.max(f, h, F), p = Math.min(f, h, F);
430
+ let y, x, E = (d + p) / 2;
431
+ if (d === p)
432
432
  y = x = 0;
433
433
  else {
434
- const C = d - E;
435
- switch (x = p > 0.5 ? C / (2 - d - E) : C / (d + E), d) {
434
+ const C = d - p;
435
+ switch (x = E > 0.5 ? C / (2 - d - p) : C / (d + p), d) {
436
436
  case f:
437
437
  y = (h - F) / C + (h < F ? 6 : 0);
438
438
  break;
@@ -445,24 +445,24 @@ function Gt(t, n) {
445
445
  }
446
446
  y /= 6;
447
447
  }
448
- return { h: y, s: x, l: p };
448
+ return { h: y, s: x, l: E };
449
449
  }, c = ({ h: f, s: h, l: F }) => {
450
- let d, E, y;
450
+ let d, p, y;
451
451
  if (h === 0)
452
- d = E = y = F;
452
+ d = p = y = F;
453
453
  else {
454
- const x = (S, O, L) => (L < 0 && (L += 1), L > 1 && (L -= 1), L < 0.16666666666666666 ? S + (O - S) * 6 * L : L < 0.5 ? O : L < 0.6666666666666666 ? S + (O - S) * (0.6666666666666666 - L) * 6 : S), p = F < 0.5 ? F * (1 + h) : F + h - F * h, C = 2 * F - p;
455
- d = x(C, p, f + 1 / 3), E = x(C, p, f), y = x(C, p, f - 1 / 3);
454
+ const x = (R, O, L) => (L < 0 && (L += 1), L > 1 && (L -= 1), L < 0.16666666666666666 ? R + (O - R) * 6 * L : L < 0.5 ? O : L < 0.6666666666666666 ? R + (O - R) * (0.6666666666666666 - L) * 6 : R), E = F < 0.5 ? F * (1 + h) : F + h - F * h, C = 2 * F - E;
455
+ d = x(C, E, f + 1 / 3), p = x(C, E, f), y = x(C, E, f - 1 / 3);
456
456
  }
457
457
  return {
458
458
  r: Math.round(d * 255),
459
- g: Math.round(E * 255),
459
+ g: Math.round(p * 255),
460
460
  b: Math.round(y * 255)
461
461
  };
462
- }, i = r(e || "#000000"), u = s(i);
463
- u.h += n, u.h = (u.h + 1) % 1;
464
- const l = c(u);
465
- return `#${(l.r << 16 | l.g << 8 | l.b).toString(16).padStart(6, "0")}` + (o || "");
462
+ }, i = r(e || "#000000"), l = s(i);
463
+ l.h += n, l.h = (l.h + 1) % 1;
464
+ const u = c(l);
465
+ return `#${(u.r << 16 | u.g << 8 | u.b).toString(16).padStart(6, "0")}` + (o || "");
466
466
  }
467
467
  function Mt({
468
468
  centerX: t,
@@ -473,14 +473,14 @@ function Mt({
473
473
  }) {
474
474
  const s = Math.PI / e, c = r;
475
475
  let i = "";
476
- const u = [];
477
- for (let l = 0; l < e * 2; l += 1) {
478
- let a = t + Math.cos(l * s + c) * o, f = n + Math.sin(l * s + c) * o;
479
- i += `${a},${f} `, u.push({ x: a, y: f });
476
+ const l = [];
477
+ for (let u = 0; u < e * 2; u += 1) {
478
+ let a = t + Math.cos(u * s + c) * o, f = n + Math.sin(u * s + c) * o;
479
+ i += `${a},${f} `, l.push({ x: a, y: f });
480
480
  }
481
481
  return {
482
482
  path: `M${i}Z`,
483
- coordinates: u
483
+ coordinates: l
484
484
  };
485
485
  }
486
486
  function vt({
@@ -506,25 +506,25 @@ function Ct({
506
506
  outerRadius: r
507
507
  }) {
508
508
  const s = Math.PI / e, c = 60, i = e * 2;
509
- let u = "";
510
- for (let l = 0; l < i; l += 1) {
511
- let f = l % 2 == 0 ? r : o, h = t + Math.cos(l * s + c) * f, F = n + Math.sin(l * s + c) * f;
512
- u += `${h},${F} `;
509
+ let l = "";
510
+ for (let u = 0; u < i; u += 1) {
511
+ let f = u % 2 == 0 ? r : o, h = t + Math.cos(u * s + c) * f, F = n + Math.sin(u * s + c) * f;
512
+ l += `${h},${F} `;
513
513
  }
514
- return u;
514
+ return l;
515
515
  }
516
516
  function Xt({
517
517
  plot: t,
518
518
  radius: n,
519
519
  apexes: e = 5
520
520
  }) {
521
- const o = t.x, r = t.y, s = e, c = n * 3.5 / s, u = c * 2;
521
+ const o = t.x, r = t.y, s = e, c = n * 3.5 / s, l = c * 2;
522
522
  return Ct({
523
523
  centerX: o,
524
524
  centerY: r,
525
525
  innerCirclePoints: s,
526
526
  innerRadius: c,
527
- outerRadius: u
527
+ outerRadius: l
528
528
  });
529
529
  }
530
530
  function jt({ series: t }) {
@@ -546,8 +546,8 @@ function jt({ series: t }) {
546
546
  const s = [r];
547
547
  let c = r;
548
548
  const i = n.length + 2;
549
- let u = 0;
550
- for (; !(++u > i); ) {
549
+ let l = 0;
550
+ for (; !(++l > i); ) {
551
551
  let a = n[0] === c ? n[1] : n[0];
552
552
  for (const f of n) {
553
553
  if (f === c || f === a) continue;
@@ -557,10 +557,10 @@ function jt({ series: t }) {
557
557
  if (a === r) break;
558
558
  s.push(a), c = a;
559
559
  }
560
- let l = "";
560
+ let u = "";
561
561
  for (const a of s)
562
- l += `${Math.round(a.x)},${Math.round(a.y)} `;
563
- return l;
562
+ u += `${Math.round(a.x)},${Math.round(a.y)} `;
563
+ return u;
564
564
  }
565
565
  function X(t) {
566
566
  return t * Math.PI / 180;
@@ -569,15 +569,15 @@ function Kt(t) {
569
569
  if (t) {
570
570
  let n = t, e = 1;
571
571
  if (n.startsWith("rgba")) {
572
- const l = n.match(/rgba?\((\d+), (\d+), (\d+), ([\d.]+)\)/);
573
- if (l) {
574
- const [, a, f, h, F] = l;
572
+ const u = n.match(/rgba?\((\d+), (\d+), (\d+), ([\d.]+)\)/);
573
+ if (u) {
574
+ const [, a, f, h, F] = u;
575
575
  e = parseFloat(F), n = `#${parseInt(a).toString(16).padStart(2, "0")}${parseInt(f).toString(16).padStart(2, "0")}${parseInt(h).toString(16).padStart(2, "0")}`;
576
576
  }
577
577
  }
578
578
  n.charAt(0) !== "#" && (n = this.rgbToHex(t)), n = n.substring(1, 7);
579
- let o = parseInt(n.substring(0, 2), 16), r = parseInt(n.substring(2, 4), 16), s = parseInt(n.substring(4, 6), 16), i = [o / 255, r / 255, s / 255].map((l) => l <= 0.03928 ? l / 12.92 : Math.pow((l + 0.055) / 1.055, 2.4)), u = 0.2126 * i[0] + 0.7152 * i[1] + 0.0722 * i[2];
580
- return e < 1 ? e * u + (1 - e) * 1 > 0.3 ? "#000000" : "#FFFFFF" : u > 0.3 ? "#000000" : "#FFFFFF";
579
+ let o = parseInt(n.substring(0, 2), 16), r = parseInt(n.substring(2, 4), 16), s = parseInt(n.substring(4, 6), 16), i = [o / 255, r / 255, s / 255].map((u) => u <= 0.03928 ? u / 12.92 : Math.pow((u + 0.055) / 1.055, 2.4)), l = 0.2126 * i[0] + 0.7152 * i[1] + 0.0722 * i[2];
580
+ return e < 1 ? e * l + (1 - e) * 1 > 0.3 ? "#000000" : "#FFFFFF" : l > 0.3 ? "#000000" : "#FFFFFF";
581
581
  }
582
582
  return "#000000";
583
583
  }
@@ -591,7 +591,7 @@ function st(t) {
591
591
  return t === "" ? "#000000" : t === "transparent" ? "#FFFFFF00" : at(t) ?? t;
592
592
  }
593
593
  function q(t, n = /* @__PURE__ */ new WeakSet()) {
594
- const e = ut(t);
594
+ const e = lt(t);
595
595
  if (!K(e) || n.has(e)) return e;
596
596
  n.add(e);
597
597
  for (const o in e) {
@@ -619,12 +619,12 @@ function Wt(t) {
619
619
  let e = 0, o = 0, r = 0, s = 0;
620
620
  for (const { x: M, y: D } of t)
621
621
  e += M, o += D, r += M * D, s += M * M;
622
- const c = n * s - e * e || 1, i = (n * r - e * o) / c, u = (o - i * e) / n, l = t[0].x, a = t[n - 1].x, f = i * l + u, h = i * a + u;
623
- let F = 0, d = 0, E = 0, y = 0;
622
+ const c = n * s - e * e || 1, i = (n * r - e * o) / c, l = (o - i * e) / n, u = t[0].x, a = t[n - 1].x, f = i * u + l, h = i * a + l;
623
+ let F = 0, d = 0, p = 0, y = 0;
624
624
  for (let M = 0; M < n; M += 1)
625
- F += M, d += t[M].value, E += M * t[M].value, y += M * M;
626
- const x = n * y - F * F || 1, p = (n * E - F * d) / x, C = (d - p * F) / n, S = C, O = p * (n - 1) + C, m = Math.max(Math.abs(S), Math.abs(d / n), Math.abs(O), 1e-9), $ = (O - S) / m;
627
- return { x1: l, y1: f, x2: a, y2: h, slope: i, trend: $ };
625
+ F += M, d += t[M].value, p += M * t[M].value, y += M * M;
626
+ const x = n * y - F * F || 1, E = (n * p - F * d) / x, C = (d - E * F) / n, R = C, O = E * (n - 1) + C, m = Math.max(Math.abs(R), Math.abs(d / n), Math.abs(O), 1e-9), $ = (O - R) / m;
627
+ return { x1: u, y1: f, x2: a, y2: h, slope: i, trend: $ };
628
628
  }
629
629
  function Vt(t) {
630
630
  const n = Math.floor(t.length / 2), e = [...t].sort((o, r) => o - r);
@@ -646,33 +646,33 @@ function zt(t) {
646
646
  if (s[i - 1] * s[i] <= 0)
647
647
  c[i] = 0;
648
648
  else {
649
- const u = 2 * s[i - 1] * s[i] / (s[i - 1] + s[i]);
650
- c[i] = u;
649
+ const l = 2 * s[i - 1] * s[i] / (s[i - 1] + s[i]);
650
+ c[i] = l;
651
651
  }
652
652
  for (let i = 0; i < n; i += 1) {
653
- const u = t[i].x, l = t[i].y, a = t[i + 1].x, f = t[i + 1].y, h = c[i], F = c[i + 1], d = u + (a - u) / 3, E = l + h * (a - u) / 3, y = a - (a - u) / 3, x = f - F * (a - u) / 3;
654
- e.push(`C ${A(d)},${A(E)} ${A(y)},${A(x)} ${A(a)},${A(f)}`);
653
+ const l = t[i].x, u = t[i].y, a = t[i + 1].x, f = t[i + 1].y, h = c[i], F = c[i + 1], d = l + (a - l) / 3, p = u + h * (a - l) / 3, y = a - (a - l) / 3, x = f - F * (a - l) / 3;
654
+ e.push(`C ${A(d)},${A(p)} ${A(y)},${A(x)} ${A(a)},${A(f)}`);
655
655
  }
656
656
  return e.join(" ");
657
657
  }
658
658
  function Zt(t, n = 0.2) {
659
659
  function e(c, i) {
660
- const u = i.x - c.x, l = i.y - c.y;
660
+ const l = i.x - c.x, u = i.y - c.y;
661
661
  return {
662
- length: Math.sqrt(Math.pow(u, 2) + Math.pow(l, 2)),
663
- angle: Math.atan2(l, u)
662
+ length: Math.sqrt(Math.pow(l, 2) + Math.pow(u, 2)),
663
+ angle: Math.atan2(u, l)
664
664
  };
665
665
  }
666
- function o(c, i, u, l) {
667
- const h = e(i || c, u || c), F = h.angle + (l ? Math.PI : 0), d = h.length * n, E = c.x + Math.cos(F) * d, y = c.y + Math.sin(F) * d;
668
- return { x: E, y };
666
+ function o(c, i, l, u) {
667
+ const h = e(i || c, l || c), F = h.angle + (u ? Math.PI : 0), d = h.length * n, p = c.x + Math.cos(F) * d, y = c.y + Math.sin(F) * d;
668
+ return { x: p, y };
669
669
  }
670
- function r(c, i, u) {
671
- const l = o(u[i - 1], u[i - 2], c), a = o(c, u[i - 1], u[i + 1], !0);
672
- return `C ${A(l.x)},${A(l.y)} ${A(a.x)},${A(a.y)} ${A(c.x)},${A(c.y)}`;
670
+ function r(c, i, l) {
671
+ const u = o(l[i - 1], l[i - 2], c), a = o(c, l[i - 1], l[i + 1], !0);
672
+ return `C ${A(u.x)},${A(u.y)} ${A(a.x)},${A(a.y)} ${A(c.x)},${A(c.y)}`;
673
673
  }
674
674
  return t.filter((c) => !!c).reduce(
675
- (c, i, u, l) => u === 0 ? `${A(i.x)},${A(i.y)} ` : `${c} ${r(i, u, l)} `,
675
+ (c, i, l, u) => l === 0 ? `${A(i.x)},${A(i.y)} ` : `${c} ${r(i, l, u)} `,
676
676
  ""
677
677
  );
678
678
  }
@@ -709,21 +709,21 @@ function $t(t) {
709
709
  let o = 0, r = e, s = e / 2;
710
710
  const c = 0.01;
711
711
  for (; r - o > c; ) {
712
- const l = (o + r) / 2, f = n.getPointAtLength(l).x;
712
+ const u = (o + r) / 2, f = n.getPointAtLength(u).x;
713
713
  if (Math.abs(f - s) < c) {
714
- s = l;
714
+ s = u;
715
715
  break;
716
- } else f < s ? o = l : r = l;
716
+ } else f < s ? o = u : r = u;
717
717
  }
718
- const { x: i, y: u } = n.getPointAtLength(s);
719
- return { x: i, y: u };
718
+ const { x: i, y: l } = n.getPointAtLength(s);
719
+ return { x: i, y: l };
720
720
  }
721
- function Jt(t, n = !1, e = 16, o = 16, r = !1, s = !1, c = 0, i = 12, u = !1) {
722
- const { x: l } = $t(t.path), a = `${W(t).x},${V(t, e, o) - 4} `;
721
+ function Jt(t, n = !1, e = 16, o = 16, r = !1, s = !1, c = 0, i = 12, l = !1) {
722
+ const { x: u } = $t(t.path), a = `${W(t).x},${V(t, e, o) - 4} `;
723
723
  let f = "", h, F;
724
- l > t.cx ? (h = W(t).x - i, F = V(t, e, o) - 4, f = `${h},${F}`) : l < t.cx ? (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`) : (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`);
724
+ u > t.cx ? (h = W(t).x - i, F = V(t, e, o) - 4, f = `${h},${F}`) : u < t.cx ? (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`) : (h = W(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`);
725
725
  const d = ` ${t.center.endX},${t.center.endY}`;
726
- return u ? s ? `M${f} Q${f} ${d}` : `M${a} Q${f} ${d}` : `M${s ? "" : a}${f}${d}`;
726
+ return l ? s ? `M${f} Q${f} ${d}` : `M${a} Q${f} ${d}` : `M${s ? "" : a}${f}${d}`;
727
727
  }
728
728
  function tn(t) {
729
729
  return ![null, void 0, NaN].includes(t);
@@ -752,24 +752,24 @@ function on(t, n) {
752
752
  return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
753
753
  let e = t.replace("#", "");
754
754
  e.length === 3 && (e = e.split("").map((a) => a + a).join(""));
755
- const o = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), s = parseInt(e.substring(4, 6), 16), c = Math.min(255, o + (255 - o) * n), i = Math.min(255, r + (255 - r) * n), u = Math.min(255, s + (255 - s) * n), l = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(u).toString(16).padStart(2, "0")}`;
755
+ const o = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), s = parseInt(e.substring(4, 6), 16), c = Math.min(255, o + (255 - o) * n), i = Math.min(255, r + (255 - r) * n), l = Math.min(255, s + (255 - s) * n), u = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(l).toString(16).padStart(2, "0")}`;
756
756
  if (e.length === 8) {
757
757
  const a = e.substring(6, 8);
758
- return l + a;
758
+ return u + a;
759
759
  }
760
- return l;
760
+ return u;
761
761
  }
762
762
  function cn(t, n) {
763
763
  if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
764
764
  return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
765
765
  let e = t.replace("#", "");
766
766
  e.length === 3 && (e = e.split("").map((a) => a + a).join(""));
767
- const o = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), s = parseInt(e.substring(4, 6), 16), c = Math.max(0, o - o * n), i = Math.max(0, r - r * n), u = Math.max(0, s - s * n), l = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(u).toString(16).padStart(2, "0")}`;
767
+ const o = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), s = parseInt(e.substring(4, 6), 16), c = Math.max(0, o - o * n), i = Math.max(0, r - r * n), l = Math.max(0, s - s * n), u = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(l).toString(16).padStart(2, "0")}`;
768
768
  if (e.length === 8) {
769
769
  const a = e.substring(6, 8);
770
- return l + a;
770
+ return u + a;
771
771
  }
772
- return l;
772
+ return u;
773
773
  }
774
774
  function z(t, n) {
775
775
  const e = Math.floor(Math.log10(t)), o = t / Math.pow(10, e);
@@ -777,50 +777,50 @@ function z(t, n) {
777
777
  return n ? o < 1.5 ? r = 1 : o < 3 ? r = 2 : o < 7 ? r = 5 : r = 10 : o <= 1 ? r = 1 : o <= 2 ? r = 2 : o <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
778
778
  }
779
779
  function an(t, n, e, o = !1) {
780
- const r = o ? n - t : z(n - t, !1), s = o ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s, u = [];
781
- for (let l = c; l <= i; l += s)
782
- u.push(l);
780
+ const r = o ? n - t : z(n - t, !1), s = o ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s, l = [];
781
+ for (let u = c; u <= i; u += s)
782
+ l.push(u);
783
783
  return {
784
784
  min: c,
785
785
  max: i,
786
786
  tickSize: s,
787
- ticks: u
787
+ ticks: l
788
788
  };
789
789
  }
790
- function un(t, n, e, o = !1) {
790
+ function ln(t, n, e, o = !1) {
791
791
  const r = o ? n - t : z(n - t, !1), s = o ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s;
792
- let u = [], l = c;
793
- for (; l <= i; )
794
- l >= t && l <= n && u.push(l), l += s;
795
- return u[0] !== t && (u[0] = t), u[u.length - 1] !== n && (u[u.length - 1] = n), {
792
+ let l = [], u = c;
793
+ for (; u <= i; )
794
+ u >= t && u <= n && l.push(u), u += s;
795
+ return l[0] !== t && (l[0] = t), l[l.length - 1] !== n && (l[l.length - 1] = n), {
796
796
  min: t,
797
797
  max: n,
798
798
  tickSize: s,
799
- ticks: u
799
+ ticks: l
800
800
  };
801
801
  }
802
- function ln(t, n, e, o, r) {
802
+ function un(t, n, e, o, r) {
803
803
  const s = (h) => {
804
- let F = parseInt(h.substring(1, 3), 16), d = parseInt(h.substring(3, 5), 16), E = parseInt(h.substring(5, 7), 16), y = 1;
805
- return h.length === 9 && (y = parseInt(h.substring(7, 9), 16) / 255), { r: F, g: d, b: E, a: y };
806
- }, c = ({ r: h, g: F, b: d, a: E }) => {
807
- const y = (p) => p.toString(16).padStart(2, "0"), x = `#${y(h)}${y(F)}${y(d)}`;
808
- if (E !== 1) {
809
- const p = Math.round(E * 255).toString(16).padStart(2, "0");
810
- return x + p;
804
+ let F = parseInt(h.substring(1, 3), 16), d = parseInt(h.substring(3, 5), 16), p = parseInt(h.substring(5, 7), 16), y = 1;
805
+ return h.length === 9 && (y = parseInt(h.substring(7, 9), 16) / 255), { r: F, g: d, b: p, a: y };
806
+ }, c = ({ r: h, g: F, b: d, a: p }) => {
807
+ const y = (E) => E.toString(16).padStart(2, "0"), x = `#${y(h)}${y(F)}${y(d)}`;
808
+ if (p !== 1) {
809
+ const E = Math.round(p * 255).toString(16).padStart(2, "0");
810
+ return x + E;
811
811
  }
812
812
  return x;
813
- }, i = s(t), u = s(n);
813
+ }, i = s(t), l = s(n);
814
814
  r = Math.min(Math.max(r, e), o);
815
- const l = (r - e) / (o - e), a = {
816
- r: Math.round(i.r + (u.r - i.r) * l),
817
- g: Math.round(i.g + (u.g - i.g) * l),
818
- b: Math.round(i.b + (u.b - i.b) * l)
819
- }, f = i.a + (u.a - i.a) * l;
815
+ const u = (r - e) / (o - e), a = {
816
+ r: Math.round(i.r + (l.r - i.r) * u),
817
+ g: Math.round(i.g + (l.g - i.g) * u),
818
+ b: Math.round(i.b + (l.b - i.b) * u)
819
+ }, f = i.a + (l.a - i.a) * u;
820
820
  return c({ ...a, a: f });
821
821
  }
822
- function fn({ p: t = "", v: n, s: e = "", r: o = 0, space: r = !1, isAnimating: s = !1, regex: c = /[^%]/g, replacement: i = "-", locale: u = null }) {
823
- const l = u ? Number(Number(n).toFixed(o)).toLocaleString(u) : Number(Number(n).toFixed(o)).toLocaleString(), a = l === 1 / 0 ? "∞" : l === -1 / 0 ? "-∞" : l, f = `${t ?? ""}${r ? " " : ""}${[void 0, null].includes(n) ? "-" : a}${r ? " " : ""}${e ?? ""}`;
822
+ function fn({ p: t = "", v: n, s: e = "", r: o = 0, space: r = !1, isAnimating: s = !1, regex: c = /[^%]/g, replacement: i = "-", locale: l = null }) {
823
+ const u = l ? Number(Number(n).toFixed(o)).toLocaleString(l) : Number(Number(n).toFixed(o)).toLocaleString(), a = u === 1 / 0 ? "∞" : u === -1 / 0 ? "-∞" : u, f = `${t ?? ""}${r ? " " : ""}${[void 0, null].includes(n) ? "-" : a}${r ? " " : ""}${e ?? ""}`;
824
824
  return s ? f.replace(c, i) : f;
825
825
  }
826
826
  function hn({ source: t, length: n = 3 }) {
@@ -848,10 +848,10 @@ function dn(t) {
848
848
  function gn(t) {
849
849
  return Array.isArray(t) ? t.length === 0 : t ? Object.keys(t).length === 0 : !0;
850
850
  }
851
- function En({ componentName: t, type: n, property: e = "", index: o = "", key: r = "", warn: s = !0, debug: c = !0 }) {
851
+ function pn({ componentName: t, type: n, property: e = "", index: o = "", key: r = "", warn: s = !0, debug: c = !0 }) {
852
852
  if (!c) return;
853
853
  const i = `
854
- > ${Et[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", o).replace("#KEY#", r)}
854
+ > ${pt[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", o).replace("#KEY#", r)}
855
855
  `;
856
856
  if (s)
857
857
  console.warn(i);
@@ -861,27 +861,27 @@ function En({ componentName: t, type: n, property: e = "", index: o = "", key: r
861
861
  function Dt({ points: t, a: n, b: e, angleStep: o, startX: r, startY: s }) {
862
862
  const c = [];
863
863
  for (let i = 0; i < t; i++) {
864
- const u = o * i, l = n + e * u, a = l * Math.cos(u) + r, f = l * Math.sin(u) + s;
864
+ const l = o * i, u = n + e * l, a = u * Math.cos(l) + r, f = u * Math.sin(l) + s;
865
865
  c.push({ x: a, y: f });
866
866
  }
867
867
  return c;
868
868
  }
869
- function Rt(t) {
869
+ function St(t) {
870
870
  let n = 1 / 0, e = 1 / 0, o = -1 / 0, r = -1 / 0;
871
871
  for (const s of t)
872
872
  s.x < n && (n = s.x), s.y < e && (e = s.y), s.x > o && (o = s.x), s.y > r && (r = s.y);
873
873
  return { minX: n, minY: e, maxX: o, maxY: r, width: o - n || 1, height: r - e || 1 };
874
874
  }
875
- function St(t) {
875
+ function Rt(t) {
876
876
  if (!t.length) return "";
877
877
  let n = `M${t[0].x} ${t[0].y}`;
878
878
  for (let e = 1; e < t.length - 2; e += 2) {
879
- const o = t[e - 1], r = t[e], s = t[e + 1], c = t[e + 2], i = (o.x + r.x) / 2, u = (o.y + r.y) / 2, l = (r.x + s.x) / 2, a = (r.y + s.y) / 2, f = (s.x + c.x) / 2, h = (s.y + c.y) / 2;
880
- n += ` C${i} ${u}, ${l} ${a}, ${f} ${h}`;
879
+ const o = t[e - 1], r = t[e], s = t[e + 1], c = t[e + 2], i = (o.x + r.x) / 2, l = (o.y + r.y) / 2, u = (r.x + s.x) / 2, a = (r.y + s.y) / 2, f = (s.x + c.x) / 2, h = (s.y + c.y) / 2;
880
+ n += ` C${i} ${l}, ${u} ${a}, ${f} ${h}`;
881
881
  }
882
882
  return n;
883
883
  }
884
- function pn({
884
+ function En({
885
885
  maxPoints: t,
886
886
  a: n = 6,
887
887
  b: e = 6,
@@ -890,12 +890,12 @@ function pn({
890
890
  startY: s,
891
891
  boxWidth: c,
892
892
  boxHeight: i,
893
- padding: u = 12
893
+ padding: l = 12
894
894
  }) {
895
- const l = Dt({ points: t, a: n, b: e, angleStep: o, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: d, height: E } = Rt(l), y = (a + h) / 2, x = (f + F) / 2, p = Math.max(1, c - 2 * u), C = Math.max(1, i - 2 * u), S = Math.min(p / d, C / E), O = r - y * S, L = s - x * S;
895
+ const u = Dt({ points: t, a: n, b: e, angleStep: o, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: d, height: p } = St(u), y = (a + h) / 2, x = (f + F) / 2, E = Math.max(1, c - 2 * l), C = Math.max(1, i - 2 * l), R = Math.min(E / d, C / p), O = r - y * R, L = s - x * R;
896
896
  return function($) {
897
- const M = Math.max(2, Math.min(Math.round($), l.length)), D = l.slice(0, M).map((g) => ({ x: g.x * S + O, y: g.y * S + L }));
898
- return St(D);
897
+ const M = Math.max(2, Math.min(Math.round($), u.length)), D = u.slice(0, M).map((g) => ({ x: g.x * R + O, y: g.y * R + L }));
898
+ return Rt(D);
899
899
  };
900
900
  }
901
901
  function An({ datasetObject: t, requiredAttributes: n }) {
@@ -1088,15 +1088,15 @@ function Mn({
1088
1088
  x: r,
1089
1089
  y: s
1090
1090
  }) {
1091
- function c(l, a) {
1092
- const f = l.split(" "), h = [];
1091
+ function c(u, a) {
1092
+ const f = u.split(" "), h = [];
1093
1093
  for (let F = 0; F < f.length; F += a)
1094
1094
  h.push(f.slice(F, F + a).join(" "));
1095
1095
  return h;
1096
1096
  }
1097
1097
  let i = "";
1098
- return c(t, o).forEach((l, a) => {
1099
- const f = `<tspan x="${r}" y="${s + a * n}" fill="${e}">${l}</tspan>`;
1098
+ return c(t, o).forEach((u, a) => {
1099
+ const f = `<tspan x="${r}" y="${s + a * n}" fill="${e}">${u}</tspan>`;
1100
1100
  i += f;
1101
1101
  }), i;
1102
1102
  }
@@ -1104,64 +1104,64 @@ function Cn(t) {
1104
1104
  return t.length ? t.map((n) => at(n)) : [];
1105
1105
  }
1106
1106
  function $n(t, n = null) {
1107
- const e = t.replace(/[\p{P}\p{S}]+/gu, " ").trim(), c = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(t) ? [...e] : e.split(/\s+/)).filter((i) => i.trim().length > 0).reduce((i, u) => (i[u] ? i[u] += 1 : i[u] = 1, i), {});
1107
+ const e = t.replace(/[\p{P}\p{S}]+/gu, " ").trim(), c = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(t) ? [...e] : e.split(/\s+/)).filter((i) => i.trim().length > 0).reduce((i, l) => (i[l] ? i[l] += 1 : i[l] = 1, i), {});
1108
1108
  return Object.keys(c).map((i) => {
1109
- let u = i;
1110
- return typeof n == "function" && typeof n(i) == "string" && (u = n(i)), {
1111
- name: u,
1109
+ let l = i;
1110
+ return typeof n == "function" && typeof n(i) == "string" && (l = n(i)), {
1111
+ name: l,
1112
1112
  value: c[i]
1113
1113
  };
1114
1114
  });
1115
1115
  }
1116
1116
  function Dn(t) {
1117
- let n = t.reduce((i, u) => i + (u.stackRatio || 0), 0), e = t.filter((i) => i.stackRatio === void 0).length, o = 1 - n, r = e > 0 ? o / e : 0, s = t.map((i) => ({
1117
+ let n = t.reduce((i, l) => i + (l.stackRatio || 0), 0), e = t.filter((i) => i.stackRatio === void 0).length, o = 1 - n, r = e > 0 ? o / e : 0, s = t.map((i) => ({
1118
1118
  ...i,
1119
1119
  stackRatio: i.stackRatio !== void 0 ? i.stackRatio : r
1120
1120
  })), c = 0;
1121
- return s = s.map((i, u) => (c += i.stackRatio, {
1121
+ return s = s.map((i, l) => (c += i.stackRatio, {
1122
1122
  ...i,
1123
- stackIndex: u,
1123
+ stackIndex: l,
1124
1124
  cumulatedStackRatio: c
1125
1125
  })), s;
1126
1126
  }
1127
- function Rn(t) {
1128
- function n(l, a, f, h) {
1129
- const F = f - l, d = h - a;
1127
+ function Sn(t) {
1128
+ function n(u, a, f, h) {
1129
+ const F = f - u, d = h - a;
1130
1130
  return Math.sqrt(F * F + d * d);
1131
1131
  }
1132
- function e(l, a, f, h) {
1133
- let d = 0, E = l.x, y = l.y;
1132
+ function e(u, a, f, h) {
1133
+ let d = 0, p = u.x, y = u.y;
1134
1134
  for (let x = 1; x <= 100; x += 1) {
1135
- const p = x / 100, C = 1 - p, S = C * C, O = p * p, L = S * C * l.x + 3 * S * p * a.x + 3 * C * O * f.x + O * p * h.x, m = S * C * l.y + 3 * S * p * a.y + 3 * C * O * f.y + O * p * h.y;
1136
- d += n(E, y, L, m), E = L, y = m;
1135
+ const E = x / 100, C = 1 - E, R = C * C, O = E * E, L = R * C * u.x + 3 * R * E * a.x + 3 * C * O * f.x + O * E * h.x, m = R * C * u.y + 3 * R * E * a.y + 3 * C * O * f.y + O * E * h.y;
1136
+ d += n(p, y, L, m), p = L, y = m;
1137
1137
  }
1138
1138
  return d;
1139
1139
  }
1140
1140
  const o = t.match(/[a-zA-Z][^a-zA-Z]*/g);
1141
- let r = 0, s = 0, c = 0, i = 0, u = 0;
1142
- return o.forEach((l) => {
1143
- const a = l[0], f = l.slice(1).trim().split(/[\s,]+/).map(Number);
1141
+ let r = 0, s = 0, c = 0, i = 0, l = 0;
1142
+ return o.forEach((u) => {
1143
+ const a = u[0], f = u.slice(1).trim().split(/[\s,]+/).map(Number);
1144
1144
  let h = 0;
1145
1145
  switch (a) {
1146
1146
  case "M":
1147
1147
  for (r = f[h++], s = f[h++], c = r, i = s; h < f.length; )
1148
- u += n(r, s, f[h], f[h + 1]), r = f[h++], s = f[h++];
1148
+ l += n(r, s, f[h], f[h + 1]), r = f[h++], s = f[h++];
1149
1149
  break;
1150
1150
  case "L":
1151
1151
  for (; h < f.length; )
1152
- u += n(r, s, f[h], f[h + 1]), r = f[h++], s = f[h++];
1152
+ l += n(r, s, f[h], f[h + 1]), r = f[h++], s = f[h++];
1153
1153
  break;
1154
1154
  case "H":
1155
1155
  for (; h < f.length; )
1156
- u += n(r, s, f[h], s), r = f[h++];
1156
+ l += n(r, s, f[h], s), r = f[h++];
1157
1157
  break;
1158
1158
  case "V":
1159
1159
  for (; h < f.length; )
1160
- u += n(r, s, r, f[h]), s = f[h++];
1160
+ l += n(r, s, r, f[h]), s = f[h++];
1161
1161
  break;
1162
1162
  case "C":
1163
1163
  for (; h < f.length; )
1164
- u += e(
1164
+ l += e(
1165
1165
  { x: r, y: s },
1166
1166
  { x: f[h], y: f[h + 1] },
1167
1167
  { x: f[h + 2], y: f[h + 3] },
@@ -1169,12 +1169,12 @@ function Rn(t) {
1169
1169
  ), r = f[h + 4], s = f[h + 5], h += 6;
1170
1170
  break;
1171
1171
  case "Z":
1172
- u += n(r, s, c, i), r = c, s = i;
1172
+ l += n(r, s, c, i), r = c, s = i;
1173
1173
  break;
1174
1174
  }
1175
- }), u;
1175
+ }), l;
1176
1176
  }
1177
- function Sn({
1177
+ function Rn({
1178
1178
  relator: t,
1179
1179
  adjuster: n,
1180
1180
  source: e,
@@ -1251,7 +1251,7 @@ function Nn(t, n = [], e = !1) {
1251
1251
  "hours"
1252
1252
  ].includes(i) && Array.isArray(c[i]) && (c[i] = r(c[i]));
1253
1253
  }), Object.fromEntries(
1254
- Object.entries(c).map(([i, u]) => [i, r(u)])
1254
+ Object.entries(c).map(([i, l]) => [i, r(l)])
1255
1255
  );
1256
1256
  } else
1257
1257
  return o(s);
@@ -1263,13 +1263,13 @@ function On(t, n = 100) {
1263
1263
  }
1264
1264
  function wn({ series: t, center: n, maxRadius: e, hasGhost: o = !1 }) {
1265
1265
  const s = 360 / (t.length - (o ? 1 : 0));
1266
- return t.map((i, u) => {
1267
- const a = i * e, f = u * s, h = f + s, F = f + s / 2, d = X(f) - X(90), E = X(h) - X(90), y = X(F) - X(90), x = n.x + a * Math.cos(d), p = n.y + a * Math.sin(d), C = n.x + a * Math.cos(E), S = n.y + a * Math.sin(E), O = n.x + a * Math.cos(y), L = n.y + a * Math.sin(y);
1266
+ return t.map((i, l) => {
1267
+ const a = i * e, f = l * s, h = f + s, F = f + s / 2, d = X(f) - X(90), p = X(h) - X(90), y = X(F) - X(90), x = n.x + a * Math.cos(d), E = n.y + a * Math.sin(d), C = n.x + a * Math.cos(p), R = n.y + a * Math.sin(p), O = n.x + a * Math.cos(y), L = n.y + a * Math.sin(y);
1268
1268
  return {
1269
1269
  path: `
1270
1270
  M ${n.x} ${n.y}
1271
- L ${x} ${p}
1272
- A ${a} ${a} 0 0 1 ${C} ${S}
1271
+ L ${x} ${E}
1272
+ A ${a} ${a} 0 0 1 ${C} ${R}
1273
1273
  Z
1274
1274
  `.trim(),
1275
1275
  middlePoint: { x: O, y: L },
@@ -1284,15 +1284,15 @@ function Tn({ data: t, threshold: n }) {
1284
1284
  let r = 0;
1285
1285
  e.push(t[r]);
1286
1286
  for (let s = 0; s < n - 2; s += 1) {
1287
- const c = Math.floor((s + 1) * o) + 1, i = Math.min(Math.floor((s + 2) * o) + 1, t.length), u = t.slice(c, i);
1288
- let l = 0, a = 0;
1289
- for (const F of u)
1290
- l += F.x, a += F.y;
1291
- l /= u.length, a /= u.length;
1287
+ const c = Math.floor((s + 1) * o) + 1, i = Math.min(Math.floor((s + 2) * o) + 1, t.length), l = t.slice(c, i);
1288
+ let u = 0, a = 0;
1289
+ for (const F of l)
1290
+ u += F.x, a += F.y;
1291
+ u /= l.length, a /= l.length;
1292
1292
  let f = -1, h = r;
1293
1293
  for (let F = c; F < i; F += 1) {
1294
1294
  const d = Math.abs(
1295
- (t[r].x - l) * (t[F].y - t[r].y) - (t[r].x - t[F].x) * (a - t[r].y)
1295
+ (t[r].x - u) * (t[F].y - t[r].y) - (t[r].x - t[F].x) * (a - t[r].y)
1296
1296
  );
1297
1297
  d > f && (f = d, h = F);
1298
1298
  }
@@ -1307,10 +1307,10 @@ function Pn({ data: t, threshold: n }) {
1307
1307
  let r = 0;
1308
1308
  e.push(t[r]);
1309
1309
  for (let s = 0; s < n - 2; s += 1) {
1310
- const c = Math.floor((s + 1) * o) + 1, i = Math.min(Math.floor((s + 2) * o) + 1, t.length), u = t.slice(c, i), l = u.reduce((h, F) => h + F, 0) / u.length;
1310
+ const c = Math.floor((s + 1) * o) + 1, i = Math.min(Math.floor((s + 2) * o) + 1, t.length), l = t.slice(c, i), u = l.reduce((h, F) => h + F, 0) / l.length;
1311
1311
  let a = -1, f = r;
1312
1312
  for (let h = c; h < i; h += 1) {
1313
- const F = Math.abs((t[r] - l) * (h - r));
1313
+ const F = Math.abs((t[r] - u) * (h - r));
1314
1314
  F > a && (a = F, f = h);
1315
1315
  }
1316
1316
  e.push(t[f]), r = f;
@@ -1324,9 +1324,9 @@ function kn({ data: t, threshold: n, key: e = "value" }) {
1324
1324
  let s = 0;
1325
1325
  o.push(t[s]);
1326
1326
  for (let c = 0; c < n - 2; c += 1) {
1327
- const i = Math.floor((c + 1) * r) + 1, u = Math.min(Math.floor((c + 2) * r) + 1, t.length), l = t.slice(i, u), a = l.reduce((F, d) => F + d[e], 0) / l.length;
1327
+ const i = Math.floor((c + 1) * r) + 1, l = Math.min(Math.floor((c + 2) * r) + 1, t.length), u = t.slice(i, l), a = u.reduce((F, d) => F + d[e], 0) / u.length;
1328
1328
  let f = -1, h = s;
1329
- for (let F = i; F < u; F += 1) {
1329
+ for (let F = i; F < l; F += 1) {
1330
1330
  const d = Math.abs((t[s][e] - a) * (F - s));
1331
1331
  d > f && (f = d, h = F);
1332
1332
  }
@@ -1336,29 +1336,29 @@ function kn({ data: t, threshold: n, key: e = "value" }) {
1336
1336
  }
1337
1337
  function Yn({ radius: t, centerX: n, centerY: e, percentage: o }) {
1338
1338
  o = Math.max(0, Math.min(1, o));
1339
- const r = o * Math.PI, s = n - t, c = e, i = n - t * Math.cos(r), u = e - t * Math.sin(r);
1340
- return `M ${n},${e} L ${s},${c} A ${t},${t} 0 0 1 ${i},${u} Z`.trim();
1339
+ const r = o * Math.PI, s = n - t, c = e, i = n - t * Math.cos(r), l = e - t * Math.sin(r);
1340
+ return `M ${n},${e} L ${s},${c} A ${t},${t} 0 0 1 ${i},${l} Z`.trim();
1341
1341
  }
1342
1342
  function Hn({ svgElement: t, x: n, y: e, offsetY: o = 0, element: r }) {
1343
1343
  if (!t || !r) return { top: 0, left: 0 };
1344
1344
  const s = t.createSVGPoint();
1345
1345
  s.x = n, s.y = e;
1346
- const c = s.matrixTransform(t.getScreenCTM()), i = t.getBoundingClientRect(), u = r.getBoundingClientRect();
1347
- let l = 0, a = 0;
1348
- return c.x - u.width / 2 < i.left ? l = 0 : c.x + u.width > i.right ? l = -u.width : l = -u.width / 2, c.y - o - u.height < i.top ? a = o : a = -u.height - o, {
1346
+ const c = s.matrixTransform(t.getScreenCTM()), i = t.getBoundingClientRect(), l = r.getBoundingClientRect();
1347
+ let u = 0, a = 0;
1348
+ return c.x - l.width / 2 < i.left ? u = 0 : c.x + l.width > i.right ? u = -l.width : u = -l.width / 2, c.y - o - l.height < i.top ? a = o : a = -l.height - o, {
1349
1349
  top: c.y + a,
1350
- left: c.x + l
1350
+ left: c.x + u
1351
1351
  };
1352
1352
  }
1353
1353
  function Un({ svgElement: t, x: n, y: e, element: o, position: r }) {
1354
1354
  if (!t || !o) return { top: 0, left: 0 };
1355
1355
  const s = t.createSVGPoint();
1356
1356
  s.x = n, s.y = e;
1357
- const c = s.matrixTransform(t.getScreenCTM()), { height: i, width: u } = o.getBoundingClientRect();
1358
- let l = r === "right" ? 0 : -u, a = -(i / 2);
1357
+ const c = s.matrixTransform(t.getScreenCTM()), { height: i, width: l } = o.getBoundingClientRect();
1358
+ let u = r === "right" ? 0 : -l, a = -(i / 2);
1359
1359
  return {
1360
1360
  top: c.y + a,
1361
- left: c.x + l
1361
+ left: c.x + u
1362
1362
  };
1363
1363
  }
1364
1364
  function _(t) {
@@ -1430,8 +1430,8 @@ function Xn(t) {
1430
1430
  if (!e)
1431
1431
  n += c, e = !0;
1432
1432
  else {
1433
- const i = t[r - 1], u = o(i) ? "L" : "M";
1434
- n += `${u}${c}`;
1433
+ const i = t[r - 1], l = o(i) ? "L" : "M";
1434
+ n += `${l}${c}`;
1435
1435
  }
1436
1436
  n += " ";
1437
1437
  }
@@ -1443,21 +1443,21 @@ function jn(t) {
1443
1443
  let e = "";
1444
1444
  for (const [o, r] of n.entries()) {
1445
1445
  if (r.length < 2) continue;
1446
- const s = r.length - 1, c = [], i = [], u = [], l = [];
1446
+ const s = r.length - 1, c = [], i = [], l = [], u = [];
1447
1447
  for (let a = 0; a < s; a += 1)
1448
- c[a] = r[a + 1].x - r[a].x, i[a] = r[a + 1].y - r[a].y, u[a] = i[a] / c[a];
1449
- l[0] = u[0], l[s] = u[s - 1];
1448
+ c[a] = r[a + 1].x - r[a].x, i[a] = r[a + 1].y - r[a].y, l[a] = i[a] / c[a];
1449
+ u[0] = l[0], u[s] = l[s - 1];
1450
1450
  for (let a = 1; a < s; a += 1)
1451
- if (u[a - 1] * u[a] <= 0)
1452
- l[a] = 0;
1451
+ if (l[a - 1] * l[a] <= 0)
1452
+ u[a] = 0;
1453
1453
  else {
1454
- const f = 2 * u[a - 1] * u[a] / (u[a - 1] + u[a]);
1455
- l[a] = f;
1454
+ const f = 2 * l[a - 1] * l[a] / (l[a - 1] + l[a]);
1455
+ u[a] = f;
1456
1456
  }
1457
1457
  e += `${o === 0 ? "" : "M"}${A(r[0].x)},${A(r[0].y)} `;
1458
1458
  for (let a = 0; a < s; a += 1) {
1459
- const f = r[a].x, h = r[a].y, F = r[a + 1].x, d = r[a + 1].y, E = l[a], y = l[a + 1], x = f + (F - f) / 3, p = h + E * (F - f) / 3, C = F - (F - f) / 3, S = d - y * (F - f) / 3;
1460
- e += `C${A(x)},${A(p)} ${A(C)},${A(S)} ${A(F)},${A(d)} `;
1459
+ const f = r[a].x, h = r[a].y, F = r[a + 1].x, d = r[a + 1].y, p = u[a], y = u[a + 1], x = f + (F - f) / 3, E = h + p * (F - f) / 3, C = F - (F - f) / 3, R = d - y * (F - f) / 3;
1460
+ e += `C${A(x)},${A(E)} ${A(C)},${A(R)} ${A(F)},${A(d)} `;
1461
1461
  }
1462
1462
  }
1463
1463
  return e.trim();
@@ -1465,16 +1465,16 @@ function jn(t) {
1465
1465
  function Kn(t, n, e = !1, o = !0) {
1466
1466
  function r(c) {
1467
1467
  const i = [];
1468
- let u = [];
1469
- for (const l of c)
1470
- !l || l.value == null || Number.isNaN(l.x) || Number.isNaN(l.y) ? (u.length > 1 && i.push(u), u = []) : u.push(l);
1471
- return u.length > 1 && i.push(u), i;
1468
+ let l = [];
1469
+ for (const u of c)
1470
+ !u || u.value == null || Number.isNaN(u.x) || Number.isNaN(u.y) ? (l.length > 1 && i.push(l), l = []) : l.push(u);
1471
+ return l.length > 1 && i.push(l), i;
1472
1472
  }
1473
1473
  return (e ? r(t) : [t]).map((c) => {
1474
1474
  if (c.length < 2) return "";
1475
- const i = c.length - 1, u = [], l = [], a = [], f = [];
1475
+ const i = c.length - 1, l = [], u = [], a = [], f = [];
1476
1476
  for (let F = 0; F < i; F += 1)
1477
- u[F] = c[F + 1].x - c[F].x, l[F] = c[F + 1].y - c[F].y, a[F] = l[F] / u[F];
1477
+ l[F] = c[F + 1].x - c[F].x, u[F] = c[F + 1].y - c[F].y, a[F] = u[F] / l[F];
1478
1478
  f[0] = a[0], f[i] = a[i - 1];
1479
1479
  for (let F = 1; F < i; F += 1)
1480
1480
  if (a[F - 1] * a[F] <= 0)
@@ -1486,8 +1486,8 @@ function Kn(t, n, e = !1, o = !0) {
1486
1486
  let h = `M${c[0].x},${n}`;
1487
1487
  h += ` L${c[0].x},${c[0].y}`;
1488
1488
  for (let F = 0; F < i; F += 1) {
1489
- const d = c[F].x, E = c[F].y, y = c[F + 1].x, x = c[F + 1].y, p = f[F], C = f[F + 1], S = d + (y - d) / 3, O = E + p * (y - d) / 3, L = y - (y - d) / 3, m = x - C * (y - d) / 3;
1490
- h += ` C${S},${O} ${L},${m} ${y},${x}`;
1489
+ const d = c[F].x, p = c[F].y, y = c[F + 1].x, x = c[F + 1].y, E = f[F], C = f[F + 1], R = d + (y - d) / 3, O = p + E * (y - d) / 3, L = y - (y - d) / 3, m = x - C * (y - d) / 3;
1490
+ h += ` C${R},${O} ${L},${m} ${y},${x}`;
1491
1491
  }
1492
1492
  return h += ` L${c[i].x},${n} ${o ? "Z" : ""}`, h;
1493
1493
  }).filter(Boolean);
@@ -1518,14 +1518,14 @@ function _n({ values: t, config: n = {} }) {
1518
1518
  convertInvalidToZero: o = !1
1519
1519
  } = n, r = [];
1520
1520
  let s = 0, c = 0;
1521
- function i(l) {
1522
- return typeof l != "number" || !Number.isFinite(l);
1521
+ function i(u) {
1522
+ return typeof u != "number" || !Number.isFinite(u);
1523
1523
  }
1524
- function u(l) {
1525
- s += l, c += 1, r.push(s / c);
1524
+ function l(u) {
1525
+ s += u, c += 1, r.push(s / c);
1526
1526
  }
1527
- for (const l of t)
1528
- i(l) ? o && e ? u(0) : !o && e && r.push(l) : u(l);
1527
+ for (const u of t)
1528
+ i(u) ? o && e ? l(0) : !o && e && r.push(u) : l(u);
1529
1529
  return r;
1530
1530
  }
1531
1531
  function zn({ values: t, config: n = {} }) {
@@ -1533,16 +1533,16 @@ function zn({ values: t, config: n = {} }) {
1533
1533
  keepInvalid: e = !0,
1534
1534
  convertInvalidToZero: o = !1
1535
1535
  } = n, r = [], s = [];
1536
- function c(u) {
1537
- return typeof u != "number" || !Number.isFinite(u);
1536
+ function c(l) {
1537
+ return typeof l != "number" || !Number.isFinite(l);
1538
1538
  }
1539
- function i(u) {
1540
- s.push(u), s.sort((f, h) => f - h);
1541
- const l = s.length, a = l >> 1;
1542
- l % 2 === 1 ? r.push(s[a]) : r.push((s[a - 1] + s[a]) / 2);
1539
+ function i(l) {
1540
+ s.push(l), s.sort((f, h) => f - h);
1541
+ const u = s.length, a = u >> 1;
1542
+ u % 2 === 1 ? r.push(s[a]) : r.push((s[a - 1] + s[a]) / 2);
1543
1543
  }
1544
- for (const u of t)
1545
- c(u) ? o && e ? i(0) : !o && e && r.push(u) : i(u);
1544
+ for (const l of t)
1545
+ c(l) ? o && e ? i(0) : !o && e && r.push(l) : i(l);
1546
1546
  return r;
1547
1547
  }
1548
1548
  function Zn({
@@ -1556,12 +1556,12 @@ function Zn({
1556
1556
  if (!t || !e) return 0;
1557
1557
  let c = e;
1558
1558
  t.setAttribute("font-size", c);
1559
- const { x: i, y: u, width: l, height: a } = n, f = i + s, h = u + s, F = i + l - s, d = u + a - s;
1560
- let E = t.getBBox();
1561
- if (E.x >= f + s && E.y >= h + s && E.x + E.width <= F - s && E.y + E.height <= d - s)
1559
+ const { x: i, y: l, width: u, height: a } = n, f = i + s, h = l + s, F = i + u - s, d = l + a - s;
1560
+ let p = t.getBBox();
1561
+ if (p.x >= f + s && p.y >= h + s && p.x + p.width <= F - s && p.y + p.height <= d - s)
1562
1562
  return c;
1563
1563
  let y = r;
1564
- for (; y-- > 0 && c > o && (c--, t.setAttribute("font-size", c), E = t.getBBox(), !(E.x >= f + s && E.y >= h + s && E.x + E.width <= F - s && E.y + E.height <= d - s)); )
1564
+ for (; y-- > 0 && c > o && (c--, t.setAttribute("font-size", c), p = t.getBBox(), !(p.x >= f + s && p.y >= h + s && p.x + p.width <= F - s && p.y + p.height <= d - s)); )
1565
1565
  ;
1566
1566
  return c < o && (c = 0, t.setAttribute("font-size", c)), c;
1567
1567
  }
@@ -1614,16 +1614,16 @@ function te(t) {
1614
1614
  smoothA: s = !1,
1615
1615
  smoothB: c = !1,
1616
1616
  sampleStepPx: i = 2,
1617
- cutNullValues: u = !0,
1617
+ cutNullValues: l = !0,
1618
1618
  // break across gaps
1619
- merge: l = !0
1619
+ merge: u = !0
1620
1620
  // merge into large polygons
1621
1621
  } = t || {};
1622
1622
  if (!Array.isArray(n) || !Array.isArray(e) || !n.length || !e.length)
1623
1623
  return [];
1624
1624
  const a = (m) => Number.isFinite(m);
1625
1625
  function f(m) {
1626
- if (!u) return [m.filter((D) => D && a(D.x) && a(D.y))];
1626
+ if (!l) return [m.filter((D) => D && a(D.x) && a(D.y))];
1627
1627
  const $ = [];
1628
1628
  let M = [];
1629
1629
  for (const D of m)
@@ -1640,35 +1640,35 @@ function te(t) {
1640
1640
  return I;
1641
1641
  }
1642
1642
  function F(m, $, M, D, g) {
1643
- const I = m.x, b = $.x, w = m.y, R = $.y, T = b - I;
1643
+ const I = m.x, b = $.x, w = m.y, S = $.y, T = b - I;
1644
1644
  if (T === 0) return w;
1645
1645
  const P = (g - I) / T, N = P * P, Y = N * P, H = 2 * Y - 3 * N + 1, B = Y - 2 * N + P, k = -2 * Y + 3 * N, U = Y - N;
1646
- return H * w + B * (M * T) + k * R + U * (D * T);
1646
+ return H * w + B * (M * T) + k * S + U * (D * T);
1647
1647
  }
1648
1648
  function d(m, $) {
1649
1649
  const M = f(m);
1650
1650
  if (!M.length) return [];
1651
1651
  let D = 1 / 0, g = -1 / 0;
1652
- for (const R of M)
1653
- D = Math.min(D, R[0].x), g = Math.max(g, R[R.length - 1].x);
1652
+ for (const S of M)
1653
+ D = Math.min(D, S[0].x), g = Math.max(g, S[S.length - 1].x);
1654
1654
  if (!a(D) || !a(g) || g <= D) return [];
1655
1655
  const I = Math.max(1, i), b = [];
1656
- for (let R = D; R <= g; R += I) b.push(R);
1656
+ for (let S = D; S <= g; S += I) b.push(S);
1657
1657
  b[b.length - 1] < g && b.push(g);
1658
1658
  const w = [];
1659
- for (const R of b) {
1659
+ for (const S of b) {
1660
1660
  let T = null, P = !1;
1661
1661
  for (const N of M) {
1662
1662
  const Y = N.length - 1;
1663
- if (!(R < N[0].x - 1e-9 || R > N[Y].x + 1e-9)) {
1663
+ if (!(S < N[0].x - 1e-9 || S > N[Y].x + 1e-9)) {
1664
1664
  for (let H = 0; H < Y; H += 1) {
1665
1665
  const B = N[H], k = N[H + 1];
1666
- if (!(R + 1e-9 < B.x || R - 1e-9 > k.x)) {
1666
+ if (!(S + 1e-9 < B.x || S - 1e-9 > k.x)) {
1667
1667
  if ($) {
1668
1668
  const U = N.__tangents || (N.__tangents = h(N));
1669
- T = F(B, k, U[H], U[H + 1], R);
1669
+ T = F(B, k, U[H], U[H + 1], S);
1670
1670
  } else {
1671
- const U = (R - B.x) / (k.x - B.x || 1);
1671
+ const U = (S - B.x) / (k.x - B.x || 1);
1672
1672
  T = B.y + U * (k.y - B.y);
1673
1673
  }
1674
1674
  P = !0;
@@ -1678,22 +1678,22 @@ function te(t) {
1678
1678
  if (P) break;
1679
1679
  }
1680
1680
  }
1681
- T == null ? w.push({ x: R, y: null, hole: !0 }) : w.push({ x: R, y: T, hole: !1 });
1681
+ T == null ? w.push({ x: S, y: null, hole: !0 }) : w.push({ x: S, y: T, hole: !1 });
1682
1682
  }
1683
1683
  return w;
1684
1684
  }
1685
- function E(m, $, M) {
1685
+ function p(m, $, M) {
1686
1686
  return m + M * ($ - m);
1687
1687
  }
1688
1688
  function y(m, $) {
1689
1689
  const M = [], D = [], g = Math.min(m.length, $.length);
1690
1690
  for (let I = 0; I < g - 1; I += 1) {
1691
- const b = m[I], w = m[I + 1], R = $[I], T = $[I + 1];
1692
- if (M.push(b), D.push(R), b.hole || w.hole || R.hole || T.hole || b.y == null || w.y == null || R.y == null || T.y == null)
1691
+ const b = m[I], w = m[I + 1], S = $[I], T = $[I + 1];
1692
+ if (M.push(b), D.push(S), b.hole || w.hole || S.hole || T.hole || b.y == null || w.y == null || S.y == null || T.y == null)
1693
1693
  continue;
1694
- const P = b.y - R.y, N = w.y - T.y;
1694
+ const P = b.y - S.y, N = w.y - T.y;
1695
1695
  if (P > 0 && N < 0 || P < 0 && N > 0) {
1696
- const Y = P / (P - N), H = E(b.x, w.x, Y), B = E(b.y, w.y, Y), k = { x: H, y: B, hole: !1 }, U = { x: H, y: B, hole: !1 };
1696
+ const Y = P / (P - N), H = p(b.x, w.x, Y), B = p(b.y, w.y, Y), k = { x: H, y: B, hole: !1 }, U = { x: H, y: B, hole: !1 };
1697
1697
  M.push(k), D.push(U);
1698
1698
  }
1699
1699
  }
@@ -1702,9 +1702,9 @@ function te(t) {
1702
1702
  function x(m, $) {
1703
1703
  const M = [], D = Math.min(m.length, $.length);
1704
1704
  for (let g = 0; g < D - 1; g += 1) {
1705
- const I = m[g], b = m[g + 1], w = $[g], R = $[g + 1];
1706
- if (I.hole || b.hole || w.hole || R.hole || I.y == null || b.y == null || w.y == null || R.y == null) continue;
1707
- const T = I.y - w.y, P = b.y - R.y, N = T <= 0 ? I : w, Y = P <= 0 ? b : R, H = P <= 0 ? R : b, B = T <= 0 ? w : I, k = T <= 0 ? o : r, U = [
1705
+ const I = m[g], b = m[g + 1], w = $[g], S = $[g + 1];
1706
+ if (I.hole || b.hole || w.hole || S.hole || I.y == null || b.y == null || w.y == null || S.y == null) continue;
1707
+ const T = I.y - w.y, P = b.y - S.y, N = T <= 0 ? I : w, Y = P <= 0 ? b : S, H = P <= 0 ? S : b, B = T <= 0 ? w : I, k = T <= 0 ? o : r, U = [
1708
1708
  `M${N.x},${N.y}`,
1709
1709
  `L${Y.x},${Y.y}`,
1710
1710
  `L${H.x},${H.y}`,
@@ -1715,7 +1715,7 @@ function te(t) {
1715
1715
  }
1716
1716
  return M;
1717
1717
  }
1718
- function p(m, $) {
1718
+ function E(m, $) {
1719
1719
  const M = [], D = Math.min(m.length, $.length);
1720
1720
  if (D < 2) return M;
1721
1721
  let g = 0;
@@ -1732,9 +1732,9 @@ function te(t) {
1732
1732
  if (B.hole || k.hole || U.hole || j.hole || B.y == null || k.y == null || U.y == null || j.y == null || (Math.sign(k.y - B.y || 0) || 1) !== b) break;
1733
1733
  g += 1;
1734
1734
  }
1735
- const w = g + 0, R = b >= 0 ? m : $, T = b >= 0 ? $ : m, P = b >= 0 ? o : r, N = [];
1735
+ const w = g + 0, S = b >= 0 ? m : $, T = b >= 0 ? $ : m, P = b >= 0 ? o : r, N = [];
1736
1736
  for (let B = I; B <= w; B += 1)
1737
- N.push(`${R[B].x},${R[B].y}`);
1737
+ N.push(`${S[B].x},${S[B].y}`);
1738
1738
  const Y = [];
1739
1739
  for (let B = w; B >= I; B -= 1)
1740
1740
  Y.push(`${T[B].x},${T[B].y}`);
@@ -1743,8 +1743,8 @@ function te(t) {
1743
1743
  }
1744
1744
  return M;
1745
1745
  }
1746
- const C = d(n, s), S = d(e, c), { A: O, B: L } = y(C, S);
1747
- return l ? p(O, L) : x(O, L);
1746
+ const C = d(n, s), R = d(e, c), { A: O, B: L } = y(C, R);
1747
+ return u ? E(O, L) : x(O, L);
1748
1748
  }
1749
1749
  function ne(t, n, e = {}) {
1750
1750
  const r = { ...{ bubbles: !0, cancelable: !0, composed: !0 }, ...e }, s = /* @__PURE__ */ new Set([
@@ -1783,10 +1783,10 @@ function ee(t, { delta: n = 1, delay: e = 20, disableTransitions: o = !0 } = {})
1783
1783
  width: r.width,
1784
1784
  height: r.height,
1785
1785
  transition: r.transition
1786
- }, c = t.getBoundingClientRect(), i = c.width, u = c.height;
1786
+ }, c = t.getBoundingClientRect(), i = c.width, l = c.height;
1787
1787
  o && (r.transition = "none");
1788
- const l = (a) => /%|em|rem/.test(a);
1789
- r.width = s.width && l(s.width) ? `calc(${s.width} + ${n}px)` : `${Math.max(0, i + n)}px`, r.height = s.height && l(s.height) ? `calc(${s.height} + ${n}px)` : `${Math.max(0, u + n)}px`, t.offsetWidth, setTimeout(() => {
1788
+ const u = (a) => /%|em|rem/.test(a);
1789
+ r.width = s.width && u(s.width) ? `calc(${s.width} + ${n}px)` : `${Math.max(0, i + n)}px`, r.height = s.height && u(s.height) ? `calc(${s.height} + ${n}px)` : `${Math.max(0, l + n)}px`, t.offsetWidth, setTimeout(() => {
1790
1790
  r.width = s.width, r.height = s.height, t.offsetWidth, requestAnimationFrame(() => {
1791
1791
  o && (r.transition = s.transition);
1792
1792
  });
@@ -1801,40 +1801,46 @@ function wt(t) {
1801
1801
  }
1802
1802
  const re = wt((t, n, e, o, r, s, c, i) => {
1803
1803
  if (t)
1804
- return o.length <= 2 ? o.map((p, C) => ({ text: p, absoluteIndex: C })) : o.map((p, C) => ({ text: C === 0 || C === o.length - 1 || c != null && C === c ? p : "", absoluteIndex: C }));
1804
+ return o.length <= 2 ? o.map((E, C) => ({ text: E, absoluteIndex: C })) : o.map((E, C) => ({ text: C === 0 || C === o.length - 1 || c != null && C === c ? E : "", absoluteIndex: C }));
1805
1805
  if (!n)
1806
- return o.map((x, p) => ({ text: x, absoluteIndex: p }));
1807
- const u = Math.max(1, e || 1);
1808
- if (i <= u)
1809
- return o.map((x, p) => ({ text: x, absoluteIndex: p }));
1810
- const l = [];
1806
+ return o.map((x, E) => ({ text: x, absoluteIndex: E }));
1807
+ const l = Math.max(1, e || 1);
1808
+ if (i <= l)
1809
+ return o.map((x, E) => ({ text: x, absoluteIndex: E }));
1810
+ const u = [];
1811
1811
  for (let x = 0; x < o.length; x += 1) {
1812
- const p = o[x] ?? "";
1813
- if (!p) continue;
1812
+ const E = o[x] ?? "";
1813
+ if (!E) continue;
1814
1814
  const C = s + x - 1 >= 0 ? r[s + x - 1] ?? "" : null;
1815
- p !== C && l.push(x);
1815
+ E !== C && u.push(x);
1816
1816
  }
1817
- if (!l.length)
1818
- return o.map((x, p) => ({ text: "", absoluteIndex: p }));
1819
- const a = l.length, f = u, h = Math.max(2, Math.min(f - 3, a)), F = Math.min(a, f + 3);
1820
- let d = Math.min(f, a), E = 1 / 0;
1817
+ if (!u.length)
1818
+ return o.map((x, E) => ({ text: "", absoluteIndex: E }));
1819
+ const a = u.length, f = l, h = Math.max(2, Math.min(f - 3, a)), F = Math.min(a, f + 3);
1820
+ let d = Math.min(f, a), p = 1 / 0;
1821
1821
  for (let x = h; x <= F; x += 1) {
1822
- const p = (a - 1) % (x - 1), C = Math.abs(x - f), S = p * 10 + C;
1823
- S < E && (E = S, d = x);
1822
+ const E = (a - 1) % (x - 1), C = Math.abs(x - f), R = E * 10 + C;
1823
+ R < p && (p = R, d = x);
1824
1824
  }
1825
1825
  const y = /* @__PURE__ */ new Set();
1826
1826
  if (d <= 1)
1827
- y.add(l[Math.round((a - 1) / 2)]);
1827
+ y.add(u[Math.round((a - 1) / 2)]);
1828
1828
  else {
1829
1829
  const x = (a - 1) / (d - 1);
1830
- for (let p = 0; p < d; p += 1)
1831
- y.add(l[Math.round(p * x)]);
1830
+ for (let E = 0; E < d; E += 1)
1831
+ y.add(u[Math.round(E * x)]);
1832
1832
  }
1833
- return o.map((x, p) => ({
1834
- text: y.has(p) ? x : "",
1835
- absoluteIndex: p
1833
+ return o.map((x, E) => ({
1834
+ text: y.has(E) ? x : "",
1835
+ absoluteIndex: E
1836
1836
  }));
1837
1837
  });
1838
+ function se(t) {
1839
+ return String(t).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1840
+ }
1841
+ function oe(t) {
1842
+ return String(t).replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("<", "&lt;").replaceAll(">", "&gt;");
1843
+ }
1838
1844
  export {
1839
1845
  bn as $,
1840
1846
  Xn as A,
@@ -1854,7 +1860,7 @@ export {
1854
1860
  Ln as O,
1855
1861
  sn as P,
1856
1862
  rn as Q,
1857
- Sn as R,
1863
+ Rn as R,
1858
1864
  on as S,
1859
1865
  kt as T,
1860
1866
  cn as U,
@@ -1870,16 +1876,16 @@ export {
1870
1876
  tn as a2,
1871
1877
  nn as a3,
1872
1878
  it as a4,
1873
- pn as a5,
1879
+ En as a5,
1874
1880
  Yn as a6,
1875
1881
  _ as a7,
1876
1882
  en as a8,
1877
- Rn as a9,
1883
+ Sn as a9,
1878
1884
  Tn as aa,
1879
1885
  jt as ab,
1880
1886
  Zt as ac,
1881
1887
  xn as ad,
1882
- ln as ae,
1888
+ un as ae,
1883
1889
  kn as af,
1884
1890
  Vt as ag,
1885
1891
  qn as ah,
@@ -1890,18 +1896,20 @@ export {
1890
1896
  ne as am,
1891
1897
  ct as an,
1892
1898
  Hn as ao,
1893
- $n as ap,
1894
- Qn as aq,
1895
- _n as ar,
1896
- zn as as,
1897
- Ut as at,
1898
- ee as au,
1899
- rt as av,
1899
+ se as ap,
1900
+ oe as aq,
1901
+ $n as ar,
1902
+ Qn as as,
1903
+ _n as at,
1904
+ zn as au,
1905
+ Ut as av,
1906
+ ee as aw,
1907
+ rt as ax,
1900
1908
  v as b,
1901
1909
  Qt as c,
1902
1910
  fn as d,
1903
1911
  Cn as e,
1904
- En as f,
1912
+ pn as f,
1905
1913
  An as g,
1906
1914
  at as h,
1907
1915
  Gt as i,
@@ -1909,7 +1917,7 @@ export {
1909
1917
  vt as k,
1910
1918
  Zn as l,
1911
1919
  an as m,
1912
- un as n,
1920
+ ln as n,
1913
1921
  gn as o,
1914
1922
  mt as p,
1915
1923
  Yt as q,