@undp/data-viz 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +281 -274
  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.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +367 -356
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +406 -399
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.d.ts +10 -0
  31. package/dist/DonutChart.js +232 -263
  32. package/dist/DonutChart.js.map +1 -1
  33. package/dist/DualAxisLineChart.cjs +1 -1
  34. package/dist/DualAxisLineChart.cjs.map +1 -1
  35. package/dist/DualAxisLineChart.js +320 -313
  36. package/dist/DualAxisLineChart.js.map +1 -1
  37. package/dist/DumbbellChart.cjs +1 -1
  38. package/dist/DumbbellChart.cjs.map +1 -1
  39. package/dist/DumbbellChart.js +298 -291
  40. package/dist/DumbbellChart.js.map +1 -1
  41. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  42. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  44. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  46. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  47. package/dist/{GraphEl-sVZvlyWe.js → GraphEl-oZwZiTHI.js} +6 -3
  48. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  49. package/dist/GriddedGraphs.cjs +1 -1
  50. package/dist/GriddedGraphs.d.ts +1 -0
  51. package/dist/GriddedGraphs.js +1 -1
  52. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  53. package/dist/HeatMap.cjs +1 -1
  54. package/dist/HeatMap.cjs.map +1 -1
  55. package/dist/HeatMap.js +179 -172
  56. package/dist/HeatMap.js.map +1 -1
  57. package/dist/Histogram.cjs +1 -1
  58. package/dist/Histogram.js +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  61. package/dist/LineChartWithConfidenceInterval.js +370 -363
  62. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  63. package/dist/MultiGraphDashboard.d.ts +1 -0
  64. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  65. package/dist/MultiLineAltChart.cjs +1 -1
  66. package/dist/MultiLineAltChart.cjs.map +1 -1
  67. package/dist/MultiLineAltChart.js +328 -321
  68. package/dist/MultiLineAltChart.js.map +1 -1
  69. package/dist/MultiLineChart.cjs +1 -1
  70. package/dist/MultiLineChart.cjs.map +1 -1
  71. package/dist/MultiLineChart.js +375 -368
  72. package/dist/MultiLineChart.js.map +1 -1
  73. package/dist/ParetoChart.cjs +1 -1
  74. package/dist/ParetoChart.cjs.map +1 -1
  75. package/dist/ParetoChart.js +385 -378
  76. package/dist/ParetoChart.js.map +1 -1
  77. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  78. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  79. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  80. package/dist/RadarChart.cjs +1 -1
  81. package/dist/RadarChart.cjs.map +1 -1
  82. package/dist/RadarChart.js +35 -34
  83. package/dist/RadarChart.js.map +1 -1
  84. package/dist/SankeyChart.cjs +1 -1
  85. package/dist/SankeyChart.cjs.map +1 -1
  86. package/dist/SankeyChart.js +176 -169
  87. package/dist/SankeyChart.js.map +1 -1
  88. package/dist/ScatterPlot.cjs +1 -1
  89. package/dist/ScatterPlot.cjs.map +1 -1
  90. package/dist/ScatterPlot.js +367 -360
  91. package/dist/ScatterPlot.js.map +1 -1
  92. package/dist/ScrollStory.d.ts +1 -0
  93. package/dist/SimpleLineChart.cjs +1 -1
  94. package/dist/SimpleLineChart.cjs.map +1 -1
  95. package/dist/SimpleLineChart.js +286 -279
  96. package/dist/SimpleLineChart.js.map +1 -1
  97. package/dist/SingleGraphDashboard.cjs +1 -1
  98. package/dist/SingleGraphDashboard.d.ts +1 -0
  99. package/dist/SingleGraphDashboard.js +1 -1
  100. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  101. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  102. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  103. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  104. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  105. package/dist/SlopeChart.cjs +1 -1
  106. package/dist/SlopeChart.cjs.map +1 -1
  107. package/dist/SlopeChart.js +243 -236
  108. package/dist/SlopeChart.js.map +1 -1
  109. package/dist/SparkLine.cjs +1 -1
  110. package/dist/SparkLine.js +2 -2
  111. package/dist/StripChart.cjs +1 -1
  112. package/dist/StripChart.cjs.map +1 -1
  113. package/dist/StripChart.js +293 -286
  114. package/dist/StripChart.js.map +1 -1
  115. package/dist/TreeMapGraph.cjs +1 -1
  116. package/dist/TreeMapGraph.cjs.map +1 -1
  117. package/dist/TreeMapGraph.js +222 -215
  118. package/dist/TreeMapGraph.js.map +1 -1
  119. package/dist/Types.d.ts +1 -0
  120. package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
  121. package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
  122. package/dist/area-C1gxfNGD.cjs +2 -0
  123. package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
  124. package/dist/array-DMyR1sql.cjs +2 -0
  125. package/dist/array-DMyR1sql.cjs.map +1 -0
  126. package/dist/array-USo-Szhp.js +13 -0
  127. package/dist/array-USo-Szhp.js.map +1 -0
  128. package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
  129. package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
  130. package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
  131. package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
  132. package/dist/index-Blvf-Q3U.cjs +2 -0
  133. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  134. package/dist/index-D1RrKgK6.js +337 -0
  135. package/dist/index-D1RrKgK6.js.map +1 -0
  136. package/dist/index.cjs +1 -1
  137. package/dist/index.d.ts +7 -0
  138. package/dist/index.js +1 -1
  139. package/dist/line-DFlZsxI1.js +144 -0
  140. package/dist/line-DFlZsxI1.js.map +1 -0
  141. package/dist/line-DaEMhXmx.cjs +2 -0
  142. package/dist/line-DaEMhXmx.cjs.map +1 -0
  143. package/dist/style.css +1 -1
  144. package/package.json +1 -1
  145. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  146. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  147. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  148. package/dist/GraphEl-YKUlz-37.cjs +0 -2
  149. package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
  150. package/dist/GraphEl-sVZvlyWe.js.map +0 -1
  151. package/dist/area-D3Qx7k7K.cjs +0 -2
  152. package/dist/array-B7TkkRH0.js +0 -89
  153. package/dist/array-B7TkkRH0.js.map +0 -1
  154. package/dist/array-DKbXV8lR.cjs +0 -2
  155. package/dist/array-DKbXV8lR.cjs.map +0 -1
  156. package/dist/index-CF5hnGvG.cjs +0 -2
  157. package/dist/index-DPGq3eIL.js +0 -330
  158. package/dist/index-DPGq3eIL.js.map +0 -1
  159. package/dist/line-CPfhohvF.js +0 -68
  160. package/dist/line-CPfhohvF.js.map +0 -1
  161. package/dist/line-DHV4JwCR.cjs +0 -2
  162. package/dist/line-DHV4JwCR.cjs.map +0 -1
@@ -1,37 +1,37 @@
1
- import { c as Ce, j as l, m as Ne } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as je, useState as ne, useEffect as Oe } from "react";
3
- import { o as Be } from "./index-BZQYSqar.js";
4
- import { f as Pe, p as We } from "./parse-DlCRUFh_.js";
5
- import { g as Xe, N as Ye } from "./getSliderMarks-HIDJ0_Cd.js";
6
- import { i as Le } from "./index-Bwrro8-q.js";
7
- import { s as Ae } from "./index-CeVNqhMO.js";
8
- import { n as ke } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as Ie } from "./Tooltip-Dj5eVppQ.js";
1
+ import { c as Ie, j as l, m as Fe } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as Le, useState as ne, useEffect as $e } from "react";
3
+ import { o as Ge } from "./index-BZQYSqar.js";
4
+ import { f as De, p as He } from "./parse-DlCRUFh_.js";
5
+ import { g as Ue, N as Je } from "./getSliderMarks-HIDJ0_Cd.js";
6
+ import { i as Se } from "./index-Bwrro8-q.js";
7
+ import { s as ke } from "./index-CeVNqhMO.js";
8
+ import { n as Ne } from "./numberFormattingFunction-14YCbkN2.js";
9
+ import { T as Re } from "./Tooltip-Dj5eVppQ.js";
10
10
  import { c as b } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { A as $e } from "./Axis-CRyfcLjc.js";
12
- import { A as De } from "./AxisTitle-jeI7am8o.js";
13
- import { X as Ee } from "./XAxesLabels-Dy8E1SEo.js";
14
- import { R as Ge, a as He } from "./ReferenceLine-2XCwHXQ4.js";
15
- import { Y as Ue } from "./YTicksAndGridLines-Blepl7XF.js";
16
- import { X as Je } from "./XTicksAndGridLines-CObVFSm4.js";
17
- import { Y as Ke } from "./YAxesLabels-a57ZRv-0.js";
18
- import { D as Te } from "./DetailsModal-0Ry5nXiC.js";
19
- import { a as Fe } from "./linear-BqltdMeF.js";
20
- import { b as Se } from "./band-DHUZ2X7J.js";
21
- import { u as Re } from "./use-in-view-Cxa7y1TH.js";
11
+ import { A as qe } from "./Axis-CRyfcLjc.js";
12
+ import { A as Be } from "./AxisTitle-jeI7am8o.js";
13
+ import { X as Ke } from "./XAxesLabels-Dy8E1SEo.js";
14
+ import { R as Qe, a as Ze } from "./ReferenceLine-2XCwHXQ4.js";
15
+ import { Y as _e } from "./YTicksAndGridLines-Blepl7XF.js";
16
+ import { X as ti } from "./XTicksAndGridLines-CObVFSm4.js";
17
+ import { Y as ei } from "./YAxesLabels-a57ZRv-0.js";
18
+ import { D as Pe } from "./DetailsModal-0Ry5nXiC.js";
19
+ import { a as We } from "./linear-BqltdMeF.js";
20
+ import { b as Xe } from "./band-DHUZ2X7J.js";
21
+ import { u as Ye } from "./use-in-view-Cxa7y1TH.js";
22
22
  import { m as Vt } from "./proxy-BxkFHwUw.js";
