vue-data-ui 3.2.1 → 3.2.3

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 (158) hide show
  1. package/dist/{Arrow-cyyFTTnm.js → Arrow-Bb0bGghy.js} +1 -1
  2. package/dist/{BaseDraggableDialog-Bf6A6G_f.js → BaseDraggableDialog-CHhZIht2.js} +2 -2
  3. package/dist/{BaseIcon-D2f9w5Z5.js → BaseIcon-Bz-1GQhu.js} +10 -3
  4. package/dist/ColorPicker-B-WUqMoV.js +238 -0
  5. package/dist/{DataTable-xISHA7Pu.js → DataTable-BvjacRbw.js} +10 -10
  6. package/dist/{Legend-_Rv594VS.js → Legend-BpoFJ8fc.js} +2 -2
  7. package/dist/{NonSvgPenAndPaper-DiM4-9ju.js → NonSvgPenAndPaper-l9giyY1Z.js} +3 -3
  8. package/dist/{PackageVersion-BB7joYAK.js → PackageVersion-oBQ8brnx.js} +1 -1
  9. package/dist/{PenAndPaper-CtDMyIvW.js → PenAndPaper-CR8q353D.js} +3 -3
  10. package/dist/{Shape-BDy56-wS.js → Shape-C_C_OmqR.js} +1 -1
  11. package/dist/{Slicer-qM5l8BsU.js → Slicer-BA2GhOmY.js} +68 -68
  12. package/dist/{SparkTooltip-DOFGBHJ-.js → SparkTooltip-Dz1PDE_h.js} +1 -1
  13. package/dist/{Title-BIaVNiUQ.js → Title-C__lOIPC.js} +1 -1
  14. package/dist/{Tooltip-Clf2K3CF.js → Tooltip-BOXz8skU.js} +1 -1
  15. package/dist/{UserOptions-Bn3u4JQu.js → UserOptions-DsTgvAok.js} +2 -2
  16. package/dist/components/arrow.js +1 -1
  17. package/dist/components/vue-ui-3d-bar.js +1 -1
  18. package/dist/components/vue-ui-accordion.js +1 -1
  19. package/dist/components/vue-ui-age-pyramid.js +1 -1
  20. package/dist/components/vue-ui-annotator.js +5 -0
  21. package/dist/components/vue-ui-bullet.js +1 -1
  22. package/dist/components/vue-ui-candlestick.js +1 -1
  23. package/dist/components/vue-ui-carousel-table.js +1 -1
  24. package/dist/components/vue-ui-chestnut.js +1 -1
  25. package/dist/components/vue-ui-chord.js +1 -1
  26. package/dist/components/vue-ui-circle-pack.js +1 -1
  27. package/dist/components/vue-ui-cursor.js +1 -1
  28. package/dist/components/vue-ui-dashboard.js +1 -1
  29. package/dist/components/vue-ui-digits.js +1 -1
  30. package/dist/components/vue-ui-donut-evolution.js +1 -1
  31. package/dist/components/vue-ui-donut.js +1 -1
  32. package/dist/components/vue-ui-dumbbell.js +1 -1
  33. package/dist/components/vue-ui-flow.js +1 -1
  34. package/dist/components/vue-ui-funnel.js +1 -1
  35. package/dist/components/vue-ui-galaxy.js +1 -1
  36. package/dist/components/vue-ui-gauge.js +1 -1
  37. package/dist/components/vue-ui-gizmo.js +1 -1
  38. package/dist/components/vue-ui-heatmap.js +1 -1
  39. package/dist/components/vue-ui-history-plot.js +1 -1
  40. package/dist/components/vue-ui-horizontal-bar.js +1 -1
  41. package/dist/components/vue-ui-icon.js +1 -1
  42. package/dist/components/vue-ui-kpi.js +1 -1
  43. package/dist/components/vue-ui-mini-loader.js +1 -1
  44. package/dist/components/vue-ui-molecule.js +1 -1
  45. package/dist/components/vue-ui-mood-radar.js +1 -1
  46. package/dist/components/vue-ui-nested-donuts.js +1 -1
  47. package/dist/components/vue-ui-onion.js +1 -1
  48. package/dist/components/vue-ui-parallel-coordinate-plot.js +1 -1
  49. package/dist/components/vue-ui-quadrant.js +1 -1
  50. package/dist/components/vue-ui-quick-chart.js +1 -1
  51. package/dist/components/vue-ui-radar.js +1 -1
  52. package/dist/components/vue-ui-rating.js +1 -1
  53. package/dist/components/vue-ui-relation-circle.js +1 -1
  54. package/dist/components/vue-ui-ridgeline.js +1 -1
  55. package/dist/components/vue-ui-rings.js +1 -1
  56. package/dist/components/vue-ui-scatter.js +1 -1
  57. package/dist/components/vue-ui-skeleton.js +1 -1
  58. package/dist/components/vue-ui-smiley.js +1 -1
  59. package/dist/components/vue-ui-spark-trend.js +1 -1
  60. package/dist/components/vue-ui-sparkbar.js +1 -1
  61. package/dist/components/vue-ui-sparkgauge.js +1 -1
  62. package/dist/components/vue-ui-sparkhistogram.js +1 -1
  63. package/dist/components/vue-ui-sparkline.js +1 -1
  64. package/dist/components/vue-ui-sparkstackbar.js +1 -1
  65. package/dist/components/vue-ui-stackbar.js +1 -1
  66. package/dist/components/vue-ui-strip-plot.js +1 -1
  67. package/dist/components/vue-ui-table-heatmap.js +1 -1
  68. package/dist/components/vue-ui-table-sparkline.js +1 -1
  69. package/dist/components/vue-ui-table.js +1 -1
  70. package/dist/components/vue-ui-thermometer.js +1 -1
  71. package/dist/components/vue-ui-timer.js +1 -1
  72. package/dist/components/vue-ui-tiremarks.js +1 -1
  73. package/dist/components/vue-ui-treemap.js +1 -1
  74. package/dist/components/vue-ui-vertical-bar.js +1 -1
  75. package/dist/components/vue-ui-waffle.js +1 -1
  76. package/dist/components/vue-ui-wheel.js +1 -1
  77. package/dist/components/vue-ui-word-cloud.js +1 -1
  78. package/dist/components/vue-ui-world.js +1 -1
  79. package/dist/components/vue-ui-xy-canvas.js +1 -1
  80. package/dist/components/vue-ui-xy.js +1 -1
  81. package/dist/{dom-to-png-CSg_eTqL.js → dom-to-png-BgvOdfyW.js} +1 -1
  82. package/dist/{img-CH7J0fYg.js → img-DjWwQXVS.js} +1 -1
  83. package/dist/{lib-p5pfHmOX.js → lib-BEpWEyMm.js} +351 -368
  84. package/dist/{pdf-Wd2BQz4D.js → pdf-YD0ShN36.js} +1 -1
  85. package/dist/style.css +1 -1
  86. package/dist/types/vue-data-ui.d.ts +24 -3
  87. package/dist/{useAutoSizeLabelsInsideViewbox-VqESrzQg.js → useAutoSizeLabelsInsideViewbox-BVJkib7z.js} +1 -1
  88. package/dist/{useNestedProp-7BbqoAYu.js → useNestedProp-CLD3Gk9S.js} +24 -7
  89. package/dist/{usePrinter-Yeu5jOfm.js → usePrinter-w23K-ezx.js} +2 -2
  90. package/dist/{vue-data-ui-DyqIdFbp.js → vue-data-ui-hSWsJzdK.js} +64 -64
  91. package/dist/vue-data-ui.js +96 -96
  92. package/dist/{vue-ui-3d-bar-BrlJjJDI.js → vue-ui-3d-bar-B45AYk-O.js} +6 -6
  93. package/dist/vue-ui-accordion-Cv7OaVUI.js +78 -0
  94. package/dist/{vue-ui-age-pyramid-BDIMacvP.js → vue-ui-age-pyramid-CJ66TbYc.js} +6 -6
  95. package/dist/vue-ui-annotator-DOO0qej9.js +2959 -0
  96. package/dist/{vue-ui-bullet-CIJw4kXd.js → vue-ui-bullet-D_V1l1Jt.js} +15 -15
  97. package/dist/{vue-ui-candlestick-ZjLiyYpC.js → vue-ui-candlestick-DrkWrGT2.js} +33 -33
  98. package/dist/{vue-ui-carousel-table-_-qalKHa.js → vue-ui-carousel-table-0zk2YkV7.js} +4 -4
  99. package/dist/{vue-ui-chestnut-XkX5ANAN.js → vue-ui-chestnut-CAGkS9Lt.js} +33 -33
  100. package/dist/{vue-ui-chord-B1vFXFgp.js → vue-ui-chord-CHAaUGaZ.js} +54 -54
  101. package/dist/{vue-ui-circle-pack-8J10Q6-I.js → vue-ui-circle-pack-CBySiQot.js} +31 -31
  102. package/dist/{vue-ui-cursor-CQp6B13J.js → vue-ui-cursor-Cbt_0B5t.js} +2 -2
  103. package/dist/{vue-ui-dashboard-CTEYSHVA.js → vue-ui-dashboard-BAOd1hi1.js} +69 -69
  104. package/dist/{vue-ui-digits-B4aZJw8I.js → vue-ui-digits-ChAz3jSS.js} +2 -2
  105. package/dist/{vue-ui-donut-d_XvnIQB.js → vue-ui-donut-BgYaWImK.js} +8 -8
  106. package/dist/{vue-ui-donut-evolution-Bz7fLQru.js → vue-ui-donut-evolution-UWyvIsbE.js} +55 -55
  107. package/dist/{vue-ui-dumbbell-fDl24oQq.js → vue-ui-dumbbell-B5IHRXdS.js} +7 -7
  108. package/dist/{vue-ui-flow-NYnnPoDX.js → vue-ui-flow-DB4sLZG4.js} +63 -63
  109. package/dist/{vue-ui-funnel-BWPIKyW8.js → vue-ui-funnel-COZLSfZ8.js} +37 -37
  110. package/dist/{vue-ui-galaxy-LabscC7n.js → vue-ui-galaxy-S8pIdU78.js} +46 -46
  111. package/dist/{vue-ui-gauge-DXETakZJ.js → vue-ui-gauge-BVaE3IZt.js} +59 -59
  112. package/dist/{vue-ui-gizmo-DZgMzP_e.js → vue-ui-gizmo-BmJ01zdG.js} +3 -3
  113. package/dist/{vue-ui-heatmap-C6Z5wEkZ.js → vue-ui-heatmap-DiAryN8L.js} +8 -8
  114. package/dist/{vue-ui-history-plot-CUGzhcjr.js → vue-ui-history-plot-eeYk4C28.js} +44 -44
  115. package/dist/{vue-ui-kpi-DklTxULP.js → vue-ui-kpi-D7WXGb3K.js} +3 -3
  116. package/dist/{vue-ui-mini-loader-D22vfM5g.js → vue-ui-mini-loader-CKMzFSG5.js} +5 -5
  117. package/dist/{vue-ui-molecule-BAH7NOZP.js → vue-ui-molecule-daI3rmbc.js} +6 -6
  118. package/dist/{vue-ui-mood-radar-DWZKM2u0.js → vue-ui-mood-radar-CawOBU0s.js} +7 -7
  119. package/dist/{vue-ui-nested-donuts-CxUSyTrT.js → vue-ui-nested-donuts-Ci7qxsh6.js} +70 -70
  120. package/dist/{vue-ui-onion-BfzkGOmQ.js → vue-ui-onion-CUkVuewC.js} +8 -8
  121. package/dist/{vue-ui-parallel-coordinate-plot-Dnl2GBps.js → vue-ui-parallel-coordinate-plot-D7UkjkUV.js} +35 -35
  122. package/dist/{vue-ui-quadrant-C_3l8xWm.js → vue-ui-quadrant-B9VZz5d6.js} +8 -8
  123. package/dist/{vue-ui-quick-chart-E6QujRg4.js → vue-ui-quick-chart-BQgH4Aap.js} +55 -55
  124. package/dist/{vue-ui-radar-C_yLoJvR.js → vue-ui-radar-DvZ8XcZC.js} +54 -54
  125. package/dist/{vue-ui-rating-Df02iNbL.js → vue-ui-rating-C0Ubexdn.js} +2 -2
  126. package/dist/{vue-ui-relation-circle-CBIXCwQb.js → vue-ui-relation-circle-Bal5QL_Z.js} +28 -28
  127. package/dist/{vue-ui-ridgeline-euhLcVI0.js → vue-ui-ridgeline-DbRZFJcN.js} +27 -27
  128. package/dist/{vue-ui-rings-BGxjmMDw.js → vue-ui-rings-BJ_Dmy5i.js} +38 -38
  129. package/dist/{vue-ui-scatter-CO4kXKZF.js → vue-ui-scatter-bljL9Bav.js} +50 -50
  130. package/dist/{vue-ui-skeleton-DrCI1AAl.js → vue-ui-skeleton-DZPi12tE.js} +3 -3
  131. package/dist/{vue-ui-smiley-FPLXOxew.js → vue-ui-smiley-DxC8rN5b.js} +2 -2
  132. package/dist/{vue-ui-spark-trend-D4dDN0Sc.js → vue-ui-spark-trend-CqMF642_.js} +22 -22
  133. package/dist/{vue-ui-sparkbar-BEXrQvP0.js → vue-ui-sparkbar-BcyaivMe.js} +3 -3
  134. package/dist/{vue-ui-sparkgauge-Cp4-BTZu.js → vue-ui-sparkgauge-BkIUpzkZ.js} +3 -3
  135. package/dist/{vue-ui-sparkhistogram-BwmKv4YF.js → vue-ui-sparkhistogram-DnPdJk3e.js} +4 -4
  136. package/dist/{vue-ui-sparkline-BXZJ-fUn.js → vue-ui-sparkline-F7h636hU.js} +29 -29
  137. package/dist/{vue-ui-sparkstackbar-Cie2g7gk.js → vue-ui-sparkstackbar-B-Du5D3w.js} +3 -3
  138. package/dist/{vue-ui-stackbar-B137wy4q.js → vue-ui-stackbar-BNOfLkY2.js} +38 -38
  139. package/dist/{vue-ui-strip-plot-Dd1aHpFW.js → vue-ui-strip-plot-DNPM01M_.js} +7 -7
  140. package/dist/{vue-ui-table-CduckNVX.js → vue-ui-table-__ABUm9x.js} +196 -156
  141. package/dist/{vue-ui-table-heatmap-DZAkUjty.js → vue-ui-table-heatmap-D-iueyM0.js} +14 -14
  142. package/dist/{vue-ui-table-sparkline-D6oTAFEO.js → vue-ui-table-sparkline-B5QdvlV7.js} +5 -5
  143. package/dist/{vue-ui-thermometer-BmK3_O7T.js → vue-ui-thermometer-DID_4Y6w.js} +10 -10
  144. package/dist/{vue-ui-timer-BYw6Z01O.js → vue-ui-timer-CjJmpXoF.js} +27 -27
  145. package/dist/{vue-ui-tiremarks-CWiME7zn.js → vue-ui-tiremarks-wDKOTVny.js} +6 -6
  146. package/dist/{vue-ui-treemap-D8PmfJbw.js → vue-ui-treemap-DFo4w0cb.js} +8 -8
  147. package/dist/{vue-ui-vertical-bar-DRC047BC.js → vue-ui-vertical-bar-BEdckhBh.js} +31 -31
  148. package/dist/{vue-ui-waffle-DAaBoyx4.js → vue-ui-waffle-D5i1Q6tF.js} +75 -75
  149. package/dist/vue-ui-wheel-DJlN8joO.js +620 -0
  150. package/dist/{vue-ui-word-cloud-ByKWZtkV.js → vue-ui-word-cloud-B7Y2UrwO.js} +29 -29
  151. package/dist/{vue-ui-world-BezpUr_Q.js → vue-ui-world-DzF8YW_Q.js} +6 -6
  152. package/dist/{vue-ui-xy-DlcJVA22.js → vue-ui-xy-DGln2YgO.js} +900 -822
  153. package/dist/{vue-ui-xy-canvas-DPfxdanR.js → vue-ui-xy-canvas-DF2Ts-g3.js} +10 -10
  154. package/package.json +3 -3
  155. package/dist/ColorPicker-gaAecgEC.js +0 -135
  156. package/dist/vue-ui-accordion-BSrtaPYx.js +0 -76
  157. package/dist/vue-ui-annotator-DGVlVhhy.js +0 -2182
  158. package/dist/vue-ui-wheel-DfNXrsTY.js +0 -587
