vue-data-ui 3.3.3 → 3.4.1

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 (160) hide show
  1. package/dist/{Arrow-ayTeSvpe.js → Arrow-CRe_nKB4.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Cysanw8-.js → BaseDraggableDialog-CbuLbfrc.js} +2 -2
  3. package/dist/{BaseIcon-DG6cvf2h.js → BaseIcon-B5KaGWWC.js} +1 -1
  4. package/dist/{ColorPicker-CA8kKZjZ.js → ColorPicker-BMztHpBp.js} +10 -10
  5. package/dist/{DataTable-DUpZ_s2c.js → DataTable-DOx3zgih.js} +2 -2
  6. package/dist/{Legend-CCBZ2x8T.js → Legend-C8u37J42.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-D2IMGwaN.js → NonSvgPenAndPaper-BcxfJ-r2.js} +3 -3
  8. package/dist/{PackageVersion-CQvYRebC.js → PackageVersion-VpPtLYhK.js} +1 -1
  9. package/dist/{PenAndPaper-D9LruJaM.js → PenAndPaper-Dj2diYr0.js} +3 -3
  10. package/dist/{Shape-BS9UGhNq.js → Shape-BhNvlGIN.js} +1 -1
  11. package/dist/{Slicer-BOki89CB.js → Slicer-BHgEsIBU.js} +111 -111
  12. package/dist/SlicerPreview-Cobmb_1S.js +1148 -0
  13. package/dist/{SparkTooltip-svd8Hb6c.js → SparkTooltip-CL3cNRQ_.js} +1 -1
  14. package/dist/{Title-B6rAo9Oz.js → Title-CFmv95In.js} +1 -1
  15. package/dist/{Tooltip-DaInVNiV.js → Tooltip-Cs4v8OnI.js} +1 -1
  16. package/dist/{UserOptions-CJXSEhan.js → UserOptions-C0YT60JN.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-Tq92GZKA.js → dom-to-png-xQ7LXrxp.js} +1 -1
  83. package/dist/{img-DI-W68vp.js → img-CFY3JivG.js} +1 -1
  84. package/dist/{lib-CSDxt1Zh.js → lib-BcBZIm6u.js} +439 -395
  85. package/dist/{pdf-BzVpWnNO.js → pdf-O34i6EQX.js} +1 -1
  86. package/dist/style.css +1 -1
  87. package/dist/types/vue-data-ui.d.ts +82 -8
  88. package/dist/{useAutoSizeLabelsInsideViewbox-CtQ7pJ8G.js → useAutoSizeLabelsInsideViewbox-BHq4FD8x.js} +1 -1
  89. package/dist/{useNestedProp-Dh-ldrr5.js → useNestedProp-B7CiTRDS.js} +327 -240
  90. package/dist/{usePrinter-Cq8Pt6Lh.js → usePrinter-C1GiglOH.js} +2 -2
  91. package/dist/{vue-data-ui-CDY7snWF.js → vue-data-ui-oDJui39L.js} +64 -64
  92. package/dist/vue-data-ui.js +100 -100
  93. package/dist/{vue-ui-3d-bar-DbpiTjGu.js → vue-ui-3d-bar-wycTM073.js} +56 -56
  94. package/dist/{vue-ui-accordion-CaClZrCp.js → vue-ui-accordion-BKkTS12x.js} +3 -3
  95. package/dist/{vue-ui-age-pyramid-DuIxXz5p.js → vue-ui-age-pyramid-C5NUZ_Y7.js} +39 -39
  96. package/dist/{vue-ui-annotator-C2efSKQK.js → vue-ui-annotator-DkSYrnwb.js} +7 -7
  97. package/dist/{vue-ui-bullet-qpcqLKmp.js → vue-ui-bullet-CIsX5UJw.js} +7 -7
  98. package/dist/vue-ui-candlestick-BRFx3_KK.js +1334 -0
  99. package/dist/{vue-ui-carousel-table-CCTtArFX.js → vue-ui-carousel-table-hJySHJTu.js} +29 -29
  100. package/dist/{vue-ui-chestnut-CbvxJ8hy.js → vue-ui-chestnut-D4GjvQh0.js} +70 -70
  101. package/dist/{vue-ui-chord-Cp9nyIdv.js → vue-ui-chord-By2NOs0N.js} +35 -35
  102. package/dist/{vue-ui-circle-pack-kHzd0UYO.js → vue-ui-circle-pack-OCmAkTNs.js} +59 -59
  103. package/dist/{vue-ui-cursor-DEvkJRCz.js → vue-ui-cursor-iuati4v1.js} +2 -2
  104. package/dist/{vue-ui-dashboard-k_mz9iwy.js → vue-ui-dashboard-C7fwU9xb.js} +67 -67
  105. package/dist/{vue-ui-digits-CqWCkEu2.js → vue-ui-digits-eYxf3UFN.js} +2 -2
  106. package/dist/{vue-ui-donut-CDKS6sVu.js → vue-ui-donut-dVVBUQJz.js} +189 -189
  107. package/dist/{vue-ui-donut-evolution-C6cGI_P3.js → vue-ui-donut-evolution-BoWGaQP0.js} +82 -82
  108. package/dist/{vue-ui-dumbbell-ZjJst3xs.js → vue-ui-dumbbell-YMPZ3CVA.js} +66 -66
  109. package/dist/{vue-ui-flow-sX1PYIkr.js → vue-ui-flow-BE62rVS3.js} +75 -75
  110. package/dist/{vue-ui-funnel--VViM9gH.js → vue-ui-funnel-kNpDFAWo.js} +63 -63
  111. package/dist/{vue-ui-galaxy-Du0V9GF8.js → vue-ui-galaxy-BBBiXXyk.js} +62 -62
  112. package/dist/{vue-ui-gauge-BAe4p2g-.js → vue-ui-gauge-PQNTTl3Y.js} +58 -58
  113. package/dist/{vue-ui-gizmo-CfjwAt38.js → vue-ui-gizmo-D3gQxQz3.js} +3 -3
  114. package/dist/{vue-ui-heatmap-Q0jrPM5h.js → vue-ui-heatmap-CKWQButF.js} +104 -104
  115. package/dist/{vue-ui-history-plot-CLSN3mPy.js → vue-ui-history-plot-DYFzdR4Z.js} +91 -91
  116. package/dist/{vue-ui-kpi-CBRgXD1s.js → vue-ui-kpi-N8s0i48S.js} +3 -3
  117. package/dist/{vue-ui-mini-loader-3yCeDEPK.js → vue-ui-mini-loader-Db-9iQcC.js} +2 -2
  118. package/dist/{vue-ui-molecule-Ddh4hbX0.js → vue-ui-molecule-Cklyb74B.js} +102 -102
  119. package/dist/{vue-ui-mood-radar-CK8UF-ka.js → vue-ui-mood-radar-Cvq4ZuLe.js} +28 -28
  120. package/dist/{vue-ui-nested-donuts-DO0FV0tU.js → vue-ui-nested-donuts-Bm78P1ES.js} +60 -60
  121. package/dist/{vue-ui-onion-DXLqoj-4.js → vue-ui-onion-Bh5jTb31.js} +46 -46
  122. package/dist/{vue-ui-parallel-coordinate-plot-BlffHAHB.js → vue-ui-parallel-coordinate-plot-BKdN2OsW.js} +64 -64
  123. package/dist/{vue-ui-quadrant-pw2ALj7p.js → vue-ui-quadrant-BPhJzots.js} +8 -8
  124. package/dist/{vue-ui-quick-chart-9oGbV593.js → vue-ui-quick-chart-DbJR9CN3.js} +86 -86
  125. package/dist/vue-ui-radar-CrenQprr.js +938 -0
  126. package/dist/{vue-ui-rating-C4yZY1sb.js → vue-ui-rating-fR2WRHYO.js} +2 -2
  127. package/dist/{vue-ui-relation-circle-Duxv-A4H.js → vue-ui-relation-circle-BJ5RuZ0j.js} +31 -31
  128. package/dist/{vue-ui-ridgeline-B-q7J-C0.js → vue-ui-ridgeline-CKuom5Bu.js} +97 -97
  129. package/dist/{vue-ui-rings-PRAcmP1H.js → vue-ui-rings-B84GAEf4.js} +50 -50
  130. package/dist/{vue-ui-scatter-BLW4MJtJ.js → vue-ui-scatter-CBX-g9w3.js} +100 -100
  131. package/dist/{vue-ui-skeleton-D0PF0jxa.js → vue-ui-skeleton-CZ8xxpEU.js} +3 -3
  132. package/dist/{vue-ui-smiley-Be44gMTh.js → vue-ui-smiley-BKXuAviQ.js} +2 -2
  133. package/dist/{vue-ui-spark-trend-B2XY2dRa.js → vue-ui-spark-trend-DOf7-cIf.js} +18 -18
  134. package/dist/{vue-ui-sparkbar-DWQN4gvR.js → vue-ui-sparkbar-D-MPA2zf.js} +3 -3
  135. package/dist/{vue-ui-sparkgauge-fDhQGQ12.js → vue-ui-sparkgauge-B9xRiVSU.js} +6 -6
  136. package/dist/{vue-ui-sparkhistogram-f7Acvipt.js → vue-ui-sparkhistogram-BWb0lqQP.js} +4 -4
  137. package/dist/{vue-ui-sparkline-Ys3JW7Ap.js → vue-ui-sparkline-BF-qr8Ti.js} +23 -23
  138. package/dist/{vue-ui-sparkstackbar-Dv0HeSna.js → vue-ui-sparkstackbar-DnCUpk50.js} +17 -17
  139. package/dist/vue-ui-stackbar-DvJ8Hahn.js +1695 -0
  140. package/dist/{vue-ui-strip-plot-DN13ntF-.js → vue-ui-strip-plot-SAh1gIs5.js} +52 -52
  141. package/dist/{vue-ui-table-Qb5tDX1n.js → vue-ui-table-BJdDfMYD.js} +18 -18
  142. package/dist/{vue-ui-table-heatmap-hMrgJ25a.js → vue-ui-table-heatmap-DU6GKPVy.js} +32 -32
  143. package/dist/{vue-ui-table-sparkline-CdkFyJjv.js → vue-ui-table-sparkline-BBFEJ8c6.js} +28 -28
  144. package/dist/{vue-ui-thermometer-D7U2C7kJ.js → vue-ui-thermometer-D8DH6QSN.js} +22 -22
  145. package/dist/{vue-ui-timer-KtA4M2mV.js → vue-ui-timer-CaUdAHBE.js} +29 -29
  146. package/dist/{vue-ui-tiremarks-C6GTGszq.js → vue-ui-tiremarks-_sUH1d3J.js} +14 -14
  147. package/dist/{vue-ui-treemap-rhnl1TW9.js → vue-ui-treemap-DXduzuW4.js} +78 -78
  148. package/dist/{vue-ui-vertical-bar-n_Lvbd_X.js → vue-ui-vertical-bar-JdjmgwQj.js} +94 -94
  149. package/dist/{vue-ui-waffle-D-4whGLN.js → vue-ui-waffle-h8zoi4Rc.js} +68 -68
  150. package/dist/{vue-ui-wheel-D92HLjfr.js → vue-ui-wheel-Ck1Mx37j.js} +21 -21
  151. package/dist/{vue-ui-word-cloud-Df9AMw6v.js → vue-ui-word-cloud-CjWvuukM.js} +47 -47
  152. package/dist/{vue-ui-world-Bg9S35ug.js → vue-ui-world-Dw71_Mu2.js} +6 -6
  153. package/dist/vue-ui-xy-canvas-Dct7tf8w.js +1548 -0
  154. package/dist/vue-ui-xy-tSMgXqqb.js +3375 -0
  155. package/package.json +2 -2
  156. package/dist/vue-ui-candlestick-DTWbbdGH.js +0 -1073
  157. package/dist/vue-ui-radar-Csznqw19.js +0 -891
  158. package/dist/vue-ui-stackbar-DUlN5QiM.js +0 -1457
  159. package/dist/vue-ui-xy-Da6oy2rm.js +0 -4527
  160. package/dist/vue-ui-xy-canvas-0CLSIKpO.js +0 -1305
