@undp/data-viz 1.4.13 → 1.4.15

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 (162) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +25 -24
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.js +638 -632
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +134 -132
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +35 -34
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.cjs.map +1 -1
  19. package/dist/BulletChart.js +226 -224
  20. package/dist/BulletChart.js.map +1 -1
  21. package/dist/ButterflyChart.cjs +1 -1
  22. package/dist/ButterflyChart.cjs.map +1 -1
  23. package/dist/ButterflyChart.js +48 -47
  24. package/dist/ButterflyChart.js.map +1 -1
  25. package/dist/ChoroplethMap.cjs +1 -1
  26. package/dist/ChoroplethMap.cjs.map +1 -1
  27. package/dist/ChoroplethMap.js +56 -55
  28. package/dist/ChoroplethMap.js.map +1 -1
  29. package/dist/CirclePackingGraph.cjs +1 -1
  30. package/dist/CirclePackingGraph.js +1 -1
  31. package/dist/DataCards.cjs +3 -3
  32. package/dist/DataCards.cjs.map +1 -1
  33. package/dist/DataCards.js +2 -1
  34. package/dist/DataCards.js.map +1 -1
  35. package/dist/DataTable.cjs +1 -1
  36. package/dist/DataTable.cjs.map +1 -1
  37. package/dist/DataTable.js +9 -8
  38. package/dist/DataTable.js.map +1 -1
  39. package/dist/DifferenceLineChart.cjs +1 -1
  40. package/dist/DifferenceLineChart.cjs.map +1 -1
  41. package/dist/DifferenceLineChart.js +1 -0
  42. package/dist/DifferenceLineChart.js.map +1 -1
  43. package/dist/DonutChart.cjs +1 -1
  44. package/dist/DonutChart.cjs.map +1 -1
  45. package/dist/DonutChart.js +77 -76
  46. package/dist/DonutChart.js.map +1 -1
  47. package/dist/DotDensityMap.cjs +1 -1
  48. package/dist/DotDensityMap.cjs.map +1 -1
  49. package/dist/DotDensityMap.js +1 -0
  50. package/dist/DotDensityMap.js.map +1 -1
  51. package/dist/{DropdownSelect-CeHog_ih.js → DropdownSelect-CtOKZHD0.js} +22 -20
  52. package/dist/{DropdownSelect-CeHog_ih.js.map → DropdownSelect-CtOKZHD0.js.map} +1 -1
  53. package/dist/{DropdownSelect-BmE5JaeE.cjs → DropdownSelect-DBDM64B5.cjs} +2 -2
  54. package/dist/{DropdownSelect-BmE5JaeE.cjs.map → DropdownSelect-DBDM64B5.cjs.map} +1 -1
  55. package/dist/DualAxisLineChart.cjs +1 -1
  56. package/dist/DualAxisLineChart.cjs.map +1 -1
  57. package/dist/DualAxisLineChart.js +54 -53
  58. package/dist/DualAxisLineChart.js.map +1 -1
  59. package/dist/DumbbellChart.cjs +1 -1
  60. package/dist/DumbbellChart.cjs.map +1 -1
  61. package/dist/DumbbellChart.js +216 -214
  62. package/dist/DumbbellChart.js.map +1 -1
  63. package/dist/GeoHubCompareMaps.cjs +1 -1
  64. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  65. package/dist/GeoHubCompareMaps.js +1 -0
  66. package/dist/GeoHubCompareMaps.js.map +1 -1
  67. package/dist/GeoHubMap.cjs +1 -1
  68. package/dist/GeoHubMap.cjs.map +1 -1
  69. package/dist/GeoHubMap.js +29 -28
  70. package/dist/GeoHubMap.js.map +1 -1
  71. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  72. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  73. package/dist/GeoHubMapWithLayerSelection.js +34 -33
  74. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  75. package/dist/GraphEl-Bz2jatkM.cjs +2 -0
  76. package/dist/GraphEl-Bz2jatkM.cjs.map +1 -0
  77. package/dist/{GraphEl-B3xVlimz.js → GraphEl-zNOHBYrK.js} +4 -4
  78. package/dist/GraphEl-zNOHBYrK.js.map +1 -0
  79. package/dist/GriddedGraphs.cjs +1 -1
  80. package/dist/GriddedGraphs.js +2 -2
  81. package/dist/HeatMap.cjs +1 -1
  82. package/dist/HeatMap.cjs.map +1 -1
  83. package/dist/HeatMap.js +55 -54
  84. package/dist/HeatMap.js.map +1 -1
  85. package/dist/Histogram.cjs +1 -1
  86. package/dist/Histogram.js +1 -1
  87. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  88. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  89. package/dist/LineChartWithConfidenceInterval.js +22 -21
  90. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  91. package/dist/MultiGraphDashboard.cjs +1 -1
  92. package/dist/MultiGraphDashboard.js +1 -1
  93. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  94. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  95. package/dist/MultiLineAltChart.cjs +1 -1
  96. package/dist/MultiLineAltChart.cjs.map +1 -1
  97. package/dist/MultiLineAltChart.js +34 -33
  98. package/dist/MultiLineAltChart.js.map +1 -1
  99. package/dist/MultiLineChart.cjs +1 -1
  100. package/dist/MultiLineChart.cjs.map +1 -1
  101. package/dist/MultiLineChart.js +72 -71
  102. package/dist/MultiLineChart.js.map +1 -1
  103. package/dist/ParetoChart.cjs +1 -1
  104. package/dist/ParetoChart.cjs.map +1 -1
  105. package/dist/ParetoChart.js +24 -23
  106. package/dist/ParetoChart.js.map +1 -1
  107. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  108. package/dist/PerformanceIntensiveMultiGraphDashboard.js +1 -1
  109. package/dist/RadarChart.cjs +1 -1
  110. package/dist/RadarChart.cjs.map +1 -1
  111. package/dist/RadarChart.js +27 -26
  112. package/dist/RadarChart.js.map +1 -1
  113. package/dist/SankeyChart.cjs +1 -1
  114. package/dist/SankeyChart.cjs.map +1 -1
  115. package/dist/SankeyChart.js +30 -29
  116. package/dist/SankeyChart.js.map +1 -1
  117. package/dist/ScatterPlot.cjs +1 -1
  118. package/dist/ScatterPlot.cjs.map +1 -1
  119. package/dist/ScatterPlot.js +119 -118
  120. package/dist/ScatterPlot.js.map +1 -1
  121. package/dist/SimpleLineChart.cjs +1 -1
  122. package/dist/SimpleLineChart.cjs.map +1 -1
  123. package/dist/SimpleLineChart.js +16 -15
  124. package/dist/SimpleLineChart.js.map +1 -1
  125. package/dist/SingleGraphDashboard.cjs +1 -1
  126. package/dist/SingleGraphDashboard.js +2 -2
  127. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  128. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  129. package/dist/SlopeChart.cjs +1 -1
  130. package/dist/SlopeChart.cjs.map +1 -1
  131. package/dist/SlopeChart.js +46 -45
  132. package/dist/SlopeChart.js.map +1 -1
  133. package/dist/SparkLine.cjs +1 -1
  134. package/dist/SparkLine.cjs.map +1 -1
  135. package/dist/SparkLine.js +12 -11
  136. package/dist/SparkLine.js.map +1 -1
  137. package/dist/StripChart.cjs +1 -1
  138. package/dist/StripChart.cjs.map +1 -1
  139. package/dist/StripChart.js +81 -79
  140. package/dist/StripChart.js.map +1 -1
  141. package/dist/ThreeDGlobe.cjs +1 -1
  142. package/dist/ThreeDGlobe.cjs.map +1 -1
  143. package/dist/ThreeDGlobe.js +1 -0
  144. package/dist/ThreeDGlobe.js.map +1 -1
  145. package/dist/TreeMapGraph.cjs +1 -1
  146. package/dist/TreeMapGraph.cjs.map +1 -1
  147. package/dist/TreeMapGraph.js +114 -113
  148. package/dist/TreeMapGraph.js.map +1 -1
  149. package/dist/UnitChart.cjs +1 -1
  150. package/dist/UnitChart.cjs.map +1 -1
  151. package/dist/UnitChart.js +10 -9
  152. package/dist/UnitChart.js.map +1 -1
  153. package/dist/{index-CZLvTu6p.cjs → index-BbNoLJ_w.cjs} +2 -2
  154. package/dist/{index-CZLvTu6p.cjs.map → index-BbNoLJ_w.cjs.map} +1 -1
  155. package/dist/{index-DGAaLNu9.js → index-Bc5VF70V.js} +46 -45
  156. package/dist/{index-DGAaLNu9.js.map → index-Bc5VF70V.js.map} +1 -1
  157. package/dist/index.cjs +1 -1
  158. package/dist/index.js +1 -1
  159. package/package.json +2 -2
  160. package/dist/GraphEl-B3xVlimz.js.map +0 -1
  161. package/dist/GraphEl-DO-juRN8.cjs +0 -2
  162. package/dist/GraphEl-DO-juRN8.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { j as v, m as ie } from "./index-CHPV5EwG-BPSP-7Jg.js";