@@ -7,24 +7,24 @@ const lt = "#COMP# dataset prop is either missing, undefined or empty.", ft = "#
7
7
  notBuildable: Et,
8
8
  attributeWrongValue: gt
9
9
  };
10
- function Yt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a = 0) {
10
+ function wt(t, n, e, s, r, o = 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((A, p) => A + p.value, 0), F = [];
14
+ const h = f.reduce((d, A) => d + A.value, 0), F = [];
15
15
  let E = 0;
16
- for (let A = 0; A < f.length; A++) {
17
- const p = f[A].value, S = f.length === 1, M = S ? 1 : h > 0 ? p / h : 0, D = M * (Math.PI * o), P = (S ? 0.5 : h > 0 ? p / 2 / h : 0.5) * (Math.PI * c), { startX: L, startY: x, endX: m, endY: C, path: b } = Z(
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 * o), 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(
18
18
  [n, e],
19
19
  [s, r],
20
- [E, D],
20
+ [E, $],
21
21
  l,
22
22
  u,
23
23
  c
24
24
  ), g = Z(
25
25
  [n, e],
26
26
  [s - a, r - a],
27
- [E, D],
27
+ [E, $],
28
28
  l,
29
29
  u,
30
30
  c,
@@ -32,23 +32,23 @@ function Yt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a
32
32
  ), B = Z(
33
33
  [n, e],
34
34
  [s * i, r * i],
35
- [E, P],
35
+ [E, O],
36
36
  l,
37
37
  u,
38
38
  c
39
39
  );
40
40
  F.push({
41
- arcSlice: `${b} L ${g.startX} ${g.startY} ${g.path} L ${L} ${x}`,
42
- cx: d(n),
43
- cy: d(e),
44
- ...f[A],
45
- proportion: d(M),
46
- ratio: d(D),
47
- path: b.replaceAll("NaN", "0"),
48
- startX: d(L),
49
- startY: d(x),
50
- endX: d(m),
51
- endY: d(C),
41
+ arcSlice: `${C} L ${g.startX} ${g.startY} ${g.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),
52
52
  separator: {
53
53
  x: g.startX,
54
54
  y: g.startY
@@ -58,7 +58,7 @@ function Yt(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, u = 360, l = 105.25, a
58
58
  y: Number(g.path.split(" ").at(-1))
59
59
  },
60
60
  center: B
61
- }), E += D;
61
+ }), E += $;
62
62
  }
63
63
  return F;
64
64
  }
@@ -68,7 +68,7 @@ function nt([t, n], [e, s]) {
68
68
  function et([[t, n], [e, s]], [r, o]) {
69
69
  return [t * r + n * o, e * r + s * o];
70
70
  }
71
- function At(t) {
71
+ function pt(t) {
72
72
  return [
73
73
  [Math.cos(t), -Math.sin(t)],
74
74
  [Math.sin(t), Math.cos(t)]
@@ -76,7 +76,7 @@ function At(t) {
76
76
  }
77
77
  function Z([t, n], [e, s], [r, o], c, i = 360, u = 2, l = !1) {
78
78
  o = o % (u * Math.PI);
79
- const a = At(c), [f, h] = nt(
79
+ const a = pt(c), [f, h] = nt(
80
80
  et(a, [
81
81
  e * Math.cos(r),
82
82
  s * Math.sin(r)
@@ -88,29 +88,29 @@ function Z([t, n], [e, s], [r, o], c, i = 360, u = 2, l = !1) {
88
88
  s * Math.sin(r + o)
89
89
  ]),
90
90
  [t, n]
91
- ), A = o > Math.PI ? 1 : 0, p = o > 0 ? l ? 0 : 1 : l ? 1 : 0;
91
+ ), d = o > Math.PI ? 1 : 0, A = o > 0 ? l ? 0 : 1 : l ? 1 : 0;
92
92
  return {
93
- startX: d(l ? F : f),
94
- startY: d(l ? E : h),
95
- endX: d(l ? f : F),
96
- endY: d(l ? h : E),
97
- path: `M${d(l ? F : f)} ${d(l ? E : h)} A ${[
98
- d(e),
99
- d(s),
100
- d(c / (u * Math.PI) * i),
101
- d(A),
102
- d(p),
103
- d(l ? f : F),
104
- d(l ? h : E)
93
+ startX: p(l ? F : f),
94
+ startY: p(l ? E : h),
95
+ endX: p(l ? f : F),
96
+ endY: p(l ? h : E),
97
+ path: `M${p(l ? F : f)} ${p(l ? E : h)} A ${[
98
+ p(e),
99
+ p(s),
100
+ p(c / (u * Math.PI) * i),
101
+ p(d),
102
+ p(A),
103
+ p(l ? f : F),
104
+ p(l ? h : E)
105
105
  ].join(" ")}`
106
106
  };
107
107
  }
108
- function pt({ defaultConfig: t, userConfig: n }) {
108
+ function At({ defaultConfig: t, userConfig: n }) {
109
109
  const e = { ...t };
110
110
  return Object.keys(e).forEach((s) => {
111
111
  if (Object.hasOwn(n, s)) {
112
112
  const r = n[s];
113
- r === null ? e[s] = null : ["boolean", "function"].includes(typeof r) ? e[s] = r : ["string", "number"].includes(typeof r) ? ct(r) && (e[s] = r) : Array.isArray(e[s]) ? yt({ userConfig: n, key: s }) && (e[s] = r) : xt({ userConfig: n, key: s }) && (e[s] = pt({
113
+ r === null ? e[s] = null : ["boolean", "function"].includes(typeof r) ? e[s] = r : ["string", "number"].includes(typeof r) ? ct(r) && (e[s] = r) : Array.isArray(e[s]) ? yt({ userConfig: n, key: s }) && (e[s] = r) : xt({ userConfig: n, key: s }) && (e[s] = At({
114
114
  defaultConfig: e[s],
115
115
  userConfig: r
116
116
  }));
@@ -131,13 +131,13 @@ function xt({ userConfig: t, key: n }) {
131
131
  function ct(t) {
132
132
  return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
133
133
  }
134
- function kt(t) {
134
+ function Yt(t) {
135
135
  return ![void 0, NaN, 1 / 0, -1 / 0].includes(t);
136
136
  }
137
- function Ht(t, n = 0) {
137
+ function kt(t, n = 0) {
138
138
  return ct(t) ? t : n;
139
139
  }
140
- function d(t, n = 0) {
140
+ function p(t, n = 0) {
141
141
  return isNaN(t) ? n : t;
142
142
  }
143
143
  const mt = [
@@ -182,23 +182,23 @@ const mt = [
182
182
  "#ce6dbd",
183
183
  "#de9ed6"
184
184
  ];
185
- function Ut(t = "default") {
185
+ function Ht(t = "default") {
186
186
  switch (t) {
187
187
  case "hack":
188
- return X.hack;
188
+ return v.hack;
189
189
  case "zen":
190
- return X.zen;
190
+ return v.zen;
191
191
  case "concrete":
192
- return X.concrete;
192
+ return v.concrete;
193
193
  case "celebration":
194
- return X.celebration;
194
+ return v.celebration;
195
195
  case "celebrationNight":
196
- return X.celebrationNight;
196
+ return v.celebrationNight;
197
197
  default:
198
- return X.default;
198
+ return v.default;
199
199
  }
200
200
  }
201
- const X = {
201
+ const v = {
202
202
  default: mt,
203
203
  celebration: [
204
204
  "#D32F2F",
@@ -367,7 +367,7 @@ function at(t) {
367
367
  const n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, e = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, s = /^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)$/i, r = /^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*([\d.]+))?\)$/i;
368
368
  if (t == null || typeof t == "number" && isNaN(t))
369
369
  return null;
370
- if (t = tt?.(t) ? J(t) : t, t = Nt(t), Array.isArray(t)) {
370
+ if (t = tt?.(t) ? J(t) : t, t = Bt(t), Array.isArray(t)) {
371
371
  const [i, u, l, a = 1] = t;
372
372
  t = `rgba(${i},${u},${l},${a})`;
373
373
  } else if (typeof t == "object")
@@ -419,45 +419,45 @@ function bt(t, n, e, s = 1) {
419
419
  s
420
420
  ];
421
421
  }
422
- function Gt(t, n) {
422
+ function Ut(t, n) {
423
423
  const e = t.length === 9 ? t.substring(0, 7) : t, s = 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
  }), o = ({ r: f, g: h, b: F }) => {
428
428
  f /= 255, h /= 255, F /= 255;
429
- const E = Math.max(f, h, F), A = Math.min(f, h, F);
430
- let p, S, M = (E + A) / 2;
431
- if (E === A)
432
- p = S = 0;
429
+ const E = Math.max(f, h, F), d = Math.min(f, h, F);
430
+ let A, D, M = (E + d) / 2;
431
+ if (E === d)
432
+ A = D = 0;
433
433
  else {
434
- const D = E - A;
435
- switch (S = M > 0.5 ? D / (2 - E - A) : D / (E + A), E) {
434
+ const $ = E - d;
435
+ switch (D = M > 0.5 ? $ / (2 - E - d) : $ / (E + d), E) {
436
436
  case f:
437
- p = (h - F) / D + (h < F ? 6 : 0);
437
+ A = (h - F) / $ + (h < F ? 6 : 0);
438
438
  break;
439
439
  case h:
440
- p = (F - f) / D + 2;
440
+ A = (F - f) / $ + 2;
441
441
  break;
442
442
  case F:
443
- p = (f - h) / D + 4;
443
+ A = (f - h) / $ + 4;
444
444
  break;
445
445
  }
446
- p /= 6;
446
+ A /= 6;
447
447
  }
448
- return { h: p, s: S, l: M };
448
+ return { h: A, s: D, l: M };
449
449
  }, c = ({ h: f, s: h, l: F }) => {
450
- let E, A, p;
450
+ let E, d, A;
451
451
  if (h === 0)
452
- E = A = p = F;
452
+ E = d = A = F;
453
453
  else {
454
- const S = (I, P, L) => (L < 0 && (L += 1), L > 1 && (L -= 1), L < 0.16666666666666666 ? I + (P - I) * 6 * L : L < 0.5 ? P : L < 0.6666666666666666 ? I + (P - I) * (0.6666666666666666 - L) * 6 : I), M = F < 0.5 ? F * (1 + h) : F + h - F * h, D = 2 * F - M;
455
- E = S(D, M, f + 1 / 3), A = S(D, M, f), p = S(D, M, f - 1 / 3);
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
+ E = D($, M, f + 1 / 3), d = D($, M, f), A = D($, M, f - 1 / 3);
456
456
  }
457
457
  return {
458
458
  r: Math.round(E * 255),
459
- g: Math.round(A * 255),
460
- b: Math.round(p * 255)
459
+ g: Math.round(d * 255),
460
+ b: Math.round(A * 255)
461
461
  };
462
462
  }, i = r(e || "#000000"), u = o(i);
463
463
  u.h += n, u.h = (u.h + 1) % 1;
@@ -483,7 +483,7 @@ function Ct({
483
483
  coordinates: u
484
484
  };
485
485
  }
486
- function Xt({
486
+ function Gt({
487
487
  plot: t,
488
488
  radius: n,
489
489
  sides: e,
@@ -527,7 +527,7 @@ function vt({
527
527
  outerRadius: u
528
528
  });
529
529
  }
530
- function jt({ series: t }) {
530
+ function Xt({ series: t }) {
531
531
  if (!Array.isArray(t) || t.length === 0) return "";
532
532
  const n = Array.from(
533
533
  new Map(
@@ -562,10 +562,10 @@ function jt({ series: t }) {
562
562
  l += `${Math.round(a.x)},${Math.round(a.y)} `;
563
563
  return l;
564
564
  }
565
- function v(t) {
565
+ function X(t) {
566
566
  return t * Math.PI / 180;
567
567
  }
568
- function Kt(t) {
568
+ function jt(t) {
569
569
  if (t) {
570
570
  let n = t, e = 1;
571
571
  if (n.startsWith("rgba")) {
@@ -613,49 +613,32 @@ function q(t, n = /* @__PURE__ */ new WeakSet()) {
613
613
  }
614
614
  return e;
615
615
  }
616
- function Wt(t) {
617
- let n, e, s, r;
618
- const o = t.length;
619
- if (!t || t.length === 0)
620
- return {
621
- x1: 0,
622
- y1: 0,
623
- x2: 0,
624
- y2: 0,
625
- slope: 0,
626
- trend: 0
627
- };
628
- let c = 0, i = 0, u = 0, l = 0;
629
- for (const { x: F, y: E } of t)
630
- c += F, i += E, u += F * E, l += F * F;
631
- const a = (o * u - c * i) / (o * l - c * c), f = (i - a * c) / o;
632
- n = t[0].x, s = t[o - 1].x, e = a * n + f, r = a * s + f;
633
- const h = $t(t.map((F) => F.value));
634
- return { x1: n, y1: e, x2: s, y2: r, slope: a, trend: h };
635
- }
636
- function $t(t) {
637
- const n = t[0], s = t[t.length - 1] - n;
638
- let r = 0;
639
- for (let c = 1; c < t.length; c++) {
640
- const i = Math.abs(t[c] - t[c - 1]);
641
- r += i;
642
- }
643
- const o = s / r;
644
- return isNaN(o) ? 0 : o;
616
+ function Kt(t) {
617
+ const n = t?.length ?? 0;
618
+ if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
619
+ let e = 0, s = 0, r = 0, o = 0;
620
+ for (const { x: m, y: C } of t)
621
+ e += m, s += C, r += m * C, o += m * m;
622
+ const c = n * o - e * e || 1, i = (n * r - e * s) / c, u = (s - i * e) / n, l = t[0].x, a = t[n - 1].x, f = i * l + u, h = i * a + u;
623
+ let F = 0, E = 0, d = 0, A = 0;
624
+ for (let m = 0; m < n; m += 1)
625
+ F += m, E += t[m].value, d += m * t[m].value, A += m * m;
626
+ const D = n * A - F * F || 1, M = (n * d - F * E) / D, $ = (E - M * F) / n, I = $, O = M * (n - 1) + $, y = Math.max(Math.abs(I), Math.abs(E / n), Math.abs(O), 1e-9), b = (O - I) / y;
627
+ return { x1: l, y1: f, x2: a, y2: h, slope: i, trend: b };
645
628
  }
646
- function Vt(t) {
629
+ function Wt(t) {
647
630
  const n = Math.floor(t.length / 2), e = [...t].sort((s, r) => s - r);
648
631
  return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
649
632
  }
650
- function _t(t) {
633
+ function Vt(t) {
651
634
  let n = [];
652
635
  for (let e = 0; e < t.length; e += 1)
653
- n.push(`${d(t[e].x)},${d(t[e].y)} `);
636
+ n.push(`${p(t[e].x)},${p(t[e].y)} `);
654
637
  return n.join(" ").trim();
655
638
  }
656
- function zt(t) {
639
+ function _t(t) {
657
640
  if (t.length < 2) return "0,0";
658
- const n = t.length - 1, e = [`${d(t[0].x)},${d(t[0].y)}`], s = [], r = [], o = [], c = [];
641
+ const n = t.length - 1, e = [`${p(t[0].x)},${p(t[0].y)}`], s = [], r = [], o = [], c = [];
659
642
  for (let i = 0; i < n; i += 1)
660
643
  s[i] = t[i + 1].x - t[i].x, r[i] = t[i + 1].y - t[i].y, o[i] = r[i] / s[i];
661
644
  c[0] = o[0], c[n] = o[n - 1];
@@ -667,12 +650,12 @@ function zt(t) {
667
650
  c[i] = u;
668
651
  }
669
652
  for (let i = 0; i < n; i += 1) {
670
- 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], E = u + (a - u) / 3, A = l + h * (a - u) / 3, p = a - (a - u) / 3, S = f - F * (a - u) / 3;
671
- e.push(`C ${d(E)},${d(A)} ${d(p)},${d(S)} ${d(a)},${d(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], E = 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(E)},${p(d)} ${p(A)},${p(D)} ${p(a)},${p(f)}`);
672
655
  }
673
656
  return e.join(" ");
674
657
  }
675
- function Zt(t, n = 0.2) {
658
+ function zt(t, n = 0.2) {
676
659
  function e(c, i) {
677
660
  const u = i.x - c.x, l = i.y - c.y;
678
661
  return {
@@ -681,19 +664,19 @@ function Zt(t, n = 0.2) {
681
664
  };
682
665
  }
683
666
  function s(c, i, u, l) {
684
- const h = e(i || c, u || c), F = h.angle + (l ? Math.PI : 0), E = h.length * n, A = c.x + Math.cos(F) * E, p = c.y + Math.sin(F) * E;
685
- return { x: A, y: p };
667
+ const h = e(i || c, u || c), F = h.angle + (l ? Math.PI : 0), E = h.length * n, d = c.x + Math.cos(F) * E, A = c.y + Math.sin(F) * E;
668
+ return { x: d, y: A };
686
669
  }
687
670
  function r(c, i, u) {
688
671
  const l = s(u[i - 1], u[i - 2], c), a = s(c, u[i - 1], u[i + 1], !0);
689
- return `C ${d(l.x)},${d(l.y)} ${d(a.x)},${d(a.y)} ${d(c.x)},${d(c.y)}`;
672
+ return `C ${p(l.x)},${p(l.y)} ${p(a.x)},${p(a.y)} ${p(c.x)},${p(c.y)}`;
690
673
  }
691
674
  return t.filter((c) => !!c).reduce(
692
- (c, i, u, l) => u === 0 ? `${d(i.x)},${d(i.y)} ` : `${c} ${r(i, u, l)} `,
675
+ (c, i, u, l) => u === 0 ? `${p(i.x)},${p(i.y)} ` : `${c} ${r(i, u, l)} `,
693
676
  ""
694
677
  );
695
678
  }
696
- function Qt() {
679
+ function Zt() {
697
680
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
698
681
  const n = Math.random() * 16 | 0;
699
682
  return (t == "x" ? n : n & 3 | 8).toString(16);
@@ -706,7 +689,7 @@ function W(t, n = !1, e = 16, s = !1) {
706
689
  function V(t, n = 16, e = 16) {
707
690
  return t.center.endY > t.cy ? t.center.endY + e : t.center.endY < t.cy ? t.center.endY - n : t.center.endY;
708
691
  }
709
- function qt({
692
+ function Qt({
710
693
  initX: t,
711
694
  initY: n,
712
695
  offset: e,
@@ -719,7 +702,7 @@ function qt({
719
702
  y: n + e * Math.sin(o)
720
703
  };
721
704
  }
722
- function Dt(t) {
705
+ function $t(t) {
723
706
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
724
707
  n.setAttribute("d", t);
725
708
  const e = n.getTotalLength();
@@ -735,20 +718,20 @@ function Dt(t) {
735
718
  const { x: i, y: u } = n.getPointAtLength(o);
736
719
  return { x: i, y: u };
737
720
  }
738
- function Jt(t, n = !1, e = 16, s = 16, r = !1, o = !1, c = 0, i = 12, u = !1) {
739
- const { x: l } = Dt(t.path), a = `${W(t).x},${V(t, e, s) - 4} `;
721
+ function qt(t, n = !1, e = 16, s = 16, r = !1, o = !1, c = 0, i = 12, u = !1) {
722
+ const { x: l } = $t(t.path), a = `${W(t).x},${V(t, e, s) - 4} `;
740
723
  let f = "", h, F;
741
724
  l > t.cx ? (h = W(t).x - i, F = V(t, e, s) - 4, f = `${h},${F}`) : l < t.cx ? (h = W(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`) : (h = W(t).x + i, F = V(t, e, s) - 4, f = `${h},${F}`);
742
725
  const E = ` ${t.center.endX},${t.center.endY}`;
743
726
  return u ? o ? `M${f} Q${f} ${E}` : `M${a} Q${f} ${E}` : `M${o ? "" : a}${f}${E}`;
744
727
  }
745
- function tn(t) {
728
+ function Jt(t) {
746
729
  return ![null, void 0, NaN].includes(t);
747
730
  }
748
- function nn(t, n) {
731
+ function tn(t, n) {
749
732
  return [...t].map((e) => e[n]).reduce((e, s) => e + s, 0);
750
733
  }
751
- function en(t, n = !0, e = !1) {
734
+ function nn(t, n = !0, e = !1) {
752
735
  if (!t.length) return "M0,0";
753
736
  let s = "";
754
737
  return t.forEach((r) => {
@@ -756,15 +739,15 @@ function en(t, n = !0, e = !1) {
756
739
  s += `${r.x},${r.y} `;
757
740
  }), e ? s.trim() : `M${s}${n ? "Z" : ""}`;
758
741
  }
759
- function rn({ csvContent: t, title: n = "vue-data-ui" }) {
742
+ function en({ csvContent: t, title: n = "vue-data-ui" }) {
760
743
  const e = encodeURI(t), s = document.createElement("a");
761
744
  s.setAttribute("href", e), s.setAttribute("download", `${n}.csv`), document.body.appendChild(s), s.click(), s.remove(), window.URL.revokeObjectURL(e);
762
745
  }
763
- function sn(t) {
746
+ function rn(t) {
764
747
  return `data:text/csv;charset=utf-8,${t.map((n) => n.join(",")).join(`
765
748
  `)}`;
766
749
  }
767
- function on(t, n) {
750
+ function sn(t, n) {
768
751
  if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
769
752
  return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
770
753
  let e = t.replace("#", "");
@@ -776,7 +759,7 @@ function on(t, n) {
776
759
  }
777
760
  return l;
778
761
  }
779
- function cn(t, n) {
762
+ function on(t, n) {
780
763
  if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
781
764
  return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
782
765
  let e = t.replace("#", "");
@@ -793,7 +776,7 @@ function z(t, n) {
793
776
  let r;
794
777
  return n ? s < 1.5 ? r = 1 : s < 3 ? r = 2 : s < 7 ? r = 5 : r = 10 : s <= 1 ? r = 1 : s <= 2 ? r = 2 : s <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
795
778
  }
796
- function an(t, n, e, s = !1) {
779
+ function cn(t, n, e, s = !1) {
797
780
  const r = s ? n - t : z(n - t, !1), o = s ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o, u = [];
798
781
  for (let l = c; l <= i; l += o)
799
782
  u.push(l);
@@ -804,7 +787,7 @@ function an(t, n, e, s = !1) {
804
787
  ticks: u
805
788
  };
806
789
  }
807
- function un(t, n, e, s = !1) {
790
+ function an(t, n, e, s = !1) {
808
791
  const r = s ? n - t : z(n - t, !1), o = s ? r / (e - 1) : z(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o;
809
792
  let u = [], l = c;
810
793
  for (; l <= i; )
@@ -816,17 +799,17 @@ function un(t, n, e, s = !1) {
816
799
  ticks: u
817
800
  };
818
801
  }
819
- function ln(t, n, e, s, r) {
802
+ function un(t, n, e, s, r) {
820
803
  const o = (h) => {
821
- let F = parseInt(h.substring(1, 3), 16), E = parseInt(h.substring(3, 5), 16), A = parseInt(h.substring(5, 7), 16), p = 1;
822
- return h.length === 9 && (p = parseInt(h.substring(7, 9), 16) / 255), { r: F, g: E, b: A, a: p };
823
- }, c = ({ r: h, g: F, b: E, a: A }) => {
824
- const p = (M) => M.toString(16).padStart(2, "0"), S = `#${p(h)}${p(F)}${p(E)}`;
825
- if (A !== 1) {
826
- const M = Math.round(A * 255).toString(16).padStart(2, "0");
827
- return S + M;
804
+ let F = parseInt(h.substring(1, 3), 16), E = 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: E, b: d, a: A };
806
+ }, c = ({ r: h, g: F, b: E, a: d }) => {
807
+ const A = (M) => M.toString(16).padStart(2, "0"), D = `#${A(h)}${A(F)}${A(E)}`;
808
+ if (d !== 1) {
809
+ const M = Math.round(d * 255).toString(16).padStart(2, "0");
810
+ return D + M;
828
811
  }
829
- return S;
812
+ return D;
830
813
  }, i = o(t), u = o(n);
831
814
  r = Math.min(Math.max(r, e), s);
832
815
  const l = (r - e) / (s - e), a = {
@@ -836,11 +819,11 @@ function ln(t, n, e, s, r) {
836
819
  }, f = i.a + (u.a - i.a) * l;
837
820
  return c({ ...a, a: f });
838
821
  }
839
- function fn({ p: t = "", v: n, s: e = "", r: s = 0, space: r = !1, isAnimating: o = !1, regex: c = /[^%]/g, replacement: i = "-", locale: u = null }) {
822
+ function ln({ p: t = "", v: n, s: e = "", r: s = 0, space: r = !1, isAnimating: o = !1, regex: c = /[^%]/g, replacement: i = "-", locale: u = null }) {
840
823
  const l = u ? Number(Number(n).toFixed(s)).toLocaleString(u) : Number(Number(n).toFixed(s)).toLocaleString(), a = l === 1 / 0 ? "∞" : l === -1 / 0 ? "-∞" : l, f = `${t ?? ""}${r ? " " : ""}${[void 0, null].includes(n) ? "-" : a}${r ? " " : ""}${e ?? ""}`;
841
824
  return o ? f.replace(c, i) : f;
842
825
  }
843
- function hn({ source: t, length: n = 3 }) {
826
+ function fn({ source: t, length: n = 3 }) {
844
827
  if (!t && t !== 0)
845
828
  return "";
846
829
  t = String(t);
@@ -856,16 +839,16 @@ function hn({ source: t, length: n = 3 }) {
856
839
  }), s.join().replaceAll(",", "").toUpperCase();
857
840
  }
858
841
  }
859
- function Fn(t) {
842
+ function hn(t) {
860
843
  return !!t && typeof t == "function";
861
844
  }
862
- function En(t) {
845
+ function Fn(t) {
863
846
  return typeof t.apply(null, arguments) == "string";
864
847
  }
865
- function gn(t) {
848
+ function En(t) {
866
849
  return Array.isArray(t) ? t.length === 0 : t ? Object.keys(t).length === 0 : !0;
867
850
  }
868
- function dn({ componentName: t, type: n, property: e = "", index: s = "", key: r = "", warn: o = !0, debug: c = !0 }) {
851
+ function gn({ componentName: t, type: n, property: e = "", index: s = "", key: r = "", warn: o = !0, debug: c = !0 }) {
869
852
  if (!c) return;
870
853
  const i = `
871
854
  > ${dt[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", s).replace("#KEY#", r)}
@@ -875,7 +858,7 @@ function dn({ componentName: t, type: n, property: e = "", index: s = "", key: r
875
858
  else
876
859
  throw new Error(i);
877
860
  }
878
- function Rt({ points: t, a: n, b: e, angleStep: s, startX: r, startY: o }) {
861
+ function Dt({ points: t, a: n, b: e, angleStep: s, startX: r, startY: o }) {
879
862
  const c = [];
880
863
  for (let i = 0; i < t; i++) {
881
864
  const u = s * i, l = n + e * u, a = l * Math.cos(u) + r, f = l * Math.sin(u) + o;
@@ -889,7 +872,7 @@ function St(t) {
889
872
  o.x < n && (n = o.x), o.y < e && (e = o.y), o.x > s && (s = o.x), o.y > r && (r = o.y);
890
873
  return { minX: n, minY: e, maxX: s, maxY: r, width: s - n || 1, height: r - e || 1 };
891
874
  }
892
- function Bt(t) {
875
+ function Rt(t) {
893
876
  if (!t.length) return "";
894
877
  let n = `M${t[0].x} ${t[0].y}`;
895
878
  for (let e = 1; e < t.length - 2; e += 2) {
@@ -898,7 +881,7 @@ function Bt(t) {
898
881
  }
899
882
  return n;
900
883
  }
901
- function An({
884
+ function dn({
902
885
  maxPoints: t,
903
886
  a: n = 6,
904
887
  b: e = 6,
@@ -909,10 +892,10 @@ function An({
909
892
  boxHeight: i,
910
893
  padding: u = 12
911
894
  }) {
912
- const l = Rt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: A } = St(l), p = (a + h) / 2, S = (f + F) / 2, M = Math.max(1, c - 2 * u), D = Math.max(1, i - 2 * u), I = Math.min(M / E, D / A), P = r - p * I, L = o - S * I;
913
- return function(m) {
914
- const C = Math.max(2, Math.min(Math.round(m), l.length)), b = l.slice(0, C).map((g) => ({ x: g.x * I + P, y: g.y * I + L }));
915
- return Bt(b);
895
+ const l = Dt({ points: t, a: n, b: e, angleStep: s, startX: 0, startY: 0 }), { minX: a, minY: f, maxX: h, maxY: F, width: E, height: d } = St(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 / E, $ / d), O = r - A * I, N = o - 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((g) => ({ x: g.x * I + O, y: g.y * I + N }));
898
+ return Rt(C);
916
899
  };
917
900
  }
918
901
  function pn({ datasetObject: t, requiredAttributes: n }) {
@@ -1064,7 +1047,7 @@ const ot = {
1064
1047
  YELLOWGREEN: "#9ACD32",
1065
1048
  REBECCAPURPLE: "#663399"
1066
1049
  };
1067
- function Nt(t) {
1050
+ function Bt(t) {
1068
1051
  const n = tt?.(t) ? J(t) : t;
1069
1052
  if (typeof n != "string") return n;
1070
1053
  const e = n.trim();
@@ -1073,8 +1056,8 @@ function Nt(t) {
1073
1056
  const s = e.toUpperCase(), r = s.replace(/GRAY/g, "GREY");
1074
1057
  return ot[s] || ot[r] || e;
1075
1058
  }
1076
- const yn = "http://www.w3.org/2000/svg";
1077
- function xn(t) {
1059
+ const An = "http://www.w3.org/2000/svg";
1060
+ function yn(t) {
1078
1061
  if (t.length < 2)
1079
1062
  return 0;
1080
1063
  let n = 0, e = 0;
@@ -1087,17 +1070,17 @@ function xn(t) {
1087
1070
  }
1088
1071
  return e === 0 ? 0 : n / e;
1089
1072
  }
1090
- function mn({ content: t, fontSize: n, fill: e, x: s, y: r }) {
1073
+ function xn({ content: t, fontSize: n, fill: e, x: s, y: r }) {
1091
1074
  return t.split(`
1092
1075
  `).map(
1093
1076
  (c, i) => `<tspan x="${s}" y="${r + i * n}" fill="${e}">${c}</tspan>`
1094
1077
  ).join("");
1095
1078
  }
1096
- function bn({ content: t, fontSize: n, fill: e, x: s }) {
1079
+ function mn({ content: t, fontSize: n, fill: e, x: s }) {
1097
1080
  return t.split(`
1098
1081
  `).map((o, c) => `<tspan x="${s}" dy="${c === 0 ? 0 : n}" fill="${e}">${o}</tspan>`).join("");
1099
1082
  }
1100
- function Cn({
1083
+ function bn({
1101
1084
  content: t,
1102
1085
  fontSize: n,
1103
1086
  fill: e,
@@ -1117,10 +1100,10 @@ function Cn({
1117
1100
  i += f;
1118
1101
  }), i;
1119
1102
  }
1120
- function Mn(t) {
1103
+ function Cn(t) {
1121
1104
  return t.length ? t.map((n) => at(n)) : [];
1122
1105
  }
1123
- function $n(t, n = null) {
1106
+ function Mn(t, n = null) {
1124
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), {});
1125
1108
  return Object.keys(c).map((i) => {
1126
1109
  let u = i;
@@ -1130,7 +1113,7 @@ function $n(t, n = null) {
1130
1113
  };
1131
1114
  });
1132
1115
  }
1133
- function Dn(t) {
1116
+ function $n(t) {
1134
1117
  let n = t.reduce((i, u) => i + (u.stackRatio || 0), 0), e = t.filter((i) => i.stackRatio === void 0).length, s = 1 - n, r = e > 0 ? s / e : 0, o = t.map((i) => ({
1135
1118
  ...i,
1136
1119
  stackRatio: i.stackRatio !== void 0 ? i.stackRatio : r
@@ -1141,16 +1124,16 @@ function Dn(t) {
1141
1124
  cumulatedStackRatio: c
1142
1125
  })), o;
1143
1126
  }
1144
- function Rn(t) {
1127
+ function Dn(t) {
1145
1128
  function n(l, a, f, h) {
1146
1129
  const F = f - l, E = h - a;
1147
1130
  return Math.sqrt(F * F + E * E);
1148
1131
  }
1149
1132
  function e(l, a, f, h) {
1150
- let E = 0, A = l.x, p = l.y;
1151
- for (let S = 1; S <= 100; S += 1) {
1152
- const M = S / 100, D = 1 - M, I = D * D, P = M * M, L = I * D * l.x + 3 * I * M * a.x + 3 * D * P * f.x + P * M * h.x, x = I * D * l.y + 3 * I * M * a.y + 3 * D * P * f.y + P * M * h.y;
1153
- E += n(A, p, L, x), A = L, p = x;
1133
+ let E = 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
+ E += n(d, A, N, y), d = N, A = y;
1154
1137
  }
1155
1138
  return E;
1156
1139
  }
@@ -1202,7 +1185,7 @@ function Sn({
1202
1185
  const c = t / (n / e);
1203
1186
  return c > o ? o : c < s ? r : c;
1204
1187
  }
1205
- function Bn(t) {
1188
+ function Rn(t) {
1206
1189
  return t.reduce((n, e) => (e.series.forEach((s, r) => {
1207
1190
  ![void 0, null, 1 / 0, -1 / 0].includes(s) && !isNaN(s) && (n[r] = (n[r] || 0) + s);
1208
1191
  }), n), []);
@@ -1220,14 +1203,14 @@ function It(t, { value: n, config: e }) {
1220
1203
  value: r
1221
1204
  };
1222
1205
  }
1223
- function Nn(t, n, e, s) {
1206
+ function Bn(t, n, e, s) {
1224
1207
  const { isValid: r, value: o } = It(t, { value: n, config: s });
1225
1208
  return r ? o : e;
1226
1209
  }
1227
1210
  function In(t, n) {
1228
1211
  return n.split(".").every((e) => t !== null && typeof t == "object" && e in t ? (t = t[e], !0) : !1);
1229
1212
  }
1230
- function Ln(t, n = []) {
1213
+ function Nn(t, n = []) {
1231
1214
  function e(r) {
1232
1215
  return typeof r == "string" && isNaN(Number(r)) || typeof r == "number" && isFinite(r) ? r : 0;
1233
1216
  }
@@ -1275,26 +1258,26 @@ function Ln(t, n = []) {
1275
1258
  }
1276
1259
  return s(t);
1277
1260
  }
1278
- function On(t, n = 100) {
1261
+ function Ln(t, n = 100) {
1279
1262
  return t.length === 9 ? t.substring(0, 7) + rt[n] : t + rt[n];
1280
1263
  }
1281
- function Tn({ series: t, center: n, maxRadius: e, hasGhost: s = !1 }) {
1264
+ function On({ series: t, center: n, maxRadius: e, hasGhost: s = !1 }) {
1282
1265
  const o = 360 / (t.length - (s ? 1 : 0));
1283
1266
  return t.map((i, u) => {
1284
- const a = i * e, f = u * o, h = f + o, F = f + o / 2, E = v(f) - v(90), A = v(h) - v(90), p = v(F) - v(90), S = n.x + a * Math.cos(E), M = n.y + a * Math.sin(E), D = n.x + a * Math.cos(A), I = n.y + a * Math.sin(A), P = n.x + a * Math.cos(p), L = n.y + a * Math.sin(p);
1267
+ const a = i * e, f = u * o, h = f + o, F = f + o / 2, E = X(f) - X(90), d = X(h) - X(90), A = X(F) - X(90), D = n.x + a * Math.cos(E), M = n.y + a * Math.sin(E), $ = 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);
1285
1268
  return {
1286
1269
  path: `
1287
1270
  M ${n.x} ${n.y}
1288
- L ${S} ${M}
1289
- A ${a} ${a} 0 0 1 ${D} ${I}
1271
+ L ${D} ${M}
1272
+ A ${a} ${a} 0 0 1 ${$} ${I}
1290
1273
  Z
1291
1274
  `.trim(),
1292
- middlePoint: { x: P, y: L },
1275
+ middlePoint: { x: O, y: N },
1293
1276
  radius: a
1294
1277
  };
1295
1278
  });
1296
1279
  }
1297
- function Pn({ data: t, threshold: n }) {
1280
+ function Tn({ data: t, threshold: n }) {
1298
1281
  if (n >= t.length || n < 3)
1299
1282
  return t;
1300
1283
  const e = [], s = (t.length - 2) / (n - 2);
@@ -1317,7 +1300,7 @@ function Pn({ data: t, threshold: n }) {
1317
1300
  }
1318
1301
  return e.push(t[t.length - 1]), e;
1319
1302
  }
1320
- function wn({ data: t, threshold: n }) {
1303
+ function Pn({ data: t, threshold: n }) {
1321
1304
  if (n >= t.length || n < 3)
1322
1305
  return t;
1323
1306
  const e = [], s = (t.length - 2) / (n - 2);
@@ -1334,7 +1317,7 @@ function wn({ data: t, threshold: n }) {
1334
1317
  }
1335
1318
  return e.push(t[t.length - 1]), e;
1336
1319
  }
1337
- function Yn({ data: t, threshold: n, key: e = "value" }) {
1320
+ function wn({ data: t, threshold: n, key: e = "value" }) {
1338
1321
  if (n >= t.length || n < 3)
1339
1322
  return t;
1340
1323
  const s = [], r = (t.length - 2) / (n - 2);
@@ -1351,12 +1334,12 @@ function Yn({ data: t, threshold: n, key: e = "value" }) {
1351
1334
  }
1352
1335
  return s.push(t[t.length - 1]), s;
1353
1336
  }
1354
- function kn({ radius: t, centerX: n, centerY: e, percentage: s }) {
1337
+ function Yn({ radius: t, centerX: n, centerY: e, percentage: s }) {
1355
1338
  s = Math.max(0, Math.min(1, s));
1356
1339
  const r = s * Math.PI, o = n - t, c = e, i = n - t * Math.cos(r), u = e - t * Math.sin(r);
1357
1340
  return `M ${n},${e} L ${o},${c} A ${t},${t} 0 0 1 ${i},${u} Z`.trim();
1358
1341
  }
1359
- function Hn({ svgElement: t, x: n, y: e, offsetY: s = 0, element: r }) {
1342
+ function kn({ svgElement: t, x: n, y: e, offsetY: s = 0, element: r }) {
1360
1343
  if (!t || !r) return { top: 0, left: 0 };
1361
1344
  const o = t.createSVGPoint();
1362
1345
  o.x = n, o.y = e;
@@ -1367,7 +1350,7 @@ function Hn({ svgElement: t, x: n, y: e, offsetY: s = 0, element: r }) {
1367
1350
  left: c.x + l
1368
1351
  };
1369
1352
  }
1370
- function Un({ svgElement: t, x: n, y: e, element: s, position: r }) {
1353
+ function Hn({ svgElement: t, x: n, y: e, element: s, position: r }) {
1371
1354
  if (!t || !s) return { top: 0, left: 0 };
1372
1355
  const o = t.createSVGPoint();
1373
1356
  o.x = n, o.y = e;
@@ -1404,14 +1387,14 @@ function _(t) {
1404
1387
  Object.prototype.hasOwnProperty.call(t, e) && (n[e] = _(t[e]));
1405
1388
  return n;
1406
1389
  }
1407
- function Lt(t) {
1390
+ function Nt(t) {
1408
1391
  const n = [];
1409
1392
  let e = [];
1410
1393
  for (const s of t)
1411
1394
  !s || s.value == null || Number.isNaN(s.x) || Number.isNaN(s.y) ? (e.length && n.push(e), e = []) : e.push(s);
1412
1395
  return e.length && n.push(e), n;
1413
1396
  }
1414
- function Gn(t, n) {
1397
+ function Un(t, n) {
1415
1398
  const e = t.filter((c) => !!c);
1416
1399
  if (!e[0]) return [-10, -10, "", -10, -10].toString();
1417
1400
  const s = { x: e[0].x, y: n }, r = { x: e.at(-1).x, y: n }, o = [];
@@ -1419,9 +1402,9 @@ function Gn(t, n) {
1419
1402
  o.push(`${c.x},${c.y} `);
1420
1403
  }), [s.x, s.y, ...o, r.x, r.y].toString();
1421
1404
  }
1422
- function Xn(t, n) {
1405
+ function Gn(t, n) {
1423
1406
  if (!t[0]) return [-10, -10, "", -10, -10].toString();
1424
- const e = Lt(t);
1407
+ const e = Nt(t);
1425
1408
  return e.length ? e.map((s) => {
1426
1409
  const r = { x: s[0].x, y: n }, o = { x: s.at(-1).x, y: n }, c = [];
1427
1410
  return s.forEach((i) => {
@@ -1429,7 +1412,7 @@ function Xn(t, n) {
1429
1412
  }), [r.x, r.y, ...c, o.x, o.y].toString();
1430
1413
  }).join(";") : "";
1431
1414
  }
1432
- function Ot(t) {
1415
+ function Lt(t) {
1433
1416
  const n = [];
1434
1417
  let e = [];
1435
1418
  for (const s of t)
@@ -1443,7 +1426,7 @@ function vn(t) {
1443
1426
  const o = t[r];
1444
1427
  if (!s(o))
1445
1428
  continue;
1446
- const c = `${d(o.x)},${d(o.y)}`;
1429
+ const c = `${p(o.x)},${p(o.y)}`;
1447
1430
  if (!e)
1448
1431
  n += c, e = !0;
1449
1432
  else {
@@ -1454,8 +1437,8 @@ function vn(t) {
1454
1437
  }
1455
1438
  return n.trim();
1456
1439
  }
1457
- function jn(t) {
1458
- const n = Ot(t);
1440
+ function Xn(t) {
1441
+ const n = Lt(t);
1459
1442
  if (!n.length) return "";
1460
1443
  let e = "";
1461
1444
  for (const [s, r] of n.entries()) {
@@ -1471,15 +1454,15 @@ function jn(t) {
1471
1454
  const f = 2 * u[a - 1] * u[a] / (u[a - 1] + u[a]);
1472
1455
  l[a] = f;
1473
1456
  }
1474
- e += `${s === 0 ? "" : "M"}${d(r[0].x)},${d(r[0].y)} `;
1457
+ e += `${s === 0 ? "" : "M"}${p(r[0].x)},${p(r[0].y)} `;
1475
1458
  for (let a = 0; a < o; a += 1) {
1476
- const f = r[a].x, h = r[a].y, F = r[a + 1].x, E = r[a + 1].y, A = l[a], p = l[a + 1], S = f + (F - f) / 3, M = h + A * (F - f) / 3, D = F - (F - f) / 3, I = E - p * (F - f) / 3;
1477
- e += `C${d(S)},${d(M)} ${d(D)},${d(I)} ${d(F)},${d(E)} `;
1459
+ const f = r[a].x, h = r[a].y, F = r[a + 1].x, E = 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 = E - A * (F - f) / 3;
1460
+ e += `C${p(D)},${p(M)} ${p($)},${p(I)} ${p(F)},${p(E)} `;
1478
1461
  }
1479
1462
  }
1480
1463
  return e.trim();
1481
1464
  }
1482
- function Kn(t, n, e = !1, s = !0) {
1465
+ function jn(t, n, e = !1, s = !0) {
1483
1466
  function r(c) {
1484
1467
  const i = [];
1485
1468
  let u = [];
@@ -1503,16 +1486,16 @@ function Kn(t, n, e = !1, s = !0) {
1503
1486
  let h = `M${c[0].x},${n}`;
1504
1487
  h += ` L${c[0].x},${c[0].y}`;
1505
1488
  for (let F = 0; F < i; F += 1) {
1506
- const E = c[F].x, A = c[F].y, p = c[F + 1].x, S = c[F + 1].y, M = f[F], D = f[F + 1], I = E + (p - E) / 3, P = A + M * (p - E) / 3, L = p - (p - E) / 3, x = S - D * (p - E) / 3;
1507
- h += ` C${I},${P} ${L},${x} ${p},${S}`;
1489
+ const E = c[F].x, d = c[F].y, A = c[F + 1].x, D = c[F + 1].y, M = f[F], $ = f[F + 1], I = E + (A - E) / 3, O = d + M * (A - E) / 3, N = A - (A - E) / 3, y = D - $ * (A - E) / 3;
1490
+ h += ` C${I},${O} ${N},${y} ${A},${D}`;
1508
1491
  }
1509
1492
  return h += ` L${c[i].x},${n} ${s ? "Z" : ""}`, h;
1510
1493
  }).filter(Boolean);
1511
1494
  }
1512
- function Wn(t) {
1495
+ function Kn(t) {
1513
1496
  return t.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
1514
1497
  }
1515
- function Tt(t) {
1498
+ function Ot(t) {
1516
1499
  return t && typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? null : t;
1517
1500
  }
1518
1501
  function it(t) {
@@ -1522,14 +1505,14 @@ function it(t) {
1522
1505
  const n = {};
1523
1506
  for (const e in t)
1524
1507
  Object.hasOwn(t, e) && (n[e] = it(t[e]));
1525
- return Tt(n);
1508
+ return Ot(n);
1526
1509
  }
1527
1510
  return t;
1528
1511
  }
1529
- function Vn(t) {
1512
+ function Wn(t) {
1530
1513
  return 1 - Math.pow(1 - t, 3);
1531
1514
  }
1532
- function _n({ values: t, config: n = {} }) {
1515
+ function Vn({ values: t, config: n = {} }) {
1533
1516
  const {
1534
1517
  keepInvalid: e = !0,
1535
1518
  convertInvalidToZero: s = !1
@@ -1545,7 +1528,7 @@ function _n({ values: t, config: n = {} }) {
1545
1528
  i(l) ? s && e ? u(0) : !s && e && r.push(l) : u(l);
1546
1529
  return r;
1547
1530
  }
1548
- function zn({ values: t, config: n = {} }) {
1531
+ function _n({ values: t, config: n = {} }) {
1549
1532
  const {
1550
1533
  keepInvalid: e = !0,
1551
1534
  convertInvalidToZero: s = !1
@@ -1562,7 +1545,7 @@ function zn({ values: t, config: n = {} }) {
1562
1545
  c(u) ? s && e ? i(0) : !s && e && r.push(u) : i(u);
1563
1546
  return r;
1564
1547
  }
1565
- function Zn({
1548
+ function zn({
1566
1549
  el: t,
1567
1550
  bounds: n,
1568
1551
  currentFontSize: e,
@@ -1574,15 +1557,15 @@ function Zn({
1574
1557
  let c = e;
1575
1558
  t.setAttribute("font-size", c);
1576
1559
  const { x: i, y: u, width: l, height: a } = n, f = i + o, h = u + o, F = i + l - o, E = u + a - o;
1577
- let A = t.getBBox();
1578
- if (A.x >= f + o && A.y >= h + o && A.x + A.width <= F - o && A.y + A.height <= E - o)
1560
+ let d = t.getBBox();
1561
+ if (d.x >= f + o && d.y >= h + o && d.x + d.width <= F - o && d.y + d.height <= E - o)
1579
1562
  return c;
1580
- let p = r;
1581
- for (; p-- > 0 && c > s && (c--, t.setAttribute("font-size", c), A = t.getBBox(), !(A.x >= f + o && A.y >= h + o && A.x + A.width <= F - o && A.y + A.height <= E - o)); )
1563
+ let A = r;
1564
+ for (; A-- > 0 && c > s && (c--, t.setAttribute("font-size", c), d = t.getBBox(), !(d.x >= f + o && d.y >= h + o && d.x + d.width <= F - o && d.y + d.height <= E - o)); )
1582
1565
  ;
1583
1566
  return c < s && (c = 0, t.setAttribute("font-size", c)), c;
1584
1567
  }
1585
- function Qn({
1568
+ function Zn({
1586
1569
  value: t,
1587
1570
  maxDecimals: n = 4,
1588
1571
  fallbackFormatter: e,
@@ -1604,13 +1587,13 @@ function Qn({
1604
1587
  let c = t.toFixed(o);
1605
1588
  return s && (c = c.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), c;
1606
1589
  }
1607
- function qn(t) {
1590
+ function Qn(t) {
1608
1591
  const n = [];
1609
1592
  for (let e = 0; e < t; e += 1)
1610
1593
  n.push(e === 0 ? 0 : e === 1 ? 1 : n[e - 1] + n[e - 2]);
1611
1594
  return n;
1612
1595
  }
1613
- function Jn(t, n = 20) {
1596
+ function qn(t, n = 20) {
1614
1597
  t = t.replace(/[\r\n]+/g, " ");
1615
1598
  const e = t.split(" ");
1616
1599
  let s = "", r = "";
@@ -1620,7 +1603,7 @@ function Jn(t, n = 20) {
1620
1603
  return s && (r += (r ? `
1621
1604
  ` : "") + s), r;
1622
1605
  }
1623
- function te(t) {
1606
+ function Jn(t) {
1624
1607
  const {
1625
1608
  lineA: n,
1626
1609
  lineB: e,
@@ -1638,55 +1621,55 @@ function te(t) {
1638
1621
  } = t || {};
1639
1622
  if (!Array.isArray(n) || !Array.isArray(e) || !n.length || !e.length)
1640
1623
  return [];
1641
- const a = (x) => Number.isFinite(x);
1642
- function f(x) {
1643
- if (!u) return [x.filter((b) => b && a(b.x) && a(b.y))];
1644
- const m = [];
1645
- let C = [];
1646
- for (const b of x)
1647
- b && a(b.x) && a(b.y) && b.value != null ? C.push({ x: b.x, y: b.y }) : (C.length > 1 && m.push(C), C = []);
1648
- return C.length > 1 && m.push(C), m;
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;
1649
1632
  }
1650
- function h(x) {
1651
- const m = x.length - 1, C = new Array(m), b = new Array(m), g = new Array(m), B = new Array(x.length);
1652
- for (let y = 0; y < m; y += 1)
1653
- C[y] = x[y + 1].x - x[y].x, b[y] = x[y + 1].y - x[y].y, g[y] = b[y] / C[y];
1654
- B[0] = g[0], B[m] = g[m - 1];
1655
- for (let y = 1; y < m; y += 1)
1656
- g[y - 1] * g[y] <= 0 ? B[y] = 0 : B[y] = 2 * g[y - 1] * g[y] / (g[y - 1] + g[y]);
1633
+ function h(y) {
1634
+ const b = y.length - 1, m = new Array(b), C = new Array(b), g = 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, g[x] = C[x] / m[x];
1637
+ B[0] = g[0], B[b] = g[b - 1];
1638
+ for (let x = 1; x < b; x += 1)
1639
+ g[x - 1] * g[x] <= 0 ? B[x] = 0 : B[x] = 2 * g[x - 1] * g[x] / (g[x - 1] + g[x]);
1657
1640
  return B;
1658
1641
  }
1659
- function F(x, m, C, b, g) {
1660
- const B = x.x, y = m.x, O = x.y, $ = m.y, T = y - B;
1661
- if (T === 0) return O;
1662
- const w = (g - B) / T, N = w * w, k = N * w, H = 2 * k - 3 * N + 1, R = k - 2 * N + w, Y = -2 * k + 3 * N, U = k - N;
1663
- return H * O + R * (C * T) + Y * $ + U * (b * T);
1642
+ function F(y, b, m, C, g) {
1643
+ const B = y.x, x = b.x, T = y.y, S = b.y, P = x - B;
1644
+ if (P === 0) return T;
1645
+ const w = (g - B) / P, L = w * w, k = L * w, H = 2 * k - 3 * L + 1, R = k - 2 * L + w, Y = -2 * k + 3 * L, U = k - L;
1646
+ return H * T + R * (m * P) + Y * S + U * (C * P);
1664
1647
  }
1665
- function E(x, m) {
1666
- const C = f(x);
1667
- if (!C.length) return [];
1668
- let b = 1 / 0, g = -1 / 0;
1669
- for (const $ of C)
1670
- b = Math.min(b, $[0].x), g = Math.max(g, $[$.length - 1].x);
1671
- if (!a(b) || !a(g) || g <= b) return [];
1672
- const B = Math.max(1, i), y = [];
1673
- for (let $ = b; $ <= g; $ += B) y.push($);
1674
- y[y.length - 1] < g && y.push(g);
1675
- const O = [];
1676
- for (const $ of y) {
1677
- let T = null, w = !1;
1678
- for (const N of C) {
1679
- const k = N.length - 1;
1680
- if (!($ < N[0].x - 1e-9 || $ > N[k].x + 1e-9)) {
1648
+ function E(y, b) {
1649
+ const m = f(y);
1650
+ if (!m.length) return [];
1651
+ let C = 1 / 0, g = -1 / 0;
1652
+ for (const S of m)
1653
+ C = Math.min(C, S[0].x), g = Math.max(g, S[S.length - 1].x);
1654
+ if (!a(C) || !a(g) || g <= C) return [];
1655
+ const B = Math.max(1, i), x = [];
1656
+ for (let S = C; S <= g; S += B) x.push(S);
1657
+ x[x.length - 1] < g && x.push(g);
1658
+ const T = [];
1659
+ for (const S of x) {
1660
+ let P = null, w = !1;
1661
+ for (const L of m) {
1662
+ const k = L.length - 1;
1663
+ if (!(S < L[0].x - 1e-9 || S > L[k].x + 1e-9)) {
1681
1664
  for (let H = 0; H < k; H += 1) {
1682
- const R = N[H], Y = N[H + 1];
1683
- if (!($ + 1e-9 < R.x || $ - 1e-9 > Y.x)) {
1684
- if (m) {
1685
- const U = N.__tangents || (N.__tangents = h(N));
1686
- T = F(R, Y, U[H], U[H + 1], $);
1665
+ const R = L[H], Y = L[H + 1];
1666
+ if (!(S + 1e-9 < R.x || S - 1e-9 > Y.x)) {
1667
+ if (b) {
1668
+ const U = L.__tangents || (L.__tangents = h(L));
1669
+ P = F(R, Y, U[H], U[H + 1], S);
1687
1670
  } else {
1688
- const U = ($ - R.x) / (Y.x - R.x || 1);
1689
- T = R.y + U * (Y.y - R.y);
1671
+ const U = (S - R.x) / (Y.x - R.x || 1);
1672
+ P = R.y + U * (Y.y - R.y);
1690
1673
  }
1691
1674
  w = !0;
1692
1675
  break;
@@ -1695,75 +1678,75 @@ function te(t) {
1695
1678
  if (w) break;
1696
1679
  }
1697
1680
  }
1698
- T == null ? O.push({ x: $, y: null, hole: !0 }) : O.push({ x: $, y: T, hole: !1 });
1681
+ P == null ? T.push({ x: S, y: null, hole: !0 }) : T.push({ x: S, y: P, hole: !1 });
1699
1682
  }
1700
- return O;
1683
+ return T;
1701
1684
  }
1702
- function A(x, m, C) {
1703
- return x + C * (m - x);
1685
+ function d(y, b, m) {
1686
+ return y + m * (b - y);
1704
1687
  }
1705
- function p(x, m) {
1706
- const C = [], b = [], g = Math.min(x.length, m.length);
1688
+ function A(y, b) {
1689
+ const m = [], C = [], g = Math.min(y.length, b.length);
1707
1690
  for (let B = 0; B < g - 1; B += 1) {
1708
- const y = x[B], O = x[B + 1], $ = m[B], T = m[B + 1];
1709
- if (C.push(y), b.push($), y.hole || O.hole || $.hole || T.hole || y.y == null || O.y == null || $.y == null || T.y == null)
1691
+ const x = y[B], T = y[B + 1], S = b[B], P = b[B + 1];
1692
+ if (m.push(x), C.push(S), x.hole || T.hole || S.hole || P.hole || x.y == null || T.y == null || S.y == null || P.y == null)
1710
1693
  continue;
1711
- const w = y.y - $.y, N = O.y - T.y;
1712
- if (w > 0 && N < 0 || w < 0 && N > 0) {
1713
- const k = w / (w - N), H = A(y.x, O.x, k), R = A(y.y, O.y, k), Y = { x: H, y: R, hole: !1 }, U = { x: H, y: R, hole: !1 };
1714
- C.push(Y), b.push(U);
1694
+ const w = x.y - S.y, L = T.y - P.y;
1695
+ if (w > 0 && L < 0 || w < 0 && L > 0) {
1696
+ const k = w / (w - L), H = d(x.x, T.x, k), R = d(x.y, T.y, k), Y = { x: H, y: R, hole: !1 }, U = { x: H, y: R, hole: !1 };
1697
+ m.push(Y), C.push(U);
1715
1698
  }
1716
1699
  }
1717
- return g > 0 && (C.push(x[g - 1]), b.push(m[g - 1])), { A: C, B: b };
1700
+ return g > 0 && (m.push(y[g - 1]), C.push(b[g - 1])), { A: m, B: C };
1718
1701
  }
1719
- function S(x, m) {
1720
- const C = [], b = Math.min(x.length, m.length);
1721
- for (let g = 0; g < b - 1; g += 1) {
1722
- const B = x[g], y = x[g + 1], O = m[g], $ = m[g + 1];
1723
- if (B.hole || y.hole || O.hole || $.hole || B.y == null || y.y == null || O.y == null || $.y == null) continue;
1724
- const T = B.y - O.y, w = y.y - $.y, N = T <= 0 ? B : O, k = w <= 0 ? y : $, H = w <= 0 ? $ : y, R = T <= 0 ? O : B, Y = T <= 0 ? s : r, U = [
1725
- `M${N.x},${N.y}`,
1702
+ function D(y, b) {
1703
+ const m = [], C = Math.min(y.length, b.length);
1704
+ for (let g = 0; g < C - 1; g += 1) {
1705
+ const B = y[g], x = y[g + 1], T = b[g], S = b[g + 1];
1706
+ if (B.hole || x.hole || T.hole || S.hole || B.y == null || x.y == null || T.y == null || S.y == null) continue;
1707
+ const P = B.y - T.y, w = x.y - S.y, L = P <= 0 ? B : T, k = w <= 0 ? x : S, H = w <= 0 ? S : x, R = P <= 0 ? T : B, Y = P <= 0 ? s : r, U = [
1708
+ `M${L.x},${L.y}`,
1726
1709
  `L${k.x},${k.y}`,
1727
1710
  `L${H.x},${H.y}`,
1728
1711
  `L${R.x},${R.y}`,
1729
1712
  "Z"
1730
1713
  ].join(" ");
1731
- C.push({ d: U, color: Y });
1714
+ m.push({ d: U, color: Y });
1732
1715
  }
1733
- return C;
1716
+ return m;
1734
1717
  }
1735
- function M(x, m) {
1736
- const C = [], b = Math.min(x.length, m.length);
1737
- if (b < 2) return C;
1718
+ function M(y, b) {
1719
+ const m = [], C = Math.min(y.length, b.length);
1720
+ if (C < 2) return m;
1738
1721
  let g = 0;
1739
- for (; g < b - 1; ) {
1740
- for (; g < b - 1; ) {
1741
- const R = x[g], Y = m[g], U = x[g + 1], j = m[g + 1];
1722
+ for (; g < C - 1; ) {
1723
+ for (; g < C - 1; ) {
1724
+ const R = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1742
1725
  if (!R.hole && !Y.hole && !U.hole && !j.hole && R.y != null && Y.y != null && U.y != null && j.y != null) break;
1743
1726
  g += 1;
1744
1727
  }
1745
- if (g >= b - 1) break;
1746
- const B = g, y = Math.sign(m[g].y - x[g].y || 0) || 1;
1747
- for (g += 1; g < b - 1; ) {
1748
- const R = x[g], Y = m[g], U = x[g + 1], j = m[g + 1];
1749
- if (R.hole || Y.hole || U.hole || j.hole || R.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - R.y || 0) || 1) !== y) break;
1728
+ if (g >= C - 1) break;
1729
+ const B = g, x = Math.sign(b[g].y - y[g].y || 0) || 1;
1730
+ for (g += 1; g < C - 1; ) {
1731
+ const R = y[g], Y = b[g], U = y[g + 1], j = b[g + 1];
1732
+ if (R.hole || Y.hole || U.hole || j.hole || R.y == null || Y.y == null || U.y == null || j.y == null || (Math.sign(Y.y - R.y || 0) || 1) !== x) break;
1750
1733
  g += 1;
1751
1734
  }
1752
- const O = g + 0, $ = y >= 0 ? x : m, T = y >= 0 ? m : x, w = y >= 0 ? s : r, N = [];
1753
- for (let R = B; R <= O; R += 1)
1754
- N.push(`${$[R].x},${$[R].y}`);
1735
+ const T = g + 0, S = x >= 0 ? y : b, P = x >= 0 ? b : y, w = x >= 0 ? s : r, L = [];
1736
+ for (let R = B; R <= T; R += 1)
1737
+ L.push(`${S[R].x},${S[R].y}`);
1755
1738
  const k = [];
1756
- for (let R = O; R >= B; R -= 1)
1757
- k.push(`${T[R].x},${T[R].y}`);
1758
- const H = `M${N[0]} L${N.slice(1).join(" L")} L${k.join(" L")} Z`;
1759
- C.push({ d: H, color: w });
1739
+ for (let R = T; R >= B; R -= 1)
1740
+ k.push(`${P[R].x},${P[R].y}`);
1741
+ const H = `M${L[0]} L${L.slice(1).join(" L")} L${k.join(" L")} Z`;
1742
+ m.push({ d: H, color: w });
1760
1743
  }
1761
- return C;
1744
+ return m;
1762
1745
  }
1763
- const D = E(n, o), I = E(e, c), { A: P, B: L } = p(D, I);
1764
- return l ? M(P, L) : S(P, L);
1746
+ const $ = E(n, o), I = E(e, c), { A: O, B: N } = A($, I);
1747
+ return l ? M(O, N) : D(O, N);
1765
1748
  }
1766
- function ne(t, n, e = {}) {
1749
+ function te(t, n, e = {}) {
1767
1750
  const r = { ...{ bubbles: !0, cancelable: !0, composed: !0 }, ...e }, o = /* @__PURE__ */ new Set([
1768
1751
  "click",
1769
1752
  "mousedown",
@@ -1795,88 +1778,88 @@ function ne(t, n, e = {}) {
1795
1778
  return t.dispatchEvent(i), i;
1796
1779
  }
1797
1780
  export {
1798
- Zt as $,
1799
- En as A,
1800
- q as B,
1801
- rt as C,
1802
- In as D,
1803
- an as E,
1804
- Sn as F,
1805
- Kt as G,
1806
- Tn as H,
1807
- qt as I,
1808
- bn as J,
1809
- Vn as K,
1810
- Ln as L,
1781
+ yn as $,
1782
+ Fn as A,
1783
+ In as B,
1784
+ cn as C,
1785
+ Sn as D,
1786
+ jt as E,
1787
+ On as F,
1788
+ Qt as G,
1789
+ mn as H,
1790
+ Wn as I,
1791
+ Nn as J,
1792
+ Jt as K,
1793
+ xn as L,
1811
1794
  tn as M,
1812
- mn as N,
1813
- nn as O,
1814
- it as P,
1815
- hn as Q,
1816
- An as R,
1817
- kn as S,
1818
- _ as T,
1819
- en as U,
1820
- _t as V,
1821
- zt as W,
1822
- yn as X,
1823
- Rn as Y,
1824
- Pn as Z,
1825
- jt as _,
1826
- Nn as a,
1827
- wn as a0,
1828
- xn as a1,
1829
- ln as a2,
1830
- Yn as a3,
1831
- Wt as a4,
1832
- Vt as a5,
1833
- Ht as a6,
1834
- qn as a7,
1835
- Dn as a8,
1836
- Bn as a9,
1837
- un as aa,
1838
- Wn as ab,
1839
- Kn as ac,
1840
- Jn as ad,
1841
- jn as ae,
1842
- vn as af,
1843
- ne as ag,
1844
- ct as ah,
1845
- Hn as ai,
1846
- $n as aj,
1847
- Cn as ak,
1848
- Qn as al,
1795
+ it as N,
1796
+ fn as O,
1797
+ dn as P,
1798
+ Yn as Q,
1799
+ _ as R,
1800
+ nn as S,
1801
+ Vt as T,
1802
+ _t as U,
1803
+ Dn as V,
1804
+ Tn as W,
1805
+ An as X,
1806
+ Xt as Y,
1807
+ zt as Z,
1808
+ Pn as _,
1809
+ Bn as a,
1810
+ un as a0,
1811
+ wn as a1,
1812
+ Kt as a2,
1813
+ Wt as a3,
1814
+ kt as a4,
1815
+ Qn as a5,
1816
+ q as a6,
1817
+ $n as a7,
1818
+ Rn as a8,
1819
+ an as a9,
1820
+ Kn as aa,
1821
+ jn as ab,
1822
+ qn as ac,
1823
+ Xn as ad,
1824
+ vn as ae,
1825
+ te as af,
1826
+ ct as ag,
1827
+ kn as ah,
1828
+ Mn as ai,
1829
+ bn as aj,
1830
+ Zn as ak,
1831
+ Vn as al,
1849
1832
  _n as am,
1850
- zn as an,
1851
- Ut as ao,
1852
- kt as ap,
1853
- Xn as aq,
1854
- Gn as ar,
1855
- te as as,
1856
- Un as at,
1857
- X as b,
1858
- Qt as c,
1859
- fn as d,
1860
- Mn as e,
1861
- dn as f,
1833
+ Ht as an,
1834
+ Yt as ao,
1835
+ Gn as ap,
1836
+ Un as aq,
1837
+ Jn as ar,
1838
+ Hn as as,
1839
+ rt as at,
1840
+ v as b,
1841
+ Zt as c,
1842
+ ln as d,
1843
+ Cn as e,
1844
+ gn as f,
1862
1845
  pn as g,
1863
1846
  at as h,
1864
- Gt as i,
1847
+ Ut as i,
1865
1848
  vt as j,
1866
- Xt as k,
1867
- Zn as l,
1868
- on as m,
1869
- Yt as n,
1870
- gn as o,
1849
+ Gt as k,
1850
+ zn as l,
1851
+ sn as m,
1852
+ wt as n,
1853
+ En as o,
1871
1854
  mt as p,
1872
- d as q,
1873
- cn as r,
1874
- On as s,
1875
- pt as t,
1876
- Jt as u,
1855
+ p as q,
1856
+ on as r,
1857
+ Ln as s,
1858
+ At as t,
1859
+ qt as u,
1877
1860
  V as v,
1878
1861
  W as w,
1879
- sn as x,
1880
- rn as y,
1881
- Fn as z
1862
+ rn as x,
1863
+ en as y,
1864
+ hn as z
1882
1865
  };