23
- import { A as qe } from "./index-BqfRwk1n.js";
24
- import { Colors as ze } from "./Colors.js";
25
- import { E as Qe } from "./EmptyState-BZo1BbAn.js";
26
- import { a as Ze, G as _e } from "./GraphContainer-CRqzdKu2.js";
27
- import { GraphFooter as ti } from "./GraphFooter.js";
28
- import { GraphHeader as ei } from "./GraphHeader.js";
29
- import { ColorLegend as ii } from "./ColorLegend.js";
30
- import { b as ai } from "./ensureCompleteData-DS7gCvVd.js";
31
- import { P as ni, e as li } from "./index-D491FEn1.js";
32
- function si(e) {
33
- const t = Ce.c(160), {
34
- data: a,
23
+ import { A as Ee } from "./index-BqfRwk1n.js";
24
+ import { Colors as Oe } from "./Colors.js";
25
+ import { E as ii } from "./EmptyState-C7ZXkZWd.js";
26
+ import { a as ai, G as ni } from "./GraphContainer-CRqzdKu2.js";
27
+ import { GraphFooter as li } from "./GraphFooter.js";
28
+ import { GraphHeader as si } from "./GraphHeader.js";
29
+ import { ColorLegend as oi } from "./ColorLegend.js";
30
+ import { b as Te } from "./ensureCompleteData-DH5c52Ub.js";
31
+ import { P as ri, e as ci } from "./index-D491FEn1.js";
32
+ function ui(e) {
33
+ const t = Ie.c(160), {
34
+ data: i,
35
35
  width: zt,
36
36
  height: le,
37
37
  barColor: Yt,
@@ -53,113 +53,113 @@ function si(e) {
53
53
  minValue: pt,
54
54
  highlightedDataPoints: _,
55
55
  onSeriesMouseClick: rt,
56
- labelOrder: A,
56
+ labelOrder: V,
57
57
  maxBarThickness: Ut,
58
58
  minBarThickness: Ct,
59
59
  resetSelectionOnDoubleClick: Jt,
60
60
  detailsOnClick: ct,
61
- barAxisTitle: q,
61
+ barAxisTitle: B,
62
62
  valueColor: tt,
63
63
  noOfTicks: Ot,
64
- styles: x,
64
+ styles: p,
65
65
  classNames: s,
66
- targetStyle: f,
67
- targetColor: B,
66
+ targetStyle: h,
67
+ targetColor: P,
68
68
  qualitativeRangeColors: et,
69
69
  measureBarWidthFactor: y,
70
70
  animate: r,
71
- dimmedOpacity: h,
71
+ dimmedOpacity: f,
72
72
  precision: ut,
73
73
  customLayers: it,
74
- naLabel: N,
74
+ naLabel: L,
75
75
  targetLineThickness: ce
76
- } = e, P = xe === void 0 ? 20 : xe, Kt = Ht === void 0 ? 20 : Ht, pe = re === void 0 ? 20 : re, Qt = ve === void 0 ? 25 : ve, we = je(null);
76
+ } = e, W = xe === void 0 ? 20 : xe, Kt = Ht === void 0 ? 20 : Ht, pe = re === void 0 ? 20 : re, Qt = ve === void 0 ? 25 : ve, we = Le(null);
77
77
  let ge;
78
78
  t[0] !== r.amount || t[1] !== r.once ? (ge = {
79
79
  once: r.once,
80
80
  amount: r.amount
81
81
  }, t[0] = r.amount, t[1] = r.once, t[2] = ge) : ge = t[2];
82
- const L = Re(we, ge), W = q ? P + 30 : P;
82
+ const N = Ye(we, ge), X = B ? W + 30 : W;
83
83
  let Zt;
84
- t[3] !== Qt || t[4] !== Kt || t[5] !== W || t[6] !== pe ? (Zt = {
84
+ t[3] !== Qt || t[4] !== Kt || t[5] !== X || t[6] !== pe ? (Zt = {
85
85
  top: pe,
86
86
  bottom: Qt,
87
- left: W,
87
+ left: X,
88
88
  right: Kt
89
- }, t[3] = Qt, t[4] = Kt, t[5] = W, t[6] = pe, t[7] = Zt) : Zt = t[7];
90
- const p = Zt, [at, ye] = ne(void 0), [nt, gt] = ne(void 0), [Nt, ue] = ne(void 0), [me, _t] = ne(void 0), d = zt - p.left - p.right, Lt = le - p.top - p.bottom;
89
+ }, t[3] = Qt, t[4] = Kt, t[5] = X, t[6] = pe, t[7] = Zt) : Zt = t[7];
90
+ const g = Zt, [at, ye] = ne(void 0), [nt, gt] = ne(void 0), [Lt, ue] = ne(void 0), [me, _t] = ne(void 0), d = zt - g.left - g.right, Nt = le - g.top - g.bottom;
91
91
  let lt;
92
- t[8] !== a ? (lt = Math.max(...a.filter(Ii).map(Li)) < 0 ? 0 : Math.max(...a.filter(Ni).map(Oi)), t[8] = a, t[9] = lt) : lt = t[9];
92
+ t[8] !== i ? (lt = Math.max(...i.filter(Fi).map(Ti)) < 0 ? 0 : Math.max(...i.filter(Di).map($i)), t[8] = i, t[9] = lt) : lt = t[9];
93
93
  const yt = lt;
94
94
  let It;
95
- t[10] !== a ? (It = Math.max(...a.filter(Ci).map(ki)) < 0 ? 0 : Math.max(...a.filter(ji).map(zi)), t[10] = a, t[11] = It) : It = t[11];
95
+ t[10] !== i ? (It = Math.max(...i.filter(Ii).map(Ni)) < 0 ? 0 : Math.max(...i.filter(Li).map(Oi)), t[10] = i, t[11] = It) : It = t[11];
96
96
  const $t = It;
97
97
  let Dt;
98
- t[12] !== a ? (Dt = Math.max(...a.map(Ai)), t[12] = a, t[13] = Dt) : Dt = t[13];
98
+ t[12] !== i ? (Dt = Math.max(...i.map(ki)), t[12] = i, t[13] = Dt) : Dt = t[13];
99
99
  const Tt = Dt;
100
100
  let Ft;
101
101
  t[14] !== yt || t[15] !== v || t[16] !== Tt || t[17] !== $t ? (Ft = b(v) ? Math.max(...[yt, $t, Tt].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[yt, $t, Tt].filter(Number.isFinite)) : v, t[14] = yt, t[15] = v, t[16] = Tt, t[17] = $t, t[18] = Ft) : Ft = t[18];
102
102
  const St = Ft;
103
103
  let te;
104
- t[19] !== a ? (te = Math.min(...a.filter(Mi).map(wi)) >= 0 ? 0 : Math.min(...a.filter(vi).map(bi)), t[19] = a, t[20] = te) : te = t[20];
104
+ t[19] !== i ? (te = Math.min(...i.filter(ji).map(zi)) >= 0 ? 0 : Math.min(...i.filter(Vi).map(Ai)), t[19] = i, t[20] = te) : te = t[20];
105
105
  const Rt = te;
106
106
  let qt;
107
- t[21] !== a ? (qt = Math.min(...a.filter(yi).map(gi)) >= 0 ? 0 : Math.min(...a.filter(pi).map(xi)), t[21] = a, t[22] = qt) : qt = t[22];
107
+ t[21] !== i ? (qt = Math.min(...i.filter(Mi).map(wi)) >= 0 ? 0 : Math.min(...i.filter(vi).map(bi)), t[21] = i, t[22] = qt) : qt = t[22];
108
108
  const Bt = qt;
109
109
  let bt;
110
110
  t[23] !== Rt || t[24] !== pt || t[25] !== Bt ? (bt = b(pt) ? Math.min(...[Rt, Bt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[Rt, Bt].filter(Number.isFinite)) : pt, t[23] = Rt, t[24] = pt, t[25] = Bt, t[26] = bt) : bt = t[26];
111
111
  const k = bt;
112
112
  let I;
113
- if (t[27] !== a || t[28] !== A) {
114
- const c = /* @__PURE__ */ new Set(), n = a.map((j, wt) => {
115
- const R = A ? `${j.label}` : `${wt}`;
116
- return c.add(R), {
113
+ if (t[27] !== i || t[28] !== V) {
114
+ const u = /* @__PURE__ */ new Set(), n = i.map((j, wt) => {
115
+ const R = V ? `${j.label}` : `${wt}`;
116
+ return u.add(R), {
117
117
  ...j,
118
118
  id: R
119
119
  };
120
- }), z = A ? A.filter((j) => !c.has(j)) : [];
121
- I = [...n, ...z.map(di)], t[27] = a, t[28] = A, t[29] = I;
120
+ }), z = V ? V.filter((j) => !u.has(j)) : [];
121
+ I = [...n, ...z.map(yi)], t[27] = i, t[28] = V, t[29] = I;
122
122
  } else
123
123
  I = t[29];
124
124
  const mt = I;
125
125
  let st;
126
- t[30] !== mt || t[31] !== A ? (st = A ?? mt.map(hi), t[30] = mt, t[31] = A, t[32] = st) : st = t[32];
126
+ t[30] !== mt || t[31] !== V ? (st = V ?? mt.map(gi), t[30] = mt, t[31] = V, t[32] = st) : st = t[32];
127
127
  const vt = st;
128
- let ot, $, X, Y, D, E, G, M, C, w, V, H, U, J;
129
- if (t[33] !== r || t[34] !== q || t[35] !== Yt || t[36] !== vt || t[37] !== Et || t[38] !== s?.graphObjectValues || t[39] !== s?.xAxis?.axis || t[40] !== s?.xAxis?.labels || t[41] !== s?.yAxis?.gridLines || t[42] !== s?.yAxis?.labels || t[43] !== s?.yAxis?.title || t[44] !== it || t[45] !== mt || t[46] !== ct || t[47] !== h || t[48] !== Lt || t[49] !== d || t[50] !== le || t[51] !== _ || t[52] !== L || t[53] !== P || t[54] !== p.bottom || t[55] !== p.left || t[56] !== p.right || t[57] !== p.top || t[58] !== Ut || t[59] !== y || t[60] !== Ct || t[61] !== nt || t[62] !== N || t[63] !== Ot || t[64] !== rt || t[65] !== xt || t[66] !== ut || t[67] !== O || t[68] !== et || t[69] !== kt || t[70] !== Jt || t[71] !== Gt || t[72] !== de || t[73] !== se || t[74] !== x?.graphObjectValues || t[75] !== x?.xAxis?.axis || t[76] !== x?.xAxis?.labels || t[77] !== x?.yAxis?.gridLines || t[78] !== x?.yAxis?.labels || t[79] !== x?.yAxis?.title || t[80] !== jt || t[81] !== B || t[82] !== ce || t[83] !== f || t[84] !== oe || t[85] !== tt || t[86] !== zt || t[87] !== St || t[88] !== k) {
130
- const c = Fe().domain([k, St]).range([Lt, 0]).nice(), n = Se().domain(vt).range([0, Ct ? Math.max(d, Ct * vt.length) : Ut ? Math.min(d, Ut * vt.length) : d]).paddingInner(Et), z = c.ticks(Ot);
131
- $ = Vt.svg, w = `${zt}px`, V = `${le}px`, H = `0 0 ${zt} ${le}`, U = "ltr", J = we, D = `translate(${p.left},${p.top})`;
132
- const j = c(k < 0 ? 0 : k), wt = c(k < 0 ? 0 : k), R = k < 0 ? 0 : k;
128
+ let ot, $, Y, E, D, G, H, A, C, w, M, U, J, K;
129
+ if (t[33] !== r || t[34] !== B || t[35] !== Yt || t[36] !== vt || t[37] !== Et || t[38] !== s?.graphObjectValues || t[39] !== s?.xAxis?.axis || t[40] !== s?.xAxis?.labels || t[41] !== s?.yAxis?.gridLines || t[42] !== s?.yAxis?.labels || t[43] !== s?.yAxis?.title || t[44] !== it || t[45] !== mt || t[46] !== ct || t[47] !== f || t[48] !== Nt || t[49] !== d || t[50] !== le || t[51] !== _ || t[52] !== N || t[53] !== W || t[54] !== g.bottom || t[55] !== g.left || t[56] !== g.right || t[57] !== g.top || t[58] !== Ut || t[59] !== y || t[60] !== Ct || t[61] !== nt || t[62] !== L || t[63] !== Ot || t[64] !== rt || t[65] !== xt || t[66] !== ut || t[67] !== O || t[68] !== et || t[69] !== kt || t[70] !== Jt || t[71] !== Gt || t[72] !== de || t[73] !== se || t[74] !== p?.graphObjectValues || t[75] !== p?.xAxis?.axis || t[76] !== p?.xAxis?.labels || t[77] !== p?.yAxis?.gridLines || t[78] !== p?.yAxis?.labels || t[79] !== p?.yAxis?.title || t[80] !== jt || t[81] !== P || t[82] !== ce || t[83] !== h || t[84] !== oe || t[85] !== tt || t[86] !== zt || t[87] !== St || t[88] !== k) {
130
+ const u = We().domain([k, St]).range([Nt, 0]).nice(), n = Xe().domain(vt).range([0, Ct ? Math.max(d, Ct * vt.length) : Ut ? Math.min(d, Ut * vt.length) : d]).paddingInner(Et), z = u.ticks(Ot);
131
+ $ = Vt.svg, w = `${zt}px`, M = `${le}px`, U = `0 0 ${zt} ${le}`, J = "ltr", K = we, D = `translate(${g.left},${g.top})`;
132
+ const j = u(k < 0 ? 0 : k), wt = u(k < 0 ? 0 : k), R = k < 0 ? 0 : k;
133
133
  let m;
134
- t[103] !== N || t[104] !== ut || t[105] !== O || t[106] !== jt || t[107] !== R ? (m = ke(R, N, ut, O, jt), t[103] = N, t[104] = ut, t[105] = O, t[106] = jt, t[107] = R, t[108] = m) : m = t[108];
135
- const Q = s?.xAxis?.axis, fe = s?.yAxis?.labels;
134
+ t[103] !== L || t[104] !== ut || t[105] !== O || t[106] !== jt || t[107] !== R ? (m = Ne(R, L, ut, O, jt), t[103] = L, t[104] = ut, t[105] = O, t[106] = jt, t[107] = R, t[108] = m) : m = t[108];
135
+ const q = s?.xAxis?.axis, fe = s?.yAxis?.labels;
136
136
  let Mt;
137
- t[109] !== Q || t[110] !== fe ? (Mt = {
138
- axis: Q,
137
+ t[109] !== q || t[110] !== fe ? (Mt = {
138
+ axis: q,
139
139
  label: fe
140
- }, t[109] = Q, t[110] = fe, t[111] = Mt) : Mt = t[111];
141
- const ee = x?.xAxis?.axis, Wt = x?.yAxis?.labels;
142
- let i;
143
- t[112] !== ee || t[113] !== Wt ? (i = {
140
+ }, t[109] = q, t[110] = fe, t[111] = Mt) : Mt = t[111];
141
+ const ee = p?.xAxis?.axis, Wt = p?.yAxis?.labels;
142
+ let a;
143
+ t[112] !== ee || t[113] !== Wt ? (a = {
144
144
  axis: ee,
145
145
  label: Wt
146
- }, t[112] = ee, t[113] = Wt, t[114] = i) : i = t[114], E = /* @__PURE__ */ l.jsx($e, { y1: j, y2: wt, x1: 0 - P, x2: d + p.right, label: m, labelPos: {
147
- x: 0 - P,
146
+ }, t[112] = ee, t[113] = Wt, t[114] = a) : a = t[114], G = /* @__PURE__ */ l.jsx(qe, { y1: j, y2: wt, x1: 0 - W, x2: d + g.right, label: m, labelPos: {
147
+ x: 0 - W,
148
148
  dx: 0,
149
149
  dy: St < 0 ? "1em" : -5,
150
- y: c(k < 0 ? 0 : k)
151
- }, classNames: Mt, styles: i }), G = de ? /* @__PURE__ */ l.jsx(Ue, { values: z.filter(fi), y: z.filter(mi).map((o) => c(o)), x1: 0 - P, x2: d + p.right, styles: {
152
- gridLines: x?.yAxis?.gridLines,
153
- labels: x?.yAxis?.labels
150
+ y: u(k < 0 ? 0 : k)
151
+ }, classNames: Mt, styles: a }), H = de ? /* @__PURE__ */ l.jsx(_e, { values: z.filter(pi), y: z.filter(xi).map((o) => u(o)), x1: 0 - W, x2: d + g.right, styles: {
152
+ gridLines: p?.yAxis?.gridLines,
153
+ labels: p?.yAxis?.labels
154
154
  }, classNames: {
155
155
  gridLines: s?.yAxis?.gridLines,
156
156
  labels: s?.yAxis?.labels
157
157
  }, suffix: jt, prefix: O, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: ut }) : null;
158
- const Z = 0 - P - 15, At = Lt / 2, be = x?.yAxis?.title, Me = s?.yAxis?.title;
159
- t[115] !== q || t[116] !== Z || t[117] !== At || t[118] !== be || t[119] !== Me ? (M = /* @__PURE__ */ l.jsx(De, { x: Z, y: At, style: be, className: Me, text: q, rotate90: !0 }), t[115] = q, t[116] = Z, t[117] = At, t[118] = be, t[119] = Me, t[120] = M) : M = t[120], t[121] !== it ? (C = it.filter(ui).map(ci), t[121] = it, t[122] = C) : C = t[122], ot = qe, X = mt.map((o) => b(n(o.id)) ? null : /* @__PURE__ */ l.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (ht) => {
158
+ const Z = 0 - W - 15, At = Nt / 2, be = p?.yAxis?.title, Me = s?.yAxis?.title;
159
+ t[115] !== B || t[116] !== Z || t[117] !== At || t[118] !== be || t[119] !== Me ? (A = /* @__PURE__ */ l.jsx(Be, { x: Z, y: At, style: be, className: Me, text: B, rotate90: !0 }), t[115] = B, t[116] = Z, t[117] = At, t[118] = be, t[119] = Me, t[120] = A) : A = t[120], t[121] !== it ? (C = it.filter(di).map(hi), t[121] = it, t[122] = C) : C = t[122], ot = Ee, Y = mt.map((o) => b(n(o.id)) ? null : /* @__PURE__ */ l.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (ht) => {
160
160
  ye(o), _t(ht.clientY), ue(ht.clientX), xt?.(o);
161
161
  }, onClick: () => {
162
- (rt || ct) && (Le(nt, o) && Jt ? (gt(void 0), rt?.(void 0)) : (gt(o), rt?.(o)));
162
+ (rt || ct) && (Se(nt, o) && Jt ? (gt(void 0), rt?.(void 0)) : (gt(o), rt?.(o)));
163
163
  }, onMouseMove: (ht) => {
164
164
  ye(o), _t(ht.clientY), ue(ht.clientX);
165
165
  }, onMouseLeave: () => {
@@ -173,152 +173,152 @@ function si(e) {
173
173
  initial: {
174
174
  x: n(`${o.id}`),
175
175
  y: 0,
176
- opacity: _.length !== 0 ? _.indexOf(o.label) !== -1 ? 0.85 : h : 0.85
176
+ opacity: _.length !== 0 ? _.indexOf(o.label) !== -1 ? 0.85 : f : 0.85
177
177
  },
178
178
  whileInView: {
179
179
  x: n(`${o.id}`),
180
180
  y: 0,
181
- opacity: _.length !== 0 ? _.indexOf(o.label) !== -1 ? 0.85 : h : 0.85,
181
+ opacity: _.length !== 0 ? _.indexOf(o.label) !== -1 ? 0.85 : f : 0.85,
182
182
  transition: {
183
183
  duration: r.duration
184
184
  }
185
185
  }
186
- }, initial: "initial", animate: L ? "whileInView" : "initial", children: [
186
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: [
187
187
  o.qualitativeRange ? o.qualitativeRange.map((ht, Xt) => /* @__PURE__ */ l.jsx(Vt.rect, { x: 0, exit: {
188
188
  height: 0,
189
- y: c(0),
189
+ y: u(0),
190
190
  transition: {
191
191
  duration: r.duration
192
192
  }
193
193
  }, variants: {
194
194
  initial: {
195
195
  height: 0,
196
- y: c(0),
196
+ y: u(0),
197
197
  fill: et[Xt]
198
198
  },
199
199
  whileInView: {
200
- height: Math.abs(c(Ae(o.qualitativeRange.filter((ie, ae) => ae <= Xt && ie))) - c(Ae(o.qualitativeRange.filter((ie, ae) => ae < Xt && ie)))),
201
- y: c(Ae(o.qualitativeRange.filter((ie, ae) => ae <= Xt && ie))),
200
+ height: Math.abs(u(ke(o.qualitativeRange.filter((ie, ae) => ae <= Xt && ie))) - u(ke(o.qualitativeRange.filter((ie, ae) => ae < Xt && ie)))),
201
+ y: u(ke(o.qualitativeRange.filter((ie, ae) => ae <= Xt && ie))),
202
202
  fill: et[Xt],
203
203
  transition: {
204
204
  duration: r.duration
205
205
  }
206
206
  }
207
- }, initial: "initial", animate: L ? "whileInView" : "initial", width: n.bandwidth() }, Xt)) : null,
208
- o.target && f === "background" ? /* @__PURE__ */ l.jsx(Vt.rect, { x: 0, width: n.bandwidth(), exit: {
207
+ }, initial: "initial", animate: N ? "whileInView" : "initial", width: n.bandwidth() }, Xt)) : null,
208
+ o.target && h === "background" ? /* @__PURE__ */ l.jsx(Vt.rect, { x: 0, width: n.bandwidth(), exit: {
209
209
  height: 0,
210
- y: c(0),
211
- fill: B,
210
+ y: u(0),
211
+ fill: P,
212
212
  transition: {
213
213
  duration: r.duration
214
214
  }
215
215
  }, variants: {
216
216
  initial: {
217
217
  height: 0,
218
- fill: B,
219
- y: c(0)
218
+ fill: P,
219
+ y: u(0)
220
220
  },
221
221
  whileInView: {
222
- height: Math.abs(c(o.target) - c(0)),
223
- fill: B,
224
- y: o.target > 0 ? c(o.target) : c(0),
222
+ height: Math.abs(u(o.target) - u(0)),
223
+ fill: P,
224
+ y: o.target > 0 ? u(o.target) : u(0),
225
225
  transition: {
226
226
  duration: r.duration
227
227
  }
228
228
  }
229
- }, initial: "initial", animate: L ? "whileInView" : "initial" }) : null,
229
+ }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
230
230
  o.size ? /* @__PURE__ */ l.jsx(Vt.rect, { x: n.bandwidth() * ((1 - y) / 2), width: n.bandwidth() * y, style: {
231
231
  fill: Yt
232
232
  }, exit: {
233
233
  height: 0,
234
- y: c(0),
234
+ y: u(0),
235
235
  transition: {
236
236
  duration: r.duration
237
237
  }
238
238
  }, variants: {
239
239
  initial: {
240
240
  height: 0,
241
- y: c(0)
241
+ y: u(0)
242
242
  },
243
243
  whileInView: {
244
- height: Math.abs(c(o.size) - c(0)),
245
- y: o.size > 0 ? c(o.size) : c(0),
244
+ height: Math.abs(u(o.size) - u(0)),
245
+ y: o.size > 0 ? u(o.size) : u(0),
246
246
  transition: {
247
247
  duration: r.duration
248
248
  }
249
249
  }
250
- }, initial: "initial", animate: L ? "whileInView" : "initial" }) : null,
251
- o.target && f === "line" ? /* @__PURE__ */ l.jsx(Vt.rect, { x: 0, width: n.bandwidth(), exit: {
252
- y: c(0),
250
+ }, initial: "initial", animate: N ? "whileInView" : "initial" }) : null,
251
+ o.target && h === "line" ? /* @__PURE__ */ l.jsx(Vt.rect, { x: 0, width: n.bandwidth(), exit: {
252
+ y: u(0),
253
253
  opacity: 0,
254
- fill: B,
254
+ fill: P,
255
255
  transition: {
256
256
  duration: r.duration
257
257
  }
258
258
  }, variants: {
259
259
  initial: {
260
- y: c(0),
260
+ y: u(0),
261
261
  opacity: 0,
262
- fill: B
262
+ fill: P
263
263
  },
264
264
  whileInView: {
265
- y: c(o.target) - ce / 2,
265
+ y: u(o.target) - ce / 2,
266
266
  opacity: 1,
267
- fill: B,
267
+ fill: P,
268
268
  transition: {
269
269
  duration: r.duration
270
270
  }
271
271
  }
272
- }, initial: "initial", animate: L ? "whileInView" : "initial", height: ce }) : null,
273
- Gt ? /* @__PURE__ */ l.jsx(Ee, { value: `${o.label}`.length < oe ? `${o.label}` : `${`${o.label}`.substring(0, oe)}...`, y: (o.size || 0) < 0 ? 0 : c(0) + 5, x: 0, width: n.bandwidth(), height: (o.size || 0) < 0 ? c(0) - 5 : p.bottom, style: x?.xAxis?.labels, className: s?.xAxis?.labels, alignment: (o.size || 0) < 0 ? "bottom" : "top", animate: r, isInView: L }) : null,
272
+ }, initial: "initial", animate: N ? "whileInView" : "initial", height: ce }) : null,
273
+ Gt ? /* @__PURE__ */ l.jsx(Ke, { value: `${o.label}`.length < oe ? `${o.label}` : `${`${o.label}`.substring(0, oe)}...`, y: (o.size || 0) < 0 ? 0 : u(0) + 5, x: 0, width: n.bandwidth(), height: (o.size || 0) < 0 ? u(0) - 5 : g.bottom, style: p?.xAxis?.labels, className: s?.xAxis?.labels, alignment: (o.size || 0) < 0 ? "bottom" : "top", animate: r, isInView: N }) : null,
274
274
  se ? /* @__PURE__ */ l.jsx(Vt.text, { x: n.bandwidth() / 2, style: {
275
275
  textAnchor: "middle",
276
- ...x?.graphObjectValues || {}
277
- }, className: Ne("graph-value text-sm", !tt && Yt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", s?.graphObjectValues), dy: o.size ? o.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
276
+ ...p?.graphObjectValues || {}
277
+ }, className: Fe("graph-value text-sm", !tt && Yt.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", s?.graphObjectValues), dy: o.size ? o.size >= 0 ? "-5px" : "1em" : "-5px", exit: {
278
278
  opacity: 0,
279
279
  transition: {
280
280
  duration: r.duration
281
281
  }
282
282
  }, variants: {
283
283
  initial: {
284
- y: c(0),
284
+ y: u(0),
285
285
  opacity: 0,
286
286
  fill: tt || Yt
287
287
  },
288
288
  whileInView: {
289
- y: c(o.size || 0),
289
+ y: u(o.size || 0),
290
290
  opacity: 1,
291
291
  fill: tt || Yt,
292
292
  transition: {
293
293
  duration: r.duration
294
294
  }
295
295
  }
296
- }, initial: "initial", animate: L ? "whileInView" : "initial", children: ke(o.size, N, ut, O, jt) }) : null
297
- ] }, o.label)), Y = kt ? /* @__PURE__ */ l.jsx(l.Fragment, { children: kt.map((o, ht) => /* @__PURE__ */ l.jsx(He, { text: o.text, color: o.color, y: c(o.value), x1: 0 - P, x2: d + p.right, classNames: o.classNames, styles: o.styles, animate: r, isInView: L }, ht)) }) : null, t[33] = r, t[34] = q, t[35] = Yt, t[36] = vt, t[37] = Et, t[38] = s?.graphObjectValues, t[39] = s?.xAxis?.axis, t[40] = s?.xAxis?.labels, t[41] = s?.yAxis?.gridLines, t[42] = s?.yAxis?.labels, t[43] = s?.yAxis?.title, t[44] = it, t[45] = mt, t[46] = ct, t[47] = h, t[48] = Lt, t[49] = d, t[50] = le, t[51] = _, t[52] = L, t[53] = P, t[54] = p.bottom, t[55] = p.left, t[56] = p.right, t[57] = p.top, t[58] = Ut, t[59] = y, t[60] = Ct, t[61] = nt, t[62] = N, t[63] = Ot, t[64] = rt, t[65] = xt, t[66] = ut, t[67] = O, t[68] = et, t[69] = kt, t[70] = Jt, t[71] = Gt, t[72] = de, t[73] = se, t[74] = x?.graphObjectValues, t[75] = x?.xAxis?.axis, t[76] = x?.xAxis?.labels, t[77] = x?.yAxis?.gridLines, t[78] = x?.yAxis?.labels, t[79] = x?.yAxis?.title, t[80] = jt, t[81] = B, t[82] = ce, t[83] = f, t[84] = oe, t[85] = tt, t[86] = zt, t[87] = St, t[88] = k, t[89] = ot, t[90] = $, t[91] = X, t[92] = Y, t[93] = D, t[94] = E, t[95] = G, t[96] = M, t[97] = C, t[98] = w, t[99] = V, t[100] = H, t[101] = U, t[102] = J;
296
+ }, initial: "initial", animate: N ? "whileInView" : "initial", children: Ne(o.size, L, ut, O, jt) }) : null
297
+ ] }, o.label)), E = kt ? /* @__PURE__ */ l.jsx(l.Fragment, { children: kt.map((o, ht) => /* @__PURE__ */ l.jsx(Ze, { text: o.text, color: o.color, y: u(o.value), x1: 0 - W, x2: d + g.right, classNames: o.classNames, styles: o.styles, animate: r, isInView: N }, ht)) }) : null, t[33] = r, t[34] = B, t[35] = Yt, t[36] = vt, t[37] = Et, t[38] = s?.graphObjectValues, t[39] = s?.xAxis?.axis, t[40] = s?.xAxis?.labels, t[41] = s?.yAxis?.gridLines, t[42] = s?.yAxis?.labels, t[43] = s?.yAxis?.title, t[44] = it, t[45] = mt, t[46] = ct, t[47] = f, t[48] = Nt, t[49] = d, t[50] = le, t[51] = _, t[52] = N, t[53] = W, t[54] = g.bottom, t[55] = g.left, t[56] = g.right, t[57] = g.top, t[58] = Ut, t[59] = y, t[60] = Ct, t[61] = nt, t[62] = L, t[63] = Ot, t[64] = rt, t[65] = xt, t[66] = ut, t[67] = O, t[68] = et, t[69] = kt, t[70] = Jt, t[71] = Gt, t[72] = de, t[73] = se, t[74] = p?.graphObjectValues, t[75] = p?.xAxis?.axis, t[76] = p?.xAxis?.labels, t[77] = p?.yAxis?.gridLines, t[78] = p?.yAxis?.labels, t[79] = p?.yAxis?.title, t[80] = jt, t[81] = P, t[82] = ce, t[83] = h, t[84] = oe, t[85] = tt, t[86] = zt, t[87] = St, t[88] = k, t[89] = ot, t[90] = $, t[91] = Y, t[92] = E, t[93] = D, t[94] = G, t[95] = H, t[96] = A, t[97] = C, t[98] = w, t[99] = M, t[100] = U, t[101] = J, t[102] = K;
298
298
  } else