1
+ import { j as v, m as ne } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
2
  import { u as ce } from "./index-CaAIPGZo.js";
3
3
  import { useRef as re, useState as A, useEffect as ye } from "react";
4
4
  import { u as ue } from "./Typography-Ctgfl1J5.js";
@@ -17,46 +17,46 @@ import { GraphHeader as De } from "./GraphHeader.js";
17
17
  import { ColorLegendWithMouseOver as Ie } from "./ColorLegendWithMouseOver.js";
18
18
  import { E as Ne } from "./EmptyState-DdTp-Mdn.js";
19
19
  function Be(e) {
20
- var t = 0, n = e.children, r = n && n.length;
20
+ var t = 0, i = e.children, r = i && i.length;
21
21
  if (!r) t = 1;
22
- else for (; --r >= 0; ) t += n[r].value;
22
+ else for (; --r >= 0; ) t += i[r].value;
23
23
  e.value = t;
24
24
  }
25
25
  function Se() {
26
26
  return this.eachAfter(Be);
27
27
  }
28
28
  function Ve(e, t) {
29
- let n = -1;
29
+ let i = -1;
30
30
  for (const r of this)
31
- e.call(t, r, ++n, this);
31
+ e.call(t, r, ++i, this);
32
32
  return this;
33
33
  }