@@ -1,64 +1,64 @@
1
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.", gt = "#COMP# : Chart could not be built. Dataset is not formatted correctly", Et = "#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value).", dt = {
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
3
  dataset: lt,
4
4
  datasetAttribute: ft,
5
5
  datasetAttributeEmpty: ht,
6
6
  datasetSerieAttribute: Ft,
7
- notBuildable: gt,
8
- attributeWrongValue: Et
7
+ notBuildable: dt,
8
+ attributeWrongValue: gt
9
9
  };
10
- function Pt(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, u = 360, l = 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((d, A) => d + A.value, 0), F = [];
15
- let g = 0;
16
- for (let d = 0; d < f.length; d++) {
17
- const A = f[d].value, D = f.length === 1, M = D ? 1 : h > 0 ? A / h : 0, $ = M * (Math.PI * s), O = (D ? 0.5 : h > 0 ? A / 2 / h : 0.5) * (Math.PI * c), { startX: N, startY: y, endX: b, endY: m, path: C } = Z(
14
+ const h = f.reduce((E, y) => E + y.value, 0), F = [];
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(
18
18
  [n, e],
19
19
  [o, r],
20
- [g, $],
20
+ [d, C],
21
21
  l,
22
22
  u,
23
23
  c
24
- ), E = Z(
24
+ ), g = Z(
25
25
  [n, e],
26
26
  [o - a, r - a],
27
- [g, $],
27
+ [d, C],
28
28
  l,
29
29
  u,
30
30
  c,
31
31
  !0
32
- ), B = Z(
32
+ ), I = Z(
33
33
  [n, e],
34
34
  [o * i, r * i],
35
- [g, O],
35
+ [d, O],
36
36
  l,
37
37
  u,
38
38
  c
39
39
  );
40
40
  F.push({
41
- arcSlice: `${C} L ${E.startX} ${E.startY} ${E.path} L ${N} ${y}`,
42
- cx: p(n),
43
- cy: p(e),
44
- ...f[d],
45
- proportion: p(M),
46
- ratio: p($),
47
- path: C.replaceAll("NaN", "0"),
48
- startX: p(N),
49
- startY: p(y),
50
- endX: p(b),
51
- endY: p(m),
41
+ arcSlice: `${D} L ${g.startX} ${g.startY} ${g.path} L ${L} ${m}`,
42
+ cx: A(n),
43
+ cy: A(e),
44
+ ...f[E],
45
+ proportion: A(p),
46
+ ratio: A(C),
47
+ path: D.replaceAll("NaN", "0"),
48
+ startX: A(L),
49
+ startY: A(m),
50
+ endX: A($),
51
+ endY: A(M),
52
52
  separator: {
53
- x: E.startX,
54
- y: E.startY
53
+ x: g.startX,
54
+ y: g.startY
55
55
  },
56
56
  firstSeparator: {
57
- x: Number(E.path.split(" ").at(-2)),
58
- y: Number(E.path.split(" ").at(-1))
57
+ x: Number(g.path.split(" ").at(-2)),
58
+ y: Number(g.path.split(" ").at(-1))
59
59
  },
60
- center: B
61
- }), g += $;
60
+ center: I
61
+ }), d += C;
62
62
  }
63
63
  return F;
64
64
  }
@@ -82,26 +82,26 @@ function Z([t, n], [e, o], [r, s], c, i = 360, u = 2, l = !1) {
82
82
  o * Math.sin(r)
83
83
  ]),
84
84
  [t, n]
85
- ), [F, g] = nt(
85
+ ), [F, d] = nt(
86
86
  et(a, [
87
87
  e * Math.cos(r + s),
88
88
  o * Math.sin(r + s)
89
89
  ]),
90
90
  [t, n]
91
- ), d = s > Math.PI ? 1 : 0, A = s > 0 ? l ? 0 : 1 : l ? 1 : 0;
91
+ ), E = s > Math.PI ? 1 : 0, y = s > 0 ? l ? 0 : 1 : l ? 1 : 0;
92
92
  return {
93
- startX: p(l ? F : f),
94
- startY: p(l ? g : h),
95
- endX: p(l ? f : F),
96
- endY: p(l ? h : g),
97
- path: `M${p(l ? F : f)} ${p(l ? g : h)} A ${[
98
- p(e),
99
- p(o),
100
- p(c / (u * Math.PI) * i),
101
- p(d),
102
- p(A),
103
- p(l ? f : F),
104
- p(l ? h : g)
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 ${[
98
+ A(e),
99
+ A(o),
100
+ A(c / (u * Math.PI) * i),
101
+ A(E),
102
+ A(y),
103
+ A(l ? f : F),
104
+ A(l ? h : d)
105
105
  ].join(" ")}`
106
106
  };
107
107
  }