299
- ot = t[89], $ = t[90], X = t[91], Y = t[92], D = t[93], E = t[94], G = t[95], M = t[96], C = t[97], w = t[98], V = t[99], H = t[100], U = t[101], J = t[102];
300
- let K;
301
- t[123] !== ot || t[124] !== X || t[125] !== Y ? (K = /* @__PURE__ */ l.jsxs(ot, { children: [
302
- X,
303
- Y
304
- ] }), t[123] = ot, t[124] = X, t[125] = Y, t[126] = K) : K = t[126];
299
+ ot = t[89], $ = t[90], Y = t[91], E = t[92], D = t[93], G = t[94], H = t[95], A = t[96], C = t[97], w = t[98], M = t[99], U = t[100], J = t[101], K = t[102];
300
+ let Q;
301
+ t[123] !== ot || t[124] !== Y || t[125] !== E ? (Q = /* @__PURE__ */ l.jsxs(ot, { children: [
302
+ Y,
303
+ E
304
+ ] }), t[123] = ot, t[124] = Y, t[125] = E, t[126] = Q) : Q = t[126];
305
305
  let T;
306
- t[127] !== it ? (T = it.filter(ri).map(oi), t[127] = it, t[128] = T) : T = t[128];
307
- let u;
308
- t[129] !== D || t[130] !== E || t[131] !== G || t[132] !== M || t[133] !== C || t[134] !== K || t[135] !== T ? (u = /* @__PURE__ */ l.jsxs("g", { transform: D, children: [
309
- E,
306
+ t[127] !== it ? (T = it.filter(fi).map(mi), t[127] = it, t[128] = T) : T = t[128];
307
+ let c;
308
+ t[129] !== D || t[130] !== G || t[131] !== H || t[132] !== A || t[133] !== C || t[134] !== Q || t[135] !== T ? (c = /* @__PURE__ */ l.jsxs("g", { transform: D, children: [
310
309
  G,
311
- M,
310
+ H,
311
+ A,
312
312
  C,
313
- K,
313
+ Q,
314
314
  T
315
- ] }), t[129] = D, t[130] = E, t[131] = G, t[132] = M, t[133] = C, t[134] = K, t[135] = T, t[136] = u) : u = t[136];
315
+ ] }), t[129] = D, t[130] = G, t[131] = H, t[132] = A, t[133] = C, t[134] = Q, t[135] = T, t[136] = c) : c = t[136];
316
316
  let F;
