@undp/data-viz 2.1.0 → 2.1.1

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