@@ -134,10 +134,10 @@ function ct(t) {
134
134
  function Yt(t) {
135
135
  return ![void 0, NaN, 1 / 0, -1 / 0].includes(t);
136
136
  }
137
- function kt(t, n = 0) {
137
+ function Ht(t, n = 0) {
138
138
  return ct(t) ? t : n;
139
139
  }
140
- function p(t, n = 0) {
140
+ function A(t, n = 0) {
141
141
  return isNaN(t) ? n : t;
142
142
  }
143
143
  const mt = [
@@ -182,7 +182,7 @@ const mt = [
182
182
  "#ce6dbd",
183
183
  "#de9ed6"
184
184
  ];
185
- function Ht(t = "default") {
185
+ function Ut(t = "default") {
186
186
  switch (t) {
187
187
  case "hack":
188
188
  return v.hack;
@@ -419,52 +419,52 @@ function bt(t, n, e, o = 1) {
419
419
  o
420
420
  ];
421
421
  }
422
- function Ut(t, n) {
422
+ function Gt(t, n) {
423
423
  const e = t.length === 9 ? t.substring(0, 7) : t, o = t.length === 9 ? t.substring(7, 9) : null, r = (f) => ({
424
424
  r: parseInt(f.substring(1, 3), 16),
425
425
  g: parseInt(f.substring(3, 5), 16),
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 g = Math.max(f, h, F), d = Math.min(f, h, F);
430
- let A, D, M = (g + d) / 2;
431
- if (g === d)
432
- A = D = 0;
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)
432
+ y = x = 0;
433
433
  else {
434
- const $ = g - d;
435
- switch (D = M > 0.5 ? $ / (2 - g - d) : $ / (g + d), g) {
434
+ const C = d - E;
435
+ switch (x = p > 0.5 ? C / (2 - d - E) : C / (d + E), d) {
436
436
  case f:
437
- A = (h - F) / $ + (h < F ? 6 : 0);
437
+ y = (h - F) / C + (h < F ? 6 : 0);
438
438
  break;
439
439
  case h:
440
- A = (F - f) / $ + 2;
440
+ y = (F - f) / C + 2;
441
441
  break;
442
442
  case F:
443
- A = (f - h) / $ + 4;
443
+ y = (f - h) / C + 4;
444
444
  break;
445
445
  }
446
- A /= 6;
446
+ y /= 6;
447
447
  }
448
- return { h: A, s: D, l: M };
448
+ return { h: y, s: x, l: p };
449
449
  }, c = ({ h: f, s: h, l: F }) => {
450
- let g, d, A;
450
+ let d, E, y;
451
451
  if (h === 0)
452
- g = d = A = F;
452
+ d = E = y = F;
453
453
  else {
454
- const D = (I, O, N) => (N < 0 && (N += 1), N > 1 && (N -= 1), N < 0.16666666666666666 ? I + (O - I) * 6 * N : N < 0.5 ? O : N < 0.6666666666666666 ? I + (O - I) * (0.6666666666666666 - N) * 6 : I), M = F < 0.5 ? F * (1 + h) : F + h - F * h, $ = 2 * F - M;
455
- g = D($, M, f + 1 / 3), d = D($, M, f), A = D($, M, f - 1 / 3);
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);
456
456
  }
457
457
  return {
458
- r: Math.round(g * 255),
459
- g: Math.round(d * 255),
460
- b: Math.round(A * 255)
458
+ r: Math.round(d * 255),
459
+ g: Math.round(E * 255),
460
+ b: Math.round(y * 255)
461
461
  };
462
462
  }, i = r(e || "#000000"), u = s(i);
463
463
  u.h += n, u.h = (u.h + 1) % 1;
464
464
  const l = c(u);
465
465
  return `#${(l.r << 16 | l.g << 8 | l.b).toString(16).padStart(6, "0")}` + (o || "");
466
466
  }
467
- function Ct({
467
+ function Mt({
468
468
  centerX: t,
469
469
  centerY: n,
470
470
  outerPoints: e,
@@ -483,14 +483,14 @@ function Ct({
483
483
  coordinates: u
484
484
  };
485
485
  }
486
- function Gt({
486
+ function vt({
487
487
  plot: t,
488
488
  radius: n,
489
489
  sides: e,
490
490
  rotation: o = 0
491
491
  }) {
492
492
  const r = t.x, s = t.y, c = e / 2;
493
- return Ct({
493
+ return Mt({
494
494
  centerX: r,
495
495
  centerY: s,
496
496
  outerPoints: c,
@@ -498,7 +498,7 @@ function Gt({
498
498
  rotation: o
499
499
  });
500
500
  }
501
- function Mt({
501
+ function Ct({
502
502
  centerX: t,
503
503
  centerY: n,
504
504
  innerCirclePoints: e,
@@ -513,13 +513,13 @@ function Mt({
513
513
  }
514
514
  return u;
515
515
  }
516
- function vt({
516
+ function Xt({
517
517
  plot: t,
518
518
  radius: n,
519
519
  apexes: e = 5
520
520
  }) {
521
521
  const o = t.x, r = t.y, s = e, c = n * 3.5 / s, u = c * 2;
522
- return Mt({
522
+ return Ct({
523
523
  centerX: o,
524
524
  centerY: r,
525
525
  innerCirclePoints: s,
@@ -527,7 +527,7 @@ function vt({
527
527
  outerRadius: u
528
528
  });
529
529
  }
530
- function Xt({ series: t }) {
530
+ function jt({ series: t }) {
531
531
  if (!Array.isArray(t) || t.length === 0) return "";
532
532
  const n = Array.from(
533
533
  new Map(
@@ -565,7 +565,7 @@ function Xt({ series: t }) {
565
565
  function X(t) {
566
566
  return t * Math.PI / 180;
567
567
  }
568
- function jt(t) {
568
+ function Kt(t) {
569
569
  if (t) {
570
570
  let n = t, e = 1;
571
571
  if (n.startsWith("rgba")) {
@@ -581,7 +581,7 @@ function jt(t) {
581
581
  }
582
582
  return "#000000";
583
583
  }
584
- function W(t) {
584
+ function K(t) {
585
585
  return t !== null && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && (t.constructor === Object || t.constructor == null);
586
586
  }
587
587
  function Q(t) {
@@ -592,7 +592,7 @@ function st(t) {
592
592
  }
593
593
  function q(t, n = /* @__PURE__ */ new WeakSet()) {
594
594
  const e = ut(t);
595
- if (!W(e) || n.has(e)) return e;
595
+ if (!K(e) || n.has(e)) return e;
596
596
  n.add(e);
597
597
  for (const o in e) {
598
598
  const r = tt(e[o]) ? J(e[o]) : e[o];
@@ -601,15 +601,15 @@ function q(t, n = /* @__PURE__ */ new WeakSet()) {
601
601
  continue;
602
602
  }
603
603
  if (o === "stroke") {
604
- typeof r == "string" ? e[o] = st(r) : W(r) && !Q(r) && q(r, n);
604
+ typeof r == "string" ? e[o] = st(r) : K(r) && !Q(r) && q(r, n);
605
605
  continue;
606
606
  }
607
607
  if (Array.isArray(r)) {
608
608
  for (const s of r)
609
- W(s) && !Q(s) && q(s, n);
609
+ K(s) && !Q(s) && q(s, n);
610
610
  continue;
611
611
  }
612
- W(r) && !Q(r) && q(r, n);
612
+ K(r) && !Q(r) && q(r, n);
613
613
  }
614
614
  return e;
615
615
  }
@@ -617,28 +617,28 @@ function Wt(t) {
617
617
  const n = t?.length ?? 0;
618
618
  if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
619
619
  let e = 0, o = 0, r = 0, s = 0;
620
- for (const { x: m, y: C } of t)
621
- e += m, o += C, r += m * C, s += m * m;
620
+ for (const { x: M, y: D } of t)
621
+ e += M, o += D, r += M * D, s += M * M;
622
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, g = 0, d = 0, A = 0;
624
- for (let m = 0; m < n; m += 1)
625
- F += m, g += t[m].value, d += m * t[m].value, A += m * m;
626
- const D = n * A - F * F || 1, M = (n * d - F * g) / D, $ = (g - M * F) / n, I = $, O = M * (n - 1) + $, y = Math.max(Math.abs(I), Math.abs(g / n), Math.abs(O), 1e-9), b = (O - I) / y;
627
- return { x1: l, y1: f, x2: a, y2: h, slope: i, trend: b };
623
+ let F = 0, d = 0, E = 0, y = 0;
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: $ };
628
628
  }
629
- function Kt(t) {
629
+ function Vt(t) {
630
630
  const n = Math.floor(t.length / 2), e = [...t].sort((o, r) => o - r);
631
631
  return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
632
632
  }
633
- function Vt(t) {
633
+ function _t(t) {
634
634
  let n = [];
635
635
  for (let e = 0; e < t.length; e += 1)
636
- n.push(`${p(t[e].x)},${p(t[e].y)} `);
636
+ n.push(`${A(t[e].x)},${A(t[e].y)} `);
637
637
  return n.join(" ").trim();
638
638
  }
639
639
  function zt(t) {
640
640
  if (t.length < 2) return "0,0";
641
- const n = t.length - 1, e = [`${p(t[0].x)},${p(t[0].y)}`], o = [], r = [], s = [], c = [];
641
+ const n = t.length - 1, e = [`${A(t[0].x)},${A(t[0].y)}`], o = [], r = [], s = [], c = [];
642
642
  for (let i = 0; i < n; i += 1)
643
643
  o[i] = t[i + 1].x - t[i].x, r[i] = t[i + 1].y - t[i].y, s[i] = r[i] / o[i];
644
644
  c[0] = s[0], c[n] = s[n - 1];
@@ -650,12 +650,12 @@ function zt(t) {
650
650
  c[i] = u;
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], g = u + (a - u) / 3, d = l + h * (a - u) / 3, A = a - (a - u) / 3, D = f - F * (a - u) / 3;
654
- e.push(`C ${p(g)},${p(d)} ${p(A)},${p(D)} ${p(a)},${p(f)}`);
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)}`);
655
655
  }
656
656
  return e.join(" ");
657
657
  }
658
- function _t(t, n = 0.2) {
658
+ function Zt(t, n = 0.2) {
659
659
  function e(c, i) {
660
660
  const u = i.x - c.x, l = i.y - c.y;
661
661
  return {
@@ -664,32 +664,32 @@ function _t(t, n = 0.2) {
664
664
  };
665
665
  }
666
666
  function o(c, i, u, l) {
667
- const h = e(i || c, u || c), F = h.angle + (l ? Math.PI : 0), g = h.length * n, d = c.x + Math.cos(F) * g, A = c.y + Math.sin(F) * g;
668
- return { x: d, y: A };
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 };
669
669
  }
670
670
  function r(c, i, u) {
671
671
  const l = o(u[i - 1], u[i - 2], c), a = o(c, u[i - 1], u[i + 1], !0);
672
- return `C ${p(l.x)},${p(l.y)} ${p(a.x)},${p(a.y)} ${p(c.x)},${p(c.y)}`;
672
+ return `C ${A(l.x)},${A(l.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 ? `${p(i.x)},${p(i.y)} ` : `${c} ${r(i, u, l)} `,
675
+ (c, i, u, l) => u === 0 ? `${A(i.x)},${A(i.y)} ` : `${c} ${r(i, u, l)} `,
676
676
  ""
677
677
  );
678
678
  }
679
- function Zt() {
679
+ function Qt() {
680
680
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
681
681
  const n = Math.random() * 16 | 0;
682
682
  return (t == "x" ? n : n & 3 | 8).toString(16);
683
683
  });
684
684
  }
685
- function K(t, n = !1, e = 16, o = !1) {
685
+ function W(t, n = !1, e = 16, o = !1) {
686
686
  let r = 0, s = n ? e : 0, c = o ? "center" : "middle";
687
687
  return t.center.endX > t.cx ? (r = t.center.endX + e + s, c = o ? "left" : "start") : t.center.endX < t.cx ? (r = t.center.endX - e - s, c = o ? "right" : "end") : (r = t.centerX + s, c = o ? "center" : "middle"), { x: r, anchor: c };
688
688
  }
689
689
  function V(t, n = 16, e = 16) {
690
690
  return t.center.endY > t.cy ? t.center.endY + e : t.center.endY < t.cy ? t.center.endY - n : t.center.endY;
691
691
  }
692
- function Qt({
692
+ function qt({
693
693
  initX: t,
694
694
  initY: n,
695
695
  offset: e,
@@ -718,20 +718,20 @@ function $t(t) {
718
718
  const { x: i, y: u } = n.getPointAtLength(s);
719
719
  return { x: i, y: u };
720
720
  }
721
- function qt(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 = `${K(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, u = !1) {
722
+ const { x: l } = $t(t.path), a = `${W(t).x},${V(t, e, o) - 4} `;
723
723
  let f = "", h, F;
724
- l > t.cx ? (h = K(t).x - i, F = V(t, e, o) - 4, f = `${h},${F}`) : l < t.cx ? (h = K(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`) : (h = K(t).x + i, F = V(t, e, o) - 4, f = `${h},${F}`);
725
- const g = ` ${t.center.endX},${t.center.endY}`;
726
- return u ? s ? `M${f} Q${f} ${g}` : `M${a} Q${f} ${g}` : `M${s ? "" : a}${f}${g}`;
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}`);
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}`;
727
727
  }
728
- function Jt(t) {
728
+ function tn(t) {
729
729
  return ![null, void 0, NaN].includes(t);
730
730
  }
731
- function tn(t, n) {
731
+ function nn(t, n) {
732
732
  return [...t].map((e) => e[n]).reduce((e, o) => e + o, 0);
733
733
  }
734
- function nn(t, n = !0, e = !1) {
734
+ function en(t, n = !0, e = !1) {
735
735
  if (!t.length) return "M0,0";
736
736
  let o = "";
737
737
  return t.forEach((r) => {
@@ -739,15 +739,15 @@ function nn(t, n = !0, e = !1) {
739
739
  o += `${r.x},${r.y} `;
740
740
  }), e ? o.trim() : `M${o}${n ? "Z" : ""}`;
741
741
  }
742
- function en({ csvContent: t, title: n = "vue-data-ui" }) {
742
+ function rn({ csvContent: t, title: n = "vue-data-ui" }) {
743
743
  const e = encodeURI(t), o = document.createElement("a");
744
744
  o.setAttribute("href", e), o.setAttribute("download", `${n}.csv`), document.body.appendChild(o), o.click(), o.remove(), window.URL.revokeObjectURL(e);
745
745
  }
746
- function rn(t) {
746
+ function sn(t) {
747
747
  return `data:text/csv;charset=utf-8,${t.map((n) => n.join(",")).join(`
748
748
  `)}`;
749
749
  }
750
- function sn(t, n) {
750
+ function on(t, n) {
751
751
  if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
752
752
  return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
753
753
  let e = t.replace("#", "");
@@ -759,7 +759,7 @@ function sn(t, n) {
759
759
  }
760
760
  return l;
761
761
  }
762
- function on(t, n) {
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("#", "");
@@ -771,13 +771,13 @@ function on(t, n) {
771
771
  }
772
772
  return l;
773
773
  }
774
- function _(t, n) {
774
+ function z(t, n) {
775
775
  const e = Math.floor(Math.log10(t)), o = t / Math.pow(10, e);
776
776
  let r;
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
- function cn(t, n, e, o = !1) {
780
- const r = o ? n - t : _(n - t, !1), s = o ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s, u = [];
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
781
  for (let l = c; l <= i; l += s)
782
782
  u.push(l);
783
783
  return {
@@ -787,8 +787,8 @@ function cn(t, n, e, o = !1) {
787
787
  ticks: u
788
788
  };
789
789
  }
790
- function an(t, n, e, o = !1) {
791
- const r = o ? n - t : _(n - t, !1), s = o ? r / (e - 1) : _(r / (e - 1), !0), c = Math.floor(t / s) * s, i = Math.ceil(n / s) * s;
790
+ function un(t, n, e, o = !1) {
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
792
  let u = [], l = c;
793
793
  for (; l <= i; )
794
794
  l >= t && l <= n && u.push(l), l += s;
@@ -799,17 +799,17 @@ function an(t, n, e, o = !1) {
799
799
  ticks: u
800
800
  };
801
801
  }
802
- function un(t, n, e, o, r) {
802
+ function ln(t, n, e, o, r) {
803
803
  const s = (h) => {
804
- let F = parseInt(h.substring(1, 3), 16), g = parseInt(h.substring(3, 5), 16), d = parseInt(h.substring(5, 7), 16), A = 1;
805
- return h.length === 9 && (A = parseInt(h.substring(7, 9), 16) / 255), { r: F, g, b: d, a: A };
806
- }, c = ({ r: h, g: F, b: g, a: d }) => {
807
- const A = (M) => M.toString(16).padStart(2, "0"), D = `#${A(h)}${A(F)}${A(g)}`;
808
- if (d !== 1) {
809
- const M = Math.round(d * 255).toString(16).padStart(2, "0");
810
- return D + M;
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;
811
811
  }
812
- return D;
812
+ return x;
813
813
  }, i = s(t), u = s(n);
814
814
  r = Math.min(Math.max(r, e), o);
815
815
  const l = (r - e) / (o - e), a = {
@@ -819,11 +819,11 @@ function un(t, n, e, o, r) {
819
819
  }, f = i.a + (u.a - i.a) * l;
820
820
  return c({ ...a, a: f });
821
821
  }
822
- function ln({ p: t = "", v: n, s: e = "", r: o = 0, space: r = !1, isAnimating: s = !1, regex: c = /[^%]/g, replacement: i = "-", locale: u = null }) {
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
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 ?? ""}`;
824
824
  return s ? f.replace(c, i) : f;
825
825
  }
826
- function fn({ source: t, length: n = 3 }) {
826
+ function hn({ source: t, length: n = 3 }) {
827
827
  if (!t && t !== 0)
828
828
  return "";
829
829
  t = String(t);
@@ -839,10 +839,10 @@ function fn({ source: t, length: n = 3 }) {
839
839
  }), o.join().replaceAll(",", "").toUpperCase();
840
840
  }
841
841
  }
842
- function hn(t) {
842
+ function Fn(t) {
843
843
  return !!t && typeof t == "function";
844
844
  }
845
- function Fn(t) {
845
+ function dn(t) {
846
846
  return typeof t.apply(null, arguments) == "string";
847
847
  }
848
848
  function gn(t) {
@@ -851,7 +851,7 @@ function gn(t) {
851
851
  function En({ 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
- > ${dt[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", o).replace("#KEY#", r)}
854
+ > ${Et[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", o).replace("#KEY#", r)}
855
855
  `;
856
856
  if (s)
857
857
  console.warn(i);
@@ -881,7 +881,7 @@ function St(t) {
881
881
  }
882
882
  return n;
883
883
  }
884
- function dn({
884
+ function pn({
885
885
  maxPoints: t,
886
886
  a: n = 6,
887
887
  b: e = 6,
@@ -892,13 +892,13 @@ function dn({
892
892
  boxHeight: i,
893
893
  padding: u = 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: g, height: d } = Rt(l), A = (a + h) / 2, D = (f + F) / 2, M = Math.max(1, c - 2 * u), $ = Math.max(1, i - 2 * u), I = Math.min(M / g, $ / d), O = r - A * I, N = s - D * I;
896
- return function(b) {
897
- const m = Math.max(2, Math.min(Math.round(b), l.length)), C = l.slice(0, m).map((E) => ({ x: E.x * I + O, y: E.y * I + N }));
898
- return St(C);
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;
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);
899
899
  };
900
900
  }
901
- function pn({ datasetObject: t, requiredAttributes: n }) {
901
+ function An({ datasetObject: t, requiredAttributes: n }) {
902
902
  let e = [];
903
903
  return n.forEach((o) => {
904
904
  Object.hasOwn(t, o) || e.push(o);
@@ -1056,8 +1056,8 @@ function Bt(t) {
1056
1056
  const o = e.toUpperCase(), r = o.replace(/GRAY/g, "GREY");
1057
1057
  return ot[o] || ot[r] || e;
1058
1058
  }
1059
- const An = "http://www.w3.org/2000/svg";
1060
- function yn(t) {
1059
+ const yn = "http://www.w3.org/2000/svg";
1060
+ function xn(t) {
1061
1061
  if (t.length < 2)
1062
1062
  return 0;
1063
1063
  let n = 0, e = 0;
@@ -1070,17 +1070,17 @@ function yn(t) {
1070
1070
  }
1071
1071
  return e === 0 ? 0 : n / e;
1072
1072
  }
1073
- function xn({ content: t, fontSize: n, fill: e, x: o, y: r }) {
1073
+ function mn({ content: t, fontSize: n, fill: e, x: o, y: r }) {
1074
1074
  return t.split(`
1075
1075
  `).map(
1076
1076
  (c, i) => `<tspan x="${o}" y="${r + i * n}" fill="${e}">${c}</tspan>`
1077
1077
  ).join("");
1078
1078
  }
1079
- function mn({ content: t, fontSize: n, fill: e, x: o }) {
1079
+ function bn({ content: t, fontSize: n, fill: e, x: o }) {
1080
1080
  return t.split(`
1081
1081
  `).map((s, c) => `<tspan x="${o}" dy="${c === 0 ? 0 : n}" fill="${e}">${s}</tspan>`).join("");
1082
1082
  }
1083
- function bn({
1083
+ function Mn({
1084
1084
  content: t,
1085
1085
  fontSize: n,
1086
1086
  fill: e,
@@ -1103,7 +1103,7 @@ function bn({
1103
1103
  function Cn(t) {
1104
1104
  return t.length ? t.map((n) => at(n)) : [];
1105
1105
  }
1106
- function Mn(t, n = null) {
1106
+ function $n(t, n = null) {
1107
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), {});
1108
1108
  return Object.keys(c).map((i) => {
1109
1109
  let u = i;
@@ -1113,7 +1113,7 @@ function Mn(t, n = null) {
1113
1113
  };
1114
1114
  });
1115
1115
  }
1116
- function $n(t) {
1116
+ function Dn(t) {
1117
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) => ({
1118
1118
  ...i,
1119
1119
  stackRatio: i.stackRatio !== void 0 ? i.stackRatio : r
@@ -1124,18 +1124,18 @@ function $n(t) {
1124
1124
  cumulatedStackRatio: c
1125
1125
  })), s;
1126
1126
  }
1127
- function Dn(t) {
1127
+ function Rn(t) {
1128
1128
  function n(l, a, f, h) {
1129
- const F = f - l, g = h - a;
1130
- return Math.sqrt(F * F + g * g);
1129
+ const F = f - l, d = h - a;
1130
+ return Math.sqrt(F * F + d * d);
1131
1131
  }
1132
1132
  function e(l, a, f, h) {
1133
- let g = 0, d = l.x, A = l.y;
1134
- for (let D = 1; D <= 100; D += 1) {
1135
- const M = D / 100, $ = 1 - M, I = $ * $, O = M * M, N = I * $ * l.x + 3 * I * M * a.x + 3 * $ * O * f.x + O * M * h.x, y = I * $ * l.y + 3 * I * M * a.y + 3 * $ * O * f.y + O * M * h.y;
1136
- g += n(d, A, N, y), d = N, A = y;
1133
+ let d = 0, E = l.x, y = l.y;
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;
1137
1137
  }
1138
- return g;
1138
+ return d;
1139
1139
  }
1140
1140
  const o = t.match(/[a-zA-Z][^a-zA-Z]*/g);
1141
1141
  let r = 0, s = 0, c = 0, i = 0, u = 0;
@@ -1174,7 +1174,7 @@ function Dn(t) {
1174
1174
  }
1175
1175
  }), u;
1176
1176
  }
1177
- function Rn({
1177
+ function Sn({
1178
1178
  relator: t,
1179
1179
  adjuster: n,
1180
1180
  source: e,
@@ -1185,7 +1185,7 @@ function Rn({
1185
1185
  const c = t / (n / e);
1186
1186
  return c > s ? s : c < o ? r : c;
1187
1187
  }
1188
- function Sn(t) {
1188
+ function Bn(t) {
1189
1189
  return t.reduce((n, e) => (e.series.forEach((o, r) => {
1190
1190
  ![void 0, null, 1 / 0, -1 / 0].includes(o) && !isNaN(o) && (n[r] = (n[r] || 0) + o);
1191
1191
  }), n), []);
@@ -1203,24 +1203,24 @@ function It(t, { value: n, config: e }) {
1203
1203
  value: r
1204
1204
  };
1205
1205
  }
1206
- function Bn(t, n, e, o) {
1206
+ function In(t, n, e, o) {
1207
1207
  const { isValid: r, value: s } = It(t, { value: n, config: o });
1208
1208
  return r ? s : e;
1209
1209
  }
1210
- function In(t, n) {
1210
+ function Ln(t, n) {
1211
1211
  return n.split(".").every((e) => t !== null && typeof t == "object" && e in t ? (t = t[e], !0) : !1);
1212
1212
  }
1213
- function Nn(t, n = []) {
1214
- function e(r) {
1215
- return typeof r == "string" && isNaN(Number(r)) || typeof r == "number" && isFinite(r) ? r : 0;
1213
+ function Nn(t, n = [], e = !1) {
1214
+ function o(s) {
1215
+ return e && s === null ? null : typeof s == "string" && isNaN(Number(s)) || typeof s == "number" && isFinite(s) ? s : 0;
1216
1216
  }
1217
- function o(r) {
1218
- if (Array.isArray(r))
1219
- return r.map((s) => o(s));
1220
- if (typeof r == "object" && r !== null) {
1221
- let s = { ...r };
1222
- return n.forEach((c) => {
1223
- s.hasOwnProperty(c) && ![
1217
+ function r(s) {
1218
+ if (Array.isArray(s))
1219
+ return s.map((c) => r(c));
1220
+ if (typeof s == "object" && s !== null) {
1221
+ let c = { ...s };
1222
+ return n.forEach((i) => {
1223
+ c.hasOwnProperty(i) && ![
1224
1224
  "NAME",
1225
1225
  "name",
1226
1226
  "TITLE",
@@ -1249,30 +1249,30 @@ function Nn(t, n = []) {
1249
1249
  "hour",
1250
1250
  "HOURS",
1251
1251
  "hours"
1252
- ].includes(c) && Array.isArray(s[c]) && (s[c] = o(s[c]));
1252
+ ].includes(i) && Array.isArray(c[i]) && (c[i] = r(c[i]));
1253
1253
  }), Object.fromEntries(
1254
- Object.entries(s).map(([c, i]) => [c, o(i)])
1254
+ Object.entries(c).map(([i, u]) => [i, r(u)])
1255
1255
  );
1256
1256
  } else
1257
- return e(r);
1257
+ return o(s);
1258
1258
  }
1259
- return o(t);
1259
+ return r(t);
1260
1260
  }
1261
- function Ln(t, n = 100) {
1261
+ function On(t, n = 100) {
1262
1262
  return t.length === 9 ? t.substring(0, 7) + rt[n] : t + rt[n];
1263
1263
  }
1264
- function On({ series: t, center: n, maxRadius: e, hasGhost: o = !1 }) {
1264
+ function wn({ series: t, center: n, maxRadius: e, hasGhost: o = !1 }) {
1265
1265
  const s = 360 / (t.length - (o ? 1 : 0));
1266
1266
  return t.map((i, u) => {
1267
- const a = i * e, f = u * s, h = f + s, F = f + s / 2, g = X(f) - X(90), d = X(h) - X(90), A = X(F) - X(90), D = n.x + a * Math.cos(g), M = n.y + a * Math.sin(g), $ = n.x + a * Math.cos(d), I = n.y + a * Math.sin(d), O = n.x + a * Math.cos(A), N = n.y + a * Math.sin(A);
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);
1268
1268
  return {
1269
1269
  path: `
1270
1270
  M ${n.x} ${n.y}
1271
- L ${D} ${M}
1272
- A ${a} ${a} 0 0 1 ${$} ${I}
1271
+ L ${x} ${p}
1272
+ A ${a} ${a} 0 0 1 ${C} ${S}
1273
1273
  Z
1274
1274
  `.trim(),
1275
- middlePoint: { x: O, y: N },
1275
+ middlePoint: { x: O, y: L },
1276
1276
  radius: a
1277
1277
  };
1278
1278
  });
@@ -1291,16 +1291,16 @@ function Tn({ data: t, threshold: n }) {
1291
1291
  l /= u.length, a /= u.length;
1292
1292
  let f = -1, h = r;
1293
1293
  for (let F = c; F < i; F += 1) {
1294
- const g = Math.abs(
1294
+ const d = Math.abs(
1295
1295
  (t[r].x - l) * (t[F].y - t[r].y) - (t[r].x - t[F].x) * (a - t[r].y)
1296
1296
  );
1297
- g > f && (f = g, h = F);
1297
+ d > f && (f = d, h = F);
1298
1298
  }
1299
1299
  e.push(t[h]), r = h;
1300
1300
  }
1301
1301
  return e.push(t[t.length - 1]), e;
1302
1302
  }
1303
- function wn({ data: t, threshold: n }) {
1303
+ function Pn({ data: t, threshold: n }) {
1304
1304
  if (n >= t.length || n < 3)
1305
1305
  return t;
1306
1306
  const e = [], o = (t.length - 2) / (n - 2);
@@ -1317,18 +1317,18 @@ function wn({ data: t, threshold: n }) {
1317
1317
  }
1318
1318
  return e.push(t[t.length - 1]), e;
1319
1319
  }
1320
- function Pn({ data: t, threshold: n, key: e = "value" }) {
1320
+ function kn({ data: t, threshold: n, key: e = "value" }) {
1321
1321
  if (n >= t.length || n < 3)
1322
1322
  return t;
1323
1323
  const o = [], r = (t.length - 2) / (n - 2);
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, g) => F + g[e], 0) / l.length;
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;
1328
1328
  let f = -1, h = s;
1329
1329
  for (let F = i; F < u; F += 1) {
1330
- const g = Math.abs((t[s][e] - a) * (F - s));
1331
- g > f && (f = g, h = F);
1330
+ const d = Math.abs((t[s][e] - a) * (F - s));
1331
+ d > f && (f = d, h = F);
1332
1332
  }
1333
1333
  o.push(t[h]), s = h;
1334
1334
  }
@@ -1339,7 +1339,7 @@ function Yn({ radius: t, centerX: n, centerY: e, percentage: o }) {
1339
1339
  const r = o * Math.PI, s = n - t, c = e, i = n - t * Math.cos(r), u = e - t * Math.sin(r);
1340
1340
  return `M ${n},${e} L ${s},${c} A ${t},${t} 0 0 1 ${i},${u} Z`.trim();
1341
1341
  }
1342
- function kn({ svgElement: t, x: n, y: e, offsetY: o = 0, element: r }) {
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;
@@ -1350,7 +1350,7 @@ function kn({ svgElement: t, x: n, y: e, offsetY: o = 0, element: r }) {
1350
1350
  left: c.x + l
1351
1351
  };
1352
1352
  }
1353
- function Hn({ svgElement: t, x: n, y: e, element: o, position: r }) {
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;
@@ -1361,7 +1361,7 @@ function Hn({ svgElement: t, x: n, y: e, element: o, position: r }) {
1361
1361
  left: c.x + l
1362
1362
  };
1363
1363
  }
1364
- function z(t) {
1364
+ function _(t) {
1365
1365
  if (t === null || typeof t != "object")
1366
1366
  return t;
1367
1367
  if (t instanceof Date)
@@ -1371,30 +1371,30 @@ function z(t) {
1371
1371
  if (t instanceof Map) {
1372
1372
  const e = /* @__PURE__ */ new Map();
1373
1373
  for (const [o, r] of t.entries())
1374
- e.set(o, z(r));
1374
+ e.set(o, _(r));
1375
1375
  return e;
1376
1376
  }
1377
1377
  if (t instanceof Set) {
1378
1378
  const e = /* @__PURE__ */ new Set();
1379
1379
  for (const o of t.values())
1380
- e.add(z(o));
1380
+ e.add(_(o));
1381
1381
  return e;
1382
1382
  }
1383
1383
  if (Array.isArray(t))
1384
- return t.map((e) => z(e));
1384
+ return t.map((e) => _(e));
1385
1385
  const n = {};
1386
1386
  for (const e in t)
1387
- Object.prototype.hasOwnProperty.call(t, e) && (n[e] = z(t[e]));
1387
+ Object.prototype.hasOwnProperty.call(t, e) && (n[e] = _(t[e]));
1388
1388
  return n;
1389
1389
  }
1390
- function Nt(t) {
1390
+ function Lt(t) {
1391
1391
  const n = [];
1392
1392
  let e = [];
1393
1393
  for (const o of t)
1394
1394
  !o || o.value == null || Number.isNaN(o.x) || Number.isNaN(o.y) ? (e.length && n.push(e), e = []) : e.push(o);
1395
1395
  return e.length && n.push(e), n;
1396
1396
  }
1397
- function Un(t, n) {
1397
+ function Gn(t, n) {
1398
1398
  const e = t.filter((c) => !!c);
1399
1399
  if (!e[0]) return [-10, -10, "", -10, -10].toString();
1400
1400
  const o = { x: e[0].x, y: n }, r = { x: e.at(-1).x, y: n }, s = [];
@@ -1402,9 +1402,9 @@ function Un(t, n) {
1402
1402
  s.push(`${c.x},${c.y} `);
1403
1403
  }), [o.x, o.y, ...s, r.x, r.y].toString();
1404
1404
  }
1405
- function Gn(t, n) {
1405
+ function vn(t, n) {
1406
1406
  if (!t[0]) return [-10, -10, "", -10, -10].toString();
1407
- const e = Nt(t);
1407
+ const e = Lt(t);
1408
1408
  return e.length ? e.map((o) => {
1409
1409
  const r = { x: o[0].x, y: n }, s = { x: o.at(-1).x, y: n }, c = [];
1410
1410
  return o.forEach((i) => {
@@ -1412,21 +1412,21 @@ function Gn(t, n) {
1412
1412
  }), [r.x, r.y, ...c, s.x, s.y].toString();
1413
1413
  }).join(";") : "";
1414
1414
  }
1415
- function Lt(t) {
1415
+ function Nt(t) {
1416
1416
  const n = [];
1417
1417
  let e = [];
1418
1418
  for (const o of t)
1419
1419
  o.value == null || Number.isNaN(o.x) || Number.isNaN(o.y) ? (e.length > 1 && n.push(e), e = []) : e.push(o);
1420
1420
  return e.length > 1 && n.push(e), n;
1421
1421
  }
1422
- function vn(t) {
1422
+ function Xn(t) {
1423
1423
  let n = "", e = !1;
1424
1424
  const o = (r) => r.value != null && Number.isFinite(r.x) && Number.isFinite(r.y);
1425
1425
  for (let r = 0; r < t.length; r++) {
1426
1426
  const s = t[r];
1427
1427
  if (!o(s))
1428
1428
  continue;
1429
- const c = `${p(s.x)},${p(s.y)}`;
1429
+ const c = `${A(s.x)},${A(s.y)}`;
1430
1430
  if (!e)
1431
1431
  n += c, e = !0;
1432
1432
  else {
@@ -1437,8 +1437,8 @@ function vn(t) {
1437
1437
  }
1438
1438
  return n.trim();
1439
1439
  }
1440
- function Xn(t) {
1441
- const n = Lt(t);
1440
+ function jn(t) {
1441
+ const n = Nt(t);
1442
1442
  if (!n.length) return "";
1443
1443
  let e = "";
1444
1444
  for (const [o, r] of n.entries()) {
@@ -1454,15 +1454,15 @@ function Xn(t) {
1454
1454
  const f = 2 * u[a - 1] * u[a] / (u[a - 1] + u[a]);
1455
1455
  l[a] = f;
1456
1456
  }
1457
- e += `${o === 0 ? "" : "M"}${p(r[0].x)},${p(r[0].y)} `;
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, g = r[a + 1].y, d = l[a], A = l[a + 1], D = f + (F - f) / 3, M = h + d * (F - f) / 3, $ = F - (F - f) / 3, I = g - A * (F - f) / 3;
1460
- e += `C${p(D)},${p(M)} ${p($)},${p(I)} ${p(F)},${p(g)} `;
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)} `;
1461
1461
  }
1462
1462
  }
1463
1463
  return e.trim();
1464
1464
  }
1465
- function jn(t, n, e = !1, o = !0) {
1465
+ function Kn(t, n, e = !1, o = !0) {
1466
1466
  function r(c) {
1467
1467
  const i = [];
1468
1468
  let u = [];
@@ -1480,14 +1480,14 @@ function jn(t, n, e = !1, o = !0) {
1480
1480
  if (a[F - 1] * a[F] <= 0)
1481
1481
  f[F] = 0;
1482
1482
  else {
1483
- const g = 2 * a[F - 1] * a[F] / (a[F - 1] + a[F]);
1484
- f[F] = g;
1483
+ const d = 2 * a[F - 1] * a[F] / (a[F - 1] + a[F]);
1484
+ f[F] = d;
1485
1485
  }
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 g = c[F].x, d = c[F].y, A = c[F + 1].x, D = c[F + 1].y, M = f[F], $ = f[F + 1], I = g + (A - g) / 3, O = d + M * (A - g) / 3, N = A - (A - g) / 3, y = D - $ * (A - g) / 3;
1490
- h += ` C${I},${O} ${N},${y} ${A},${D}`;
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}`;
1491
1491
  }
1492
1492
  return h += ` L${c[i].x},${n} ${o ? "Z" : ""}`, h;
1493
1493
  }).filter(Boolean);
@@ -1509,10 +1509,10 @@ function it(t) {
1509
1509
  }
1510
1510
  return t;
1511
1511
  }
1512
- function Kn(t) {
1512
+ function Vn(t) {
1513
1513
  return 1 - Math.pow(1 - t, 3);
1514
1514
  }
1515
- function Vn({ values: t, config: n = {} }) {
1515
+ function _n({ values: t, config: n = {} }) {
1516
1516
  const {
1517
1517
  keepInvalid: e = !0,
1518
1518
  convertInvalidToZero: o = !1
@@ -1545,7 +1545,7 @@ function zn({ values: t, config: n = {} }) {
1545
1545
  c(u) ? o && e ? i(0) : !o && e && r.push(u) : i(u);
1546
1546
  return r;
1547
1547
  }
1548
- function _n({
1548
+ function Zn({
1549
1549
  el: t,
1550
1550
  bounds: n,
1551
1551
  currentFontSize: e,
@@ -1556,16 +1556,16 @@ function _n({
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, g = u + a - s;
1560
- let d = t.getBBox();
1561
- if (d.x >= f + s && d.y >= h + s && d.x + d.width <= F - s && d.y + d.height <= g - s)
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)
1562
1562
  return c;
1563
- let A = r;
1564
- for (; A-- > 0 && c > o && (c--, t.setAttribute("font-size", c), d = t.getBBox(), !(d.x >= f + s && d.y >= h + s && d.x + d.width <= F - s && d.y + d.height <= g - s)); )
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)); )
1565
1565
  ;
1566
1566
  return c < o && (c = 0, t.setAttribute("font-size", c)), c;
1567
1567
  }
1568
- function Zn({
1568
+ function Qn({
1569
1569
  value: t,
1570
1570
  maxDecimals: n = 4,
1571
1571
  fallbackFormatter: e,
@@ -1587,13 +1587,13 @@ function Zn({
1587
1587
  let c = t.toFixed(s);
1588
1588
  return o && (c = c.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), c;
1589
1589
  }
1590
- function Qn(t) {
1590
+ function qn(t) {
1591
1591
  const n = [];
1592
1592
  for (let e = 0; e < t; e += 1)
1593
1593
  n.push(e === 0 ? 0 : e === 1 ? 1 : n[e - 1] + n[e - 2]);
1594
1594
  return n;
1595
1595
  }
1596
- function qn(t, n = 20) {
1596
+ function Jn(t, n = 20) {
1597
1597
  t = t.replace(/[\r\n]+/g, " ");
1598
1598
  const e = t.split(" ");
1599
1599
  let o = "", r = "";
@@ -1603,7 +1603,7 @@ function qn(t, n = 20) {
1603
1603
  return o && (r += (r ? `
1604
1604
  ` : "") + o), r;
1605
1605
  }
1606
- function Jn(t) {
1606
+ function te(t) {
1607
1607
  const {
1608
1608
  lineA: n,
1609
1609
  lineB: e,
@@ -1621,55 +1621,55 @@ function Jn(t) {
1621
1621
  } = t || {};
1622
1622
  if (!Array.isArray(n) || !Array.isArray(e) || !n.length || !e.length)
1623
1623
  return [];
1624
- const a = (y) => Number.isFinite(y);
1625
- function f(y) {
1626
- if (!u) return [y.filter((C) => C && a(C.x) && a(C.y))];
1627
- const b = [];
1628
- let m = [];
1629
- for (const C of y)
1630
- C && a(C.x) && a(C.y) && C.value != null ? m.push({ x: C.x, y: C.y }) : (m.length > 1 && b.push(m), m = []);
1631
- return m.length > 1 && b.push(m), b;
1624
+ const a = (m) => Number.isFinite(m);
1625
+ function f(m) {
1626
+ if (!u) return [m.filter((D) => D && a(D.x) && a(D.y))];
1627
+ const $ = [];
1628
+ let M = [];
1629
+ for (const D of m)
1630
+ D && a(D.x) && a(D.y) && D.value != null ? M.push({ x: D.x, y: D.y }) : (M.length > 1 && $.push(M), M = []);
1631
+ return M.length > 1 && $.push(M), $;
1632
1632
  }
1633
- function h(y) {
1634
- const b = y.length - 1, m = new Array(b), C = new Array(b), E = new Array(b), B = new Array(y.length);
1635
- for (let x = 0; x < b; x += 1)
1636
- m[x] = y[x + 1].x - y[x].x, C[x] = y[x + 1].y - y[x].y, E[x] = C[x] / m[x];
1637
- B[0] = E[0], B[b] = E[b - 1];
1638
- for (let x = 1; x < b; x += 1)
1639
- E[x - 1] * E[x] <= 0 ? B[x] = 0 : B[x] = 2 * E[x - 1] * E[x] / (E[x - 1] + E[x]);
1640
- return B;
1633
+ function h(m) {
1634
+ const $ = m.length - 1, M = new Array($), D = new Array($), g = new Array($), I = new Array(m.length);
1635
+ for (let b = 0; b < $; b += 1)
1636
+ M[b] = m[b + 1].x - m[b].x, D[b] = m[b + 1].y - m[b].y, g[b] = D[b] / M[b];
1637
+ I[0] = g[0], I[$] = g[$ - 1];
1638
+ for (let b = 1; b < $; b += 1)
1639
+ g[b - 1] * g[b] <= 0 ? I[b] = 0 : I[b] = 2 * g[b - 1] * g[b] / (g[b - 1] + g[b]);
1640
+ return I;
1641
1641
  }
1642
- function F(y, b, m, C, E) {
1643
- const B = y.x, x = b.x, T = y.y, R = b.y, w = x - B;
1644
- if (w === 0) return T;
1645
- const P = (E - B) / w, L = P * P, k = L * P, H = 2 * k - 3 * L + 1, S = k - 2 * L + P, Y = -2 * k + 3 * L, U = k - L;
1646
- return H * T + S * (m * w) + Y * R + U * (C * w);
1642
+ function F(m, $, M, D, g) {
1643
+ const I = m.x, b = $.x, w = m.y, R = $.y, T = b - I;
1644
+ if (T === 0) return w;
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);
1647
1647
  }
1648
- function g(y, b) {
1649
- const m = f(y);
1650
- if (!m.length) return [];
1651
- let C = 1 / 0, E = -1 / 0;
1652
- for (const R of m)
1653
- C = Math.min(C, R[0].x), E = Math.max(E, R[R.length - 1].x);
1654
- if (!a(C) || !a(E) || E <= C) return [];
1655
- const B = Math.max(1, i), x = [];
1656
- for (let R = C; R <= E; R += B) x.push(R);
1657
- x[x.length - 1] < E && x.push(E);
1658
- const T = [];
1659
- for (const R of x) {
1660
- let w = null, P = !1;
1661
- for (const L of m) {
1662
- const k = L.length - 1;
1663
- if (!(R < L[0].x - 1e-9 || R > L[k].x + 1e-9)) {
1664
- for (let H = 0; H < k; H += 1) {
1665
- const S = L[H], Y = L[H + 1];
1666
- if (!(R + 1e-9 < S.x || R - 1e-9 > Y.x)) {
1667
- if (b) {
1668
- const U = L.__tangents || (L.__tangents = h(L));
1669
- w = F(S, Y, U[H], U[H + 1], R);
1648
+ function d(m, $) {
1649
+ const M = f(m);
1650
+ if (!M.length) return [];
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);
1654
+ if (!a(D) || !a(g) || g <= D) return [];
1655
+ const I = Math.max(1, i), b = [];
1656
+ for (let R = D; R <= g; R += I) b.push(R);
1657
+ b[b.length - 1] < g && b.push(g);
1658
+ const w = [];
1659
+ for (const R of b) {
1660
+ let T = null, P = !1;
1661
+ for (const N of M) {
1662
+ const Y = N.length - 1;
1663
+ if (!(R < N[0].x - 1e-9 || R > N[Y].x + 1e-9)) {
1664
+ for (let H = 0; H < Y; H += 1) {
1665
+ const B = N[H], k = N[H + 1];
1666
+ if (!(R + 1e-9 < B.x || R - 1e-9 > k.x)) {
1667
+ if ($) {
1668
+ const U = N.__tangents || (N.__tangents = h(N));
1669
+ T = F(B, k, U[H], U[H + 1], R);
1670
1670
  } else {
1671
- const U = (R - S.x) / (Y.x - S.x || 1);
1672
- w = S.y + U * (Y.y - S.y);
1671
+ const U = (R - B.x) / (k.x - B.x || 1);
1672
+ T = B.y + U * (k.y - B.y);
1673
1673
  }
1674
1674
  P = !0;
1675
1675
  break;
@@ -1678,75 +1678,75 @@ function Jn(t) {
1678
1678
  if (P) break;
1679
1679
  }
1680
1680
  }
1681
- w == null ? T.push({ x: R, y: null, hole: !0 }) : T.push({ x: R, y: w, hole: !1 });
1681
+ T == null ? w.push({ x: R, y: null, hole: !0 }) : w.push({ x: R, y: T, hole: !1 });
1682
1682
  }
1683
- return T;
1683
+ return w;
1684
1684
  }
1685
- function d(y, b, m) {
1686
- return y + m * (b - y);
1685
+ function E(m, $, M) {
1686
+ return m + M * ($ - m);
1687
1687
  }
1688
- function A(y, b) {
1689
- const m = [], C = [], E = Math.min(y.length, b.length);
1690
- for (let B = 0; B < E - 1; B += 1) {
1691
- const x = y[B], T = y[B + 1], R = b[B], w = b[B + 1];
1692
- if (m.push(x), C.push(R), x.hole || T.hole || R.hole || w.hole || x.y == null || T.y == null || R.y == null || w.y == null)
1688
+ function y(m, $) {
1689
+ const M = [], D = [], g = Math.min(m.length, $.length);
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)
1693
1693
  continue;
1694
- const P = x.y - R.y, L = T.y - w.y;
1695
- if (P > 0 && L < 0 || P < 0 && L > 0) {
1696
- const k = P / (P - L), H = d(x.x, T.x, k), S = d(x.y, T.y, k), Y = { x: H, y: S, hole: !1 }, U = { x: H, y: S, hole: !1 };
1697
- m.push(Y), C.push(U);
1694
+ const P = b.y - R.y, N = w.y - T.y;
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 };
1697
+ M.push(k), D.push(U);
1698
1698
  }
1699
1699
  }
1700
- return E > 0 && (m.push(y[E - 1]), C.push(b[E - 1])), { A: m, B: C };
1700
+ return g > 0 && (M.push(m[g - 1]), D.push($[g - 1])), { A: M, B: D };
1701
1701
  }
1702
- function D(y, b) {
1703
- const m = [], C = Math.min(y.length, b.length);
1704
- for (let E = 0; E < C - 1; E += 1) {
1705
- const B = y[E], x = y[E + 1], T = b[E], R = b[E + 1];
1706
- if (B.hole || x.hole || T.hole || R.hole || B.y == null || x.y == null || T.y == null || R.y == null) continue;
1707
- const w = B.y - T.y, P = x.y - R.y, L = w <= 0 ? B : T, k = P <= 0 ? x : R, H = P <= 0 ? R : x, S = w <= 0 ? T : B, Y = w <= 0 ? o : r, U = [
1708
- `M${L.x},${L.y}`,
1709
- `L${k.x},${k.y}`,
1702
+ function x(m, $) {
1703
+ const M = [], D = Math.min(m.length, $.length);
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 = [
1708
+ `M${N.x},${N.y}`,
1709
+ `L${Y.x},${Y.y}`,
1710
1710
  `L${H.x},${H.y}`,
1711
- `L${S.x},${S.y}`,
1711
+ `L${B.x},${B.y}`,
1712
1712
  "Z"
1713
1713
  ].join(" ");
1714
- m.push({ d: U, color: Y });
1714
+ M.push({ d: U, color: k });
1715
1715
  }
1716
- return m;
1716
+ return M;
1717
1717
  }
1718
- function M(y, b) {
1719
- const m = [], C = Math.min(y.length, b.length);
1720
- if (C < 2) return m;
1721
- let E = 0;
1722
- for (; E < C - 1; ) {
1723
- for (; E < C - 1; ) {
1724
- const S = y[E], Y = b[E], U = y[E + 1], j = b[E + 1];
1725
- if (!S.hole && !Y.hole && !U.hole && !j.hole && S.y != null && Y.y != null && U.y != null && j.y != null) break;
1726
- E += 1;
1718
+ function p(m, $) {
1719
+ const M = [], D = Math.min(m.length, $.length);
1720
+ if (D < 2) return M;
1721
+ let g = 0;
1722
+ for (; g < D - 1; ) {
1723
+ for (; g < D - 1; ) {
1724
+ const B = m[g], k = $[g], U = m[g + 1], j = $[g + 1];
1725
+ if (!B.hole && !k.hole && !U.hole && !j.hole && B.y != null && k.y != null && U.y != null && j.y != null) break;
1726
+ g += 1;
1727
1727
  }
1728
- if (E >= C - 1) break;
1729
- const B = E, x = Math.sign(b[E].y - y[E].y || 0) || 1;
1730
- for (E += 1; E < C - 1; ) {
1731
- const S = y[E], Y = b[E], U = y[E + 1], j = b[E + 1];
1732
- if (S.hole || Y.hole || U.hole || j.hole || S.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - S.y || 0) || 1) !== x) break;
1733
- E += 1;
1728
+ if (g >= D - 1) break;
1729
+ const I = g, b = Math.sign($[g].y - m[g].y || 0) || 1;
1730
+ for (g += 1; g < D - 1; ) {
1731
+ const B = m[g], k = $[g], U = m[g + 1], j = $[g + 1];
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
+ g += 1;
1734
1734
  }
1735
- const T = E + 0, R = x >= 0 ? y : b, w = x >= 0 ? b : y, P = x >= 0 ? o : r, L = [];
1736
- for (let S = B; S <= T; S += 1)
1737
- L.push(`${R[S].x},${R[S].y}`);
1738
- const k = [];
1739
- for (let S = T; S >= B; S -= 1)
1740
- k.push(`${w[S].x},${w[S].y}`);
1741
- const H = `M${L[0]} L${L.slice(1).join(" L")} L${k.join(" L")} Z`;
1742
- m.push({ d: H, color: P });
1735
+ const w = g + 0, R = b >= 0 ? m : $, T = b >= 0 ? $ : m, P = b >= 0 ? o : r, N = [];
1736
+ for (let B = I; B <= w; B += 1)
1737
+ N.push(`${R[B].x},${R[B].y}`);
1738
+ const Y = [];
1739
+ for (let B = w; B >= I; B -= 1)
1740
+ Y.push(`${T[B].x},${T[B].y}`);
1741
+ const H = `M${N[0]} L${N.slice(1).join(" L")} L${Y.join(" L")} Z`;
1742
+ M.push({ d: H, color: P });
1743
1743
  }
1744
- return m;
1744
+ return M;
1745
1745
  }
1746
- const $ = g(n, s), I = g(e, c), { A: O, B: N } = A($, I);
1747
- return l ? M(O, N) : D(O, N);
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);
1748
1748
  }
1749
- function te(t, n, e = {}) {
1749
+ function ne(t, n, e = {}) {
1750
1750
  const r = { ...{ bubbles: !0, cancelable: !0, composed: !0 }, ...e }, s = /* @__PURE__ */ new Set([
1751
1751
  "click",
1752
1752
  "mousedown",
@@ -1777,7 +1777,7 @@ function te(t, n, e = {}) {
1777
1777
  else n.startsWith("custom:") ? i = new CustomEvent(n, { ...r, detail: r.detail }) : i = new Event(n, r);
1778
1778
  return t.dispatchEvent(i), i;
1779
1779
  }
1780
- function ne(t, { delta: n = 1, delay: e = 20, disableTransitions: o = !0 } = {}) {
1780
+ function ee(t, { delta: n = 1, delay: e = 20, disableTransitions: o = !0 } = {}) {
1781
1781
  if (!t || !(t instanceof HTMLElement)) return;
1782
1782
  const r = t.style, s = {
1783
1783
  width: r.width,
@@ -1792,90 +1792,134 @@ function ne(t, { delta: n = 1, delay: e = 20, disableTransitions: o = !0 } = {})
1792
1792
  });
1793
1793
  }, e);
1794
1794
  }
1795
+ function wt(t) {
1796
+ let n = null, e = null;
1797
+ return (...o) => {
1798
+ const r = JSON.stringify(o);
1799
+ return r === n || (n = r, e = t(...o)), e;
1800
+ };
1801
+ }
1802
+ const re = wt((t, n, e, o, r, s, c, i) => {
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 }));
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 = [];
1811
+ for (let x = 0; x < o.length; x += 1) {
1812
+ const p = o[x] ?? "";
1813
+ if (!p) continue;
1814
+ const C = s + x - 1 >= 0 ? r[s + x - 1] ?? "" : null;
1815
+ p !== C && l.push(x);
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;
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);
1824
+ }
1825
+ const y = /* @__PURE__ */ new Set();
1826
+ if (d <= 1)
1827
+ y.add(l[Math.round((a - 1) / 2)]);
1828
+ else {
1829
+ const x = (a - 1) / (d - 1);
1830
+ for (let p = 0; p < d; p += 1)
1831
+ y.add(l[Math.round(p * x)]);
1832
+ }
1833
+ return o.map((x, p) => ({
1834
+ text: y.has(p) ? x : "",
1835
+ absoluteIndex: p
1836
+ }));
1837
+ });
1795
1838
  export {
1796
- yn as $,
1797
- Fn as A,
1798
- In as B,
1799
- cn as C,
1800
- Rn as D,
1801
- jt as E,
1802
- On as F,
1803
- Qt as G,
1804
- mn as H,
1805
- Kn as I,
1806
- Nn as J,
1807
- Jt as K,
1808
- xn as L,
1809
- tn as M,
1810
- it as N,
1811
- fn as O,
1812
- dn as P,
1813
- Yn as Q,
1814
- z as R,
1815
- nn as S,
1816
- Vt as T,
1817
- zt as U,
1818
- Dn as V,
1819
- Tn as W,
1820
- An as X,
1821
- Xt as Y,
1822
- _t as Z,
1823
- wn as _,
1824
- Bn as a,
1825
- un as a0,
1826
- Pn as a1,
1827
- Wt as a2,
1828
- Kt as a3,
1829
- kt as a4,
1830
- Qn as a5,
1831
- q as a6,
1832
- $n as a7,
1833
- Sn as a8,
1834
- an as a9,
1835
- Wn as aa,
1836
- jn as ab,
1837
- qn as ac,
1838
- Xn as ad,
1839
- vn as ae,
1840
- te as af,
1841
- ct as ag,
1842
- kn as ah,
1843
- Mn as ai,
1844
- bn as aj,
1845
- Zn as ak,
1846
- Vn as al,
1847
- zn as am,
1848
- Ht as an,
1849
- Yt as ao,
1850
- Gn as ap,
1851
- Un as aq,
1852
- Jn as ar,
1853
- Hn as as,
1854
- ne as at,
1855
- rt as au,
1839
+ bn as $,
1840
+ Xn as A,
1841
+ _t as B,
1842
+ Kn as C,
1843
+ vn as D,
1844
+ Gn as E,
1845
+ te as F,
1846
+ Fn as G,
1847
+ dn as H,
1848
+ hn as I,
1849
+ Kt as J,
1850
+ Mn as K,
1851
+ Wt as L,
1852
+ mn as M,
1853
+ Un as N,
1854
+ Ln as O,
1855
+ sn as P,
1856
+ rn as Q,
1857
+ Sn as R,
1858
+ on as S,
1859
+ kt as T,
1860
+ cn as U,
1861
+ Jt as V,
1862
+ V as W,
1863
+ yn as X,
1864
+ W as Y,
1865
+ wn as Z,
1866
+ qt as _,
1867
+ In as a,
1868
+ Vn as a0,
1869
+ Nn as a1,
1870
+ tn as a2,
1871
+ nn as a3,
1872
+ it as a4,
1873
+ pn as a5,
1874
+ Yn as a6,
1875
+ _ as a7,
1876
+ en as a8,
1877
+ Rn as a9,
1878
+ Tn as aa,
1879
+ jt as ab,
1880
+ Zt as ac,
1881
+ xn as ad,
1882
+ ln as ae,
1883
+ kn as af,
1884
+ Vt as ag,
1885
+ qn as ah,
1886
+ q as ai,
1887
+ Bn as aj,
1888
+ Wn as ak,
1889
+ Jn as al,
1890
+ ne as am,
1891
+ ct as an,
1892
+ 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,
1856
1900
  v as b,
1857
- Zt as c,
1858
- ln as d,
1901
+ Qt as c,
1902
+ fn as d,
1859
1903
  Cn as e,
1860
1904
  En as f,
1861
- pn as g,
1905
+ An as g,
1862
1906
  at as h,
1863
- Ut as i,
1864
- vt as j,
1865
- Gt as k,
1866
- _n as l,
1867
- sn as m,
1868
- Pt as n,
1907
+ Gt as i,
1908
+ Xt as j,
1909
+ vt as k,
1910
+ Zn as l,
1911
+ an as m,
1912
+ un as n,
1869
1913
  gn as o,
1870
1914
  mt as p,
1871
- p as q,
1872
- on as r,
1873
- Ln as s,
1915
+ Yt as q,
1916
+ Ht as r,
1917
+ On as s,
1874
1918
  At as t,
1875
- qt as u,
1876
- V as v,
1877
- K as w,
1878
- rn as x,
1879
- en as y,
1880
- hn as z
1919
+ Pn as u,
1920
+ re as v,
1921
+ Dn as w,
1922
+ A as x,
1923
+ jn as y,
1924
+ zt as z
1881
1925
  };