34
34
  function _e(e, t) {
35
- for (var n = this, r = [n], a, s, l = -1; n = r.pop(); )
36
- if (e.call(t, n, ++l, this), a = n.children)
35
+ for (var i = this, r = [i], a, s, l = -1; i = r.pop(); )
36
+ if (e.call(t, i, ++l, this), a = i.children)
37
37
  for (s = a.length - 1; s >= 0; --s)
38
38
  r.push(a[s]);
39
39
  return this;
40
40
  }
41
41
  function $e(e, t) {
42
- for (var n = this, r = [n], a = [], s, l, h, g = -1; n = r.pop(); )
43
- if (a.push(n), s = n.children)
42
+ for (var i = this, r = [i], a = [], s, l, h, g = -1; i = r.pop(); )
43
+ if (a.push(i), s = i.children)
44
44
  for (l = 0, h = s.length; l < h; ++l)
45
45
  r.push(s[l]);
46
- for (; n = a.pop(); )
47
- e.call(t, n, ++g, this);
46
+ for (; i = a.pop(); )
47
+ e.call(t, i, ++g, this);
48
48
  return this;
49
49
  }
50
50
  function Ae(e, t) {
51
- let n = -1;
51
+ let i = -1;
52
52
  for (const r of this)
53
- if (e.call(t, r, ++n, this))
53
+ if (e.call(t, r, ++i, this))
54
54
  return r;
55
55
  }
56
56
  function Te(e) {
57
57
  return this.eachAfter(function(t) {
58
- for (var n = +e(t.data) || 0, r = t.children, a = r && r.length; --a >= 0; ) n += r[a].value;
59
- t.value = n;
58
+ for (var i = +e(t.data) || 0, r = t.children, a = r && r.length; --a >= 0; ) i += r[a].value;
59
+ t.value = i;
60
60
  });
61
61
  }
62
62
  function Ee(e) {
@@ -65,17 +65,17 @@ function Ee(e) {
65
65
  });
66
66
  }
67
67
  function ze(e) {
68
- for (var t = this, n = Le(t, e), r = [t]; t !== n; )
68
+ for (var t = this, i = Le(t, e), r = [t]; t !== i; )
69
69
  t = t.parent, r.push(t);
70
- for (var a = r.length; e !== n; )
70
+ for (var a = r.length; e !== i; )
71
71
  r.splice(a, 0, e), e = e.parent;
72
72
  return r;
73
73
  }
74
74
  function Le(e, t) {
75
75
  if (e === t) return e;
76
- var n = e.ancestors(), r = t.ancestors(), a = null;
77
- for (e = n.pop(), t = r.pop(); e === t; )
78
- a = e, e = n.pop(), t = r.pop();
76
+ var i = e.ancestors(), r = t.ancestors(), a = null;
77
+ for (e = i.pop(), t = r.pop(); e === t; )
78
+ a = e, e = i.pop(), t = r.pop();
79
79
  return a;
80
80
  }
