@undp/data-viz 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/Axis-D56Gy0se.js +31 -0
  4. package/dist/Axis-D56Gy0se.js.map +1 -0
  5. package/dist/Axis-Jt_tmhxS.cjs +2 -0
  6. package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
  7. package/dist/BarGraph.cjs +1 -1
  8. package/dist/BarGraph.cjs.map +1 -1
  9. package/dist/BarGraph.d.ts +6 -0
  10. package/dist/BarGraph.js +1759 -1750
  11. package/dist/BarGraph.js.map +1 -1
  12. package/dist/BeeSwarmChart.cjs +1 -1
  13. package/dist/BeeSwarmChart.cjs.map +1 -1
  14. package/dist/BeeSwarmChart.d.ts +2 -0
  15. package/dist/BeeSwarmChart.js +270 -267
  16. package/dist/BeeSwarmChart.js.map +1 -1
  17. package/dist/BiVariateChoroplethMap.cjs +1 -1
  18. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  19. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  20. package/dist/BiVariateChoroplethMap.js +264 -250
  21. package/dist/BiVariateChoroplethMap.js.map +1 -1
  22. package/dist/BulletChart.cjs +1 -1
  23. package/dist/BulletChart.cjs.map +1 -1
  24. package/dist/BulletChart.d.ts +2 -0
  25. package/dist/BulletChart.js +544 -542
  26. package/dist/BulletChart.js.map +1 -1
  27. package/dist/ButterflyChart.cjs +1 -1
  28. package/dist/ButterflyChart.cjs.map +1 -1
  29. package/dist/ButterflyChart.d.ts +2 -0
  30. package/dist/ButterflyChart.js +332 -330
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +2 -0
  35. package/dist/ChoroplethMap.js +272 -258
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/DifferenceLineChart.cjs +1 -1
  38. package/dist/DifferenceLineChart.js +1 -1
  39. package/dist/DualAxisLineChart.cjs +1 -1
  40. package/dist/DualAxisLineChart.js +1 -1
  41. package/dist/DumbbellChart.cjs +1 -1
  42. package/dist/DumbbellChart.cjs.map +1 -1
  43. package/dist/DumbbellChart.d.ts +2 -0
  44. package/dist/DumbbellChart.js +537 -536
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/GraphEl-BZbunD1_.cjs +2 -0
  47. package/dist/GraphEl-BZbunD1_.cjs.map +1 -0
  48. package/dist/{GraphEl-DKrjuQNB.js → GraphEl-C1Rz1V__.js} +68 -57
  49. package/dist/GraphEl-C1Rz1V__.js.map +1 -0
  50. package/dist/GriddedGraphs.cjs +1 -1
  51. package/dist/GriddedGraphs.d.ts +2 -0
  52. package/dist/GriddedGraphs.js +1 -1
  53. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  54. package/dist/Histogram.cjs +1 -1
  55. package/dist/Histogram.cjs.map +1 -1
  56. package/dist/Histogram.d.ts +2 -0
  57. package/dist/Histogram.js +50 -49
  58. package/dist/Histogram.js.map +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.js +1 -1
  61. package/dist/MultiGraphDashboard.d.ts +2 -0
  62. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  63. package/dist/MultiLineAltChart.cjs +1 -1
  64. package/dist/MultiLineAltChart.js +1 -1
  65. package/dist/MultiLineChart.cjs +1 -1
  66. package/dist/MultiLineChart.js +1 -1
  67. package/dist/ParetoChart.cjs +1 -1
  68. package/dist/ParetoChart.js +1 -1
  69. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  70. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  71. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  72. package/dist/ScatterPlot.cjs +1 -1
  73. package/dist/ScatterPlot.js +1 -1
  74. package/dist/ScrollStory.d.ts +2 -0
  75. package/dist/SimpleLineChart.cjs +1 -1
  76. package/dist/SimpleLineChart.js +1 -1
  77. package/dist/SingleGraphDashboard.cjs +1 -1
  78. package/dist/SingleGraphDashboard.d.ts +2 -0
  79. package/dist/SingleGraphDashboard.js +1 -1
  80. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  81. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  82. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  83. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  84. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  85. package/dist/SlopeChart.cjs +1 -1
  86. package/dist/SlopeChart.js +1 -1
  87. package/dist/Types.d.ts +2 -0
  88. package/dist/WaterfallChart.cjs +1 -1
  89. package/dist/WaterfallChart.cjs.map +1 -1
  90. package/dist/WaterfallChart.d.ts +2 -0
  91. package/dist/WaterfallChart.js +263 -261
  92. package/dist/WaterfallChart.js.map +1 -1
  93. package/dist/index.d.ts +24 -0
  94. package/package.json +1 -1
  95. package/dist/Axis-DoOqnt6g.js +0 -32
  96. package/dist/Axis-DoOqnt6g.js.map +0 -1
  97. package/dist/Axis-Dtjn-EgM.cjs +0 -2
  98. package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
  99. package/dist/GraphEl-CBZdcvb7.cjs +0 -2
  100. package/dist/GraphEl-CBZdcvb7.cjs.map +0 -1
  101. package/dist/GraphEl-DKrjuQNB.js.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,731 +1,727 @@
1
- import { c as we, j as i, m as $e } from "./index-CHPV5EwG-DecW7_qr.js";
2
- import { useRef as ve, useState as te, useEffect as De } from "react";
3
- import { g as Xe, N as Ye } from "./getSliderMarks-Cvg8zHBU.js";
4
- import { f as Me, p as Ee } from "./parse-Dv4of-PN.js";
5
- import { o as Pe } from "./index-BZQYSqar.js";
6
- import { s as he } from "./index-CeVNqhMO.js";
7
- import { i as Le } from "./index-Bwrro8-q.js";
1
+ import { c as we, j as i, m as Me } from "./index-CHPV5EwG-DecW7_qr.js";
2
+ import { useRef as ve, useState as Zt, useEffect as Ie } from "react";
3
+ import { g as Ee, N as Ge } from "./getSliderMarks-Cvg8zHBU.js";
4
+ import { f as Ce, p as Re } from "./parse-Dv4of-PN.js";
5
+ import { o as We } from "./index-BZQYSqar.js";
6
+ import { s as me } from "./index-CeVNqhMO.js";
7
+ import { i as Ne } from "./index-Bwrro8-q.js";
8
8
  import { n as be } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as Ie } from "./Tooltip-BRnAz2Gv.js";
10
- import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as Ge } from "./YAxesLabels-QICWVsHf.js";
12
- import { A as Ne } from "./Axis-DoOqnt6g.js";
13
- import { A as je } from "./AxisTitle-VFq89Olw.js";
14
- import { X as Re } from "./XTicksAndGridLines-CVZkZkpS.js";
15
- import { R as qe, a as Ue } from "./ReferenceLine-DgtoRgw0.js";
16
- import { Y as Je } from "./YTicksAndGridLines-GnXnSRF2.js";
17
- import { X as Ke } from "./XAxesLabels-rhK7lRjO.js";
18
- import { D as Te } from "./DetailsModal-BMCTgVsk.js";
19
- import { u as Se } from "./use-in-view-Dl5L8LtP.js";
20
- import { a as Be } from "./linear-CalFSAaO.js";
21
- import { b as Oe } from "./band-DYty33LD.js";
22
- import { m as ee } from "./proxy-DRuSUlPL.js";
23
- import { A as Fe } from "./index-CtMBjvtq.js";
24
- import { GraphHeader as Qe } from "./GraphHeader.js";
25
- import { GraphFooter as Ze } from "./GraphFooter.js";
26
- import { ColorLegendWithMouseOver as _e } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as ge } from "./Colors.js";
28
- import { E as ti } from "./EmptyState-tZBErBKF.js";
29
- import { P as ei, e as ii } from "./index-BQYOuXdl.js";
30
- import { d as ze, f as ai } from "./ensureCompleteData-CDIukSG6.js";
31
- import { a as li, G as si } from "./GraphContainer-CF6ws3pd.js";
32
- import { u as ni } from "./uniqBy-BHy4I8PK.js";
33
- import { g as We } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
- function oi(e) {
35
- const t = we.c(130), {
36
- data: s,
9
+ import { T as je } from "./Tooltip-BRnAz2Gv.js";
10
+ import { c as ee } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
+ import { Y as qe } from "./YAxesLabels-QICWVsHf.js";
12
+ import { A as Te } from "./Axis-D56Gy0se.js";
13
+ import { A as Se } from "./AxisTitle-VFq89Olw.js";
14
+ import { X as Ue } from "./XTicksAndGridLines-CVZkZkpS.js";
15
+ import { R as Je, a as Ke } from "./ReferenceLine-DgtoRgw0.js";
16
+ import { Y as Qe } from "./YTicksAndGridLines-GnXnSRF2.js";
17
+ import { X as Ze } from "./XAxesLabels-rhK7lRjO.js";
18
+ import { D as Be } from "./DetailsModal-BMCTgVsk.js";
19
+ import { u as Fe } from "./use-in-view-Dl5L8LtP.js";
20
+ import { a as Pe } from "./linear-CalFSAaO.js";
21
+ import { b as ke } from "./band-DYty33LD.js";
22
+ import { m as _t } from "./proxy-DRuSUlPL.js";
23
+ import { A as He } from "./index-CtMBjvtq.js";
24
+ import { GraphHeader as _e } from "./GraphHeader.js";
25
+ import { GraphFooter as ti } from "./GraphFooter.js";
26
+ import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
27
+ import { Colors as pe } from "./Colors.js";
28
+ import { E as ii } from "./EmptyState-tZBErBKF.js";
29
+ import { P as si, e as li } from "./index-BQYOuXdl.js";
30
+ import { d as De, f as oi } from "./ensureCompleteData-CDIukSG6.js";
31
+ import { a as ai, G as ni } from "./GraphContainer-CF6ws3pd.js";
32
+ import { u as ri } from "./uniqBy-BHy4I8PK.js";
33
+ import { g as Ye } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
+ function ci(e) {
35
+ const t = we.c(131), {
36
+ data: l,
37
37
  leftMargin: X,
38
38
  rightMargin: Ut,
39
- topMargin: Kt,
40
- bottomMargin: Lt,
41
- barColors: Ot,
42
- barPadding: Tt,
43
- showTicks: P,
44
- truncateBy: K,
45
- width: y,
46
- height: st,
47
- suffix: ht,
48
- prefix: it,
49
- showValues: Jt,
39
+ topMargin: Jt,
40
+ bottomMargin: Tt,
41
+ barColors: Ct,
42
+ barPadding: Ft,
43
+ showTicks: W,
44
+ truncateBy: J,
45
+ width: A,
46
+ height: R,
47
+ suffix: ft,
48
+ prefix: et,
49
+ showValues: Lt,
50
50
  showLabels: Y,
51
- tooltip: at,
52
- onSeriesMouseOver: Mt,
53
- refValues: kt,
54
- maxValue: Gt,
55
- minValue: w,
56
- onSeriesMouseClick: Q,
57
- selectedColor: E,
51
+ tooltip: lt,
52
+ onSeriesMouseOver: Vt,
53
+ refValues: zt,
54
+ maxValue: Xt,
55
+ minValue: C,
56
+ onSeriesMouseClick: K,
57
+ selectedColor: B,
58
58
  rtl: T,
59
- labelOrder: rt,
60
- maxBarThickness: Z,
61
- resetSelectionOnDoubleClick: ft,
62
- detailsOnClick: B,
63
- barAxisTitle: _,
64
- valueColor: lt,
65
- noOfTicks: r,
66
- styles: l,
67
- classNames: n,
68
- animate: u,
69
- colorDomain: c,
70
- precision: f,
71
- customLayers: d,
72
- naLabel: V
73
- } = e, ct = X === void 0 ? 100 : X, tt = Ut === void 0 ? 40 : Ut, Ft = Kt === void 0 ? 25 : Kt, Pt = Lt === void 0 ? 10 : Lt, Et = ve(null);
74
- let q;
75
- t[0] !== u.amount || t[1] !== u.once ? (q = {
76
- once: u.once,
77
- amount: u.amount
78
- }, t[0] = u.amount, t[1] = u.once, t[2] = q) : q = t[2];
79
- const pt = Se(Et, q), Rt = _ ? Ft + 25 : Ft;
80
- let m;
81
- t[3] !== Pt || t[4] !== ct || t[5] !== tt || t[6] !== Rt ? (m = {
82
- top: Rt,
59
+ labelOrder: dt,
60
+ maxBarThickness: Q,
61
+ resetSelectionOnDoubleClick: pt,
62
+ detailsOnClick: F,
63
+ barAxisTitle: Z,
64
+ valueColor: it,
65
+ noOfTicks: c,
66
+ styles: s,
67
+ classNames: a,
68
+ animate: m,
69
+ colorDomain: d,
70
+ precision: p,
71
+ customLayers: x,
72
+ naLabel: at,
73
+ hideAxisLine: D
74
+ } = e, E = X === void 0 ? 100 : X, Yt = Ut === void 0 ? 40 : Ut, Et = Jt === void 0 ? 25 : Jt, Pt = Tt === void 0 ? 10 : Tt, Ht = ve(null);
75
+ let nt;
76
+ t[0] !== m.amount || t[1] !== m.once ? (nt = {
77
+ once: m.once,
78
+ amount: m.amount
79
+ }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
80
+ const ut = Fe(Ht, nt), _ = Z ? Et + 25 : Et;
81
+ let u;
82
+ t[3] !== Pt || t[4] !== E || t[5] !== Yt || t[6] !== _ ? (u = {
83
+ top: _,
83
84
  bottom: Pt,
84
- left: ct,
85
- right: tt
86
- }, t[3] = Pt, t[4] = ct, t[5] = tt, t[6] = Rt, t[7] = m) : m = t[7];
87
- const o = m, [I, O] = te(void 0), [z, L] = te(void 0), [N, Ct] = te(void 0), [It, nt] = te(void 0), Nt = y - o.left - o.right, H = st - o.top - o.bottom;
88
- let G;
89
- if (t[8] !== s || t[9] !== rt) {
90
- const p = /* @__PURE__ */ new Set(), xt = s.map((h, x) => {
91
- const Yt = rt ? `${h.label}` : `${x}`;
92
- return p.add(Yt), {
93
- ...h,
94
- id: Yt
85
+ left: E,
86
+ right: Yt
87
+ }, t[3] = Pt, t[4] = E, t[5] = Yt, t[6] = _, t[7] = u) : u = t[7];
88
+ const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
89
+ let st;
90
+ if (t[8] !== l || t[9] !== dt) {
91
+ const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
92
+ const Nt = dt ? `${f.label}` : `${g}`;
93
+ return b.add(Nt), {
94
+ ...f,
95
+ id: Nt
95
96
  };
96
- }), Xt = rt ? rt.filter((h) => !p.has(h)) : [];
97
- let A;
98
- t[11] !== s[0].size.length ? (A = (h) => ({
99
- id: h,
100
- label: h,
101
- size: Array(s[0].size.length).fill(null)
102
- }), t[11] = s[0].size.length, t[12] = A) : A = t[12], G = [...xt, ...Xt.map(A)], t[8] = s, t[9] = rt, t[10] = G;
97
+ }), $t = dt ? dt.filter((f) => !b.has(f)) : [];
98
+ let M;
99
+ t[11] !== l[0].size.length ? (M = (f) => ({
100
+ id: f,
101
+ label: f,
102
+ size: Array(l[0].size.length).fill(null)
103
+ }), t[11] = l[0].size.length, t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = dt, t[10] = st;
103
104
  } else
104
- G = t[10];
105
- const $ = G;
106
- let Ht;
107
- t[13] !== $ || t[14] !== rt ? (Ht = rt ?? $.map(fi), t[13] = $, t[14] = rt, t[15] = Ht) : Ht = t[15];
108
- const bt = Ht;
109
- let gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt, U;
110
- if (t[16] !== u || t[17] !== _ || t[18] !== Ot || t[19] !== bt || t[20] !== Tt || t[21] !== n?.graphObjectValues || t[22] !== n?.xAxis?.gridLines || t[23] !== n?.xAxis?.labels || t[24] !== n?.xAxis?.title || t[25] !== n?.yAxis?.axis || t[26] !== n?.yAxis?.labels || t[27] !== c || t[28] !== d || t[29] !== s[0].size || t[30] !== $ || t[31] !== B || t[32] !== H || t[33] !== Nt || t[34] !== st || t[35] !== pt || t[36] !== o.bottom || t[37] !== o.left || t[38] !== o.top || t[39] !== Z || t[40] !== Gt || t[41] !== w || t[42] !== z || t[43] !== V || t[44] !== r || t[45] !== Q || t[46] !== Mt || t[47] !== f || t[48] !== it || t[49] !== kt || t[50] !== ft || t[51] !== T || t[52] !== E || t[53] !== Y || t[54] !== P || t[55] !== Jt || t[56] !== l?.graphObjectValues || t[57] !== l?.xAxis?.gridLines || t[58] !== l?.xAxis?.labels || t[59] !== l?.xAxis?.title || t[60] !== l?.yAxis?.axis || t[61] !== l?.yAxis?.labels || t[62] !== ht || t[63] !== Ft || t[64] !== K || t[65] !== lt || t[66] !== y) {
111
- const p = Be().domain([w, Gt]).range([0, Nt]).nice(), xt = Oe().domain(bt).range([0, Z ? Math.min(H, Z * bt.length) : H]).paddingInner(Tt), Xt = Oe().domain(s[0].size.map(hi)).range([0, xt.bandwidth()]).paddingInner(0.1), A = p.ticks(r);
112
- dt = ee.svg, zt = Et, yt = `${y}px`, ot = `${st}px`, ut = `0 0 ${y} ${st}`, mt = "ltr", Vt = `translate(${o.left},${o.top})`, et = P ? /* @__PURE__ */ i.jsx(Re, { values: A.filter(xi), x: A.filter(mi).map((R) => p(R)), y1: 0 - Ft, y2: H + o.bottom, styles: {
113
- gridLines: l?.xAxis?.gridLines,
114
- labels: l?.xAxis?.labels
105
+ st = t[10];
106
+ const k = st;
107
+ let xt;
108
+ t[13] !== k || t[14] !== dt ? (xt = dt ?? k.map(gi), t[13] = k, t[14] = dt, t[15] = xt) : xt = t[15];
109
+ const St = xt;
110
+ let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
111
+ if (t[16] !== m || t[17] !== Z || t[18] !== Ct || t[19] !== St || t[20] !== Ft || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== l[0].size || t[30] !== k || t[31] !== F || t[32] !== G || t[33] !== Wt || t[34] !== R || t[35] !== D || t[36] !== ut || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.top || t[40] !== Q || t[41] !== Xt || t[42] !== C || t[43] !== y || t[44] !== at || t[45] !== c || t[46] !== K || t[47] !== Vt || t[48] !== p || t[49] !== et || t[50] !== zt || t[51] !== pt || t[52] !== T || t[53] !== B || t[54] !== Y || t[55] !== W || t[56] !== Lt || t[57] !== s?.graphObjectValues || t[58] !== s?.xAxis?.gridLines || t[59] !== s?.xAxis?.labels || t[60] !== s?.xAxis?.title || t[61] !== s?.yAxis?.axis || t[62] !== s?.yAxis?.labels || t[63] !== ft || t[64] !== Et || t[65] !== J || t[66] !== it || t[67] !== A) {
112
+ const b = Pe().domain([C, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.min(G, Q * St.length) : G]).paddingInner(Ft), $t = ke().domain(l[0].size.map(pi)).range([0, At.bandwidth()]).paddingInner(0.1), M = b.ticks(c);
113
+ bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = W ? /* @__PURE__ */ i.jsx(Ue, { values: M.filter(fi), x: M.filter(hi).map((j) => b(j)), y1: 0 - Et, y2: G + r.bottom, styles: {
114
+ gridLines: s?.xAxis?.gridLines,
115
+ labels: s?.xAxis?.labels
115
116
  }, classNames: {
116
- gridLines: n?.xAxis?.gridLines,
117
- labels: n?.xAxis?.labels
118
- }, suffix: ht, prefix: it, labelType: "secondary", showGridLines: !0, precision: f }) : null;
119
- const h = Nt / 2, x = 0 - o.top + 15, Yt = l?.xAxis?.title, Zt = n?.xAxis?.title;
120
- t[81] !== _ || t[82] !== h || t[83] !== x || t[84] !== Yt || t[85] !== Zt ? (S = /* @__PURE__ */ i.jsx(je, { x: h, y: x, style: Yt, className: Zt, text: _ }), t[81] = _, t[82] = h, t[83] = x, t[84] = Yt, t[85] = Zt, t[86] = S) : S = t[86], t[87] !== d ? (j = d.filter(ui).map(di), t[87] = d, t[88] = j) : j = t[88], gt = Fe, U = $.map((R) => le(xt(R.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
117
+ gridLines: a?.xAxis?.gridLines,
118
+ labels: a?.xAxis?.labels
119
+ }, suffix: ft, prefix: et, labelType: "secondary", showGridLines: !0, precision: p }) : null;
120
+ const f = Wt / 2, g = 0 - r.top + 15, Nt = s?.xAxis?.title, qt = a?.xAxis?.title;
121
+ t[82] !== Z || t[83] !== f || t[84] !== g || t[85] !== Nt || t[86] !== qt ? (S = /* @__PURE__ */ i.jsx(Se, { x: f, y: g, style: Nt, className: qt, text: Z }), t[82] = Z, t[83] = f, t[84] = g, t[85] = Nt, t[86] = qt, t[87] = S) : S = t[87], t[88] !== x ? (I = x.filter(mi).map(xi), t[88] = x, t[89] = I) : I = t[89], yt = He, q = k.map((j) => ee(At(j.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
121
122
  initial: {
122
123
  x: 0,
123
- y: xt(`${R.id}`)
124
+ y: At(`${j.id}`)
124
125
  },
125
126
  whileInView: {
126
127
  x: 0,
127
- y: xt(`${R.id}`),
128
+ y: At(`${j.id}`),
128
129
  transition: {
129
- duration: u.duration
130
+ duration: m.duration
130
131
  }
131
132
  }
132
- }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
133
+ }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
133
134
  opacity: 0,
134
135
  transition: {
135
- duration: u.duration
136
+ duration: m.duration
136
137
  }
137
138
  }, children: [
138
- R.size.map((D, St) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: E ? Ot[St] === E ? 1 : 0.3 : 0.85, onMouseEnter: (a) => {
139
- O({
140
- ...R,
141
- sizeIndex: St
142
- }), nt(a.clientY), Ct(a.clientX), Mt?.({
143
- ...R,
144
- sizeIndex: St
139
+ j.size.map((h, w) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? Ct[w] === B ? 1 : 0.3 : 0.85, onMouseEnter: (n) => {
140
+ gt({
141
+ ...j,
142
+ sizeIndex: w
143
+ }), rt(n.clientY), ot(n.clientX), Vt?.({
144
+ ...j,
145
+ sizeIndex: w
145
146
  });
146
- }, onMouseMove: (a) => {
147
- O({
148
- ...R,
149
- sizeIndex: St
150
- }), nt(a.clientY), Ct(a.clientX);
147
+ }, onMouseMove: (n) => {
148
+ gt({
149
+ ...j,
150
+ sizeIndex: w
151
+ }), rt(n.clientY), ot(n.clientX);
151
152
  }, onMouseLeave: () => {
152
- O(void 0), Ct(void 0), nt(void 0), Mt?.(void 0);
153
+ gt(void 0), ot(void 0), rt(void 0), Vt?.(void 0);
153
154
  }, onClick: () => {
154
- (Q || B) && (Le(z, {
155
- ...R,
156
- sizeIndex: St
157
- }) && ft ? (L(void 0), Q?.(void 0)) : (L({
158
- ...R,
159
- sizeIndex: St
160
- }), Q && Q({
161
- ...R,
162
- sizeIndex: St
155
+ (K || F) && (Ne(y, {
156
+ ...j,
157
+ sizeIndex: w
158
+ }) && pt ? (L(void 0), K?.(void 0)) : (L({
159
+ ...j,
160
+ sizeIndex: w
161
+ }), K && K({
162
+ ...j,
163
+ sizeIndex: w
163
164
  })));
164
165
  }, children: [
165
- le(D) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: Xt(`${St}`), variants: {
166
+ ee(h) ? null : /* @__PURE__ */ i.jsx(_t.rect, { y: $t(`${w}`), variants: {
166
167
  initial: {
167
168
  width: 0,
168
- x: p(0),
169
- fill: Ot[St]
169
+ x: b(0),
170
+ fill: Ct[w]
170
171
  },
171
172
  whileInView: {
172
- width: le(D) ? 0 : D >= 0 ? p(D) - p(0) : p(0) - p(D),
173
- x: D >= 0 ? p(0) : p(D),
174
- fill: Ot[St],
173
+ width: ee(h) ? 0 : h >= 0 ? b(h) - b(0) : b(0) - b(h),
174
+ x: h >= 0 ? b(0) : b(h),
175
+ fill: Ct[w],
175
176
  transition: {
176
- duration: u.duration
177
+ duration: m.duration
177
178
  }
178
179
  }
179
180
  }, exit: {
180
181
  width: 0,
181
- x: p(0),
182
+ x: b(0),
182
183
  transition: {
183
- duration: u.duration
184
+ duration: m.duration
184
185
  }
185
- }, height: Xt.bandwidth(), initial: "initial", animate: pt ? "whileInView" : "initial" }),
186
- Jt ? /* @__PURE__ */ i.jsx(ee.text, { y: Xt(`${St}`) + Xt.bandwidth() / 2, style: {
187
- textAnchor: D && D < 0 ? "end" : "start",
188
- ...l?.graphObjectValues || {}
189
- }, className: $e("graph-value text-sm", n?.graphObjectValues), dx: D && D < 0 ? -5 : 5, dy: "0.33em", variants: {
186
+ }, height: $t.bandwidth(), initial: "initial", animate: ut ? "whileInView" : "initial" }),
187
+ Lt ? /* @__PURE__ */ i.jsx(_t.text, { y: $t(`${w}`) + $t.bandwidth() / 2, style: {
188
+ textAnchor: h && h < 0 ? "end" : "start",
189
+ ...s?.graphObjectValues || {}
190
+ }, className: Me("graph-value text-sm", a?.graphObjectValues), dx: h && h < 0 ? -5 : 5, dy: "0.33em", variants: {
190
191
  initial: {
191
- x: p(0),
192
+ x: b(0),
192
193
  opacity: 0,
193
- fill: lt || Ot[St]
194
+ fill: it || Ct[w]
194
195
  },
195
196
  whileInView: {
196
- x: p(D || 0),
197
+ x: b(h || 0),
197
198
  opacity: 1,
198
- fill: lt || Ot[St],
199
+ fill: it || Ct[w],
199
200
  transition: {
200
- duration: u.duration
201
+ duration: m.duration
201
202
  }
202
203
  }
203
- }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
204
+ }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
204
205
  opacity: 0,
205
206
  transition: {
206
- duration: u.duration
207
+ duration: m.duration
207
208
  }
208
- }, children: be(D, V, f, it, ht) }) : null
209
- ] }, `${R.label}-${c[St] || St}`)),
210
- Y ? /* @__PURE__ */ i.jsx(Ge, { value: `${R.label}`.length < K ? `${R.label}` : `${`${R.label}`.substring(0, K)}...`, y: 0, x: 0 - o.left, width: p(w < 0 ? 0 : w) + o.left, height: xt.bandwidth(), style: l?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: pt }) : null
211
- ] }, R.label));
212
- const F = n?.yAxis?.axis;
213
- let M;
214
- t[89] !== F ? (M = {
215
- axis: F
216
- }, t[89] = F, t[90] = M) : M = t[90];
217
- const _t = l?.yAxis?.axis;
218
- let W;
219
- t[91] !== _t ? (W = {
220
- axis: _t
221
- }, t[91] = _t, t[92] = W) : W = t[92], Wt = /* @__PURE__ */ i.jsx(Ne, { x1: p(w < 0 ? 0 : w), x2: p(w < 0 ? 0 : w), y1: -2.5, y2: H + o.bottom, classNames: M, styles: W }), jt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((R, D) => /* @__PURE__ */ i.jsx(qe, { text: R.text, color: R.color, x: p(R.value), y1: 0 - o.top, y2: H + o.bottom, textSide: p(R.value) > Nt * 0.75 || T ? "left" : "right", classNames: R.classNames, styles: R.styles, animate: u, isInView: pt }, D)) }) : null, t[16] = u, t[17] = _, t[18] = Ot, t[19] = bt, t[20] = Tt, t[21] = n?.graphObjectValues, t[22] = n?.xAxis?.gridLines, t[23] = n?.xAxis?.labels, t[24] = n?.xAxis?.title, t[25] = n?.yAxis?.axis, t[26] = n?.yAxis?.labels, t[27] = c, t[28] = d, t[29] = s[0].size, t[30] = $, t[31] = B, t[32] = H, t[33] = Nt, t[34] = st, t[35] = pt, t[36] = o.bottom, t[37] = o.left, t[38] = o.top, t[39] = Z, t[40] = Gt, t[41] = w, t[42] = z, t[43] = V, t[44] = r, t[45] = Q, t[46] = Mt, t[47] = f, t[48] = it, t[49] = kt, t[50] = ft, t[51] = T, t[52] = E, t[53] = Y, t[54] = P, t[55] = Jt, t[56] = l?.graphObjectValues, t[57] = l?.xAxis?.gridLines, t[58] = l?.xAxis?.labels, t[59] = l?.xAxis?.title, t[60] = l?.yAxis?.axis, t[61] = l?.yAxis?.labels, t[62] = ht, t[63] = Ft, t[64] = K, t[65] = lt, t[66] = y, t[67] = gt, t[68] = dt, t[69] = Wt, t[70] = jt, t[71] = Vt, t[72] = et, t[73] = S, t[74] = j, t[75] = zt, t[76] = yt, t[77] = ot, t[78] = ut, t[79] = mt, t[80] = U;
209
+ }, children: be(h, at, p, et, ft) }) : null
210
+ ] }, `${j.label}-${d[w] || w}`)),
211
+ Y ? /* @__PURE__ */ i.jsx(qe, { value: `${j.label}`.length < J ? `${j.label}` : `${`${j.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: b(C < 0 ? 0 : C) + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null
212
+ ] }, j.label));
213
+ const Qt = a?.yAxis?.axis;
214
+ let P;
215
+ t[90] !== Qt ? (P = {
216
+ axis: Qt
217
+ }, t[90] = Qt, t[91] = P) : P = t[91];
218
+ const N = s?.yAxis?.axis;
219
+ let z;
220
+ t[92] !== N ? (z = {
221
+ axis: N
222
+ }, t[92] = N, t[93] = z) : z = t[93], vt = /* @__PURE__ */ i.jsx(Te, { x1: b(C < 0 ? 0 : C), x2: b(C < 0 ? 0 : C), y1: -2.5, y2: G + r.bottom, classNames: P, styles: z, hideAxisLine: D }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((j, h) => /* @__PURE__ */ i.jsx(Je, { text: j.text, color: j.color, x: b(j.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(j.value) > Wt * 0.75 || T ? "left" : "right", classNames: j.classNames, styles: j.styles, animate: m, isInView: ut }, h)) }) : null, t[16] = m, t[17] = Z, t[18] = Ct, t[19] = St, t[20] = Ft, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = l[0].size, t[30] = k, t[31] = F, t[32] = G, t[33] = Wt, t[34] = R, t[35] = D, t[36] = ut, t[37] = r.bottom, t[38] = r.left, t[39] = r.top, t[40] = Q, t[41] = Xt, t[42] = C, t[43] = y, t[44] = at, t[45] = c, t[46] = K, t[47] = Vt, t[48] = p, t[49] = et, t[50] = zt, t[51] = pt, t[52] = T, t[53] = B, t[54] = Y, t[55] = W, t[56] = Lt, t[57] = s?.graphObjectValues, t[58] = s?.xAxis?.gridLines, t[59] = s?.xAxis?.labels, t[60] = s?.xAxis?.title, t[61] = s?.yAxis?.axis, t[62] = s?.yAxis?.labels, t[63] = ft, t[64] = Et, t[65] = J, t[66] = it, t[67] = A, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht, t[81] = q;
222
223
  } else
223
- gt = t[67], dt = t[68], Wt = t[69], jt = t[70], Vt = t[71], et = t[72], S = t[73], j = t[74], zt = t[75], yt = t[76], ot = t[77], ut = t[78], mt = t[79], U = t[80];
224
- let vt;
225
- t[93] !== gt || t[94] !== Wt || t[95] !== jt || t[96] !== U ? (vt = /* @__PURE__ */ i.jsxs(gt, { children: [
226
- U,
227
- Wt,
228
- jt
229
- ] }), t[93] = gt, t[94] = Wt, t[95] = jt, t[96] = U, t[97] = vt) : vt = t[97];
230
- let wt;
231
- t[98] !== d ? (wt = d.filter(ci).map(ri), t[98] = d, t[99] = wt) : wt = t[99];
232
- let J;
233
- t[100] !== Vt || t[101] !== et || t[102] !== S || t[103] !== j || t[104] !== vt || t[105] !== wt ? (J = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
234
- et,
235
- S,
236
- j,
224
+ yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80], q = t[81];
225
+ let Ot;
226
+ t[94] !== yt || t[95] !== vt || t[96] !== Bt || t[97] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
227
+ q,
237
228
  vt,
238
- wt
239
- ] }), t[100] = Vt, t[101] = et, t[102] = S, t[103] = j, t[104] = vt, t[105] = wt, t[106] = J) : J = t[106];
240
- let At;
241
- t[107] !== dt || t[108] !== zt || t[109] !== yt || t[110] !== ot || t[111] !== ut || t[112] !== mt || t[113] !== J ? (At = /* @__PURE__ */ i.jsx(dt, { ref: zt, width: yt, height: ot, viewBox: ut, direction: mt, children: J }), t[107] = dt, t[108] = zt, t[109] = yt, t[110] = ot, t[111] = ut, t[112] = mt, t[113] = J, t[114] = At) : At = t[114];
242
- let g;
243
- t[115] !== n?.tooltip || t[116] !== N || t[117] !== It || t[118] !== I || t[119] !== l?.tooltip || t[120] !== at ? (g = I && at && N && It ? /* @__PURE__ */ i.jsx(Ie, { data: I, body: at, xPos: N, yPos: It, backgroundStyle: l?.tooltip, className: n?.tooltip }) : null, t[115] = n?.tooltip, t[116] = N, t[117] = It, t[118] = I, t[119] = l?.tooltip, t[120] = at, t[121] = g) : g = t[121];
244
- let b;
245
- t[122] !== n?.modal || t[123] !== B || t[124] !== z ? (b = B && z !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: B, data: z, setData: L, className: n?.modal }) : null, t[122] = n?.modal, t[123] = B, t[124] = z, t[125] = b) : b = t[125];
229
+ Bt
230
+ ] }), t[94] = yt, t[95] = vt, t[96] = Bt, t[97] = q, t[98] = Ot) : Ot = t[98];
231
+ let Mt;
232
+ t[99] !== x ? (Mt = x.filter(ui).map(di), t[99] = x, t[100] = Mt) : Mt = t[100];
233
+ let U;
234
+ t[101] !== Dt || t[102] !== tt || t[103] !== S || t[104] !== I || t[105] !== Ot || t[106] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
235
+ tt,
236
+ S,
237
+ I,
238
+ Ot,
239
+ Mt
240
+ ] }), t[101] = Dt, t[102] = tt, t[103] = S, t[104] = I, t[105] = Ot, t[106] = Mt, t[107] = U) : U = t[107];
241
+ let kt;
242
+ t[108] !== bt || t[109] !== It || t[110] !== wt || t[111] !== ct || t[112] !== mt || t[113] !== ht || t[114] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[108] = bt, t[109] = It, t[110] = wt, t[111] = ct, t[112] = mt, t[113] = ht, t[114] = U, t[115] = kt) : kt = t[115];
246
243
  let v;
247
- return t[126] !== At || t[127] !== g || t[128] !== b ? (v = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
248
- At,
249
- g,
250
- b
251
- ] }), t[126] = At, t[127] = g, t[128] = b, t[129] = v) : v = t[129], v;
244
+ t[116] !== a?.tooltip || t[117] !== Gt || t[118] !== Rt || t[119] !== V || t[120] !== s?.tooltip || t[121] !== lt ? (v = V && lt && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: lt, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[116] = a?.tooltip, t[117] = Gt, t[118] = Rt, t[119] = V, t[120] = s?.tooltip, t[121] = lt, t[122] = v) : v = t[122];
245
+ let $;
246
+ t[123] !== a?.modal || t[124] !== F || t[125] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[123] = a?.modal, t[124] = F, t[125] = y, t[126] = $) : $ = t[126];
247
+ let O;
248
+ return t[127] !== kt || t[128] !== v || t[129] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
249
+ kt,
250
+ v,
251
+ $
252
+ ] }), t[127] = kt, t[128] = v, t[129] = $, t[130] = O) : O = t[130], O;
252
253
  }
253
- function ri(e) {
254
+ function di(e) {
254
255
  return e.layer;
255
256
  }
256
- function ci(e) {
257
+ function ui(e) {
257
258
  return e.position === "after";
258
259
  }
259
- function di(e) {
260
+ function xi(e) {
260
261
  return e.layer;
261
262
  }
262
- function ui(e) {
263
+ function mi(e) {
263
264
  return e.position === "before";
264
265
  }
265
- function mi(e) {
266
+ function hi(e) {
266
267
  return e !== 0;
267
268
  }
268
- function xi(e) {
269
+ function fi(e) {
269
270
  return e !== 0;
270
271
  }
271
- function hi(e, t) {
272
+ function pi(e, t) {
272
273
  return `${t}`;
273
274
  }
274
- function fi(e) {
275
+ function gi(e) {
275
276
  return `${e.id}`;
276
277
  }
277
- function pi(e) {
278
- const t = we.c(138), {
279
- data: s,
278
+ function yi(e) {
279
+ const t = we.c(140), {
280
+ data: l,
280
281
  leftMargin: X,
281
282
  rightMargin: Ut,
282
- topMargin: Kt,
283
- bottomMargin: Lt,
284
- width: Ot,
285
- height: Tt,
286
- barColors: P,
287
- suffix: K,
288
- prefix: y,
289
- barPadding: st,
290
- showLabels: ht,
291
- showValues: it,
292
- showTicks: Jt,
283
+ topMargin: Jt,
284
+ bottomMargin: Tt,
285
+ width: Ct,
286
+ height: Ft,
287
+ barColors: W,
288
+ suffix: J,
289
+ prefix: A,
290
+ barPadding: R,
291
+ showLabels: ft,
292
+ showValues: et,
293
+ showTicks: Lt,
293
294
  truncateBy: Y,
294
- tooltip: at,
295
- onSeriesMouseOver: Mt,
296
- refValues: kt,
297
- maxValue: Gt,
298
- minValue: w,
299
- onSeriesMouseClick: Q,
300
- selectedColor: E,
295
+ tooltip: lt,
296
+ onSeriesMouseOver: Vt,
297
+ refValues: zt,
298
+ maxValue: Xt,
299
+ minValue: C,
300
+ onSeriesMouseClick: K,
301
+ selectedColor: B,
301
302
  labelOrder: T,
302
- maxBarThickness: rt,
303
- resetSelectionOnDoubleClick: Z,
304
- detailsOnClick: ft,
305
- barAxisTitle: B,
306
- valueColor: _,
307
- noOfTicks: lt,
308
- styles: r,
309
- classNames: l,
310
- animate: n,
311
- colorDomain: u,
312
- precision: c,
313
- customLayers: f,
314
- naLabel: d
315
- } = e, V = X === void 0 ? 20 : X, ct = Ut === void 0 ? 20 : Ut, tt = Kt === void 0 ? 20 : Kt, Ft = Lt === void 0 ? 25 : Lt, Pt = ve(null);
316
- let Et;
317
- t[0] !== n.amount || t[1] !== n.once ? (Et = {
318
- once: n.once,
319
- amount: n.amount
320
- }, t[0] = n.amount, t[1] = n.once, t[2] = Et) : Et = t[2];
321
- const q = Se(Pt, Et), pt = B ? V + 30 : V;
322
- let Rt;
323
- t[3] !== Ft || t[4] !== ct || t[5] !== pt || t[6] !== tt ? (Rt = {
324
- top: tt,
325
- bottom: Ft,
326
- left: pt,
327
- right: ct
328
- }, t[3] = Ft, t[4] = ct, t[5] = pt, t[6] = tt, t[7] = Rt) : Rt = t[7];
329
- const m = Rt, [o, I] = te(void 0), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), nt = Ot - m.left - m.right, Nt = Tt - m.top - m.bottom;
330
- let H;
331
- if (t[8] !== s || t[9] !== T) {
332
- const v = /* @__PURE__ */ new Set(), p = s.map((A, h) => {
333
- const x = T ? `${A.label}` : `${h}`;
334
- return v.add(x), {
335
- ...A,
336
- id: x
303
+ maxBarThickness: dt,
304
+ resetSelectionOnDoubleClick: Q,
305
+ detailsOnClick: pt,
306
+ barAxisTitle: F,
307
+ valueColor: Z,
308
+ noOfTicks: it,
309
+ styles: c,
310
+ classNames: s,
311
+ animate: a,
312
+ colorDomain: m,
313
+ precision: d,
314
+ customLayers: p,
315
+ naLabel: x,
316
+ hideAxisLine: at
317
+ } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
318
+ let Ht;
319
+ t[0] !== a.amount || t[1] !== a.once ? (Ht = {
320
+ once: a.once,
321
+ amount: a.amount
322
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
323
+ const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
324
+ let _;
325
+ t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
326
+ top: Yt,
327
+ bottom: Et,
328
+ left: ut,
329
+ right: E
330
+ }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
331
+ const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
332
+ let G;
333
+ if (t[8] !== l || t[9] !== T) {
334
+ const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
335
+ const g = T ? `${M.label}` : `${f}`;
336
+ return O.add(g), {
337
+ ...M,
338
+ id: g
337
339
  };
338
- }), xt = T ? T.filter((A) => !v.has(A)) : [];
339
- let Xt;
340
- t[11] !== s[0].size.length ? (Xt = (A) => ({
341
- id: A,
342
- label: A,
343
- size: Array(s[0].size.length).fill(null)
344
- }), t[11] = s[0].size.length, t[12] = Xt) : Xt = t[12], H = [...p, ...xt.map(Xt)], t[8] = s, t[9] = T, t[10] = H;
340
+ }), At = T ? T.filter((M) => !O.has(M)) : [];
341
+ let $t;
342
+ t[11] !== l[0].size.length ? ($t = (M) => ({
343
+ id: M,
344
+ label: M,
345
+ size: Array(l[0].size.length).fill(null)
346
+ }), t[11] = l[0].size.length, t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = T, t[10] = G;
345
347
  } else
346
- H = t[10];
347
- const G = H;
348
- let $;
349
- t[13] !== G || t[14] !== T ? ($ = T ?? G.map(Oi), t[13] = G, t[14] = T, t[15] = $) : $ = t[15];
350
- const Ht = $;
351
- let bt, gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt;
352
- if (t[16] !== n || t[17] !== B || t[18] !== P || t[19] !== Ht || t[20] !== st || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== u || t[28] !== f || t[29] !== s[0].size || t[30] !== G || t[31] !== ft || t[32] !== Nt || t[33] !== nt || t[34] !== Tt || t[35] !== q || t[36] !== V || t[37] !== m.bottom || t[38] !== m.left || t[39] !== m.right || t[40] !== m.top || t[41] !== rt || t[42] !== Gt || t[43] !== w || t[44] !== O || t[45] !== d || t[46] !== lt || t[47] !== Q || t[48] !== Mt || t[49] !== c || t[50] !== y || t[51] !== kt || t[52] !== Z || t[53] !== E || t[54] !== ht || t[55] !== Jt || t[56] !== it || t[57] !== r?.graphObjectValues || t[58] !== r?.xAxis?.axis || t[59] !== r?.xAxis?.labels || t[60] !== r?.yAxis?.gridLines || t[61] !== r?.yAxis?.labels || t[62] !== r?.yAxis?.title || t[63] !== K || t[64] !== Y || t[65] !== _ || t[66] !== Ot) {
353
- const v = Be().domain([w, Gt]).range([Nt, 0]).nice(), p = Oe().domain(Ht).range([0, rt ? Math.min(nt, rt * Ht.length) : nt]).paddingInner(st), xt = Oe().domain(s[0].size.map($i)).range([0, p.bandwidth()]).paddingInner(0.1), Xt = v.ticks(lt);
354
- gt = ee.svg, j = `${Ot}px`, zt = `${Tt}px`, yt = `0 0 ${Ot} ${Tt}`, ot = "ltr", ut = Pt, Wt = `translate(${m.left},${m.top})`;
355
- const A = v(w < 0 ? 0 : w), h = v(w < 0 ? 0 : w), x = w < 0 ? 0 : w;
356
- let Yt;
357
- t[81] !== d || t[82] !== c || t[83] !== y || t[84] !== K || t[85] !== x ? (Yt = be(x, d, c, y, K), t[81] = d, t[82] = c, t[83] = y, t[84] = K, t[85] = x, t[86] = Yt) : Yt = t[86];
358
- const Zt = l?.xAxis?.axis, F = l?.yAxis?.labels;
348
+ G = t[10];
349
+ const st = G;
350
+ let k;
351
+ t[13] !== st || t[14] !== T ? (k = T ?? st.map(ki), t[13] = st, t[14] = T, t[15] = k) : k = t[15];
352
+ const xt = k;
353
+ let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
354
+ if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== R || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== p || t[29] !== l[0].size || t[30] !== st || t[31] !== pt || t[32] !== Wt || t[33] !== rt || t[34] !== Ft || t[35] !== at || t[36] !== nt || t[37] !== D || t[38] !== u.bottom || t[39] !== u.left || t[40] !== u.right || t[41] !== u.top || t[42] !== dt || t[43] !== Xt || t[44] !== C || t[45] !== gt || t[46] !== x || t[47] !== it || t[48] !== K || t[49] !== Vt || t[50] !== d || t[51] !== A || t[52] !== zt || t[53] !== Q || t[54] !== B || t[55] !== ft || t[56] !== Lt || t[57] !== et || t[58] !== c?.graphObjectValues || t[59] !== c?.xAxis?.axis || t[60] !== c?.xAxis?.labels || t[61] !== c?.yAxis?.gridLines || t[62] !== c?.yAxis?.labels || t[63] !== c?.yAxis?.title || t[64] !== J || t[65] !== Y || t[66] !== Z || t[67] !== Ct) {
355
+ const O = Pe().domain([C, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.min(rt, dt * xt.length) : rt]).paddingInner(R), At = ke().domain(l[0].size.map(Mi)).range([0, b.bandwidth()]).paddingInner(0.1), $t = O.ticks(it);
356
+ yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
359
357
  let M;
360
- t[87] !== Zt || t[88] !== F ? (M = {
361
- axis: Zt,
362
- label: F
363
- }, t[87] = Zt, t[88] = F, t[89] = M) : M = t[89];
364
- const _t = r?.xAxis?.axis, W = r?.yAxis?.labels;
365
- let R;
366
- t[90] !== _t || t[91] !== W ? (R = {
367
- axis: _t,
368
- label: W
369
- }, t[90] = _t, t[91] = W, t[92] = R) : R = t[92], jt = /* @__PURE__ */ i.jsx(Ne, { y1: A, y2: h, x1: 0 - V, x2: nt + m.right, label: Yt, labelPos: {
370
- x: 0 - V,
358
+ t[82] !== C || t[83] !== x || t[84] !== d || t[85] !== A || t[86] !== Lt || t[87] !== J ? (M = Lt ? be(C < 0 ? 0 : C, x, d, A, J) : void 0, t[82] = C, t[83] = x, t[84] = d, t[85] = A, t[86] = Lt, t[87] = J, t[88] = M) : M = t[88];
359
+ const f = s?.xAxis?.axis, g = s?.yAxis?.labels;
360
+ let Nt;
361
+ t[89] !== f || t[90] !== g ? (Nt = {
362
+ axis: f,
363
+ label: g
364
+ }, t[89] = f, t[90] = g, t[91] = Nt) : Nt = t[91];
365
+ const qt = c?.xAxis?.axis, Qt = c?.yAxis?.labels;
366
+ let P;
367
+ t[92] !== qt || t[93] !== Qt ? (P = {
368
+ axis: qt,
369
+ label: Qt
370
+ }, t[92] = qt, t[93] = Qt, t[94] = P) : P = t[94], Bt = /* @__PURE__ */ i.jsx(Te, { y1: O(C < 0 ? 0 : C), y2: O(C < 0 ? 0 : C), x1: 0 - D, x2: rt + u.right, label: M, hideAxisLine: at, labelPos: {
371
+ x: 0 - D,
371
372
  dx: 0,
372
- dy: Gt < 0 ? "1em" : -5,
373
- y: v(w < 0 ? 0 : w)
374
- }, classNames: M, styles: R }), Vt = Jt ? /* @__PURE__ */ i.jsx(Je, { values: Xt.filter(Ai), y: Xt.filter(wi).map((k) => v(k)), x1: 0 - V, x2: nt + m.right, styles: {
375
- gridLines: r?.yAxis?.gridLines,
376
- labels: r?.yAxis?.labels
373
+ dy: Xt < 0 ? "1em" : -5,
374
+ y: O(C < 0 ? 0 : C)
375
+ }, classNames: Nt, styles: P }), Dt = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: $t.filter(Oi), y: $t.filter($i).map((w) => O(w)), x1: 0 - D, x2: rt + u.right, styles: {
376
+ gridLines: c?.yAxis?.gridLines,
377
+ labels: c?.yAxis?.labels
377
378
  }, classNames: {
378
- gridLines: l?.yAxis?.gridLines,
379
- labels: l?.yAxis?.labels
380
- }, suffix: K, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: c }) : null;
381
- const D = 0 - V - 15, St = Nt / 2, a = r?.yAxis?.title, $t = l?.yAxis?.title;
382
- t[93] !== B || t[94] !== D || t[95] !== St || t[96] !== a || t[97] !== $t ? (et = /* @__PURE__ */ i.jsx(je, { x: D, y: St, style: a, className: $t, text: B, rotate90: !0 }), t[93] = B, t[94] = D, t[95] = St, t[96] = a, t[97] = $t, t[98] = et) : et = t[98], t[99] !== f ? (S = f.filter(vi).map(bi), t[99] = f, t[100] = S) : S = t[100], bt = Fe, mt = G.map((k) => le(p(k.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
379
+ gridLines: s?.yAxis?.gridLines,
380
+ labels: s?.yAxis?.labels
381
+ }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
382
+ const N = 0 - D - 15, z = Wt / 2, j = c?.yAxis?.title, h = s?.yAxis?.title;
383
+ t[95] !== F || t[96] !== N || t[97] !== z || t[98] !== j || t[99] !== h ? (tt = /* @__PURE__ */ i.jsx(Se, { x: N, y: z, style: j, className: h, text: F, rotate90: !0 }), t[95] = F, t[96] = N, t[97] = z, t[98] = j, t[99] = h, t[100] = tt) : tt = t[100], t[101] !== p ? (S = p.filter(Ai).map(wi), t[101] = p, t[102] = S) : S = t[102], St = He, ht = st.map((w) => ee(b(w.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { variants: {
383
384
  initial: {
384
- x: p(`${k.id}`),
385
+ x: b(`${w.id}`),
385
386
  y: 0
386
387
  },
387
388
  whileInView: {
388
- x: p(`${k.id}`),
389
+ x: b(`${w.id}`),
389
390
  y: 0,
390
391
  transition: {
391
- duration: n.duration
392
+ duration: a.duration
392
393
  }
393
394
  }
394
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
395
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
395
396
  opacity: 0,
396
397
  transition: {
397
- duration: n.duration
398
+ duration: a.duration
398
399
  }
399
400
  }, children: [
400
- k.size.map((Bt, qt) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: E ? P[qt] === E ? 1 : 0.3 : 0.85, onMouseEnter: (C) => {
401
- I({
402
- ...k,
403
- sizeIndex: qt
404
- }), It(C.clientY), N(C.clientX), Mt?.({
405
- ...k,
406
- sizeIndex: qt
401
+ w.size.map((n, H) => /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", opacity: B ? W[H] === B ? 1 : 0.3 : 0.85, onMouseEnter: (o) => {
402
+ V({
403
+ ...w,
404
+ sizeIndex: H
405
+ }), Rt(o.clientY), Gt(o.clientX), Vt?.({
406
+ ...w,
407
+ sizeIndex: H
407
408
  });
408
- }, onMouseMove: (C) => {
409
- I({
410
- ...k,
411
- sizeIndex: qt
412
- }), It(C.clientY), N(C.clientX);
409
+ }, onMouseMove: (o) => {
410
+ V({
411
+ ...w,
412
+ sizeIndex: H
413
+ }), Rt(o.clientY), Gt(o.clientX);
413
414
  }, onMouseLeave: () => {
414
- I(void 0), N(void 0), It(void 0), Mt?.(void 0);
415
+ V(void 0), Gt(void 0), Rt(void 0), Vt?.(void 0);
415
416
  }, onClick: () => {
416
- (Q || ft) && (Le(O, {
417
- ...k,
418
- sizeIndex: qt
419
- }) && Z ? (z(void 0), Q?.(void 0)) : (z({
420
- ...k,
421
- sizeIndex: qt
422
- }), Q && Q({
423
- ...k,
424
- sizeIndex: qt
417
+ (K || pt) && (Ne(gt, {
418
+ ...w,
419
+ sizeIndex: H
420
+ }) && Q ? (y(void 0), K?.(void 0)) : (y({
421
+ ...w,
422
+ sizeIndex: H
423
+ }), K && K({
424
+ ...w,
425
+ sizeIndex: H
425
426
  })));
426
427
  }, children: [
427
- /* @__PURE__ */ i.jsx(ee.rect, { x: xt(`${qt}`), width: xt.bandwidth(), variants: {
428
+ /* @__PURE__ */ i.jsx(_t.rect, { x: At(`${H}`), width: At.bandwidth(), variants: {
428
429
  initial: {
429
430
  height: 0,
430
- y: v(0),
431
- fill: P[qt]
431
+ y: O(0),
432
+ fill: W[H]
432
433
  },
433
434
  whileInView: {
434
- height: le(Bt) ? 0 : Math.abs(v(Bt) - v(0)),
435
- y: le(Bt) ? v(0) : Bt > 0 ? v(Bt) : v(0),
436
- fill: P[qt],
435
+ height: ee(n) ? 0 : Math.abs(O(n) - O(0)),
436
+ y: ee(n) ? O(0) : n > 0 ? O(n) : O(0),
437
+ fill: W[H],
437
438
  transition: {
438
- duration: n.duration
439
+ duration: a.duration
439
440
  }
440
441
  }
441
442
  }, exit: {
442
443
  height: 0,
443
- y: v(0),
444
+ y: O(0),
444
445
  transition: {
445
- duration: n.duration
446
+ duration: a.duration
446
447
  }
447
- }, initial: "initial", animate: q ? "whileInView" : "initial" }),
448
- it ? /* @__PURE__ */ i.jsx(ee.text, { x: xt(`${qt}`) + xt.bandwidth() / 2, style: {
448
+ }, initial: "initial", animate: nt ? "whileInView" : "initial" }),
449
+ et ? /* @__PURE__ */ i.jsx(_t.text, { x: At(`${H}`) + At.bandwidth() / 2, style: {
449
450
  textAnchor: "middle",
450
- ...r?.graphObjectValues || {}
451
- }, className: $e("graph-value text-sm", l?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
451
+ ...c?.graphObjectValues || {}
452
+ }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: n ? n >= 0 ? "-5px" : "1em" : "-5px", variants: {
452
453
  initial: {
453
- y: v(0),
454
+ y: O(0),
454
455
  opacity: 0,
455
- fill: _ || P[qt]
456
+ fill: Z || W[H]
456
457
  },
457
458
  whileInView: {
458
- y: v(Bt || 0),
459
+ y: O(n || 0),
459
460
  opacity: 1,
460
- fill: _ || P[qt],
461
+ fill: Z || W[H],
461
462
  transition: {
462
- duration: n.duration
463
+ duration: a.duration
463
464
  }
464
465
  }
465
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
466
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
466
467
  opacity: 0,
467
468
  transition: {
468
- duration: n.duration
469
+ duration: a.duration
469
470
  }
470
- }, children: be(Bt, d, c, y, K) }) : null
471
- ] }, `${k.label}-${u[qt] || qt}`)),
472
- ht ? /* @__PURE__ */ i.jsx(Ke, { value: `${k.label}`.length < Y ? `${k.label}` : `${`${k.label}`.substring(0, Y)}...`, y: v(0) + 5, x: 0, width: p.bandwidth(), height: m.bottom, style: r?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: n, isInView: q }) : null
473
- ] }, k.label)), dt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((k, Bt) => /* @__PURE__ */ i.jsx(Ue, { text: k.text, color: k.color, y: v(k.value), x1: 0 - V, x2: nt + m.right, classNames: k.classNames, styles: k.styles, animate: n, isInView: q }, Bt)) }) : null, t[16] = n, t[17] = B, t[18] = P, t[19] = Ht, t[20] = st, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = u, t[28] = f, t[29] = s[0].size, t[30] = G, t[31] = ft, t[32] = Nt, t[33] = nt, t[34] = Tt, t[35] = q, t[36] = V, t[37] = m.bottom, t[38] = m.left, t[39] = m.right, t[40] = m.top, t[41] = rt, t[42] = Gt, t[43] = w, t[44] = O, t[45] = d, t[46] = lt, t[47] = Q, t[48] = Mt, t[49] = c, t[50] = y, t[51] = kt, t[52] = Z, t[53] = E, t[54] = ht, t[55] = Jt, t[56] = it, t[57] = r?.graphObjectValues, t[58] = r?.xAxis?.axis, t[59] = r?.xAxis?.labels, t[60] = r?.yAxis?.gridLines, t[61] = r?.yAxis?.labels, t[62] = r?.yAxis?.title, t[63] = K, t[64] = Y, t[65] = _, t[66] = Ot, t[67] = bt, t[68] = gt, t[69] = dt, t[70] = Wt, t[71] = jt, t[72] = Vt, t[73] = et, t[74] = S, t[75] = j, t[76] = zt, t[77] = yt, t[78] = ot, t[79] = ut, t[80] = mt;
471
+ }, children: be(n, x, d, A, J) }) : null
472
+ ] }, `${w.label}-${m[H] || H}`)),
473
+ ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${w.label}`.length < Y ? `${w.label}` : `${`${w.label}`.substring(0, Y)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null
474
+ ] }, w.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((w, n) => /* @__PURE__ */ i.jsx(Ke, { text: w.text, color: w.color, y: O(w.value), x1: 0 - D, x2: rt + u.right, classNames: w.classNames, styles: w.styles, animate: a, isInView: nt }, n)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = R, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = p, t[29] = l[0].size, t[30] = st, t[31] = pt, t[32] = Wt, t[33] = rt, t[34] = Ft, t[35] = at, t[36] = nt, t[37] = D, t[38] = u.bottom, t[39] = u.left, t[40] = u.right, t[41] = u.top, t[42] = dt, t[43] = Xt, t[44] = C, t[45] = gt, t[46] = x, t[47] = it, t[48] = K, t[49] = Vt, t[50] = d, t[51] = A, t[52] = zt, t[53] = Q, t[54] = B, t[55] = ft, t[56] = Lt, t[57] = et, t[58] = c?.graphObjectValues, t[59] = c?.xAxis?.axis, t[60] = c?.xAxis?.labels, t[61] = c?.yAxis?.gridLines, t[62] = c?.yAxis?.labels, t[63] = c?.yAxis?.title, t[64] = J, t[65] = Y, t[66] = Z, t[67] = Ct, t[68] = St, t[69] = yt, t[70] = bt, t[71] = vt, t[72] = Bt, t[73] = Dt, t[74] = tt, t[75] = S, t[76] = I, t[77] = It, t[78] = wt, t[79] = ct, t[80] = mt, t[81] = ht;
474
475
  } else
475
- bt = t[67], gt = t[68], dt = t[69], Wt = t[70], jt = t[71], Vt = t[72], et = t[73], S = t[74], j = t[75], zt = t[76], yt = t[77], ot = t[78], ut = t[79], mt = t[80];
476
- let U;
477
- t[101] !== bt || t[102] !== dt || t[103] !== mt ? (U = /* @__PURE__ */ i.jsxs(bt, { children: [
478
- mt,
479
- dt
480
- ] }), t[101] = bt, t[102] = dt, t[103] = mt, t[104] = U) : U = t[104];
481
- let vt;
482
- t[105] !== f ? (vt = f.filter(yi).map(gi), t[105] = f, t[106] = vt) : vt = t[106];
483
- let wt;
484
- t[107] !== Wt || t[108] !== jt || t[109] !== Vt || t[110] !== et || t[111] !== S || t[112] !== U || t[113] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: Wt, children: [
485
- jt,
486
- Vt,
487
- et,
476
+ St = t[68], yt = t[69], bt = t[70], vt = t[71], Bt = t[72], Dt = t[73], tt = t[74], S = t[75], I = t[76], It = t[77], wt = t[78], ct = t[79], mt = t[80], ht = t[81];
477
+ let q;
478
+ t[103] !== St || t[104] !== bt || t[105] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
479
+ ht,
480
+ bt
481
+ ] }), t[103] = St, t[104] = bt, t[105] = ht, t[106] = q) : q = t[106];
482
+ let Ot;
483
+ t[107] !== p ? (Ot = p.filter(vi).map(bi), t[107] = p, t[108] = Ot) : Ot = t[108];
484
+ let Mt;
485
+ t[109] !== vt || t[110] !== Bt || t[111] !== Dt || t[112] !== tt || t[113] !== S || t[114] !== q || t[115] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
486
+ Bt,
487
+ Dt,
488
+ tt,
488
489
  S,
490
+ q,
491
+ Ot
492
+ ] }), t[109] = vt, t[110] = Bt, t[111] = Dt, t[112] = tt, t[113] = S, t[114] = q, t[115] = Ot, t[116] = Mt) : Mt = t[116];
493
+ let U;
494
+ t[117] !== yt || t[118] !== I || t[119] !== It || t[120] !== wt || t[121] !== ct || t[122] !== mt || t[123] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[117] = yt, t[118] = I, t[119] = It, t[120] = wt, t[121] = ct, t[122] = mt, t[123] = Mt, t[124] = U) : U = t[124];
495
+ let kt;
496
+ t[125] !== s?.tooltip || t[126] !== L || t[127] !== ot || t[128] !== r || t[129] !== c?.tooltip || t[130] !== lt ? (kt = r && lt && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: lt, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[125] = s?.tooltip, t[126] = L, t[127] = ot, t[128] = r, t[129] = c?.tooltip, t[130] = lt, t[131] = kt) : kt = t[131];
497
+ let v;
498
+ t[132] !== s?.modal || t[133] !== pt || t[134] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[132] = s?.modal, t[133] = pt, t[134] = gt, t[135] = v) : v = t[135];
499
+ let $;
500
+ return t[136] !== U || t[137] !== kt || t[138] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
489
501
  U,
490
- vt
491
- ] }), t[107] = Wt, t[108] = jt, t[109] = Vt, t[110] = et, t[111] = S, t[112] = U, t[113] = vt, t[114] = wt) : wt = t[114];
492
- let J;
493
- t[115] !== gt || t[116] !== j || t[117] !== zt || t[118] !== yt || t[119] !== ot || t[120] !== ut || t[121] !== wt ? (J = /* @__PURE__ */ i.jsx(gt, { width: j, height: zt, viewBox: yt, direction: ot, ref: ut, children: wt }), t[115] = gt, t[116] = j, t[117] = zt, t[118] = yt, t[119] = ot, t[120] = ut, t[121] = wt, t[122] = J) : J = t[122];
494
- let At;
495
- t[123] !== l?.tooltip || t[124] !== L || t[125] !== Ct || t[126] !== o || t[127] !== r?.tooltip || t[128] !== at ? (At = o && at && L && Ct ? /* @__PURE__ */ i.jsx(Ie, { data: o, body: at, xPos: L, yPos: Ct, backgroundStyle: r?.tooltip, className: l?.tooltip }) : null, t[123] = l?.tooltip, t[124] = L, t[125] = Ct, t[126] = o, t[127] = r?.tooltip, t[128] = at, t[129] = At) : At = t[129];
496
- let g;
497
- t[130] !== l?.modal || t[131] !== ft || t[132] !== O ? (g = ft && O !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: ft, data: O, setData: z, className: l?.modal }) : null, t[130] = l?.modal, t[131] = ft, t[132] = O, t[133] = g) : g = t[133];
498
- let b;
499
- return t[134] !== J || t[135] !== At || t[136] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
500
- J,
501
- At,
502
- g
503
- ] }), t[134] = J, t[135] = At, t[136] = g, t[137] = b) : b = t[137], b;
502
+ kt,
503
+ v
504
+ ] }), t[136] = U, t[137] = kt, t[138] = v, t[139] = $) : $ = t[139], $;
504
505
  }
505
- function gi(e) {
506
+ function bi(e) {
506
507
  return e.layer;
507
508
  }
508
- function yi(e) {
509
+ function vi(e) {
509
510
  return e.position === "after";
510
511
  }
511
- function bi(e) {
512
+ function wi(e) {
512
513
  return e.layer;
513
514
  }
514
- function vi(e) {
515
+ function Ai(e) {
515
516
  return e.position === "before";
516
517
  }
517
- function wi(e) {
518
+ function $i(e) {
518
519
  return e !== 0;
519
520
  }
520
- function Ai(e) {
521
+ function Oi(e) {
521
522
  return e !== 0;
522
523
  }
523
- function $i(e, t) {
524
+ function Mi(e, t) {
524
525
  return `${t}`;
525
526
  }
526
- function Oi(e) {
527
+ function ki(e) {
527
528
  return `${e.id}`;
528
529
  }
529
- function Mi(e) {
530
- const t = we.c(125), {
531
- data: s,
530
+ function Ci(e) {
531
+ const t = we.c(126), {
532
+ data: l,
532
533
  graphTitle: X,
533
534
  colors: Ut,
534
- sources: Kt,
535
- graphDescription: Lt,
536
- barPadding: Ot,
537
- showTicks: Tt,
538
- truncateBy: P,
539
- height: K,
540
- width: y,
541
- footNote: st,
542
- colorDomain: ht,
543
- colorLegendTitle: it,
544
- suffix: Jt,
535
+ sources: Jt,
536
+ graphDescription: Tt,
537
+ barPadding: Ct,
538
+ showTicks: Ft,
539
+ truncateBy: W,
540
+ height: J,
541
+ width: A,
542
+ footNote: R,
543
+ colorDomain: ft,
544
+ colorLegendTitle: et,
545
+ suffix: Lt,
545
546
  prefix: Y,
546
- showValues: at,
547
- showColorScale: Mt,
548
- padding: kt,
549
- backgroundColor: Gt,
550
- leftMargin: w,
551
- rightMargin: Q,
552
- topMargin: E,
547
+ showValues: lt,
548
+ showColorScale: Vt,
549
+ padding: zt,
550
+ backgroundColor: Xt,
551
+ leftMargin: C,
552
+ rightMargin: K,
553
+ topMargin: B,
553
554
  bottomMargin: T,
554
- showLabels: rt,
555
- relativeHeight: Z,
556
- tooltip: ft,
557
- onSeriesMouseOver: B,
558
- refValues: _,
559
- graphID: lt,
560
- maxValue: r,
561
- minValue: l,
562
- onSeriesMouseClick: n,
563
- graphDownload: u,
564
- dataDownload: c,
565
- language: f,
566
- labelOrder: d,
567
- minHeight: V,
568
- theme: ct,
569
- maxBarThickness: tt,
570
- ariaLabel: Ft,
571
- resetSelectionOnDoubleClick: Pt,
572
- detailsOnClick: Et,
573
- barAxisTitle: q,
574
- noOfTicks: pt,
575
- valueColor: Rt,
576
- styles: m,
577
- classNames: o,
578
- filterNA: I,
579
- animate: O,
580
- precision: z,
581
- customLayers: L,
582
- timeline: N,
583
- naLabel: Ct,
584
- sortParameter: It,
585
- sortData: nt,
586
- orientation: Nt
587
- } = e, H = Ut === void 0 ? ge.light.categoricalColors.colors : Ut, G = Ot === void 0 ? 0.25 : Ot, $ = Tt === void 0 ? !0 : Tt, Ht = P === void 0 ? 999 : P, bt = Jt === void 0 ? "" : Jt, gt = Y === void 0 ? "" : Y, dt = at === void 0 ? !0 : at, Wt = Mt === void 0 ? !0 : Mt, jt = Gt === void 0 ? !1 : Gt, Vt = rt === void 0 ? !0 : rt, et = u === void 0 ? !1 : u, S = c === void 0 ? !1 : c, j = f === void 0 ? "en" : f, zt = V === void 0 ? 0 : V, yt = ct === void 0 ? "light" : ct, ot = Pt === void 0 ? !0 : Pt, ut = pt === void 0 ? 5 : pt, mt = I === void 0 ? !0 : I, U = O === void 0 ? !1 : O, vt = z === void 0 ? 2 : z;
588
- let wt;
589
- t[0] !== L ? (wt = L === void 0 ? [] : L, t[0] = L, t[1] = wt) : wt = t[1];
590
- const J = wt;
591
- let At;
592
- t[2] !== N ? (At = N === void 0 ? {
555
+ showLabels: dt,
556
+ relativeHeight: Q,
557
+ tooltip: pt,
558
+ onSeriesMouseOver: F,
559
+ refValues: Z,
560
+ graphID: it,
561
+ maxValue: c,
562
+ minValue: s,
563
+ onSeriesMouseClick: a,
564
+ graphDownload: m,
565
+ dataDownload: d,
566
+ language: p,
567
+ labelOrder: x,
568
+ minHeight: at,
569
+ theme: D,
570
+ maxBarThickness: E,
571
+ ariaLabel: Yt,
572
+ resetSelectionOnDoubleClick: Et,
573
+ detailsOnClick: Pt,
574
+ barAxisTitle: Ht,
575
+ noOfTicks: nt,
576
+ valueColor: ut,
577
+ styles: _,
578
+ classNames: u,
579
+ filterNA: r,
580
+ animate: V,
581
+ precision: gt,
582
+ customLayers: y,
583
+ timeline: L,
584
+ naLabel: Gt,
585
+ sortParameter: ot,
586
+ sortData: Rt,
587
+ orientation: rt,
588
+ hideAxisLine: Wt
589
+ } = e, G = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, st = Ct === void 0 ? 0.25 : Ct, k = Ft === void 0 ? !0 : Ft, xt = W === void 0 ? 999 : W, St = Lt === void 0 ? "" : Lt, yt = Y === void 0 ? "" : Y, bt = lt === void 0 ? !0 : lt, vt = Vt === void 0 ? !0 : Vt, Bt = Xt === void 0 ? !1 : Xt, Dt = dt === void 0 ? !0 : dt, tt = m === void 0 ? !1 : m, S = d === void 0 ? !1 : d, I = p === void 0 ? "en" : p, It = at === void 0 ? 0 : at, wt = D === void 0 ? "light" : D, ct = Et === void 0 ? !0 : Et, mt = nt === void 0 ? 5 : nt, ht = r === void 0 ? !0 : r, q = V === void 0 ? !1 : V, Ot = gt === void 0 ? 2 : gt;
590
+ let Mt;
591
+ t[0] !== y ? (Mt = y === void 0 ? [] : y, t[0] = y, t[1] = Mt) : Mt = t[1];
592
+ const U = Mt;
593
+ let kt;
594
+ t[2] !== L ? (kt = L === void 0 ? {
593
595
  enabled: !1,
594
596
  autoplay: !1,
595
597
  showOnlyActiveDate: !0
596
- } : N, t[2] = N, t[3] = At) : At = t[3];
597
- const g = At, b = Ct === void 0 ? "NA" : Ct, p = (Nt === void 0 ? "vertical" : Nt) === "horizontal" ? oi : pi, [xt, Xt] = te(0), [A, h] = te(0), [x, Yt] = te(g.autoplay);
598
- let Zt;
599
- if (t[4] !== s || t[5] !== g.dateFormat) {
600
- let Qt;
601
- t[7] !== g.dateFormat ? (Qt = (Dt) => Ee(`${Dt.date}`, g.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = g.dateFormat, t[8] = Qt) : Qt = t[8], Zt = [...new Set(s.filter(Gi).map(Qt))], Zt.sort(Ei), t[4] = s, t[5] = g.dateFormat, t[6] = Zt;
598
+ } : L, t[2] = L, t[3] = kt) : kt = t[3];
599
+ const v = kt, $ = Gt === void 0 ? "NA" : Gt, O = rt === void 0 ? "vertical" : rt, b = Wt === void 0 ? !1 : Wt, At = O === "horizontal" ? ci : yi, [$t, M] = Zt(0), [f, g] = Zt(0), [Nt, qt] = Zt(v.autoplay);
600
+ let Qt;
601
+ if (t[4] !== l || t[5] !== v.dateFormat) {
602
+ let Kt;
603
+ t[7] !== v.dateFormat ? (Kt = (jt) => Re(`${jt.date}`, v.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = v.dateFormat, t[8] = Kt) : Kt = t[8], Qt = [...new Set(l.filter(qi).map(Kt))], Qt.sort(Ri), t[4] = l, t[5] = v.dateFormat, t[6] = Qt;
602
604
  } else
603
- Zt = t[6];
604
- const F = Zt, [M, _t] = te(g.autoplay ? 0 : F.length - 1), [W, R] = te(void 0), D = ve(null), St = ve(null);
605
- let a, $t;
606
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = () => {
607
- const Qt = new ResizeObserver((Dt) => {
608
- Xt(Dt[0].target.clientWidth || 620), h(Dt[0].target.clientHeight || 480);
605
+ Qt = t[6];
606
+ const P = Qt, [N, z] = Zt(v.autoplay ? 0 : P.length - 1), [j, h] = Zt(void 0), w = ve(null), n = ve(null);
607
+ let H, o;
608
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = () => {
609
+ const Kt = new ResizeObserver((jt) => {
610
+ M(jt[0].target.clientWidth || 620), g(jt[0].target.clientHeight || 480);
609
611
  });
610
- return D.current && Qt.observe(D.current), () => Qt.disconnect();
611
- }, $t = [], t[9] = a, t[10] = $t) : (a = t[9], $t = t[10]), De(a, $t);
612
- let k, Bt;
613
- t[11] !== x || t[12] !== g.speed || t[13] !== F ? (k = () => {
614
- const Qt = setInterval(() => {
615
- _t((Dt) => Dt < F.length - 1 ? Dt + 1 : 0);
616
- }, (g.speed || 2) * 1e3);
617
- return x || clearInterval(Qt), () => clearInterval(Qt);
618
- }, Bt = [F, x, g.speed], t[11] = x, t[12] = g.speed, t[13] = F, t[14] = k, t[15] = Bt) : (k = t[14], Bt = t[15]), De(k, Bt);
619
- const qt = g.dateFormat || "yyyy";
620
- let C;
621
- t[16] !== M || t[17] !== qt || t[18] !== g.showOnlyActiveDate || t[19] !== F ? (C = Xe(F, M, g.showOnlyActiveDate, qt), t[16] = M, t[17] = qt, t[18] = g.showOnlyActiveDate, t[19] = F, t[20] = C) : C = t[20];
622
- const fe = C, de = o?.graphContainer, ye = m?.graphContainer;
623
- let pe;
624
- t[21] !== o?.description || t[22] !== o?.title || t[23] !== s || t[24] !== S || t[25] !== Lt || t[26] !== et || t[27] !== X || t[28] !== m?.description || t[29] !== m?.title || t[30] !== y ? (pe = X || Lt || et || S ? /* @__PURE__ */ i.jsx(Qe, { styles: {
625
- title: m?.title,
626
- description: m?.description
612
+ return w.current && Kt.observe(w.current), () => Kt.disconnect();
613
+ }, o = [], t[9] = H, t[10] = o) : (H = t[9], o = t[10]), Ie(H, o);
614
+ let ie, le;
615
+ t[11] !== Nt || t[12] !== v.speed || t[13] !== P ? (ie = () => {
616
+ const Kt = setInterval(() => {
617
+ z((jt) => jt < P.length - 1 ? jt + 1 : 0);
618
+ }, (v.speed || 2) * 1e3);
619
+ return Nt || clearInterval(Kt), () => clearInterval(Kt);
620
+ }, le = [P, Nt, v.speed], t[11] = Nt, t[12] = v.speed, t[13] = P, t[14] = ie, t[15] = le) : (ie = t[14], le = t[15]), Ie(ie, le);
621
+ const ge = v.dateFormat || "yyyy";
622
+ let Oe;
623
+ t[16] !== N || t[17] !== ge || t[18] !== v.showOnlyActiveDate || t[19] !== P ? (Oe = Ee(P, N, v.showOnlyActiveDate, ge), t[16] = N, t[17] = ge, t[18] = v.showOnlyActiveDate, t[19] = P, t[20] = Oe) : Oe = t[20];
624
+ const fe = Oe, Ae = u?.graphContainer, ye = _?.graphContainer;
625
+ let he;
626
+ t[21] !== u?.description || t[22] !== u?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== _?.description || t[29] !== _?.title || t[30] !== A ? (he = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
627
+ title: _?.title,
628
+ description: _?.description
627
629
  }, classNames: {
628
- title: o?.title,
629
- description: o?.description
630
- }, graphTitle: X, graphDescription: Lt, width: y, graphDownload: et ? St : void 0, dataDownload: S ? s.map(Yi).filter(Xi).length > 0 ? s.map(Wi).filter(Hi) : s.filter(Pi) : null }) : null, t[21] = o?.description, t[22] = o?.title, t[23] = s, t[24] = S, t[25] = Lt, t[26] = et, t[27] = X, t[28] = m?.description, t[29] = m?.title, t[30] = y, t[31] = pe) : pe = t[31];
630
+ title: u?.title,
631
+ description: u?.description
632
+ }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? n : void 0, dataDownload: S ? l.map(Gi).filter(Ei).length > 0 ? l.map(Yi).filter(Xi) : l.filter(Wi) : null }) : null, t[21] = u?.description, t[22] = u?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = _?.description, t[29] = _?.title, t[30] = A, t[31] = he) : he = t[31];
631
633
  let ae;
632
- t[32] !== M || t[33] !== fe || t[34] !== x || t[35] !== g.enabled || t[36] !== F ? (ae = g.enabled && F.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
634
+ t[32] !== N || t[33] !== fe || t[34] !== Nt || t[35] !== v.enabled || t[36] !== P ? (ae = v.enabled && P.length > 0 && fe ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
633
635
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
634
- Yt(!x);
635
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": x ? "Click to pause animation" : "Click to play animation", children: x ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
636
- /* @__PURE__ */ i.jsx(Ye, { min: F[0], max: F[F.length - 1], marks: fe, step: null, defaultValue: F[F.length - 1], value: F[M], onChangeComplete: (Qt) => {
637
- _t(F.indexOf(Qt));
638
- }, onChange: (Qt) => {
639
- _t(F.indexOf(Qt));
636
+ qt(!Nt);
637
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Nt ? "Click to pause animation" : "Click to play animation", children: Nt ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
638
+ /* @__PURE__ */ i.jsx(Ge, { min: P[0], max: P[P.length - 1], marks: fe, step: null, defaultValue: P[P.length - 1], value: P[N], onChangeComplete: (Kt) => {
639
+ z(P.indexOf(Kt));
640
+ }, onChange: (Kt) => {
641
+ z(P.indexOf(Kt));
640
642
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
641
- ] }) : null, t[32] = M, t[33] = fe, t[34] = x, t[35] = g.enabled, t[36] = F, t[37] = ae) : ae = t[37];
643
+ ] }) : null, t[32] = N, t[33] = fe, t[34] = Nt, t[35] = v.enabled, t[36] = P, t[37] = ae) : ae = t[37];
642
644
  let ne;
643
- t[38] !== o?.colorLegend || t[39] !== ht || t[40] !== it || t[41] !== H || t[42] !== s.length || t[43] !== Wt || t[44] !== y ? (ne = Wt && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: y, colorDomain: ht, colors: H, colorLegendTitle: it, setSelectedColor: R, showNAColor: !1, className: o?.colorLegend }) : null, t[38] = o?.colorLegend, t[39] = ht, t[40] = it, t[41] = H, t[42] = s.length, t[43] = Wt, t[44] = y, t[45] = ne) : ne = t[45];
644
- let ue;
645
- t[46] !== s.length ? (ue = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[46] = s.length, t[47] = ue) : ue = t[47];
645
+ t[38] !== u?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== G || t[42] !== l.length || t[43] !== vt || t[44] !== A ? (ne = vt && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: G, colorLegendTitle: et, setSelectedColor: h, showNAColor: !1, className: u?.colorLegend }) : null, t[38] = u?.colorLegend, t[39] = ft, t[40] = et, t[41] = G, t[42] = l.length, t[43] = vt, t[44] = A, t[45] = ne) : ne = t[45];
646
+ let de;
647
+ t[46] !== l.length ? (de = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = de) : de = t[47];
646
648
  let oe;
647
- t[48] !== p || t[49] !== U || t[50] !== q || t[51] !== G || t[52] !== T || t[53] !== o || t[54] !== ht || t[55] !== H || t[56] !== J || t[57] !== s || t[58] !== Et || t[59] !== mt || t[60] !== M || t[61] !== d || t[62] !== j || t[63] !== w || t[64] !== tt || t[65] !== r || t[66] !== l || t[67] !== b || t[68] !== ut || t[69] !== n || t[70] !== B || t[71] !== vt || t[72] !== gt || t[73] !== _ || t[74] !== ot || t[75] !== Q || t[76] !== W || t[77] !== Vt || t[78] !== $ || t[79] !== dt || t[80] !== nt || t[81] !== It || t[82] !== m || t[83] !== bt || t[84] !== A || t[85] !== xt || t[86] !== g.dateFormat || t[87] !== g.enabled || t[88] !== ft || t[89] !== E || t[90] !== Ht || t[91] !== F || t[92] !== Rt ? (oe = xt && A && s.length > 0 ? /* @__PURE__ */ i.jsx(p, { data: It !== void 0 ? It === "total" ? Pe(ze(s, g.dateFormat || "yyyy").filter((Qt) => g.enabled ? Qt.date === Me(new Date(F[M]), g.dateFormat || "yyyy") : Qt).filter((Qt) => mt ? !Qt.size.every(Fi) : Qt), Si, [nt || "asc"]) : Pe(ze(s, g.dateFormat || "yyyy").filter((Qt) => g.enabled ? Qt.date === Me(new Date(F[M]), g.dateFormat || "yyyy") : Qt).filter((Qt) => mt ? !Qt.size.every(Ti) : Qt), (Qt) => le(Qt.size[It]) ? -1 / 0 : Qt.size[It], [nt || "asc"]) : ze(s, g.dateFormat || "yyyy").filter((Qt) => mt ? !Qt.size.every(ji) : Qt), barColors: H, width: xt, height: A, suffix: bt, prefix: gt, showValues: dt, barPadding: G, showTicks: $, leftMargin: w, rightMargin: Q, topMargin: E, bottomMargin: T, truncateBy: Ht, showLabels: Vt, tooltip: ft, onSeriesMouseOver: B, refValues: _, maxValue: le(r) ? Math.max(...s.map(Ii)) < 0 ? 0 : Math.max(...s.map(Di)) : r, minValue: le(l) ? Math.min(...s.map(Vi)) >= 0 ? 0 : Math.min(...s.map(ki)) : l, onSeriesMouseClick: n, selectedColor: W, labelOrder: d, rtl: j === "he" || j === "ar", maxBarThickness: tt, resetSelectionOnDoubleClick: ot, detailsOnClick: Et, barAxisTitle: q, noOfTicks: ut, valueColor: Rt, styles: m, classNames: o, colorDomain: ht, animate: U === !0 ? {
649
+ t[48] !== At || t[49] !== q || t[50] !== Ht || t[51] !== st || t[52] !== T || t[53] !== u || t[54] !== ft || t[55] !== G || t[56] !== U || t[57] !== l || t[58] !== Pt || t[59] !== ht || t[60] !== b || t[61] !== N || t[62] !== x || t[63] !== I || t[64] !== C || t[65] !== E || t[66] !== c || t[67] !== s || t[68] !== $ || t[69] !== mt || t[70] !== a || t[71] !== F || t[72] !== Ot || t[73] !== yt || t[74] !== Z || t[75] !== ct || t[76] !== K || t[77] !== j || t[78] !== Dt || t[79] !== k || t[80] !== bt || t[81] !== Rt || t[82] !== ot || t[83] !== _ || t[84] !== St || t[85] !== f || t[86] !== $t || t[87] !== v.dateFormat || t[88] !== v.enabled || t[89] !== pt || t[90] !== B || t[91] !== xt || t[92] !== P || t[93] !== ut ? (oe = $t && f && l.length > 0 ? /* @__PURE__ */ i.jsx(At, { hideAxisLine: b, data: ot !== void 0 ? ot === "total" ? We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? Kt.date === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Hi) : Kt), Fi, [Rt || "asc"]) : We(De(l, v.dateFormat || "yyyy").filter((Kt) => v.enabled ? Kt.date === Ce(new Date(P[N]), v.dateFormat || "yyyy") : Kt).filter((Kt) => ht ? !Kt.size.every(Bi) : Kt), (Kt) => ee(Kt.size[ot]) ? -1 / 0 : Kt.size[ot], [Rt || "asc"]) : De(l, v.dateFormat || "yyyy").filter((Kt) => ht ? !Kt.size.every(Si) : Kt), barColors: G, width: $t, height: f, suffix: St, prefix: yt, showValues: bt, barPadding: st, showTicks: k, leftMargin: C, rightMargin: K, topMargin: B, bottomMargin: T, truncateBy: xt, showLabels: Dt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(c) ? Math.max(...l.map(ji)) < 0 ? 0 : Math.max(...l.map(Ii)) : c, minValue: ee(s) ? Math.min(...l.map(zi)) >= 0 ? 0 : Math.min(...l.map(Li)) : s, onSeriesMouseClick: a, selectedColor: j, labelOrder: x, rtl: I === "he" || I === "ar", maxBarThickness: E, resetSelectionOnDoubleClick: ct, detailsOnClick: Pt, barAxisTitle: Ht, noOfTicks: mt, valueColor: ut, styles: _, classNames: u, colorDomain: ft, animate: q === !0 ? {
648
650
  duration: 0.5,
649
651
  once: !0,
650
652
  amount: 0.5
651
- } : U || {
653
+ } : q || {
652
654
  duration: 0,
653
655
  once: !0,
654
656
  amount: 0
655
- }, precision: vt, customLayers: J, naLabel: b }) : null, t[48] = p, t[49] = U, t[50] = q, t[51] = G, t[52] = T, t[53] = o, t[54] = ht, t[55] = H, t[56] = J, t[57] = s, t[58] = Et, t[59] = mt, t[60] = M, t[61] = d, t[62] = j, t[63] = w, t[64] = tt, t[65] = r, t[66] = l, t[67] = b, t[68] = ut, t[69] = n, t[70] = B, t[71] = vt, t[72] = gt, t[73] = _, t[74] = ot, t[75] = Q, t[76] = W, t[77] = Vt, t[78] = $, t[79] = dt, t[80] = nt, t[81] = It, t[82] = m, t[83] = bt, t[84] = A, t[85] = xt, t[86] = g.dateFormat, t[87] = g.enabled, t[88] = ft, t[89] = E, t[90] = Ht, t[91] = F, t[92] = Rt, t[93] = oe) : oe = t[93];
657
+ }, precision: Ot, customLayers: U, naLabel: $ }) : null, t[48] = At, t[49] = q, t[50] = Ht, t[51] = st, t[52] = T, t[53] = u, t[54] = ft, t[55] = G, t[56] = U, t[57] = l, t[58] = Pt, t[59] = ht, t[60] = b, t[61] = N, t[62] = x, t[63] = I, t[64] = C, t[65] = E, t[66] = c, t[67] = s, t[68] = $, t[69] = mt, t[70] = a, t[71] = F, t[72] = Ot, t[73] = yt, t[74] = Z, t[75] = ct, t[76] = K, t[77] = j, t[78] = Dt, t[79] = k, t[80] = bt, t[81] = Rt, t[82] = ot, t[83] = _, t[84] = St, t[85] = f, t[86] = $t, t[87] = v.dateFormat, t[88] = v.enabled, t[89] = pt, t[90] = B, t[91] = xt, t[92] = P, t[93] = ut, t[94] = oe) : oe = t[94];
656
658
  let re;
657
- t[94] !== ue || t[95] !== oe ? (re = /* @__PURE__ */ i.jsxs(li, { ref: D, children: [
658
- ue,
659
+ t[95] !== de || t[96] !== oe ? (re = /* @__PURE__ */ i.jsxs(ai, { ref: w, children: [
660
+ de,
659
661
  oe
660
- ] }), t[94] = ue, t[95] = oe, t[96] = re) : re = t[96];
661
- let me;
662
- t[97] !== ne || t[98] !== re ? (me = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
662
+ ] }), t[95] = de, t[96] = oe, t[97] = re) : re = t[97];
663
+ let ue;
664
+ t[98] !== ne || t[99] !== re ? (ue = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
663
665
  ne,
664
666
  re
665
- ] }), t[97] = ne, t[98] = re, t[99] = me) : me = t[99];
667
+ ] }), t[98] = ne, t[99] = re, t[100] = ue) : ue = t[100];
666
668
  let xe;
667
- t[100] !== o?.footnote || t[101] !== o?.source || t[102] !== st || t[103] !== Kt || t[104] !== m?.footnote || t[105] !== m?.source || t[106] !== y ? (xe = Kt || st ? /* @__PURE__ */ i.jsx(Ze, { styles: {
668
- footnote: m?.footnote,
669
- source: m?.source
669
+ t[101] !== u?.footnote || t[102] !== u?.source || t[103] !== R || t[104] !== Jt || t[105] !== _?.footnote || t[106] !== _?.source || t[107] !== A ? (xe = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
670
+ footnote: _?.footnote,
671
+ source: _?.source
670
672
  }, classNames: {
671
- footnote: o?.footnote,
672
- source: o?.source
673
- }, sources: Kt, footNote: st, width: y }) : null, t[100] = o?.footnote, t[101] = o?.source, t[102] = st, t[103] = Kt, t[104] = m?.footnote, t[105] = m?.source, t[106] = y, t[107] = xe) : xe = t[107];
673
+ footnote: u?.footnote,
674
+ source: u?.source
675
+ }, sources: Jt, footNote: R, width: A }) : null, t[101] = u?.footnote, t[102] = u?.source, t[103] = R, t[104] = Jt, t[105] = _?.footnote, t[106] = _?.source, t[107] = A, t[108] = xe) : xe = t[108];
674
676
  let ce;
675
- return t[108] !== Ft || t[109] !== jt || t[110] !== lt || t[111] !== K || t[112] !== j || t[113] !== zt || t[114] !== kt || t[115] !== Z || t[116] !== de || t[117] !== ye || t[118] !== pe || t[119] !== ae || t[120] !== me || t[121] !== xe || t[122] !== yt || t[123] !== y ? (ce = /* @__PURE__ */ i.jsxs(si, { className: de, style: ye, id: lt, ref: St, "aria-label": Ft, backgroundColor: jt, theme: yt, language: j, minHeight: zt, width: y, height: K, relativeHeight: Z, padding: kt, children: [
676
- pe,
677
+ return t[109] !== Yt || t[110] !== Bt || t[111] !== it || t[112] !== J || t[113] !== I || t[114] !== It || t[115] !== zt || t[116] !== Q || t[117] !== Ae || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ue || t[122] !== xe || t[123] !== wt || t[124] !== A ? (ce = /* @__PURE__ */ i.jsxs(ni, { className: Ae, style: ye, id: it, ref: n, "aria-label": Yt, backgroundColor: Bt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: zt, children: [
678
+ he,
677
679
  ae,
678
- me,
680
+ ue,
679
681
  xe
680
- ] }), t[108] = Ft, t[109] = jt, t[110] = lt, t[111] = K, t[112] = j, t[113] = zt, t[114] = kt, t[115] = Z, t[116] = de, t[117] = ye, t[118] = pe, t[119] = ae, t[120] = me, t[121] = xe, t[122] = yt, t[123] = y, t[124] = ce) : ce = t[124], ce;
681
- }
682
- function ki(e) {
683
- return Math.min(...e.size.filter(Ci));
682
+ ] }), t[109] = Yt, t[110] = Bt, t[111] = it, t[112] = J, t[113] = I, t[114] = It, t[115] = zt, t[116] = Q, t[117] = Ae, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ue, t[122] = xe, t[123] = wt, t[124] = A, t[125] = ce) : ce = t[125], ce;
684
683
  }
685
- function Ci(e) {
686
- return !le(e);
684
+ function Li(e) {
685
+ return Math.min(...e.size.filter(Vi));
687
686
  }
688
687
  function Vi(e) {
689
- return Math.min(...e.size.filter(zi));
688
+ return !ee(e);
690
689
  }
691
690
  function zi(e) {
692
- return !le(e);
691
+ return Math.min(...e.size.filter(Di));
693
692
  }
694
693
  function Di(e) {
695
- return Math.max(...e.size.filter(Li));
696
- }
697
- function Li(e) {
698
- return !le(e);
694
+ return !ee(e);
699
695
  }
700
696
  function Ii(e) {
701
697
  return Math.max(...e.size.filter(Ni));
702
698
  }
703
699
  function Ni(e) {
704
- return !le(e);
700
+ return !ee(e);
705
701
  }
706
702
  function ji(e) {
707
- return e == null;
703
+ return Math.max(...e.size.filter(Ti));
708
704
  }
709
705
  function Ti(e) {
710
- return e == null;
706
+ return !ee(e);
711
707
  }
712
708
  function Si(e) {
713
- return he(e.size.filter(Bi));
709
+ return e == null;
714
710
  }
715
711
  function Bi(e) {
716
- return !le(e);
712
+ return e == null;
717
713
  }
718
714
  function Fi(e) {
719
- return e == null;
715
+ return me(e.size.filter(Pi));
720
716
  }
721
717
  function Pi(e) {
722
- return e !== void 0;
718
+ return !ee(e);
723
719
  }
724
720
  function Hi(e) {
725
- return e !== void 0;
721
+ return e == null;
726
722
  }
727
723
  function Wi(e) {
728
- return e.data;
724
+ return e !== void 0;
729
725
  }
730
726
  function Xi(e) {
731
727
  return e !== void 0;
@@ -733,265 +729,272 @@ function Xi(e) {
733
729
  function Yi(e) {
734
730
  return e.data;
735
731
  }
736
- function Ei(e, t) {
737
- return e - t;
732
+ function Ei(e) {
733
+ return e !== void 0;
738
734
  }
739
735
  function Gi(e) {
736
+ return e.data;
737
+ }
738
+ function Ri(e, t) {
739
+ return e - t;
740
+ }
741
+ function qi(e) {
740
742
  return e.date;
741
743
  }
742
- function Ri(e) {
743
- const t = we.c(132), {
744
- data: s,
744
+ function Ui(e) {
745
+ const t = we.c(133), {
746
+ data: l,
745
747
  barColor: X,
746
748
  suffix: Ut,
747
- prefix: Kt,
748
- barPadding: Lt,
749
- showValues: Ot,
750
- showTicks: Tt,
751
- truncateBy: P,
752
- width: K,
753
- height: y,
754
- colorDomain: st,
755
- topMargin: ht,
756
- bottomMargin: it,
757
- leftMargin: Jt,
749
+ prefix: Jt,
750
+ barPadding: Tt,
751
+ showValues: Ct,
752
+ showTicks: Ft,
753
+ truncateBy: W,
754
+ width: J,
755
+ height: A,
756
+ colorDomain: R,
757
+ topMargin: ft,
758
+ bottomMargin: et,
759
+ leftMargin: Lt,
758
760
  rightMargin: Y,
759
- showLabels: at,
760
- tooltip: Mt,
761
- onSeriesMouseOver: kt,
762
- refValues: Gt,
763
- selectedColor: w,
764
- highlightedDataPoints: Q,
765
- maxValue: E,
761
+ showLabels: lt,
762
+ tooltip: Vt,
763
+ onSeriesMouseOver: zt,
764
+ refValues: Xt,
765
+ selectedColor: C,
766
+ highlightedDataPoints: K,
767
+ maxValue: B,
766
768
  minValue: T,
767
- onSeriesMouseClick: rt,
768
- labelOrder: Z,
769
- rtl: ft,
770
- maxBarThickness: B,
771
- minBarThickness: _,
772
- resetSelectionOnDoubleClick: lt,
773
- detailsOnClick: r,
774
- barAxisTitle: l,
775
- valueColor: n,
776
- noOfTicks: u,
777
- styles: c,
778
- classNames: f,
779
- animate: d,
780
- dimmedOpacity: V,
781
- precision: ct,
782
- customLayers: tt,
783
- naLabel: Ft,
784
- trackColor: Pt
785
- } = e, Et = ht === void 0 ? 25 : ht, q = it === void 0 ? 10 : it, pt = Jt === void 0 ? 100 : Jt, Rt = Y === void 0 ? 40 : Y, m = ve(null);
786
- let o;
787
- t[0] !== d.amount || t[1] !== d.once ? (o = {
788
- once: d.once,
789
- amount: d.amount
790
- }, t[0] = d.amount, t[1] = d.once, t[2] = o) : o = t[2];
791
- const I = Se(m, o), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), [nt, Nt] = te(void 0), H = l ? Et + 25 : Et;
792
- let G;
793
- t[3] !== q || t[4] !== pt || t[5] !== Rt || t[6] !== H ? (G = {
794
- top: H,
795
- bottom: q,
796
- left: pt,
797
- right: Rt
798
- }, t[3] = q, t[4] = pt, t[5] = Rt, t[6] = H, t[7] = G) : G = t[7];
799
- const $ = G, Ht = K - $.left - $.right, bt = y - $.top - $.bottom;
800
- let gt;
801
- if (t[8] !== s || t[9] !== Z) {
802
- const h = /* @__PURE__ */ new Set(), x = s.map((Zt, F) => {
803
- const M = Z ? `${Zt.label}` : `${F}`;
804
- return h.add(M), {
805
- ...Zt,
806
- id: M
769
+ onSeriesMouseClick: dt,
770
+ labelOrder: Q,
771
+ rtl: pt,
772
+ maxBarThickness: F,
773
+ minBarThickness: Z,
774
+ resetSelectionOnDoubleClick: it,
775
+ detailsOnClick: c,
776
+ barAxisTitle: s,
777
+ valueColor: a,
778
+ noOfTicks: m,
779
+ styles: d,
780
+ classNames: p,
781
+ animate: x,
782
+ dimmedOpacity: at,
783
+ precision: D,
784
+ customLayers: E,
785
+ naLabel: Yt,
786
+ trackColor: Et,
787
+ hideAxisLine: Pt
788
+ } = e, Ht = ft === void 0 ? 25 : ft, nt = et === void 0 ? 10 : et, ut = Lt === void 0 ? 100 : Lt, _ = Y === void 0 ? 40 : Y, u = ve(null);
789
+ let r;
790
+ t[0] !== x.amount || t[1] !== x.once ? (r = {
791
+ once: x.once,
792
+ amount: x.amount
793
+ }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
794
+ const V = Fe(u, r), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), G = s ? Ht + 25 : Ht;
795
+ let st;
796
+ t[3] !== nt || t[4] !== ut || t[5] !== _ || t[6] !== G ? (st = {
797
+ top: G,
798
+ bottom: nt,
799
+ left: ut,
800
+ right: _
801
+ }, t[3] = nt, t[4] = ut, t[5] = _, t[6] = G, t[7] = st) : st = t[7];
802
+ const k = st, xt = J - k.left - k.right, St = A - k.top - k.bottom;
803
+ let yt;
804
+ if (t[8] !== l || t[9] !== Q) {
805
+ const f = /* @__PURE__ */ new Set(), g = l.map((qt, Qt) => {
806
+ const P = Q ? `${qt.label}` : `${Qt}`;
807
+ return f.add(P), {
808
+ ...qt,
809
+ id: P
807
810
  };
808
- }), Yt = Z ? Z.filter((Zt) => !h.has(Zt)) : [];
809
- gt = [...x, ...Yt.map(sl)], t[8] = s, t[9] = Z, t[10] = gt;
811
+ }), Nt = Q ? Q.filter((qt) => !f.has(qt)) : [];
812
+ yt = [...g, ...Nt.map(ns)], t[8] = l, t[9] = Q, t[10] = yt;
810
813
  } else
811
- gt = t[10];
812
- const dt = gt;
813
- let Wt;
814
- t[11] !== dt || t[12] !== Z ? (Wt = Z ?? dt.map(ll), t[11] = dt, t[12] = Z, t[13] = Wt) : Wt = t[13];
815
- const jt = Wt;
816
- let Vt, et, S, j, zt, yt, ot, ut, mt, U, vt, wt, J, At;
817
- if (t[14] !== d || t[15] !== l || t[16] !== X || t[17] !== jt || t[18] !== Lt || t[19] !== f?.graphObjectValues || t[20] !== f?.xAxis?.gridLines || t[21] !== f?.xAxis?.labels || t[22] !== f?.xAxis?.title || t[23] !== f?.yAxis?.axis || t[24] !== f?.yAxis?.labels || t[25] !== st || t[26] !== tt || t[27] !== s || t[28] !== dt || t[29] !== r || t[30] !== V || t[31] !== bt || t[32] !== Ht || t[33] !== y || t[34] !== Q || t[35] !== I || t[36] !== $.bottom || t[37] !== $.left || t[38] !== $.top || t[39] !== B || t[40] !== E || t[41] !== _ || t[42] !== T || t[43] !== L || t[44] !== Ft || t[45] !== u || t[46] !== rt || t[47] !== kt || t[48] !== ct || t[49] !== Kt || t[50] !== Gt || t[51] !== lt || t[52] !== ft || t[53] !== w || t[54] !== at || t[55] !== Tt || t[56] !== Ot || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.gridLines || t[59] !== c?.xAxis?.labels || t[60] !== c?.xAxis?.title || t[61] !== c?.yAxis?.axis || t[62] !== c?.yAxis?.labels || t[63] !== Ut || t[64] !== Et || t[65] !== Pt || t[66] !== P || t[67] !== n || t[68] !== K) {
818
- const h = Be().domain([T, E]).range([0, Ht]).nice(), x = Oe().domain(jt).range([0, _ ? Math.max(bt, _ * jt.length) : B ? Math.min(bt, B * jt.length) : bt]).paddingInner(Lt), Yt = h.ticks(u);
819
- et = ee.svg, mt = m, U = `${K}px`, vt = `${y}px`, wt = `0 0 ${K} ${y}`, J = "ltr", zt = `translate(${$.left},${$.top})`, yt = Tt ? /* @__PURE__ */ i.jsx(Re, { values: Yt.filter(il), x: Yt.filter(el).map((a) => h(a)), y1: 0 - Et, y2: bt + $.bottom, styles: {
820
- gridLines: c?.xAxis?.gridLines,
821
- labels: c?.xAxis?.labels
814
+ yt = t[10];
815
+ const bt = yt;
816
+ let vt;
817
+ t[11] !== bt || t[12] !== Q ? (vt = Q ?? bt.map(as), t[11] = bt, t[12] = Q, t[13] = vt) : vt = t[13];
818
+ const Bt = vt;
819
+ let Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U, kt;
820
+ if (t[14] !== x || t[15] !== s || t[16] !== X || t[17] !== Bt || t[18] !== Tt || t[19] !== p?.graphObjectValues || t[20] !== p?.xAxis?.gridLines || t[21] !== p?.xAxis?.labels || t[22] !== p?.xAxis?.title || t[23] !== p?.yAxis?.axis || t[24] !== p?.yAxis?.labels || t[25] !== R || t[26] !== E || t[27] !== l || t[28] !== bt || t[29] !== c || t[30] !== at || t[31] !== St || t[32] !== xt || t[33] !== A || t[34] !== Pt || t[35] !== K || t[36] !== V || t[37] !== k.bottom || t[38] !== k.left || t[39] !== k.top || t[40] !== F || t[41] !== B || t[42] !== Z || t[43] !== T || t[44] !== L || t[45] !== Yt || t[46] !== m || t[47] !== dt || t[48] !== zt || t[49] !== D || t[50] !== Jt || t[51] !== Xt || t[52] !== it || t[53] !== pt || t[54] !== C || t[55] !== lt || t[56] !== Ft || t[57] !== Ct || t[58] !== d?.graphObjectValues || t[59] !== d?.xAxis?.gridLines || t[60] !== d?.xAxis?.labels || t[61] !== d?.xAxis?.title || t[62] !== d?.yAxis?.axis || t[63] !== d?.yAxis?.labels || t[64] !== Ut || t[65] !== Ht || t[66] !== Et || t[67] !== W || t[68] !== a || t[69] !== J) {
821
+ const f = Pe().domain([T, B]).range([0, xt]).nice(), g = ke().domain(Bt).range([0, Z ? Math.max(St, Z * Bt.length) : F ? Math.min(St, F * Bt.length) : St]).paddingInner(Tt), Nt = f.ticks(m);
822
+ tt = _t.svg, ht = u, q = `${J}px`, Ot = `${A}px`, Mt = `0 0 ${J} ${A}`, U = "ltr", It = `translate(${k.left},${k.top})`, wt = Ft ? /* @__PURE__ */ i.jsx(Ue, { values: Nt.filter(ls), x: Nt.filter(ss).map((n) => f(n)), y1: 0 - Ht, y2: St + k.bottom, styles: {
823
+ gridLines: d?.xAxis?.gridLines,
824
+ labels: d?.xAxis?.labels
822
825
  }, classNames: {
823
- gridLines: f?.xAxis?.gridLines,
824
- labels: f?.xAxis?.labels
825
- }, suffix: Ut, prefix: Kt, labelType: "secondary", showGridLines: !0, precision: ct }) : null;
826
- const Zt = Ht / 2, F = 0 - $.top + 15, M = c?.xAxis?.title, _t = f?.xAxis?.title;
827
- t[83] !== l || t[84] !== Zt || t[85] !== F || t[86] !== M || t[87] !== _t ? (ot = /* @__PURE__ */ i.jsx(je, { x: Zt, y: F, style: M, className: _t, text: l }), t[83] = l, t[84] = Zt, t[85] = F, t[86] = M, t[87] = _t, t[88] = ot) : ot = t[88], t[89] !== tt ? (ut = tt.filter(tl).map(_i), t[89] = tt, t[90] = ut) : ut = t[90], Vt = Fe, At = dt.map((a) => le(x(a.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
826
+ gridLines: p?.xAxis?.gridLines,
827
+ labels: p?.xAxis?.labels
828
+ }, suffix: Ut, prefix: Jt, labelType: "secondary", showGridLines: !0, precision: D }) : null;
829
+ const qt = xt / 2, Qt = 0 - k.top + 15, P = d?.xAxis?.title, N = p?.xAxis?.title;
830
+ t[84] !== s || t[85] !== qt || t[86] !== Qt || t[87] !== P || t[88] !== N ? (ct = /* @__PURE__ */ i.jsx(Se, { x: qt, y: Qt, style: P, className: N, text: s }), t[84] = s, t[85] = qt, t[86] = Qt, t[87] = P, t[88] = N, t[89] = ct) : ct = t[89], t[90] !== E ? (mt = E.filter(is).map(es), t[90] = E, t[91] = mt) : mt = t[91], Dt = He, kt = bt.map((n) => ee(g(n.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", variants: {
828
831
  initial: {
829
- opacity: w ? a.color && X[st.indexOf(a.color)] === w ? 1 : V : Q.length !== 0 ? Q.indexOf(a.label) !== -1 ? 0.85 : V : 0.85
832
+ opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85
830
833
  },
831
834
  whileInView: {
832
- opacity: w ? a.color && X[st.indexOf(a.color)] === w ? 1 : V : Q.length !== 0 ? Q.indexOf(a.label) !== -1 ? 0.85 : V : 0.85,
835
+ opacity: C ? n.color && X[R.indexOf(n.color)] === C ? 1 : at : K.length !== 0 ? K.indexOf(n.label) !== -1 ? 0.85 : at : 0.85,
833
836
  transition: {
834
- duration: d.duration
837
+ duration: x.duration
835
838
  }
836
839
  }
837
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
840
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
838
841
  opacity: 0,
839
842
  transition: {
840
- duration: d.duration
843
+ duration: x.duration
841
844
  }
842
- }, onMouseEnter: ($t) => {
843
- z(a), Nt($t.clientY), It($t.clientX), kt?.(a);
845
+ }, onMouseEnter: (H) => {
846
+ y(n), Wt(H.clientY), Rt(H.clientX), zt?.(n);
844
847
  }, onClick: () => {
845
- (rt || r) && (Le(L, a) && lt ? (N(void 0), rt?.(void 0)) : (N(a), rt?.(a)));
846
- }, onMouseMove: ($t) => {
847
- z(a), Nt($t.clientY), It($t.clientX);
848
+ (dt || c) && (Ne(L, n) && it ? (Gt(void 0), dt?.(void 0)) : (Gt(n), dt?.(n)));
849
+ }, onMouseMove: (H) => {
850
+ y(n), Wt(H.clientY), Rt(H.clientX);
848
851
  }, onMouseLeave: () => {
849
- z(void 0), It(void 0), Nt(void 0), kt?.(void 0);
852
+ y(void 0), Rt(void 0), Wt(void 0), zt?.(void 0);
850
853
  }, children: [
851
- Pt && /* @__PURE__ */ i.jsx(ee.rect, { height: x.bandwidth(), variants: {
854
+ Et && /* @__PURE__ */ i.jsx(_t.rect, { height: g.bandwidth(), variants: {
852
855
  initial: {
853
- width: Ht,
856
+ width: xt,
854
857
  x: 0,
855
- y: x(`${a.id}`),
856
- fill: Pt
858
+ y: g(`${n.id}`),
859
+ fill: Et
857
860
  },
858
861
  whileInView: {
859
- width: Ht,
862
+ width: xt,
860
863
  x: 0,
861
- y: x(`${a.id}`),
862
- fill: Pt
864
+ y: g(`${n.id}`),
865
+ fill: Et
863
866
  }
864
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
867
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
865
868
  opacity: 0,
866
869
  transition: {
867
- duration: d.duration
870
+ duration: x.duration
868
871
  }
869
872
  } }),
870
- a.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
873
+ n.size ? /* @__PURE__ */ i.jsx(_t.rect, { variants: {
871
874
  initial: {
872
875
  width: 0,
873
- x: h(0),
874
- y: x(`${a.id}`),
875
- fill: s.filter(Zi).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray
876
+ x: f(0),
877
+ y: g(`${n.id}`),
878
+ fill: l.filter(ts).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray
876
879
  },
877
880
  whileInView: {
878
- width: a.size >= 0 ? h(a.size) - h(0) : h(0) - h(a.size),
879
- x: a.size >= 0 ? h(0) : h(a.size),
880
- y: x(`${a.id}`),
881
- fill: s.filter(Qi).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray,
881
+ width: n.size >= 0 ? f(n.size) - f(0) : f(0) - f(n.size),
882
+ x: n.size >= 0 ? f(0) : f(n.size),
883
+ y: g(`${n.id}`),
884
+ fill: l.filter(_i).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray,
882
885
  transition: {
883
- duration: d.duration
886
+ duration: x.duration
884
887
  }
885
888
  }
886
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
889
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
887
890
  width: 0,
888
- x: h(0),
891
+ x: f(0),
889
892
  transition: {
890
- duration: d.duration
893
+ duration: x.duration
891
894
  }
892
- }, height: x.bandwidth() }) : null,
893
- at ? /* @__PURE__ */ i.jsx(Ge, { value: `${a.label}`.length < P ? `${a.label}` : `${`${a.label}`.substring(0, P)}...`, y: x(a.id) || 0, x: (a.size || 0) < 0 ? h(0) : 0 - $.left, width: (a.size || 0) < 0 ? K - h(0) : h(0) + $.left, height: x.bandwidth(), alignment: a.size && a.size < 0 ? "left" : "right", style: c?.yAxis?.labels, className: f?.yAxis?.labels, animate: d, isInView: I }) : null,
894
- Ot ? /* @__PURE__ */ i.jsx(ee.text, { style: {
895
- textAnchor: a.size && a.size < 0 ? "end" : "start",
896
- ...c?.graphObjectValues || {}
897
- }, className: $e("graph-value text-sm", !n && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", f?.graphObjectValues), dx: a.size && a.size < 0 ? -5 : 5, dy: "0.33em", variants: {
895
+ }, height: g.bandwidth() }) : null,
896
+ lt ? /* @__PURE__ */ i.jsx(qe, { value: `${n.label}`.length < W ? `${n.label}` : `${`${n.label}`.substring(0, W)}...`, y: g(n.id) || 0, x: (n.size || 0) < 0 ? f(0) : 0 - k.left, width: (n.size || 0) < 0 ? J - f(0) : f(0) + k.left, height: g.bandwidth(), alignment: n.size && n.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: p?.yAxis?.labels, animate: x, isInView: V }) : null,
897
+ Ct ? /* @__PURE__ */ i.jsx(_t.text, { style: {
898
+ textAnchor: n.size && n.size < 0 ? "end" : "start",
899
+ ...d?.graphObjectValues || {}
900
+ }, className: Me("graph-value text-sm", !a && X.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", p?.graphObjectValues), dx: n.size && n.size < 0 ? -5 : 5, dy: "0.33em", variants: {
898
901
  initial: {
899
- x: h(0),
900
- y: x(`${a.id}`) + x.bandwidth() / 2,
902
+ x: f(0),
903
+ y: g(`${n.id}`) + g.bandwidth() / 2,
901
904
  opacity: 0,
902
- fill: n || (s.filter(Ki).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray)
905
+ fill: a || (l.filter(Zi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray)
903
906
  },
904
907
  whileInView: {
905
- x: a.size ? h(a.size) : h(0),
908
+ x: n.size ? f(n.size) : f(0),
906
909
  opacity: 1,
907
- y: x(`${a.id}`) + x.bandwidth() / 2,
908
- fill: n || (s.filter(Ji).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray),
910
+ y: g(`${n.id}`) + g.bandwidth() / 2,
911
+ fill: a || (l.filter(Qi).length === 0 ? X[0] : n.color ? X[R.indexOf(n.color)] : pe.gray),
909
912
  transition: {
910
- duration: d.duration
913
+ duration: x.duration
911
914
  }
912
915
  }
913
- }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
916
+ }, initial: "initial", animate: V ? "whileInView" : "initial", exit: {
914
917
  opacity: 0,
915
918
  transition: {
916
- duration: d.duration
919
+ duration: x.duration
917
920
  }
918
- }, children: be(a.size, Ft, ct, Kt, Ut) }) : null
919
- ] }, a.label));
920
- const W = f?.yAxis?.axis;
921
- let R;
922
- t[91] !== W ? (R = {
923
- axis: W
924
- }, t[91] = W, t[92] = R) : R = t[92];
925
- const D = c?.yAxis?.axis;
926
- let St;
927
- t[93] !== D ? (St = {
928
- axis: D
929
- }, t[93] = D, t[94] = St) : St = t[94], S = /* @__PURE__ */ i.jsx(Ne, { x1: h(T < 0 ? 0 : T), x2: h(T < 0 ? 0 : T), y1: -2.5, y2: bt + $.bottom, classNames: R, styles: St }), j = Gt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Gt.map((a, $t) => /* @__PURE__ */ i.jsx(qe, { text: a.text, color: a.color, x: h(a.value), y1: 0 - $.top, y2: bt + $.bottom, textSide: h(a.value) > Ht * 0.75 || ft ? "left" : "right", classNames: a.classNames, styles: a.styles, animate: d, isInView: I }, $t)) }) : null, t[14] = d, t[15] = l, t[16] = X, t[17] = jt, t[18] = Lt, t[19] = f?.graphObjectValues, t[20] = f?.xAxis?.gridLines, t[21] = f?.xAxis?.labels, t[22] = f?.xAxis?.title, t[23] = f?.yAxis?.axis, t[24] = f?.yAxis?.labels, t[25] = st, t[26] = tt, t[27] = s, t[28] = dt, t[29] = r, t[30] = V, t[31] = bt, t[32] = Ht, t[33] = y, t[34] = Q, t[35] = I, t[36] = $.bottom, t[37] = $.left, t[38] = $.top, t[39] = B, t[40] = E, t[41] = _, t[42] = T, t[43] = L, t[44] = Ft, t[45] = u, t[46] = rt, t[47] = kt, t[48] = ct, t[49] = Kt, t[50] = Gt, t[51] = lt, t[52] = ft, t[53] = w, t[54] = at, t[55] = Tt, t[56] = Ot, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.gridLines, t[59] = c?.xAxis?.labels, t[60] = c?.xAxis?.title, t[61] = c?.yAxis?.axis, t[62] = c?.yAxis?.labels, t[63] = Ut, t[64] = Et, t[65] = Pt, t[66] = P, t[67] = n, t[68] = K, t[69] = Vt, t[70] = et, t[71] = S, t[72] = j, t[73] = zt, t[74] = yt, t[75] = ot, t[76] = ut, t[77] = mt, t[78] = U, t[79] = vt, t[80] = wt, t[81] = J, t[82] = At;
921
+ }, children: be(n.size, Yt, D, Jt, Ut) }) : null
922
+ ] }, n.label));
923
+ const z = p?.yAxis?.axis;
924
+ let j;
925
+ t[92] !== z ? (j = {
926
+ axis: z
927
+ }, t[92] = z, t[93] = j) : j = t[93];
928
+ const h = d?.yAxis?.axis;
929
+ let w;
930
+ t[94] !== h ? (w = {
931
+ axis: h
932
+ }, t[94] = h, t[95] = w) : w = t[95], S = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Pt, x1: f(T < 0 ? 0 : T), x2: f(T < 0 ? 0 : T), y1: -2.5, y2: St + k.bottom, classNames: j, styles: w }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((n, H) => /* @__PURE__ */ i.jsx(Je, { text: n.text, color: n.color, x: f(n.value), y1: 0 - k.top, y2: St + k.bottom, textSide: f(n.value) > xt * 0.75 || pt ? "left" : "right", classNames: n.classNames, styles: n.styles, animate: x, isInView: V }, H)) }) : null, t[14] = x, t[15] = s, t[16] = X, t[17] = Bt, t[18] = Tt, t[19] = p?.graphObjectValues, t[20] = p?.xAxis?.gridLines, t[21] = p?.xAxis?.labels, t[22] = p?.xAxis?.title, t[23] = p?.yAxis?.axis, t[24] = p?.yAxis?.labels, t[25] = R, t[26] = E, t[27] = l, t[28] = bt, t[29] = c, t[30] = at, t[31] = St, t[32] = xt, t[33] = A, t[34] = Pt, t[35] = K, t[36] = V, t[37] = k.bottom, t[38] = k.left, t[39] = k.top, t[40] = F, t[41] = B, t[42] = Z, t[43] = T, t[44] = L, t[45] = Yt, t[46] = m, t[47] = dt, t[48] = zt, t[49] = D, t[50] = Jt, t[51] = Xt, t[52] = it, t[53] = pt, t[54] = C, t[55] = lt, t[56] = Ft, t[57] = Ct, t[58] = d?.graphObjectValues, t[59] = d?.xAxis?.gridLines, t[60] = d?.xAxis?.labels, t[61] = d?.xAxis?.title, t[62] = d?.yAxis?.axis, t[63] = d?.yAxis?.labels, t[64] = Ut, t[65] = Ht, t[66] = Et, t[67] = W, t[68] = a, t[69] = J, t[70] = Dt, t[71] = tt, t[72] = S, t[73] = I, t[74] = It, t[75] = wt, t[76] = ct, t[77] = mt, t[78] = ht, t[79] = q, t[80] = Ot, t[81] = Mt, t[82] = U, t[83] = kt;
930
933
  } else
931
- Vt = t[69], et = t[70], S = t[71], j = t[72], zt = t[73], yt = t[74], ot = t[75], ut = t[76], mt = t[77], U = t[78], vt = t[79], wt = t[80], J = t[81], At = t[82];
932
- let g;
933
- t[95] !== Vt || t[96] !== S || t[97] !== j || t[98] !== At ? (g = /* @__PURE__ */ i.jsxs(Vt, { children: [
934
- At,
934
+ Dt = t[70], tt = t[71], S = t[72], I = t[73], It = t[74], wt = t[75], ct = t[76], mt = t[77], ht = t[78], q = t[79], Ot = t[80], Mt = t[81], U = t[82], kt = t[83];
935
+ let v;
936
+ t[96] !== Dt || t[97] !== S || t[98] !== I || t[99] !== kt ? (v = /* @__PURE__ */ i.jsxs(Dt, { children: [
937
+ kt,
935
938
  S,
936
- j
937
- ] }), t[95] = Vt, t[96] = S, t[97] = j, t[98] = At, t[99] = g) : g = t[99];
939
+ I
940
+ ] }), t[96] = Dt, t[97] = S, t[98] = I, t[99] = kt, t[100] = v) : v = t[100];
941
+ let $;
942
+ t[101] !== E ? ($ = E.filter(Ki).map(Ji), t[101] = E, t[102] = $) : $ = t[102];
943
+ let O;
944
+ t[103] !== It || t[104] !== wt || t[105] !== ct || t[106] !== mt || t[107] !== v || t[108] !== $ ? (O = /* @__PURE__ */ i.jsxs("g", { transform: It, children: [
945
+ wt,
946
+ ct,
947
+ mt,
948
+ v,
949
+ $
950
+ ] }), t[103] = It, t[104] = wt, t[105] = ct, t[106] = mt, t[107] = v, t[108] = $, t[109] = O) : O = t[109];
938
951
  let b;
939
- t[100] !== tt ? (b = tt.filter(Ui).map(qi), t[100] = tt, t[101] = b) : b = t[101];
940
- let v;
941
- t[102] !== zt || t[103] !== yt || t[104] !== ot || t[105] !== ut || t[106] !== g || t[107] !== b ? (v = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
942
- yt,
943
- ot,
944
- ut,
945
- g,
946
- b
947
- ] }), t[102] = zt, t[103] = yt, t[104] = ot, t[105] = ut, t[106] = g, t[107] = b, t[108] = v) : v = t[108];
948
- let p;
949
- t[109] !== et || t[110] !== mt || t[111] !== U || t[112] !== vt || t[113] !== wt || t[114] !== J || t[115] !== v ? (p = /* @__PURE__ */ i.jsx(et, { ref: mt, width: U, height: vt, viewBox: wt, direction: J, children: v }), t[109] = et, t[110] = mt, t[111] = U, t[112] = vt, t[113] = wt, t[114] = J, t[115] = v, t[116] = p) : p = t[116];
950
- let xt;
951
- t[117] !== f?.tooltip || t[118] !== Ct || t[119] !== nt || t[120] !== O || t[121] !== c?.tooltip || t[122] !== Mt ? (xt = O && Mt && Ct && nt ? /* @__PURE__ */ i.jsx(Ie, { data: O, body: Mt, xPos: Ct, yPos: nt, backgroundStyle: c?.tooltip, className: f?.tooltip }) : null, t[117] = f?.tooltip, t[118] = Ct, t[119] = nt, t[120] = O, t[121] = c?.tooltip, t[122] = Mt, t[123] = xt) : xt = t[123];
952
- let Xt;
953
- t[124] !== f?.modal || t[125] !== r || t[126] !== L ? (Xt = r && L !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: r, data: L, setData: N, className: f?.modal }) : null, t[124] = f?.modal, t[125] = r, t[126] = L, t[127] = Xt) : Xt = t[127];
954
- let A;
955
- return t[128] !== p || t[129] !== xt || t[130] !== Xt ? (A = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
956
- p,
957
- xt,
958
- Xt
959
- ] }), t[128] = p, t[129] = xt, t[130] = Xt, t[131] = A) : A = t[131], A;
952
+ t[110] !== tt || t[111] !== ht || t[112] !== q || t[113] !== Ot || t[114] !== Mt || t[115] !== U || t[116] !== O ? (b = /* @__PURE__ */ i.jsx(tt, { ref: ht, width: q, height: Ot, viewBox: Mt, direction: U, children: O }), t[110] = tt, t[111] = ht, t[112] = q, t[113] = Ot, t[114] = Mt, t[115] = U, t[116] = O, t[117] = b) : b = t[117];
953
+ let At;
954
+ t[118] !== p?.tooltip || t[119] !== ot || t[120] !== rt || t[121] !== gt || t[122] !== d?.tooltip || t[123] !== Vt ? (At = gt && Vt && ot && rt ? /* @__PURE__ */ i.jsx(je, { data: gt, body: Vt, xPos: ot, yPos: rt, backgroundStyle: d?.tooltip, className: p?.tooltip }) : null, t[118] = p?.tooltip, t[119] = ot, t[120] = rt, t[121] = gt, t[122] = d?.tooltip, t[123] = Vt, t[124] = At) : At = t[124];
955
+ let $t;
956
+ t[125] !== p?.modal || t[126] !== c || t[127] !== L ? ($t = c && L !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: c, data: L, setData: Gt, className: p?.modal }) : null, t[125] = p?.modal, t[126] = c, t[127] = L, t[128] = $t) : $t = t[128];
957
+ let M;
958
+ return t[129] !== b || t[130] !== At || t[131] !== $t ? (M = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
959
+ b,
960
+ At,
961
+ $t
962
+ ] }), t[129] = b, t[130] = At, t[131] = $t, t[132] = M) : M = t[132], M;
960
963
  }
961
- function qi(e) {
964
+ function Ji(e) {
962
965
  return e.layer;
963
966
  }
964
- function Ui(e) {
967
+ function Ki(e) {
965
968
  return e.position === "after";
966
969
  }
967
- function Ji(e) {
970
+ function Qi(e) {
968
971
  return e.color;
969
972
  }
970
- function Ki(e) {
973
+ function Zi(e) {
971
974
  return e.color;
972
975
  }
973
- function Qi(e) {
976
+ function _i(e) {
974
977
  return e.color;
975
978
  }
976
- function Zi(e) {
979
+ function ts(e) {
977
980
  return e.color;
978
981
  }
979
- function _i(e) {
982
+ function es(e) {
980
983
  return e.layer;
981
984
  }
982
- function tl(e) {
985
+ function is(e) {
983
986
  return e.position === "before";
984
987
  }
985
- function el(e) {
988
+ function ss(e) {
986
989
  return e !== 0;
987
990
  }
988
- function il(e) {
991
+ function ls(e) {
989
992
  return e !== 0;
990
993
  }
991
- function ll(e) {
994
+ function as(e) {
992
995
  return `${e.id}`;
993
996
  }
994
- function sl(e) {
997
+ function ns(e) {
995
998
  return {
996
999
  id: e,
997
1000
  label: e,
@@ -999,268 +1002,268 @@ function sl(e) {
999
1002
  size: null
1000
1003
  };
1001
1004
  }
1002
- function al(e) {
1003
- const t = we.c(140), {
1004
- leftMargin: s,
1005
+ function os(e) {
1006
+ const t = we.c(142), {
1007
+ leftMargin: l,
1005
1008
  rightMargin: X,
1006
1009
  topMargin: Ut,
1007
- bottomMargin: Kt,
1008
- data: Lt,
1009
- width: Ot,
1010
- height: Tt,
1011
- barColor: P,
1012
- suffix: K,
1013
- prefix: y,
1014
- barPadding: st,
1015
- showLabels: ht,
1016
- showValues: it,
1017
- showTicks: Jt,
1010
+ bottomMargin: Jt,
1011
+ data: Tt,
1012
+ width: Ct,
1013
+ height: Ft,
1014
+ barColor: W,
1015
+ suffix: J,
1016
+ prefix: A,
1017
+ barPadding: R,
1018
+ showLabels: ft,
1019
+ showValues: et,
1020
+ showTicks: Lt,
1018
1021
  colorDomain: Y,
1019
- truncateBy: at,
1020
- tooltip: Mt,
1021
- onSeriesMouseOver: kt,
1022
- refValues: Gt,
1023
- selectedColor: w,
1024
- maxValue: Q,
1025
- minValue: E,
1022
+ truncateBy: lt,
1023
+ tooltip: Vt,
1024
+ onSeriesMouseOver: zt,
1025
+ refValues: Xt,
1026
+ selectedColor: C,
1027
+ maxValue: K,
1028
+ minValue: B,
1026
1029
  highlightedDataPoints: T,
1027
- onSeriesMouseClick: rt,
1028
- labelOrder: Z,
1029
- maxBarThickness: ft,
1030
- minBarThickness: B,
1031
- resetSelectionOnDoubleClick: _,
1032
- detailsOnClick: lt,
1033
- barAxisTitle: r,
1034
- valueColor: l,
1035
- noOfTicks: n,
1036
- styles: u,
1037
- classNames: c,
1038
- dimmedOpacity: f,
1039
- animate: d,
1040
- precision: V,
1041
- customLayers: ct,
1042
- naLabel: tt,
1043
- trackColor: Ft
1044
- } = e, Pt = s === void 0 ? 20 : s, Et = X === void 0 ? 20 : X, q = Ut === void 0 ? 20 : Ut, pt = Kt === void 0 ? 25 : Kt, Rt = ve(null);
1045
- let m;
1046
- t[0] !== d.amount || t[1] !== d.once ? (m = {
1047
- once: d.once,
1048
- amount: d.amount
1049
- }, t[0] = d.amount, t[1] = d.once, t[2] = m) : m = t[2];
1050
- const o = Se(Rt, m), I = r ? Pt + 30 : Pt;
1051
- let O;
1052
- t[3] !== pt || t[4] !== Et || t[5] !== I || t[6] !== q ? (O = {
1053
- top: q,
1054
- bottom: pt,
1055
- left: I,
1056
- right: Et
1057
- }, t[3] = pt, t[4] = Et, t[5] = I, t[6] = q, t[7] = O) : O = t[7];
1058
- const z = O, [L, N] = te(void 0), [Ct, It] = te(void 0), [nt, Nt] = te(void 0), [H, G] = te(void 0), $ = Ot - z.left - z.right, Ht = Tt - z.top - z.bottom;
1059
- let bt;
1060
- if (t[8] !== Lt || t[9] !== Z) {
1061
- const A = /* @__PURE__ */ new Set(), h = Lt.map((Yt, Zt) => {
1062
- const F = Z ? `${Yt.label}` : `${Zt}`;
1063
- return A.add(F), {
1064
- ...Yt,
1065
- id: F
1030
+ onSeriesMouseClick: dt,
1031
+ labelOrder: Q,
1032
+ maxBarThickness: pt,
1033
+ minBarThickness: F,
1034
+ resetSelectionOnDoubleClick: Z,
1035
+ detailsOnClick: it,
1036
+ barAxisTitle: c,
1037
+ valueColor: s,
1038
+ noOfTicks: a,
1039
+ styles: m,
1040
+ classNames: d,
1041
+ dimmedOpacity: p,
1042
+ animate: x,
1043
+ precision: at,
1044
+ customLayers: D,
1045
+ naLabel: E,
1046
+ trackColor: Yt,
1047
+ hideAxisLine: Et
1048
+ } = e, Pt = l === void 0 ? 20 : l, Ht = X === void 0 ? 20 : X, nt = Ut === void 0 ? 20 : Ut, ut = Jt === void 0 ? 25 : Jt, _ = ve(null);
1049
+ let u;
1050
+ t[0] !== x.amount || t[1] !== x.once ? (u = {
1051
+ once: x.once,
1052
+ amount: x.amount
1053
+ }, t[0] = x.amount, t[1] = x.once, t[2] = u) : u = t[2];
1054
+ const r = Fe(_, u), V = c ? Pt + 30 : Pt;
1055
+ let gt;
1056
+ t[3] !== ut || t[4] !== Ht || t[5] !== V || t[6] !== nt ? (gt = {
1057
+ top: nt,
1058
+ bottom: ut,
1059
+ left: V,
1060
+ right: Ht
1061
+ }, t[3] = ut, t[4] = Ht, t[5] = V, t[6] = nt, t[7] = gt) : gt = t[7];
1062
+ const y = gt, [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), [rt, Wt] = Zt(void 0), [G, st] = Zt(void 0), k = Ct - y.left - y.right, xt = Ft - y.top - y.bottom;
1063
+ let St;
1064
+ if (t[8] !== Tt || t[9] !== Q) {
1065
+ const M = /* @__PURE__ */ new Set(), f = Tt.map((Nt, qt) => {
1066
+ const Qt = Q ? `${Nt.label}` : `${qt}`;
1067
+ return M.add(Qt), {
1068
+ ...Nt,
1069
+ id: Qt
1066
1070
  };
1067
- }), x = Z ? Z.filter((Yt) => !A.has(Yt)) : [];
1068
- bt = [...h, ...x.map(gl)], t[8] = Lt, t[9] = Z, t[10] = bt;
1071
+ }), g = Q ? Q.filter((Nt) => !M.has(Nt)) : [];
1072
+ St = [...f, ...g.map(bs)], t[8] = Tt, t[9] = Q, t[10] = St;
1069
1073
  } else
1070
- bt = t[10];
1071
- const gt = bt;
1072
- let dt;
1073
- t[11] !== gt || t[12] !== Z ? (dt = Z ?? gt.map(pl), t[11] = gt, t[12] = Z, t[13] = dt) : dt = t[13];
1074
- const Wt = dt;
1075
- let jt, Vt, et, S, j, zt, yt, ot, ut, mt, U, vt, wt, J;
1076
- if (t[14] !== d || t[15] !== r || t[16] !== P || t[17] !== Wt || t[18] !== st || t[19] !== c?.graphObjectValues || t[20] !== c?.xAxis?.axis || t[21] !== c?.xAxis?.labels || t[22] !== c?.yAxis?.gridLines || t[23] !== c?.yAxis?.labels || t[24] !== c?.yAxis?.title || t[25] !== Y || t[26] !== ct || t[27] !== Lt || t[28] !== gt || t[29] !== lt || t[30] !== f || t[31] !== Ht || t[32] !== $ || t[33] !== Tt || t[34] !== T || t[35] !== o || t[36] !== Pt || t[37] !== z.bottom || t[38] !== z.left || t[39] !== z.right || t[40] !== z.top || t[41] !== ft || t[42] !== Q || t[43] !== B || t[44] !== E || t[45] !== Ct || t[46] !== tt || t[47] !== n || t[48] !== rt || t[49] !== kt || t[50] !== V || t[51] !== y || t[52] !== Gt || t[53] !== _ || t[54] !== w || t[55] !== ht || t[56] !== Jt || t[57] !== it || t[58] !== u?.graphObjectValues || t[59] !== u?.xAxis?.axis || t[60] !== u?.xAxis?.labels || t[61] !== u?.yAxis?.gridLines || t[62] !== u?.yAxis?.labels || t[63] !== u?.yAxis?.title || t[64] !== K || t[65] !== Ft || t[66] !== at || t[67] !== l || t[68] !== Ot) {
1077
- const A = Be().domain([E, Q]).range([Ht, 0]).nice(), h = Oe().domain(Wt).range([0, B ? Math.max($, B * Wt.length) : ft ? Math.min($, ft * Wt.length) : $]).paddingInner(st), x = A.ticks(n);
1078
- Vt = ee.svg, ut = Rt, mt = `${Ot}px`, U = `${Tt}px`, vt = `0 0 ${Ot} ${Tt}`, wt = "ltr", S = `translate(${z.left},${z.top})`;
1079
- const Yt = A(E < 0 ? 0 : E), Zt = A(E < 0 ? 0 : E), F = E < 0 ? 0 : E;
1080
- let M;
1081
- t[83] !== tt || t[84] !== V || t[85] !== y || t[86] !== K || t[87] !== F ? (M = be(F, tt, V, y, K), t[83] = tt, t[84] = V, t[85] = y, t[86] = K, t[87] = F, t[88] = M) : M = t[88];
1082
- const _t = c?.xAxis?.axis, W = c?.yAxis?.labels;
1083
- let R;
1084
- t[89] !== _t || t[90] !== W ? (R = {
1085
- axis: _t,
1086
- label: W
1087
- }, t[89] = _t, t[90] = W, t[91] = R) : R = t[91];
1088
- const D = u?.xAxis?.axis, St = u?.yAxis?.labels;
1089
- let a;
1090
- t[92] !== D || t[93] !== St ? (a = {
1091
- axis: D,
1092
- label: St
1093
- }, t[92] = D, t[93] = St, t[94] = a) : a = t[94], j = /* @__PURE__ */ i.jsx(Ne, { y1: Yt, y2: Zt, x1: 0 - Pt, x2: $ + z.right, label: M, labelPos: {
1074
+ St = t[10];
1075
+ const yt = St;
1076
+ let bt;
1077
+ t[11] !== yt || t[12] !== Q ? (bt = Q ?? yt.map(ys), t[11] = yt, t[12] = Q, t[13] = bt) : bt = t[13];
1078
+ const vt = bt;
1079
+ let Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q, Ot, Mt, U;
1080
+ if (t[14] !== x || t[15] !== c || t[16] !== W || t[17] !== vt || t[18] !== R || t[19] !== d?.graphObjectValues || t[20] !== d?.xAxis?.axis || t[21] !== d?.xAxis?.labels || t[22] !== d?.yAxis?.gridLines || t[23] !== d?.yAxis?.labels || t[24] !== d?.yAxis?.title || t[25] !== Y || t[26] !== D || t[27] !== Tt || t[28] !== yt || t[29] !== it || t[30] !== p || t[31] !== xt || t[32] !== k || t[33] !== Ft || t[34] !== Et || t[35] !== T || t[36] !== r || t[37] !== Pt || t[38] !== y.bottom || t[39] !== y.left || t[40] !== y.right || t[41] !== y.top || t[42] !== pt || t[43] !== K || t[44] !== F || t[45] !== B || t[46] !== ot || t[47] !== E || t[48] !== a || t[49] !== dt || t[50] !== zt || t[51] !== at || t[52] !== A || t[53] !== Xt || t[54] !== Z || t[55] !== C || t[56] !== ft || t[57] !== Lt || t[58] !== et || t[59] !== m?.graphObjectValues || t[60] !== m?.xAxis?.axis || t[61] !== m?.xAxis?.labels || t[62] !== m?.yAxis?.gridLines || t[63] !== m?.yAxis?.labels || t[64] !== m?.yAxis?.title || t[65] !== J || t[66] !== Yt || t[67] !== lt || t[68] !== s || t[69] !== Ct) {
1081
+ const M = Pe().domain([B, K]).range([xt, 0]).nice(), f = ke().domain(vt).range([0, F ? Math.max(k, F * vt.length) : pt ? Math.min(k, pt * vt.length) : k]).paddingInner(R), g = M.ticks(a);
1082
+ Dt = _t.svg, mt = _, ht = `${Ct}px`, q = `${Ft}px`, Ot = `0 0 ${Ct} ${Ft}`, Mt = "ltr", S = `translate(${y.left},${y.top})`;
1083
+ let Nt;
1084
+ t[84] !== B || t[85] !== E || t[86] !== at || t[87] !== A || t[88] !== Lt || t[89] !== J ? (Nt = Lt ? be(B < 0 ? 0 : B, E, at, A, J) : void 0, t[84] = B, t[85] = E, t[86] = at, t[87] = A, t[88] = Lt, t[89] = J, t[90] = Nt) : Nt = t[90];
1085
+ const qt = d?.xAxis?.axis, Qt = d?.yAxis?.labels;
1086
+ let P;
1087
+ t[91] !== qt || t[92] !== Qt ? (P = {
1088
+ axis: qt,
1089
+ label: Qt
1090
+ }, t[91] = qt, t[92] = Qt, t[93] = P) : P = t[93];
1091
+ const N = m?.xAxis?.axis, z = m?.yAxis?.labels;
1092
+ let j;
1093
+ t[94] !== N || t[95] !== z ? (j = {
1094
+ axis: N,
1095
+ label: z
1096
+ }, t[94] = N, t[95] = z, t[96] = j) : j = t[96], I = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: Et, y1: M(B < 0 ? 0 : B), y2: M(B < 0 ? 0 : B), x1: 0 - Pt, x2: k + y.right, label: Nt, labelPos: {
1094
1097
  x: 0 - Pt,
1095
1098
  dx: 0,
1096
- dy: Q < 0 ? "1em" : -5,
1097
- y: A(E < 0 ? 0 : E)
1098
- }, classNames: R, styles: a }), zt = Jt ? /* @__PURE__ */ i.jsx(Je, { values: x.filter(fl), y: x.filter(hl).map((C) => A(C)), x1: 0 - Pt, x2: $ + z.right, styles: {
1099
- gridLines: u?.yAxis?.gridLines,
1100
- labels: u?.yAxis?.labels
1099
+ dy: K < 0 ? "1em" : -5,
1100
+ y: M(B < 0 ? 0 : B)
1101
+ }, classNames: P, styles: j }), It = Lt ? /* @__PURE__ */ i.jsx(Qe, { values: g.filter(gs), y: g.filter(ps).map((o) => M(o)), x1: 0 - Pt, x2: k + y.right, styles: {
1102
+ gridLines: m?.yAxis?.gridLines,
1103
+ labels: m?.yAxis?.labels
1101
1104
  }, classNames: {
1102
- gridLines: c?.yAxis?.gridLines,
1103
- labels: c?.yAxis?.labels
1104
- }, suffix: K, prefix: y, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: V }) : null;
1105
- const $t = 0 - Pt - 15, k = Ht / 2, Bt = u?.yAxis?.title, qt = c?.yAxis?.title;
1106
- t[95] !== r || t[96] !== $t || t[97] !== k || t[98] !== Bt || t[99] !== qt ? (yt = /* @__PURE__ */ i.jsx(je, { x: $t, y: k, style: Bt, className: qt, text: r, rotate90: !0 }), t[95] = r, t[96] = $t, t[97] = k, t[98] = Bt, t[99] = qt, t[100] = yt) : yt = t[100], t[101] !== ct ? (ot = ct.filter(xl).map(ml), t[101] = ct, t[102] = ot) : ot = t[102], jt = Fe, J = gt.map((C, fe) => le(h(C.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: o ? "whileInView" : "initial", variants: {
1105
+ gridLines: d?.yAxis?.gridLines,
1106
+ labels: d?.yAxis?.labels
1107
+ }, suffix: J, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: at }) : null;
1108
+ const h = 0 - Pt - 15, w = xt / 2, n = m?.yAxis?.title, H = d?.yAxis?.title;
1109
+ t[97] !== c || t[98] !== h || t[99] !== w || t[100] !== n || t[101] !== H ? (wt = /* @__PURE__ */ i.jsx(Se, { x: h, y: w, style: n, className: H, text: c, rotate90: !0 }), t[97] = c, t[98] = h, t[99] = w, t[100] = n, t[101] = H, t[102] = wt) : wt = t[102], t[103] !== D ? (ct = D.filter(fs).map(hs), t[103] = D, t[104] = ct) : ct = t[104], Bt = He, U = yt.map((o, ie) => ee(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1107
1110
  initial: {
1108
- opacity: w ? C.color && P[Y.indexOf(C.color)] === w ? 1 : f : T.length !== 0 ? T.indexOf(C.label) !== -1 ? 0.85 : f : 0.85
1111
+ opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85
1109
1112
  },
1110
1113
  whileInView: {
1111
- opacity: w ? C.color && P[Y.indexOf(C.color)] === w ? 1 : f : T.length !== 0 ? T.indexOf(C.label) !== -1 ? 0.85 : f : 0.85,
1114
+ opacity: C ? o.color && W[Y.indexOf(o.color)] === C ? 1 : p : T.length !== 0 ? T.indexOf(o.label) !== -1 ? 0.85 : p : 0.85,
1112
1115
  transition: {
1113
- duration: d.duration
1116
+ duration: x.duration
1114
1117
  }
1115
1118
  }
1116
1119
  }, exit: {
1117
1120
  opacity: 0,
1118
1121
  transition: {
1119
- duration: d.duration
1122
+ duration: x.duration
1120
1123
  }
1121
- }, onMouseEnter: (de) => {
1122
- N(C), G(de.clientY), Nt(de.clientX), kt?.(C);
1124
+ }, onMouseEnter: (le) => {
1125
+ Gt(o), st(le.clientY), Wt(le.clientX), zt?.(o);
1123
1126
  }, onClick: () => {
1124
- (rt || lt) && (Le(Ct, C) && _ ? (It(void 0), rt?.(void 0)) : (It(C), rt?.(C)));
1125
- }, onMouseMove: (de) => {
1126
- N(C), G(de.clientY), Nt(de.clientX);
1127
+ (dt || it) && (Ne(ot, o) && Z ? (Rt(void 0), dt?.(void 0)) : (Rt(o), dt?.(o)));
1128
+ }, onMouseMove: (le) => {
1129
+ Gt(o), st(le.clientY), Wt(le.clientX);
1127
1130
  }, onMouseLeave: () => {
1128
- N(void 0), Nt(void 0), G(void 0), kt?.(void 0);
1131
+ Gt(void 0), Wt(void 0), st(void 0), zt?.(void 0);
1129
1132
  }, children: [
1130
- Ft && /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), variants: {
1133
+ Yt && /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), variants: {
1131
1134
  initial: {
1132
- height: Ht,
1135
+ height: xt,
1133
1136
  y: 0,
1134
- x: h(`${C.id}`),
1135
- fill: Ft
1137
+ x: f(`${o.id}`),
1138
+ fill: Yt
1136
1139
  },
1137
1140
  whileInView: {
1138
- height: Ht,
1141
+ height: xt,
1139
1142
  y: 0,
1140
- x: h(`${C.id}`),
1141
- fill: Ft
1143
+ x: f(`${o.id}`),
1144
+ fill: Yt
1142
1145
  }
1143
- }, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
1146
+ }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1144
1147
  opacity: 0,
1145
1148
  transition: {
1146
- duration: d.duration
1149
+ duration: x.duration
1147
1150
  }
1148
1151
  } }),
1149
- C.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), initial: "initial", animate: o ? "whileInView" : "initial", variants: {
1152
+ o.size ? /* @__PURE__ */ i.jsx(_t.rect, { width: f.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1150
1153
  initial: {
1151
1154
  height: 0,
1152
- x: h(`${C.id}`),
1153
- y: A(0),
1154
- fill: Lt.filter(ul).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray
1155
+ x: f(`${o.id}`),
1156
+ y: M(0),
1157
+ fill: Tt.filter(ms).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray
1155
1158
  },
1156
1159
  whileInView: {
1157
- height: C.size ? Math.abs(A(C.size) - A(0)) : 0,
1158
- y: C.size && C.size > 0 ? A(C.size) : A(0),
1159
- x: h(`${C.id}`),
1160
- fill: Lt.filter(dl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray,
1160
+ height: o.size ? Math.abs(M(o.size) - M(0)) : 0,
1161
+ y: o.size && o.size > 0 ? M(o.size) : M(0),
1162
+ x: f(`${o.id}`),
1163
+ fill: Tt.filter(xs).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray,
1161
1164
  transition: {
1162
- duration: d.duration
1165
+ duration: x.duration
1163
1166
  }
1164
1167
  }
1165
1168
  }, exit: {
1166
1169
  height: 0,
1167
- y: A(0),
1170
+ y: M(0),
1168
1171
  transition: {
1169
- duration: d.duration
1172
+ duration: x.duration
1170
1173
  }
1171
1174
  } }) : null,
1172
- ht ? /* @__PURE__ */ i.jsx(Ke, { value: `${C.label}`.length < at ? `${C.label}` : `${`${C.label}`.substring(0, at)}...`, y: (C.size || 0) < 0 ? 0 : A(0) + 5, x: h(`${C.id}`), width: h.bandwidth(), height: (C.size || 0) < 0 ? A(0) - 5 : z.bottom, style: u?.xAxis?.labels, className: c?.xAxis?.labels, alignment: (C.size || 0) < 0 ? "bottom" : "top", animate: d, isInView: o }) : null,
1173
- it ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1175
+ ft ? /* @__PURE__ */ i.jsx(Ze, { value: `${o.label}`.length < lt ? `${o.label}` : `${`${o.label}`.substring(0, lt)}...`, y: (o.size || 0) < 0 ? 0 : M(0) + 5, x: f(`${o.id}`), width: f.bandwidth(), height: (o.size || 0) < 0 ? M(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (o.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1176
+ et ? /* @__PURE__ */ i.jsx(_t.text, { style: {
1174
1177
  textAnchor: "middle",
1175
- ...u?.graphObjectValues || {}
1176
- }, className: $e("graph-value text-sm", !l && P.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", c?.graphObjectValues), dy: C.size ? C.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1178
+ ...m?.graphObjectValues || {}
1179
+ }, className: Me("graph-value text-sm", !s && W.length > 1 ? "fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: o.size ? o.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
1177
1180
  initial: {
1178
- x: h(`${C.id}`) + h.bandwidth() / 2,
1179
- y: A(0),
1181
+ x: f(`${o.id}`) + f.bandwidth() / 2,
1182
+ y: M(0),
1180
1183
  opacity: 0,
1181
- fill: l || (Lt.filter(cl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray)
1184
+ fill: s || (Tt.filter(us).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray)
1182
1185
  },
1183
1186
  whileInView: {
1184
- x: h(`${C.id}`) + h.bandwidth() / 2,
1185
- y: A(C.size || 0),
1186
- fill: l || (Lt.filter(rl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray),
1187
+ x: f(`${o.id}`) + f.bandwidth() / 2,
1188
+ y: M(o.size || 0),
1189
+ fill: s || (Tt.filter(ds).length === 0 ? W[0] : o.color ? W[Y.indexOf(o.color)] : pe.gray),
1187
1190
  opacity: 1,
1188
1191
  transition: {
1189
- duration: d.duration
1192
+ duration: x.duration
1190
1193
  }
1191
1194
  }
1192
- }, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
1195
+ }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1193
1196
  opacity: 0,
1194
1197
  transition: {
1195
- duration: d.duration
1198
+ duration: x.duration
1196
1199
  }
1197
- }, children: be(C.size, tt, V, y, K) }) : null
1198
- ] }, C.label)), et = Gt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Gt.map((C, fe) => /* @__PURE__ */ i.jsx(Ue, { text: C.text, color: C.color, y: A(C.value), x1: 0 - Pt, x2: $ + z.right, classNames: C.classNames, styles: C.styles, animate: d, isInView: o }, fe)) }) : null, t[14] = d, t[15] = r, t[16] = P, t[17] = Wt, t[18] = st, t[19] = c?.graphObjectValues, t[20] = c?.xAxis?.axis, t[21] = c?.xAxis?.labels, t[22] = c?.yAxis?.gridLines, t[23] = c?.yAxis?.labels, t[24] = c?.yAxis?.title, t[25] = Y, t[26] = ct, t[27] = Lt, t[28] = gt, t[29] = lt, t[30] = f, t[31] = Ht, t[32] = $, t[33] = Tt, t[34] = T, t[35] = o, t[36] = Pt, t[37] = z.bottom, t[38] = z.left, t[39] = z.right, t[40] = z.top, t[41] = ft, t[42] = Q, t[43] = B, t[44] = E, t[45] = Ct, t[46] = tt, t[47] = n, t[48] = rt, t[49] = kt, t[50] = V, t[51] = y, t[52] = Gt, t[53] = _, t[54] = w, t[55] = ht, t[56] = Jt, t[57] = it, t[58] = u?.graphObjectValues, t[59] = u?.xAxis?.axis, t[60] = u?.xAxis?.labels, t[61] = u?.yAxis?.gridLines, t[62] = u?.yAxis?.labels, t[63] = u?.yAxis?.title, t[64] = K, t[65] = Ft, t[66] = at, t[67] = l, t[68] = Ot, t[69] = jt, t[70] = Vt, t[71] = et, t[72] = S, t[73] = j, t[74] = zt, t[75] = yt, t[76] = ot, t[77] = ut, t[78] = mt, t[79] = U, t[80] = vt, t[81] = wt, t[82] = J;
1200
+ }, children: be(o.size, E, at, A, J) }) : null
1201
+ ] }, o.label)), tt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, ie) => /* @__PURE__ */ i.jsx(Ke, { text: o.text, color: o.color, y: M(o.value), x1: 0 - Pt, x2: k + y.right, classNames: o.classNames, styles: o.styles, animate: x, isInView: r }, ie)) }) : null, t[14] = x, t[15] = c, t[16] = W, t[17] = vt, t[18] = R, t[19] = d?.graphObjectValues, t[20] = d?.xAxis?.axis, t[21] = d?.xAxis?.labels, t[22] = d?.yAxis?.gridLines, t[23] = d?.yAxis?.labels, t[24] = d?.yAxis?.title, t[25] = Y, t[26] = D, t[27] = Tt, t[28] = yt, t[29] = it, t[30] = p, t[31] = xt, t[32] = k, t[33] = Ft, t[34] = Et, t[35] = T, t[36] = r, t[37] = Pt, t[38] = y.bottom, t[39] = y.left, t[40] = y.right, t[41] = y.top, t[42] = pt, t[43] = K, t[44] = F, t[45] = B, t[46] = ot, t[47] = E, t[48] = a, t[49] = dt, t[50] = zt, t[51] = at, t[52] = A, t[53] = Xt, t[54] = Z, t[55] = C, t[56] = ft, t[57] = Lt, t[58] = et, t[59] = m?.graphObjectValues, t[60] = m?.xAxis?.axis, t[61] = m?.xAxis?.labels, t[62] = m?.yAxis?.gridLines, t[63] = m?.yAxis?.labels, t[64] = m?.yAxis?.title, t[65] = J, t[66] = Yt, t[67] = lt, t[68] = s, t[69] = Ct, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q, t[81] = Ot, t[82] = Mt, t[83] = U;
1199
1202
  } else
1200
- jt = t[69], Vt = t[70], et = t[71], S = t[72], j = t[73], zt = t[74], yt = t[75], ot = t[76], ut = t[77], mt = t[78], U = t[79], vt = t[80], wt = t[81], J = t[82];
1201
- let At;
1202
- t[103] !== jt || t[104] !== et || t[105] !== J ? (At = /* @__PURE__ */ i.jsxs(jt, { children: [
1203
- J,
1204
- et
1205
- ] }), t[103] = jt, t[104] = et, t[105] = J, t[106] = At) : At = t[106];
1206
- let g;
1207
- t[107] !== ct ? (g = ct.filter(ol).map(nl), t[107] = ct, t[108] = g) : g = t[108];
1208
- let b;
1209
- t[109] !== S || t[110] !== j || t[111] !== zt || t[112] !== yt || t[113] !== ot || t[114] !== At || t[115] !== g ? (b = /* @__PURE__ */ i.jsxs("g", { transform: S, children: [
1210
- j,
1211
- zt,
1212
- yt,
1213
- ot,
1214
- At,
1215
- g
1216
- ] }), t[109] = S, t[110] = j, t[111] = zt, t[112] = yt, t[113] = ot, t[114] = At, t[115] = g, t[116] = b) : b = t[116];
1203
+ Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80], Ot = t[81], Mt = t[82], U = t[83];
1204
+ let kt;
1205
+ t[105] !== Bt || t[106] !== tt || t[107] !== U ? (kt = /* @__PURE__ */ i.jsxs(Bt, { children: [
1206
+ U,
1207
+ tt
1208
+ ] }), t[105] = Bt, t[106] = tt, t[107] = U, t[108] = kt) : kt = t[108];
1217
1209
  let v;
1218
- t[117] !== Vt || t[118] !== ut || t[119] !== mt || t[120] !== U || t[121] !== vt || t[122] !== wt || t[123] !== b ? (v = /* @__PURE__ */ i.jsx(Vt, { ref: ut, width: mt, height: U, viewBox: vt, direction: wt, children: b }), t[117] = Vt, t[118] = ut, t[119] = mt, t[120] = U, t[121] = vt, t[122] = wt, t[123] = b, t[124] = v) : v = t[124];
1219
- let p;
1220
- t[125] !== c?.tooltip || t[126] !== nt || t[127] !== H || t[128] !== L || t[129] !== u?.tooltip || t[130] !== Mt ? (p = L && Mt && nt && H ? /* @__PURE__ */ i.jsx(Ie, { data: L, body: Mt, xPos: nt, yPos: H, backgroundStyle: u?.tooltip, className: c?.tooltip }) : null, t[125] = c?.tooltip, t[126] = nt, t[127] = H, t[128] = L, t[129] = u?.tooltip, t[130] = Mt, t[131] = p) : p = t[131];
1221
- let xt;
1222
- t[132] !== c?.modal || t[133] !== lt || t[134] !== Ct ? (xt = lt && Ct !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: lt, data: Ct, setData: It, className: c?.modal }) : null, t[132] = c?.modal, t[133] = lt, t[134] = Ct, t[135] = xt) : xt = t[135];
1223
- let Xt;
1224
- return t[136] !== v || t[137] !== p || t[138] !== xt ? (Xt = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1225
- v,
1226
- p,
1227
- xt
1228
- ] }), t[136] = v, t[137] = p, t[138] = xt, t[139] = Xt) : Xt = t[139], Xt;
1210
+ t[109] !== D ? (v = D.filter(cs).map(rs), t[109] = D, t[110] = v) : v = t[110];
1211
+ let $;
1212
+ t[111] !== S || t[112] !== I || t[113] !== It || t[114] !== wt || t[115] !== ct || t[116] !== kt || t[117] !== v ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: S, children: [
1213
+ I,
1214
+ It,
1215
+ wt,
1216
+ ct,
1217
+ kt,
1218
+ v
1219
+ ] }), t[111] = S, t[112] = I, t[113] = It, t[114] = wt, t[115] = ct, t[116] = kt, t[117] = v, t[118] = $) : $ = t[118];
1220
+ let O;
1221
+ t[119] !== Dt || t[120] !== mt || t[121] !== ht || t[122] !== q || t[123] !== Ot || t[124] !== Mt || t[125] !== $ ? (O = /* @__PURE__ */ i.jsx(Dt, { ref: mt, width: ht, height: q, viewBox: Ot, direction: Mt, children: $ }), t[119] = Dt, t[120] = mt, t[121] = ht, t[122] = q, t[123] = Ot, t[124] = Mt, t[125] = $, t[126] = O) : O = t[126];
1222
+ let b;
1223
+ t[127] !== d?.tooltip || t[128] !== rt || t[129] !== G || t[130] !== L || t[131] !== m?.tooltip || t[132] !== Vt ? (b = L && Vt && rt && G ? /* @__PURE__ */ i.jsx(je, { data: L, body: Vt, xPos: rt, yPos: G, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[127] = d?.tooltip, t[128] = rt, t[129] = G, t[130] = L, t[131] = m?.tooltip, t[132] = Vt, t[133] = b) : b = t[133];
1224
+ let At;
1225
+ t[134] !== d?.modal || t[135] !== it || t[136] !== ot ? (At = it && ot !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: it, data: ot, setData: Rt, className: d?.modal }) : null, t[134] = d?.modal, t[135] = it, t[136] = ot, t[137] = At) : At = t[137];
1226
+ let $t;
1227
+ return t[138] !== O || t[139] !== b || t[140] !== At ? ($t = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1228
+ O,
1229
+ b,
1230
+ At
1231
+ ] }), t[138] = O, t[139] = b, t[140] = At, t[141] = $t) : $t = t[141], $t;
1229
1232
  }
1230
- function nl(e) {
1233
+ function rs(e) {
1231
1234
  return e.layer;
1232
1235
  }
1233
- function ol(e) {
1236
+ function cs(e) {
1234
1237
  return e.position === "after";
1235
1238
  }
1236
- function rl(e) {
1239
+ function ds(e) {
1237
1240
  return e.color;
1238
1241
  }
1239
- function cl(e) {
1242
+ function us(e) {
1240
1243
  return e.color;
1241
1244
  }
1242
- function dl(e) {
1245
+ function xs(e) {
1243
1246
  return e.color;
1244
1247
  }
1245
- function ul(e) {
1248
+ function ms(e) {
1246
1249
  return e.color;
1247
1250
  }
1248
- function ml(e) {
1251
+ function hs(e) {
1249
1252
  return e.layer;
1250
1253
  }
1251
- function xl(e) {
1254
+ function fs(e) {
1252
1255
  return e.position === "before";
1253
1256
  }
1254
- function hl(e) {
1257
+ function ps(e) {
1255
1258
  return e !== 0;
1256
1259
  }
1257
- function fl(e) {
1260
+ function gs(e) {
1258
1261
  return e !== 0;
1259
1262
  }
1260
- function pl(e) {
1263
+ function ys(e) {
1261
1264
  return `${e.id}`;
1262
1265
  }
1263
- function gl(e) {
1266
+ function bs(e) {
1264
1267
  return {
1265
1268
  id: e,
1266
1269
  label: e,
@@ -1268,1170 +1271,1176 @@ function gl(e) {
1268
1271
  size: null
1269
1272
  };
1270
1273
  }
1271
- function yl(e) {
1272
- const t = we.c(133), {
1273
- data: s,
1274
+ function vs(e) {
1275
+ const t = we.c(134), {
1276
+ data: l,
1274
1277
  graphTitle: X,
1275
1278
  colors: Ut,
1276
- suffix: Kt,
1277
- sources: Lt,
1278
- prefix: Ot,
1279
- graphDescription: Tt,
1280
- barPadding: P,
1281
- showValues: K,
1282
- showTicks: y,
1283
- truncateBy: st,
1284
- height: ht,
1285
- width: it,
1286
- footNote: Jt,
1279
+ suffix: Jt,
1280
+ sources: Tt,
1281
+ prefix: Ct,
1282
+ graphDescription: Ft,
1283
+ barPadding: W,
1284
+ showValues: J,
1285
+ showTicks: A,
1286
+ truncateBy: R,
1287
+ height: ft,
1288
+ width: et,
1289
+ footNote: Lt,
1287
1290
  colorDomain: Y,
1288
- colorLegendTitle: at,
1289
- highlightedDataPoints: Mt,
1290
- padding: kt,
1291
- backgroundColor: Gt,
1292
- topMargin: w,
1293
- bottomMargin: Q,
1294
- leftMargin: E,
1291
+ colorLegendTitle: lt,
1292
+ highlightedDataPoints: Vt,
1293
+ padding: zt,
1294
+ backgroundColor: Xt,
1295
+ topMargin: C,
1296
+ bottomMargin: K,
1297
+ leftMargin: B,
1295
1298
  rightMargin: T,
1296
- showLabels: rt,
1297
- relativeHeight: Z,
1298
- tooltip: ft,
1299
- onSeriesMouseOver: B,
1300
- refValues: _,
1301
- showColorScale: lt,
1302
- graphID: r,
1303
- maxValue: l,
1304
- minValue: n,
1305
- onSeriesMouseClick: u,
1306
- graphDownload: c,
1307
- dataDownload: f,
1308
- sortData: d,
1309
- labelOrder: V,
1310
- language: ct,
1311
- showNAColor: tt,
1312
- minHeight: Ft,
1313
- theme: Pt,
1314
- maxBarThickness: Et,
1315
- maxNumberOfBars: q,
1316
- minBarThickness: pt,
1317
- ariaLabel: Rt,
1318
- resetSelectionOnDoubleClick: m,
1319
- detailsOnClick: o,
1320
- barAxisTitle: I,
1321
- noOfTicks: O,
1322
- valueColor: z,
1323
- styles: L,
1324
- classNames: N,
1325
- filterNA: Ct,
1326
- animate: It,
1327
- dimmedOpacity: nt,
1328
- precision: Nt,
1329
- customLayers: H,
1299
+ showLabels: dt,
1300
+ relativeHeight: Q,
1301
+ tooltip: pt,
1302
+ onSeriesMouseOver: F,
1303
+ refValues: Z,
1304
+ showColorScale: it,
1305
+ graphID: c,
1306
+ maxValue: s,
1307
+ minValue: a,
1308
+ onSeriesMouseClick: m,
1309
+ graphDownload: d,
1310
+ dataDownload: p,
1311
+ sortData: x,
1312
+ labelOrder: at,
1313
+ language: D,
1314
+ showNAColor: E,
1315
+ minHeight: Yt,
1316
+ theme: Et,
1317
+ maxBarThickness: Pt,
1318
+ maxNumberOfBars: Ht,
1319
+ minBarThickness: nt,
1320
+ ariaLabel: ut,
1321
+ resetSelectionOnDoubleClick: _,
1322
+ detailsOnClick: u,
1323
+ barAxisTitle: r,
1324
+ noOfTicks: V,
1325
+ valueColor: gt,
1326
+ styles: y,
1327
+ classNames: L,
1328
+ filterNA: Gt,
1329
+ animate: ot,
1330
+ dimmedOpacity: Rt,
1331
+ precision: rt,
1332
+ customLayers: Wt,
1330
1333
  timeline: G,
1331
- naLabel: $,
1332
- orientation: Ht,
1333
- trackColor: bt
1334
- } = e, gt = Kt === void 0 ? "" : Kt, dt = Ot === void 0 ? "" : Ot, Wt = P === void 0 ? 0.25 : P, jt = K === void 0 ? !0 : K, Vt = y === void 0 ? !0 : y, et = st === void 0 ? 999 : st;
1334
+ naLabel: st,
1335
+ orientation: k,
1336
+ trackColor: xt,
1337
+ hideAxisLine: St
1338
+ } = e, yt = Jt === void 0 ? "" : Jt, bt = Ct === void 0 ? "" : Ct, vt = W === void 0 ? 0.25 : W, Bt = J === void 0 ? !0 : J, Dt = A === void 0 ? !0 : A, tt = R === void 0 ? 999 : R;
1335
1339
  let S;
1336
- t[0] !== Mt ? (S = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = S) : S = t[1];
1337
- const j = S, zt = Gt === void 0 ? !1 : Gt, yt = rt === void 0 ? !0 : rt, ot = lt === void 0 ? !0 : lt, ut = c === void 0 ? !1 : c, mt = f === void 0 ? !1 : f, U = ct === void 0 ? "en" : ct, vt = tt === void 0 ? !0 : tt, wt = Ft === void 0 ? 0 : Ft, J = Pt === void 0 ? "light" : Pt, At = m === void 0 ? !0 : m, g = O === void 0 ? 5 : O, b = Ct === void 0 ? !0 : Ct, v = It === void 0 ? !1 : It, p = nt === void 0 ? 0.3 : nt, xt = Nt === void 0 ? 2 : Nt;
1338
- let Xt;
1339
- t[2] !== H ? (Xt = H === void 0 ? [] : H, t[2] = H, t[3] = Xt) : Xt = t[3];
1340
- const A = Xt;
1341
- let h;
1342
- t[4] !== G ? (h = G === void 0 ? {
1340
+ t[0] !== Vt ? (S = Vt === void 0 ? [] : Vt, t[0] = Vt, t[1] = S) : S = t[1];
1341
+ const I = S, It = Xt === void 0 ? !1 : Xt, wt = dt === void 0 ? !0 : dt, ct = it === void 0 ? !0 : it, mt = d === void 0 ? !1 : d, ht = p === void 0 ? !1 : p, q = D === void 0 ? "en" : D, Ot = E === void 0 ? !0 : E, Mt = Yt === void 0 ? 0 : Yt, U = Et === void 0 ? "light" : Et, kt = _ === void 0 ? !0 : _, v = V === void 0 ? 5 : V, $ = Gt === void 0 ? !0 : Gt, O = ot === void 0 ? !1 : ot, b = Rt === void 0 ? 0.3 : Rt, At = rt === void 0 ? 2 : rt;
1342
+ let $t;
1343
+ t[2] !== Wt ? ($t = Wt === void 0 ? [] : Wt, t[2] = Wt, t[3] = $t) : $t = t[3];
1344
+ const M = $t;
1345
+ let f;
1346
+ t[4] !== G ? (f = G === void 0 ? {
1343
1347
  enabled: !1,
1344
1348
  autoplay: !1,
1345
1349
  showOnlyActiveDate: !0
1346
- } : G, t[4] = G, t[5] = h) : h = t[5];
1347
- const x = h, Yt = $ === void 0 ? "NA" : $, Zt = Ht === void 0 ? "vertical" : Ht, F = Zt === "horizontal" ? Ri : al, [M, _t] = te(0), [W, R] = te(0), [D, St] = te(x.autoplay);
1348
- let a;
1349
- if (t[6] !== s || t[7] !== x.dateFormat) {
1350
- let ie;
1351
- t[9] !== x.dateFormat ? (ie = (Ae) => Ee(`${Ae.date}`, x.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = x.dateFormat, t[10] = ie) : ie = t[10], a = [...new Set(s.filter(Sl).map(ie))], a.sort(Tl), t[6] = s, t[7] = x.dateFormat, t[8] = a;
1350
+ } : G, t[4] = G, t[5] = f) : f = t[5];
1351
+ const g = f, Nt = st === void 0 ? "NA" : st, qt = k === void 0 ? "vertical" : k, Qt = St === void 0 ? !1 : St, P = qt === "horizontal" ? Ui : os, [N, z] = Zt(0), [j, h] = Zt(0), [w, n] = Zt(g.autoplay);
1352
+ let H;
1353
+ if (t[6] !== l || t[7] !== g.dateFormat) {
1354
+ let te;
1355
+ t[9] !== g.dateFormat ? (te = ($e) => Re(`${$e.date}`, g.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = g.dateFormat, t[10] = te) : te = t[10], H = [...new Set(l.filter(Fs).map(te))], H.sort(Bs), t[6] = l, t[7] = g.dateFormat, t[8] = H;
1352
1356
  } else
1353
- a = t[8];
1354
- const $t = a, [k, Bt] = te(x.autoplay ? 0 : $t.length - 1), [qt, C] = te(void 0), fe = ve(null), de = ve(null);
1355
- let ye, pe;
1357
+ H = t[8];
1358
+ const o = H, [ie, le] = Zt(g.autoplay ? 0 : o.length - 1), [ge, Oe] = Zt(void 0), fe = ve(null), Ae = ve(null);
1359
+ let ye, he;
1356
1360
  t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = () => {
1357
- const ie = new ResizeObserver((Ae) => {
1358
- _t(Ae[0].target.clientWidth || 620), R(Ae[0].target.clientHeight || 480);
1361
+ const te = new ResizeObserver(($e) => {
1362
+ z($e[0].target.clientWidth || 620), h($e[0].target.clientHeight || 480);
1359
1363
  });
1360
- return fe.current && ie.observe(fe.current), () => ie.disconnect();
1361
- }, pe = [], t[11] = ye, t[12] = pe) : (ye = t[11], pe = t[12]), De(ye, pe);
1364
+ return fe.current && te.observe(fe.current), () => te.disconnect();
1365
+ }, he = [], t[11] = ye, t[12] = he) : (ye = t[11], he = t[12]), Ie(ye, he);
1362
1366
  let ae, ne;
1363
- t[13] !== D || t[14] !== x.speed || t[15] !== $t ? (ae = () => {
1364
- const ie = setInterval(() => {
1365
- Bt((Ae) => Ae < $t.length - 1 ? Ae + 1 : 0);
1366
- }, (x.speed || 2) * 1e3);
1367
- return D || clearInterval(ie), () => clearInterval(ie);
1368
- }, ne = [$t, D, x.speed], t[13] = D, t[14] = x.speed, t[15] = $t, t[16] = ae, t[17] = ne) : (ae = t[16], ne = t[17]), De(ae, ne);
1369
- const ue = x.dateFormat || "yyyy";
1367
+ t[13] !== w || t[14] !== g.speed || t[15] !== o ? (ae = () => {
1368
+ const te = setInterval(() => {
1369
+ le(($e) => $e < o.length - 1 ? $e + 1 : 0);
1370
+ }, (g.speed || 2) * 1e3);
1371
+ return w || clearInterval(te), () => clearInterval(te);
1372
+ }, ne = [o, w, g.speed], t[13] = w, t[14] = g.speed, t[15] = o, t[16] = ae, t[17] = ne) : (ae = t[16], ne = t[17]), Ie(ae, ne);
1373
+ const de = g.dateFormat || "yyyy";
1370
1374
  let oe;
1371
- t[18] !== k || t[19] !== ue || t[20] !== x.showOnlyActiveDate || t[21] !== $t ? (oe = Xe($t, k, x.showOnlyActiveDate, ue), t[18] = k, t[19] = ue, t[20] = x.showOnlyActiveDate, t[21] = $t, t[22] = oe) : oe = t[22];
1372
- const re = oe, me = N?.graphContainer, xe = L?.graphContainer;
1375
+ t[18] !== ie || t[19] !== de || t[20] !== g.showOnlyActiveDate || t[21] !== o ? (oe = Ee(o, ie, g.showOnlyActiveDate, de), t[18] = ie, t[19] = de, t[20] = g.showOnlyActiveDate, t[21] = o, t[22] = oe) : oe = t[22];
1376
+ const re = oe, ue = L?.graphContainer, xe = y?.graphContainer;
1373
1377
  let ce;
1374
- t[23] !== N?.description || t[24] !== N?.title || t[25] !== s || t[26] !== mt || t[27] !== Tt || t[28] !== ut || t[29] !== X || t[30] !== L?.description || t[31] !== L?.title || t[32] !== it ? (ce = X || Tt || ut || mt ? /* @__PURE__ */ i.jsx(Qe, { styles: {
1378
+ t[23] !== L?.description || t[24] !== L?.title || t[25] !== l || t[26] !== ht || t[27] !== Ft || t[28] !== mt || t[29] !== X || t[30] !== y?.description || t[31] !== y?.title || t[32] !== et ? (ce = X || Ft || mt || ht ? /* @__PURE__ */ i.jsx(_e, { styles: {
1379
+ title: y?.title,
1380
+ description: y?.description
1381
+ }, classNames: {
1375
1382
  title: L?.title,
1376
1383
  description: L?.description
1377
- }, classNames: {
1378
- title: N?.title,
1379
- description: N?.description
1380
- }, graphTitle: X, graphDescription: Tt, width: it, graphDownload: ut ? de : void 0, dataDownload: mt ? s.map(jl).filter(Nl).length > 0 ? s.map(Il).filter(Ll) : s.filter(Dl) : null }) : null, t[23] = N?.description, t[24] = N?.title, t[25] = s, t[26] = mt, t[27] = Tt, t[28] = ut, t[29] = X, t[30] = L?.description, t[31] = L?.title, t[32] = it, t[33] = ce) : ce = t[33];
1381
- let Qt;
1382
- t[34] !== k || t[35] !== re || t[36] !== D || t[37] !== x.enabled || t[38] !== $t ? (Qt = x.enabled && $t.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1384
+ }, graphTitle: X, graphDescription: Ft, width: et, graphDownload: mt ? Ae : void 0, dataDownload: ht ? l.map(Ss).filter(Ts).length > 0 ? l.map(js).filter(Ns) : l.filter(Is) : null }) : null, t[23] = L?.description, t[24] = L?.title, t[25] = l, t[26] = ht, t[27] = Ft, t[28] = mt, t[29] = X, t[30] = y?.description, t[31] = y?.title, t[32] = et, t[33] = ce) : ce = t[33];
1385
+ let Kt;
1386
+ t[34] !== ie || t[35] !== re || t[36] !== w || t[37] !== g.enabled || t[38] !== o ? (Kt = g.enabled && o.length > 0 && re ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
1383
1387
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1384
- St(!D);
1385
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": D ? "Click to pause animation" : "Click to play animation", children: D ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
1386
- /* @__PURE__ */ i.jsx(Ye, { min: $t[0], max: $t[$t.length - 1], marks: re, step: null, defaultValue: $t[$t.length - 1], value: $t[k], onChangeComplete: (ie) => {
1387
- Bt($t.indexOf(ie));
1388
- }, onChange: (ie) => {
1389
- Bt($t.indexOf(ie));
1388
+ n(!w);
1389
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": w ? "Click to pause animation" : "Click to play animation", children: w ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
1390
+ /* @__PURE__ */ i.jsx(Ge, { min: o[0], max: o[o.length - 1], marks: re, step: null, defaultValue: o[o.length - 1], value: o[ie], onChangeComplete: (te) => {
1391
+ le(o.indexOf(te));
1392
+ }, onChange: (te) => {
1393
+ le(o.indexOf(te));
1390
1394
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1391
- ] }) : null, t[34] = k, t[35] = re, t[36] = D, t[37] = x.enabled, t[38] = $t, t[39] = Qt) : Qt = t[39];
1392
- let Dt;
1393
- t[40] !== N?.colorLegend || t[41] !== Y || t[42] !== at || t[43] !== Ut || t[44] !== s || t[45] !== ot || t[46] !== vt || t[47] !== J || t[48] !== it ? (Dt = ot && s.filter(zl).length !== 0 && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: it, colorLegendTitle: at, colors: Ut || ge[J].categoricalColors.colors, colorDomain: Y || ni(s, "color", !0), setSelectedColor: C, showNAColor: vt, className: N?.colorLegend }) : null, t[40] = N?.colorLegend, t[41] = Y, t[42] = at, t[43] = Ut, t[44] = s, t[45] = ot, t[46] = vt, t[47] = J, t[48] = it, t[49] = Dt) : Dt = t[49];
1395
+ ] }) : null, t[34] = ie, t[35] = re, t[36] = w, t[37] = g.enabled, t[38] = o, t[39] = Kt) : Kt = t[39];
1396
+ let jt;
1397
+ t[40] !== L?.colorLegend || t[41] !== Y || t[42] !== lt || t[43] !== Ut || t[44] !== l || t[45] !== ct || t[46] !== Ot || t[47] !== U || t[48] !== et ? (jt = ct && l.filter(Ds).length !== 0 && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: et, colorLegendTitle: lt, colors: Ut || pe[U].categoricalColors.colors, colorDomain: Y || ri(l, "color", !0), setSelectedColor: Oe, showNAColor: Ot, className: L?.colorLegend }) : null, t[40] = L?.colorLegend, t[41] = Y, t[42] = lt, t[43] = Ut, t[44] = l, t[45] = ct, t[46] = Ot, t[47] = U, t[48] = et, t[49] = jt) : jt = t[49];
1394
1398
  let se;
1395
- t[50] !== s.length ? (se = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[50] = s.length, t[51] = se) : se = t[51];
1396
- let ke;
1397
- t[52] !== F || t[53] !== v || t[54] !== I || t[55] !== Wt || t[56] !== Q || t[57] !== N || t[58] !== Y || t[59] !== Ut || t[60] !== A || t[61] !== s || t[62] !== o || t[63] !== p || t[64] !== b || t[65] !== j || t[66] !== k || t[67] !== V || t[68] !== U || t[69] !== E || t[70] !== Et || t[71] !== q || t[72] !== l || t[73] !== pt || t[74] !== n || t[75] !== Yt || t[76] !== g || t[77] !== u || t[78] !== B || t[79] !== Zt || t[80] !== xt || t[81] !== dt || t[82] !== _ || t[83] !== At || t[84] !== T || t[85] !== qt || t[86] !== yt || t[87] !== Vt || t[88] !== jt || t[89] !== d || t[90] !== L || t[91] !== gt || t[92] !== W || t[93] !== M || t[94] !== J || t[95] !== x.dateFormat || t[96] !== x.enabled || t[97] !== ft || t[98] !== w || t[99] !== bt || t[100] !== et || t[101] !== $t || t[102] !== z ? (ke = M && W && s.length > 0 ? /* @__PURE__ */ i.jsx(F, { data: d ? Pe(ai(s, x.dateFormat || "yyyy").filter((ie) => x.enabled ? ie.date === Me(new Date($t[k]), x.dateFormat || "yyyy") : ie).filter((ie) => b ? !le(ie.size) : ie), [(ie) => ie.size === void 0 ? d === "asc" ? (Zt === "horizontal" ? 1 : -1) * (1 / 0) : (Zt === "horizontal" ? -1 : 1) * (1 / 0) : ie.size], [d]).filter((ie, Ae) => q ? Ae < q : !0) : ai(s, x.dateFormat || "yyyy").filter((ie) => x.enabled ? ie.date === Me(new Date($t[k]), x.dateFormat || "yyyy") : ie).filter((ie) => b ? !le(ie.size) : ie).filter((ie, Ae) => q ? Ae < q : !0), barColor: s.filter(Vl).length === 0 ? Ut ? [Ut] : [ge.primaryColors["blue-600"]] : Ut || ge[J].categoricalColors.colors, colorDomain: s.filter(Cl).length === 0 ? [] : Y || ni(s, "color", !0), selectedColor: qt, trackColor: bt, width: M, height: W, suffix: gt, prefix: dt, barPadding: Wt, showValues: jt, showTicks: Vt, leftMargin: E, rightMargin: T, topMargin: w, bottomMargin: Q, truncateBy: et, showLabels: yt, tooltip: ft, onSeriesMouseOver: B, refValues: _, maxValue: le(l) ? Math.max(...s.filter(kl).map(Ml)) < 0 ? 0 : Math.max(...s.filter(Ol).map($l)) : l, minValue: le(n) ? Math.min(...s.filter(Al).map(wl)) >= 0 ? 0 : Math.min(...s.filter(vl).map(bl)) : n, highlightedDataPoints: j, onSeriesMouseClick: u, labelOrder: V, rtl: U === "he" || U === "ar", maxBarThickness: Et, minBarThickness: pt, resetSelectionOnDoubleClick: At, detailsOnClick: o, barAxisTitle: I, noOfTicks: g, valueColor: z, classNames: N, styles: L, animate: v === !0 ? {
1399
+ t[50] !== l.length ? (se = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[50] = l.length, t[51] = se) : se = t[51];
1400
+ let Le;
1401
+ t[52] !== P || t[53] !== O || t[54] !== r || t[55] !== vt || t[56] !== K || t[57] !== L || t[58] !== Y || t[59] !== Ut || t[60] !== M || t[61] !== l || t[62] !== u || t[63] !== b || t[64] !== $ || t[65] !== Qt || t[66] !== I || t[67] !== ie || t[68] !== at || t[69] !== q || t[70] !== B || t[71] !== Pt || t[72] !== Ht || t[73] !== s || t[74] !== nt || t[75] !== a || t[76] !== Nt || t[77] !== v || t[78] !== m || t[79] !== F || t[80] !== qt || t[81] !== At || t[82] !== bt || t[83] !== Z || t[84] !== kt || t[85] !== T || t[86] !== ge || t[87] !== wt || t[88] !== Dt || t[89] !== Bt || t[90] !== x || t[91] !== y || t[92] !== yt || t[93] !== j || t[94] !== N || t[95] !== U || t[96] !== g.dateFormat || t[97] !== g.enabled || t[98] !== pt || t[99] !== C || t[100] !== xt || t[101] !== tt || t[102] !== o || t[103] !== gt ? (Le = N && j && l.length > 0 ? /* @__PURE__ */ i.jsx(P, { hideAxisLine: Qt, data: x ? We(oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? te.date === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (qt === "horizontal" ? 1 : -1) * (1 / 0) : (qt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, $e) => Ht ? $e < Ht : !0) : oi(l, g.dateFormat || "yyyy").filter((te) => g.enabled ? te.date === Ce(new Date(o[ie]), g.dateFormat || "yyyy") : te).filter((te) => $ ? !ee(te.size) : te).filter((te, $e) => Ht ? $e < Ht : !0), barColor: l.filter(zs).length === 0 ? Ut ? [Ut] : [pe.primaryColors["blue-600"]] : Ut || pe[U].categoricalColors.colors, colorDomain: l.filter(Vs).length === 0 ? [] : Y || ri(l, "color", !0), selectedColor: ge, trackColor: xt, width: N, height: j, suffix: yt, prefix: bt, barPadding: vt, showValues: Bt, showTicks: Dt, leftMargin: B, rightMargin: T, topMargin: C, bottomMargin: K, truncateBy: tt, showLabels: wt, tooltip: pt, onSeriesMouseOver: F, refValues: Z, maxValue: ee(s) ? Math.max(...l.filter(Ls).map(Cs)) < 0 ? 0 : Math.max(...l.filter(ks).map(Ms)) : s, minValue: ee(a) ? Math.min(...l.filter(Os).map($s)) >= 0 ? 0 : Math.min(...l.filter(As).map(ws)) : a, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: at, rtl: q === "he" || q === "ar", maxBarThickness: Pt, minBarThickness: nt, resetSelectionOnDoubleClick: kt, detailsOnClick: u, barAxisTitle: r, noOfTicks: v, valueColor: gt, classNames: L, styles: y, animate: O === !0 ? {
1398
1402
  duration: 0.5,
1399
1403
  once: !0,
1400
1404
  amount: 0.5
1401
- } : v || {
1405
+ } : O || {
1402
1406
  duration: 0,
1403
1407
  once: !0,
1404
1408
  amount: 0
1405
- }, dimmedOpacity: p, precision: xt, customLayers: A, naLabel: Yt }) : null, t[52] = F, t[53] = v, t[54] = I, t[55] = Wt, t[56] = Q, t[57] = N, t[58] = Y, t[59] = Ut, t[60] = A, t[61] = s, t[62] = o, t[63] = p, t[64] = b, t[65] = j, t[66] = k, t[67] = V, t[68] = U, t[69] = E, t[70] = Et, t[71] = q, t[72] = l, t[73] = pt, t[74] = n, t[75] = Yt, t[76] = g, t[77] = u, t[78] = B, t[79] = Zt, t[80] = xt, t[81] = dt, t[82] = _, t[83] = At, t[84] = T, t[85] = qt, t[86] = yt, t[87] = Vt, t[88] = jt, t[89] = d, t[90] = L, t[91] = gt, t[92] = W, t[93] = M, t[94] = J, t[95] = x.dateFormat, t[96] = x.enabled, t[97] = ft, t[98] = w, t[99] = bt, t[100] = et, t[101] = $t, t[102] = z, t[103] = ke) : ke = t[103];
1406
- let Ce;
1407
- t[104] !== se || t[105] !== ke ? (Ce = /* @__PURE__ */ i.jsxs(li, { ref: fe, children: [
1408
- se,
1409
- ke
1410
- ] }), t[104] = se, t[105] = ke, t[106] = Ce) : Ce = t[106];
1409
+ }, dimmedOpacity: b, precision: At, customLayers: M, naLabel: Nt }) : null, t[52] = P, t[53] = O, t[54] = r, t[55] = vt, t[56] = K, t[57] = L, t[58] = Y, t[59] = Ut, t[60] = M, t[61] = l, t[62] = u, t[63] = b, t[64] = $, t[65] = Qt, t[66] = I, t[67] = ie, t[68] = at, t[69] = q, t[70] = B, t[71] = Pt, t[72] = Ht, t[73] = s, t[74] = nt, t[75] = a, t[76] = Nt, t[77] = v, t[78] = m, t[79] = F, t[80] = qt, t[81] = At, t[82] = bt, t[83] = Z, t[84] = kt, t[85] = T, t[86] = ge, t[87] = wt, t[88] = Dt, t[89] = Bt, t[90] = x, t[91] = y, t[92] = yt, t[93] = j, t[94] = N, t[95] = U, t[96] = g.dateFormat, t[97] = g.enabled, t[98] = pt, t[99] = C, t[100] = xt, t[101] = tt, t[102] = o, t[103] = gt, t[104] = Le) : Le = t[104];
1411
1410
  let Ve;
1412
- t[107] !== N?.footnote || t[108] !== N?.source || t[109] !== Jt || t[110] !== Lt || t[111] !== L?.footnote || t[112] !== L?.source || t[113] !== it ? (Ve = Lt || Jt ? /* @__PURE__ */ i.jsx(Ze, { sources: Lt, footNote: Jt, width: it, styles: {
1411
+ t[105] !== se || t[106] !== Le ? (Ve = /* @__PURE__ */ i.jsxs(ai, { ref: fe, children: [
1412
+ se,
1413
+ Le
1414
+ ] }), t[105] = se, t[106] = Le, t[107] = Ve) : Ve = t[107];
1415
+ let ze;
1416
+ t[108] !== L?.footnote || t[109] !== L?.source || t[110] !== Lt || t[111] !== Tt || t[112] !== y?.footnote || t[113] !== y?.source || t[114] !== et ? (ze = Tt || Lt ? /* @__PURE__ */ i.jsx(ti, { sources: Tt, footNote: Lt, width: et, styles: {
1417
+ footnote: y?.footnote,
1418
+ source: y?.source
1419
+ }, classNames: {
1413
1420
  footnote: L?.footnote,
1414
1421
  source: L?.source
1415
- }, classNames: {
1416
- footnote: N?.footnote,
1417
- source: N?.source
1418
- } }) : null, t[107] = N?.footnote, t[108] = N?.source, t[109] = Jt, t[110] = Lt, t[111] = L?.footnote, t[112] = L?.source, t[113] = it, t[114] = Ve) : Ve = t[114];
1419
- let He;
1420
- return t[115] !== Rt || t[116] !== zt || t[117] !== r || t[118] !== ht || t[119] !== U || t[120] !== wt || t[121] !== kt || t[122] !== Z || t[123] !== me || t[124] !== xe || t[125] !== ce || t[126] !== Qt || t[127] !== Dt || t[128] !== Ce || t[129] !== Ve || t[130] !== J || t[131] !== it ? (He = /* @__PURE__ */ i.jsxs(si, { className: me, style: xe, id: r, ref: de, "aria-label": Rt, backgroundColor: zt, theme: J, language: U, minHeight: wt, width: it, height: ht, relativeHeight: Z, padding: kt, children: [
1422
+ } }) : null, t[108] = L?.footnote, t[109] = L?.source, t[110] = Lt, t[111] = Tt, t[112] = y?.footnote, t[113] = y?.source, t[114] = et, t[115] = ze) : ze = t[115];
1423
+ let Xe;
1424
+ return t[116] !== ut || t[117] !== It || t[118] !== c || t[119] !== ft || t[120] !== q || t[121] !== Mt || t[122] !== zt || t[123] !== Q || t[124] !== ue || t[125] !== xe || t[126] !== ce || t[127] !== Kt || t[128] !== jt || t[129] !== Ve || t[130] !== ze || t[131] !== U || t[132] !== et ? (Xe = /* @__PURE__ */ i.jsxs(ni, { className: ue, style: xe, id: c, ref: Ae, "aria-label": ut, backgroundColor: It, theme: U, language: q, minHeight: Mt, width: et, height: ft, relativeHeight: Q, padding: zt, children: [
1421
1425
  ce,
1422
- Qt,
1423
- Dt,
1424
- Ce,
1425
- Ve
1426
- ] }), t[115] = Rt, t[116] = zt, t[117] = r, t[118] = ht, t[119] = U, t[120] = wt, t[121] = kt, t[122] = Z, t[123] = me, t[124] = xe, t[125] = ce, t[126] = Qt, t[127] = Dt, t[128] = Ce, t[129] = Ve, t[130] = J, t[131] = it, t[132] = He) : He = t[132], He;
1426
+ Kt,
1427
+ jt,
1428
+ Ve,
1429
+ ze
1430
+ ] }), t[116] = ut, t[117] = It, t[118] = c, t[119] = ft, t[120] = q, t[121] = Mt, t[122] = zt, t[123] = Q, t[124] = ue, t[125] = xe, t[126] = ce, t[127] = Kt, t[128] = jt, t[129] = Ve, t[130] = ze, t[131] = U, t[132] = et, t[133] = Xe) : Xe = t[133], Xe;
1427
1431
  }
1428
- function bl(e) {
1432
+ function ws(e) {
1429
1433
  return e.size;
1430
1434
  }
1431
- function vl(e) {
1432
- return !le(e.size);
1435
+ function As(e) {
1436
+ return !ee(e.size);
1433
1437
  }
1434
- function wl(e) {
1438
+ function $s(e) {
1435
1439
  return e.size;
1436
1440
  }
1437
- function Al(e) {
1438
- return !le(e.size);
1441
+ function Os(e) {
1442
+ return !ee(e.size);
1439
1443
  }
1440
- function $l(e) {
1444
+ function Ms(e) {
1441
1445
  return e.size;
1442
1446
  }
1443
- function Ol(e) {
1444
- return !le(e.size);
1447
+ function ks(e) {
1448
+ return !ee(e.size);
1445
1449
  }
1446
- function Ml(e) {
1450
+ function Cs(e) {
1447
1451
  return e.size;
1448
1452
  }
1449
- function kl(e) {
1450
- return !le(e.size);
1453
+ function Ls(e) {
1454
+ return !ee(e.size);
1451
1455
  }
1452
- function Cl(e) {
1456
+ function Vs(e) {
1453
1457
  return e.color;
1454
1458
  }
1455
- function Vl(e) {
1459
+ function zs(e) {
1456
1460
  return e.color;
1457
1461
  }
1458
- function zl(e) {
1462
+ function Ds(e) {
1459
1463
  return e.color;
1460
1464
  }
1461
- function Dl(e) {
1465
+ function Is(e) {
1462
1466
  return e !== void 0;
1463
1467
  }
1464
- function Ll(e) {
1468
+ function Ns(e) {
1465
1469
  return e !== void 0;
1466
1470
  }
1467
- function Il(e) {
1471
+ function js(e) {
1468
1472
  return e.data;
1469
1473
  }
1470
- function Nl(e) {
1474
+ function Ts(e) {
1471
1475
  return e !== void 0;
1472
1476
  }
1473
- function jl(e) {
1477
+ function Ss(e) {
1474
1478
  return e.data;
1475
1479
  }
1476
- function Tl(e, t) {
1480
+ function Bs(e, t) {
1477
1481
  return e - t;
1478
1482
  }
1479
- function Sl(e) {
1483
+ function Fs(e) {
1480
1484
  return e.date;
1481
1485
  }
1482
- function Bl(e) {
1483
- const t = we.c(129), {
1484
- data: s,
1486
+ function Ps(e) {
1487
+ const t = we.c(130), {
1488
+ data: l,
1485
1489
  barColors: X,
1486
1490
  barPadding: Ut,
1487
- showTicks: Kt,
1488
- topMargin: Lt,
1489
- bottomMargin: Ot,
1490
- leftMargin: Tt,
1491
- rightMargin: P,
1492
- truncateBy: K,
1493
- width: y,
1494
- height: st,
1495
- tooltip: ht,
1496
- onSeriesMouseOver: it,
1497
- showLabels: Jt,
1491
+ showTicks: Jt,
1492
+ topMargin: Tt,
1493
+ bottomMargin: Ct,
1494
+ leftMargin: Ft,
1495
+ rightMargin: W,
1496
+ truncateBy: J,
1497
+ width: A,
1498
+ height: R,
1499
+ tooltip: ft,
1500
+ onSeriesMouseOver: et,
1501
+ showLabels: Lt,
1498
1502
  suffix: Y,
1499
- prefix: at,
1500
- showValues: Mt,
1501
- refValues: kt,
1502
- maxValue: Gt,
1503
- onSeriesMouseClick: w,
1504
- selectedColor: Q,
1505
- rtl: E,
1503
+ prefix: lt,
1504
+ showValues: Vt,
1505
+ refValues: zt,
1506
+ maxValue: Xt,
1507
+ onSeriesMouseClick: C,
1508
+ selectedColor: K,
1509
+ rtl: B,
1506
1510
  labelOrder: T,
1507
- maxBarThickness: rt,
1508
- minBarThickness: Z,
1509
- resetSelectionOnDoubleClick: ft,
1510
- detailsOnClick: B,
1511
- barAxisTitle: _,
1512
- valueColor: lt,
1513
- noOfTicks: r,
1514
- styles: l,
1515
- classNames: n,
1516
- animate: u,
1517
- colorDomain: c,
1518
- precision: f,
1519
- customLayers: d,
1520
- naLabel: V
1521
- } = e, ct = Lt === void 0 ? 25 : Lt, tt = Ot === void 0 ? 10 : Ot, Ft = Tt === void 0 ? 100 : Tt, Pt = P === void 0 ? 40 : P, Et = ve(null);
1522
- let q;
1523
- t[0] !== u.amount || t[1] !== u.once ? (q = {
1524
- once: u.once,
1525
- amount: u.amount
1526
- }, t[0] = u.amount, t[1] = u.once, t[2] = q) : q = t[2];
1527
- const pt = Se(Et, q), Rt = _ ? ct + 25 : ct;
1528
- let m;
1529
- t[3] !== tt || t[4] !== Ft || t[5] !== Pt || t[6] !== Rt ? (m = {
1530
- top: Rt,
1531
- bottom: tt,
1532
- left: Ft,
1511
+ maxBarThickness: dt,
1512
+ minBarThickness: Q,
1513
+ resetSelectionOnDoubleClick: pt,
1514
+ detailsOnClick: F,
1515
+ barAxisTitle: Z,
1516
+ valueColor: it,
1517
+ noOfTicks: c,
1518
+ styles: s,
1519
+ classNames: a,
1520
+ animate: m,
1521
+ colorDomain: d,
1522
+ precision: p,
1523
+ customLayers: x,
1524
+ naLabel: at,
1525
+ hideAxisLine: D
1526
+ } = e, E = Tt === void 0 ? 25 : Tt, Yt = Ct === void 0 ? 10 : Ct, Et = Ft === void 0 ? 100 : Ft, Pt = W === void 0 ? 40 : W, Ht = ve(null);
1527
+ let nt;
1528
+ t[0] !== m.amount || t[1] !== m.once ? (nt = {
1529
+ once: m.once,
1530
+ amount: m.amount
1531
+ }, t[0] = m.amount, t[1] = m.once, t[2] = nt) : nt = t[2];
1532
+ const ut = Fe(Ht, nt), _ = Z ? E + 25 : E;
1533
+ let u;
1534
+ t[3] !== Yt || t[4] !== Et || t[5] !== Pt || t[6] !== _ ? (u = {
1535
+ top: _,
1536
+ bottom: Yt,
1537
+ left: Et,
1533
1538
  right: Pt
1534
- }, t[3] = tt, t[4] = Ft, t[5] = Pt, t[6] = Rt, t[7] = m) : m = t[7];
1535
- const o = m, [I, O] = te(void 0), [z, L] = te(void 0), [N, Ct] = te(void 0), [It, nt] = te(void 0), Nt = y - o.left - o.right, H = st - o.top - o.bottom;
1536
- let G;
1537
- if (t[8] !== s || t[9] !== T) {
1538
- const p = /* @__PURE__ */ new Set(), xt = s.map((h, x) => {
1539
- const Yt = T ? `${h.label}` : `${x}`;
1540
- return p.add(Yt), {
1541
- ...h,
1542
- id: Yt
1539
+ }, t[3] = Yt, t[4] = Et, t[5] = Pt, t[6] = _, t[7] = u) : u = t[7];
1540
+ const r = u, [V, gt] = Zt(void 0), [y, L] = Zt(void 0), [Gt, ot] = Zt(void 0), [Rt, rt] = Zt(void 0), Wt = A - r.left - r.right, G = R - r.top - r.bottom;
1541
+ let st;
1542
+ if (t[8] !== l || t[9] !== T) {
1543
+ const b = /* @__PURE__ */ new Set(), At = l.map((f, g) => {
1544
+ const Nt = T ? `${f.label}` : `${g}`;
1545
+ return b.add(Nt), {
1546
+ ...f,
1547
+ id: Nt
1543
1548
  };
1544
- }), Xt = T ? T.filter((h) => !p.has(h)) : [];
1545
- let A;
1546
- t[11] !== s[0] ? (A = (h) => ({
1547
- id: h,
1548
- label: h,
1549
- size: Array(s[0].size.length).fill(null)
1550
- }), t[11] = s[0], t[12] = A) : A = t[12], G = [...xt, ...Xt.map(A)], t[8] = s, t[9] = T, t[10] = G;
1549
+ }), $t = T ? T.filter((f) => !b.has(f)) : [];
1550
+ let M;
1551
+ t[11] !== l[0] ? (M = (f) => ({
1552
+ id: f,
1553
+ label: f,
1554
+ size: Array(l[0].size.length).fill(null)
1555
+ }), t[11] = l[0], t[12] = M) : M = t[12], st = [...At, ...$t.map(M)], t[8] = l, t[9] = T, t[10] = st;
1551
1556
  } else
1552
- G = t[10];
1553
- const $ = G;
1554
- let Ht;
1555
- t[13] !== $ || t[14] !== T ? (Ht = T ?? $.map(Rl), t[13] = $, t[14] = T, t[15] = Ht) : Ht = t[15];
1556
- const bt = Ht;
1557
- let gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt, U;
1558
- if (t[16] !== u || t[17] !== _ || t[18] !== X || t[19] !== bt || t[20] !== Ut || t[21] !== n?.graphObjectValues || t[22] !== n?.xAxis?.gridLines || t[23] !== n?.xAxis?.labels || t[24] !== n?.xAxis?.title || t[25] !== n?.yAxis?.axis || t[26] !== n?.yAxis?.labels || t[27] !== c || t[28] !== d || t[29] !== $ || t[30] !== B || t[31] !== H || t[32] !== Nt || t[33] !== st || t[34] !== pt || t[35] !== o.bottom || t[36] !== o.left || t[37] !== o.top || t[38] !== rt || t[39] !== Gt || t[40] !== Z || t[41] !== z || t[42] !== V || t[43] !== r || t[44] !== w || t[45] !== it || t[46] !== f || t[47] !== at || t[48] !== kt || t[49] !== ft || t[50] !== E || t[51] !== Q || t[52] !== Jt || t[53] !== Kt || t[54] !== Mt || t[55] !== l?.graphObjectValues || t[56] !== l?.xAxis?.gridLines || t[57] !== l?.xAxis?.labels || t[58] !== l?.xAxis?.title || t[59] !== l?.yAxis?.axis || t[60] !== l?.yAxis?.labels || t[61] !== Y || t[62] !== ct || t[63] !== K || t[64] !== lt || t[65] !== y) {
1559
- const p = Be().domain([0, Gt]).range([0, Nt]).nice(), xt = Oe().domain(bt).range([0, Z ? Math.max(H, Z * bt.length) : rt ? Math.min(H, rt * bt.length) : H]).paddingInner(Ut), Xt = p.ticks(r);
1560
- dt = ee.svg, zt = Et, yt = `${y}px`, ot = `${st}px`, ut = `0 0 ${y} ${st}`, mt = "ltr", Vt = `translate(${o.left},${o.top})`, et = Kt ? /* @__PURE__ */ i.jsx(Re, { values: Xt.filter(Gl), x: Xt.filter(El).map((W) => p(W)), y1: 0 - ct, y2: H + o.bottom, styles: {
1561
- gridLines: l?.xAxis?.gridLines,
1562
- labels: l?.xAxis?.labels
1557
+ st = t[10];
1558
+ const k = st;
1559
+ let xt;
1560
+ t[13] !== k || t[14] !== T ? (xt = T ?? k.map(Us), t[13] = k, t[14] = T, t[15] = xt) : xt = t[15];
1561
+ const St = xt;
1562
+ let yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht, q;
1563
+ if (t[16] !== m || t[17] !== Z || t[18] !== X || t[19] !== St || t[20] !== Ut || t[21] !== a?.graphObjectValues || t[22] !== a?.xAxis?.gridLines || t[23] !== a?.xAxis?.labels || t[24] !== a?.xAxis?.title || t[25] !== a?.yAxis?.axis || t[26] !== a?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== k || t[30] !== F || t[31] !== G || t[32] !== Wt || t[33] !== R || t[34] !== D || t[35] !== ut || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.top || t[39] !== dt || t[40] !== Xt || t[41] !== Q || t[42] !== y || t[43] !== at || t[44] !== c || t[45] !== C || t[46] !== et || t[47] !== p || t[48] !== lt || t[49] !== zt || t[50] !== pt || t[51] !== B || t[52] !== K || t[53] !== Lt || t[54] !== Jt || t[55] !== Vt || t[56] !== s?.graphObjectValues || t[57] !== s?.xAxis?.gridLines || t[58] !== s?.xAxis?.labels || t[59] !== s?.xAxis?.title || t[60] !== s?.yAxis?.axis || t[61] !== s?.yAxis?.labels || t[62] !== Y || t[63] !== E || t[64] !== J || t[65] !== it || t[66] !== A) {
1564
+ const b = Pe().domain([0, Xt]).range([0, Wt]).nice(), At = ke().domain(St).range([0, Q ? Math.max(G, Q * St.length) : dt ? Math.min(G, dt * St.length) : G]).paddingInner(Ut), $t = b.ticks(c);
1565
+ bt = _t.svg, It = Ht, wt = `${A}px`, ct = `${R}px`, mt = `0 0 ${A} ${R}`, ht = "ltr", Dt = `translate(${r.left},${r.top})`, tt = Jt ? /* @__PURE__ */ i.jsx(Ue, { values: $t.filter(qs), x: $t.filter(Rs).map((z) => b(z)), y1: 0 - E, y2: G + r.bottom, styles: {
1566
+ gridLines: s?.xAxis?.gridLines,
1567
+ labels: s?.xAxis?.labels
1563
1568
  }, classNames: {
1564
- gridLines: n?.xAxis?.gridLines,
1565
- labels: n?.xAxis?.labels
1566
- }, suffix: Y, prefix: at, labelType: "secondary", showGridLines: !0, precision: f }) : null;
1567
- const A = Nt / 2, h = 0 - o.top + 15, x = l?.xAxis?.title, Yt = n?.xAxis?.title;
1568
- t[80] !== _ || t[81] !== A || t[82] !== h || t[83] !== x || t[84] !== Yt ? (S = /* @__PURE__ */ i.jsx(je, { x: A, y: h, style: x, className: Yt, text: _ }), t[80] = _, t[81] = A, t[82] = h, t[83] = x, t[84] = Yt, t[85] = S) : S = t[85], t[86] !== d ? (j = d.filter(Yl).map(Xl), t[86] = d, t[87] = j) : j = t[87], gt = Fe, U = $.map((W) => le(xt(W.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1569
+ gridLines: a?.xAxis?.gridLines,
1570
+ labels: a?.xAxis?.labels
1571
+ }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, precision: p }) : null;
1572
+ const M = Wt / 2, f = 0 - r.top + 15, g = s?.xAxis?.title, Nt = a?.xAxis?.title;
1573
+ t[81] !== Z || t[82] !== M || t[83] !== f || t[84] !== g || t[85] !== Nt ? (S = /* @__PURE__ */ i.jsx(Se, { x: M, y: f, style: g, className: Nt, text: Z }), t[81] = Z, t[82] = M, t[83] = f, t[84] = g, t[85] = Nt, t[86] = S) : S = t[86], t[87] !== x ? (I = x.filter(Gs).map(Es), t[87] = x, t[88] = I) : I = t[88], yt = He, q = k.map((z) => ee(At(z.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1569
1574
  initial: {
1570
1575
  x: 0,
1571
- y: xt(`${W.id}`)
1576
+ y: At(`${z.id}`)
1572
1577
  },
1573
1578
  whileInView: {
1574
1579
  x: 0,
1575
- y: xt(`${W.id}`),
1580
+ y: At(`${z.id}`),
1576
1581
  transition: {
1577
- duration: u.duration
1582
+ duration: m.duration
1578
1583
  }
1579
1584
  }
1580
- }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
1585
+ }, initial: "initial", animate: ut ? "whileInView" : "initial", exit: {
1581
1586
  opacity: 0,
1582
1587
  transition: {
1583
- duration: u.duration
1588
+ duration: m.duration
1584
1589
  }
1585
1590
  }, children: [
1586
- W.size.map((R, D) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: Q ? X[D] === Q ? 1 : 0.3 : 1, onMouseEnter: (St) => {
1587
- O({
1588
- ...W,
1589
- sizeIndex: D
1590
- }), nt(St.clientY), Ct(St.clientX), it?.({
1591
- ...W,
1592
- sizeIndex: D
1591
+ z.size.map((j, h) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? X[h] === K ? 1 : 0.3 : 1, onMouseEnter: (w) => {
1592
+ gt({
1593
+ ...z,
1594
+ sizeIndex: h
1595
+ }), rt(w.clientY), ot(w.clientX), et?.({
1596
+ ...z,
1597
+ sizeIndex: h
1593
1598
  });
1594
- }, onMouseMove: (St) => {
1595
- O({
1596
- ...W,
1597
- sizeIndex: D
1598
- }), nt(St.clientY), Ct(St.clientX);
1599
+ }, onMouseMove: (w) => {
1600
+ gt({
1601
+ ...z,
1602
+ sizeIndex: h
1603
+ }), rt(w.clientY), ot(w.clientX);
1599
1604
  }, onMouseLeave: () => {
1600
- O(void 0), Ct(void 0), nt(void 0), it?.(void 0);
1605
+ gt(void 0), ot(void 0), rt(void 0), et?.(void 0);
1601
1606
  }, onClick: () => {
1602
- (w || B) && (Le(z, {
1603
- ...W,
1604
- sizeIndex: D
1605
- }) && ft ? (L(void 0), w?.(void 0)) : (L({
1606
- ...W,
1607
- sizeIndex: D
1608
- }), w && w({
1609
- ...W,
1610
- sizeIndex: D
1607
+ (C || F) && (Ne(y, {
1608
+ ...z,
1609
+ sizeIndex: h
1610
+ }) && pt ? (L(void 0), C?.(void 0)) : (L({
1611
+ ...z,
1612
+ sizeIndex: h
1613
+ }), C && C({
1614
+ ...z,
1615
+ sizeIndex: h
1611
1616
  })));
1612
1617
  }, children: [
1613
- R ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1614
- fill: X[D]
1615
- }, height: xt.bandwidth(), exit: {
1618
+ j ? /* @__PURE__ */ i.jsx(_t.rect, { y: 0, style: {
1619
+ fill: X[h]
1620
+ }, height: At.bandwidth(), exit: {
1616
1621
  width: 0,
1617
- x: p(0),
1622
+ x: b(0),
1618
1623
  transition: {
1619
- duration: u.duration
1624
+ duration: m.duration
1620
1625
  }
1621
1626
  }, variants: {
1622
1627
  initial: {
1623
1628
  width: 0,
1624
- x: p(0),
1625
- fill: X[D]
1629
+ x: b(0),
1630
+ fill: X[h]
1626
1631
  },
1627
1632
  whileInView: {
1628
- width: p(R || 0),
1629
- x: p(D === 0 ? 0 : he(W.size.filter((St, a) => a < D && St))),
1630
- fill: X[D],
1633
+ width: b(j || 0),
1634
+ x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))),
1635
+ fill: X[h],
1631
1636
  transition: {
1632
- duration: u.duration
1637
+ duration: m.duration
1633
1638
  }
1634
1639
  }
1635
- }, initial: "initial", animate: pt ? "whileInView" : "initial" }, D) : null,
1636
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: xt.bandwidth() / 2, style: {
1640
+ }, initial: "initial", animate: ut ? "whileInView" : "initial" }, h) : null,
1641
+ Vt ? /* @__PURE__ */ i.jsx(_t.text, { y: At.bandwidth() / 2, style: {
1637
1642
  textAnchor: "middle",
1638
- ...l?.graphObjectValues || {}
1639
- }, dy: "0.33em", className: $e("graph-value text-sm", n?.graphObjectValues), exit: {
1643
+ ...s?.graphObjectValues || {}
1644
+ }, dy: "0.33em", className: Me("graph-value text-sm", a?.graphObjectValues), exit: {
1640
1645
  opacity: 0,
1641
1646
  transition: {
1642
- duration: u.duration
1647
+ duration: m.duration
1643
1648
  }
1644
1649
  }, variants: {
1645
1650
  initial: {
1646
- x: p(0),
1651
+ x: b(0),
1647
1652
  opacity: 0,
1648
- fill: We(X[D])
1653
+ fill: Ye(X[h])
1649
1654
  },
1650
1655
  whileInView: {
1651
- x: p(D === 0 ? 0 : he(W.size.filter((St, a) => a < D && St))) + p(R || 0) / 2,
1652
- opacity: R && p(R) / be(R, V, f, at, Y).length > 12 ? 1 : 0,
1653
- fill: We(X[D]),
1656
+ x: b(h === 0 ? 0 : me(z.size.filter((w, n) => n < h && w))) + b(j || 0) / 2,
1657
+ opacity: j && b(j) / be(j, at, p, lt, Y).length > 12 ? 1 : 0,
1658
+ fill: Ye(X[h]),
1654
1659
  transition: {
1655
- duration: u.duration
1660
+ duration: m.duration
1656
1661
  }
1657
1662
  }
1658
- }, initial: "initial", animate: pt ? "whileInView" : "initial", children: be(R, V, f, at, Y) }) : null
1659
- ] }, `${W.label}-${c[D] || D}`)),
1660
- Jt ? /* @__PURE__ */ i.jsx(Ge, { value: `${W.label}`.length < K ? `${W.label}` : `${`${W.label}`.substring(0, K)}...`, y: 0, x: 0 - o.left, width: 0 + o.left, height: xt.bandwidth(), style: l?.yAxis?.labels, className: n?.yAxis?.labels, animate: u, isInView: pt }) : null,
1661
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: $e("graph-value graph-value-total text-sm", lt ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", n?.graphObjectValues), style: {
1662
- ...lt ? {
1663
- fill: lt
1663
+ }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(j, at, p, lt, Y) }) : null
1664
+ ] }, `${z.label}-${d[h] || h}`)),
1665
+ Lt ? /* @__PURE__ */ i.jsx(qe, { value: `${z.label}`.length < J ? `${z.label}` : `${`${z.label}`.substring(0, J)}...`, y: 0, x: 0 - r.left, width: 0 + r.left, height: At.bandwidth(), style: s?.yAxis?.labels, className: a?.yAxis?.labels, animate: m, isInView: ut }) : null,
1666
+ Vt ? /* @__PURE__ */ i.jsx(_t.text, { className: Me("graph-value graph-value-total text-sm", it ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", a?.graphObjectValues), style: {
1667
+ ...it ? {
1668
+ fill: it
1664
1669
  } : {},
1665
1670
  textAnchor: "start",
1666
- ...l?.graphObjectValues || {}
1667
- }, y: xt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1671
+ ...s?.graphObjectValues || {}
1672
+ }, y: At.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1668
1673
  initial: {
1669
- x: p(0),
1674
+ x: b(0),
1670
1675
  opacity: 0,
1671
- ...lt ? {
1672
- fill: lt
1676
+ ...it ? {
1677
+ fill: it
1673
1678
  } : {}
1674
1679
  },
1675
1680
  whileInView: {
1676
- x: p(he(W.size.map(Wl))),
1681
+ x: b(me(z.size.map(Ys))),
1677
1682
  opacity: 1,
1678
- ...lt ? {
1679
- fill: lt
1683
+ ...it ? {
1684
+ fill: it
1680
1685
  } : {},
1681
1686
  transition: {
1682
- duration: u.duration
1687
+ duration: m.duration
1683
1688
  }
1684
1689
  }
1685
1690
  }, exit: {
1686
1691
  opacity: 0,
1687
1692
  transition: {
1688
- duration: u.duration
1693
+ duration: m.duration
1689
1694
  }
1690
- }, initial: "initial", animate: pt ? "whileInView" : "initial", children: be(he(W.size.filter(Hl)), V, f, at, Y) }) : null
1691
- ] }, W.label));
1692
- const Zt = n?.yAxis?.axis;
1693
- let F;
1694
- t[88] !== Zt ? (F = {
1695
- axis: Zt
1696
- }, t[88] = Zt, t[89] = F) : F = t[89];
1697
- const M = l?.yAxis?.axis;
1698
- let _t;
1699
- t[90] !== M ? (_t = {
1700
- axis: M
1701
- }, t[90] = M, t[91] = _t) : _t = t[91], Wt = /* @__PURE__ */ i.jsx(Ne, { x1: p(0), x2: p(0), y1: -2.5, y2: H + o.bottom, classNames: F, styles: _t }), jt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((W, R) => /* @__PURE__ */ i.jsx(qe, { text: W.text, color: W.color, x: p(W.value), y1: 0 - o.top, y2: H + o.bottom, textSide: p(W.value) > Nt * 0.75 || E ? "left" : "right", classNames: W.classNames, styles: W.styles, animate: u, isInView: pt }, R)) }) : null, t[16] = u, t[17] = _, t[18] = X, t[19] = bt, t[20] = Ut, t[21] = n?.graphObjectValues, t[22] = n?.xAxis?.gridLines, t[23] = n?.xAxis?.labels, t[24] = n?.xAxis?.title, t[25] = n?.yAxis?.axis, t[26] = n?.yAxis?.labels, t[27] = c, t[28] = d, t[29] = $, t[30] = B, t[31] = H, t[32] = Nt, t[33] = st, t[34] = pt, t[35] = o.bottom, t[36] = o.left, t[37] = o.top, t[38] = rt, t[39] = Gt, t[40] = Z, t[41] = z, t[42] = V, t[43] = r, t[44] = w, t[45] = it, t[46] = f, t[47] = at, t[48] = kt, t[49] = ft, t[50] = E, t[51] = Q, t[52] = Jt, t[53] = Kt, t[54] = Mt, t[55] = l?.graphObjectValues, t[56] = l?.xAxis?.gridLines, t[57] = l?.xAxis?.labels, t[58] = l?.xAxis?.title, t[59] = l?.yAxis?.axis, t[60] = l?.yAxis?.labels, t[61] = Y, t[62] = ct, t[63] = K, t[64] = lt, t[65] = y, t[66] = gt, t[67] = dt, t[68] = Wt, t[69] = jt, t[70] = Vt, t[71] = et, t[72] = S, t[73] = j, t[74] = zt, t[75] = yt, t[76] = ot, t[77] = ut, t[78] = mt, t[79] = U;
1695
+ }, initial: "initial", animate: ut ? "whileInView" : "initial", children: be(me(z.size.filter(Xs)), at, p, lt, Y) }) : null
1696
+ ] }, z.label));
1697
+ const qt = a?.yAxis?.axis;
1698
+ let Qt;
1699
+ t[89] !== qt ? (Qt = {
1700
+ axis: qt
1701
+ }, t[89] = qt, t[90] = Qt) : Qt = t[90];
1702
+ const P = s?.yAxis?.axis;
1703
+ let N;
1704
+ t[91] !== P ? (N = {
1705
+ axis: P
1706
+ }, t[91] = P, t[92] = N) : N = t[92], vt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: D, x1: b(0), x2: b(0), y1: -2.5, y2: G + r.bottom, classNames: Qt, styles: N }), Bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((z, j) => /* @__PURE__ */ i.jsx(Je, { text: z.text, color: z.color, x: b(z.value), y1: 0 - r.top, y2: G + r.bottom, textSide: b(z.value) > Wt * 0.75 || B ? "left" : "right", classNames: z.classNames, styles: z.styles, animate: m, isInView: ut }, j)) }) : null, t[16] = m, t[17] = Z, t[18] = X, t[19] = St, t[20] = Ut, t[21] = a?.graphObjectValues, t[22] = a?.xAxis?.gridLines, t[23] = a?.xAxis?.labels, t[24] = a?.xAxis?.title, t[25] = a?.yAxis?.axis, t[26] = a?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = k, t[30] = F, t[31] = G, t[32] = Wt, t[33] = R, t[34] = D, t[35] = ut, t[36] = r.bottom, t[37] = r.left, t[38] = r.top, t[39] = dt, t[40] = Xt, t[41] = Q, t[42] = y, t[43] = at, t[44] = c, t[45] = C, t[46] = et, t[47] = p, t[48] = lt, t[49] = zt, t[50] = pt, t[51] = B, t[52] = K, t[53] = Lt, t[54] = Jt, t[55] = Vt, t[56] = s?.graphObjectValues, t[57] = s?.xAxis?.gridLines, t[58] = s?.xAxis?.labels, t[59] = s?.xAxis?.title, t[60] = s?.yAxis?.axis, t[61] = s?.yAxis?.labels, t[62] = Y, t[63] = E, t[64] = J, t[65] = it, t[66] = A, t[67] = yt, t[68] = bt, t[69] = vt, t[70] = Bt, t[71] = Dt, t[72] = tt, t[73] = S, t[74] = I, t[75] = It, t[76] = wt, t[77] = ct, t[78] = mt, t[79] = ht, t[80] = q;
1702
1707
  } else
1703
- gt = t[66], dt = t[67], Wt = t[68], jt = t[69], Vt = t[70], et = t[71], S = t[72], j = t[73], zt = t[74], yt = t[75], ot = t[76], ut = t[77], mt = t[78], U = t[79];
1704
- let vt;
1705
- t[92] !== gt || t[93] !== Wt || t[94] !== jt || t[95] !== U ? (vt = /* @__PURE__ */ i.jsxs(gt, { children: [
1706
- U,
1707
- Wt,
1708
- jt
1709
- ] }), t[92] = gt, t[93] = Wt, t[94] = jt, t[95] = U, t[96] = vt) : vt = t[96];
1710
- let wt;
1711
- t[97] !== d ? (wt = d.filter(Pl).map(Fl), t[97] = d, t[98] = wt) : wt = t[98];
1712
- let J;
1713
- t[99] !== Vt || t[100] !== et || t[101] !== S || t[102] !== j || t[103] !== vt || t[104] !== wt ? (J = /* @__PURE__ */ i.jsxs("g", { transform: Vt, children: [
1714
- et,
1715
- S,
1716
- j,
1708
+ yt = t[67], bt = t[68], vt = t[69], Bt = t[70], Dt = t[71], tt = t[72], S = t[73], I = t[74], It = t[75], wt = t[76], ct = t[77], mt = t[78], ht = t[79], q = t[80];
1709
+ let Ot;
1710
+ t[93] !== yt || t[94] !== vt || t[95] !== Bt || t[96] !== q ? (Ot = /* @__PURE__ */ i.jsxs(yt, { children: [
1711
+ q,
1717
1712
  vt,
1718
- wt
1719
- ] }), t[99] = Vt, t[100] = et, t[101] = S, t[102] = j, t[103] = vt, t[104] = wt, t[105] = J) : J = t[105];
1720
- let At;
1721
- t[106] !== dt || t[107] !== zt || t[108] !== yt || t[109] !== ot || t[110] !== ut || t[111] !== mt || t[112] !== J ? (At = /* @__PURE__ */ i.jsx(dt, { ref: zt, width: yt, height: ot, viewBox: ut, direction: mt, children: J }), t[106] = dt, t[107] = zt, t[108] = yt, t[109] = ot, t[110] = ut, t[111] = mt, t[112] = J, t[113] = At) : At = t[113];
1722
- let g;
1723
- t[114] !== n?.tooltip || t[115] !== N || t[116] !== It || t[117] !== I || t[118] !== l?.tooltip || t[119] !== ht ? (g = I && ht && N && It ? /* @__PURE__ */ i.jsx(Ie, { data: I, body: ht, xPos: N, yPos: It, backgroundStyle: l?.tooltip, className: n?.tooltip }) : null, t[114] = n?.tooltip, t[115] = N, t[116] = It, t[117] = I, t[118] = l?.tooltip, t[119] = ht, t[120] = g) : g = t[120];
1724
- let b;
1725
- t[121] !== n?.modal || t[122] !== B || t[123] !== z ? (b = B && z !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: B, data: z, setData: L, className: n?.modal }) : null, t[121] = n?.modal, t[122] = B, t[123] = z, t[124] = b) : b = t[124];
1713
+ Bt
1714
+ ] }), t[93] = yt, t[94] = vt, t[95] = Bt, t[96] = q, t[97] = Ot) : Ot = t[97];
1715
+ let Mt;
1716
+ t[98] !== x ? (Mt = x.filter(Ws).map(Hs), t[98] = x, t[99] = Mt) : Mt = t[99];
1717
+ let U;
1718
+ t[100] !== Dt || t[101] !== tt || t[102] !== S || t[103] !== I || t[104] !== Ot || t[105] !== Mt ? (U = /* @__PURE__ */ i.jsxs("g", { transform: Dt, children: [
1719
+ tt,
1720
+ S,
1721
+ I,
1722
+ Ot,
1723
+ Mt
1724
+ ] }), t[100] = Dt, t[101] = tt, t[102] = S, t[103] = I, t[104] = Ot, t[105] = Mt, t[106] = U) : U = t[106];
1725
+ let kt;
1726
+ t[107] !== bt || t[108] !== It || t[109] !== wt || t[110] !== ct || t[111] !== mt || t[112] !== ht || t[113] !== U ? (kt = /* @__PURE__ */ i.jsx(bt, { ref: It, width: wt, height: ct, viewBox: mt, direction: ht, children: U }), t[107] = bt, t[108] = It, t[109] = wt, t[110] = ct, t[111] = mt, t[112] = ht, t[113] = U, t[114] = kt) : kt = t[114];
1726
1727
  let v;
1727
- return t[125] !== At || t[126] !== g || t[127] !== b ? (v = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1728
- At,
1729
- g,
1730
- b
1731
- ] }), t[125] = At, t[126] = g, t[127] = b, t[128] = v) : v = t[128], v;
1728
+ t[115] !== a?.tooltip || t[116] !== Gt || t[117] !== Rt || t[118] !== V || t[119] !== s?.tooltip || t[120] !== ft ? (v = V && ft && Gt && Rt ? /* @__PURE__ */ i.jsx(je, { data: V, body: ft, xPos: Gt, yPos: Rt, backgroundStyle: s?.tooltip, className: a?.tooltip }) : null, t[115] = a?.tooltip, t[116] = Gt, t[117] = Rt, t[118] = V, t[119] = s?.tooltip, t[120] = ft, t[121] = v) : v = t[121];
1729
+ let $;
1730
+ t[122] !== a?.modal || t[123] !== F || t[124] !== y ? ($ = F && y !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: F, data: y, setData: L, className: a?.modal }) : null, t[122] = a?.modal, t[123] = F, t[124] = y, t[125] = $) : $ = t[125];
1731
+ let O;
1732
+ return t[126] !== kt || t[127] !== v || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1733
+ kt,
1734
+ v,
1735
+ $
1736
+ ] }), t[126] = kt, t[127] = v, t[128] = $, t[129] = O) : O = t[129], O;
1732
1737
  }
1733
- function Fl(e) {
1738
+ function Hs(e) {
1734
1739
  return e.layer;
1735
1740
  }
1736
- function Pl(e) {
1741
+ function Ws(e) {
1737
1742
  return e.position === "after";
1738
1743
  }
1739
- function Hl(e) {
1744
+ function Xs(e) {
1740
1745
  return e;
1741
1746
  }
1742
- function Wl(e) {
1747
+ function Ys(e) {
1743
1748
  return e || 0;
1744
1749
  }
1745
- function Xl(e) {
1750
+ function Es(e) {
1746
1751
  return e.layer;
1747
1752
  }
1748
- function Yl(e) {
1753
+ function Gs(e) {
1749
1754
  return e.position === "before";
1750
1755
  }
1751
- function El(e) {
1756
+ function Rs(e) {
1752
1757
  return e !== 0;
1753
1758
  }
1754
- function Gl(e) {
1759
+ function qs(e) {
1755
1760
  return e !== 0;
1756
1761
  }
1757
- function Rl(e) {
1762
+ function Us(e) {
1758
1763
  return `${e.id}`;
1759
1764
  }
1760
- function ql(e) {
1761
- const t = we.c(136), {
1762
- data: s,
1765
+ function Js(e) {
1766
+ const t = we.c(138), {
1767
+ data: l,
1763
1768
  leftMargin: X,
1764
1769
  rightMargin: Ut,
1765
- topMargin: Kt,
1766
- bottomMargin: Lt,
1767
- width: Ot,
1768
- height: Tt,
1769
- barColors: P,
1770
- barPadding: K,
1771
- showLabels: y,
1772
- showTicks: st,
1773
- truncateBy: ht,
1774
- tooltip: it,
1775
- onSeriesMouseOver: Jt,
1770
+ topMargin: Jt,
1771
+ bottomMargin: Tt,
1772
+ width: Ct,
1773
+ height: Ft,
1774
+ barColors: W,
1775
+ barPadding: J,
1776
+ showLabels: A,
1777
+ showTicks: R,
1778
+ truncateBy: ft,
1779
+ tooltip: et,
1780
+ onSeriesMouseOver: Lt,
1776
1781
  suffix: Y,
1777
- prefix: at,
1778
- showValues: Mt,
1779
- refValues: kt,
1780
- maxValue: Gt,
1781
- onSeriesMouseClick: w,
1782
- selectedColor: Q,
1783
- labelOrder: E,
1782
+ prefix: lt,
1783
+ showValues: Vt,
1784
+ refValues: zt,
1785
+ maxValue: Xt,
1786
+ onSeriesMouseClick: C,
1787
+ selectedColor: K,
1788
+ labelOrder: B,
1784
1789
  maxBarThickness: T,
1785
- minBarThickness: rt,
1786
- resetSelectionOnDoubleClick: Z,
1787
- detailsOnClick: ft,
1788
- barAxisTitle: B,
1789
- valueColor: _,
1790
- noOfTicks: lt,
1791
- styles: r,
1792
- classNames: l,
1793
- animate: n,
1794
- colorDomain: u,
1795
- precision: c,
1796
- customLayers: f,
1797
- naLabel: d
1798
- } = e, V = X === void 0 ? 20 : X, ct = Ut === void 0 ? 20 : Ut, tt = Kt === void 0 ? 20 : Kt, Ft = Lt === void 0 ? 25 : Lt, Pt = ve(null);
1799
- let Et;
1800
- t[0] !== n.amount || t[1] !== n.once ? (Et = {
1801
- once: n.once,
1802
- amount: n.amount
1803
- }, t[0] = n.amount, t[1] = n.once, t[2] = Et) : Et = t[2];
1804
- const q = Se(Pt, Et), pt = B ? V + 30 : V;
1805
- let Rt;
1806
- t[3] !== Ft || t[4] !== ct || t[5] !== pt || t[6] !== tt ? (Rt = {
1807
- top: tt,
1808
- bottom: Ft,
1809
- left: pt,
1810
- right: ct
1811
- }, t[3] = Ft, t[4] = ct, t[5] = pt, t[6] = tt, t[7] = Rt) : Rt = t[7];
1812
- const m = Rt, [o, I] = te(void 0), [O, z] = te(void 0), [L, N] = te(void 0), [Ct, It] = te(void 0), nt = Ot - m.left - m.right, Nt = Tt - m.top - m.bottom;
1813
- let H;
1814
- if (t[8] !== s || t[9] !== E) {
1815
- const v = /* @__PURE__ */ new Set(), p = s.map((A, h) => {
1816
- const x = E ? `${A.label}` : `${h}`;
1817
- return v.add(x), {
1818
- ...A,
1819
- id: x
1790
+ minBarThickness: dt,
1791
+ resetSelectionOnDoubleClick: Q,
1792
+ detailsOnClick: pt,
1793
+ barAxisTitle: F,
1794
+ valueColor: Z,
1795
+ noOfTicks: it,
1796
+ styles: c,
1797
+ classNames: s,
1798
+ animate: a,
1799
+ colorDomain: m,
1800
+ precision: d,
1801
+ customLayers: p,
1802
+ naLabel: x,
1803
+ hideAxisLine: at
1804
+ } = e, D = X === void 0 ? 20 : X, E = Ut === void 0 ? 20 : Ut, Yt = Jt === void 0 ? 20 : Jt, Et = Tt === void 0 ? 25 : Tt, Pt = ve(null);
1805
+ let Ht;
1806
+ t[0] !== a.amount || t[1] !== a.once ? (Ht = {
1807
+ once: a.once,
1808
+ amount: a.amount
1809
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Ht) : Ht = t[2];
1810
+ const nt = Fe(Pt, Ht), ut = F ? D + 30 : D;
1811
+ let _;
1812
+ t[3] !== Et || t[4] !== E || t[5] !== ut || t[6] !== Yt ? (_ = {
1813
+ top: Yt,
1814
+ bottom: Et,
1815
+ left: ut,
1816
+ right: E
1817
+ }, t[3] = Et, t[4] = E, t[5] = ut, t[6] = Yt, t[7] = _) : _ = t[7];
1818
+ const u = _, [r, V] = Zt(void 0), [gt, y] = Zt(void 0), [L, Gt] = Zt(void 0), [ot, Rt] = Zt(void 0), rt = Ct - u.left - u.right, Wt = Ft - u.top - u.bottom;
1819
+ let G;
1820
+ if (t[8] !== l || t[9] !== B) {
1821
+ const O = /* @__PURE__ */ new Set(), b = l.map((M, f) => {
1822
+ const g = B ? `${M.label}` : `${f}`;
1823
+ return O.add(g), {
1824
+ ...M,
1825
+ id: g
1820
1826
  };
1821
- }), xt = E ? E.filter((A) => !v.has(A)) : [];
1822
- let Xt;
1823
- t[11] !== s[0] ? (Xt = (A) => ({
1824
- id: A,
1825
- label: A,
1826
- size: Array(s[0].size.length).fill(null)
1827
- }), t[11] = s[0], t[12] = Xt) : Xt = t[12], H = [...p, ...xt.map(Xt)], t[8] = s, t[9] = E, t[10] = H;
1827
+ }), At = B ? B.filter((M) => !O.has(M)) : [];
1828
+ let $t;
1829
+ t[11] !== l[0] ? ($t = (M) => ({
1830
+ id: M,
1831
+ label: M,
1832
+ size: Array(l[0].size.length).fill(null)
1833
+ }), t[11] = l[0], t[12] = $t) : $t = t[12], G = [...b, ...At.map($t)], t[8] = l, t[9] = B, t[10] = G;
1828
1834
  } else
1829
- H = t[10];
1830
- const G = H;
1831
- let $;
1832
- t[13] !== G || t[14] !== E ? ($ = E ?? G.map(is), t[13] = G, t[14] = E, t[15] = $) : $ = t[15];
1833
- const Ht = $;
1834
- let bt, gt, dt, Wt, jt, Vt, et, S, j, zt, yt, ot, ut, mt;
1835
- if (t[16] !== n || t[17] !== B || t[18] !== P || t[19] !== Ht || t[20] !== K || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.axis || t[23] !== l?.xAxis?.labels || t[24] !== l?.yAxis?.gridLines || t[25] !== l?.yAxis?.labels || t[26] !== l?.yAxis?.title || t[27] !== u || t[28] !== f || t[29] !== G || t[30] !== ft || t[31] !== Nt || t[32] !== nt || t[33] !== Tt || t[34] !== q || t[35] !== V || t[36] !== m.bottom || t[37] !== m.left || t[38] !== m.right || t[39] !== m.top || t[40] !== T || t[41] !== Gt || t[42] !== rt || t[43] !== O || t[44] !== d || t[45] !== lt || t[46] !== w || t[47] !== Jt || t[48] !== c || t[49] !== at || t[50] !== kt || t[51] !== Z || t[52] !== Q || t[53] !== y || t[54] !== st || t[55] !== Mt || t[56] !== r?.graphObjectValues || t[57] !== r?.xAxis?.axis || t[58] !== r?.xAxis?.labels || t[59] !== r?.yAxis?.gridLines || t[60] !== r?.yAxis?.labels || t[61] !== r?.yAxis?.title || t[62] !== Y || t[63] !== ht || t[64] !== _ || t[65] !== Ot) {
1836
- const v = Be().domain([0, Gt]).range([Nt, 0]).nice(), p = Oe().domain(Ht).range([0, rt ? Math.max(nt, rt * Ht.length) : T ? Math.min(nt, T * Ht.length) : nt]).paddingInner(K), xt = v.ticks(lt);
1837
- gt = ee.svg, j = `${Ot}px`, zt = `${Tt}px`, yt = `0 0 ${Ot} ${Tt}`, ot = "ltr", ut = Pt, Wt = `translate(${m.left},${m.top})`;
1838
- const Xt = v(0), A = v(0);
1839
- let h;
1840
- t[80] !== d || t[81] !== c || t[82] !== at || t[83] !== Y ? (h = be(0, d, c, at, Y), t[80] = d, t[81] = c, t[82] = at, t[83] = Y, t[84] = h) : h = t[84];
1841
- const x = l?.xAxis?.axis, Yt = l?.yAxis?.labels;
1842
- let Zt;
1843
- t[85] !== x || t[86] !== Yt ? (Zt = {
1844
- axis: x,
1845
- label: Yt
1846
- }, t[85] = x, t[86] = Yt, t[87] = Zt) : Zt = t[87];
1847
- const F = r?.xAxis?.axis, M = r?.yAxis?.labels;
1848
- let _t;
1849
- t[88] !== F || t[89] !== M ? (_t = {
1850
- axis: F,
1851
- label: M
1852
- }, t[88] = F, t[89] = M, t[90] = _t) : _t = t[90], jt = /* @__PURE__ */ i.jsx(Ne, { y1: Xt, y2: A, x1: 0 - V, x2: nt + m.right, label: h, labelPos: {
1853
- x: 0 - V,
1854
- y: v(0),
1835
+ G = t[10];
1836
+ const st = G;
1837
+ let k;
1838
+ t[13] !== st || t[14] !== B ? (k = B ?? st.map(ll), t[13] = st, t[14] = B, t[15] = k) : k = t[15];
1839
+ const xt = k;
1840
+ let St, yt, bt, vt, Bt, Dt, tt, S, I, It, wt, ct, mt, ht;
1841
+ if (t[16] !== a || t[17] !== F || t[18] !== W || t[19] !== xt || t[20] !== J || t[21] !== s?.graphObjectValues || t[22] !== s?.xAxis?.axis || t[23] !== s?.xAxis?.labels || t[24] !== s?.yAxis?.gridLines || t[25] !== s?.yAxis?.labels || t[26] !== s?.yAxis?.title || t[27] !== m || t[28] !== p || t[29] !== st || t[30] !== pt || t[31] !== Wt || t[32] !== rt || t[33] !== Ft || t[34] !== at || t[35] !== nt || t[36] !== D || t[37] !== u.bottom || t[38] !== u.left || t[39] !== u.right || t[40] !== u.top || t[41] !== T || t[42] !== Xt || t[43] !== dt || t[44] !== gt || t[45] !== x || t[46] !== it || t[47] !== C || t[48] !== Lt || t[49] !== d || t[50] !== lt || t[51] !== zt || t[52] !== Q || t[53] !== K || t[54] !== A || t[55] !== R || t[56] !== Vt || t[57] !== c?.graphObjectValues || t[58] !== c?.xAxis?.axis || t[59] !== c?.xAxis?.labels || t[60] !== c?.yAxis?.gridLines || t[61] !== c?.yAxis?.labels || t[62] !== c?.yAxis?.title || t[63] !== Y || t[64] !== ft || t[65] !== Z || t[66] !== Ct) {
1842
+ const O = Pe().domain([0, Xt]).range([Wt, 0]).nice(), b = ke().domain(xt).range([0, dt ? Math.max(rt, dt * xt.length) : T ? Math.min(rt, T * xt.length) : rt]).paddingInner(J), At = O.ticks(it);
1843
+ yt = _t.svg, I = `${Ct}px`, It = `${Ft}px`, wt = `0 0 ${Ct} ${Ft}`, ct = "ltr", mt = Pt, vt = `translate(${u.left},${u.top})`;
1844
+ let $t;
1845
+ t[81] !== x || t[82] !== d || t[83] !== lt || t[84] !== R || t[85] !== Y ? ($t = R ? be(0, x, d, lt, Y) : void 0, t[81] = x, t[82] = d, t[83] = lt, t[84] = R, t[85] = Y, t[86] = $t) : $t = t[86];
1846
+ const M = s?.xAxis?.axis, f = s?.yAxis?.labels;
1847
+ let g;
1848
+ t[87] !== M || t[88] !== f ? (g = {
1849
+ axis: M,
1850
+ label: f
1851
+ }, t[87] = M, t[88] = f, t[89] = g) : g = t[89];
1852
+ const Nt = c?.xAxis?.axis, qt = c?.yAxis?.labels;
1853
+ let Qt;
1854
+ t[90] !== Nt || t[91] !== qt ? (Qt = {
1855
+ axis: Nt,
1856
+ label: qt
1857
+ }, t[90] = Nt, t[91] = qt, t[92] = Qt) : Qt = t[92], Bt = /* @__PURE__ */ i.jsx(Te, { hideAxisLine: at, y1: O(0), y2: O(0), x1: 0 - D, x2: rt + u.right, label: $t, labelPos: {
1858
+ x: 0 - D,
1859
+ y: O(0),
1855
1860
  dx: 0,
1856
1861
  dy: -5
1857
- }, classNames: Zt, styles: _t }), Vt = st ? /* @__PURE__ */ i.jsx(Je, { values: xt.filter(es), y: xt.filter(ts).map((a) => v(a)), x1: 0 - V, x2: nt + m.right, styles: {
1858
- gridLines: r?.yAxis?.gridLines,
1859
- labels: r?.yAxis?.labels
1862
+ }, classNames: g, styles: Qt }), Dt = R ? /* @__PURE__ */ i.jsx(Qe, { values: At.filter(sl), y: At.filter(il).map((h) => O(h)), x1: 0 - D, x2: rt + u.right, styles: {
1863
+ gridLines: c?.yAxis?.gridLines,
1864
+ labels: c?.yAxis?.labels
1860
1865
  }, classNames: {
1861
- gridLines: l?.yAxis?.gridLines,
1862
- labels: l?.yAxis?.labels
1863
- }, suffix: Y, prefix: at, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: c }) : null;
1864
- const W = 0 - V - 15, R = Nt / 2, D = r?.yAxis?.title, St = l?.yAxis?.title;
1865
- t[91] !== B || t[92] !== W || t[93] !== R || t[94] !== D || t[95] !== St ? (et = /* @__PURE__ */ i.jsx(je, { x: W, y: R, style: D, className: St, text: B, rotate90: !0 }), t[91] = B, t[92] = W, t[93] = R, t[94] = D, t[95] = St, t[96] = et) : et = t[96], t[97] !== f ? (S = f.filter(_l).map(Zl), t[97] = f, t[98] = S) : S = t[98], bt = Fe, mt = G.map((a) => le(p(a.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1866
+ gridLines: s?.yAxis?.gridLines,
1867
+ labels: s?.yAxis?.labels
1868
+ }, suffix: Y, prefix: lt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1869
+ const P = 0 - D - 15, N = Wt / 2, z = c?.yAxis?.title, j = s?.yAxis?.title;
1870
+ t[93] !== F || t[94] !== P || t[95] !== N || t[96] !== z || t[97] !== j ? (tt = /* @__PURE__ */ i.jsx(Se, { x: P, y: N, style: z, className: j, text: F, rotate90: !0 }), t[93] = F, t[94] = P, t[95] = N, t[96] = z, t[97] = j, t[98] = tt) : tt = t[98], t[99] !== p ? (S = p.filter(el).map(tl), t[99] = p, t[100] = S) : S = t[100], St = He, ht = st.map((h) => ee(b(h.id)) ? null : /* @__PURE__ */ i.jsxs(_t.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1866
1871
  initial: {
1867
- x: p(`${a.id}`),
1872
+ x: b(`${h.id}`),
1868
1873
  y: 0
1869
1874
  },
1870
1875
  whileInView: {
1871
- x: p(`${a.id}`),
1876
+ x: b(`${h.id}`),
1872
1877
  y: 0,
1873
1878
  transition: {
1874
- duration: n.duration
1879
+ duration: a.duration
1875
1880
  }
1876
1881
  }
1877
1882
  }, transition: {
1878
- duration: n.duration
1879
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1883
+ duration: a.duration
1884
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1880
1885
  opacity: 0,
1881
1886
  transition: {
1882
- duration: n.duration
1887
+ duration: a.duration
1883
1888
  }
1884
1889
  }, children: [
1885
- a.size.map(($t, k) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: Q ? P[k] === Q ? 1 : 0.3 : 1, onMouseEnter: (Bt) => {
1886
- I({
1887
- ...a,
1888
- sizeIndex: k
1889
- }), It(Bt.clientY), N(Bt.clientX), Jt?.({
1890
- ...a,
1891
- sizeIndex: k
1890
+ h.size.map((w, n) => /* @__PURE__ */ i.jsxs(_t.g, { opacity: K ? W[n] === K ? 1 : 0.3 : 1, onMouseEnter: (H) => {
1891
+ V({
1892
+ ...h,
1893
+ sizeIndex: n
1894
+ }), Rt(H.clientY), Gt(H.clientX), Lt?.({
1895
+ ...h,
1896
+ sizeIndex: n
1892
1897
  });
1893
- }, onMouseMove: (Bt) => {
1894
- I({
1895
- ...a,
1896
- sizeIndex: k
1897
- }), It(Bt.clientY), N(Bt.clientX);
1898
+ }, onMouseMove: (H) => {
1899
+ V({
1900
+ ...h,
1901
+ sizeIndex: n
1902
+ }), Rt(H.clientY), Gt(H.clientX);
1898
1903
  }, onMouseLeave: () => {
1899
- I(void 0), N(void 0), It(void 0), Jt?.(void 0);
1904
+ V(void 0), Gt(void 0), Rt(void 0), Lt?.(void 0);
1900
1905
  }, onClick: () => {
1901
- (w || ft) && (Le(O, {
1902
- ...a,
1903
- sizeIndex: k
1904
- }) && Z ? (z(void 0), w?.(void 0)) : (z({
1905
- ...a,
1906
- sizeIndex: k
1907
- }), w && w({
1908
- ...a,
1909
- sizeIndex: k
1906
+ (C || pt) && (Ne(gt, {
1907
+ ...h,
1908
+ sizeIndex: n
1909
+ }) && Q ? (y(void 0), C?.(void 0)) : (y({
1910
+ ...h,
1911
+ sizeIndex: n
1912
+ }), C && C({
1913
+ ...h,
1914
+ sizeIndex: n
1910
1915
  })));
1911
1916
  }, children: [
1912
- /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: p.bandwidth(), variants: {
1917
+ /* @__PURE__ */ i.jsx(_t.rect, { x: 0, width: b.bandwidth(), variants: {
1913
1918
  initial: {
1914
1919
  height: 0,
1915
- fill: P[k],
1916
- y: v(0)
1920
+ fill: W[n],
1921
+ y: O(0)
1917
1922
  },
1918
1923
  whileInView: {
1919
- height: Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))),
1920
- y: v(he(a.size.filter((Bt, qt) => qt <= k && Bt))),
1921
- fill: P[k],
1924
+ height: Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))),
1925
+ y: O(me(h.size.filter((H, o) => o <= n && H))),
1926
+ fill: W[n],
1922
1927
  transition: {
1923
- duration: n.duration
1928
+ duration: a.duration
1924
1929
  }
1925
1930
  }
1926
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1931
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1927
1932
  height: 0,
1928
- y: v(0),
1933
+ y: O(0),
1929
1934
  transition: {
1930
- duration: n.duration
1935
+ duration: a.duration
1931
1936
  }
1932
1937
  } }),
1933
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: p.bandwidth() / 2, style: {
1938
+ Vt ? /* @__PURE__ */ i.jsx(_t.text, { x: b.bandwidth() / 2, style: {
1934
1939
  textAnchor: "middle",
1935
- ...r?.graphObjectValues || {}
1936
- }, className: $e("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
1940
+ ...c?.graphObjectValues || {}
1941
+ }, className: Me("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1937
1942
  initial: {
1938
- y: v(0),
1943
+ y: O(0),
1939
1944
  opacity: 0,
1940
- fill: We(P[k])
1945
+ fill: Ye(W[n])
1941
1946
  },
1942
1947
  whileInView: {
1943
- y: v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) + Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))) / 2,
1944
- opacity: $t && Math.abs(v(he(a.size.filter((Bt, qt) => qt <= k && Bt))) - v(he(a.size.filter((Bt, qt) => qt < k && Bt)))) > 20 ? 1 : 0,
1945
- fill: We(P[k]),
1948
+ y: O(me(h.size.filter((H, o) => o <= n && H))) + Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) / 2,
1949
+ opacity: w && Math.abs(O(me(h.size.filter((H, o) => o <= n && H))) - O(me(h.size.filter((H, o) => o < n && H)))) > 20 ? 1 : 0,
1950
+ fill: Ye(W[n]),
1946
1951
  transition: {
1947
- duration: n.duration
1952
+ duration: a.duration
1948
1953
  }
1949
1954
  }
1950
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1955
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", exit: {
1951
1956
  opacity: 0,
1952
1957
  transition: {
1953
- duration: n.duration
1958
+ duration: a.duration
1954
1959
  }
1955
- }, children: be($t, d, c, at, Y) }) : null
1956
- ] }, `${a.label}-${u[k] || k}`)),
1957
- y ? /* @__PURE__ */ i.jsx(Ke, { value: `${a.label}`.length < ht ? `${a.label}` : `${`${a.label}`.substring(0, ht)}...`, y: v(0) + 5, x: 0, width: p.bandwidth(), height: m.bottom, style: r?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: n, isInView: q }) : null,
1958
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1960
+ }, children: be(w, x, d, lt, Y) }) : null
1961
+ ] }, `${h.label}-${m[n] || n}`)),
1962
+ A ? /* @__PURE__ */ i.jsx(Ze, { value: `${h.label}`.length < ft ? `${h.label}` : `${`${h.label}`.substring(0, ft)}...`, y: O(0) + 5, x: 0, width: b.bandwidth(), height: u.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: a, isInView: nt }) : null,
1963
+ Vt ? /* @__PURE__ */ i.jsx(_t.text, { style: {
1959
1964
  textAnchor: "middle",
1960
- ...r?.graphObjectValues || {}
1961
- }, x: p.bandwidth() / 2, dy: -10, className: $e("graph-value graph-value-total", _ ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", l?.graphObjectValues), variants: {
1965
+ ...c?.graphObjectValues || {}
1966
+ }, x: b.bandwidth() / 2, dy: -10, className: Me("graph-value graph-value-total", Z ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
1962
1967
  initial: {
1963
- y: v(0),
1968
+ y: O(0),
1964
1969
  opacity: 0,
1965
- ..._ && {
1966
- fill: _
1970
+ ...Z && {
1971
+ fill: Z
1967
1972
  }
1968
1973
  },
1969
1974
  whileInView: {
1970
- y: v(he(a.size.map(Ql))),
1975
+ y: O(me(h.size.map(_s))),
1971
1976
  opacity: 1,
1972
- ..._ && {
1973
- fill: _
1977
+ ...Z && {
1978
+ fill: Z
1974
1979
  },
1975
1980
  transition: {
1976
- duration: n.duration
1981
+ duration: a.duration
1977
1982
  }
1978
1983
  }
1979
1984
  }, exit: {
1980
1985
  opacity: 0,
1981
1986
  transition: {
1982
- duration: n.duration
1987
+ duration: a.duration
1983
1988
  }
1984
- }, initial: "initial", animate: q ? "whileInView" : "initial", children: be(he(a.size.filter(Kl)), d, c, at, Y) }) : null
1985
- ] }, a.label)), dt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((a, $t) => /* @__PURE__ */ i.jsx(Ue, { text: a.text, color: a.color, y: v(a.value), x1: 0 - V, x2: nt + m.right, classNames: a.classNames, styles: a.styles, animate: n, isInView: q }, $t)) }) : null, t[16] = n, t[17] = B, t[18] = P, t[19] = Ht, t[20] = K, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.axis, t[23] = l?.xAxis?.labels, t[24] = l?.yAxis?.gridLines, t[25] = l?.yAxis?.labels, t[26] = l?.yAxis?.title, t[27] = u, t[28] = f, t[29] = G, t[30] = ft, t[31] = Nt, t[32] = nt, t[33] = Tt, t[34] = q, t[35] = V, t[36] = m.bottom, t[37] = m.left, t[38] = m.right, t[39] = m.top, t[40] = T, t[41] = Gt, t[42] = rt, t[43] = O, t[44] = d, t[45] = lt, t[46] = w, t[47] = Jt, t[48] = c, t[49] = at, t[50] = kt, t[51] = Z, t[52] = Q, t[53] = y, t[54] = st, t[55] = Mt, t[56] = r?.graphObjectValues, t[57] = r?.xAxis?.axis, t[58] = r?.xAxis?.labels, t[59] = r?.yAxis?.gridLines, t[60] = r?.yAxis?.labels, t[61] = r?.yAxis?.title, t[62] = Y, t[63] = ht, t[64] = _, t[65] = Ot, t[66] = bt, t[67] = gt, t[68] = dt, t[69] = Wt, t[70] = jt, t[71] = Vt, t[72] = et, t[73] = S, t[74] = j, t[75] = zt, t[76] = yt, t[77] = ot, t[78] = ut, t[79] = mt;
1989
+ }, initial: "initial", animate: nt ? "whileInView" : "initial", children: be(me(h.size.filter(Zs)), x, d, lt, Y) }) : null
1990
+ ] }, h.label)), bt = zt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: zt.map((h, w) => /* @__PURE__ */ i.jsx(Ke, { text: h.text, color: h.color, y: O(h.value), x1: 0 - D, x2: rt + u.right, classNames: h.classNames, styles: h.styles, animate: a, isInView: nt }, w)) }) : null, t[16] = a, t[17] = F, t[18] = W, t[19] = xt, t[20] = J, t[21] = s?.graphObjectValues, t[22] = s?.xAxis?.axis, t[23] = s?.xAxis?.labels, t[24] = s?.yAxis?.gridLines, t[25] = s?.yAxis?.labels, t[26] = s?.yAxis?.title, t[27] = m, t[28] = p, t[29] = st, t[30] = pt, t[31] = Wt, t[32] = rt, t[33] = Ft, t[34] = at, t[35] = nt, t[36] = D, t[37] = u.bottom, t[38] = u.left, t[39] = u.right, t[40] = u.top, t[41] = T, t[42] = Xt, t[43] = dt, t[44] = gt, t[45] = x, t[46] = it, t[47] = C, t[48] = Lt, t[49] = d, t[50] = lt, t[51] = zt, t[52] = Q, t[53] = K, t[54] = A, t[55] = R, t[56] = Vt, t[57] = c?.graphObjectValues, t[58] = c?.xAxis?.axis, t[59] = c?.xAxis?.labels, t[60] = c?.yAxis?.gridLines, t[61] = c?.yAxis?.labels, t[62] = c?.yAxis?.title, t[63] = Y, t[64] = ft, t[65] = Z, t[66] = Ct, t[67] = St, t[68] = yt, t[69] = bt, t[70] = vt, t[71] = Bt, t[72] = Dt, t[73] = tt, t[74] = S, t[75] = I, t[76] = It, t[77] = wt, t[78] = ct, t[79] = mt, t[80] = ht;
1986
1991
  } else
1987
- bt = t[66], gt = t[67], dt = t[68], Wt = t[69], jt = t[70], Vt = t[71], et = t[72], S = t[73], j = t[74], zt = t[75], yt = t[76], ot = t[77], ut = t[78], mt = t[79];
1988
- let U;
1989
- t[99] !== bt || t[100] !== dt || t[101] !== mt ? (U = /* @__PURE__ */ i.jsxs(bt, { children: [
1990
- mt,
1991
- dt
1992
- ] }), t[99] = bt, t[100] = dt, t[101] = mt, t[102] = U) : U = t[102];
1993
- let vt;
1994
- t[103] !== f ? (vt = f.filter(Jl).map(Ul), t[103] = f, t[104] = vt) : vt = t[104];
1995
- let wt;
1996
- t[105] !== Wt || t[106] !== jt || t[107] !== Vt || t[108] !== et || t[109] !== S || t[110] !== U || t[111] !== vt ? (wt = /* @__PURE__ */ i.jsxs("g", { transform: Wt, children: [
1997
- jt,
1998
- Vt,
1999
- et,
1992
+ St = t[67], yt = t[68], bt = t[69], vt = t[70], Bt = t[71], Dt = t[72], tt = t[73], S = t[74], I = t[75], It = t[76], wt = t[77], ct = t[78], mt = t[79], ht = t[80];
1993
+ let q;
1994
+ t[101] !== St || t[102] !== bt || t[103] !== ht ? (q = /* @__PURE__ */ i.jsxs(St, { children: [
1995
+ ht,
1996
+ bt
1997
+ ] }), t[101] = St, t[102] = bt, t[103] = ht, t[104] = q) : q = t[104];
1998
+ let Ot;
1999
+ t[105] !== p ? (Ot = p.filter(Qs).map(Ks), t[105] = p, t[106] = Ot) : Ot = t[106];
2000
+ let Mt;
2001
+ t[107] !== vt || t[108] !== Bt || t[109] !== Dt || t[110] !== tt || t[111] !== S || t[112] !== q || t[113] !== Ot ? (Mt = /* @__PURE__ */ i.jsxs("g", { transform: vt, children: [
2002
+ Bt,
2003
+ Dt,
2004
+ tt,
2000
2005
  S,
2006
+ q,
2007
+ Ot
2008
+ ] }), t[107] = vt, t[108] = Bt, t[109] = Dt, t[110] = tt, t[111] = S, t[112] = q, t[113] = Ot, t[114] = Mt) : Mt = t[114];
2009
+ let U;
2010
+ t[115] !== yt || t[116] !== I || t[117] !== It || t[118] !== wt || t[119] !== ct || t[120] !== mt || t[121] !== Mt ? (U = /* @__PURE__ */ i.jsx(yt, { width: I, height: It, viewBox: wt, direction: ct, ref: mt, children: Mt }), t[115] = yt, t[116] = I, t[117] = It, t[118] = wt, t[119] = ct, t[120] = mt, t[121] = Mt, t[122] = U) : U = t[122];
2011
+ let kt;
2012
+ t[123] !== s?.tooltip || t[124] !== L || t[125] !== ot || t[126] !== r || t[127] !== c?.tooltip || t[128] !== et ? (kt = r && et && L && ot ? /* @__PURE__ */ i.jsx(je, { data: r, body: et, xPos: L, yPos: ot, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = L, t[125] = ot, t[126] = r, t[127] = c?.tooltip, t[128] = et, t[129] = kt) : kt = t[129];
2013
+ let v;
2014
+ t[130] !== s?.modal || t[131] !== pt || t[132] !== gt ? (v = pt && gt !== void 0 ? /* @__PURE__ */ i.jsx(Be, { body: pt, data: gt, setData: y, className: s?.modal }) : null, t[130] = s?.modal, t[131] = pt, t[132] = gt, t[133] = v) : v = t[133];
2015
+ let $;
2016
+ return t[134] !== U || t[135] !== kt || t[136] !== v ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2001
2017
  U,
2002
- vt
2003
- ] }), t[105] = Wt, t[106] = jt, t[107] = Vt, t[108] = et, t[109] = S, t[110] = U, t[111] = vt, t[112] = wt) : wt = t[112];
2004
- let J;
2005
- t[113] !== gt || t[114] !== j || t[115] !== zt || t[116] !== yt || t[117] !== ot || t[118] !== ut || t[119] !== wt ? (J = /* @__PURE__ */ i.jsx(gt, { width: j, height: zt, viewBox: yt, direction: ot, ref: ut, children: wt }), t[113] = gt, t[114] = j, t[115] = zt, t[116] = yt, t[117] = ot, t[118] = ut, t[119] = wt, t[120] = J) : J = t[120];
2006
- let At;
2007
- t[121] !== l?.tooltip || t[122] !== L || t[123] !== Ct || t[124] !== o || t[125] !== r?.tooltip || t[126] !== it ? (At = o && it && L && Ct ? /* @__PURE__ */ i.jsx(Ie, { data: o, body: it, xPos: L, yPos: Ct, backgroundStyle: r?.tooltip, className: l?.tooltip }) : null, t[121] = l?.tooltip, t[122] = L, t[123] = Ct, t[124] = o, t[125] = r?.tooltip, t[126] = it, t[127] = At) : At = t[127];
2008
- let g;
2009
- t[128] !== l?.modal || t[129] !== ft || t[130] !== O ? (g = ft && O !== void 0 ? /* @__PURE__ */ i.jsx(Te, { body: ft, data: O, setData: z, className: l?.modal }) : null, t[128] = l?.modal, t[129] = ft, t[130] = O, t[131] = g) : g = t[131];
2010
- let b;
2011
- return t[132] !== J || t[133] !== At || t[134] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2012
- J,
2013
- At,
2014
- g
2015
- ] }), t[132] = J, t[133] = At, t[134] = g, t[135] = b) : b = t[135], b;
2018
+ kt,
2019
+ v
2020
+ ] }), t[134] = U, t[135] = kt, t[136] = v, t[137] = $) : $ = t[137], $;
2016
2021
  }
2017
- function Ul(e) {
2022
+ function Ks(e) {
2018
2023
  return e.layer;
2019
2024
  }
2020
- function Jl(e) {
2025
+ function Qs(e) {
2021
2026
  return e.position === "after";
2022
2027
  }
2023
- function Kl(e) {
2028
+ function Zs(e) {
2024
2029
  return e;
2025
2030
  }
2026
- function Ql(e) {
2031
+ function _s(e) {
2027
2032
  return e || 0;
2028
2033
  }
2029
- function Zl(e) {
2034
+ function tl(e) {
2030
2035
  return e.layer;
2031
2036
  }
2032
- function _l(e) {
2037
+ function el(e) {
2033
2038
  return e.position === "before";
2034
2039
  }
2035
- function ts(e) {
2040
+ function il(e) {
2036
2041
  return e !== 0;
2037
2042
  }
2038
- function es(e) {
2043
+ function sl(e) {
2039
2044
  return e !== 0;
2040
2045
  }
2041
- function is(e) {
2046
+ function ll(e) {
2042
2047
  return `${e.id}`;
2043
2048
  }
2044
- function ls(e) {
2045
- const t = we.c(126), {
2046
- data: s,
2049
+ function al(e) {
2050
+ const t = we.c(127), {
2051
+ data: l,
2047
2052
  graphTitle: X,
2048
2053
  colors: Ut,
2049
- sources: Kt,
2050
- graphDescription: Lt,
2051
- barPadding: Ot,
2052
- showTicks: Tt,
2053
- truncateBy: P,
2054
- height: K,
2055
- width: y,
2056
- footNote: st,
2057
- colorDomain: ht,
2058
- colorLegendTitle: it,
2059
- padding: Jt,
2054
+ sources: Jt,
2055
+ graphDescription: Tt,
2056
+ barPadding: Ct,
2057
+ showTicks: Ft,
2058
+ truncateBy: W,
2059
+ height: J,
2060
+ width: A,
2061
+ footNote: R,
2062
+ colorDomain: ft,
2063
+ colorLegendTitle: et,
2064
+ padding: Lt,
2060
2065
  backgroundColor: Y,
2061
- topMargin: at,
2062
- bottomMargin: Mt,
2063
- leftMargin: kt,
2064
- rightMargin: Gt,
2065
- tooltip: w,
2066
- onSeriesMouseOver: Q,
2067
- suffix: E,
2066
+ topMargin: lt,
2067
+ bottomMargin: Vt,
2068
+ leftMargin: zt,
2069
+ rightMargin: Xt,
2070
+ tooltip: C,
2071
+ onSeriesMouseOver: K,
2072
+ suffix: B,
2068
2073
  prefix: T,
2069
- showLabels: rt,
2070
- relativeHeight: Z,
2071
- showValues: ft,
2072
- refValues: B,
2073
- graphID: _,
2074
- maxValue: lt,
2075
- onSeriesMouseClick: r,
2076
- graphDownload: l,
2077
- dataDownload: n,
2078
- language: u,
2079
- labelOrder: c,
2080
- minHeight: f,
2081
- theme: d,
2082
- maxBarThickness: V,
2083
- sortParameter: ct,
2084
- maxNumberOfBars: tt,
2085
- minBarThickness: Ft,
2086
- showColorScale: Pt,
2087
- ariaLabel: Et,
2088
- resetSelectionOnDoubleClick: q,
2089
- detailsOnClick: pt,
2090
- barAxisTitle: Rt,
2091
- noOfTicks: m,
2092
- valueColor: o,
2093
- styles: I,
2094
- classNames: O,
2095
- filterNA: z,
2096
- animate: L,
2097
- precision: N,
2098
- customLayers: Ct,
2099
- timeline: It,
2100
- naLabel: nt,
2101
- sortData: Nt,
2102
- orientation: H
2103
- } = e, G = Ut === void 0 ? ge.light.categoricalColors.colors : Ut, $ = Ot === void 0 ? 0.25 : Ot, Ht = Tt === void 0 ? !0 : Tt, bt = P === void 0 ? 999 : P, gt = Y === void 0 ? !1 : Y, dt = E === void 0 ? "" : E, Wt = T === void 0 ? "" : T, jt = rt === void 0 ? !0 : rt, Vt = ft === void 0 ? !0 : ft, et = l === void 0 ? !1 : l, S = n === void 0 ? !1 : n, j = u === void 0 ? "en" : u, zt = f === void 0 ? 0 : f, yt = d === void 0 ? "light" : d, ot = Pt === void 0 ? !0 : Pt, ut = q === void 0 ? !0 : q, mt = m === void 0 ? 5 : m, U = z === void 0 ? !0 : z, vt = L === void 0 ? !1 : L, wt = N === void 0 ? 2 : N;
2104
- let J;
2105
- t[0] !== Ct ? (J = Ct === void 0 ? [] : Ct, t[0] = Ct, t[1] = J) : J = t[1];
2106
- const At = J;
2107
- let g;
2108
- t[2] !== It ? (g = It === void 0 ? {
2074
+ showLabels: dt,
2075
+ relativeHeight: Q,
2076
+ showValues: pt,
2077
+ refValues: F,
2078
+ graphID: Z,
2079
+ maxValue: it,
2080
+ onSeriesMouseClick: c,
2081
+ graphDownload: s,
2082
+ dataDownload: a,
2083
+ language: m,
2084
+ labelOrder: d,
2085
+ minHeight: p,
2086
+ theme: x,
2087
+ maxBarThickness: at,
2088
+ sortParameter: D,
2089
+ maxNumberOfBars: E,
2090
+ minBarThickness: Yt,
2091
+ showColorScale: Et,
2092
+ ariaLabel: Pt,
2093
+ resetSelectionOnDoubleClick: Ht,
2094
+ detailsOnClick: nt,
2095
+ barAxisTitle: ut,
2096
+ noOfTicks: _,
2097
+ valueColor: u,
2098
+ styles: r,
2099
+ classNames: V,
2100
+ filterNA: gt,
2101
+ animate: y,
2102
+ precision: L,
2103
+ customLayers: Gt,
2104
+ timeline: ot,
2105
+ naLabel: Rt,
2106
+ sortData: rt,
2107
+ orientation: Wt,
2108
+ hideAxisLine: G
2109
+ } = e, st = Ut === void 0 ? pe.light.categoricalColors.colors : Ut, k = Ct === void 0 ? 0.25 : Ct, xt = Ft === void 0 ? !0 : Ft, St = W === void 0 ? 999 : W, yt = Y === void 0 ? !1 : Y, bt = B === void 0 ? "" : B, vt = T === void 0 ? "" : T, Bt = dt === void 0 ? !0 : dt, Dt = pt === void 0 ? !0 : pt, tt = s === void 0 ? !1 : s, S = a === void 0 ? !1 : a, I = m === void 0 ? "en" : m, It = p === void 0 ? 0 : p, wt = x === void 0 ? "light" : x, ct = Et === void 0 ? !0 : Et, mt = Ht === void 0 ? !0 : Ht, ht = _ === void 0 ? 5 : _, q = gt === void 0 ? !0 : gt, Ot = y === void 0 ? !1 : y, Mt = L === void 0 ? 2 : L;
2110
+ let U;
2111
+ t[0] !== Gt ? (U = Gt === void 0 ? [] : Gt, t[0] = Gt, t[1] = U) : U = t[1];
2112
+ const kt = U;
2113
+ let v;
2114
+ t[2] !== ot ? (v = ot === void 0 ? {
2109
2115
  enabled: !1,
2110
2116
  autoplay: !1,
2111
2117
  showOnlyActiveDate: !0
2112
- } : It, t[2] = It, t[3] = g) : g = t[3];
2113
- const b = g, v = nt === void 0 ? "NA" : nt, xt = (H === void 0 ? "vertical" : H) === "horizontal" ? Bl : ql, [Xt, A] = te(0), [h, x] = te(0), [Yt, Zt] = te(b.autoplay);
2114
- let F;
2115
- if (t[4] !== s || t[5] !== b.dateFormat) {
2116
- let Dt;
2117
- t[7] !== b.dateFormat ? (Dt = (se) => Ee(`${se.date}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = b.dateFormat, t[8] = Dt) : Dt = t[8], F = [...new Set(s.filter(gs).map(Dt))], F.sort(ps), t[4] = s, t[5] = b.dateFormat, t[6] = F;
2118
+ } : ot, t[2] = ot, t[3] = v) : v = t[3];
2119
+ const $ = v, O = Rt === void 0 ? "NA" : Rt, b = Wt === void 0 ? "vertical" : Wt, At = G === void 0 ? !1 : G, $t = b === "horizontal" ? Ps : Js, [M, f] = Zt(0), [g, Nt] = Zt(0), [qt, Qt] = Zt($.autoplay);
2120
+ let P;
2121
+ if (t[4] !== l || t[5] !== $.dateFormat) {
2122
+ let jt;
2123
+ t[7] !== $.dateFormat ? (jt = (se) => Re(`${se.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = jt) : jt = t[8], P = [...new Set(l.filter(bl).map(jt))], P.sort(yl), t[4] = l, t[5] = $.dateFormat, t[6] = P;
2118
2124
  } else
2119
- F = t[6];
2120
- const M = F, [_t, W] = te(b.autoplay ? 0 : M.length - 1), [R, D] = te(void 0), St = ve(null), a = ve(null);
2121
- let $t, k;
2122
- t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($t = () => {
2123
- const Dt = new ResizeObserver((se) => {
2124
- A(se[0].target.clientWidth || 620), x(se[0].target.clientHeight || 480);
2125
+ P = t[6];
2126
+ const N = P, [z, j] = Zt($.autoplay ? 0 : N.length - 1), [h, w] = Zt(void 0), n = ve(null), H = ve(null);
2127
+ let o, ie;
2128
+ t[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = () => {
2129
+ const jt = new ResizeObserver((se) => {
2130
+ f(se[0].target.clientWidth || 620), Nt(se[0].target.clientHeight || 480);
2125
2131
  });
2126
- return St.current && Dt.observe(St.current), () => Dt.disconnect();
2127
- }, k = [], t[9] = $t, t[10] = k) : ($t = t[9], k = t[10]), De($t, k);
2128
- let Bt, qt;
2129
- t[11] !== Yt || t[12] !== b.speed || t[13] !== M ? (Bt = () => {
2130
- const Dt = setInterval(() => {
2131
- W((se) => se < M.length - 1 ? se + 1 : 0);
2132
- }, (b.speed || 2) * 1e3);
2133
- return Yt || clearInterval(Dt), () => clearInterval(Dt);
2134
- }, qt = [M, Yt, b.speed], t[11] = Yt, t[12] = b.speed, t[13] = M, t[14] = Bt, t[15] = qt) : (Bt = t[14], qt = t[15]), De(Bt, qt);
2135
- const C = b.dateFormat || "yyyy";
2132
+ return n.current && jt.observe(n.current), () => jt.disconnect();
2133
+ }, ie = [], t[9] = o, t[10] = ie) : (o = t[9], ie = t[10]), Ie(o, ie);
2134
+ let le, ge;
2135
+ t[11] !== qt || t[12] !== $.speed || t[13] !== N ? (le = () => {
2136
+ const jt = setInterval(() => {
2137
+ j((se) => se < N.length - 1 ? se + 1 : 0);
2138
+ }, ($.speed || 2) * 1e3);
2139
+ return qt || clearInterval(jt), () => clearInterval(jt);
2140
+ }, ge = [N, qt, $.speed], t[11] = qt, t[12] = $.speed, t[13] = N, t[14] = le, t[15] = ge) : (le = t[14], ge = t[15]), Ie(le, ge);
2141
+ const Oe = $.dateFormat || "yyyy";
2136
2142
  let fe;
2137
- t[16] !== _t || t[17] !== C || t[18] !== b.showOnlyActiveDate || t[19] !== M ? (fe = Xe(M, _t, b.showOnlyActiveDate, C), t[16] = _t, t[17] = C, t[18] = b.showOnlyActiveDate, t[19] = M, t[20] = fe) : fe = t[20];
2138
- const de = fe, ye = O?.graphContainer, pe = I?.graphContainer;
2143
+ t[16] !== z || t[17] !== Oe || t[18] !== $.showOnlyActiveDate || t[19] !== N ? (fe = Ee(N, z, $.showOnlyActiveDate, Oe), t[16] = z, t[17] = Oe, t[18] = $.showOnlyActiveDate, t[19] = N, t[20] = fe) : fe = t[20];
2144
+ const Ae = fe, ye = V?.graphContainer, he = r?.graphContainer;
2139
2145
  let ae;
2140
- t[21] !== O?.description || t[22] !== O?.title || t[23] !== s || t[24] !== S || t[25] !== Lt || t[26] !== et || t[27] !== X || t[28] !== I?.description || t[29] !== I?.title || t[30] !== y ? (ae = X || Lt || et || S ? /* @__PURE__ */ i.jsx(Qe, { styles: {
2141
- title: I?.title,
2142
- description: I?.description
2146
+ t[21] !== V?.description || t[22] !== V?.title || t[23] !== l || t[24] !== S || t[25] !== Tt || t[26] !== tt || t[27] !== X || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ae = X || Tt || tt || S ? /* @__PURE__ */ i.jsx(_e, { styles: {
2147
+ title: r?.title,
2148
+ description: r?.description
2143
2149
  }, classNames: {
2144
- title: O?.title,
2145
- description: O?.description
2146
- }, graphTitle: X, graphDescription: Lt, width: y, graphDownload: et ? a : void 0, dataDownload: S ? s.map(fs).filter(hs).length > 0 ? s.map(xs).filter(ms) : s.filter(us) : null }) : null, t[21] = O?.description, t[22] = O?.title, t[23] = s, t[24] = S, t[25] = Lt, t[26] = et, t[27] = X, t[28] = I?.description, t[29] = I?.title, t[30] = y, t[31] = ae) : ae = t[31];
2150
+ title: V?.title,
2151
+ description: V?.description
2152
+ }, graphTitle: X, graphDescription: Tt, width: A, graphDownload: tt ? H : void 0, dataDownload: S ? l.map(gl).filter(pl).length > 0 ? l.map(fl).filter(hl) : l.filter(ml) : null }) : null, t[21] = V?.description, t[22] = V?.title, t[23] = l, t[24] = S, t[25] = Tt, t[26] = tt, t[27] = X, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ae) : ae = t[31];
2147
2153
  let ne;
2148
- t[32] !== _t || t[33] !== de || t[34] !== Yt || t[35] !== b.enabled || t[36] !== M ? (ne = b.enabled && M.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2154
+ t[32] !== z || t[33] !== Ae || t[34] !== qt || t[35] !== $.enabled || t[36] !== N ? (ne = $.enabled && N.length > 0 && Ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
2149
2155
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
2150
- Zt(!Yt);
2151
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Yt ? "Click to pause animation" : "Click to play animation", children: Yt ? /* @__PURE__ */ i.jsx(ei, {}) : /* @__PURE__ */ i.jsx(ii, {}) }),
2152
- /* @__PURE__ */ i.jsx(Ye, { min: M[0], max: M[M.length - 1], marks: de, step: null, defaultValue: M[M.length - 1], value: M[_t], onChangeComplete: (Dt) => {
2153
- W(M.indexOf(Dt));
2154
- }, onChange: (Dt) => {
2155
- W(M.indexOf(Dt));
2156
+ Qt(!qt);
2157
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": qt ? "Click to pause animation" : "Click to play animation", children: qt ? /* @__PURE__ */ i.jsx(si, {}) : /* @__PURE__ */ i.jsx(li, {}) }),
2158
+ /* @__PURE__ */ i.jsx(Ge, { min: N[0], max: N[N.length - 1], marks: Ae, step: null, defaultValue: N[N.length - 1], value: N[z], onChangeComplete: (jt) => {
2159
+ j(N.indexOf(jt));
2160
+ }, onChange: (jt) => {
2161
+ j(N.indexOf(jt));
2156
2162
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
2157
- ] }) : null, t[32] = _t, t[33] = de, t[34] = Yt, t[35] = b.enabled, t[36] = M, t[37] = ne) : ne = t[37];
2158
- let ue;
2159
- t[38] !== O?.colorLegend || t[39] !== ht || t[40] !== it || t[41] !== G || t[42] !== s.length || t[43] !== ot || t[44] !== y ? (ue = ot && s.length > 0 ? /* @__PURE__ */ i.jsx(_e, { width: y, colorDomain: ht, colors: G, colorLegendTitle: it, setSelectedColor: D, showNAColor: !1, className: O?.colorLegend }) : null, t[38] = O?.colorLegend, t[39] = ht, t[40] = it, t[41] = G, t[42] = s.length, t[43] = ot, t[44] = y, t[45] = ue) : ue = t[45];
2163
+ ] }) : null, t[32] = z, t[33] = Ae, t[34] = qt, t[35] = $.enabled, t[36] = N, t[37] = ne) : ne = t[37];
2164
+ let de;
2165
+ t[38] !== V?.colorLegend || t[39] !== ft || t[40] !== et || t[41] !== st || t[42] !== l.length || t[43] !== ct || t[44] !== A ? (de = ct && l.length > 0 ? /* @__PURE__ */ i.jsx(ei, { width: A, colorDomain: ft, colors: st, colorLegendTitle: et, setSelectedColor: w, showNAColor: !1, className: V?.colorLegend }) : null, t[38] = V?.colorLegend, t[39] = ft, t[40] = et, t[41] = st, t[42] = l.length, t[43] = ct, t[44] = A, t[45] = de) : de = t[45];
2160
2166
  let oe;
2161
- t[46] !== s.length ? (oe = s.length === 0 && /* @__PURE__ */ i.jsx(ti, {}), t[46] = s.length, t[47] = oe) : oe = t[47];
2167
+ t[46] !== l.length ? (oe = l.length === 0 && /* @__PURE__ */ i.jsx(ii, {}), t[46] = l.length, t[47] = oe) : oe = t[47];
2162
2168
  let re;
2163
- t[48] !== xt || t[49] !== vt || t[50] !== Rt || t[51] !== $ || t[52] !== Mt || t[53] !== O || t[54] !== ht || t[55] !== G || t[56] !== At || t[57] !== s || t[58] !== pt || t[59] !== U || t[60] !== _t || t[61] !== c || t[62] !== j || t[63] !== kt || t[64] !== V || t[65] !== tt || t[66] !== lt || t[67] !== Ft || t[68] !== v || t[69] !== mt || t[70] !== r || t[71] !== Q || t[72] !== wt || t[73] !== Wt || t[74] !== B || t[75] !== ut || t[76] !== Gt || t[77] !== R || t[78] !== jt || t[79] !== Ht || t[80] !== Vt || t[81] !== Nt || t[82] !== ct || t[83] !== I || t[84] !== dt || t[85] !== h || t[86] !== Xt || t[87] !== b.dateFormat || t[88] !== b.enabled || t[89] !== w || t[90] !== at || t[91] !== bt || t[92] !== M || t[93] !== o ? (re = Xt && h && s.length > 0 ? /* @__PURE__ */ i.jsx(xt, { data: ct !== void 0 ? ct === "total" ? Pe(ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(ds) : Dt), rs, [Nt || "asc"]).filter((Dt, se) => tt ? se < tt : !0) : Pe(ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(os) : Dt), (Dt) => le(Dt.size[ct]) ? -1 / 0 : Dt.size[ct], [Nt || "asc"]).filter((Dt, se) => tt ? se < tt : !0) : ze(s, b.dateFormat || "yyyy").filter((Dt) => b.enabled ? Dt.date === Me(new Date(M[_t]), b.dateFormat || "yyyy") : Dt).filter((Dt) => U ? !Dt.size.every(ns) : Dt).filter((Dt, se) => tt ? se < tt : !0), barColors: G, width: Xt, height: h, barPadding: $, showTicks: Ht, leftMargin: kt, rightMargin: Gt, topMargin: at, bottomMargin: Mt, truncateBy: bt, showLabels: jt, tooltip: w, onSeriesMouseOver: Q, showValues: Vt, suffix: dt, prefix: Wt, refValues: B, maxValue: le(lt) ? Math.max(...s.map(ss)) : lt, onSeriesMouseClick: r, selectedColor: R, rtl: j === "he" || j === "ar", labelOrder: c, maxBarThickness: V, minBarThickness: Ft, resetSelectionOnDoubleClick: ut, detailsOnClick: pt, barAxisTitle: Rt, noOfTicks: mt, valueColor: o, classNames: O, styles: I, animate: vt === !0 ? {
2169
+ t[48] !== $t || t[49] !== Ot || t[50] !== ut || t[51] !== k || t[52] !== Vt || t[53] !== V || t[54] !== ft || t[55] !== st || t[56] !== kt || t[57] !== l || t[58] !== nt || t[59] !== q || t[60] !== At || t[61] !== z || t[62] !== d || t[63] !== I || t[64] !== zt || t[65] !== at || t[66] !== E || t[67] !== it || t[68] !== Yt || t[69] !== O || t[70] !== ht || t[71] !== c || t[72] !== K || t[73] !== Mt || t[74] !== vt || t[75] !== F || t[76] !== mt || t[77] !== Xt || t[78] !== h || t[79] !== Bt || t[80] !== xt || t[81] !== Dt || t[82] !== rt || t[83] !== D || t[84] !== r || t[85] !== bt || t[86] !== g || t[87] !== M || t[88] !== $.dateFormat || t[89] !== $.enabled || t[90] !== C || t[91] !== lt || t[92] !== St || t[93] !== N || t[94] !== u ? (re = M && g && l.length > 0 ? /* @__PURE__ */ i.jsx($t, { hideAxisLine: At, data: D !== void 0 ? D === "total" ? We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? jt.date === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(xl) : jt), dl, [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : We(De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? jt.date === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(cl) : jt), (jt) => ee(jt.size[D]) ? -1 / 0 : jt.size[D], [rt || "asc"]).filter((jt, se) => E ? se < E : !0) : De(l, $.dateFormat || "yyyy").filter((jt) => $.enabled ? jt.date === Ce(new Date(N[z]), $.dateFormat || "yyyy") : jt).filter((jt) => q ? !jt.size.every(rl) : jt).filter((jt, se) => E ? se < E : !0), barColors: st, width: M, height: g, barPadding: k, showTicks: xt, leftMargin: zt, rightMargin: Xt, topMargin: lt, bottomMargin: Vt, truncateBy: St, showLabels: Bt, tooltip: C, onSeriesMouseOver: K, showValues: Dt, suffix: bt, prefix: vt, refValues: F, maxValue: ee(it) ? Math.max(...l.map(nl)) : it, onSeriesMouseClick: c, selectedColor: h, rtl: I === "he" || I === "ar", labelOrder: d, maxBarThickness: at, minBarThickness: Yt, resetSelectionOnDoubleClick: mt, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: ht, valueColor: u, classNames: V, styles: r, animate: Ot === !0 ? {
2164
2170
  duration: 0.5,
2165
2171
  once: !0,
2166
2172
  amount: 0.5
2167
- } : vt || {
2173
+ } : Ot || {
2168
2174
  duration: 0,
2169
2175
  once: !0,
2170
2176
  amount: 0
2171
- }, colorDomain: ht, precision: wt, customLayers: At, naLabel: v }) : null, t[48] = xt, t[49] = vt, t[50] = Rt, t[51] = $, t[52] = Mt, t[53] = O, t[54] = ht, t[55] = G, t[56] = At, t[57] = s, t[58] = pt, t[59] = U, t[60] = _t, t[61] = c, t[62] = j, t[63] = kt, t[64] = V, t[65] = tt, t[66] = lt, t[67] = Ft, t[68] = v, t[69] = mt, t[70] = r, t[71] = Q, t[72] = wt, t[73] = Wt, t[74] = B, t[75] = ut, t[76] = Gt, t[77] = R, t[78] = jt, t[79] = Ht, t[80] = Vt, t[81] = Nt, t[82] = ct, t[83] = I, t[84] = dt, t[85] = h, t[86] = Xt, t[87] = b.dateFormat, t[88] = b.enabled, t[89] = w, t[90] = at, t[91] = bt, t[92] = M, t[93] = o, t[94] = re) : re = t[94];
2172
- let me;
2173
- t[95] !== oe || t[96] !== re ? (me = /* @__PURE__ */ i.jsxs(li, { ref: St, children: [
2177
+ }, colorDomain: ft, precision: Mt, customLayers: kt, naLabel: O }) : null, t[48] = $t, t[49] = Ot, t[50] = ut, t[51] = k, t[52] = Vt, t[53] = V, t[54] = ft, t[55] = st, t[56] = kt, t[57] = l, t[58] = nt, t[59] = q, t[60] = At, t[61] = z, t[62] = d, t[63] = I, t[64] = zt, t[65] = at, t[66] = E, t[67] = it, t[68] = Yt, t[69] = O, t[70] = ht, t[71] = c, t[72] = K, t[73] = Mt, t[74] = vt, t[75] = F, t[76] = mt, t[77] = Xt, t[78] = h, t[79] = Bt, t[80] = xt, t[81] = Dt, t[82] = rt, t[83] = D, t[84] = r, t[85] = bt, t[86] = g, t[87] = M, t[88] = $.dateFormat, t[89] = $.enabled, t[90] = C, t[91] = lt, t[92] = St, t[93] = N, t[94] = u, t[95] = re) : re = t[95];
2178
+ let ue;
2179
+ t[96] !== oe || t[97] !== re ? (ue = /* @__PURE__ */ i.jsxs(ai, { ref: n, children: [
2174
2180
  oe,
2175
2181
  re
2176
- ] }), t[95] = oe, t[96] = re, t[97] = me) : me = t[97];
2182
+ ] }), t[96] = oe, t[97] = re, t[98] = ue) : ue = t[98];
2177
2183
  let xe;
2178
- t[98] !== ue || t[99] !== me ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2179
- ue,
2180
- me
2181
- ] }), t[98] = ue, t[99] = me, t[100] = xe) : xe = t[100];
2184
+ t[99] !== de || t[100] !== ue ? (xe = /* @__PURE__ */ i.jsxs("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: [
2185
+ de,
2186
+ ue
2187
+ ] }), t[99] = de, t[100] = ue, t[101] = xe) : xe = t[101];
2182
2188
  let ce;
2183
- t[101] !== O?.footnote || t[102] !== O?.source || t[103] !== st || t[104] !== Kt || t[105] !== I?.footnote || t[106] !== I?.source || t[107] !== y ? (ce = Kt || st ? /* @__PURE__ */ i.jsx(Ze, { styles: {
2184
- footnote: I?.footnote,
2185
- source: I?.source
2189
+ t[102] !== V?.footnote || t[103] !== V?.source || t[104] !== R || t[105] !== Jt || t[106] !== r?.footnote || t[107] !== r?.source || t[108] !== A ? (ce = Jt || R ? /* @__PURE__ */ i.jsx(ti, { styles: {
2190
+ footnote: r?.footnote,
2191
+ source: r?.source
2186
2192
  }, classNames: {
2187
- footnote: O?.footnote,
2188
- source: O?.source
2189
- }, sources: Kt, footNote: st, width: y }) : null, t[101] = O?.footnote, t[102] = O?.source, t[103] = st, t[104] = Kt, t[105] = I?.footnote, t[106] = I?.source, t[107] = y, t[108] = ce) : ce = t[108];
2190
- let Qt;
2191
- return t[109] !== Et || t[110] !== gt || t[111] !== _ || t[112] !== K || t[113] !== j || t[114] !== zt || t[115] !== Jt || t[116] !== Z || t[117] !== ye || t[118] !== pe || t[119] !== ae || t[120] !== ne || t[121] !== xe || t[122] !== ce || t[123] !== yt || t[124] !== y ? (Qt = /* @__PURE__ */ i.jsxs(si, { className: ye, style: pe, id: _, ref: a, "aria-label": Et, backgroundColor: gt, theme: yt, language: j, minHeight: zt, width: y, height: K, relativeHeight: Z, padding: Jt, children: [
2193
+ footnote: V?.footnote,
2194
+ source: V?.source
2195
+ }, sources: Jt, footNote: R, width: A }) : null, t[102] = V?.footnote, t[103] = V?.source, t[104] = R, t[105] = Jt, t[106] = r?.footnote, t[107] = r?.source, t[108] = A, t[109] = ce) : ce = t[109];
2196
+ let Kt;
2197
+ return t[110] !== Pt || t[111] !== yt || t[112] !== Z || t[113] !== J || t[114] !== I || t[115] !== It || t[116] !== Lt || t[117] !== Q || t[118] !== ye || t[119] !== he || t[120] !== ae || t[121] !== ne || t[122] !== xe || t[123] !== ce || t[124] !== wt || t[125] !== A ? (Kt = /* @__PURE__ */ i.jsxs(ni, { className: ye, style: he, id: Z, ref: H, "aria-label": Pt, backgroundColor: yt, theme: wt, language: I, minHeight: It, width: A, height: J, relativeHeight: Q, padding: Lt, children: [
2192
2198
  ae,
2193
2199
  ne,
2194
2200
  xe,
2195
2201
  ce
2196
- ] }), t[109] = Et, t[110] = gt, t[111] = _, t[112] = K, t[113] = j, t[114] = zt, t[115] = Jt, t[116] = Z, t[117] = ye, t[118] = pe, t[119] = ae, t[120] = ne, t[121] = xe, t[122] = ce, t[123] = yt, t[124] = y, t[125] = Qt) : Qt = t[125], Qt;
2202
+ ] }), t[110] = Pt, t[111] = yt, t[112] = Z, t[113] = J, t[114] = I, t[115] = It, t[116] = Lt, t[117] = Q, t[118] = ye, t[119] = he, t[120] = ae, t[121] = ne, t[122] = xe, t[123] = ce, t[124] = wt, t[125] = A, t[126] = Kt) : Kt = t[126], Kt;
2197
2203
  }
2198
- function ss(e) {
2199
- return he(e.size.filter(as)) || 0;
2204
+ function nl(e) {
2205
+ return me(e.size.filter(ol)) || 0;
2200
2206
  }
2201
- function as(e) {
2202
- return !le(e);
2207
+ function ol(e) {
2208
+ return !ee(e);
2203
2209
  }
2204
- function ns(e) {
2210
+ function rl(e) {
2205
2211
  return e == null;
2206
2212
  }
2207
- function os(e) {
2213
+ function cl(e) {
2208
2214
  return e == null;
2209
2215
  }
2210
- function rs(e) {
2211
- return he(e.size.filter(cs));
2216
+ function dl(e) {
2217
+ return me(e.size.filter(ul));
2212
2218
  }
2213
- function cs(e) {
2214
- return !le(e);
2219
+ function ul(e) {
2220
+ return !ee(e);
2215
2221
  }
2216
- function ds(e) {
2222
+ function xl(e) {
2217
2223
  return e == null;
2218
2224
  }
2219
- function us(e) {
2225
+ function ml(e) {
2220
2226
  return e !== void 0;
2221
2227
  }
2222
- function ms(e) {
2228
+ function hl(e) {
2223
2229
  return e !== void 0;
2224
2230
  }
2225
- function xs(e) {
2231
+ function fl(e) {
2226
2232
  return e.data;
2227
2233
  }
2228
- function hs(e) {
2234
+ function pl(e) {
2229
2235
  return e !== void 0;
2230
2236
  }
2231
- function fs(e) {
2237
+ function gl(e) {
2232
2238
  return e.data;
2233
2239
  }
2234
- function ps(e, t) {
2240
+ function yl(e, t) {
2235
2241
  return e - t;
2236
2242
  }
2237
- function gs(e) {
2243
+ function bl(e) {
2238
2244
  return e.date;
2239
2245
  }
2240
- function Qs(e) {
2241
- const t = we.c(62), {
2242
- data: s,
2246
+ function _l(e) {
2247
+ const t = we.c(63), {
2248
+ data: l,
2243
2249
  graphTitle: X,
2244
2250
  colors: Ut,
2245
- barPadding: Kt,
2246
- showTicks: Lt,
2247
- leftMargin: Ot,
2248
- rightMargin: Tt,
2249
- topMargin: P,
2250
- bottomMargin: K,
2251
- truncateBy: y,
2252
- showLabels: st,
2253
- showValues: ht,
2254
- backgroundColor: it,
2255
- suffix: Jt,
2251
+ barPadding: Jt,
2252
+ showTicks: Tt,
2253
+ leftMargin: Ct,
2254
+ rightMargin: Ft,
2255
+ topMargin: W,
2256
+ bottomMargin: J,
2257
+ truncateBy: A,
2258
+ showLabels: R,
2259
+ showValues: ft,
2260
+ backgroundColor: et,
2261
+ suffix: Lt,
2256
2262
  prefix: Y,
2257
- sources: at,
2258
- graphDescription: Mt,
2259
- height: kt,
2260
- width: Gt,
2261
- footNote: w,
2262
- colorDomain: Q,
2263
- colorLegendTitle: E,
2263
+ sources: lt,
2264
+ graphDescription: Vt,
2265
+ height: zt,
2266
+ width: Xt,
2267
+ footNote: C,
2268
+ colorDomain: K,
2269
+ colorLegendTitle: B,
2264
2270
  padding: T,
2265
- relativeHeight: rt,
2266
- tooltip: Z,
2267
- onSeriesMouseOver: ft,
2268
- refValues: B,
2269
- showColorScale: _,
2270
- graphID: lt,
2271
- maxValue: r,
2272
- minValue: l,
2273
- highlightedDataPoints: n,
2274
- onSeriesMouseClick: u,
2275
- graphDownload: c,
2276
- dataDownload: f,
2277
- language: d,
2278
- theme: V,
2279
- sortData: ct,
2280
- labelOrder: tt,
2281
- showNAColor: Ft,
2282
- minHeight: Pt,
2283
- maxBarThickness: Et,
2284
- maxNumberOfBars: q,
2285
- minBarThickness: pt,
2286
- ariaLabel: Rt,
2287
- resetSelectionOnDoubleClick: m,
2288
- detailsOnClick: o,
2289
- barAxisTitle: I,
2290
- noOfTicks: O,
2291
- valueColor: z,
2292
- orientation: L,
2293
- styles: N,
2294
- classNames: Ct,
2295
- filterNA: It,
2296
- animate: nt,
2297
- dimmedOpacity: Nt,
2298
- precision: H,
2271
+ relativeHeight: dt,
2272
+ tooltip: Q,
2273
+ onSeriesMouseOver: pt,
2274
+ refValues: F,
2275
+ showColorScale: Z,
2276
+ graphID: it,
2277
+ maxValue: c,
2278
+ minValue: s,
2279
+ highlightedDataPoints: a,
2280
+ onSeriesMouseClick: m,
2281
+ graphDownload: d,
2282
+ dataDownload: p,
2283
+ language: x,
2284
+ theme: at,
2285
+ sortData: D,
2286
+ labelOrder: E,
2287
+ showNAColor: Yt,
2288
+ minHeight: Et,
2289
+ maxBarThickness: Pt,
2290
+ maxNumberOfBars: Ht,
2291
+ minBarThickness: nt,
2292
+ ariaLabel: ut,
2293
+ resetSelectionOnDoubleClick: _,
2294
+ detailsOnClick: u,
2295
+ barAxisTitle: r,
2296
+ noOfTicks: V,
2297
+ valueColor: gt,
2298
+ orientation: y,
2299
+ styles: L,
2300
+ classNames: Gt,
2301
+ filterNA: ot,
2302
+ animate: Rt,
2303
+ dimmedOpacity: rt,
2304
+ precision: Wt,
2299
2305
  customLayers: G,
2300
- timeline: $,
2301
- naLabel: Ht,
2302
- trackColor: bt
2303
- } = e, gt = L === void 0 ? "vertical" : L;
2304
- let dt;
2305
- return t[0] !== nt || t[1] !== Rt || t[2] !== it || t[3] !== I || t[4] !== Kt || t[5] !== K || t[6] !== Ct || t[7] !== Q || t[8] !== E || t[9] !== Ut || t[10] !== G || t[11] !== s || t[12] !== f || t[13] !== o || t[14] !== Nt || t[15] !== It || t[16] !== w || t[17] !== Mt || t[18] !== c || t[19] !== lt || t[20] !== X || t[21] !== kt || t[22] !== n || t[23] !== tt || t[24] !== d || t[25] !== Ot || t[26] !== Et || t[27] !== q || t[28] !== r || t[29] !== pt || t[30] !== Pt || t[31] !== l || t[32] !== Ht || t[33] !== O || t[34] !== u || t[35] !== ft || t[36] !== gt || t[37] !== T || t[38] !== H || t[39] !== Y || t[40] !== B || t[41] !== rt || t[42] !== m || t[43] !== Tt || t[44] !== _ || t[45] !== st || t[46] !== Ft || t[47] !== Lt || t[48] !== ht || t[49] !== ct || t[50] !== at || t[51] !== N || t[52] !== Jt || t[53] !== V || t[54] !== $ || t[55] !== Z || t[56] !== P || t[57] !== bt || t[58] !== y || t[59] !== z || t[60] !== Gt ? (dt = /* @__PURE__ */ i.jsx(yl, { data: s, graphTitle: X, colors: Ut, barPadding: Kt, showTicks: Lt, leftMargin: Ot, rightMargin: Tt, topMargin: P, bottomMargin: K, truncateBy: y, showLabels: st, showValues: ht, backgroundColor: it, suffix: Jt, prefix: Y, sources: at, graphDescription: Mt, height: kt, width: Gt, footNote: w, colorDomain: Q, colorLegendTitle: E, padding: T, relativeHeight: rt, tooltip: Z, onSeriesMouseOver: ft, refValues: B, showColorScale: _, graphID: lt, maxValue: r, minValue: l, highlightedDataPoints: n, onSeriesMouseClick: u, graphDownload: c, dataDownload: f, language: d, theme: V, sortData: ct, labelOrder: tt, showNAColor: Ft, minHeight: Pt, maxBarThickness: Et, maxNumberOfBars: q, minBarThickness: pt, ariaLabel: Rt, resetSelectionOnDoubleClick: m, styles: N, detailsOnClick: o, barAxisTitle: I, noOfTicks: O, valueColor: z, classNames: Ct, filterNA: It, animate: nt, dimmedOpacity: Nt, precision: H, customLayers: G, timeline: $, naLabel: Ht, orientation: gt, trackColor: bt }), t[0] = nt, t[1] = Rt, t[2] = it, t[3] = I, t[4] = Kt, t[5] = K, t[6] = Ct, t[7] = Q, t[8] = E, t[9] = Ut, t[10] = G, t[11] = s, t[12] = f, t[13] = o, t[14] = Nt, t[15] = It, t[16] = w, t[17] = Mt, t[18] = c, t[19] = lt, t[20] = X, t[21] = kt, t[22] = n, t[23] = tt, t[24] = d, t[25] = Ot, t[26] = Et, t[27] = q, t[28] = r, t[29] = pt, t[30] = Pt, t[31] = l, t[32] = Ht, t[33] = O, t[34] = u, t[35] = ft, t[36] = gt, t[37] = T, t[38] = H, t[39] = Y, t[40] = B, t[41] = rt, t[42] = m, t[43] = Tt, t[44] = _, t[45] = st, t[46] = Ft, t[47] = Lt, t[48] = ht, t[49] = ct, t[50] = at, t[51] = N, t[52] = Jt, t[53] = V, t[54] = $, t[55] = Z, t[56] = P, t[57] = bt, t[58] = y, t[59] = z, t[60] = Gt, t[61] = dt) : dt = t[61], dt;
2306
+ timeline: st,
2307
+ naLabel: k,
2308
+ trackColor: xt,
2309
+ hideAxisLine: St
2310
+ } = e, yt = y === void 0 ? "vertical" : y, bt = St === void 0 ? !1 : St;
2311
+ let vt;
2312
+ return t[0] !== Rt || t[1] !== ut || t[2] !== et || t[3] !== r || t[4] !== Jt || t[5] !== J || t[6] !== Gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== G || t[11] !== l || t[12] !== p || t[13] !== u || t[14] !== rt || t[15] !== ot || t[16] !== C || t[17] !== Vt || t[18] !== d || t[19] !== it || t[20] !== X || t[21] !== zt || t[22] !== bt || t[23] !== a || t[24] !== E || t[25] !== x || t[26] !== Ct || t[27] !== Pt || t[28] !== Ht || t[29] !== c || t[30] !== nt || t[31] !== Et || t[32] !== s || t[33] !== k || t[34] !== V || t[35] !== m || t[36] !== pt || t[37] !== yt || t[38] !== T || t[39] !== Wt || t[40] !== Y || t[41] !== F || t[42] !== dt || t[43] !== _ || t[44] !== Ft || t[45] !== Z || t[46] !== R || t[47] !== Yt || t[48] !== Tt || t[49] !== ft || t[50] !== D || t[51] !== lt || t[52] !== L || t[53] !== Lt || t[54] !== at || t[55] !== st || t[56] !== Q || t[57] !== W || t[58] !== xt || t[59] !== A || t[60] !== gt || t[61] !== Xt ? (vt = /* @__PURE__ */ i.jsx(vs, { data: l, graphTitle: X, colors: Ut, barPadding: Jt, showTicks: Tt, leftMargin: Ct, rightMargin: Ft, topMargin: W, bottomMargin: J, truncateBy: A, showLabels: R, showValues: ft, backgroundColor: et, suffix: Lt, prefix: Y, sources: lt, graphDescription: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, showColorScale: Z, graphID: it, maxValue: c, minValue: s, highlightedDataPoints: a, onSeriesMouseClick: m, graphDownload: d, dataDownload: p, language: x, theme: at, sortData: D, labelOrder: E, showNAColor: Yt, minHeight: Et, maxBarThickness: Pt, maxNumberOfBars: Ht, minBarThickness: nt, ariaLabel: ut, resetSelectionOnDoubleClick: _, styles: L, detailsOnClick: u, barAxisTitle: r, noOfTicks: V, valueColor: gt, classNames: Gt, filterNA: ot, animate: Rt, dimmedOpacity: rt, precision: Wt, customLayers: G, timeline: st, naLabel: k, orientation: yt, trackColor: xt, hideAxisLine: bt }), t[0] = Rt, t[1] = ut, t[2] = et, t[3] = r, t[4] = Jt, t[5] = J, t[6] = Gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = G, t[11] = l, t[12] = p, t[13] = u, t[14] = rt, t[15] = ot, t[16] = C, t[17] = Vt, t[18] = d, t[19] = it, t[20] = X, t[21] = zt, t[22] = bt, t[23] = a, t[24] = E, t[25] = x, t[26] = Ct, t[27] = Pt, t[28] = Ht, t[29] = c, t[30] = nt, t[31] = Et, t[32] = s, t[33] = k, t[34] = V, t[35] = m, t[36] = pt, t[37] = yt, t[38] = T, t[39] = Wt, t[40] = Y, t[41] = F, t[42] = dt, t[43] = _, t[44] = Ft, t[45] = Z, t[46] = R, t[47] = Yt, t[48] = Tt, t[49] = ft, t[50] = D, t[51] = lt, t[52] = L, t[53] = Lt, t[54] = at, t[55] = st, t[56] = Q, t[57] = W, t[58] = xt, t[59] = A, t[60] = gt, t[61] = Xt, t[62] = vt) : vt = t[62], vt;
2306
2313
  }
2307
- function Zs(e) {
2308
- const t = we.c(57), {
2309
- data: s,
2314
+ function ta(e) {
2315
+ const t = we.c(58), {
2316
+ data: l,
2310
2317
  graphTitle: X,
2311
2318
  colors: Ut,
2312
- sources: Kt,
2313
- graphDescription: Lt,
2314
- barPadding: Ot,
2315
- showTicks: Tt,
2316
- truncateBy: P,
2317
- height: K,
2318
- width: y,
2319
- footNote: st,
2320
- colorDomain: ht,
2321
- colorLegendTitle: it,
2322
- suffix: Jt,
2319
+ sources: Jt,
2320
+ graphDescription: Tt,
2321
+ barPadding: Ct,
2322
+ showTicks: Ft,
2323
+ truncateBy: W,
2324
+ height: J,
2325
+ width: A,
2326
+ footNote: R,
2327
+ colorDomain: ft,
2328
+ colorLegendTitle: et,
2329
+ suffix: Lt,
2323
2330
  prefix: Y,
2324
- showValues: at,
2325
- padding: Mt,
2326
- backgroundColor: kt,
2327
- leftMargin: Gt,
2328
- rightMargin: w,
2329
- topMargin: Q,
2330
- bottomMargin: E,
2331
+ showValues: lt,
2332
+ padding: Vt,
2333
+ backgroundColor: zt,
2334
+ leftMargin: Xt,
2335
+ rightMargin: C,
2336
+ topMargin: K,
2337
+ bottomMargin: B,
2331
2338
  showLabels: T,
2332
- relativeHeight: rt,
2333
- tooltip: Z,
2334
- onSeriesMouseOver: ft,
2335
- refValues: B,
2336
- graphID: _,
2337
- maxValue: lt,
2338
- minValue: r,
2339
- onSeriesMouseClick: l,
2340
- graphDownload: n,
2341
- dataDownload: u,
2342
- language: c,
2343
- labelOrder: f,
2344
- minHeight: d,
2345
- theme: V,
2346
- sortParameter: ct,
2347
- sortData: tt,
2348
- maxBarThickness: Ft,
2349
- ariaLabel: Pt,
2350
- resetSelectionOnDoubleClick: Et,
2351
- detailsOnClick: q,
2352
- barAxisTitle: pt,
2353
- noOfTicks: Rt,
2354
- valueColor: m,
2355
- orientation: o,
2356
- styles: I,
2357
- classNames: O,
2358
- filterNA: z,
2359
- animate: L,
2360
- precision: N,
2361
- customLayers: Ct,
2362
- showColorScale: It,
2363
- timeline: nt,
2364
- naLabel: Nt
2365
- } = e, H = o === void 0 ? "vertical" : o;
2366
- let G;
2367
- return t[0] !== L || t[1] !== Pt || t[2] !== kt || t[3] !== pt || t[4] !== Ot || t[5] !== E || t[6] !== O || t[7] !== ht || t[8] !== it || t[9] !== Ut || t[10] !== Ct || t[11] !== s || t[12] !== u || t[13] !== q || t[14] !== z || t[15] !== st || t[16] !== Lt || t[17] !== n || t[18] !== _ || t[19] !== X || t[20] !== K || t[21] !== f || t[22] !== c || t[23] !== Gt || t[24] !== Ft || t[25] !== lt || t[26] !== d || t[27] !== r || t[28] !== Nt || t[29] !== Rt || t[30] !== l || t[31] !== ft || t[32] !== H || t[33] !== Mt || t[34] !== N || t[35] !== Y || t[36] !== B || t[37] !== rt || t[38] !== Et || t[39] !== w || t[40] !== It || t[41] !== T || t[42] !== Tt || t[43] !== at || t[44] !== tt || t[45] !== ct || t[46] !== Kt || t[47] !== I || t[48] !== Jt || t[49] !== V || t[50] !== nt || t[51] !== Z || t[52] !== Q || t[53] !== P || t[54] !== m || t[55] !== y ? (G = /* @__PURE__ */ i.jsx(Mi, { orientation: H, data: s, graphTitle: X, colors: Ut, sources: Kt, graphDescription: Lt, barPadding: Ot, showTicks: Tt, truncateBy: P, height: K, width: y, footNote: st, colorDomain: ht, colorLegendTitle: it, suffix: Jt, prefix: Y, showValues: at, padding: Mt, backgroundColor: kt, leftMargin: Gt, rightMargin: w, sortParameter: ct, sortData: tt, topMargin: Q, bottomMargin: E, showLabels: T, relativeHeight: rt, tooltip: Z, onSeriesMouseOver: ft, refValues: B, graphID: _, maxValue: lt, minValue: r, onSeriesMouseClick: l, graphDownload: n, dataDownload: u, language: c, labelOrder: f, minHeight: d, theme: V, maxBarThickness: Ft, ariaLabel: Pt, resetSelectionOnDoubleClick: Et, styles: I, detailsOnClick: q, barAxisTitle: pt, noOfTicks: Rt, valueColor: m, classNames: O, filterNA: z, animate: L, precision: N, customLayers: Ct, showColorScale: It, timeline: nt, naLabel: Nt }), t[0] = L, t[1] = Pt, t[2] = kt, t[3] = pt, t[4] = Ot, t[5] = E, t[6] = O, t[7] = ht, t[8] = it, t[9] = Ut, t[10] = Ct, t[11] = s, t[12] = u, t[13] = q, t[14] = z, t[15] = st, t[16] = Lt, t[17] = n, t[18] = _, t[19] = X, t[20] = K, t[21] = f, t[22] = c, t[23] = Gt, t[24] = Ft, t[25] = lt, t[26] = d, t[27] = r, t[28] = Nt, t[29] = Rt, t[30] = l, t[31] = ft, t[32] = H, t[33] = Mt, t[34] = N, t[35] = Y, t[36] = B, t[37] = rt, t[38] = Et, t[39] = w, t[40] = It, t[41] = T, t[42] = Tt, t[43] = at, t[44] = tt, t[45] = ct, t[46] = Kt, t[47] = I, t[48] = Jt, t[49] = V, t[50] = nt, t[51] = Z, t[52] = Q, t[53] = P, t[54] = m, t[55] = y, t[56] = G) : G = t[56], G;
2368
- }
2369
- function _s(e) {
2370
- const t = we.c(58), {
2371
- data: s,
2339
+ relativeHeight: dt,
2340
+ tooltip: Q,
2341
+ onSeriesMouseOver: pt,
2342
+ refValues: F,
2343
+ graphID: Z,
2344
+ maxValue: it,
2345
+ minValue: c,
2346
+ onSeriesMouseClick: s,
2347
+ graphDownload: a,
2348
+ dataDownload: m,
2349
+ language: d,
2350
+ labelOrder: p,
2351
+ minHeight: x,
2352
+ theme: at,
2353
+ sortParameter: D,
2354
+ sortData: E,
2355
+ maxBarThickness: Yt,
2356
+ ariaLabel: Et,
2357
+ resetSelectionOnDoubleClick: Pt,
2358
+ detailsOnClick: Ht,
2359
+ barAxisTitle: nt,
2360
+ noOfTicks: ut,
2361
+ valueColor: _,
2362
+ orientation: u,
2363
+ styles: r,
2364
+ classNames: V,
2365
+ filterNA: gt,
2366
+ animate: y,
2367
+ precision: L,
2368
+ customLayers: Gt,
2369
+ showColorScale: ot,
2370
+ timeline: Rt,
2371
+ naLabel: rt,
2372
+ hideAxisLine: Wt
2373
+ } = e, G = u === void 0 ? "vertical" : u, st = Wt === void 0 ? !1 : Wt;
2374
+ let k;
2375
+ return t[0] !== y || t[1] !== Et || t[2] !== zt || t[3] !== nt || t[4] !== Ct || t[5] !== B || t[6] !== V || t[7] !== ft || t[8] !== et || t[9] !== Ut || t[10] !== Gt || t[11] !== l || t[12] !== m || t[13] !== Ht || t[14] !== gt || t[15] !== R || t[16] !== Tt || t[17] !== a || t[18] !== Z || t[19] !== X || t[20] !== J || t[21] !== st || t[22] !== p || t[23] !== d || t[24] !== Xt || t[25] !== Yt || t[26] !== it || t[27] !== x || t[28] !== c || t[29] !== rt || t[30] !== ut || t[31] !== s || t[32] !== pt || t[33] !== G || t[34] !== Vt || t[35] !== L || t[36] !== Y || t[37] !== F || t[38] !== dt || t[39] !== Pt || t[40] !== C || t[41] !== ot || t[42] !== T || t[43] !== Ft || t[44] !== lt || t[45] !== E || t[46] !== D || t[47] !== Jt || t[48] !== r || t[49] !== Lt || t[50] !== at || t[51] !== Rt || t[52] !== Q || t[53] !== K || t[54] !== W || t[55] !== _ || t[56] !== A ? (k = /* @__PURE__ */ i.jsx(Ci, { orientation: G, data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, truncateBy: W, height: J, width: A, footNote: R, colorDomain: ft, colorLegendTitle: et, suffix: Lt, prefix: Y, showValues: lt, padding: Vt, backgroundColor: zt, leftMargin: Xt, rightMargin: C, sortParameter: D, sortData: E, topMargin: K, bottomMargin: B, showLabels: T, relativeHeight: dt, tooltip: Q, onSeriesMouseOver: pt, refValues: F, graphID: Z, maxValue: it, minValue: c, onSeriesMouseClick: s, graphDownload: a, dataDownload: m, language: d, labelOrder: p, minHeight: x, theme: at, maxBarThickness: Yt, ariaLabel: Et, resetSelectionOnDoubleClick: Pt, styles: r, detailsOnClick: Ht, barAxisTitle: nt, noOfTicks: ut, valueColor: _, classNames: V, filterNA: gt, animate: y, precision: L, customLayers: Gt, showColorScale: ot, timeline: Rt, naLabel: rt, hideAxisLine: st }), t[0] = y, t[1] = Et, t[2] = zt, t[3] = nt, t[4] = Ct, t[5] = B, t[6] = V, t[7] = ft, t[8] = et, t[9] = Ut, t[10] = Gt, t[11] = l, t[12] = m, t[13] = Ht, t[14] = gt, t[15] = R, t[16] = Tt, t[17] = a, t[18] = Z, t[19] = X, t[20] = J, t[21] = st, t[22] = p, t[23] = d, t[24] = Xt, t[25] = Yt, t[26] = it, t[27] = x, t[28] = c, t[29] = rt, t[30] = ut, t[31] = s, t[32] = pt, t[33] = G, t[34] = Vt, t[35] = L, t[36] = Y, t[37] = F, t[38] = dt, t[39] = Pt, t[40] = C, t[41] = ot, t[42] = T, t[43] = Ft, t[44] = lt, t[45] = E, t[46] = D, t[47] = Jt, t[48] = r, t[49] = Lt, t[50] = at, t[51] = Rt, t[52] = Q, t[53] = K, t[54] = W, t[55] = _, t[56] = A, t[57] = k) : k = t[57], k;
2376
+ }
2377
+ function ea(e) {
2378
+ const t = we.c(59), {
2379
+ data: l,
2372
2380
  graphTitle: X,
2373
2381
  colors: Ut,
2374
- sources: Kt,
2375
- graphDescription: Lt,
2376
- barPadding: Ot,
2377
- showTicks: Tt,
2378
- leftMargin: P,
2379
- rightMargin: K,
2380
- topMargin: y,
2381
- bottomMargin: st,
2382
- truncateBy: ht,
2383
- showLabels: it,
2384
- showValues: Jt,
2382
+ sources: Jt,
2383
+ graphDescription: Tt,
2384
+ barPadding: Ct,
2385
+ showTicks: Ft,
2386
+ leftMargin: W,
2387
+ rightMargin: J,
2388
+ topMargin: A,
2389
+ bottomMargin: R,
2390
+ truncateBy: ft,
2391
+ showLabels: et,
2392
+ showValues: Lt,
2385
2393
  backgroundColor: Y,
2386
- suffix: at,
2387
- prefix: Mt,
2388
- height: kt,
2389
- width: Gt,
2390
- footNote: w,
2391
- colorDomain: Q,
2392
- colorLegendTitle: E,
2394
+ suffix: lt,
2395
+ prefix: Vt,
2396
+ height: zt,
2397
+ width: Xt,
2398
+ footNote: C,
2399
+ colorDomain: K,
2400
+ colorLegendTitle: B,
2393
2401
  padding: T,
2394
- tooltip: rt,
2395
- onSeriesMouseOver: Z,
2396
- relativeHeight: ft,
2397
- refValues: B,
2398
- graphID: _,
2399
- maxValue: lt,
2400
- onSeriesMouseClick: r,
2401
- graphDownload: l,
2402
- dataDownload: n,
2403
- language: u,
2404
- theme: c,
2405
- labelOrder: f,
2406
- minHeight: d,
2407
- maxBarThickness: V,
2408
- sortParameter: ct,
2409
- sortData: tt,
2410
- maxNumberOfBars: Ft,
2411
- minBarThickness: Pt,
2412
- ariaLabel: Et,
2413
- resetSelectionOnDoubleClick: q,
2414
- detailsOnClick: pt,
2415
- barAxisTitle: Rt,
2416
- noOfTicks: m,
2417
- valueColor: o,
2418
- orientation: I,
2419
- styles: O,
2420
- classNames: z,
2421
- filterNA: L,
2422
- animate: N,
2423
- precision: Ct,
2424
- customLayers: It,
2425
- showColorScale: nt,
2426
- timeline: Nt,
2427
- naLabel: H
2428
- } = e, G = I === void 0 ? "vertical" : I;
2429
- let $;
2430
- return t[0] !== N || t[1] !== Et || t[2] !== Y || t[3] !== Rt || t[4] !== Ot || t[5] !== st || t[6] !== z || t[7] !== Q || t[8] !== E || t[9] !== Ut || t[10] !== It || t[11] !== s || t[12] !== n || t[13] !== pt || t[14] !== L || t[15] !== w || t[16] !== Lt || t[17] !== l || t[18] !== _ || t[19] !== X || t[20] !== kt || t[21] !== f || t[22] !== u || t[23] !== P || t[24] !== V || t[25] !== Ft || t[26] !== lt || t[27] !== Pt || t[28] !== d || t[29] !== H || t[30] !== m || t[31] !== r || t[32] !== Z || t[33] !== G || t[34] !== T || t[35] !== Ct || t[36] !== Mt || t[37] !== B || t[38] !== ft || t[39] !== q || t[40] !== K || t[41] !== nt || t[42] !== it || t[43] !== Tt || t[44] !== Jt || t[45] !== tt || t[46] !== ct || t[47] !== Kt || t[48] !== O || t[49] !== at || t[50] !== c || t[51] !== Nt || t[52] !== rt || t[53] !== y || t[54] !== ht || t[55] !== o || t[56] !== Gt ? ($ = /* @__PURE__ */ i.jsx(ls, { data: s, graphTitle: X, colors: Ut, sources: Kt, graphDescription: Lt, barPadding: Ot, showTicks: Tt, leftMargin: P, rightMargin: K, topMargin: y, bottomMargin: st, truncateBy: ht, showLabels: it, showValues: Jt, backgroundColor: Y, suffix: at, prefix: Mt, height: kt, width: Gt, footNote: w, colorDomain: Q, colorLegendTitle: E, padding: T, tooltip: rt, onSeriesMouseOver: Z, relativeHeight: ft, refValues: B, graphID: _, maxValue: lt, onSeriesMouseClick: r, graphDownload: l, dataDownload: n, language: u, theme: c, labelOrder: f, minHeight: d, maxBarThickness: V, sortParameter: ct, sortData: tt, maxNumberOfBars: Ft, minBarThickness: Pt, ariaLabel: Et, resetSelectionOnDoubleClick: q, styles: O, detailsOnClick: pt, barAxisTitle: Rt, noOfTicks: m, valueColor: o, classNames: z, filterNA: L, animate: N, precision: Ct, customLayers: It, showColorScale: nt, timeline: Nt, naLabel: H, orientation: G }), t[0] = N, t[1] = Et, t[2] = Y, t[3] = Rt, t[4] = Ot, t[5] = st, t[6] = z, t[7] = Q, t[8] = E, t[9] = Ut, t[10] = It, t[11] = s, t[12] = n, t[13] = pt, t[14] = L, t[15] = w, t[16] = Lt, t[17] = l, t[18] = _, t[19] = X, t[20] = kt, t[21] = f, t[22] = u, t[23] = P, t[24] = V, t[25] = Ft, t[26] = lt, t[27] = Pt, t[28] = d, t[29] = H, t[30] = m, t[31] = r, t[32] = Z, t[33] = G, t[34] = T, t[35] = Ct, t[36] = Mt, t[37] = B, t[38] = ft, t[39] = q, t[40] = K, t[41] = nt, t[42] = it, t[43] = Tt, t[44] = Jt, t[45] = tt, t[46] = ct, t[47] = Kt, t[48] = O, t[49] = at, t[50] = c, t[51] = Nt, t[52] = rt, t[53] = y, t[54] = ht, t[55] = o, t[56] = Gt, t[57] = $) : $ = t[57], $;
2402
+ tooltip: dt,
2403
+ onSeriesMouseOver: Q,
2404
+ relativeHeight: pt,
2405
+ refValues: F,
2406
+ graphID: Z,
2407
+ maxValue: it,
2408
+ onSeriesMouseClick: c,
2409
+ graphDownload: s,
2410
+ dataDownload: a,
2411
+ language: m,
2412
+ theme: d,
2413
+ labelOrder: p,
2414
+ minHeight: x,
2415
+ maxBarThickness: at,
2416
+ sortParameter: D,
2417
+ sortData: E,
2418
+ maxNumberOfBars: Yt,
2419
+ minBarThickness: Et,
2420
+ ariaLabel: Pt,
2421
+ resetSelectionOnDoubleClick: Ht,
2422
+ detailsOnClick: nt,
2423
+ barAxisTitle: ut,
2424
+ noOfTicks: _,
2425
+ valueColor: u,
2426
+ orientation: r,
2427
+ styles: V,
2428
+ classNames: gt,
2429
+ filterNA: y,
2430
+ animate: L,
2431
+ precision: Gt,
2432
+ customLayers: ot,
2433
+ showColorScale: Rt,
2434
+ timeline: rt,
2435
+ naLabel: Wt,
2436
+ hideAxisLine: G
2437
+ } = e, st = r === void 0 ? "vertical" : r, k = G === void 0 ? !1 : G;
2438
+ let xt;
2439
+ return t[0] !== L || t[1] !== Pt || t[2] !== Y || t[3] !== ut || t[4] !== Ct || t[5] !== R || t[6] !== gt || t[7] !== K || t[8] !== B || t[9] !== Ut || t[10] !== ot || t[11] !== l || t[12] !== a || t[13] !== nt || t[14] !== y || t[15] !== C || t[16] !== Tt || t[17] !== s || t[18] !== Z || t[19] !== X || t[20] !== zt || t[21] !== k || t[22] !== p || t[23] !== m || t[24] !== W || t[25] !== at || t[26] !== Yt || t[27] !== it || t[28] !== Et || t[29] !== x || t[30] !== Wt || t[31] !== _ || t[32] !== c || t[33] !== Q || t[34] !== st || t[35] !== T || t[36] !== Gt || t[37] !== Vt || t[38] !== F || t[39] !== pt || t[40] !== Ht || t[41] !== J || t[42] !== Rt || t[43] !== et || t[44] !== Ft || t[45] !== Lt || t[46] !== E || t[47] !== D || t[48] !== Jt || t[49] !== V || t[50] !== lt || t[51] !== d || t[52] !== rt || t[53] !== dt || t[54] !== A || t[55] !== ft || t[56] !== u || t[57] !== Xt ? (xt = /* @__PURE__ */ i.jsx(al, { data: l, graphTitle: X, colors: Ut, sources: Jt, graphDescription: Tt, barPadding: Ct, showTicks: Ft, leftMargin: W, rightMargin: J, topMargin: A, bottomMargin: R, truncateBy: ft, showLabels: et, showValues: Lt, backgroundColor: Y, suffix: lt, prefix: Vt, height: zt, width: Xt, footNote: C, colorDomain: K, colorLegendTitle: B, padding: T, tooltip: dt, onSeriesMouseOver: Q, relativeHeight: pt, refValues: F, graphID: Z, maxValue: it, onSeriesMouseClick: c, graphDownload: s, dataDownload: a, language: m, theme: d, labelOrder: p, minHeight: x, maxBarThickness: at, sortParameter: D, sortData: E, maxNumberOfBars: Yt, minBarThickness: Et, ariaLabel: Pt, resetSelectionOnDoubleClick: Ht, styles: V, detailsOnClick: nt, barAxisTitle: ut, noOfTicks: _, valueColor: u, classNames: gt, filterNA: y, animate: L, precision: Gt, customLayers: ot, showColorScale: Rt, timeline: rt, naLabel: Wt, orientation: st, hideAxisLine: k }), t[0] = L, t[1] = Pt, t[2] = Y, t[3] = ut, t[4] = Ct, t[5] = R, t[6] = gt, t[7] = K, t[8] = B, t[9] = Ut, t[10] = ot, t[11] = l, t[12] = a, t[13] = nt, t[14] = y, t[15] = C, t[16] = Tt, t[17] = s, t[18] = Z, t[19] = X, t[20] = zt, t[21] = k, t[22] = p, t[23] = m, t[24] = W, t[25] = at, t[26] = Yt, t[27] = it, t[28] = Et, t[29] = x, t[30] = Wt, t[31] = _, t[32] = c, t[33] = Q, t[34] = st, t[35] = T, t[36] = Gt, t[37] = Vt, t[38] = F, t[39] = pt, t[40] = Ht, t[41] = J, t[42] = Rt, t[43] = et, t[44] = Ft, t[45] = Lt, t[46] = E, t[47] = D, t[48] = Jt, t[49] = V, t[50] = lt, t[51] = d, t[52] = rt, t[53] = dt, t[54] = A, t[55] = ft, t[56] = u, t[57] = Xt, t[58] = xt) : xt = t[58], xt;
2431
2440
  }
2432
2441
  export {
2433
- Zs as GroupedBarGraph,
2434
- Qs as SimpleBarGraph,
2435
- _s as StackedBarGraph
2442
+ ta as GroupedBarGraph,
2443
+ _l as SimpleBarGraph,
2444
+ ea as StackedBarGraph
2436
2445
  };
2437
2446
  //# sourceMappingURL=BarGraph.js.map