317
- t[137] !== $ || t[138] !== w || t[139] !== V || t[140] !== H || t[141] !== U || t[142] !== J || t[143] !== u ? (F = /* @__PURE__ */ l.jsx($, { width: w, height: V, viewBox: H, direction: U, ref: J, children: u }), t[137] = $, t[138] = w, t[139] = V, t[140] = H, t[141] = U, t[142] = J, t[143] = u, t[144] = F) : F = t[144];
317
+ t[137] !== $ || t[138] !== w || t[139] !== M || t[140] !== U || t[141] !== J || t[142] !== K || t[143] !== c ? (F = /* @__PURE__ */ l.jsx($, { width: w, height: M, viewBox: U, direction: J, ref: K, children: c }), t[137] = $, t[138] = w, t[139] = M, t[140] = U, t[141] = J, t[142] = K, t[143] = c, t[144] = F) : F = t[144];
318
318
  let ft;
319
- t[145] !== s?.tooltip || t[146] !== Nt || t[147] !== me || t[148] !== at || t[149] !== x?.tooltip || t[150] !== dt ? (ft = at && dt && Nt && me ? /* @__PURE__ */ l.jsx(Ie, { data: at, body: dt, xPos: Nt, yPos: me, backgroundStyle: x?.tooltip, className: s?.tooltip }) : null, t[145] = s?.tooltip, t[146] = Nt, t[147] = me, t[148] = at, t[149] = x?.tooltip, t[150] = dt, t[151] = ft) : ft = t[151];
319
+ t[145] !== s?.tooltip || t[146] !== Lt || t[147] !== me || t[148] !== at || t[149] !== p?.tooltip || t[150] !== dt ? (ft = at && dt && Lt && me ? /* @__PURE__ */ l.jsx(Re, { data: at, body: dt, xPos: Lt, yPos: me, backgroundStyle: p?.tooltip, className: s?.tooltip }) : null, t[145] = s?.tooltip, t[146] = Lt, t[147] = me, t[148] = at, t[149] = p?.tooltip, t[150] = dt, t[151] = ft) : ft = t[151];
320
320
  let S;
321
- t[152] !== s?.modal || t[153] !== ct || t[154] !== nt ? (S = ct && nt !== void 0 ? /* @__PURE__ */ l.jsx(Te, { body: ct, data: nt, setData: gt, className: s?.modal }) : null, t[152] = s?.modal, t[153] = ct, t[154] = nt, t[155] = S) : S = t[155];
321
+ t[152] !== s?.modal || t[153] !== ct || t[154] !== nt ? (S = ct && nt !== void 0 ? /* @__PURE__ */ l.jsx(Pe, { body: ct, data: nt, setData: gt, className: s?.modal }) : null, t[152] = s?.modal, t[153] = ct, t[154] = nt, t[155] = S) : S = t[155];
322
322
  let Pt;
323
323
  return t[156] !== F || t[157] !== ft || t[158] !== S ? (Pt = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
324
324
  F,
@@ -326,28 +326,28 @@ function si(e) {
326
326
  S
327
327
  ] }), t[156] = F, t[157] = ft, t[158] = S, t[159] = Pt) : Pt = t[159], Pt;
328
328
  }