81
81
  function He() {
@@ -94,26 +94,26 @@ function Pe() {
94
94
  }
95
95
  function We() {
96
96
  var e = this, t = [];
97
- return e.each(function(n) {
98
- n !== e && t.push({ source: n.parent, target: n });
97
+ return e.each(function(i) {
98
+ i !== e && t.push({ source: i.parent, target: i });
99
99
  }), t;
100
100
  }
101
101
  function* qe() {
102
- var e = this, t, n = [e], r, a, s;
102
+ var e = this, t, i = [e], r, a, s;
103
103
  do
104
- for (t = n.reverse(), n = []; e = t.pop(); )
104
+ for (t = i.reverse(), i = []; e = t.pop(); )
105
105
  if (yield e, r = e.children)
106
106
  for (a = 0, s = r.length; a < s; ++a)
107
- n.push(r[a]);
108
- while (n.length);
107
+ i.push(r[a]);
108
+ while (i.length);
109
109
  }
110
110
  function fe(e, t) {
111
111
  e instanceof Map ? (e = [void 0, e], t === void 0 && (t = Xe)) : t === void 0 && (t = Ge);
112
- for (var n = new G(e), r, a = [n], s, l, h, g; r = a.pop(); )
112
+ for (var i = new G(e), r, a = [i], s, l, h, g; r = a.pop(); )
113
113
  if ((l = t(r.data)) && (g = (l = Array.from(l)).length))
114
114
  for (r.children = l, h = g - 1; h >= 0; --h)
115
115
  a.push(s = l[h] = new G(l[h])), s.parent = r, s.depth = r.depth + 1;
116
- return n.eachBefore(pe);
116
+ return i.eachBefore(pe);
117
117
  }
118
118
  function Fe() {
119
119
  return fe(this).eachBefore(Ye);
@@ -171,11 +171,11 @@ function F(e) {
171
171
  function Ke(e) {
172
172
  e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
173
173
  }
174
- function Ue(e, t, n, r, a) {
174
+ function Ue(e, t, i, r, a) {
175
175
  for (var s = e.children, l, h = -1, g = s.length, b = e.value && (r - t) / e.value; ++h < g; )
176
- l = s[h], l.y0 = n, l.y1 = a, l.x0 = t, l.x1 = t += l.value * b;
176
+ l = s[h], l.y0 = i, l.y1 = a, l.x0 = t, l.x1 = t += l.value * b;
177
177
  }
178
- var Ze = { depth: -1 }, he = {}, ne = {};
178
+ var Ze = { depth: -1 }, he = {}, ie = {};
179
179
  function Je(e) {
180
180
  return e.id;
181
181
  }
@@ -183,31 +183,31 @@ function Qe(e) {
183
183
  return e.parentId;
184
184
  }
185
185
  function et() {
186
- var e = Je, t = Qe, n;
186
+ var e = Je, t = Qe, i;
187
187
  function r(a) {
188
- var s = Array.from(a), l = e, h = t, g, b, u, y, i, c, f, w, p = /* @__PURE__ */ new Map();
189
- if (n != null) {
190
- const d = s.map((x, O) => tt(n(x, O, a))), j = d.map(de), D = new Set(d).add("");
188
+ var s = Array.from(a), l = e, h = t, g, b, u, y, n, c, f, w, p = /* @__PURE__ */ new Map();
189
+ if (i != null) {
190
+ const d = s.map((x, O) => tt(i(x, O, a))), j = d.map(de), D = new Set(d).add("");
191
191
  for (const x of j)
192
- D.has(x) || (D.add(x), d.push(x), j.push(de(x)), s.push(ne));
192
+ D.has(x) || (D.add(x), d.push(x), j.push(de(x)), s.push(ie));
193
193
  l = (x, O) => d[O], h = (x, O) => j[O];
194
194
  }
195
195
  for (u = 0, g = s.length; u < g; ++u)
196
196
  b = s[u], c = s[u] = new G(b), (f = l(b, u, a)) != null && (f += "") && (w = c.id = f, p.set(w, p.has(w) ? he : c)), (f = h(b, u, a)) != null && (f += "") && (c.parent = f);
197
197
  for (u = 0; u < g; ++u)
198
198
  if (c = s[u], f = c.parent) {
199
- if (i = p.get(f), !i) throw new Error("missing: " + f);
200
- if (i === he) throw new Error("ambiguous: " + f);
201
- i.children ? i.children.push(c) : i.children = [c], c.parent = i;
199
+ if (n = p.get(f), !n) throw new Error("missing: " + f);
200
+ if (n === he) throw new Error("ambiguous: " + f);
201
+ n.children ? n.children.push(c) : n.children = [c], c.parent = n;
202
202
  } else {
203
203
  if (y) throw new Error("multiple roots");
204
204
  y = c;
205
205
  }
206
206
  if (!y) throw new Error("no root");
207
- if (n != null) {
208
- for (; y.data === ne && y.children.length === 1; )
207
+ if (i != null) {
208
+ for (; y.data === ie && y.children.length === 1; )
209
209
  y = y.children[0], --g;
210
- for (let d = s.length - 1; d >= 0 && (c = s[d], c.data === ne); --d)
210
+ for (let d = s.length - 1; d >= 0 && (c = s[d], c.data === ie); --d)
211
211
  c.data = null;
212
212
  }
213
213
  if (y.parent = Ze, y.eachBefore(function(d) {
@@ -220,7 +220,7 @@ function et() {
220
220
  }, r.parentId = function(a) {
221
221
  return arguments.length ? (t = te(a), r) : t;
222
222
  }, r.path = function(a) {
223
- return arguments.length ? (n = te(a), r) : n;
223
+ return arguments.length ? (i = te(a), r) : i;
224
224
  }, r;
225
225
  }
226
226
  function tt(e) {
@@ -236,77 +236,77 @@ function de(e) {
236
236
  }
237
237
  function oe(e, t) {
238
238
  if (e[t] === "/") {
239
- let n = 0;
240
- for (; t > 0 && e[--t] === "\\"; ) ++n;
241
- if ((n & 1) === 0) return !0;
239
+ let i = 0;
240
+ for (; t > 0 && e[--t] === "\\"; ) ++i;
241
+ if ((i & 1) === 0) return !0;
242
242
  }
243
243
  return !1;
244
244
  }
245
- function nt(e, t, n, r, a) {
246
- for (var s = e.children, l, h = -1, g = s.length, b = e.value && (a - n) / e.value; ++h < g; )
247
- l = s[h], l.x0 = t, l.x1 = r, l.y0 = n, l.y1 = n += l.value * b;
245
+ function it(e, t, i, r, a) {
246
+ for (var s = e.children, l, h = -1, g = s.length, b = e.value && (a - i) / e.value; ++h < g; )
247
+ l = s[h], l.x0 = t, l.x1 = r, l.y0 = i, l.y1 = i += l.value * b;
248
248
  }
249
- var it = (1 + Math.sqrt(5)) / 2;
250
- function rt(e, t, n, r, a, s) {
251
- for (var l = [], h = t.children, g, b, u = 0, y = 0, i = h.length, c, f, w = t.value, p, d, j, D, x, O, k; u < i; ) {
252
- c = a - n, f = s - r;
249
+ var nt = (1 + Math.sqrt(5)) / 2;
250
+ function rt(e, t, i, r, a, s) {
251
+ for (var l = [], h = t.children, g, b, u = 0, y = 0, n = h.length, c, f, w = t.value, p, d, j, D, x, O, k; u < n; ) {
252
+ c = a - i, f = s - r;
253
253
  do
254
254
  p = h[y++].value;
255
- while (!p && y < i);
256
- for (d = j = p, O = Math.max(f / c, c / f) / (w * e), k = p * p * O, x = Math.max(j / k, k / d); y < i; ++y) {
255
+ while (!p && y < n);
256
+ for (d = j = p, O = Math.max(f / c, c / f) / (w * e), k = p * p * O, x = Math.max(j / k, k / d); y < n; ++y) {
257
257
  if (p += b = h[y].value, b < d && (d = b), b > j && (j = b), k = p * p * O, D = Math.max(j / k, k / d), D > x) {
258
258
  p -= b;
259
259
  break;
260
260
  }
261
261
  x = D;
262
262
  }
263
- l.push(g = { value: p, dice: c < f, children: h.slice(u, y) }), g.dice ? Ue(g, n, r, a, w ? r += f * p / w : s) : nt(g, n, r, w ? n += c * p / w : a, s), w -= p, u = y;
263
+ l.push(g = { value: p, dice: c < f, children: h.slice(u, y) }), g.dice ? Ue(g, i, r, a, w ? r += f * p / w : s) : it(g, i, r, w ? i += c * p / w : a, s), w -= p, u = y;
264
264
  }
265
265
  return l;
266
266
  }
267
267
  const ot = function e(t) {
268
- function n(r, a, s, l, h) {
268
+ function i(r, a, s, l, h) {
269
269
  rt(t, r, a, s, l, h);
270
270
  }
271
- return n.ratio = function(r) {
271
+ return i.ratio = function(r) {
272
272
  return e((r = +r) > 1 ? r : 1);
273
- }, n;
274
- }(it);
273
+ }, i;
274
+ }(nt);
275
275
  function at() {
276
- var e = ot, t = !1, n = 1, r = 1, a = [0], s = q, l = q, h = q, g = q, b = q;
277
- function u(i) {
278
- return i.x0 = i.y0 = 0, i.x1 = n, i.y1 = r, i.eachBefore(y), a = [0], t && i.eachBefore(Ke), i;
276
+ var e = ot, t = !1, i = 1, r = 1, a = [0], s = q, l = q, h = q, g = q, b = q;
277
+ function u(n) {
278
+ return n.x0 = n.y0 = 0, n.x1 = i, n.y1 = r, n.eachBefore(y), a = [0], t && n.eachBefore(Ke), n;
279
279
  }
280
- function y(i) {
281
- var c = a[i.depth], f = i.x0 + c, w = i.y0 + c, p = i.x1 - c, d = i.y1 - c;
282
- p < f && (f = p = (f + p) / 2), d < w && (w = d = (w + d) / 2), i.x0 = f, i.y0 = w, i.x1 = p, i.y1 = d, i.children && (c = a[i.depth + 1] = s(i) / 2, f += b(i) - c, w += l(i) - c, p -= h(i) - c, d -= g(i) - c, p < f && (f = p = (f + p) / 2), d < w && (w = d = (w + d) / 2), e(i, f, w, p, d));
280
+ function y(n) {
281
+ var c = a[n.depth], f = n.x0 + c, w = n.y0 + c, p = n.x1 - c, d = n.y1 - c;
282
+ p < f && (f = p = (f + p) / 2), d < w && (w = d = (w + d) / 2), n.x0 = f, n.y0 = w, n.x1 = p, n.y1 = d, n.children && (c = a[n.depth + 1] = s(n) / 2, f += b(n) - c, w += l(n) - c, p -= h(n) - c, d -= g(n) - c, p < f && (f = p = (f + p) / 2), d < w && (w = d = (w + d) / 2), e(n, f, w, p, d));
283
283
  }
284
- return u.round = function(i) {
285
- return arguments.length ? (t = !!i, u) : t;
286
- }, u.size = function(i) {
287
- return arguments.length ? (n = +i[0], r = +i[1], u) : [n, r];
288
- }, u.tile = function(i) {
289
- return arguments.length ? (e = ge(i), u) : e;
290
- }, u.padding = function(i) {
291
- return arguments.length ? u.paddingInner(i).paddingOuter(i) : u.paddingInner();
292
- }, u.paddingInner = function(i) {
293
- return arguments.length ? (s = typeof i == "function" ? i : F(+i), u) : s;
294
- }, u.paddingOuter = function(i) {
295
- return arguments.length ? u.paddingTop(i).paddingRight(i).paddingBottom(i).paddingLeft(i) : u.paddingTop();
296
- }, u.paddingTop = function(i) {
297
- return arguments.length ? (l = typeof i == "function" ? i : F(+i), u) : l;
298
- }, u.paddingRight = function(i) {
299
- return arguments.length ? (h = typeof i == "function" ? i : F(+i), u) : h;
300
- }, u.paddingBottom = function(i) {
301
- return arguments.length ? (g = typeof i == "function" ? i : F(+i), u) : g;
302
- }, u.paddingLeft = function(i) {
303
- return arguments.length ? (b = typeof i == "function" ? i : F(+i), u) : b;
284
+ return u.round = function(n) {
285
+ return arguments.length ? (t = !!n, u) : t;
286
+ }, u.size = function(n) {
287
+ return arguments.length ? (i = +n[0], r = +n[1], u) : [i, r];
288
+ }, u.tile = function(n) {
289
+ return arguments.length ? (e = ge(n), u) : e;
290
+ }, u.padding = function(n) {
291
+ return arguments.length ? u.paddingInner(n).paddingOuter(n) : u.paddingInner();
292
+ }, u.paddingInner = function(n) {
293
+ return arguments.length ? (s = typeof n == "function" ? n : F(+n), u) : s;
294
+ }, u.paddingOuter = function(n) {
295
+ return arguments.length ? u.paddingTop(n).paddingRight(n).paddingBottom(n).paddingLeft(n) : u.paddingTop();
296
+ }, u.paddingTop = function(n) {
297
+ return arguments.length ? (l = typeof n == "function" ? n : F(+n), u) : l;
298
+ }, u.paddingRight = function(n) {
299
+ return arguments.length ? (h = typeof n == "function" ? n : F(+n), u) : h;
300
+ }, u.paddingBottom = function(n) {
301
+ return arguments.length ? (g = typeof n == "function" ? n : F(+n), u) : g;
302
+ }, u.paddingLeft = function(n) {
303
+ return arguments.length ? (b = typeof n == "function" ? n : F(+n), u) : b;
304
304
  }, u;
305
305
  }
306
306
  function lt(e) {
307
307
  const {
308
308
  data: t,
309
- colors: n,
309
+ colors: i,
310
310
  leftMargin: r,
311
311
  width: a,
312
312
  height: s,
@@ -316,7 +316,7 @@ function lt(e) {
316
316
  bottomMargin: b,
317
317
  showLabels: u,
318
318
  tooltip: y,
319
- onSeriesMouseOver: i,
319
+ onSeriesMouseOver: n,
320
320
  selectedColor: c,
321
321
  showValues: f,
322
322
  suffix: w,
@@ -377,7 +377,7 @@ function lt(e) {
377
377
  whileInView: {
378
378
  opacity: c ? (
379
379
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
380
- o.data.data.color && n[
380
+ o.data.data.color && i[
381
381
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
382
382
  l.indexOf(o.data.data.color)
383
383
  ] === c ? 1 : L
@@ -394,7 +394,7 @@ function lt(e) {
394
394
  animate: T ? "whileInView" : "initial",
395
395
  exit: { opacity: 0, transition: { duration: I.duration } },
396
396
  onMouseEnter: (M) => {
397
- N(o.data.data), P(M.clientY), R(M.clientX), i?.(o.data.data);
397
+ N(o.data.data), P(M.clientY), R(M.clientX), n?.(o.data.data);
398
398
  },
399
399
  onClick: () => {
400
400
  (j || x) && (// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -404,7 +404,7 @@ function lt(e) {
404
404
  N(o.data.data), P(M.clientY), R(M.clientX);
405
405
  },
406
406
  onMouseLeave: () => {
407
- N(void 0), R(void 0), P(void 0), i?.(void 0);
407
+ N(void 0), R(void 0), P(void 0), n?.(void 0);
408
408
  },
409
409
  children: [
410
410
  /* @__PURE__ */ v.jsx(
@@ -422,9 +422,9 @@ function lt(e) {
422
422
  initial: {
423
423
  width: 0,
424
424
  height: 0,
425
- fill: t.filter((M) => M.color).length === 0 ? n[0] : (
425
+ fill: t.filter((M) => M.color).length === 0 ? i[0] : (
426
426
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
427
- o.data.data.color ? n[
427
+ o.data.data.color ? i[
428
428
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
429
429
  l.indexOf(o.data.data.color)
430
430
  ] : V.gray
@@ -433,9 +433,9 @@ function lt(e) {
433
433
  whileInView: {
434
434
  width: o.x1 - o.x0,
435
435
  height: o.y1 - o.y0,
436
- fill: t.filter((M) => M.color).length === 0 ? n[0] : (
436
+ fill: t.filter((M) => M.color).length === 0 ? i[0] : (
437
437
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
438
- o.data.data.color ? n[
438
+ o.data.data.color ? i[
439
439
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
440
440
  l.indexOf(o.data.data.color)
441
441
  ] : V.gray
@@ -466,9 +466,9 @@ function lt(e) {
466
466
  className: "flex flex-col gap-0.5 p-2 w-full",
467
467
  style: {
468
468
  color: ee(
469
- t.filter((M) => M.color).length === 0 ? n[0] : (
469
+ t.filter((M) => M.color).length === 0 ? i[0] : (
470
470
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
471
- o.data.data.color ? n[
471
+ o.data.data.color ? i[
472
472
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
473
473
  l.indexOf(o.data.data.color)
474
474
  ] : V.gray
@@ -482,7 +482,7 @@ function lt(e) {
482
482
  marginBottom: "none",
483
483
  size: "sm",
484
484
  leading: "none",
485
- className: ie(
485
+ className: ne(
486
486
  "w-full treemap-label",
487
487
  O === "ar" || O === "he" ? "text-right" : "text-left",
488
488
  z?.graphObjectValues
@@ -493,9 +493,9 @@ function lt(e) {
493
493
  WebkitBoxOrient: "vertical",
494
494
  overflow: "hidden",
495
495
  color: ee(
496
- t.filter((M) => M.color).length === 0 ? n[0] : (
496
+ t.filter((M) => M.color).length === 0 ? i[0] : (
497
497
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
498
- o.data.data.color ? n[l.indexOf(
498
+ o.data.data.color ? i[l.indexOf(
499
499
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
500
500
  o.data.data.color
501
501
  )] : V.gray
@@ -513,16 +513,16 @@ function lt(e) {
513
513
  marginBottom: "none",
514
514
  size: "sm",
515
515
  leading: "none",
516
- className: ie(
516
+ className: ne(
517
517
  "w-full font-bold treemap-value",
518
518
  O === "ar" || O === "he" ? "text-right" : "text-left",
519
519
  z?.graphObjectValues
520
520
  ),
521
521
  style: {
522
522
  color: ee(
523
- t.filter((M) => M.color).length === 0 ? n[0] : (
523
+ t.filter((M) => M.color).length === 0 ? i[0] : (
524
524
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
525
- o.data.data.color ? n[l.indexOf(
525
+ o.data.data.color ? i[l.indexOf(
526
526
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
527
527
  o.data.data.color
528
528
  )] : V.gray
@@ -584,7 +584,7 @@ function lt(e) {
584
584
  function kt(e) {
585
585
  const {
586
586
  data: t,
587
- graphTitle: n,
587
+ graphTitle: i,
588
588
  colors: r,
589
589
  suffix: a = "",
590
590
  sources: s,
@@ -594,7 +594,7 @@ function kt(e) {
594
594
  rightMargin: b = 0,
595
595
  topMargin: u = 0,
596
596
  bottomMargin: y = 0,
597
- height: i,
597
+ height: n,
598
598
  width: c,
599
599
  footNote: f,
600
600
  colorDomain: w,
@@ -627,10 +627,10 @@ function kt(e) {
627
627
  } = e, [$, o] = A(0), [M, ae] = A(0), [me, ve] = A(void 0), W = re(null), le = re(null);
628
628
  return ye(() => {
629
629
  const m = new ResizeObserver((se) => {
630
- o(c || se[0].target.clientWidth || 620), ae(i || se[0].target.clientHeight || 480);
630
+ o(c || se[0].target.clientWidth || 620), ae(n || se[0].target.clientHeight || 480);
631
631
  });
632
632
  return W.current && (ae(W.current.clientHeight || 480), o(W.current.clientWidth || 620), c || m.observe(W.current)), () => m.disconnect();
633
- }, [c, i]), /* @__PURE__ */ v.jsx(
633
+ }, [c, n]), /* @__PURE__ */ v.jsx(
634
634
  "div",
635
635
  {
636
636
  className: `${E || "light"} flex ${c ? "w-fit grow-0" : "w-full grow"}`,
@@ -638,8 +638,9 @@ function kt(e) {
638
638
  children: /* @__PURE__ */ v.jsx(
639
639
  "div",
640
640
  {
641
- className: ie(
641
+ className: ne(
642
642
  `${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${N || "en"}`,
643
+ c ? "w-fit" : "w-full",
643
644
  S?.graphContainer
644
645
  ),
645
646
  style: {
@@ -648,14 +649,14 @@ function kt(e) {
648
649
  },
649
650
  id: L,
650
651
  ref: le,
651
- "aria-label": R || `${n ? `The graph shows ${n}. ` : ""}This is a chart where data points are represented by squares, and their sizes reflect their values. ${h ? ` ${h}` : ""}`,
652
+ "aria-label": R || `${i ? `The graph shows ${i}. ` : ""}This is a chart where data points are represented by squares, and their sizes reflect their values. ${h ? ` ${h}` : ""}`,
652
653
  children: /* @__PURE__ */ v.jsx(
653
654
  "div",
654
655
  {
655
656
  className: "flex grow",
656
657
  style: { padding: j ? d || "1rem" : d || 0 },
657
658
  children: /* @__PURE__ */ v.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
658
- n || h || T || H ? /* @__PURE__ */ v.jsx(
659
+ i || h || T || H ? /* @__PURE__ */ v.jsx(
659
660
  De,
660
661
  {
661
662
  styles: {
@@ -666,7 +667,7 @@ function kt(e) {
666
667
  title: S?.title,
667
668
  description: S?.description
668
669
  },
669
- graphTitle: n,
670
+ graphTitle: i,
670
671
  graphDescription: h,
671
672
  width: c,
672
673
  graphDownload: T ? le.current : void 0,
@@ -694,7 +695,7 @@ function kt(e) {
694
695
  className: "flex flex-col grow justify-center w-full leading-0",
695
696
  ref: W,
696
697
  "aria-label": "Graph area",
697
- children: (c || $) && (i || M) ? /* @__PURE__ */ v.jsx(
698
+ children: (c || $) && (n || M) ? /* @__PURE__ */ v.jsx(
698
699
  lt,
699
700
  {
700
701
  data: t.filter((m) => !Ce(m.size)),
@@ -706,7 +707,7 @@ function kt(e) {
706
707
  width: c || $,
707
708
  height: Math.max(
708
709
  B,
709
- i || (x ? B ? (c || $) * x > B ? (c || $) * x : B : (c || $) * x : M)
710
+ n || (x ? B ? (c || $) * x > B ? (c || $) * x : B : (c || $) * x : M)
710
711
  ),
711
712
  leftMargin: g,
712
713
  rightMargin: b,