329
- function oi(e) {
329
+ function mi(e) {
330
330
  return e.layer;
331
331
  }
332
- function ri(e) {
332
+ function fi(e) {
333
333
  return e.position === "after";
334
334
  }
335
- function ci(e) {
335
+ function hi(e) {
336
336
  return e.layer;
337
337
  }
338
- function ui(e) {
338
+ function di(e) {
339
339
  return e.position === "before";
340
340
  }
341
- function mi(e) {
341
+ function xi(e) {
342
342
  return e !== 0;
343
343
  }
344
- function fi(e) {
344
+ function pi(e) {
345
345
  return e !== 0;
346
346
  }
347
- function hi(e) {
347
+ function gi(e) {
348
348
  return `${e.id}`;
349
349
  }
350
- function di(e) {
350
+ function yi(e) {
351
351
  return {
352
352
  id: e,
353
353
  label: e,
@@ -356,63 +356,63 @@ function di(e) {
356
356
  qualitativeRange: null
357
357
  };
358
358
  }
359
- function xi(e) {
359
+ function bi(e) {
360
360
  return e.target;
361
361
  }
362
- function pi(e) {
362
+ function vi(e) {
363
363
  return !b(e.target);
364
364
  }
365
- function gi(e) {
365
+ function wi(e) {
366
366
  return e.target;
367
367
  }
368
- function yi(e) {
368
+ function Mi(e) {
369
369
  return !b(e.target);
370
370
  }
371
- function bi(e) {
371
+ function Ai(e) {
372
372
  return e.size;
373
373
  }
374
- function vi(e) {
374
+ function Vi(e) {
375
375
  return !b(e.size);
376
376
  }
377
- function wi(e) {
377
+ function zi(e) {
378
378
  return e.size;
379
379
  }
380
- function Mi(e) {
380
+ function ji(e) {
381
381
  return !b(e.size);
382
382
  }
383
- function Ai(e) {
384
- return Ae((e.qualitativeRange || []).filter(Vi)) || 0;
383
+ function ki(e) {
384
+ return ke((e.qualitativeRange || []).filter(Ci)) || 0;
385
385
  }
386
- function Vi(e) {
386
+ function Ci(e) {
387
387
  return !b(e);
388
388
  }
389
- function zi(e) {
389
+ function Oi(e) {
390
390
  return e.target;
391
391
  }
392
- function ji(e) {
392
+ function Li(e) {
393
393
  return !b(e.size);
394
394
  }
395
- function ki(e) {
395
+ function Ni(e) {
396
396
  return e.target;
397
397
  }
398
- function Ci(e) {
398
+ function Ii(e) {
399
399
  return !b(e.target);
400
400
  }
401
- function Oi(e) {
401
+ function $i(e) {
402
402
  return e.size;
403
403
  }
404
- function Ni(e) {
404
+ function Di(e) {
405
405
  return !b(e.size);
406
406
  }
407
- function Li(e) {
407
+ function Ti(e) {
408
408
  return e.size;
409
409
  }
410
- function Ii(e) {
410
+ function Fi(e) {
411
411
  return !b(e.size);
412
412
  }
413
- function $i(e) {
414
- const t = Ce.c(152), {
415
- data: a,
413
+ function Si(e) {
414
+ const t = Ie.c(152), {
415
+ data: i,
416
416
  topMargin: zt,
417
417
  bottomMargin: le,
418
418
  leftMargin: Yt,
@@ -434,34 +434,34 @@ function $i(e) {
434
434
  maxValue: pt,
435
435
  minValue: _,
436
436
  onSeriesMouseClick: rt,
437
- labelOrder: A,
437
+ labelOrder: V,
438
438
  rtl: Ut,
439
439
  maxBarThickness: Ct,
440
440
  minBarThickness: Jt,
441
441
  resetSelectionOnDoubleClick: ct,
442
- detailsOnClick: q,
442
+ detailsOnClick: B,
443
443
  barAxisTitle: tt,
444
444
  valueColor: Ot,
445
- noOfTicks: x,
445
+ noOfTicks: p,
446
446
  styles: s,
447
- classNames: f,
448
- targetStyle: B,
447
+ classNames: h,
448
+ targetStyle: P,
449
449
  targetColor: et,
450
450
  qualitativeRangeColors: y,
451
451
  measureBarWidthFactor: r,
452
- animate: h,
452
+ animate: f,
453
453
  dimmedOpacity: ut,
454
454
  precision: it,
455
- customLayers: N,
455
+ customLayers: L,
456
456
  naLabel: ce,
457
- targetLineThickness: P
458
- } = e, Kt = zt === void 0 ? 25 : zt, pe = le === void 0 ? 10 : le, Qt = Yt === void 0 ? 100 : Yt, we = jt === void 0 ? 40 : jt, ge = je(null);
459
- let L;
460
- t[0] !== h.amount || t[1] !== h.once ? (L = {
461
- once: h.once,
462
- amount: h.amount
463
- }, t[0] = h.amount, t[1] = h.once, t[2] = L) : L = t[2];
464
- const W = Re(ge, L), [Zt, p] = ne(void 0), [at, ye] = ne(void 0), [nt, gt] = ne(void 0), [Nt, ue] = ne(void 0), me = tt ? Kt + 25 : Kt;
457
+ targetLineThickness: W
458
+ } = e, Kt = zt === void 0 ? 25 : zt, pe = le === void 0 ? 10 : le, Qt = Yt === void 0 ? 100 : Yt, we = jt === void 0 ? 40 : jt, ge = Le(null);
459
+ let N;
460
+ t[0] !== f.amount || t[1] !== f.once ? (N = {
461
+ once: f.once,
462
+ amount: f.amount
463
+ }, t[0] = f.amount, t[1] = f.once, t[2] = N) : N = t[2];
464
+ const X = Ye(ge, N), [Zt, g] = ne(void 0), [at, ye] = ne(void 0), [nt, gt] = ne(void 0), [Lt, ue] = ne(void 0), me = tt ? Kt + 25 : Kt;
465
465
  let _t;
466
466
  t[3] !== pe || t[4] !== Qt || t[5] !== we || t[6] !== me ? (_t = {
467
467
  top: me,
@@ -469,57 +469,57 @@ function $i(e) {
469
469
  left: Qt,
470
470
  right: we
471
471
  }, t[3] = pe, t[4] = Qt, t[5] = we, t[6] = me, t[7] = _t) : _t = t[7];
472
- const d = _t, Lt = Ht - d.left - d.right, lt = re - d.top - d.bottom;
472
+ const d = _t, Nt = Ht - d.left - d.right, lt = re - d.top - d.bottom;
473
473
  let yt;
474
- t[8] !== a ? (yt = Math.max(...a.filter(la).map(na)) < 0 ? 0 : Math.max(...a.filter(aa).map(ia)), t[8] = a, t[9] = yt) : yt = t[9];
474
+ t[8] !== i ? (yt = Math.max(...i.filter(ca).map(ra)) < 0 ? 0 : Math.max(...i.filter(oa).map(sa)), t[8] = i, t[9] = yt) : yt = t[9];
475
475
  const It = yt;
476
476
  let $t;
477
- t[10] !== a ? ($t = Math.max(...a.filter(ea).map(ta)) < 0 ? 0 : Math.max(...a.filter(_i).map(Zi)), t[10] = a, t[11] = $t) : $t = t[11];
477
+ t[10] !== i ? ($t = Math.max(...i.filter(la).map(na)) < 0 ? 0 : Math.max(...i.filter(aa).map(ia)), t[10] = i, t[11] = $t) : $t = t[11];
478
478
  const Dt = $t;
479
479
  let Tt;
480
- t[12] !== a ? (Tt = Math.max(...a.map(Ki)), t[12] = a, t[13] = Tt) : Tt = t[13];
480
+ t[12] !== i ? (Tt = Math.max(...i.map(ta)), t[12] = i, t[13] = Tt) : Tt = t[13];
481
481
  const Ft = Tt;
482
482
  let St;
483
483
  t[14] !== It || t[15] !== pt || t[16] !== Ft || t[17] !== Dt ? (St = b(pt) ? Math.max(...[It, Dt, Ft].filter(Number.isFinite)) < 0 ? 0 : Math.max(...[It, Dt, Ft].filter(Number.isFinite)) : pt, t[14] = It, t[15] = pt, t[16] = Ft, t[17] = Dt, t[18] = St) : St = t[18];
484
484
  const te = St;
485
485
  let Rt;
486
- t[19] !== a ? (Rt = Math.min(...a.filter(Ji).map(Ui)) >= 0 ? 0 : Math.min(...a.filter(Hi).map(Gi)), t[19] = a, t[20] = Rt) : Rt = t[20];
486
+ t[19] !== i ? (Rt = Math.min(...i.filter(_i).map(Zi)) >= 0 ? 0 : Math.min(...i.filter(Qi).map(Ki)), t[19] = i, t[20] = Rt) : Rt = t[20];
487
487
  const qt = Rt;
488
488
  let Bt;
489
- t[21] !== a ? (Bt = Math.min(...a.filter(Ei).map(Yi)) >= 0 ? 0 : Math.min(...a.filter(Xi).map(Wi)), t[21] = a, t[22] = Bt) : Bt = t[22];
489
+ t[21] !== i ? (Bt = Math.min(...i.filter(Ji).map(Ui)) >= 0 ? 0 : Math.min(...i.filter(Hi).map(Gi)), t[21] = i, t[22] = Bt) : Bt = t[22];
490
490
  const bt = Bt;
491
491
  let k;
492
492
  t[23] !== qt || t[24] !== _ || t[25] !== bt ? (k = b(_) ? Math.min(...[qt, bt].filter(Number.isFinite)) >= 0 ? 0 : Math.min(...[qt, bt].filter(Number.isFinite)) : _, t[23] = qt, t[24] = _, t[25] = bt, t[26] = k) : k = t[26];
493
493
  const I = k;
494
494
  let mt;
495
- if (t[27] !== a || t[28] !== A) {
496
- const n = /* @__PURE__ */ new Set(), z = a.map((wt, R) => {
497
- const m = A ? `${wt.label}` : `${R}`;
495
+ if (t[27] !== i || t[28] !== V) {
496
+ const n = /* @__PURE__ */ new Set(), z = i.map((wt, R) => {
497
+ const m = V ? `${wt.label}` : `${R}`;
498
498
  return n.add(m), {
499
499
  ...wt,
500
500
  id: m
501
501
  };
502
- }), j = A ? A.filter((wt) => !n.has(wt)) : [];
503
- mt = [...z, ...j.map(Pi)], t[27] = a, t[28] = A, t[29] = mt;
502
+ }), j = V ? V.filter((wt) => !n.has(wt)) : [];
503
+ mt = [...z, ...j.map(Ei)], t[27] = i, t[28] = V, t[29] = mt;
504
504
  } else
505
505
  mt = t[29];
506
506
  const st = mt;
507
507
  let vt;
508
- t[30] !== st || t[31] !== A ? (vt = A ?? st.map(Bi), t[30] = st, t[31] = A, t[32] = vt) : vt = t[32];
508
+ t[30] !== st || t[31] !== V ? (vt = V ?? st.map(Yi), t[30] = st, t[31] = V, t[32] = vt) : vt = t[32];
509
509
  const ot = vt;
510
- let $, X, Y, D, E, G, M, C, w, V, H, U, J, K;
511
- if (t[33] !== h || t[34] !== tt || t[35] !== O || t[36] !== ot || t[37] !== se || t[38] !== f?.graphObjectValues || t[39] !== f?.xAxis?.gridLines || t[40] !== f?.xAxis?.labels || t[41] !== f?.xAxis?.title || t[42] !== f?.yAxis?.axis || t[43] !== f?.yAxis?.labels || t[44] !== N || t[45] !== st || t[46] !== q || t[47] !== ut || t[48] !== lt || t[49] !== Lt || t[50] !== re || t[51] !== v || t[52] !== W || t[53] !== d.bottom || t[54] !== d.left || t[55] !== d.top || t[56] !== Ct || t[57] !== r || t[58] !== Jt || t[59] !== at || t[60] !== ce || t[61] !== x || t[62] !== rt || t[63] !== xt || t[64] !== it || t[65] !== Gt || t[66] !== y || t[67] !== kt || t[68] !== ct || t[69] !== Ut || t[70] !== ve || t[71] !== oe || t[72] !== de || t[73] !== s?.graphObjectValues || t[74] !== s?.xAxis?.gridLines || t[75] !== s?.xAxis?.labels || t[76] !== s?.xAxis?.title || t[77] !== s?.yAxis?.axis || t[78] !== s?.yAxis?.labels || t[79] !== Et || t[80] !== et || t[81] !== P || t[82] !== B || t[83] !== Kt || t[84] !== xe || t[85] !== Ot || t[86] !== Ht || t[87] !== te || t[88] !== I) {
512
- const n = Fe().domain([I, te]).range([0, Lt]).nice(), z = Se().domain(ot).range([0, Jt ? Math.max(lt, Jt * ot.length) : Ct ? Math.min(lt, Ct * ot.length) : lt]).paddingInner(se), j = n.ticks(x);
513
- X = Vt.svg, V = `${Ht}px`, H = `${re}px`, U = `0 0 ${Ht} ${re}`, J = "ltr", K = ge, E = `translate(${d.left},${d.top})`, G = oe ? /* @__PURE__ */ l.jsx(Je, { values: j.filter(qi), x: j.filter(Ri).map((i) => n(i)), y1: 0 - Kt, y2: lt + d.bottom, styles: {
510
+ let $, Y, E, D, G, H, A, C, w, M, U, J, K, Q;
511
+ if (t[33] !== f || t[34] !== tt || t[35] !== O || t[36] !== ot || t[37] !== se || t[38] !== h?.graphObjectValues || t[39] !== h?.xAxis?.gridLines || t[40] !== h?.xAxis?.labels || t[41] !== h?.xAxis?.title || t[42] !== h?.yAxis?.axis || t[43] !== h?.yAxis?.labels || t[44] !== L || t[45] !== st || t[46] !== B || t[47] !== ut || t[48] !== lt || t[49] !== Nt || t[50] !== re || t[51] !== v || t[52] !== X || t[53] !== d.bottom || t[54] !== d.left || t[55] !== d.top || t[56] !== Ct || t[57] !== r || t[58] !== Jt || t[59] !== at || t[60] !== ce || t[61] !== p || t[62] !== rt || t[63] !== xt || t[64] !== it || t[65] !== Gt || t[66] !== y || t[67] !== kt || t[68] !== ct || t[69] !== Ut || t[70] !== ve || t[71] !== oe || t[72] !== de || t[73] !== s?.graphObjectValues || t[74] !== s?.xAxis?.gridLines || t[75] !== s?.xAxis?.labels || t[76] !== s?.xAxis?.title || t[77] !== s?.yAxis?.axis || t[78] !== s?.yAxis?.labels || t[79] !== Et || t[80] !== et || t[81] !== W || t[82] !== P || t[83] !== Kt || t[84] !== xe || t[85] !== Ot || t[86] !== Ht || t[87] !== te || t[88] !== I) {
512
+ const n = We().domain([I, te]).range([0, Nt]).nice(), z = Xe().domain(ot).range([0, Jt ? Math.max(lt, Jt * ot.length) : Ct ? Math.min(lt, Ct * ot.length) : lt]).paddingInner(se), j = n.ticks(p);
513
+ Y = Vt.svg, M = `${Ht}px`, U = `${re}px`, J = `0 0 ${Ht} ${re}`, K = "ltr", Q = ge, G = `translate(${d.left},${d.top})`, H = oe ? /* @__PURE__ */ l.jsx(ti, { values: j.filter(Xi), x: j.filter(Wi).map((a) => n(a)), y1: 0 - Kt, y2: lt + d.bottom, styles: {
514
514
  gridLines: s?.xAxis?.gridLines,
515
515
  labels: s?.xAxis?.labels
516
516
  }, classNames: {
517
- gridLines: f?.xAxis?.gridLines,
518
- labels: f?.xAxis?.labels
517
+ gridLines: h?.xAxis?.gridLines,
518
+ labels: h?.xAxis?.labels
519
519
  }, suffix: Et, prefix: Gt, labelType: "secondary", showGridLines: !0, precision: it }) : null;
520
- const wt = Lt / 2, R = 0 - d.top + 15, m = s?.xAxis?.title, Q = f?.xAxis?.title;
521
- t[103] !== tt || t[104] !== wt || t[105] !== R || t[106] !== m || t[107] !== Q ? (M = /* @__PURE__ */ l.jsx(De, { x: wt, y: R, style: m, className: Q, text: tt }), t[103] = tt, t[104] = wt, t[105] = R, t[106] = m, t[107] = Q, t[108] = M) : M = t[108];
522
- const fe = f?.yAxis?.axis;
520
+ const wt = Nt / 2, R = 0 - d.top + 15, m = s?.xAxis?.title, q = h?.xAxis?.title;
521
+ t[103] !== tt || t[104] !== wt || t[105] !== R || t[106] !== m || t[107] !== q ? (A = /* @__PURE__ */ l.jsx(Be, { x: wt, y: R, style: m, className: q, text: tt }), t[103] = tt, t[104] = wt, t[105] = R, t[106] = m, t[107] = q, t[108] = A) : A = t[108];
522
+ const fe = h?.yAxis?.axis;
523
523
  let Mt;
524
524
  t[109] !== fe ? (Mt = {
525
525
  axis: fe
@@ -528,39 +528,39 @@ function $i(e) {
528
528
  let Wt;
529
529
  t[111] !== ee ? (Wt = {
530
530
  axis: ee
531
- }, t[111] = ee, t[112] = Wt) : Wt = t[112], C = /* @__PURE__ */ l.jsx($e, { x1: n(I < 0 ? 0 : I), x2: n(I < 0 ? 0 : I), y1: -2.5, y2: lt + d.bottom, classNames: Mt, styles: Wt }), t[113] !== N ? (w = N.filter(Si).map(Fi), t[113] = N, t[114] = w) : w = t[114], $ = qe, Y = st.map((i) => b(z(i.id)) ? null : /* @__PURE__ */ l.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (Z) => {
532
- p(i), ue(Z.clientY), gt(Z.clientX), xt?.(i);
531
+ }, t[111] = ee, t[112] = Wt) : Wt = t[112], C = /* @__PURE__ */ l.jsx(qe, { x1: n(I < 0 ? 0 : I), x2: n(I < 0 ? 0 : I), y1: -2.5, y2: lt + d.bottom, classNames: Mt, styles: Wt }), t[113] !== L ? (w = L.filter(Pi).map(Bi), t[113] = L, t[114] = w) : w = t[114], $ = Ee, E = st.map((a) => b(z(a.id)) ? null : /* @__PURE__ */ l.jsxs(Vt.g, { className: "undp-viz-g-with-hover", onMouseEnter: (Z) => {
532
+ g(a), ue(Z.clientY), gt(Z.clientX), xt?.(a);
533
533
  }, onClick: () => {
534
- (rt || q) && (Le(at, i) && ct ? (ye(void 0), rt?.(void 0)) : (ye(i), rt?.(i)));
534
+ (rt || B) && (Se(at, a) && ct ? (ye(void 0), rt?.(void 0)) : (ye(a), rt?.(a)));
535
535
  }, onMouseMove: (Z) => {
536
- p(i), ue(Z.clientY), gt(Z.clientX);
536
+ g(a), ue(Z.clientY), gt(Z.clientX);
537
537
  }, onMouseLeave: () => {
538
- p(void 0), gt(void 0), ue(void 0), xt?.(void 0);
538
+ g(void 0), gt(void 0), ue(void 0), xt?.(void 0);
539
539
  }, exit: {
540
540
  opacity: 0,
541
541
  transition: {
542
- duration: h.duration
542
+ duration: f.duration
543
543
  }
544
544
  }, variants: {
545
545
  initial: {
546
546
  x: 0,
547
- y: z(`${i.id}`),
548
- opacity: v.length !== 0 ? v.indexOf(i.label) !== -1 ? 0.85 : ut : 0.85
547
+ y: z(`${a.id}`),
548
+ opacity: v.length !== 0 ? v.indexOf(a.label) !== -1 ? 0.85 : ut : 0.85
549
549
  },
550
550
  whileInView: {
551
551
  x: 0,
552
- y: z(`${i.id}`),
553
- opacity: v.length !== 0 ? v.indexOf(i.label) !== -1 ? 0.85 : ut : 0.85,
552
+ y: z(`${a.id}`),
553
+ opacity: v.length !== 0 ? v.indexOf(a.label) !== -1 ? 0.85 : ut : 0.85,
554
554
  transition: {
555
- duration: h.duration
555
+ duration: f.duration
556
556
  }
557
557
  }
558
- }, initial: "initial", animate: W ? "whileInView" : "initial", children: [
559
- i.qualitativeRange ? i.qualitativeRange.map((Z, At) => /* @__PURE__ */ l.jsx(Vt.rect, { exit: {
558
+ }, initial: "initial", animate: X ? "whileInView" : "initial", children: [
559
+ a.qualitativeRange ? a.qualitativeRange.map((Z, At) => /* @__PURE__ */ l.jsx(Vt.rect, { exit: {
560
560
  width: 0,
561
561
  x: n(0),
562
562
  transition: {
563
- duration: h.duration
563
+ duration: f.duration
564
564
  }
565
565
  }, variants: {
566
566
  initial: {
@@ -569,20 +569,20 @@ function $i(e) {
569
569
  fill: y[At]
570
570
  },
571
571
  whileInView: {
572
- x: n(At === 0 ? 0 : Ae(i.qualitativeRange.filter((be, Me) => Me < At && be))),
572
+ x: n(At === 0 ? 0 : ke(a.qualitativeRange.filter((be, Me) => Me < At && be))),
573
573
  width: n(Z),
574
574
  fill: y[At],
575
575
  transition: {
576
- duration: h.duration
576
+ duration: f.duration
577
577
  }
578
578
  }
579
- }, initial: "initial", animate: W ? "whileInView" : "initial", y: 0, height: z.bandwidth() }, At)) : null,
580
- i.target && B === "background" ? /* @__PURE__ */ l.jsx(Vt.rect, { y: 0, x: i.target >= 0 ? n(0) : n(i.target), height: z.bandwidth(), exit: {
579
+ }, initial: "initial", animate: X ? "whileInView" : "initial", y: 0, height: z.bandwidth() }, At)) : null,
580
+ a.target && P === "background" ? /* @__PURE__ */ l.jsx(Vt.rect, { y: 0, x: a.target >= 0 ? n(0) : n(a.target), height: z.bandwidth(), exit: {
581
581
  width: 0,
582
582
  x: n(0),
583
583
  fill: et,
584
584
  transition: {
585
- duration: h.duration
585
+ duration: f.duration
586
586
  }
587
587
  }, variants: {
588
588
  initial: {
@@ -591,21 +591,21 @@ function $i(e) {
591
591
  width: 0
592
592
  },
593
593
  whileInView: {
594
- x: i.target >= 0 ? n(0) : n(i.target),
594
+ x: a.target >= 0 ? n(0) : n(a.target),
595
595
  fill: et,
596
- width: i.target >= 0 ? n(i.target) - n(0) : n(0) - n(i.target),
596
+ width: a.target >= 0 ? n(a.target) - n(0) : n(0) - n(a.target),
597
597
  transition: {
598
- duration: h.duration
598
+ duration: f.duration
599
599
  }
600
600
  }
601
- }, initial: "initial", animate: W ? "whileInView" : "initial" }) : null,
602
- i.size ? /* @__PURE__ */ l.jsx(Vt.rect, { y: z.bandwidth() * ((1 - r) / 2), style: {
601
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
602
+ a.size ? /* @__PURE__ */ l.jsx(Vt.rect, { y: z.bandwidth() * ((1 - r) / 2), style: {
603
603
  fill: O
604
604
  }, height: z.bandwidth() * r, exit: {
605
605
  width: 0,
606
606
  x: n(0),
607
607
  transition: {
608
- duration: h.duration
608
+ duration: f.duration
609
609
  }
610
610
  }, variants: {
611
611
  initial: {
@@ -613,19 +613,19 @@ function $i(e) {
613
613
  width: 0
614
614
  },
615
615
  whileInView: {
616
- x: i.size >= 0 ? n(0) : n(i.size),
617
- width: i.size >= 0 ? n(i.size) - n(0) : n(0) - n(i.size),
616
+ x: a.size >= 0 ? n(0) : n(a.size),
617
+ width: a.size >= 0 ? n(a.size) - n(0) : n(0) - n(a.size),
618
618
  transition: {
619
- duration: h.duration
619
+ duration: f.duration
620
620
  }
621
621
  }
622
- }, initial: "initial", animate: W ? "whileInView" : "initial" }) : null,
623
- i.target && B === "line" ? /* @__PURE__ */ l.jsx(Vt.rect, { y: 0, height: z.bandwidth(), width: P, exit: {
622
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
623
+ a.target && P === "line" ? /* @__PURE__ */ l.jsx(Vt.rect, { y: 0, height: z.bandwidth(), width: W, exit: {
624
624
  opacity: 0,
625
625
  x: n(0),
626
626
  fill: et,
627
627
  transition: {
628
- duration: h.duration
628
+ duration: f.duration
629
629
  }
630
630
  }, variants: {
631
631
  initial: {
@@ -634,22 +634,22 @@ function $i(e) {
634
634
  fill: et
635
635
  },
636
636
  whileInView: {
637
- x: n(i.target) - P / 2,
637
+ x: n(a.target) - W / 2,
638
638
  opacity: 1,
639
639
  fill: et,
640
640
  transition: {
641
- duration: h.duration
641
+ duration: f.duration
642
642
  }
643
643
  }
644
- }, initial: "initial", animate: W ? "whileInView" : "initial" }) : null,
645
- ve ? /* @__PURE__ */ l.jsx(Ke, { value: `${i.label}`.length < xe ? `${i.label}` : `${`${i.label}`.substring(0, xe)}...`, y: 0, x: (i.size || 0) < 0 ? n(0) : 0 - d.left, width: (i.size || 0) < 0 ? Ht - n(0) : n(0) + d.left, height: z.bandwidth(), alignment: i.size && i.size < 0 ? "left" : "right", style: s?.yAxis?.labels, className: f?.yAxis?.labels, animate: h, isInView: W }) : null,
644
+ }, initial: "initial", animate: X ? "whileInView" : "initial" }) : null,
645
+ ve ? /* @__PURE__ */ l.jsx(ei, { value: `${a.label}`.length < xe ? `${a.label}` : `${`${a.label}`.substring(0, xe)}...`, y: 0, x: (a.size || 0) < 0 ? n(0) : 0 - d.left, width: (a.size || 0) < 0 ? Ht - n(0) : n(0) + d.left, height: z.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: s?.yAxis?.labels, className: h?.yAxis?.labels, animate: f, isInView: X }) : null,
646
646
  de ? /* @__PURE__ */ l.jsx(Vt.text, { y: z.bandwidth() / 2, style: {
647
- textAnchor: i.size && i.size < 0 ? "end" : "start",
647
+ textAnchor: a.size && a.size < 0 ? "end" : "start",
648
648
  ...s?.graphObjectValues || {}
649
- }, className: Ne("graph-value text-sm", !Ot && O.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: i.size && i.size < 0 ? -5 : 5, dy: "0.33em", exit: {
649
+ }, className: Fe("graph-value text-sm", !Ot && O.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", h?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", exit: {
650
650
  opacity: 0,
651
651
  transition: {
652
- duration: h.duration
652
+ duration: f.duration
653
653
  }
654
654
  }, variants: {
655
655
  initial: {
@@ -658,68 +658,68 @@ function $i(e) {
658
658
  fill: Ot || O
659
659
  },
660
660
  whileInView: {
661
- x: i.size ? n(i.size) : n(0),
661
+ x: a.size ? n(a.size) : n(0),
662
662
  opacity: 1,
663
663
  fill: Ot || O,
664
664
  transition: {
665
- duration: h.duration
665
+ duration: f.duration
666
666
  }
667
667
  }
668
- }, initial: "initial", animate: W ? "whileInView" : "initial", children: ke(i.size, ce, it, Gt, Et) }) : null
669
- ] }, i.label)), D = kt ? /* @__PURE__ */ l.jsx(l.Fragment, { children: kt.map((i, Z) => /* @__PURE__ */ l.jsx(Ge, { text: i.text, color: i.color, x: n(i.value), y1: 0 - d.top, y2: lt + d.bottom, textSide: n(i.value) > Lt * 0.75 || Ut ? "left" : "right", classNames: i.classNames, styles: i.styles, animate: h, isInView: W }, Z)) }) : null, t[33] = h, t[34] = tt, t[35] = O, t[36] = ot, t[37] = se, t[38] = f?.graphObjectValues, t[39] = f?.xAxis?.gridLines, t[40] = f?.xAxis?.labels, t[41] = f?.xAxis?.title, t[42] = f?.yAxis?.axis, t[43] = f?.yAxis?.labels, t[44] = N, t[45] = st, t[46] = q, t[47] = ut, t[48] = lt, t[49] = Lt, t[50] = re, t[51] = v, t[52] = W, t[53] = d.bottom, t[54] = d.left, t[55] = d.top, t[56] = Ct, t[57] = r, t[58] = Jt, t[59] = at, t[60] = ce, t[61] = x, t[62] = rt, t[63] = xt, t[64] = it, t[65] = Gt, t[66] = y, t[67] = kt, t[68] = ct, t[69] = Ut, t[70] = ve, t[71] = oe, t[72] = de, t[73] = s?.graphObjectValues, t[74] = s?.xAxis?.gridLines, t[75] = s?.xAxis?.labels, t[76] = s?.xAxis?.title, t[77] = s?.yAxis?.axis, t[78] = s?.yAxis?.labels, t[79] = Et, t[80] = et, t[81] = P, t[82] = B, t[83] = Kt, t[84] = xe, t[85] = Ot, t[86] = Ht, t[87] = te, t[88] = I, t[89] = $, t[90] = X, t[91] = Y, t[92] = D, t[93] = E, t[94] = G, t[95] = M, t[96] = C, t[97] = w, t[98] = V, t[99] = H, t[100] = U, t[101] = J, t[102] = K;
668
+ }, initial: "initial", animate: X ? "whileInView" : "initial", children: Ne(a.size, ce, it, Gt, Et) }) : null
669
+ ] }, a.label)), D = kt ? /* @__PURE__ */ l.jsx(l.Fragment, { children: kt.map((a, Z) => /* @__PURE__ */ l.jsx(Qe, { text: a.text, color: a.color, x: n(a.value), y1: 0 - d.top, y2: lt + d.bottom, textSide: n(a.value) > Nt * 0.75 || Ut ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: f, isInView: X }, Z)) }) : null, t[33] = f, t[34] = tt, t[35] = O, t[36] = ot, t[37] = se, t[38] = h?.graphObjectValues, t[39] = h?.xAxis?.gridLines, t[40] = h?.xAxis?.labels, t[41] = h?.xAxis?.title, t[42] = h?.yAxis?.axis, t[43] = h?.yAxis?.labels, t[44] = L, t[45] = st, t[46] = B, t[47] = ut, t[48] = lt, t[49] = Nt, t[50] = re, t[51] = v, t[52] = X, t[53] = d.bottom, t[54] = d.left, t[55] = d.top, t[56] = Ct, t[57] = r, t[58] = Jt, t[59] = at, t[60] = ce, t[61] = p, t[62] = rt, t[63] = xt, t[64] = it, t[65] = Gt, t[66] = y, t[67] = kt, t[68] = ct, t[69] = Ut, t[70] = ve, t[71] = oe, t[72] = de, t[73] = s?.graphObjectValues, t[74] = s?.xAxis?.gridLines, t[75] = s?.xAxis?.labels, t[76] = s?.xAxis?.title, t[77] = s?.yAxis?.axis, t[78] = s?.yAxis?.labels, t[79] = Et, t[80] = et, t[81] = W, t[82] = P, t[83] = Kt, t[84] = xe, t[85] = Ot, t[86] = Ht, t[87] = te, t[88] = I, t[89] = $, t[90] = Y, t[91] = E, t[92] = D, t[93] = G, t[94] = H, t[95] = A, t[96] = C, t[97] = w, t[98] = M, t[99] = U, t[100] = J, t[101] = K, t[102] = Q;
670
670
  } else
671
- $ = t[89], X = t[90], Y = t[91], D = t[92], E = t[93], G = t[94], M = t[95], C = t[96], w = t[97], V = t[98], H = t[99], U = t[100], J = t[101], K = t[102];
671
+ $ = t[89], Y = t[90], E = t[91], D = t[92], G = t[93], H = t[94], A = t[95], C = t[96], w = t[97], M = t[98], U = t[99], J = t[100], K = t[101], Q = t[102];
672
672
  let T;
673
- t[115] !== $ || t[116] !== Y || t[117] !== D ? (T = /* @__PURE__ */ l.jsxs($, { children: [
674
- Y,
673
+ t[115] !== $ || t[116] !== E || t[117] !== D ? (T = /* @__PURE__ */ l.jsxs($, { children: [
674
+ E,
675
675
  D
676
- ] }), t[115] = $, t[116] = Y, t[117] = D, t[118] = T) : T = t[118];
677
- let u;
678
- t[119] !== N ? (u = N.filter(Ti).map(Di), t[119] = N, t[120] = u) : u = t[120];
676
+ ] }), t[115] = $, t[116] = E, t[117] = D, t[118] = T) : T = t[118];
677
+ let c;
678
+ t[119] !== L ? (c = L.filter(qi).map(Ri), t[119] = L, t[120] = c) : c = t[120];
679
679
  let F;
680
- t[121] !== E || t[122] !== G || t[123] !== M || t[124] !== C || t[125] !== w || t[126] !== T || t[127] !== u ? (F = /* @__PURE__ */ l.jsxs("g", { transform: E, children: [
681
- G,
682
- M,
680
+ t[121] !== G || t[122] !== H || t[123] !== A || t[124] !== C || t[125] !== w || t[126] !== T || t[127] !== c ? (F = /* @__PURE__ */ l.jsxs("g", { transform: G, children: [
681
+ H,
682
+ A,
683
683
  C,
684
684
  w,
685
685
  T,
686
- u
687
- ] }), t[121] = E, t[122] = G, t[123] = M, t[124] = C, t[125] = w, t[126] = T, t[127] = u, t[128] = F) : F = t[128];
686
+ c
687
+ ] }), t[121] = G, t[122] = H, t[123] = A, t[124] = C, t[125] = w, t[126] = T, t[127] = c, t[128] = F) : F = t[128];
688
688
  let ft;
689
- t[129] !== X || t[130] !== V || t[131] !== H || t[132] !== U || t[133] !== J || t[134] !== K || t[135] !== F ? (ft = /* @__PURE__ */ l.jsx(X, { width: V, height: H, viewBox: U, direction: J, ref: K, children: F }), t[129] = X, t[130] = V, t[131] = H, t[132] = U, t[133] = J, t[134] = K, t[135] = F, t[136] = ft) : ft = t[136];
689
+ t[129] !== Y || t[130] !== M || t[131] !== U || t[132] !== J || t[133] !== K || t[134] !== Q || t[135] !== F ? (ft = /* @__PURE__ */ l.jsx(Y, { width: M, height: U, viewBox: J, direction: K, ref: Q, children: F }), t[129] = Y, t[130] = M, t[131] = U, t[132] = J, t[133] = K, t[134] = Q, t[135] = F, t[136] = ft) : ft = t[136];
690
690
  let S;
691
- t[137] !== f?.tooltip || t[138] !== nt || t[139] !== Nt || t[140] !== Zt || t[141] !== s?.tooltip || t[142] !== dt ? (S = Zt && dt && nt && Nt ? /* @__PURE__ */ l.jsx(Ie, { data: Zt, body: dt, xPos: nt, yPos: Nt, backgroundStyle: s?.tooltip, className: f?.tooltip }) : null, t[137] = f?.tooltip, t[138] = nt, t[139] = Nt, t[140] = Zt, t[141] = s?.tooltip, t[142] = dt, t[143] = S) : S = t[143];
691
+ t[137] !== h?.tooltip || t[138] !== nt || t[139] !== Lt || t[140] !== Zt || t[141] !== s?.tooltip || t[142] !== dt ? (S = Zt && dt && nt && Lt ? /* @__PURE__ */ l.jsx(Re, { data: Zt, body: dt, xPos: nt, yPos: Lt, backgroundStyle: s?.tooltip, className: h?.tooltip }) : null, t[137] = h?.tooltip, t[138] = nt, t[139] = Lt, t[140] = Zt, t[141] = s?.tooltip, t[142] = dt, t[143] = S) : S = t[143];
692
692
  let Pt;
693
- t[144] !== f?.modal || t[145] !== q || t[146] !== at ? (Pt = q && at !== void 0 ? /* @__PURE__ */ l.jsx(Te, { body: q, data: at, setData: ye, className: f?.modal }) : null, t[144] = f?.modal, t[145] = q, t[146] = at, t[147] = Pt) : Pt = t[147];
694
- let c;
695
- return t[148] !== ft || t[149] !== S || t[150] !== Pt ? (c = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
693
+ t[144] !== h?.modal || t[145] !== B || t[146] !== at ? (Pt = B && at !== void 0 ? /* @__PURE__ */ l.jsx(Pe, { body: B, data: at, setData: ye, className: h?.modal }) : null, t[144] = h?.modal, t[145] = B, t[146] = at, t[147] = Pt) : Pt = t[147];
694
+ let u;
695
+ return t[148] !== ft || t[149] !== S || t[150] !== Pt ? (u = /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
696
696
  ft,
697
697
  S,
698
698
  Pt
699
- ] }), t[148] = ft, t[149] = S, t[150] = Pt, t[151] = c) : c = t[151], c;
699
+ ] }), t[148] = ft, t[149] = S, t[150] = Pt, t[151] = u) : u = t[151], u;
700
700
  }
701
- function Di(e) {
701
+ function Ri(e) {
702
702
  return e.layer;
703
703
  }
704
- function Ti(e) {
704
+ function qi(e) {
705
705
  return e.position === "after";
706
706
  }
707
- function Fi(e) {
707
+ function Bi(e) {
708
708
  return e.layer;
709
709
  }
710
- function Si(e) {
710
+ function Pi(e) {
711
711
  return e.position === "before";
712
712
  }
713
- function Ri(e) {
713
+ function Wi(e) {
714
714
  return e !== 0;
715
715
  }
716
- function qi(e) {
716
+ function Xi(e) {
717
717
  return e !== 0;
718
718
  }
719
- function Bi(e) {
719
+ function Yi(e) {
720
720
  return `${e.id}`;
721
721
  }
722
- function Pi(e) {
722
+ function Ei(e) {
723
723
  return {
724
724
  id: e,
725
725
  label: e,
@@ -728,63 +728,63 @@ function Pi(e) {
728
728
  qualitativeRange: null
729
729
  };
730
730
  }
731
- function Wi(e) {
731
+ function Gi(e) {
732
732
  return e.target;
733
733
  }
734
- function Xi(e) {
734
+ function Hi(e) {
735
735
  return !b(e.target);
736
736
  }
737
- function Yi(e) {
737
+ function Ui(e) {
738
738
  return e.target;
739
739
  }
740
- function Ei(e) {
740
+ function Ji(e) {
741
741
  return !b(e.target);
742
742
  }
743
- function Gi(e) {
743
+ function Ki(e) {
744
744
  return e.size;
745
745
  }
746
- function Hi(e) {
746
+ function Qi(e) {
747
747
  return !b(e.size);
748
748
  }
749
- function Ui(e) {
749
+ function Zi(e) {
750
750
  return e.size;
751
751
  }
752
- function Ji(e) {
752
+ function _i(e) {
753
753
  return !b(e.size);
754
754
  }
755
- function Ki(e) {
756
- return Ae((e.qualitativeRange || []).filter(Qi)) || 0;
755
+ function ta(e) {
756
+ return ke((e.qualitativeRange || []).filter(ea)) || 0;
757
757
  }
758
- function Qi(e) {
758
+ function ea(e) {
759
759
  return !b(e);
760
760
  }
761
- function Zi(e) {
761
+ function ia(e) {
762
762
  return e.target;
763
763
  }
764
- function _i(e) {
764
+ function aa(e) {
765
765
  return !b(e.target);
766
766
  }
767
- function ta(e) {
767
+ function na(e) {
768
768
  return e.target;
769
769
  }
770
- function ea(e) {
770
+ function la(e) {
771
771
  return !b(e.target);
772
772
  }
773
- function ia(e) {
773
+ function sa(e) {
774
774
  return e.size;
775
775
  }
776
- function aa(e) {
776
+ function oa(e) {
777
777
  return !b(e.size);
778
778
  }
779
- function na(e) {
779
+ function ra(e) {
780
780
  return e.size;
781
781
  }
782
- function la(e) {
782
+ function ca(e) {
783
783
  return !b(e.size);
784
784
  }
785
- function Ea(e) {
786
- const t = Ce.c(123), {
787
- data: a,
785
+ function Ja(e) {
786
+ const t = Ie.c(136), {
787
+ data: i,
788
788
  graphTitle: zt,
789
789
  barColor: le,
790
790
  barPadding: Yt,
@@ -806,160 +806,171 @@ function Ea(e) {
806
806
  footNote: pt,
807
807
  colorDomain: _,
808
808
  colorLegendTitle: rt,
809
- padding: A,
809
+ padding: V,
810
810
  relativeHeight: Ut,
811
811
  tooltip: Ct,
812
812
  onSeriesMouseOver: Jt,
813
813
  refValues: ct,
814
- showColorScale: q,
814
+ showColorScale: B,
815
815
  graphID: tt,
816
816
  maxValue: Ot,
817
- minValue: x,
817
+ minValue: p,
818
818
  highlightedDataPoints: s,
819
- onSeriesMouseClick: f,
820
- valueColor: B,
819
+ onSeriesMouseClick: h,
820
+ valueColor: P,
821
821
  orientation: et,
822
822
  styles: y,
823
823
  classNames: r,
824
- qualitativeRangeColors: h,
824
+ qualitativeRangeColors: f,
825
825
  targetColor: ut,
826
826
  filterNA: it,
827
- targetStyle: N,
827
+ targetStyle: L,
828
828
  measureBarWidthFactor: ce,
829
- animate: P,
829
+ animate: W,
830
830
  dimmedOpacity: Kt,
831
831
  precision: pe,
832
832
  customLayers: Qt,
833
833
  naLabel: we,
834
834
  graphDownload: ge,
835
- dataDownload: L,
836
- language: W,
835
+ dataDownload: N,
836
+ language: X,
837
837
  theme: Zt,
838
- sortData: p,
838
+ sortData: g,
839
839
  labelOrder: at,
840
840
  minHeight: ye,
841
841
  maxBarThickness: nt,
842
842
  maxNumberOfBars: gt,
843
- minBarThickness: Nt,
843
+ minBarThickness: Lt,
844
844
  ariaLabel: ue,
845
845
  resetSelectionOnDoubleClick: me,
846
846
  detailsOnClick: _t,
847
847
  barAxisTitle: d,
848
- noOfTicks: Lt,
848
+ noOfTicks: Nt,
849
849
  targetLineThickness: lt,
850
850
  timeline: yt
851
- } = e, It = le === void 0 ? ze.primaryColors["blue-600"] : le, $t = Yt === void 0 ? 0.25 : Yt, Dt = jt === void 0 ? !0 : jt, Tt = de === void 0 ? 999 : de, Ft = oe === void 0 ? !0 : oe, St = xe === void 0 ? !0 : xe, te = Ht === void 0 ? !1 : Ht, Rt = re === void 0 ? "" : re, qt = ve === void 0 ? "" : ve, Bt = q === void 0 ? !0 : q;
851
+ } = e, It = le === void 0 ? Oe.primaryColors["blue-600"] : le, $t = Yt === void 0 ? 0.25 : Yt, Dt = jt === void 0 ? !0 : jt, Tt = de === void 0 ? 999 : de, Ft = oe === void 0 ? !0 : oe, St = xe === void 0 ? !0 : xe, te = Ht === void 0 ? !1 : Ht, Rt = re === void 0 ? "" : re, qt = ve === void 0 ? "" : ve, Bt = B === void 0 ? !0 : B;
852
852
  let bt;
853
853
  t[0] !== s ? (bt = s === void 0 ? [] : s, t[0] = s, t[1] = bt) : bt = t[1];
854
- const k = bt, I = et === void 0 ? "vertical" : et, mt = ut === void 0 ? ze.light.grays["gray-700"] : ut, st = it === void 0 ? !0 : it, vt = N === void 0 ? "line" : N, ot = ce === void 0 ? 0.4 : ce, $ = P === void 0 ? !1 : P, X = Kt === void 0 ? 0.3 : Kt, Y = pe === void 0 ? 2 : pe;
854
+ const k = bt, I = et === void 0 ? "vertical" : et, mt = ut === void 0 ? Oe.light.grays["gray-700"] : ut, st = it === void 0 ? !0 : it, vt = L === void 0 ? "line" : L, ot = ce === void 0 ? 0.4 : ce, $ = W === void 0 ? !1 : W, Y = Kt === void 0 ? 0.3 : Kt, E = pe === void 0 ? 2 : pe;
855
855
  let D;
856
856
  t[2] !== Qt ? (D = Qt === void 0 ? [] : Qt, t[2] = Qt, t[3] = D) : D = t[3];
857
- const E = D, G = we === void 0 ? "NA" : we, M = ge === void 0 ? !1 : ge, C = L === void 0 ? !1 : L, w = W === void 0 ? "en" : W, V = Zt === void 0 ? "light" : Zt, H = ye === void 0 ? 0 : ye, U = me === void 0 ? !0 : me, J = Lt === void 0 ? 5 : Lt, K = lt === void 0 ? 2 : lt;
857
+ const G = D, H = we === void 0 ? "NA" : we, A = ge === void 0 ? !1 : ge, C = N === void 0 ? !1 : N, w = X === void 0 ? "en" : X, M = Zt === void 0 ? "light" : Zt, U = ye === void 0 ? 0 : ye, J = me === void 0 ? !0 : me, K = Nt === void 0 ? 5 : Nt, Q = lt === void 0 ? 2 : lt;
858
858
  let T;
859
859
  t[4] !== yt ? (T = yt === void 0 ? {
860
860
  enabled: !1,
861
861
  autoplay: !1,
862
862
  showOnlyActiveDate: !0
863
863
  } : yt, t[4] = yt, t[5] = T) : T = t[5];
864
- const u = T, [F, ft] = ne(0), [S, Pt] = ne(0), c = je(null), n = je(null), z = I === "horizontal" ? $i : si, [j, wt] = ne(u.autoplay);
864
+ const c = T, [F, ft] = ne(0), [S, Pt] = ne(0), u = Le(null), n = Le(null), z = I === "horizontal" ? Si : ui, [j, wt] = ne(c.autoplay);
865
865
  let R;
866
- if (t[6] !== a || t[7] !== u.dateFormat) {
867
- let g;
868
- t[9] !== u.dateFormat ? (g = (he) => We(`${he.date}`, u.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = u.dateFormat, t[10] = g) : g = t[10], R = [...new Set(a.filter(ha).map(g))], R.sort(fa), t[6] = a, t[7] = u.dateFormat, t[8] = R;
866
+ if (t[6] !== i || t[7] !== c.dateFormat) {
867
+ let x;
868
+ t[9] !== c.dateFormat ? (x = (he) => He(`${he.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = c.dateFormat, t[10] = x) : x = t[10], R = [...new Set(i.filter(ga).map(x))], R.sort(pa), t[6] = i, t[7] = c.dateFormat, t[8] = R;
869
869
  } else
870
870
  R = t[8];
871
- const m = R, [Q, fe] = ne(u.autoplay ? 0 : m.length - 1);
871
+ const m = R, [q, fe] = ne(c.autoplay ? 0 : m.length - 1);
872
872
  let Mt, ee;
873
873
  t[11] === Symbol.for("react.memo_cache_sentinel") ? (Mt = () => {
874
- const g = new ResizeObserver((he) => {
874
+ const x = new ResizeObserver((he) => {
875
875
  ft(he[0].target.clientWidth || 620), Pt(he[0].target.clientHeight || 480);
876
876
  });
877
- return c.current && g.observe(c.current), () => g.disconnect();
878
- }, ee = [], t[11] = Mt, t[12] = ee) : (Mt = t[11], ee = t[12]), Oe(Mt, ee);
879
- let Wt, i;
880
- t[13] !== j || t[14] !== u.speed || t[15] !== m ? (Wt = () => {
881
- const g = setInterval(() => {
877
+ return u.current && x.observe(u.current), () => x.disconnect();
878
+ }, ee = [], t[11] = Mt, t[12] = ee) : (Mt = t[11], ee = t[12]), $e(Mt, ee);
879
+ let Wt, a;
880
+ t[13] !== j || t[14] !== c.speed || t[15] !== m ? (Wt = () => {
881
+ const x = setInterval(() => {
882
882
  fe((he) => he < m.length - 1 ? he + 1 : 0);
883
- }, (u.speed || 2) * 1e3);
884
- return j || clearInterval(g), () => clearInterval(g);
885
- }, i = [m, j, u.speed], t[13] = j, t[14] = u.speed, t[15] = m, t[16] = Wt, t[17] = i) : (Wt = t[16], i = t[17]), Oe(Wt, i);
886
- const Z = u.dateFormat || "yyyy";
883
+ }, (c.speed || 2) * 1e3);
884
+ return j || clearInterval(x), () => clearInterval(x);
885
+ }, a = [m, j, c.speed], t[13] = j, t[14] = c.speed, t[15] = m, t[16] = Wt, t[17] = a) : (Wt = t[16], a = t[17]), $e(Wt, a);
886
+ const Z = c.dateFormat || "yyyy";
887
887
  let At;
888
- t[18] !== Q || t[19] !== Z || t[20] !== u.showOnlyActiveDate || t[21] !== m ? (At = Xe(m, Q, u.showOnlyActiveDate, Z), t[18] = Q, t[19] = Z, t[20] = u.showOnlyActiveDate, t[21] = m, t[22] = At) : At = t[22];
888
+ t[18] !== q || t[19] !== Z || t[20] !== c.showOnlyActiveDate || t[21] !== m ? (At = Ue(m, q, c.showOnlyActiveDate, Z), t[18] = q, t[19] = Z, t[20] = c.showOnlyActiveDate, t[21] = m, t[22] = At) : At = t[22];
889
889
  const be = At, Me = r?.graphContainer, o = y?.graphContainer;
890
890
  let ht;
891
- t[23] !== r?.description || t[24] !== r?.title || t[25] !== a || t[26] !== C || t[27] !== xt || t[28] !== M || t[29] !== zt || t[30] !== y?.description || t[31] !== y?.title || t[32] !== v ? (ht = zt || xt || M || C ? /* @__PURE__ */ l.jsx(ei, { styles: {
891
+ t[23] !== r?.description || t[24] !== r?.title || t[25] !== i || t[26] !== C || t[27] !== xt || t[28] !== A || t[29] !== zt || t[30] !== y?.description || t[31] !== y?.title || t[32] !== v ? (ht = zt || xt || A || C ? /* @__PURE__ */ l.jsx(si, { styles: {
892
892
  title: y?.title,
893
893
  description: y?.description
894
894
  }, classNames: {
895
895
  title: r?.title,
896
896
  description: r?.description
897
- }, graphTitle: zt, graphDescription: xt, width: v, graphDownload: M ? n : void 0, dataDownload: C ? a.map(ma).filter(ua).length > 0 ? a.map(ca).filter(ra) : a.filter(oa) : null }) : null, t[23] = r?.description, t[24] = r?.title, t[25] = a, t[26] = C, t[27] = xt, t[28] = M, t[29] = zt, t[30] = y?.description, t[31] = y?.title, t[32] = v, t[33] = ht) : ht = t[33];
897
+ }, graphTitle: zt, graphDescription: xt, width: v, graphDownload: A ? n : void 0, dataDownload: C ? i.map(xa).filter(da).length > 0 ? i.map(ha).filter(fa) : i.filter(ma) : null }) : null, t[23] = r?.description, t[24] = r?.title, t[25] = i, t[26] = C, t[27] = xt, t[28] = A, t[29] = zt, t[30] = y?.description, t[31] = y?.title, t[32] = v, t[33] = ht) : ht = t[33];
898
898
  let Xt;
899
- t[34] !== Q || t[35] !== be || t[36] !== j || t[37] !== u.enabled || t[38] !== m ? (Xt = u.enabled && m.length > 0 && be ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
899
+ t[34] !== q || t[35] !== be || t[36] !== j || t[37] !== c.enabled || t[38] !== m ? (Xt = c.enabled && m.length > 0 && be ? /* @__PURE__ */ l.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
900
900
  /* @__PURE__ */ l.jsx("button", { type: "button", onClick: () => {
901
901
  wt(!j);
902
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": j ? "Click to pause animation" : "Click to play animation", children: j ? /* @__PURE__ */ l.jsx(ni, {}) : /* @__PURE__ */ l.jsx(li, {}) }),
903
- /* @__PURE__ */ l.jsx(Ye, { min: m[0], max: m[m.length - 1], marks: be, step: null, defaultValue: m[m.length - 1], value: m[Q], onChangeComplete: (g) => {
904
- fe(m.indexOf(g));
905
- }, onChange: (g) => {
906
- fe(m.indexOf(g));
902
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": j ? "Click to pause animation" : "Click to play animation", children: j ? /* @__PURE__ */ l.jsx(ri, {}) : /* @__PURE__ */ l.jsx(ci, {}) }),
903
+ /* @__PURE__ */ l.jsx(Je, { min: m[0], max: m[m.length - 1], marks: be, step: null, defaultValue: m[m.length - 1], value: m[q], onChangeComplete: (x) => {
904
+ fe(m.indexOf(x));
905
+ }, onChange: (x) => {
906
+ fe(m.indexOf(x));
907
907
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
908
- ] }) : null, t[34] = Q, t[35] = be, t[36] = j, t[37] = u.enabled, t[38] = m, t[39] = Xt) : Xt = t[39];
908
+ ] }) : null, t[34] = q, t[35] = be, t[36] = j, t[37] = c.enabled, t[38] = m, t[39] = Xt) : Xt = t[39];
909
909
  let ie;
910
- t[40] !== z || t[41] !== $ || t[42] !== d || t[43] !== It || t[44] !== $t || t[45] !== se || t[46] !== r || t[47] !== _ || t[48] !== rt || t[49] !== E || t[50] !== a || t[51] !== _t || t[52] !== X || t[53] !== st || t[54] !== k || t[55] !== Q || t[56] !== at || t[57] !== w || t[58] !== O || t[59] !== nt || t[60] !== gt || t[61] !== Ot || t[62] !== ot || t[63] !== Nt || t[64] !== x || t[65] !== G || t[66] !== J || t[67] !== f || t[68] !== Jt || t[69] !== I || t[70] !== Y || t[71] !== qt || t[72] !== h || t[73] !== ct || t[74] !== U || t[75] !== Et || t[76] !== Bt || t[77] !== Ft || t[78] !== Dt || t[79] !== St || t[80] !== p || t[81] !== y || t[82] !== Rt || t[83] !== S || t[84] !== F || t[85] !== mt || t[86] !== K || t[87] !== vt || t[88] !== V || t[89] !== u.dateFormat || t[90] !== u.enabled || t[91] !== Ct || t[92] !== Gt || t[93] !== Tt || t[94] !== m || t[95] !== B || t[96] !== v ? (ie = /* @__PURE__ */ l.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ l.jsx(Qe, {}) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
911
- Bt && a.filter(sa).length !== 0 && _ ? /* @__PURE__ */ l.jsx(ii, { width: v, colorLegendTitle: rt, colors: h || ze[V].sequentialColors.positiveColorsx10, colorDomain: _, showNAColor: !1, className: r?.colorLegend }) : null,
912
- /* @__PURE__ */ l.jsx(Ze, { ref: c, children: F && S ? /* @__PURE__ */ l.jsx(z, { data: p ? Be(ai(a, u.dateFormat || "yyyy").filter((g) => u.enabled ? g.date === Pe(new Date(m[Q]), u.dateFormat || "yyyy") : g).filter((g) => st ? !b(g.size) : g), [(g) => g.size === void 0 ? p === "asc" ? (I === "horizontal" ? 1 : -1) * (1 / 0) : (I === "horizontal" ? -1 : 1) * (1 / 0) : g.size], [p]).filter((g, he) => gt ? he < gt : !0) : a.filter((g) => st ? !b(g.size) : g).filter((g, he) => gt ? he < gt : !0), barColor: It, targetColor: mt, width: F, refValues: ct, height: S, suffix: Rt, prefix: qt, barPadding: $t, showLabels: Ft, showValues: St, showTicks: Dt, truncateBy: Tt, leftMargin: O, rightMargin: Et, qualitativeRangeColors: h || ze[V].sequentialColors.positiveColorsx10, topMargin: Gt, bottomMargin: se, tooltip: Ct, onSeriesMouseOver: Jt, maxValue: Ot, minValue: x, highlightedDataPoints: k, onSeriesMouseClick: f, labelOrder: at, maxBarThickness: nt, minBarThickness: Nt, resetSelectionOnDoubleClick: U, detailsOnClick: _t, barAxisTitle: d, noOfTicks: J, valueColor: B, styles: y, classNames: r, targetStyle: vt, dimmedOpacity: X, measureBarWidthFactor: ot, animate: $ === !0 ? {
913
- duration: 0.5,
914
- once: !0,
915
- amount: 0.5
916
- } : $ || {
917
- duration: 0,
918
- once: !0,
919
- amount: 0
920
- }, precision: Y, customLayers: E, naLabel: G, targetLineThickness: K, rtl: w === "ar" || w === "he" }) : null })
921
- ] }) }), t[40] = z, t[41] = $, t[42] = d, t[43] = It, t[44] = $t, t[45] = se, t[46] = r, t[47] = _, t[48] = rt, t[49] = E, t[50] = a, t[51] = _t, t[52] = X, t[53] = st, t[54] = k, t[55] = Q, t[56] = at, t[57] = w, t[58] = O, t[59] = nt, t[60] = gt, t[61] = Ot, t[62] = ot, t[63] = Nt, t[64] = x, t[65] = G, t[66] = J, t[67] = f, t[68] = Jt, t[69] = I, t[70] = Y, t[71] = qt, t[72] = h, t[73] = ct, t[74] = U, t[75] = Et, t[76] = Bt, t[77] = Ft, t[78] = Dt, t[79] = St, t[80] = p, t[81] = y, t[82] = Rt, t[83] = S, t[84] = F, t[85] = mt, t[86] = K, t[87] = vt, t[88] = V, t[89] = u.dateFormat, t[90] = u.enabled, t[91] = Ct, t[92] = Gt, t[93] = Tt, t[94] = m, t[95] = B, t[96] = v, t[97] = ie) : ie = t[97];
910
+ t[40] !== r?.colorLegend || t[41] !== _ || t[42] !== rt || t[43] !== i || t[44] !== f || t[45] !== Bt || t[46] !== M || t[47] !== v ? (ie = Bt && i.filter(ua).length !== 0 && _ && i.length > 0 ? /* @__PURE__ */ l.jsx(oi, { width: v, colorLegendTitle: rt, colors: f || Oe[M].sequentialColors.positiveColorsx10, colorDomain: _, showNAColor: !1, className: r?.colorLegend }) : null, t[40] = r?.colorLegend, t[41] = _, t[42] = rt, t[43] = i, t[44] = f, t[45] = Bt, t[46] = M, t[47] = v, t[48] = ie) : ie = t[48];
922
911
  let ae;
923
- t[98] !== r?.footnote || t[99] !== r?.source || t[100] !== pt || t[101] !== dt || t[102] !== y?.footnote || t[103] !== y?.source || t[104] !== v ? (ae = dt || pt ? /* @__PURE__ */ l.jsx(ti, { styles: {
912
+ t[49] !== i.length ? (ae = i.length === 0 && /* @__PURE__ */ l.jsx(ii, {}), t[49] = i.length, t[50] = ae) : ae = t[50];
913
+ let Ae;
914
+ t[51] !== z || t[52] !== $ || t[53] !== d || t[54] !== It || t[55] !== $t || t[56] !== se || t[57] !== r || t[58] !== G || t[59] !== i || t[60] !== _t || t[61] !== Y || t[62] !== st || t[63] !== k || t[64] !== q || t[65] !== at || t[66] !== w || t[67] !== O || t[68] !== nt || t[69] !== gt || t[70] !== Ot || t[71] !== ot || t[72] !== Lt || t[73] !== p || t[74] !== H || t[75] !== K || t[76] !== h || t[77] !== Jt || t[78] !== I || t[79] !== E || t[80] !== qt || t[81] !== f || t[82] !== ct || t[83] !== J || t[84] !== Et || t[85] !== Ft || t[86] !== Dt || t[87] !== St || t[88] !== g || t[89] !== y || t[90] !== Rt || t[91] !== S || t[92] !== F || t[93] !== mt || t[94] !== Q || t[95] !== vt || t[96] !== M || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Ct || t[100] !== Gt || t[101] !== Tt || t[102] !== m || t[103] !== P ? (Ae = F && S && i.length > 0 ? /* @__PURE__ */ l.jsx(z, { data: g ? Ge(Te(i, c.dateFormat || "yyyy").filter((x) => c.enabled ? x.date === De(new Date(m[q]), c.dateFormat || "yyyy") : x).filter((x) => st ? !b(x.size) : x), [(x) => x.size === void 0 ? g === "asc" ? (I === "horizontal" ? 1 : -1) * (1 / 0) : (I === "horizontal" ? -1 : 1) * (1 / 0) : x.size], [g]).filter((x, he) => gt ? he < gt : !0) : Te(i, c.dateFormat || "yyyy").filter((x) => c.enabled ? x.date === De(new Date(m[q]), c.dateFormat || "yyyy") : x).filter((x) => st ? !b(x.size) : x).filter((x, he) => gt ? he < gt : !0), barColor: It, targetColor: mt, width: F, refValues: ct, height: S, suffix: Rt, prefix: qt, barPadding: $t, showLabels: Ft, showValues: St, showTicks: Dt, truncateBy: Tt, leftMargin: O, rightMargin: Et, qualitativeRangeColors: f || Oe[M].sequentialColors.positiveColorsx10, topMargin: Gt, bottomMargin: se, tooltip: Ct, onSeriesMouseOver: Jt, maxValue: Ot, minValue: p, highlightedDataPoints: k, onSeriesMouseClick: h, labelOrder: at, maxBarThickness: nt, minBarThickness: Lt, resetSelectionOnDoubleClick: J, detailsOnClick: _t, barAxisTitle: d, noOfTicks: K, valueColor: P, styles: y, classNames: r, targetStyle: vt, dimmedOpacity: Y, measureBarWidthFactor: ot, animate: $ === !0 ? {
915
+ duration: 0.5,
916
+ once: !0,
917
+ amount: 0.5
918
+ } : $ || {
919
+ duration: 0,
920
+ once: !0,
921
+ amount: 0
922
+ }, precision: E, customLayers: G, naLabel: H, targetLineThickness: Q, rtl: w === "ar" || w === "he" }) : null, t[51] = z, t[52] = $, t[53] = d, t[54] = It, t[55] = $t, t[56] = se, t[57] = r, t[58] = G, t[59] = i, t[60] = _t, t[61] = Y, t[62] = st, t[63] = k, t[64] = q, t[65] = at, t[66] = w, t[67] = O, t[68] = nt, t[69] = gt, t[70] = Ot, t[71] = ot, t[72] = Lt, t[73] = p, t[74] = H, t[75] = K, t[76] = h, t[77] = Jt, t[78] = I, t[79] = E, t[80] = qt, t[81] = f, t[82] = ct, t[83] = J, t[84] = Et, t[85] = Ft, t[86] = Dt, t[87] = St, t[88] = g, t[89] = y, t[90] = Rt, t[91] = S, t[92] = F, t[93] = mt, t[94] = Q, t[95] = vt, t[96] = M, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Ct, t[100] = Gt, t[101] = Tt, t[102] = m, t[103] = P, t[104] = Ae) : Ae = t[104];
923
+ let Ve;
924
+ t[105] !== ae || t[106] !== Ae ? (Ve = /* @__PURE__ */ l.jsxs(ai, { ref: u, children: [
925
+ ae,
926
+ Ae
927
+ ] }), t[105] = ae, t[106] = Ae, t[107] = Ve) : Ve = t[107];
928
+ let ze;
929
+ t[108] !== ie || t[109] !== Ve ? (ze = /* @__PURE__ */ l.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
930
+ ie,
931
+ Ve
932
+ ] }), t[108] = ie, t[109] = Ve, t[110] = ze) : ze = t[110];
933
+ let je;
934
+ t[111] !== r?.footnote || t[112] !== r?.source || t[113] !== pt || t[114] !== dt || t[115] !== y?.footnote || t[116] !== y?.source || t[117] !== v ? (je = dt || pt ? /* @__PURE__ */ l.jsx(li, { styles: {
924
935
  footnote: y?.footnote,
925
936
  source: y?.source
926
937
  }, classNames: {
927
938
  footnote: r?.footnote,
928
939
  source: r?.source
929
- }, sources: dt, footNote: pt, width: v }) : null, t[98] = r?.footnote, t[99] = r?.source, t[100] = pt, t[101] = dt, t[102] = y?.footnote, t[103] = y?.source, t[104] = v, t[105] = ae) : ae = t[105];
930
- let Ve;
931
- return t[106] !== ue || t[107] !== te || t[108] !== tt || t[109] !== kt || t[110] !== w || t[111] !== H || t[112] !== A || t[113] !== Ut || t[114] !== Me || t[115] !== o || t[116] !== ht || t[117] !== Xt || t[118] !== ie || t[119] !== ae || t[120] !== V || t[121] !== v ? (Ve = /* @__PURE__ */ l.jsxs(_e, { className: Me, style: o, id: tt, ref: n, "aria-label": ue, backgroundColor: te, theme: V, language: w, minHeight: H, width: v, height: kt, relativeHeight: Ut, padding: A, children: [
940
+ }, sources: dt, footNote: pt, width: v }) : null, t[111] = r?.footnote, t[112] = r?.source, t[113] = pt, t[114] = dt, t[115] = y?.footnote, t[116] = y?.source, t[117] = v, t[118] = je) : je = t[118];
941
+ let Ce;
942
+ return t[119] !== ue || t[120] !== te || t[121] !== tt || t[122] !== kt || t[123] !== w || t[124] !== U || t[125] !== V || t[126] !== Ut || t[127] !== Me || t[128] !== o || t[129] !== ht || t[130] !== Xt || t[131] !== ze || t[132] !== je || t[133] !== M || t[134] !== v ? (Ce = /* @__PURE__ */ l.jsxs(ni, { className: Me, style: o, id: tt, ref: n, "aria-label": ue, backgroundColor: te, theme: M, language: w, minHeight: U, width: v, height: kt, relativeHeight: Ut, padding: V, children: [
932
943
  ht,
933
944
  Xt,
934
- ie,
935
- ae
936
- ] }), t[106] = ue, t[107] = te, t[108] = tt, t[109] = kt, t[110] = w, t[111] = H, t[112] = A, t[113] = Ut, t[114] = Me, t[115] = o, t[116] = ht, t[117] = Xt, t[118] = ie, t[119] = ae, t[120] = V, t[121] = v, t[122] = Ve) : Ve = t[122], Ve;
945
+ ze,
946
+ je
947
+ ] }), t[119] = ue, t[120] = te, t[121] = tt, t[122] = kt, t[123] = w, t[124] = U, t[125] = V, t[126] = Ut, t[127] = Me, t[128] = o, t[129] = ht, t[130] = Xt, t[131] = ze, t[132] = je, t[133] = M, t[134] = v, t[135] = Ce) : Ce = t[135], Ce;
937
948
  }
938
- function sa(e) {
949
+ function ua(e) {
939
950
  return e.qualitativeRange;
940
951
  }
941
- function oa(e) {
952
+ function ma(e) {
942
953
  return e !== void 0;
943
954
  }
944
- function ra(e) {
955
+ function fa(e) {
945
956
  return e !== void 0;
946
957
  }
947
- function ca(e) {
958
+ function ha(e) {
948
959
  return e.data;
949
960
  }
950
- function ua(e) {
961
+ function da(e) {
951
962
  return e !== void 0;
952
963
  }
953
- function ma(e) {
964
+ function xa(e) {
954
965
  return e.data;
955
966
  }
956
- function fa(e, t) {
967
+ function pa(e, t) {
957
968
  return e - t;
958
969
  }
959
- function ha(e) {
970
+ function ga(e) {
960
971
  return e.date;
961
972
  }
962
973
  export {
963
- Ea as BulletChart
974
+ Ja as BulletChart
964
975
  };
965
976
  //# sourceMappingURL=BulletChart.js.map