@undp/data-viz 2.1.3 → 2.1.5

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 (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
package/dist/BarGraph.js CHANGED
@@ -1,966 +1,997 @@
1
- import { c as ge, j as i, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as pe, useState as Zt, useEffect as ke } from "react";
3
- import { g as Fe, N as Pe } from "./getSliderMarks-HIDJ0_Cd.js";
4
- import { f as we, p as He } from "./parse-DlCRUFh_.js";
5
- import { o as Te } from "./index-BZQYSqar.js";
6
- import { s as ce } from "./index-CeVNqhMO.js";
7
- import { i as Ce } from "./index-Bwrro8-q.js";
8
- import { n as fe } from "./numberFormattingFunction-14YCbkN2.js";
9
- import { T as Ve } from "./Tooltip-Dj5eVppQ.js";
10
- import { c as ie } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
- import { Y as We } from "./YAxesLabels-a57ZRv-0.js";
12
- import { A as ze } from "./Axis-CRyfcLjc.js";
13
- import { A as De } from "./AxisTitle-jeI7am8o.js";
14
- import { X as Xe } from "./XTicksAndGridLines-CObVFSm4.js";
15
- import { R as Ye, a as Ee } from "./ReferenceLine-2XCwHXQ4.js";
16
- import { Y as Ge } from "./YTicksAndGridLines-Blepl7XF.js";
17
- import { X as Re } from "./XAxesLabels-Dy8E1SEo.js";
18
- import { D as Le } from "./DetailsModal-0Ry5nXiC.js";
19
- import { u as Ie } from "./use-in-view-Cxa7y1TH.js";
20
- import { a as je } from "./linear-BqltdMeF.js";
21
- import { b as ve } from "./band-DHUZ2X7J.js";
22
- import { A as Ne } from "./index-BqfRwk1n.js";
1
+ import { c as we, j as i, m as $e } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as ve, useState as te, useEffect as De } from "react";
3
+ import { g as Xe, N as Ye } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { f as Me, p as Ee } from "./parse-DlCRUFh_.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";
8
+ import { n as be } from "./numberFormattingFunction-14YCbkN2.js";
9
+ import { T as Ie } from "./Tooltip-Dj5eVppQ.js";
10
+ import { c as le } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
+ import { Y as Ge } from "./YAxesLabels-a57ZRv-0.js";
12
+ import { A as Ne } from "./Axis-CRyfcLjc.js";
13
+ import { A as je } from "./AxisTitle-jeI7am8o.js";
14
+ import { X as Re } from "./XTicksAndGridLines-CObVFSm4.js";
15
+ import { R as qe, a as Ue } from "./ReferenceLine-2XCwHXQ4.js";
16
+ import { Y as Je } from "./YTicksAndGridLines-Blepl7XF.js";
17
+ import { X as Ke } from "./XAxesLabels-Dy8E1SEo.js";
18
+ import { D as Te } from "./DetailsModal-0Ry5nXiC.js";
19
+ import { u as Se } from "./use-in-view-Cxa7y1TH.js";
20
+ import { a as Be } from "./linear-BqltdMeF.js";
21
+ import { b as Oe } from "./band-DHUZ2X7J.js";
22
+ import { A as Fe } from "./index-BqfRwk1n.js";
23
23
  import { m as ee } from "./proxy-BxkFHwUw.js";
24
- import { GraphHeader as qe } from "./GraphHeader.js";
25
- import { GraphFooter as Ue } from "./GraphFooter.js";
26
- import { ColorLegendWithMouseOver as Je } from "./ColorLegendWithMouseOver.js";
27
- import { Colors as xe } from "./Colors.js";
28
- import { E as Ke } from "./EmptyState-BZo1BbAn.js";
29
- import { P as Qe, e as Ze } from "./index-D491FEn1.js";
30
- import { d as Me, f as ei } from "./ensureCompleteData-DH5c52Ub.js";
31
- import { a as _e, G as ti } from "./GraphContainer-CRqzdKu2.js";
32
- import { u as ii } from "./uniqBy-BHy4I8PK.js";
33
- import { g as Be } from "./getTextColorBasedOnBgColor-CDY808zi.js";
34
- function si(e) {
35
- const t = ge.c(130), {
36
- data: a,
37
- leftMargin: P,
38
- rightMargin: qt,
39
- topMargin: Ut,
40
- bottomMargin: It,
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-C7ZXkZWd.js";
29
+ import { P as ei, e as ii } from "./index-D491FEn1.js";
30
+ import { d as ze, f as ai } from "./ensureCompleteData-DH5c52Ub.js";
31
+ import { a as li, G as si } from "./GraphContainer-CRqzdKu2.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,
37
+ leftMargin: X,
38
+ rightMargin: Ut,
39
+ topMargin: Kt,
40
+ bottomMargin: Lt,
41
41
  barColors: Ot,
42
42
  barPadding: Tt,
43
- showTicks: B,
44
- truncateBy: q,
45
- width: A,
46
- height: lt,
47
- suffix: St,
48
- prefix: tt,
49
- showValues: Et,
50
- showLabels: U,
43
+ showTicks: P,
44
+ truncateBy: K,
45
+ width: y,
46
+ height: st,
47
+ suffix: ht,
48
+ prefix: it,
49
+ showValues: Jt,
50
+ showLabels: Y,
51
51
  tooltip: at,
52
52
  onSeriesMouseOver: Mt,
53
53
  refValues: kt,
54
- maxValue: Xt,
55
- minValue: M,
56
- onSeriesMouseClick: J,
57
- selectedColor: H,
58
- rtl: D,
59
- labelOrder: nt,
60
- maxBarThickness: K,
61
- resetSelectionOnDoubleClick: mt,
62
- detailsOnClick: L,
63
- barAxisTitle: Q,
64
- valueColor: et,
65
- noOfTicks: c,
66
- styles: s,
67
- classNames: l,
68
- animate: m,
69
- colorDomain: d,
70
- precision: g,
71
- customLayers: x,
72
- naLabel: k
73
- } = e, rt = P === void 0 ? 100 : P, Z = qt === void 0 ? 40 : qt, pt = Ut === void 0 ? 25 : Ut, Jt = It === void 0 ? 10 : It, Gt = pe(null);
74
- let Y;
75
- t[0] !== m.amount || t[1] !== m.once ? (Y = {
76
- once: m.once,
77
- amount: m.amount
78
- }, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
79
- const gt = Ie(Gt, Y), Ht = Q ? pt + 25 : pt;
80
- let r;
81
- t[3] !== Jt || t[4] !== rt || t[5] !== Z || t[6] !== Ht ? (r = {
82
- top: Ht,
83
- bottom: Jt,
84
- left: rt,
85
- right: Z
86
- }, t[3] = Jt, t[4] = rt, t[5] = Z, t[6] = Ht, t[7] = r) : r = t[7];
87
- const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
88
- let w;
89
- if (t[8] !== a || t[9] !== nt) {
90
- const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
91
- const Lt = nt ? `${f.label}` : `${Dt}`;
92
- return v.add(Lt), {
93
- ...f,
94
- id: Lt
54
+ maxValue: Gt,
55
+ minValue: w,
56
+ onSeriesMouseClick: Q,
57
+ selectedColor: E,
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,
83
+ 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
95
95
  };
96
- }), j = nt ? nt.filter((f) => !v.has(f)) : [];
97
- let p;
98
- t[11] !== a[0].size.length ? (p = (f) => ({
99
- id: f,
100
- label: f,
101
- size: Array(a[0].size.length).fill(null)
102
- }), t[11] = a[0].size.length, t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = nt, t[10] = w;
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;
103
103
  } else
104
- w = t[10];
105
- const bt = w;
106
- let Wt;
107
- t[13] !== bt || t[14] !== nt ? (Wt = nt ?? bt.map(ui), t[13] = bt, t[14] = nt, t[15] = Wt) : Wt = t[15];
108
- const jt = Wt;
109
- let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
110
- if (t[16] !== m || t[17] !== Q || t[18] !== Ot || t[19] !== jt || t[20] !== Tt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== a[0].size || t[30] !== bt || t[31] !== L || t[32] !== E || t[33] !== Ct || t[34] !== lt || t[35] !== gt || t[36] !== n.bottom || t[37] !== n.left || t[38] !== n.top || t[39] !== K || t[40] !== Xt || t[41] !== M || t[42] !== it || t[43] !== k || t[44] !== c || t[45] !== J || t[46] !== Mt || t[47] !== g || t[48] !== tt || t[49] !== kt || t[50] !== mt || t[51] !== D || t[52] !== H || t[53] !== U || t[54] !== B || t[55] !== Et || 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] !== St || t[63] !== pt || t[64] !== q || t[65] !== et || t[66] !== A) {
111
- const v = je().domain([M, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.min(E, K * jt.length) : E]).paddingInner(Tt), j = ve().domain(a[0].size.map(di)).range([0, ft.bandwidth()]).paddingInner(0.1), p = v.ticks(c);
112
- Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = B ? /* @__PURE__ */ i.jsx(Xe, { values: p.filter(ci), x: p.filter(ri).map((V) => v(V)), y1: 0 - pt, y2: E + n.bottom, styles: {
113
- gridLines: s?.xAxis?.gridLines,
114
- labels: s?.xAxis?.labels
115
- }, classNames: {
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: {
116
113
  gridLines: l?.xAxis?.gridLines,
117
114
  labels: l?.xAxis?.labels
118
- }, suffix: St, prefix: tt, labelType: "secondary", showGridLines: !0, precision: g }) : null;
119
- const f = Ct / 2, Dt = 0 - n.top + 15, Lt = s?.xAxis?.title, Kt = l?.xAxis?.title;
120
- t[81] !== Q || t[82] !== f || t[83] !== Dt || t[84] !== Lt || t[85] !== Kt ? (I = /* @__PURE__ */ i.jsx(De, { x: f, y: Dt, style: Lt, className: Kt, text: Q }), t[81] = Q, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = Kt, t[86] = I) : I = t[86], t[87] !== x ? (z = x.filter(ni).map(oi), t[87] = x, t[88] = z) : z = t[88], ct = Ne, ut = bt.map((V) => ie(ft(V.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
115
+ }, 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: {
121
121
  initial: {
122
122
  x: 0,
123
- y: ft(`${V.id}`)
123
+ y: xt(`${R.id}`)
124
124
  },
125
125
  whileInView: {
126
126
  x: 0,
127
- y: ft(`${V.id}`),
127
+ y: xt(`${R.id}`),
128
128
  transition: {
129
- duration: m.duration
129
+ duration: u.duration
130
130
  }
131
131
  }
132
- }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
132
+ }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
133
133
  opacity: 0,
134
134
  transition: {
135
- duration: m.duration
135
+ duration: u.duration
136
136
  }
137
137
  }, children: [
138
- V.size.map((R, o) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? Ot[o] === H ? 1 : 0.3 : 0.85, onMouseEnter: (h) => {
139
- y({
140
- ...V,
141
- sizeIndex: o
142
- }), xt(h.clientY), Yt(h.clientX), Mt?.({
143
- ...V,
144
- sizeIndex: o
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
145
145
  });
146
- }, onMouseMove: (h) => {
147
- y({
148
- ...V,
149
- sizeIndex: o
150
- }), xt(h.clientY), Yt(h.clientX);
146
+ }, onMouseMove: (a) => {
147
+ O({
148
+ ...R,
149
+ sizeIndex: St
150
+ }), nt(a.clientY), Ct(a.clientX);
151
151
  }, onMouseLeave: () => {
152
- y(void 0), Yt(void 0), xt(void 0), Mt?.(void 0);
152
+ O(void 0), Ct(void 0), nt(void 0), Mt?.(void 0);
153
153
  }, onClick: () => {
154
- (J || L) && (Ce(it, {
155
- ...V,
156
- sizeIndex: o
157
- }) && mt ? (W(void 0), J?.(void 0)) : (W({
158
- ...V,
159
- sizeIndex: o
160
- }), J && J({
161
- ...V,
162
- sizeIndex: o
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
163
163
  })));
164
164
  }, children: [
165
- ie(R) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: j(`${o}`), variants: {
165
+ le(D) ? null : /* @__PURE__ */ i.jsx(ee.rect, { y: Xt(`${St}`), variants: {
166
166
  initial: {
167
167
  width: 0,
168
- x: v(0),
169
- fill: Ot[o]
168
+ x: p(0),
169
+ fill: Ot[St]
170
170
  },
171
171
  whileInView: {
172
- width: ie(R) ? 0 : R >= 0 ? v(R) - v(0) : v(0) - v(R),
173
- x: R >= 0 ? v(0) : v(R),
174
- fill: Ot[o],
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],
175
175
  transition: {
176
- duration: m.duration
176
+ duration: u.duration
177
177
  }
178
178
  }
179
179
  }, exit: {
180
180
  width: 0,
181
- x: v(0),
181
+ x: p(0),
182
182
  transition: {
183
- duration: m.duration
183
+ duration: u.duration
184
184
  }
185
- }, height: j.bandwidth(), initial: "initial", animate: gt ? "whileInView" : "initial" }),
186
- Et ? /* @__PURE__ */ i.jsx(ee.text, { y: j(`${o}`) + j.bandwidth() / 2, style: {
187
- textAnchor: R && R < 0 ? "end" : "start",
188
- ...s?.graphObjectValues || {}
189
- }, className: be("graph-value text-sm", l?.graphObjectValues), dx: R && R < 0 ? -5 : 5, dy: "0.33em", variants: {
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: {
190
190
  initial: {
191
- x: v(0),
191
+ x: p(0),
192
192
  opacity: 0,
193
- fill: et || Ot[o]
193
+ fill: lt || Ot[St]
194
194
  },
195
195
  whileInView: {
196
- x: v(R || 0),
196
+ x: p(D || 0),
197
197
  opacity: 1,
198
- fill: et || Ot[o],
198
+ fill: lt || Ot[St],
199
199
  transition: {
200
- duration: m.duration
200
+ duration: u.duration
201
201
  }
202
202
  }
203
- }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
203
+ }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
204
204
  opacity: 0,
205
205
  transition: {
206
- duration: m.duration
206
+ duration: u.duration
207
207
  }
208
- }, children: fe(R, k, g, tt, St) }) : null
209
- ] }, `${V.label}-${d[o] || o}`)),
210
- U ? /* @__PURE__ */ i.jsx(We, { value: `${V.label}`.length < q ? `${V.label}` : `${`${V.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: v(M < 0 ? 0 : M) + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null
211
- ] }, V.label));
212
- const N = l?.yAxis?.axis;
213
- let T;
214
- t[89] !== N ? (T = {
215
- axis: N
216
- }, t[89] = N, t[90] = T) : T = t[90];
217
- const Rt = s?.yAxis?.axis;
218
- let X;
219
- t[91] !== Rt ? (X = {
220
- axis: Rt
221
- }, t[91] = Rt, t[92] = X) : X = t[92], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(M < 0 ? 0 : M), x2: v(M < 0 ? 0 : M), y1: -2.5, y2: E + n.bottom, classNames: T, styles: X }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((V, R) => /* @__PURE__ */ i.jsx(Ye, { text: V.text, color: V.color, x: v(V.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(V.value) > Ct * 0.75 || D ? "left" : "right", classNames: V.classNames, styles: V.styles, animate: m, isInView: gt }, R)) }) : null, t[16] = m, t[17] = Q, t[18] = Ot, t[19] = jt, t[20] = Tt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = a[0].size, t[30] = bt, t[31] = L, t[32] = E, t[33] = Ct, t[34] = lt, t[35] = gt, t[36] = n.bottom, t[37] = n.left, t[38] = n.top, t[39] = K, t[40] = Xt, t[41] = M, t[42] = it, t[43] = k, t[44] = c, t[45] = J, t[46] = Mt, t[47] = g, t[48] = tt, t[49] = kt, t[50] = mt, t[51] = D, t[52] = H, t[53] = U, t[54] = B, t[55] = Et, 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] = St, t[63] = pt, t[64] = q, t[65] = et, t[66] = A, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _, t[80] = ut;
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;
222
222
  } else
223
- ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79], ut = t[80];
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];
224
230
  let wt;
225
- t[93] !== ct || t[94] !== Nt || t[95] !== Vt || t[96] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
226
- ut,
227
- Nt,
228
- Vt
229
- ] }), t[93] = ct, t[94] = Nt, t[95] = Vt, t[96] = ut, t[97] = wt) : wt = t[97];
230
- let st;
231
- t[98] !== x ? (st = x.filter(ai).map(li), t[98] = x, t[99] = st) : st = t[99];
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,
237
+ 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];
232
240
  let At;
233
- t[100] !== zt || t[101] !== G || t[102] !== I || t[103] !== z || t[104] !== wt || t[105] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
234
- G,
235
- I,
236
- z,
237
- wt,
238
- st
239
- ] }), t[100] = zt, t[101] = G, t[102] = I, t[103] = z, t[104] = wt, t[105] = st, t[106] = At) : At = t[106];
240
- let $t;
241
- t[107] !== Ft || t[108] !== ht || t[109] !== ot || t[110] !== dt || t[111] !== vt || t[112] !== _ || t[113] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[107] = Ft, t[108] = ht, t[109] = ot, t[110] = dt, t[111] = vt, t[112] = _, t[113] = At, t[114] = $t) : $t = t[114];
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];
242
244
  let b;
243
- t[115] !== l?.tooltip || t[116] !== C || t[117] !== yt || t[118] !== F || t[119] !== s?.tooltip || t[120] !== at ? (b = F && at && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: at, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[115] = l?.tooltip, t[116] = C, t[117] = yt, t[118] = F, t[119] = s?.tooltip, t[120] = at, t[121] = b) : b = t[121];
244
- let $;
245
- t[122] !== l?.modal || t[123] !== L || t[124] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[122] = l?.modal, t[123] = L, t[124] = it, t[125] = $) : $ = t[125];
246
- let O;
247
- return t[126] !== $t || t[127] !== b || t[128] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
248
- $t,
249
- b,
250
- $
251
- ] }), t[126] = $t, t[127] = b, t[128] = $, t[129] = O) : O = t[129], O;
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];
246
+ 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;
252
252
  }
253
- function li(e) {
253
+ function ri(e) {
254
254
  return e.layer;
255
255
  }
256
- function ai(e) {
256
+ function ci(e) {
257
257
  return e.position === "after";
258
258
  }
259
- function oi(e) {
259
+ function di(e) {
260
260
  return e.layer;
261
261
  }
262
- function ni(e) {
262
+ function ui(e) {
263
263
  return e.position === "before";
264
264
  }
265
- function ri(e) {
265
+ function mi(e) {
266
266
  return e !== 0;
267
267
  }
268
- function ci(e) {
268
+ function xi(e) {
269
269
  return e !== 0;
270
270
  }
271
- function di(e, t) {
271
+ function hi(e, t) {
272
272
  return `${t}`;
273
273
  }
274
- function ui(e) {
274
+ function fi(e) {
275
275
  return `${e.id}`;
276
276
  }
277
- function mi(e) {
278
- const t = ge.c(138), {
279
- data: a,
280
- leftMargin: P,
281
- rightMargin: qt,
282
- topMargin: Ut,
283
- bottomMargin: It,
277
+ function pi(e) {
278
+ const t = we.c(138), {
279
+ data: s,
280
+ leftMargin: X,
281
+ rightMargin: Ut,
282
+ topMargin: Kt,
283
+ bottomMargin: Lt,
284
284
  width: Ot,
285
285
  height: Tt,
286
- barColors: B,
287
- suffix: q,
288
- prefix: A,
289
- barPadding: lt,
290
- showLabels: St,
291
- showValues: tt,
292
- showTicks: Et,
293
- truncateBy: U,
286
+ barColors: P,
287
+ suffix: K,
288
+ prefix: y,
289
+ barPadding: st,
290
+ showLabels: ht,
291
+ showValues: it,
292
+ showTicks: Jt,
293
+ truncateBy: Y,
294
294
  tooltip: at,
295
295
  onSeriesMouseOver: Mt,
296
296
  refValues: kt,
297
- maxValue: Xt,
298
- minValue: M,
299
- onSeriesMouseClick: J,
300
- selectedColor: H,
301
- labelOrder: D,
302
- maxBarThickness: nt,
303
- resetSelectionOnDoubleClick: K,
304
- detailsOnClick: mt,
305
- barAxisTitle: L,
306
- valueColor: Q,
307
- noOfTicks: et,
308
- styles: c,
309
- classNames: s,
310
- animate: l,
311
- colorDomain: m,
312
- precision: d,
313
- customLayers: g,
314
- naLabel: x
315
- } = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
316
- let Gt;
317
- t[0] !== l.amount || t[1] !== l.once ? (Gt = {
318
- once: l.once,
319
- amount: l.amount
320
- }, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
321
- const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
322
- let Ht;
323
- t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
324
- top: Z,
325
- bottom: pt,
326
- left: gt,
327
- right: rt
328
- }, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
329
- const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
330
- let E;
331
- if (t[8] !== a || t[9] !== D) {
332
- const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
333
- const Dt = D ? `${p.label}` : `${f}`;
334
- return O.add(Dt), {
335
- ...p,
336
- id: Dt
297
+ maxValue: Gt,
298
+ minValue: w,
299
+ onSeriesMouseClick: Q,
300
+ selectedColor: E,
301
+ 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
337
337
  };
338
- }), ft = D ? D.filter((p) => !O.has(p)) : [];
339
- let j;
340
- t[11] !== a[0].size.length ? (j = (p) => ({
341
- id: p,
342
- label: p,
343
- size: Array(a[0].size.length).fill(null)
344
- }), t[11] = a[0].size.length, t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = D, t[10] = E;
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;
345
345
  } else
346
- E = t[10];
347
- const w = E;
348
- let bt;
349
- t[13] !== w || t[14] !== D ? (bt = D ?? w.map(vi), t[13] = w, t[14] = D, t[15] = bt) : bt = t[15];
350
- const Wt = bt;
351
- let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
352
- if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== lt || 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] !== g || t[29] !== a[0].size || t[30] !== w || t[31] !== mt || t[32] !== Ct || t[33] !== xt || t[34] !== Tt || t[35] !== Y || t[36] !== k || t[37] !== r.bottom || t[38] !== r.left || t[39] !== r.right || t[40] !== r.top || t[41] !== nt || t[42] !== Xt || t[43] !== M || t[44] !== y || t[45] !== x || t[46] !== et || t[47] !== J || t[48] !== Mt || t[49] !== d || t[50] !== A || t[51] !== kt || t[52] !== K || t[53] !== H || t[54] !== St || t[55] !== Et || t[56] !== tt || 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] !== q || t[64] !== U || t[65] !== Q || t[66] !== Ot) {
353
- const O = je().domain([M, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.min(xt, nt * Wt.length) : xt]).paddingInner(lt), ft = ve().domain(a[0].size.map(bi)).range([0, v.bandwidth()]).paddingInner(0.1), j = O.ticks(et);
354
- ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
355
- const p = O(M < 0 ? 0 : M), f = O(M < 0 ? 0 : M), Dt = M < 0 ? 0 : M;
356
- let Lt;
357
- t[81] !== x || t[82] !== d || t[83] !== A || t[84] !== q || t[85] !== Dt ? (Lt = fe(Dt, x, d, A, q), t[81] = x, t[82] = d, t[83] = A, t[84] = q, t[85] = Dt, t[86] = Lt) : Lt = t[86];
358
- const Kt = s?.xAxis?.axis, N = s?.yAxis?.labels;
359
- let T;
360
- t[87] !== Kt || t[88] !== N ? (T = {
361
- axis: Kt,
362
- label: N
363
- }, t[87] = Kt, t[88] = N, t[89] = T) : T = t[89];
364
- const Rt = c?.xAxis?.axis, X = c?.yAxis?.labels;
365
- let V;
366
- t[90] !== Rt || t[91] !== X ? (V = {
367
- axis: Rt,
368
- label: X
369
- }, t[90] = Rt, t[91] = X, t[92] = V) : V = t[92], Vt = /* @__PURE__ */ i.jsx(ze, { y1: p, y2: f, x1: 0 - k, x2: xt + r.right, label: Lt, labelPos: {
370
- x: 0 - k,
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;
359
+ 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,
371
371
  dx: 0,
372
- dy: Xt < 0 ? "1em" : -5,
373
- y: O(M < 0 ? 0 : M)
374
- }, classNames: T, styles: V }), zt = Et ? /* @__PURE__ */ i.jsx(Ge, { values: j.filter(yi), y: j.filter(gi).map((S) => O(S)), x1: 0 - k, x2: xt + r.right, styles: {
375
- gridLines: c?.yAxis?.gridLines,
376
- labels: c?.yAxis?.labels
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
377
377
  }, classNames: {
378
- gridLines: s?.yAxis?.gridLines,
379
- labels: s?.yAxis?.labels
380
- }, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
381
- const R = 0 - k - 15, o = Ct / 2, h = c?.yAxis?.title, _t = s?.yAxis?.title;
382
- t[93] !== L || t[94] !== R || t[95] !== o || t[96] !== h || t[97] !== _t ? (G = /* @__PURE__ */ i.jsx(De, { x: R, y: o, style: h, className: _t, text: L, rotate90: !0 }), t[93] = L, t[94] = R, t[95] = o, t[96] = h, t[97] = _t, t[98] = G) : G = t[98], t[99] !== g ? (I = g.filter(pi).map(fi), t[99] = g, t[100] = I) : I = t[100], jt = Ne, _ = w.map((S) => ie(v(S.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { variants: {
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: {
383
383
  initial: {
384
- x: v(`${S.id}`),
384
+ x: p(`${k.id}`),
385
385
  y: 0
386
386
  },
387
387
  whileInView: {
388
- x: v(`${S.id}`),
388
+ x: p(`${k.id}`),
389
389
  y: 0,
390
390
  transition: {
391
- duration: l.duration
391
+ duration: n.duration
392
392
  }
393
393
  }
394
- }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
394
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
395
395
  opacity: 0,
396
396
  transition: {
397
- duration: l.duration
397
+ duration: n.duration
398
398
  }
399
399
  }, children: [
400
- S.size.map((Bt, u) => /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", opacity: H ? B[u] === H ? 1 : 0.3 : 0.85, onMouseEnter: (se) => {
401
- F({
402
- ...S,
403
- sizeIndex: u
404
- }), yt(se.clientY), C(se.clientX), Mt?.({
405
- ...S,
406
- sizeIndex: u
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
407
407
  });
408
- }, onMouseMove: (se) => {
409
- F({
410
- ...S,
411
- sizeIndex: u
412
- }), yt(se.clientY), C(se.clientX);
408
+ }, onMouseMove: (C) => {
409
+ I({
410
+ ...k,
411
+ sizeIndex: qt
412
+ }), It(C.clientY), N(C.clientX);
413
413
  }, onMouseLeave: () => {
414
- F(void 0), C(void 0), yt(void 0), Mt?.(void 0);
414
+ I(void 0), N(void 0), It(void 0), Mt?.(void 0);
415
415
  }, onClick: () => {
416
- (J || mt) && (Ce(y, {
417
- ...S,
418
- sizeIndex: u
419
- }) && K ? (it(void 0), J?.(void 0)) : (it({
420
- ...S,
421
- sizeIndex: u
422
- }), J && J({
423
- ...S,
424
- sizeIndex: u
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
425
425
  })));
426
426
  }, children: [
427
- /* @__PURE__ */ i.jsx(ee.rect, { x: ft(`${u}`), width: ft.bandwidth(), variants: {
427
+ /* @__PURE__ */ i.jsx(ee.rect, { x: xt(`${qt}`), width: xt.bandwidth(), variants: {
428
428
  initial: {
429
429
  height: 0,
430
- y: O(0),
431
- fill: B[u]
430
+ y: v(0),
431
+ fill: P[qt]
432
432
  },
433
433
  whileInView: {
434
- height: ie(Bt) ? 0 : Math.abs(O(Bt) - O(0)),
435
- y: ie(Bt) ? O(0) : Bt > 0 ? O(Bt) : O(0),
436
- fill: B[u],
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],
437
437
  transition: {
438
- duration: l.duration
438
+ duration: n.duration
439
439
  }
440
440
  }
441
441
  }, exit: {
442
442
  height: 0,
443
- y: O(0),
443
+ y: v(0),
444
444
  transition: {
445
- duration: l.duration
445
+ duration: n.duration
446
446
  }
447
- }, initial: "initial", animate: Y ? "whileInView" : "initial" }),
448
- tt ? /* @__PURE__ */ i.jsx(ee.text, { x: ft(`${u}`) + ft.bandwidth() / 2, style: {
447
+ }, initial: "initial", animate: q ? "whileInView" : "initial" }),
448
+ it ? /* @__PURE__ */ i.jsx(ee.text, { x: xt(`${qt}`) + xt.bandwidth() / 2, style: {
449
449
  textAnchor: "middle",
450
- ...c?.graphObjectValues || {}
451
- }, className: be("graph-value text-sm", s?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
450
+ ...r?.graphObjectValues || {}
451
+ }, className: $e("graph-value text-sm", l?.graphObjectValues), dy: Bt ? Bt >= 0 ? "-5px" : "1em" : "-5px", variants: {
452
452
  initial: {
453
- y: O(0),
453
+ y: v(0),
454
454
  opacity: 0,
455
- fill: Q || B[u]
455
+ fill: _ || P[qt]
456
456
  },
457
457
  whileInView: {
458
- y: O(Bt || 0),
458
+ y: v(Bt || 0),
459
459
  opacity: 1,
460
- fill: Q || B[u],
460
+ fill: _ || P[qt],
461
461
  transition: {
462
- duration: l.duration
462
+ duration: n.duration
463
463
  }
464
464
  }
465
- }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
465
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
466
466
  opacity: 0,
467
467
  transition: {
468
- duration: l.duration
468
+ duration: n.duration
469
469
  }
470
- }, children: fe(Bt, x, d, A, q) }) : null
471
- ] }, `${S.label}-${m[u] || u}`)),
472
- St ? /* @__PURE__ */ i.jsx(Re, { value: `${S.label}`.length < U ? `${S.label}` : `${`${S.label}`.substring(0, U)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null
473
- ] }, S.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((S, Bt) => /* @__PURE__ */ i.jsx(Ee, { text: S.text, color: S.color, y: O(S.value), x1: 0 - k, x2: xt + r.right, classNames: S.classNames, styles: S.styles, animate: l, isInView: Y }, Bt)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = lt, 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] = g, t[29] = a[0].size, t[30] = w, t[31] = mt, t[32] = Ct, t[33] = xt, t[34] = Tt, t[35] = Y, t[36] = k, t[37] = r.bottom, t[38] = r.left, t[39] = r.right, t[40] = r.top, t[41] = nt, t[42] = Xt, t[43] = M, t[44] = y, t[45] = x, t[46] = et, t[47] = J, t[48] = Mt, t[49] = d, t[50] = A, t[51] = kt, t[52] = K, t[53] = H, t[54] = St, t[55] = Et, t[56] = tt, 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] = q, t[64] = U, t[65] = Q, t[66] = Ot, t[67] = jt, t[68] = ct, t[69] = Ft, t[70] = Nt, t[71] = Vt, t[72] = zt, t[73] = G, t[74] = I, t[75] = z, t[76] = ht, t[77] = ot, t[78] = dt, t[79] = vt, t[80] = _;
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;
474
474
  } else
475
- jt = t[67], ct = t[68], Ft = t[69], Nt = t[70], Vt = t[71], zt = t[72], G = t[73], I = t[74], z = t[75], ht = t[76], ot = t[77], dt = t[78], vt = t[79], _ = t[80];
476
- let ut;
477
- t[101] !== jt || t[102] !== Ft || t[103] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
478
- _,
479
- Ft
480
- ] }), t[101] = jt, t[102] = Ft, t[103] = _, t[104] = ut) : ut = t[104];
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];
481
483
  let wt;
482
- t[105] !== g ? (wt = g.filter(hi).map(xi), t[105] = g, t[106] = wt) : wt = t[106];
483
- let st;
484
- t[107] !== Nt || t[108] !== Vt || t[109] !== zt || t[110] !== G || t[111] !== I || t[112] !== ut || t[113] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
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,
485
486
  Vt,
486
- zt,
487
- G,
488
- I,
489
- ut,
490
- wt
491
- ] }), t[107] = Nt, t[108] = Vt, t[109] = zt, t[110] = G, t[111] = I, t[112] = ut, t[113] = wt, t[114] = st) : st = t[114];
487
+ et,
488
+ S,
489
+ 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];
492
494
  let At;
493
- t[115] !== ct || t[116] !== z || t[117] !== ht || t[118] !== ot || t[119] !== dt || t[120] !== vt || t[121] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[115] = ct, t[116] = z, t[117] = ht, t[118] = ot, t[119] = dt, t[120] = vt, t[121] = st, t[122] = At) : At = t[122];
494
- let $t;
495
- t[123] !== s?.tooltip || t[124] !== W || t[125] !== Yt || t[126] !== n || t[127] !== c?.tooltip || t[128] !== at ? ($t = n && at && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: at, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[123] = s?.tooltip, t[124] = W, t[125] = Yt, t[126] = n, t[127] = c?.tooltip, t[128] = at, t[129] = $t) : $t = t[129];
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];
496
498
  let b;
497
- t[130] !== s?.modal || t[131] !== mt || t[132] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[130] = s?.modal, t[131] = mt, t[132] = y, t[133] = b) : b = t[133];
498
- let $;
499
- return t[134] !== At || t[135] !== $t || t[136] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
499
+ return t[134] !== J || t[135] !== At || t[136] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
500
+ J,
500
501
  At,
501
- $t,
502
- b
503
- ] }), t[134] = At, t[135] = $t, t[136] = b, t[137] = $) : $ = t[137], $;
502
+ g
503
+ ] }), t[134] = J, t[135] = At, t[136] = g, t[137] = b) : b = t[137], b;
504
504
  }
505
- function xi(e) {
505
+ function gi(e) {
506
506
  return e.layer;
507
507
  }
508
- function hi(e) {
508
+ function yi(e) {
509
509
  return e.position === "after";
510
510
  }
511
- function fi(e) {
511
+ function bi(e) {
512
512
  return e.layer;
513
513
  }
514
- function pi(e) {
514
+ function vi(e) {
515
515
  return e.position === "before";
516
516
  }
517
- function gi(e) {
517
+ function wi(e) {
518
518
  return e !== 0;
519
519
  }
520
- function yi(e) {
520
+ function Ai(e) {
521
521
  return e !== 0;
522
522
  }
523
- function bi(e, t) {
523
+ function $i(e, t) {
524
524
  return `${t}`;
525
525
  }
526
- function vi(e) {
526
+ function Oi(e) {
527
527
  return `${e.id}`;
528
528
  }
529
- function wi(e) {
530
- const t = ge.c(112), {
531
- data: a,
532
- graphTitle: P,
533
- colors: qt,
534
- sources: Ut,
535
- graphDescription: It,
529
+ function Mi(e) {
530
+ const t = we.c(125), {
531
+ data: s,
532
+ graphTitle: X,
533
+ colors: Ut,
534
+ sources: Kt,
535
+ graphDescription: Lt,
536
536
  barPadding: Ot,
537
537
  showTicks: Tt,
538
- truncateBy: B,
539
- height: q,
540
- width: A,
541
- footNote: lt,
542
- colorDomain: St,
543
- colorLegendTitle: tt,
544
- suffix: Et,
545
- prefix: U,
538
+ truncateBy: P,
539
+ height: K,
540
+ width: y,
541
+ footNote: st,
542
+ colorDomain: ht,
543
+ colorLegendTitle: it,
544
+ suffix: Jt,
545
+ prefix: Y,
546
546
  showValues: at,
547
547
  showColorScale: Mt,
548
548
  padding: kt,
549
- backgroundColor: Xt,
550
- leftMargin: M,
551
- rightMargin: J,
552
- topMargin: H,
553
- bottomMargin: D,
554
- showLabels: nt,
555
- relativeHeight: K,
556
- tooltip: mt,
557
- onSeriesMouseOver: L,
558
- refValues: Q,
559
- graphID: et,
560
- maxValue: c,
561
- minValue: s,
562
- onSeriesMouseClick: l,
563
- graphDownload: m,
564
- dataDownload: d,
565
- language: g,
566
- labelOrder: x,
567
- minHeight: k,
568
- theme: rt,
569
- maxBarThickness: Z,
570
- ariaLabel: pt,
571
- resetSelectionOnDoubleClick: Jt,
572
- detailsOnClick: Gt,
573
- barAxisTitle: Y,
574
- noOfTicks: gt,
575
- valueColor: Ht,
576
- styles: r,
577
- classNames: n,
578
- filterNA: F,
579
- animate: y,
580
- precision: it,
581
- customLayers: W,
582
- timeline: C,
583
- naLabel: Yt,
584
- sortParameter: yt,
585
- sortData: xt,
586
- orientation: Ct
587
- } = e, E = qt === void 0 ? xe.light.categoricalColors.colors : qt, w = Ot === void 0 ? 0.25 : Ot, bt = Tt === void 0 ? !0 : Tt, Wt = B === void 0 ? 999 : B, jt = Et === void 0 ? "" : Et, ct = U === void 0 ? "" : U, Ft = at === void 0 ? !0 : at, Nt = Mt === void 0 ? !0 : Mt, Vt = Xt === void 0 ? !1 : Xt, zt = nt === void 0 ? !0 : nt, G = m === void 0 ? !1 : m, I = d === void 0 ? !1 : d, z = g === void 0 ? "en" : g, ht = k === void 0 ? 0 : k, ot = rt === void 0 ? "light" : rt, dt = Jt === void 0 ? !0 : Jt, vt = gt === void 0 ? 5 : gt, _ = F === void 0 ? !0 : F, ut = y === void 0 ? !1 : y, wt = it === void 0 ? 2 : it;
588
- let st;
589
- t[0] !== W ? (st = W === void 0 ? [] : W, t[0] = W, t[1] = st) : st = t[1];
590
- const At = st;
591
- let $t;
592
- t[2] !== C ? ($t = C === void 0 ? {
549
+ backgroundColor: Gt,
550
+ leftMargin: w,
551
+ rightMargin: Q,
552
+ topMargin: E,
553
+ 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 ? {
593
593
  enabled: !1,
594
594
  autoplay: !1,
595
595
  showOnlyActiveDate: !0
596
- } : C, t[2] = C, t[3] = $t) : $t = t[3];
597
- const b = $t, $ = Yt === void 0 ? "NA" : Yt, v = (Ct === void 0 ? "vertical" : Ct) === "horizontal" ? si : mi, [ft, j] = Zt(0), [p, f] = Zt(0), [Dt, Lt] = Zt(b.autoplay);
598
- let Kt;
599
- if (t[4] !== a || t[5] !== b.dateFormat) {
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
600
  let Qt;
601
- t[7] !== b.dateFormat ? (Qt = (Pt) => He(`${Pt.date}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = b.dateFormat, t[8] = Qt) : Qt = t[8], Kt = [...new Set(a.filter(Wi).map(Qt))], Kt.sort(Hi), t[4] = a, t[5] = b.dateFormat, t[6] = Kt;
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;
602
602
  } else
603
- Kt = t[6];
604
- const N = Kt, [T, Rt] = Zt(b.autoplay ? 0 : N.length - 1), [X, V] = Zt(void 0), R = pe(null), o = pe(null);
605
- let h, _t;
606
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = () => {
607
- const Qt = new ResizeObserver((Pt) => {
608
- j(Pt[0].target.clientWidth || 620), f(Pt[0].target.clientHeight || 480);
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] === 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);
609
609
  });
610
- return R.current && Qt.observe(R.current), () => Qt.disconnect();
611
- }, _t = [], t[9] = h, t[10] = _t) : (h = t[9], _t = t[10]), ke(h, _t);
612
- let S, Bt;
613
- t[11] !== Dt || t[12] !== b.speed || t[13] !== N ? (S = () => {
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
614
  const Qt = setInterval(() => {
615
- Rt((Pt) => Pt < N.length - 1 ? Pt + 1 : 0);
616
- }, (b.speed || 2) * 1e3);
617
- return Dt || clearInterval(Qt), () => clearInterval(Qt);
618
- }, Bt = [N, Dt, b.speed], t[11] = Dt, t[12] = b.speed, t[13] = N, t[14] = S, t[15] = Bt) : (S = t[14], Bt = t[15]), ke(S, Bt);
619
- const u = b.dateFormat || "yyyy";
620
- let se;
621
- t[16] !== T || t[17] !== u || t[18] !== b.showOnlyActiveDate || t[19] !== N ? (se = Fe(N, T, b.showOnlyActiveDate, u), t[16] = T, t[17] = u, t[18] = b.showOnlyActiveDate, t[19] = N, t[20] = se) : se = t[20];
622
- const ae = se, me = n?.graphContainer, he = r?.graphContainer;
623
- let ue;
624
- t[21] !== n?.description || t[22] !== n?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== r?.description || t[29] !== r?.title || t[30] !== A ? (ue = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
625
- title: r?.title,
626
- description: r?.description
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
627
627
  }, classNames: {
628
- title: n?.title,
629
- description: n?.description
630
- }, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? o : void 0, dataDownload: I ? a.map(Pi).filter(Fi).length > 0 ? a.map(Bi).filter(Si) : a.filter(Ti) : null }) : null, t[21] = n?.description, t[22] = n?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = r?.description, t[29] = r?.title, t[30] = A, t[31] = ue) : ue = t[31];
631
- let oe;
632
- t[32] !== T || t[33] !== ae || t[34] !== Dt || t[35] !== b.enabled || t[36] !== N ? (oe = b.enabled && N.length > 0 && ae ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
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];
631
+ 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: [
633
633
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
634
- Lt(!Dt);
635
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Dt ? "Click to pause animation" : "Click to play animation", children: Dt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
636
- /* @__PURE__ */ i.jsx(Pe, { min: N[0], max: N[N.length - 1], marks: ae, step: null, defaultValue: N[N.length - 1], value: N[T], onChangeComplete: (Qt) => {
637
- Rt(N.indexOf(Qt));
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
638
  }, onChange: (Qt) => {
639
- Rt(N.indexOf(Qt));
639
+ _t(F.indexOf(Qt));
640
640
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
641
- ] }) : null, t[32] = T, t[33] = ae, t[34] = Dt, t[35] = b.enabled, t[36] = N, t[37] = oe) : oe = t[37];
642
- let re;
643
- t[38] !== v || t[39] !== ut || t[40] !== Y || t[41] !== w || t[42] !== D || t[43] !== n || t[44] !== St || t[45] !== tt || t[46] !== E || t[47] !== At || t[48] !== a || t[49] !== Gt || t[50] !== _ || t[51] !== T || t[52] !== x || t[53] !== z || t[54] !== M || t[55] !== Z || t[56] !== c || t[57] !== s || t[58] !== $ || t[59] !== vt || t[60] !== l || t[61] !== L || t[62] !== wt || t[63] !== ct || t[64] !== Q || t[65] !== dt || t[66] !== J || t[67] !== X || t[68] !== Nt || t[69] !== zt || t[70] !== bt || t[71] !== Ft || t[72] !== xt || t[73] !== yt || t[74] !== r || t[75] !== jt || t[76] !== p || t[77] !== ft || t[78] !== b.dateFormat || t[79] !== b.enabled || t[80] !== mt || t[81] !== H || t[82] !== Wt || t[83] !== N || t[84] !== Ht || t[85] !== A ? (re = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
644
- Nt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: E, colorLegendTitle: tt, setSelectedColor: V, showNAColor: !1, className: n?.colorLegend }) : null,
645
- /* @__PURE__ */ i.jsx(_e, { ref: R, children: ft && p ? /* @__PURE__ */ i.jsx(v, { data: yt !== void 0 ? yt === "total" ? Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Ni) : Qt), Ii, [xt || "asc"]) : Te(Me(a, b.dateFormat || "yyyy").filter((Qt) => b.enabled ? Qt.date === we(new Date(N[T]), b.dateFormat || "yyyy") : Qt).filter((Qt) => _ ? !Qt.size.every(Li) : Qt), (Qt) => ie(Qt.size[yt]) ? -1 / 0 : Qt.size[yt], [xt || "asc"]) : Me(a, b.dateFormat || "yyyy").filter((Qt) => _ ? !Qt.size.every(Di) : Qt), barColors: E, width: ft, height: p, suffix: jt, prefix: ct, showValues: Ft, barPadding: w, showTicks: bt, leftMargin: M, rightMargin: J, topMargin: H, bottomMargin: D, truncateBy: Wt, showLabels: zt, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(c) ? Math.max(...a.map(Vi)) < 0 ? 0 : Math.max(...a.map(ki)) : c, minValue: ie(s) ? Math.min(...a.map(Oi)) >= 0 ? 0 : Math.min(...a.map(Ai)) : s, onSeriesMouseClick: l, selectedColor: X, labelOrder: x, rtl: z === "he" || z === "ar", maxBarThickness: Z, resetSelectionOnDoubleClick: dt, detailsOnClick: Gt, barAxisTitle: Y, noOfTicks: vt, valueColor: Ht, styles: r, classNames: n, colorDomain: St, animate: ut === !0 ? {
646
- duration: 0.5,
647
- once: !0,
648
- amount: 0.5
649
- } : ut || {
650
- duration: 0,
651
- once: !0,
652
- amount: 0
653
- }, precision: wt, customLayers: At, naLabel: $ }) : null })
654
- ] }) }), t[38] = v, t[39] = ut, t[40] = Y, t[41] = w, t[42] = D, t[43] = n, t[44] = St, t[45] = tt, t[46] = E, t[47] = At, t[48] = a, t[49] = Gt, t[50] = _, t[51] = T, t[52] = x, t[53] = z, t[54] = M, t[55] = Z, t[56] = c, t[57] = s, t[58] = $, t[59] = vt, t[60] = l, t[61] = L, t[62] = wt, t[63] = ct, t[64] = Q, t[65] = dt, t[66] = J, t[67] = X, t[68] = Nt, t[69] = zt, t[70] = bt, t[71] = Ft, t[72] = xt, t[73] = yt, t[74] = r, t[75] = jt, t[76] = p, t[77] = ft, t[78] = b.dateFormat, t[79] = b.enabled, t[80] = mt, t[81] = H, t[82] = Wt, t[83] = N, t[84] = Ht, t[85] = A, t[86] = re) : re = t[86];
641
+ ] }) : null, t[32] = M, t[33] = fe, t[34] = x, t[35] = g.enabled, t[36] = F, t[37] = ae) : ae = t[37];
655
642
  let ne;
656
- t[87] !== n?.footnote || t[88] !== n?.source || t[89] !== lt || t[90] !== Ut || t[91] !== r?.footnote || t[92] !== r?.source || t[93] !== A ? (ne = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
657
- footnote: r?.footnote,
658
- source: r?.source
659
- }, classNames: {
660
- footnote: n?.footnote,
661
- source: n?.source
662
- }, sources: Ut, footNote: lt, width: A }) : null, t[87] = n?.footnote, t[88] = n?.source, t[89] = lt, t[90] = Ut, t[91] = r?.footnote, t[92] = r?.source, t[93] = A, t[94] = ne) : ne = t[94];
663
- let de;
664
- return t[95] !== pt || t[96] !== Vt || t[97] !== et || t[98] !== q || t[99] !== z || t[100] !== ht || t[101] !== kt || t[102] !== K || t[103] !== me || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== ot || t[110] !== A ? (de = /* @__PURE__ */ i.jsxs(ti, { className: me, style: he, id: et, ref: o, "aria-label": pt, backgroundColor: Vt, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: kt, children: [
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];
646
+ 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 ? {
648
+ duration: 0.5,
649
+ once: !0,
650
+ amount: 0.5
651
+ } : U || {
652
+ duration: 0,
653
+ once: !0,
654
+ 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];
656
+ let re;
657
+ t[94] !== ue || t[95] !== oe ? (re = /* @__PURE__ */ i.jsxs(li, { ref: D, children: [
665
658
  ue,
666
- oe,
667
- re,
668
- ne
669
- ] }), t[95] = pt, t[96] = Vt, t[97] = et, t[98] = q, t[99] = z, t[100] = ht, t[101] = kt, t[102] = K, t[103] = me, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = ot, t[110] = A, t[111] = de) : de = t[111], de;
670
- }
671
- function Ai(e) {
672
- return Math.min(...e.size.filter($i));
673
- }
674
- function $i(e) {
675
- return !ie(e);
676
- }
677
- function Oi(e) {
678
- return Math.min(...e.size.filter(Mi));
679
- }
680
- function Mi(e) {
681
- return !ie(e);
659
+ 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: [
663
+ ne,
664
+ re
665
+ ] }), t[97] = ne, t[98] = re, t[99] = me) : me = t[99];
666
+ 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
670
+ }, 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];
674
+ 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
+ ae,
678
+ me,
679
+ 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;
682
681
  }
683
682
  function ki(e) {
684
- return Math.max(...e.size.filter(Ci));
683
+ return Math.min(...e.size.filter(Ci));
685
684
  }
686
685
  function Ci(e) {
687
- return !ie(e);
686
+ return !le(e);
688
687
  }
689
688
  function Vi(e) {
690
- return Math.max(...e.size.filter(zi));
689
+ return Math.min(...e.size.filter(zi));
691
690
  }
692
691
  function zi(e) {
693
- return !ie(e);
692
+ return !le(e);
694
693
  }
695
694
  function Di(e) {
696
- return e == null;
695
+ return Math.max(...e.size.filter(Li));
697
696
  }
698
697
  function Li(e) {
699
- return e == null;
698
+ return !le(e);
700
699
  }
701
700
  function Ii(e) {
702
- return ce(e.size.filter(ji));
703
- }
704
- function ji(e) {
705
- return !ie(e);
701
+ return Math.max(...e.size.filter(Ni));
706
702
  }
707
703
  function Ni(e) {
704
+ return !le(e);
705
+ }
706
+ function ji(e) {
708
707
  return e == null;
709
708
  }
710
709
  function Ti(e) {
711
- return e !== void 0;
710
+ return e == null;
712
711
  }
713
712
  function Si(e) {
714
- return e !== void 0;
713
+ return he(e.size.filter(Bi));
715
714
  }
716
715
  function Bi(e) {
717
- return e.data;
716
+ return !le(e);
718
717
  }
719
718
  function Fi(e) {
720
- return e !== void 0;
719
+ return e == null;
721
720
  }
722
721
  function Pi(e) {
722
+ return e !== void 0;
723
+ }
724
+ function Hi(e) {
725
+ return e !== void 0;
726
+ }
727
+ function Wi(e) {
723
728
  return e.data;
724
729
  }
725
- function Hi(e, t) {
730
+ function Xi(e) {
731
+ return e !== void 0;
732
+ }
733
+ function Yi(e) {
734
+ return e.data;
735
+ }
736
+ function Ei(e, t) {
726
737
  return e - t;
727
738
  }
728
- function Wi(e) {
739
+ function Gi(e) {
729
740
  return e.date;
730
741
  }
731
- function Xi(e) {
732
- const t = ge.c(131), {
733
- data: a,
734
- barColor: P,
735
- suffix: qt,
736
- prefix: Ut,
737
- barPadding: It,
742
+ function Ri(e) {
743
+ const t = we.c(132), {
744
+ data: s,
745
+ barColor: X,
746
+ suffix: Ut,
747
+ prefix: Kt,
748
+ barPadding: Lt,
738
749
  showValues: Ot,
739
750
  showTicks: Tt,
740
- truncateBy: B,
741
- width: q,
742
- height: A,
743
- colorDomain: lt,
744
- topMargin: St,
745
- bottomMargin: tt,
746
- leftMargin: Et,
747
- rightMargin: U,
751
+ truncateBy: P,
752
+ width: K,
753
+ height: y,
754
+ colorDomain: st,
755
+ topMargin: ht,
756
+ bottomMargin: it,
757
+ leftMargin: Jt,
758
+ rightMargin: Y,
748
759
  showLabels: at,
749
760
  tooltip: Mt,
750
761
  onSeriesMouseOver: kt,
751
- refValues: Xt,
752
- selectedColor: M,
753
- highlightedDataPoints: J,
754
- maxValue: H,
755
- minValue: D,
756
- onSeriesMouseClick: nt,
757
- labelOrder: K,
758
- rtl: mt,
759
- maxBarThickness: L,
760
- minBarThickness: Q,
761
- resetSelectionOnDoubleClick: et,
762
- detailsOnClick: c,
763
- barAxisTitle: s,
764
- valueColor: l,
765
- noOfTicks: m,
766
- styles: d,
767
- classNames: g,
768
- animate: x,
769
- dimmedOpacity: k,
770
- precision: rt,
771
- customLayers: Z,
772
- naLabel: pt
773
- } = e, Jt = St === void 0 ? 25 : St, Gt = tt === void 0 ? 10 : tt, Y = Et === void 0 ? 100 : Et, gt = U === void 0 ? 40 : U, Ht = pe(null);
774
- let r;
775
- t[0] !== x.amount || t[1] !== x.once ? (r = {
776
- once: x.once,
777
- amount: x.amount
778
- }, t[0] = x.amount, t[1] = x.once, t[2] = r) : r = t[2];
779
- const n = Ie(Ht, r), [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = s ? Jt + 25 : Jt;
780
- let E;
781
- t[3] !== Gt || t[4] !== Y || t[5] !== gt || t[6] !== Ct ? (E = {
782
- top: Ct,
783
- bottom: Gt,
784
- left: Y,
785
- right: gt
786
- }, t[3] = Gt, t[4] = Y, t[5] = gt, t[6] = Ct, t[7] = E) : E = t[7];
787
- const w = E, bt = q - w.left - w.right, Wt = A - w.top - w.bottom;
788
- let jt;
789
- if (t[8] !== a || t[9] !== K) {
790
- const p = /* @__PURE__ */ new Set(), f = a.map((Lt, Kt) => {
791
- const N = K ? `${Lt.label}` : `${Kt}`;
792
- return p.add(N), {
793
- ...Lt,
794
- id: N
762
+ refValues: Gt,
763
+ selectedColor: w,
764
+ highlightedDataPoints: Q,
765
+ maxValue: E,
766
+ 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
795
807
  };
796
- }), Dt = K ? K.filter((Lt) => !p.has(Lt)) : [];
797
- jt = [...f, ...Dt.map(ts)], t[8] = a, t[9] = K, t[10] = jt;
808
+ }), Yt = Z ? Z.filter((Zt) => !h.has(Zt)) : [];
809
+ gt = [...x, ...Yt.map(sl)], t[8] = s, t[9] = Z, t[10] = gt;
798
810
  } else
799
- jt = t[10];
800
- const ct = jt;
801
- let Ft;
802
- t[11] !== ct || t[12] !== K ? (Ft = K ?? ct.map(_i), t[11] = ct, t[12] = K, t[13] = Ft) : Ft = t[13];
803
- const Nt = Ft;
804
- let Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st, At;
805
- if (t[14] !== x || t[15] !== s || t[16] !== P || t[17] !== Nt || t[18] !== It || t[19] !== g?.graphObjectValues || t[20] !== g?.xAxis?.gridLines || t[21] !== g?.xAxis?.labels || t[22] !== g?.xAxis?.title || t[23] !== g?.yAxis?.axis || t[24] !== g?.yAxis?.labels || t[25] !== lt || t[26] !== Z || t[27] !== a || t[28] !== ct || t[29] !== c || t[30] !== k || t[31] !== Wt || t[32] !== bt || t[33] !== A || t[34] !== J || t[35] !== n || t[36] !== w.bottom || t[37] !== w.left || t[38] !== w.top || t[39] !== L || t[40] !== H || t[41] !== Q || t[42] !== D || t[43] !== it || t[44] !== pt || t[45] !== m || t[46] !== nt || t[47] !== kt || t[48] !== rt || t[49] !== Ut || t[50] !== Xt || t[51] !== et || t[52] !== mt || t[53] !== M || t[54] !== at || t[55] !== Tt || t[56] !== Ot || t[57] !== d?.graphObjectValues || t[58] !== d?.xAxis?.gridLines || t[59] !== d?.xAxis?.labels || t[60] !== d?.xAxis?.title || t[61] !== d?.yAxis?.axis || t[62] !== d?.yAxis?.labels || t[63] !== qt || t[64] !== Jt || t[65] !== B || t[66] !== l || t[67] !== q) {
806
- const p = je().domain([D, H]).range([0, bt]).nice(), f = ve().domain(Nt).range([0, Q ? Math.max(Wt, Q * Nt.length) : L ? Math.min(Wt, L * Nt.length) : Wt]).paddingInner(It), Dt = p.ticks(m);
807
- zt = ee.svg, vt = Ht, _ = `${q}px`, ut = `${A}px`, wt = `0 0 ${q} ${A}`, st = "ltr", z = `translate(${w.left},${w.top})`, ht = Tt ? /* @__PURE__ */ i.jsx(Xe, { values: Dt.filter(Zi), x: Dt.filter(Qi).map((o) => p(o)), y1: 0 - Jt, y2: Wt + w.bottom, styles: {
808
- gridLines: d?.xAxis?.gridLines,
809
- labels: d?.xAxis?.labels
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
810
822
  }, classNames: {
811
- gridLines: g?.xAxis?.gridLines,
812
- labels: g?.xAxis?.labels
813
- }, suffix: qt, prefix: Ut, labelType: "secondary", showGridLines: !0, precision: rt }) : null;
814
- const Lt = bt / 2, Kt = 0 - w.top + 15, N = d?.xAxis?.title, T = g?.xAxis?.title;
815
- t[82] !== s || t[83] !== Lt || t[84] !== Kt || t[85] !== N || t[86] !== T ? (ot = /* @__PURE__ */ i.jsx(De, { x: Lt, y: Kt, style: N, className: T, text: s }), t[82] = s, t[83] = Lt, t[84] = Kt, t[85] = N, t[86] = T, t[87] = ot) : ot = t[87], t[88] !== Z ? (dt = Z.filter(Ki).map(Ji), t[88] = Z, t[89] = dt) : dt = t[89], Vt = Ne, At = ct.map((o) => ie(f(o.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", variants: {
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: {
816
828
  initial: {
817
- opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85
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
818
830
  },
819
831
  whileInView: {
820
- opacity: M ? o.color && P[lt.indexOf(o.color)] === M ? 1 : k : J.length !== 0 ? J.indexOf(o.label) !== -1 ? 0.85 : k : 0.85,
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,
821
833
  transition: {
822
- duration: x.duration
834
+ duration: d.duration
823
835
  }
824
836
  }
825
- }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
837
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
826
838
  opacity: 0,
827
839
  transition: {
828
- duration: x.duration
840
+ duration: d.duration
829
841
  }
830
- }, onMouseEnter: (h) => {
831
- y(o), xt(h.clientY), Yt(h.clientX), kt?.(o);
842
+ }, onMouseEnter: ($t) => {
843
+ z(a), Nt($t.clientY), It($t.clientX), kt?.(a);
832
844
  }, onClick: () => {
833
- (nt || c) && (Ce(it, o) && et ? (W(void 0), nt?.(void 0)) : (W(o), nt?.(o)));
834
- }, onMouseMove: (h) => {
835
- y(o), xt(h.clientY), Yt(h.clientX);
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);
836
848
  }, onMouseLeave: () => {
837
- y(void 0), Yt(void 0), xt(void 0), kt?.(void 0);
849
+ z(void 0), It(void 0), Nt(void 0), kt?.(void 0);
838
850
  }, children: [
839
- o.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
851
+ Pt && /* @__PURE__ */ i.jsx(ee.rect, { height: x.bandwidth(), variants: {
852
+ initial: {
853
+ width: Ht,
854
+ x: 0,
855
+ y: x(`${a.id}`),
856
+ fill: Pt
857
+ },
858
+ whileInView: {
859
+ width: Ht,
860
+ x: 0,
861
+ y: x(`${a.id}`),
862
+ fill: Pt
863
+ }
864
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
865
+ opacity: 0,
866
+ transition: {
867
+ duration: d.duration
868
+ }
869
+ } }),
870
+ a.size ? /* @__PURE__ */ i.jsx(ee.rect, { variants: {
840
871
  initial: {
841
872
  width: 0,
842
- x: p(0),
843
- y: f(`${o.id}`),
844
- fill: a.filter(Ui).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray
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
845
876
  },
846
877
  whileInView: {
847
- width: o.size >= 0 ? p(o.size) - p(0) : p(0) - p(o.size),
848
- x: o.size >= 0 ? p(0) : p(o.size),
849
- y: f(`${o.id}`),
850
- fill: a.filter(qi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray,
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,
851
882
  transition: {
852
- duration: x.duration
883
+ duration: d.duration
853
884
  }
854
885
  }
855
- }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
886
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
856
887
  width: 0,
857
- x: p(0),
888
+ x: h(0),
858
889
  transition: {
859
- duration: x.duration
890
+ duration: d.duration
860
891
  }
861
- }, height: f.bandwidth() }) : null,
862
- at ? /* @__PURE__ */ i.jsx(We, { value: `${o.label}`.length < B ? `${o.label}` : `${`${o.label}`.substring(0, B)}...`, y: f(o.id) || 0, x: (o.size || 0) < 0 ? p(0) : 0 - w.left, width: (o.size || 0) < 0 ? q - p(0) : p(0) + w.left, height: f.bandwidth(), alignment: o.size && o.size < 0 ? "left" : "right", style: d?.yAxis?.labels, className: g?.yAxis?.labels, animate: x, isInView: n }) : null,
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,
863
894
  Ot ? /* @__PURE__ */ i.jsx(ee.text, { style: {
864
- textAnchor: o.size && o.size < 0 ? "end" : "start",
865
- ...d?.graphObjectValues || {}
866
- }, className: be("graph-value text-sm", !l && P.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", g?.graphObjectValues), dx: o.size && o.size < 0 ? -5 : 5, dy: "0.33em", variants: {
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: {
867
898
  initial: {
868
- x: p(0),
869
- y: f(`${o.id}`) + f.bandwidth() / 2,
899
+ x: h(0),
900
+ y: x(`${a.id}`) + x.bandwidth() / 2,
870
901
  opacity: 0,
871
- fill: l || (a.filter(Ri).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray)
902
+ fill: n || (s.filter(Ki).length === 0 ? X[0] : a.color ? X[st.indexOf(a.color)] : ge.gray)
872
903
  },
873
904
  whileInView: {
874
- x: o.size ? p(o.size) : p(0),
905
+ x: a.size ? h(a.size) : h(0),
875
906
  opacity: 1,
876
- y: f(`${o.id}`) + f.bandwidth() / 2,
877
- fill: l || (a.filter(Gi).length === 0 ? P[0] : o.color ? P[lt.indexOf(o.color)] : xe.gray),
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),
878
909
  transition: {
879
- duration: x.duration
910
+ duration: d.duration
880
911
  }
881
912
  }
882
- }, initial: "initial", animate: n ? "whileInView" : "initial", exit: {
913
+ }, initial: "initial", animate: I ? "whileInView" : "initial", exit: {
883
914
  opacity: 0,
884
915
  transition: {
885
- duration: x.duration
916
+ duration: d.duration
886
917
  }
887
- }, children: fe(o.size, pt, rt, Ut, qt) }) : null
888
- ] }, o.label));
889
- const Rt = g?.yAxis?.axis;
890
- let X;
891
- t[90] !== Rt ? (X = {
892
- axis: Rt
893
- }, t[90] = Rt, t[91] = X) : X = t[91];
894
- const V = d?.yAxis?.axis;
918
+ }, children: be(a.size, Ft, ct, Kt, Ut) }) : null
919
+ ] }, a.label));
920
+ const W = f?.yAxis?.axis;
895
921
  let R;
896
- t[92] !== V ? (R = {
897
- axis: V
898
- }, t[92] = V, t[93] = R) : R = t[93], G = /* @__PURE__ */ i.jsx(ze, { x1: p(D < 0 ? 0 : D), x2: p(D < 0 ? 0 : D), y1: -2.5, y2: Wt + w.bottom, classNames: X, styles: R }), I = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((o, h) => /* @__PURE__ */ i.jsx(Ye, { text: o.text, color: o.color, x: p(o.value), y1: 0 - w.top, y2: Wt + w.bottom, textSide: p(o.value) > bt * 0.75 || mt ? "left" : "right", classNames: o.classNames, styles: o.styles, animate: x, isInView: n }, h)) }) : null, t[14] = x, t[15] = s, t[16] = P, t[17] = Nt, t[18] = It, t[19] = g?.graphObjectValues, t[20] = g?.xAxis?.gridLines, t[21] = g?.xAxis?.labels, t[22] = g?.xAxis?.title, t[23] = g?.yAxis?.axis, t[24] = g?.yAxis?.labels, t[25] = lt, t[26] = Z, t[27] = a, t[28] = ct, t[29] = c, t[30] = k, t[31] = Wt, t[32] = bt, t[33] = A, t[34] = J, t[35] = n, t[36] = w.bottom, t[37] = w.left, t[38] = w.top, t[39] = L, t[40] = H, t[41] = Q, t[42] = D, t[43] = it, t[44] = pt, t[45] = m, t[46] = nt, t[47] = kt, t[48] = rt, t[49] = Ut, t[50] = Xt, t[51] = et, t[52] = mt, t[53] = M, t[54] = at, t[55] = Tt, t[56] = Ot, t[57] = d?.graphObjectValues, t[58] = d?.xAxis?.gridLines, t[59] = d?.xAxis?.labels, t[60] = d?.xAxis?.title, t[61] = d?.yAxis?.axis, t[62] = d?.yAxis?.labels, t[63] = qt, t[64] = Jt, t[65] = B, t[66] = l, t[67] = q, t[68] = Vt, t[69] = zt, t[70] = G, t[71] = I, t[72] = z, t[73] = ht, t[74] = ot, t[75] = dt, t[76] = vt, t[77] = _, t[78] = ut, t[79] = wt, t[80] = st, t[81] = At;
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;
899
930
  } else
900
- Vt = t[68], zt = t[69], G = t[70], I = t[71], z = t[72], ht = t[73], ot = t[74], dt = t[75], vt = t[76], _ = t[77], ut = t[78], wt = t[79], st = t[80], At = t[81];
901
- let $t;
902
- t[94] !== Vt || t[95] !== G || t[96] !== I || t[97] !== At ? ($t = /* @__PURE__ */ i.jsxs(Vt, { children: [
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: [
903
934
  At,
904
- G,
905
- I
906
- ] }), t[94] = Vt, t[95] = G, t[96] = I, t[97] = At, t[98] = $t) : $t = t[98];
935
+ S,
936
+ j
937
+ ] }), t[95] = Vt, t[96] = S, t[97] = j, t[98] = At, t[99] = g) : g = t[99];
907
938
  let b;
908
- t[99] !== Z ? (b = Z.filter(Ei).map(Yi), t[99] = Z, t[100] = b) : b = t[100];
909
- let $;
910
- t[101] !== z || t[102] !== ht || t[103] !== ot || t[104] !== dt || t[105] !== $t || t[106] !== b ? ($ = /* @__PURE__ */ i.jsxs("g", { transform: z, children: [
911
- ht,
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,
912
943
  ot,
913
- dt,
914
- $t,
944
+ ut,
945
+ g,
915
946
  b
916
- ] }), t[101] = z, t[102] = ht, t[103] = ot, t[104] = dt, t[105] = $t, t[106] = b, t[107] = $) : $ = t[107];
917
- let O;
918
- t[108] !== zt || t[109] !== vt || t[110] !== _ || t[111] !== ut || t[112] !== wt || t[113] !== st || t[114] !== $ ? (O = /* @__PURE__ */ i.jsx(zt, { ref: vt, width: _, height: ut, viewBox: wt, direction: st, children: $ }), t[108] = zt, t[109] = vt, t[110] = _, t[111] = ut, t[112] = wt, t[113] = st, t[114] = $, t[115] = O) : O = t[115];
919
- let v;
920
- t[116] !== g?.tooltip || t[117] !== C || t[118] !== yt || t[119] !== F || t[120] !== d?.tooltip || t[121] !== Mt ? (v = F && Mt && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: Mt, xPos: C, yPos: yt, backgroundStyle: d?.tooltip, className: g?.tooltip }) : null, t[116] = g?.tooltip, t[117] = C, t[118] = yt, t[119] = F, t[120] = d?.tooltip, t[121] = Mt, t[122] = v) : v = t[122];
921
- let ft;
922
- t[123] !== g?.modal || t[124] !== c || t[125] !== it ? (ft = c && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: c, data: it, setData: W, className: g?.modal }) : null, t[123] = g?.modal, t[124] = c, t[125] = it, t[126] = ft) : ft = t[126];
923
- let j;
924
- return t[127] !== O || t[128] !== v || t[129] !== ft ? (j = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
925
- O,
926
- v,
927
- ft
928
- ] }), t[127] = O, t[128] = v, t[129] = ft, t[130] = j) : j = t[130], j;
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;
929
960
  }
930
- function Yi(e) {
961
+ function qi(e) {
931
962
  return e.layer;
932
963
  }
933
- function Ei(e) {
964
+ function Ui(e) {
934
965
  return e.position === "after";
935
966
  }
936
- function Gi(e) {
967
+ function Ji(e) {
937
968
  return e.color;
938
969
  }
939
- function Ri(e) {
970
+ function Ki(e) {
940
971
  return e.color;
941
972
  }
942
- function qi(e) {
973
+ function Qi(e) {
943
974
  return e.color;
944
975
  }
945
- function Ui(e) {
976
+ function Zi(e) {
946
977
  return e.color;
947
978
  }
948
- function Ji(e) {
979
+ function _i(e) {
949
980
  return e.layer;
950
981
  }
951
- function Ki(e) {
982
+ function tl(e) {
952
983
  return e.position === "before";
953
984
  }
954
- function Qi(e) {
985
+ function el(e) {
955
986
  return e !== 0;
956
987
  }
957
- function Zi(e) {
988
+ function il(e) {
958
989
  return e !== 0;
959
990
  }
960
- function _i(e) {
991
+ function ll(e) {
961
992
  return `${e.id}`;
962
993
  }
963
- function ts(e) {
994
+ function sl(e) {
964
995
  return {
965
996
  id: e,
966
997
  label: e,
@@ -968,248 +999,268 @@ function ts(e) {
968
999
  size: null
969
1000
  };
970
1001
  }
971
- function es(e) {
972
- const t = ge.c(139), {
973
- leftMargin: a,
974
- rightMargin: P,
975
- topMargin: qt,
976
- bottomMargin: Ut,
977
- data: It,
1002
+ function al(e) {
1003
+ const t = we.c(140), {
1004
+ leftMargin: s,
1005
+ rightMargin: X,
1006
+ topMargin: Ut,
1007
+ bottomMargin: Kt,
1008
+ data: Lt,
978
1009
  width: Ot,
979
1010
  height: Tt,
980
- barColor: B,
981
- suffix: q,
982
- prefix: A,
983
- barPadding: lt,
984
- showLabels: St,
985
- showValues: tt,
986
- showTicks: Et,
987
- colorDomain: U,
1011
+ barColor: P,
1012
+ suffix: K,
1013
+ prefix: y,
1014
+ barPadding: st,
1015
+ showLabels: ht,
1016
+ showValues: it,
1017
+ showTicks: Jt,
1018
+ colorDomain: Y,
988
1019
  truncateBy: at,
989
1020
  tooltip: Mt,
990
1021
  onSeriesMouseOver: kt,
991
- refValues: Xt,
992
- selectedColor: M,
993
- maxValue: J,
994
- minValue: H,
995
- highlightedDataPoints: D,
996
- onSeriesMouseClick: nt,
997
- labelOrder: K,
998
- maxBarThickness: mt,
999
- minBarThickness: L,
1000
- resetSelectionOnDoubleClick: Q,
1001
- detailsOnClick: et,
1002
- barAxisTitle: c,
1003
- valueColor: s,
1004
- noOfTicks: l,
1005
- styles: m,
1006
- classNames: d,
1007
- dimmedOpacity: g,
1008
- animate: x,
1009
- precision: k,
1010
- customLayers: rt,
1011
- naLabel: Z
1012
- } = e, pt = a === void 0 ? 20 : a, Jt = P === void 0 ? 20 : P, Gt = qt === void 0 ? 20 : qt, Y = Ut === void 0 ? 25 : Ut, gt = pe(null);
1013
- let Ht;
1014
- t[0] !== x.amount || t[1] !== x.once ? (Ht = {
1015
- once: x.once,
1016
- amount: x.amount
1017
- }, t[0] = x.amount, t[1] = x.once, t[2] = Ht) : Ht = t[2];
1018
- const r = Ie(gt, Ht), n = c ? pt + 30 : pt;
1019
- let F;
1020
- t[3] !== Y || t[4] !== Jt || t[5] !== n || t[6] !== Gt ? (F = {
1021
- top: Gt,
1022
- bottom: Y,
1023
- left: n,
1024
- right: Jt
1025
- }, t[3] = Y, t[4] = Jt, t[5] = n, t[6] = Gt, t[7] = F) : F = t[7];
1026
- const y = F, [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), [Ct, E] = Zt(void 0), w = Ot - y.left - y.right, bt = Tt - y.top - y.bottom;
1027
- let Wt;
1028
- if (t[8] !== It || t[9] !== K) {
1029
- const j = /* @__PURE__ */ new Set(), p = It.map((Dt, Lt) => {
1030
- const Kt = K ? `${Dt.label}` : `${Lt}`;
1031
- return j.add(Kt), {
1032
- ...Dt,
1033
- id: Kt
1022
+ refValues: Gt,
1023
+ selectedColor: w,
1024
+ maxValue: Q,
1025
+ minValue: E,
1026
+ 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
1034
1066
  };
1035
- }), f = K ? K.filter((Dt) => !j.has(Dt)) : [];
1036
- Wt = [...p, ...f.map(xs)], t[8] = It, t[9] = K, t[10] = Wt;
1067
+ }), x = Z ? Z.filter((Yt) => !A.has(Yt)) : [];
1068
+ bt = [...h, ...x.map(gl)], t[8] = Lt, t[9] = Z, t[10] = bt;
1037
1069
  } else
1038
- Wt = t[10];
1039
- const jt = Wt;
1040
- let ct;
1041
- t[11] !== jt || t[12] !== K ? (ct = K ?? jt.map(ms), t[11] = jt, t[12] = K, t[13] = ct) : ct = t[13];
1042
- const Ft = ct;
1043
- let Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut, wt, st;
1044
- if (t[14] !== x || t[15] !== c || t[16] !== B || t[17] !== Ft || t[18] !== lt || 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] !== U || t[26] !== rt || t[27] !== It || t[28] !== jt || t[29] !== et || t[30] !== g || t[31] !== bt || t[32] !== w || t[33] !== Tt || t[34] !== D || t[35] !== r || t[36] !== pt || t[37] !== y.bottom || t[38] !== y.left || t[39] !== y.right || t[40] !== y.top || t[41] !== mt || t[42] !== J || t[43] !== L || t[44] !== H || t[45] !== C || t[46] !== Z || t[47] !== l || t[48] !== nt || t[49] !== kt || t[50] !== k || t[51] !== A || t[52] !== Xt || t[53] !== Q || t[54] !== M || t[55] !== St || t[56] !== Et || t[57] !== tt || t[58] !== m?.graphObjectValues || t[59] !== m?.xAxis?.axis || t[60] !== m?.xAxis?.labels || t[61] !== m?.yAxis?.gridLines || t[62] !== m?.yAxis?.labels || t[63] !== m?.yAxis?.title || t[64] !== q || t[65] !== at || t[66] !== s || t[67] !== Ot) {
1045
- const j = je().domain([H, J]).range([bt, 0]).nice(), p = ve().domain(Ft).range([0, L ? Math.max(w, L * Ft.length) : mt ? Math.min(w, mt * Ft.length) : w]).paddingInner(lt), f = j.ticks(l);
1046
- Vt = ee.svg, dt = gt, vt = `${Ot}px`, _ = `${Tt}px`, ut = `0 0 ${Ot} ${Tt}`, wt = "ltr", G = `translate(${y.left},${y.top})`;
1047
- const Dt = j(H < 0 ? 0 : H), Lt = j(H < 0 ? 0 : H), Kt = H < 0 ? 0 : H;
1048
- let N;
1049
- t[82] !== Z || t[83] !== k || t[84] !== A || t[85] !== q || t[86] !== Kt ? (N = fe(Kt, Z, k, A, q), t[82] = Z, t[83] = k, t[84] = A, t[85] = q, t[86] = Kt, t[87] = N) : N = t[87];
1050
- const T = d?.xAxis?.axis, Rt = d?.yAxis?.labels;
1051
- let X;
1052
- t[88] !== T || t[89] !== Rt ? (X = {
1053
- axis: T,
1054
- label: Rt
1055
- }, t[88] = T, t[89] = Rt, t[90] = X) : X = t[90];
1056
- const V = m?.xAxis?.axis, R = m?.yAxis?.labels;
1057
- let o;
1058
- t[91] !== V || t[92] !== R ? (o = {
1059
- axis: V,
1060
- label: R
1061
- }, t[91] = V, t[92] = R, t[93] = o) : o = t[93], I = /* @__PURE__ */ i.jsx(ze, { y1: Dt, y2: Lt, x1: 0 - pt, x2: w + y.right, label: N, labelPos: {
1062
- x: 0 - pt,
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: {
1094
+ x: 0 - Pt,
1063
1095
  dx: 0,
1064
- dy: J < 0 ? "1em" : -5,
1065
- y: j(H < 0 ? 0 : H)
1066
- }, classNames: X, styles: o }), z = Et ? /* @__PURE__ */ i.jsx(Ge, { values: f.filter(us), y: f.filter(ds).map((u) => j(u)), x1: 0 - pt, x2: w + y.right, styles: {
1067
- gridLines: m?.yAxis?.gridLines,
1068
- labels: m?.yAxis?.labels
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
1069
1101
  }, classNames: {
1070
- gridLines: d?.yAxis?.gridLines,
1071
- labels: d?.yAxis?.labels
1072
- }, suffix: q, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: k }) : null;
1073
- const h = 0 - pt - 15, _t = bt / 2, S = m?.yAxis?.title, Bt = d?.yAxis?.title;
1074
- t[94] !== c || t[95] !== h || t[96] !== _t || t[97] !== S || t[98] !== Bt ? (ht = /* @__PURE__ */ i.jsx(De, { x: h, y: _t, style: S, className: Bt, text: c, rotate90: !0 }), t[94] = c, t[95] = h, t[96] = _t, t[97] = S, t[98] = Bt, t[99] = ht) : ht = t[99], t[100] !== rt ? (ot = rt.filter(cs).map(rs), t[100] = rt, t[101] = ot) : ot = t[101], Nt = Ne, st = jt.map((u, se) => ie(p(u.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: r ? "whileInView" : "initial", variants: {
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: {
1075
1107
  initial: {
1076
- opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85
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
1077
1109
  },
1078
1110
  whileInView: {
1079
- opacity: M ? u.color && B[U.indexOf(u.color)] === M ? 1 : g : D.length !== 0 ? D.indexOf(u.label) !== -1 ? 0.85 : g : 0.85,
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,
1080
1112
  transition: {
1081
- duration: x.duration
1113
+ duration: d.duration
1082
1114
  }
1083
1115
  }
1084
1116
  }, exit: {
1085
1117
  opacity: 0,
1086
1118
  transition: {
1087
- duration: x.duration
1119
+ duration: d.duration
1088
1120
  }
1089
- }, onMouseEnter: (ae) => {
1090
- W(u), E(ae.clientY), xt(ae.clientX), kt?.(u);
1121
+ }, onMouseEnter: (de) => {
1122
+ N(C), G(de.clientY), Nt(de.clientX), kt?.(C);
1091
1123
  }, onClick: () => {
1092
- (nt || et) && (Ce(C, u) && Q ? (Yt(void 0), nt?.(void 0)) : (Yt(u), nt?.(u)));
1093
- }, onMouseMove: (ae) => {
1094
- W(u), E(ae.clientY), xt(ae.clientX);
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);
1095
1127
  }, onMouseLeave: () => {
1096
- W(void 0), xt(void 0), E(void 0), kt?.(void 0);
1128
+ N(void 0), Nt(void 0), G(void 0), kt?.(void 0);
1097
1129
  }, children: [
1098
- u.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: p.bandwidth(), initial: "initial", animate: r ? "whileInView" : "initial", variants: {
1130
+ Ft && /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), variants: {
1131
+ initial: {
1132
+ height: Ht,
1133
+ y: 0,
1134
+ x: h(`${C.id}`),
1135
+ fill: Ft
1136
+ },
1137
+ whileInView: {
1138
+ height: Ht,
1139
+ y: 0,
1140
+ x: h(`${C.id}`),
1141
+ fill: Ft
1142
+ }
1143
+ }, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
1144
+ opacity: 0,
1145
+ transition: {
1146
+ duration: d.duration
1147
+ }
1148
+ } }),
1149
+ C.size ? /* @__PURE__ */ i.jsx(ee.rect, { width: h.bandwidth(), initial: "initial", animate: o ? "whileInView" : "initial", variants: {
1099
1150
  initial: {
1100
1151
  height: 0,
1101
- x: p(`${u.id}`),
1102
- y: j(0),
1103
- fill: It.filter(ns).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray
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
1104
1155
  },
1105
1156
  whileInView: {
1106
- height: u.size ? Math.abs(j(u.size) - j(0)) : 0,
1107
- y: u.size && u.size > 0 ? j(u.size) : j(0),
1108
- x: p(`${u.id}`),
1109
- fill: It.filter(os).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray,
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,
1110
1161
  transition: {
1111
- duration: x.duration
1162
+ duration: d.duration
1112
1163
  }
1113
1164
  }
1114
1165
  }, exit: {
1115
1166
  height: 0,
1116
- y: j(0),
1167
+ y: A(0),
1117
1168
  transition: {
1118
- duration: x.duration
1169
+ duration: d.duration
1119
1170
  }
1120
1171
  } }) : null,
1121
- St ? /* @__PURE__ */ i.jsx(Re, { value: `${u.label}`.length < at ? `${u.label}` : `${`${u.label}`.substring(0, at)}...`, y: (u.size || 0) < 0 ? 0 : j(0) + 5, x: p(`${u.id}`), width: p.bandwidth(), height: (u.size || 0) < 0 ? j(0) - 5 : y.bottom, style: m?.xAxis?.labels, className: d?.xAxis?.labels, alignment: (u.size || 0) < 0 ? "bottom" : "top", animate: x, isInView: r }) : null,
1122
- tt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
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: {
1123
1174
  textAnchor: "middle",
1124
- ...m?.graphObjectValues || {}
1125
- }, className: be("graph-value text-sm", !s && B.length > 1 ? " fill-primary-gray-600 dark:fill-primary-gray-300" : "", d?.graphObjectValues), dy: u.size ? u.size >= 0 ? "-5px" : "1em" : "-5px", variants: {
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: {
1126
1177
  initial: {
1127
- x: p(`${u.id}`) + p.bandwidth() / 2,
1128
- y: j(0),
1178
+ x: h(`${C.id}`) + h.bandwidth() / 2,
1179
+ y: A(0),
1129
1180
  opacity: 0,
1130
- fill: s || (It.filter(as).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray)
1181
+ fill: l || (Lt.filter(cl).length === 0 ? P[0] : C.color ? P[Y.indexOf(C.color)] : ge.gray)
1131
1182
  },
1132
1183
  whileInView: {
1133
- x: p(`${u.id}`) + p.bandwidth() / 2,
1134
- y: j(u.size || 0),
1135
- fill: s || (It.filter(ls).length === 0 ? B[0] : u.color ? B[U.indexOf(u.color)] : xe.gray),
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),
1136
1187
  opacity: 1,
1137
1188
  transition: {
1138
- duration: x.duration
1189
+ duration: d.duration
1139
1190
  }
1140
1191
  }
1141
- }, initial: "initial", animate: r ? "whileInView" : "initial", exit: {
1192
+ }, initial: "initial", animate: o ? "whileInView" : "initial", exit: {
1142
1193
  opacity: 0,
1143
1194
  transition: {
1144
- duration: x.duration
1195
+ duration: d.duration
1145
1196
  }
1146
- }, children: fe(u.size, Z, k, A, q) }) : null
1147
- ] }, u.label)), zt = Xt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Xt.map((u, se) => /* @__PURE__ */ i.jsx(Ee, { text: u.text, color: u.color, y: j(u.value), x1: 0 - pt, x2: w + y.right, classNames: u.classNames, styles: u.styles, animate: x, isInView: r }, se)) }) : null, t[14] = x, t[15] = c, t[16] = B, t[17] = Ft, t[18] = lt, 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] = U, t[26] = rt, t[27] = It, t[28] = jt, t[29] = et, t[30] = g, t[31] = bt, t[32] = w, t[33] = Tt, t[34] = D, t[35] = r, t[36] = pt, t[37] = y.bottom, t[38] = y.left, t[39] = y.right, t[40] = y.top, t[41] = mt, t[42] = J, t[43] = L, t[44] = H, t[45] = C, t[46] = Z, t[47] = l, t[48] = nt, t[49] = kt, t[50] = k, t[51] = A, t[52] = Xt, t[53] = Q, t[54] = M, t[55] = St, t[56] = Et, t[57] = tt, t[58] = m?.graphObjectValues, t[59] = m?.xAxis?.axis, t[60] = m?.xAxis?.labels, t[61] = m?.yAxis?.gridLines, t[62] = m?.yAxis?.labels, t[63] = m?.yAxis?.title, t[64] = q, t[65] = at, t[66] = s, t[67] = Ot, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut, t[80] = wt, t[81] = st;
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;
1148
1199
  } else
1149
- Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79], wt = t[80], st = t[81];
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];
1150
1201
  let At;
1151
- t[102] !== Nt || t[103] !== zt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs(Nt, { children: [
1152
- st,
1153
- zt
1154
- ] }), t[102] = Nt, t[103] = zt, t[104] = st, t[105] = At) : At = t[105];
1155
- let $t;
1156
- t[106] !== rt ? ($t = rt.filter(ss).map(is), t[106] = rt, t[107] = $t) : $t = t[107];
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];
1157
1208
  let b;
1158
- t[108] !== G || t[109] !== I || t[110] !== z || t[111] !== ht || t[112] !== ot || t[113] !== At || t[114] !== $t ? (b = /* @__PURE__ */ i.jsxs("g", { transform: G, children: [
1159
- I,
1160
- z,
1161
- ht,
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,
1162
1213
  ot,
1163
1214
  At,
1164
- $t
1165
- ] }), t[108] = G, t[109] = I, t[110] = z, t[111] = ht, t[112] = ot, t[113] = At, t[114] = $t, t[115] = b) : b = t[115];
1166
- let $;
1167
- t[116] !== Vt || t[117] !== dt || t[118] !== vt || t[119] !== _ || t[120] !== ut || t[121] !== wt || t[122] !== b ? ($ = /* @__PURE__ */ i.jsx(Vt, { ref: dt, width: vt, height: _, viewBox: ut, direction: wt, children: b }), t[116] = Vt, t[117] = dt, t[118] = vt, t[119] = _, t[120] = ut, t[121] = wt, t[122] = b, t[123] = $) : $ = t[123];
1168
- let O;
1169
- t[124] !== d?.tooltip || t[125] !== yt || t[126] !== Ct || t[127] !== it || t[128] !== m?.tooltip || t[129] !== Mt ? (O = it && Mt && yt && Ct ? /* @__PURE__ */ i.jsx(Ve, { data: it, body: Mt, xPos: yt, yPos: Ct, backgroundStyle: m?.tooltip, className: d?.tooltip }) : null, t[124] = d?.tooltip, t[125] = yt, t[126] = Ct, t[127] = it, t[128] = m?.tooltip, t[129] = Mt, t[130] = O) : O = t[130];
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];
1170
1217
  let v;
1171
- t[131] !== d?.modal || t[132] !== et || t[133] !== C ? (v = et && C !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: et, data: C, setData: Yt, className: d?.modal }) : null, t[131] = d?.modal, t[132] = et, t[133] = C, t[134] = v) : v = t[134];
1172
- let ft;
1173
- return t[135] !== $ || t[136] !== O || t[137] !== v ? (ft = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1174
- $,
1175
- O,
1176
- v
1177
- ] }), t[135] = $, t[136] = O, t[137] = v, t[138] = ft) : ft = t[138], ft;
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;
1178
1229
  }
1179
- function is(e) {
1230
+ function nl(e) {
1180
1231
  return e.layer;
1181
1232
  }
1182
- function ss(e) {
1233
+ function ol(e) {
1183
1234
  return e.position === "after";
1184
1235
  }
1185
- function ls(e) {
1236
+ function rl(e) {
1186
1237
  return e.color;
1187
1238
  }
1188
- function as(e) {
1239
+ function cl(e) {
1189
1240
  return e.color;
1190
1241
  }
1191
- function os(e) {
1242
+ function dl(e) {
1192
1243
  return e.color;
1193
1244
  }
1194
- function ns(e) {
1245
+ function ul(e) {
1195
1246
  return e.color;
1196
1247
  }
1197
- function rs(e) {
1248
+ function ml(e) {
1198
1249
  return e.layer;
1199
1250
  }
1200
- function cs(e) {
1251
+ function xl(e) {
1201
1252
  return e.position === "before";
1202
1253
  }
1203
- function ds(e) {
1254
+ function hl(e) {
1204
1255
  return e !== 0;
1205
1256
  }
1206
- function us(e) {
1257
+ function fl(e) {
1207
1258
  return e !== 0;
1208
1259
  }
1209
- function ms(e) {
1260
+ function pl(e) {
1210
1261
  return `${e.id}`;
1211
1262
  }
1212
- function xs(e) {
1263
+ function gl(e) {
1213
1264
  return {
1214
1265
  id: e,
1215
1266
  label: e,
@@ -1217,1150 +1268,1170 @@ function xs(e) {
1217
1268
  size: null
1218
1269
  };
1219
1270
  }
1220
- function hs(e) {
1221
- const t = ge.c(120), {
1222
- data: a,
1223
- graphTitle: P,
1224
- colors: qt,
1225
- suffix: Ut,
1226
- sources: It,
1271
+ function yl(e) {
1272
+ const t = we.c(133), {
1273
+ data: s,
1274
+ graphTitle: X,
1275
+ colors: Ut,
1276
+ suffix: Kt,
1277
+ sources: Lt,
1227
1278
  prefix: Ot,
1228
1279
  graphDescription: Tt,
1229
- barPadding: B,
1230
- showValues: q,
1231
- showTicks: A,
1232
- truncateBy: lt,
1233
- height: St,
1234
- width: tt,
1235
- footNote: Et,
1236
- colorDomain: U,
1280
+ barPadding: P,
1281
+ showValues: K,
1282
+ showTicks: y,
1283
+ truncateBy: st,
1284
+ height: ht,
1285
+ width: it,
1286
+ footNote: Jt,
1287
+ colorDomain: Y,
1237
1288
  colorLegendTitle: at,
1238
1289
  highlightedDataPoints: Mt,
1239
1290
  padding: kt,
1240
- backgroundColor: Xt,
1241
- topMargin: M,
1242
- bottomMargin: J,
1243
- leftMargin: H,
1244
- rightMargin: D,
1245
- showLabels: nt,
1246
- relativeHeight: K,
1247
- tooltip: mt,
1248
- onSeriesMouseOver: L,
1249
- refValues: Q,
1250
- showColorScale: et,
1251
- graphID: c,
1252
- maxValue: s,
1253
- minValue: l,
1254
- onSeriesMouseClick: m,
1255
- graphDownload: d,
1256
- dataDownload: g,
1257
- sortData: x,
1258
- labelOrder: k,
1259
- language: rt,
1260
- showNAColor: Z,
1261
- minHeight: pt,
1262
- theme: Jt,
1263
- maxBarThickness: Gt,
1264
- maxNumberOfBars: Y,
1265
- minBarThickness: gt,
1266
- ariaLabel: Ht,
1267
- resetSelectionOnDoubleClick: r,
1268
- detailsOnClick: n,
1269
- barAxisTitle: F,
1270
- noOfTicks: y,
1271
- valueColor: it,
1272
- styles: W,
1273
- classNames: C,
1274
- filterNA: Yt,
1275
- animate: yt,
1276
- dimmedOpacity: xt,
1277
- precision: Ct,
1278
- customLayers: E,
1279
- timeline: w,
1280
- naLabel: bt,
1281
- orientation: Wt
1282
- } = e, jt = Ut === void 0 ? "" : Ut, ct = Ot === void 0 ? "" : Ot, Ft = B === void 0 ? 0.25 : B, Nt = q === void 0 ? !0 : q, Vt = A === void 0 ? !0 : A, zt = lt === void 0 ? 999 : lt;
1283
- let G;
1284
- t[0] !== Mt ? (G = Mt === void 0 ? [] : Mt, t[0] = Mt, t[1] = G) : G = t[1];
1285
- const I = G, z = Xt === void 0 ? !1 : Xt, ht = nt === void 0 ? !0 : nt, ot = et === void 0 ? !0 : et, dt = d === void 0 ? !1 : d, vt = g === void 0 ? !1 : g, _ = rt === void 0 ? "en" : rt, ut = Z === void 0 ? !0 : Z, wt = pt === void 0 ? 0 : pt, st = Jt === void 0 ? "light" : Jt, At = r === void 0 ? !0 : r, $t = y === void 0 ? 5 : y, b = Yt === void 0 ? !0 : Yt, $ = yt === void 0 ? !1 : yt, O = xt === void 0 ? 0.3 : xt, v = Ct === void 0 ? 2 : Ct;
1286
- let ft;
1287
- t[2] !== E ? (ft = E === void 0 ? [] : E, t[2] = E, t[3] = ft) : ft = t[3];
1288
- const j = ft;
1289
- let p;
1290
- t[4] !== w ? (p = w === void 0 ? {
1291
+ backgroundColor: Gt,
1292
+ topMargin: w,
1293
+ bottomMargin: Q,
1294
+ leftMargin: E,
1295
+ 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,
1330
+ 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;
1335
+ 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 ? {
1291
1343
  enabled: !1,
1292
1344
  autoplay: !1,
1293
1345
  showOnlyActiveDate: !0
1294
- } : w, t[4] = w, t[5] = p) : p = t[5];
1295
- const f = p, Dt = bt === void 0 ? "NA" : bt, Lt = Wt === void 0 ? "vertical" : Wt, Kt = Lt === "horizontal" ? Xi : es, [N, T] = Zt(0), [Rt, X] = Zt(0), [V, R] = Zt(f.autoplay);
1296
- let o;
1297
- if (t[6] !== a || t[7] !== f.dateFormat) {
1298
- let te;
1299
- t[9] !== f.dateFormat ? (te = (ye) => He(`${ye.date}`, f.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[9] = f.dateFormat, t[10] = te) : te = t[10], o = [...new Set(a.filter(Is).map(te))], o.sort(Ls), t[6] = a, t[7] = f.dateFormat, t[8] = o;
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;
1300
1352
  } else
1301
- o = t[8];
1302
- const h = o, [_t, S] = Zt(f.autoplay ? 0 : h.length - 1), [Bt, u] = Zt(void 0), se = pe(null), ae = pe(null);
1303
- let me, he;
1304
- t[11] === Symbol.for("react.memo_cache_sentinel") ? (me = () => {
1305
- const te = new ResizeObserver((ye) => {
1306
- T(ye[0].target.clientWidth || 620), X(ye[0].target.clientHeight || 480);
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;
1356
+ t[11] === 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);
1307
1359
  });
1308
- return se.current && te.observe(se.current), () => te.disconnect();
1309
- }, he = [], t[11] = me, t[12] = he) : (me = t[11], he = t[12]), ke(me, he);
1310
- let ue, oe;
1311
- t[13] !== V || t[14] !== f.speed || t[15] !== h ? (ue = () => {
1312
- const te = setInterval(() => {
1313
- S((ye) => ye < h.length - 1 ? ye + 1 : 0);
1314
- }, (f.speed || 2) * 1e3);
1315
- return V || clearInterval(te), () => clearInterval(te);
1316
- }, oe = [h, V, f.speed], t[13] = V, t[14] = f.speed, t[15] = h, t[16] = ue, t[17] = oe) : (ue = t[16], oe = t[17]), ke(ue, oe);
1317
- const re = f.dateFormat || "yyyy";
1318
- let ne;
1319
- t[18] !== _t || t[19] !== re || t[20] !== f.showOnlyActiveDate || t[21] !== h ? (ne = Fe(h, _t, f.showOnlyActiveDate, re), t[18] = _t, t[19] = re, t[20] = f.showOnlyActiveDate, t[21] = h, t[22] = ne) : ne = t[22];
1320
- const de = ne, Qt = C?.graphContainer, Pt = W?.graphContainer;
1321
- let le;
1322
- t[23] !== C?.description || t[24] !== C?.title || t[25] !== a || t[26] !== vt || t[27] !== Tt || t[28] !== dt || t[29] !== P || t[30] !== W?.description || t[31] !== W?.title || t[32] !== tt ? (le = P || Tt || dt || vt ? /* @__PURE__ */ i.jsx(qe, { styles: {
1323
- title: W?.title,
1324
- description: W?.description
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);
1362
+ 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";
1370
+ 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;
1373
+ 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: {
1375
+ title: L?.title,
1376
+ description: L?.description
1325
1377
  }, classNames: {
1326
- title: C?.title,
1327
- description: C?.description
1328
- }, graphTitle: P, graphDescription: Tt, width: tt, graphDownload: dt ? ae : void 0, dataDownload: vt ? a.map(Ds).filter(zs).length > 0 ? a.map(Vs).filter(Cs) : a.filter(ks) : null }) : null, t[23] = C?.description, t[24] = C?.title, t[25] = a, t[26] = vt, t[27] = Tt, t[28] = dt, t[29] = P, t[30] = W?.description, t[31] = W?.title, t[32] = tt, t[33] = le) : le = t[33];
1329
- let Ae;
1330
- t[34] !== _t || t[35] !== de || t[36] !== V || t[37] !== f.enabled || t[38] !== h ? (Ae = f.enabled && h.length > 0 && de ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center pb-4", dir: "ltr", children: [
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: [
1331
1383
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
1332
- R(!V);
1333
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": V ? "Click to pause animation" : "Click to play animation", children: V ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
1334
- /* @__PURE__ */ i.jsx(Pe, { min: h[0], max: h[h.length - 1], marks: de, step: null, defaultValue: h[h.length - 1], value: h[_t], onChangeComplete: (te) => {
1335
- S(h.indexOf(te));
1336
- }, onChange: (te) => {
1337
- S(h.indexOf(te));
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));
1338
1390
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
1339
- ] }) : null, t[34] = _t, t[35] = de, t[36] = V, t[37] = f.enabled, t[38] = h, t[39] = Ae) : Ae = t[39];
1340
- let $e;
1341
- t[40] !== Kt || t[41] !== $ || t[42] !== F || t[43] !== Ft || t[44] !== J || t[45] !== C || t[46] !== U || t[47] !== at || t[48] !== qt || t[49] !== j || t[50] !== a || t[51] !== n || t[52] !== O || t[53] !== b || t[54] !== I || t[55] !== _t || t[56] !== k || t[57] !== _ || t[58] !== H || t[59] !== Gt || t[60] !== Y || t[61] !== s || t[62] !== gt || t[63] !== l || t[64] !== Dt || t[65] !== $t || t[66] !== m || t[67] !== L || t[68] !== Lt || t[69] !== v || t[70] !== ct || t[71] !== Q || t[72] !== At || t[73] !== D || t[74] !== Bt || t[75] !== ot || t[76] !== ht || t[77] !== ut || t[78] !== Vt || t[79] !== Nt || t[80] !== x || t[81] !== W || t[82] !== jt || t[83] !== Rt || t[84] !== N || t[85] !== st || t[86] !== f.dateFormat || t[87] !== f.enabled || t[88] !== mt || t[89] !== M || t[90] !== zt || t[91] !== h || t[92] !== it || t[93] !== tt ? ($e = a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1342
- ot && a.filter(Ms).length !== 0 ? /* @__PURE__ */ i.jsx(Je, { width: tt, colorLegendTitle: at, colors: qt || xe[st].categoricalColors.colors, colorDomain: U || ii(a, "color", !0), setSelectedColor: u, showNAColor: ut, className: C?.colorLegend }) : null,
1343
- /* @__PURE__ */ i.jsx(_e, { ref: se, children: N && Rt ? /* @__PURE__ */ i.jsx(Kt, { data: x ? Te(ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te), [(te) => te.size === void 0 ? x === "asc" ? (Lt === "horizontal" ? 1 : -1) * (1 / 0) : (Lt === "horizontal" ? -1 : 1) * (1 / 0) : te.size], [x]).filter((te, ye) => Y ? ye < Y : !0) : ei(a, f.dateFormat || "yyyy").filter((te) => f.enabled ? te.date === we(new Date(h[_t]), f.dateFormat || "yyyy") : te).filter((te) => b ? !ie(te.size) : te).filter((te, ye) => Y ? ye < Y : !0), barColor: a.filter(Os).length === 0 ? qt ? [qt] : [xe.primaryColors["blue-600"]] : qt || xe[st].categoricalColors.colors, colorDomain: a.filter($s).length === 0 ? [] : U || ii(a, "color", !0), selectedColor: Bt, width: N, height: Rt, suffix: jt, prefix: ct, barPadding: Ft, showValues: Nt, showTicks: Vt, leftMargin: H, rightMargin: D, topMargin: M, bottomMargin: J, truncateBy: zt, showLabels: ht, tooltip: mt, onSeriesMouseOver: L, refValues: Q, maxValue: ie(s) ? Math.max(...a.filter(As).map(ws)) < 0 ? 0 : Math.max(...a.filter(vs).map(bs)) : s, minValue: ie(l) ? Math.min(...a.filter(ys).map(gs)) >= 0 ? 0 : Math.min(...a.filter(ps).map(fs)) : l, highlightedDataPoints: I, onSeriesMouseClick: m, labelOrder: k, rtl: _ === "he" || _ === "ar", maxBarThickness: Gt, minBarThickness: gt, resetSelectionOnDoubleClick: At, detailsOnClick: n, barAxisTitle: F, noOfTicks: $t, valueColor: it, classNames: C, styles: W, animate: $ === !0 ? {
1344
- duration: 0.5,
1345
- once: !0,
1346
- amount: 0.5
1347
- } : $ || {
1348
- duration: 0,
1349
- once: !0,
1350
- amount: 0
1351
- }, dimmedOpacity: O, precision: v, customLayers: j, naLabel: Dt }) : null })
1352
- ] }), t[40] = Kt, t[41] = $, t[42] = F, t[43] = Ft, t[44] = J, t[45] = C, t[46] = U, t[47] = at, t[48] = qt, t[49] = j, t[50] = a, t[51] = n, t[52] = O, t[53] = b, t[54] = I, t[55] = _t, t[56] = k, t[57] = _, t[58] = H, t[59] = Gt, t[60] = Y, t[61] = s, t[62] = gt, t[63] = l, t[64] = Dt, t[65] = $t, t[66] = m, t[67] = L, t[68] = Lt, t[69] = v, t[70] = ct, t[71] = Q, t[72] = At, t[73] = D, t[74] = Bt, t[75] = ot, t[76] = ht, t[77] = ut, t[78] = Vt, t[79] = Nt, t[80] = x, t[81] = W, t[82] = jt, t[83] = Rt, t[84] = N, t[85] = st, t[86] = f.dateFormat, t[87] = f.enabled, t[88] = mt, t[89] = M, t[90] = zt, t[91] = h, t[92] = it, t[93] = tt, t[94] = $e) : $e = t[94];
1353
- let Oe;
1354
- t[95] !== C?.footnote || t[96] !== C?.source || t[97] !== Et || t[98] !== It || t[99] !== W?.footnote || t[100] !== W?.source || t[101] !== tt ? (Oe = It || Et ? /* @__PURE__ */ i.jsx(Ue, { sources: It, footNote: Et, width: tt, styles: {
1355
- footnote: W?.footnote,
1356
- source: W?.source
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];
1394
+ 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 ? {
1398
+ duration: 0.5,
1399
+ once: !0,
1400
+ amount: 0.5
1401
+ } : v || {
1402
+ duration: 0,
1403
+ once: !0,
1404
+ 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];
1411
+ 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: {
1413
+ footnote: L?.footnote,
1414
+ source: L?.source
1357
1415
  }, classNames: {
1358
- footnote: C?.footnote,
1359
- source: C?.source
1360
- } }) : null, t[95] = C?.footnote, t[96] = C?.source, t[97] = Et, t[98] = It, t[99] = W?.footnote, t[100] = W?.source, t[101] = tt, t[102] = Oe) : Oe = t[102];
1361
- let Se;
1362
- return t[103] !== Ht || t[104] !== z || t[105] !== c || t[106] !== St || t[107] !== _ || t[108] !== wt || t[109] !== kt || t[110] !== K || t[111] !== Qt || t[112] !== Pt || t[113] !== le || t[114] !== Ae || t[115] !== $e || t[116] !== Oe || t[117] !== st || t[118] !== tt ? (Se = /* @__PURE__ */ i.jsxs(ti, { className: Qt, style: Pt, id: c, ref: ae, "aria-label": Ht, backgroundColor: z, theme: st, language: _, minHeight: wt, width: tt, height: St, relativeHeight: K, padding: kt, children: [
1363
- le,
1364
- Ae,
1365
- $e,
1366
- Oe
1367
- ] }), t[103] = Ht, t[104] = z, t[105] = c, t[106] = St, t[107] = _, t[108] = wt, t[109] = kt, t[110] = K, t[111] = Qt, t[112] = Pt, t[113] = le, t[114] = Ae, t[115] = $e, t[116] = Oe, t[117] = st, t[118] = tt, t[119] = Se) : Se = t[119], Se;
1368
- }
1369
- function fs(e) {
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: [
1421
+ 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;
1427
+ }
1428
+ function bl(e) {
1370
1429
  return e.size;
1371
1430
  }
1372
- function ps(e) {
1373
- return !ie(e.size);
1431
+ function vl(e) {
1432
+ return !le(e.size);
1374
1433
  }
1375
- function gs(e) {
1434
+ function wl(e) {
1376
1435
  return e.size;
1377
1436
  }
1378
- function ys(e) {
1379
- return !ie(e.size);
1437
+ function Al(e) {
1438
+ return !le(e.size);
1380
1439
  }
1381
- function bs(e) {
1440
+ function $l(e) {
1382
1441
  return e.size;
1383
1442
  }
1384
- function vs(e) {
1385
- return !ie(e.size);
1443
+ function Ol(e) {
1444
+ return !le(e.size);
1386
1445
  }
1387
- function ws(e) {
1446
+ function Ml(e) {
1388
1447
  return e.size;
1389
1448
  }
1390
- function As(e) {
1391
- return !ie(e.size);
1449
+ function kl(e) {
1450
+ return !le(e.size);
1392
1451
  }
1393
- function $s(e) {
1452
+ function Cl(e) {
1394
1453
  return e.color;
1395
1454
  }
1396
- function Os(e) {
1455
+ function Vl(e) {
1397
1456
  return e.color;
1398
1457
  }
1399
- function Ms(e) {
1458
+ function zl(e) {
1400
1459
  return e.color;
1401
1460
  }
1402
- function ks(e) {
1461
+ function Dl(e) {
1403
1462
  return e !== void 0;
1404
1463
  }
1405
- function Cs(e) {
1464
+ function Ll(e) {
1406
1465
  return e !== void 0;
1407
1466
  }
1408
- function Vs(e) {
1467
+ function Il(e) {
1409
1468
  return e.data;
1410
1469
  }
1411
- function zs(e) {
1470
+ function Nl(e) {
1412
1471
  return e !== void 0;
1413
1472
  }
1414
- function Ds(e) {
1473
+ function jl(e) {
1415
1474
  return e.data;
1416
1475
  }
1417
- function Ls(e, t) {
1476
+ function Tl(e, t) {
1418
1477
  return e - t;
1419
1478
  }
1420
- function Is(e) {
1479
+ function Sl(e) {
1421
1480
  return e.date;
1422
1481
  }
1423
- function js(e) {
1424
- const t = ge.c(129), {
1425
- data: a,
1426
- barColors: P,
1427
- barPadding: qt,
1428
- showTicks: Ut,
1429
- topMargin: It,
1482
+ function Bl(e) {
1483
+ const t = we.c(129), {
1484
+ data: s,
1485
+ barColors: X,
1486
+ barPadding: Ut,
1487
+ showTicks: Kt,
1488
+ topMargin: Lt,
1430
1489
  bottomMargin: Ot,
1431
1490
  leftMargin: Tt,
1432
- rightMargin: B,
1433
- truncateBy: q,
1434
- width: A,
1435
- height: lt,
1436
- tooltip: St,
1437
- onSeriesMouseOver: tt,
1438
- showLabels: Et,
1439
- suffix: U,
1491
+ rightMargin: P,
1492
+ truncateBy: K,
1493
+ width: y,
1494
+ height: st,
1495
+ tooltip: ht,
1496
+ onSeriesMouseOver: it,
1497
+ showLabels: Jt,
1498
+ suffix: Y,
1440
1499
  prefix: at,
1441
1500
  showValues: Mt,
1442
1501
  refValues: kt,
1443
- maxValue: Xt,
1444
- onSeriesMouseClick: M,
1445
- selectedColor: J,
1446
- rtl: H,
1447
- labelOrder: D,
1448
- maxBarThickness: nt,
1449
- minBarThickness: K,
1450
- resetSelectionOnDoubleClick: mt,
1451
- detailsOnClick: L,
1452
- barAxisTitle: Q,
1453
- valueColor: et,
1454
- noOfTicks: c,
1455
- styles: s,
1456
- classNames: l,
1457
- animate: m,
1458
- colorDomain: d,
1459
- precision: g,
1460
- customLayers: x,
1461
- naLabel: k
1462
- } = e, rt = It === void 0 ? 25 : It, Z = Ot === void 0 ? 10 : Ot, pt = Tt === void 0 ? 100 : Tt, Jt = B === void 0 ? 40 : B, Gt = pe(null);
1463
- let Y;
1464
- t[0] !== m.amount || t[1] !== m.once ? (Y = {
1465
- once: m.once,
1466
- amount: m.amount
1467
- }, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
1468
- const gt = Ie(Gt, Y), Ht = Q ? rt + 25 : rt;
1469
- let r;
1470
- t[3] !== Z || t[4] !== pt || t[5] !== Jt || t[6] !== Ht ? (r = {
1471
- top: Ht,
1472
- bottom: Z,
1473
- left: pt,
1474
- right: Jt
1475
- }, t[3] = Z, t[4] = pt, t[5] = Jt, t[6] = Ht, t[7] = r) : r = t[7];
1476
- const n = r, [F, y] = Zt(void 0), [it, W] = Zt(void 0), [C, Yt] = Zt(void 0), [yt, xt] = Zt(void 0), Ct = A - n.left - n.right, E = lt - n.top - n.bottom;
1477
- let w;
1478
- if (t[8] !== a || t[9] !== D) {
1479
- const v = /* @__PURE__ */ new Set(), ft = a.map((f, Dt) => {
1480
- const Lt = D ? `${f.label}` : `${Dt}`;
1481
- return v.add(Lt), {
1482
- ...f,
1483
- id: Lt
1502
+ maxValue: Gt,
1503
+ onSeriesMouseClick: w,
1504
+ selectedColor: Q,
1505
+ rtl: E,
1506
+ 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,
1533
+ 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
1484
1543
  };
1485
- }), j = D ? D.filter((f) => !v.has(f)) : [];
1486
- let p;
1487
- t[11] !== a[0] ? (p = (f) => ({
1488
- id: f,
1489
- label: f,
1490
- size: Array(a[0].size.length).fill(null)
1491
- }), t[11] = a[0], t[12] = p) : p = t[12], w = [...ft, ...j.map(p)], t[8] = a, t[9] = D, t[10] = w;
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;
1492
1551
  } else
1493
- w = t[10];
1494
- const bt = w;
1495
- let Wt;
1496
- t[13] !== bt || t[14] !== D ? (Wt = D ?? bt.map(Xs), t[13] = bt, t[14] = D, t[15] = Wt) : Wt = t[15];
1497
- const jt = Wt;
1498
- let ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _, ut;
1499
- if (t[16] !== m || t[17] !== Q || t[18] !== P || t[19] !== jt || t[20] !== qt || t[21] !== l?.graphObjectValues || t[22] !== l?.xAxis?.gridLines || t[23] !== l?.xAxis?.labels || t[24] !== l?.xAxis?.title || t[25] !== l?.yAxis?.axis || t[26] !== l?.yAxis?.labels || t[27] !== d || t[28] !== x || t[29] !== bt || t[30] !== L || t[31] !== E || t[32] !== Ct || t[33] !== lt || t[34] !== gt || t[35] !== n.bottom || t[36] !== n.left || t[37] !== n.top || t[38] !== nt || t[39] !== Xt || t[40] !== K || t[41] !== it || t[42] !== k || t[43] !== c || t[44] !== M || t[45] !== tt || t[46] !== g || t[47] !== at || t[48] !== kt || t[49] !== mt || t[50] !== H || t[51] !== J || t[52] !== Et || t[53] !== Ut || t[54] !== Mt || t[55] !== s?.graphObjectValues || t[56] !== s?.xAxis?.gridLines || t[57] !== s?.xAxis?.labels || t[58] !== s?.xAxis?.title || t[59] !== s?.yAxis?.axis || t[60] !== s?.yAxis?.labels || t[61] !== U || t[62] !== rt || t[63] !== q || t[64] !== et || t[65] !== A) {
1500
- const v = je().domain([0, Xt]).range([0, Ct]).nice(), ft = ve().domain(jt).range([0, K ? Math.max(E, K * jt.length) : nt ? Math.min(E, nt * jt.length) : E]).paddingInner(qt), j = v.ticks(c);
1501
- Ft = ee.svg, ht = Gt, ot = `${A}px`, dt = `${lt}px`, vt = `0 0 ${A} ${lt}`, _ = "ltr", zt = `translate(${n.left},${n.top})`, G = Ut ? /* @__PURE__ */ i.jsx(Xe, { values: j.filter(Ws), x: j.filter(Hs).map((X) => v(X)), y1: 0 - rt, y2: E + n.bottom, styles: {
1502
- gridLines: s?.xAxis?.gridLines,
1503
- labels: s?.xAxis?.labels
1504
- }, classNames: {
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: {
1505
1561
  gridLines: l?.xAxis?.gridLines,
1506
1562
  labels: l?.xAxis?.labels
1507
- }, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, precision: g }) : null;
1508
- const p = Ct / 2, f = 0 - n.top + 15, Dt = s?.xAxis?.title, Lt = l?.xAxis?.title;
1509
- t[80] !== Q || t[81] !== p || t[82] !== f || t[83] !== Dt || t[84] !== Lt ? (I = /* @__PURE__ */ i.jsx(De, { x: p, y: f, style: Dt, className: Lt, text: Q }), t[80] = Q, t[81] = p, t[82] = f, t[83] = Dt, t[84] = Lt, t[85] = I) : I = t[85], t[86] !== x ? (z = x.filter(Ps).map(Fs), t[86] = x, t[87] = z) : z = t[87], ct = Ne, ut = bt.map((X) => ie(ft(X.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
1563
+ }, 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: {
1510
1569
  initial: {
1511
1570
  x: 0,
1512
- y: ft(`${X.id}`)
1571
+ y: xt(`${W.id}`)
1513
1572
  },
1514
1573
  whileInView: {
1515
1574
  x: 0,
1516
- y: ft(`${X.id}`),
1575
+ y: xt(`${W.id}`),
1517
1576
  transition: {
1518
- duration: m.duration
1577
+ duration: u.duration
1519
1578
  }
1520
1579
  }
1521
- }, initial: "initial", animate: gt ? "whileInView" : "initial", exit: {
1580
+ }, initial: "initial", animate: pt ? "whileInView" : "initial", exit: {
1522
1581
  opacity: 0,
1523
1582
  transition: {
1524
- duration: m.duration
1583
+ duration: u.duration
1525
1584
  }
1526
1585
  }, children: [
1527
- X.size.map((V, R) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? P[R] === J ? 1 : 0.3 : 1, onMouseEnter: (o) => {
1528
- y({
1529
- ...X,
1530
- sizeIndex: R
1531
- }), xt(o.clientY), Yt(o.clientX), tt?.({
1532
- ...X,
1533
- sizeIndex: R
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
1534
1593
  });
1535
- }, onMouseMove: (o) => {
1536
- y({
1537
- ...X,
1538
- sizeIndex: R
1539
- }), xt(o.clientY), Yt(o.clientX);
1594
+ }, onMouseMove: (St) => {
1595
+ O({
1596
+ ...W,
1597
+ sizeIndex: D
1598
+ }), nt(St.clientY), Ct(St.clientX);
1540
1599
  }, onMouseLeave: () => {
1541
- y(void 0), Yt(void 0), xt(void 0), tt?.(void 0);
1600
+ O(void 0), Ct(void 0), nt(void 0), it?.(void 0);
1542
1601
  }, onClick: () => {
1543
- (M || L) && (Ce(it, {
1544
- ...X,
1545
- sizeIndex: R
1546
- }) && mt ? (W(void 0), M?.(void 0)) : (W({
1547
- ...X,
1548
- sizeIndex: R
1549
- }), M && M({
1550
- ...X,
1551
- sizeIndex: R
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
1552
1611
  })));
1553
1612
  }, children: [
1554
- V ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1555
- fill: P[R]
1556
- }, height: ft.bandwidth(), exit: {
1613
+ R ? /* @__PURE__ */ i.jsx(ee.rect, { y: 0, style: {
1614
+ fill: X[D]
1615
+ }, height: xt.bandwidth(), exit: {
1557
1616
  width: 0,
1558
- x: v(0),
1617
+ x: p(0),
1559
1618
  transition: {
1560
- duration: m.duration
1619
+ duration: u.duration
1561
1620
  }
1562
1621
  }, variants: {
1563
1622
  initial: {
1564
1623
  width: 0,
1565
- x: v(0),
1566
- fill: P[R]
1624
+ x: p(0),
1625
+ fill: X[D]
1567
1626
  },
1568
1627
  whileInView: {
1569
- width: v(V || 0),
1570
- x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))),
1571
- fill: P[R],
1628
+ width: p(R || 0),
1629
+ x: p(D === 0 ? 0 : he(W.size.filter((St, a) => a < D && St))),
1630
+ fill: X[D],
1572
1631
  transition: {
1573
- duration: m.duration
1632
+ duration: u.duration
1574
1633
  }
1575
1634
  }
1576
- }, initial: "initial", animate: gt ? "whileInView" : "initial" }, R) : null,
1577
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: ft.bandwidth() / 2, style: {
1635
+ }, initial: "initial", animate: pt ? "whileInView" : "initial" }, D) : null,
1636
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { y: xt.bandwidth() / 2, style: {
1578
1637
  textAnchor: "middle",
1579
- ...s?.graphObjectValues || {}
1580
- }, dy: "0.33em", className: be("graph-value text-sm", l?.graphObjectValues), exit: {
1638
+ ...l?.graphObjectValues || {}
1639
+ }, dy: "0.33em", className: $e("graph-value text-sm", n?.graphObjectValues), exit: {
1581
1640
  opacity: 0,
1582
1641
  transition: {
1583
- duration: m.duration
1642
+ duration: u.duration
1584
1643
  }
1585
1644
  }, variants: {
1586
1645
  initial: {
1587
- x: v(0),
1646
+ x: p(0),
1588
1647
  opacity: 0,
1589
- fill: Be(P[R])
1648
+ fill: We(X[D])
1590
1649
  },
1591
1650
  whileInView: {
1592
- x: v(R === 0 ? 0 : ce(X.size.filter((o, h) => h < R && o))) + v(V || 0) / 2,
1593
- opacity: V && v(V) / fe(V, k, g, at, U).length > 12 ? 1 : 0,
1594
- fill: Be(P[R]),
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]),
1595
1654
  transition: {
1596
- duration: m.duration
1655
+ duration: u.duration
1597
1656
  }
1598
1657
  }
1599
- }, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(V, k, g, at, U) }) : null
1600
- ] }, `${X.label}-${d[R] || R}`)),
1601
- Et ? /* @__PURE__ */ i.jsx(We, { value: `${X.label}`.length < q ? `${X.label}` : `${`${X.label}`.substring(0, q)}...`, y: 0, x: 0 - n.left, width: 0 + n.left, height: ft.bandwidth(), style: s?.yAxis?.labels, className: l?.yAxis?.labels, animate: m, isInView: gt }) : null,
1602
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { className: be("graph-value graph-value-total text-sm", et ? "" : " fill-primary-gray-700 dark:fill-primary-gray-300", l?.graphObjectValues), style: {
1603
- ...et ? {
1604
- fill: et
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
1605
1664
  } : {},
1606
1665
  textAnchor: "start",
1607
- ...s?.graphObjectValues || {}
1608
- }, y: ft.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1666
+ ...l?.graphObjectValues || {}
1667
+ }, y: xt.bandwidth() / 2, dx: 5, dy: "0.33em", variants: {
1609
1668
  initial: {
1610
- x: v(0),
1669
+ x: p(0),
1611
1670
  opacity: 0,
1612
- ...et ? {
1613
- fill: et
1671
+ ...lt ? {
1672
+ fill: lt
1614
1673
  } : {}
1615
1674
  },
1616
1675
  whileInView: {
1617
- x: v(ce(X.size.map(Bs))),
1676
+ x: p(he(W.size.map(Wl))),
1618
1677
  opacity: 1,
1619
- ...et ? {
1620
- fill: et
1678
+ ...lt ? {
1679
+ fill: lt
1621
1680
  } : {},
1622
1681
  transition: {
1623
- duration: m.duration
1682
+ duration: u.duration
1624
1683
  }
1625
1684
  }
1626
1685
  }, exit: {
1627
1686
  opacity: 0,
1628
1687
  transition: {
1629
- duration: m.duration
1688
+ duration: u.duration
1630
1689
  }
1631
- }, initial: "initial", animate: gt ? "whileInView" : "initial", children: fe(ce(X.size.filter(Ss)), k, g, at, U) }) : null
1632
- ] }, X.label));
1633
- const Kt = l?.yAxis?.axis;
1634
- let N;
1635
- t[88] !== Kt ? (N = {
1636
- axis: Kt
1637
- }, t[88] = Kt, t[89] = N) : N = t[89];
1638
- const T = s?.yAxis?.axis;
1639
- let Rt;
1640
- t[90] !== T ? (Rt = {
1641
- axis: T
1642
- }, t[90] = T, t[91] = Rt) : Rt = t[91], Nt = /* @__PURE__ */ i.jsx(ze, { x1: v(0), x2: v(0), y1: -2.5, y2: E + n.bottom, classNames: N, styles: Rt }), Vt = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((X, V) => /* @__PURE__ */ i.jsx(Ye, { text: X.text, color: X.color, x: v(X.value), y1: 0 - n.top, y2: E + n.bottom, textSide: v(X.value) > Ct * 0.75 || H ? "left" : "right", classNames: X.classNames, styles: X.styles, animate: m, isInView: gt }, V)) }) : null, t[16] = m, t[17] = Q, t[18] = P, t[19] = jt, t[20] = qt, t[21] = l?.graphObjectValues, t[22] = l?.xAxis?.gridLines, t[23] = l?.xAxis?.labels, t[24] = l?.xAxis?.title, t[25] = l?.yAxis?.axis, t[26] = l?.yAxis?.labels, t[27] = d, t[28] = x, t[29] = bt, t[30] = L, t[31] = E, t[32] = Ct, t[33] = lt, t[34] = gt, t[35] = n.bottom, t[36] = n.left, t[37] = n.top, t[38] = nt, t[39] = Xt, t[40] = K, t[41] = it, t[42] = k, t[43] = c, t[44] = M, t[45] = tt, t[46] = g, t[47] = at, t[48] = kt, t[49] = mt, t[50] = H, t[51] = J, t[52] = Et, t[53] = Ut, t[54] = Mt, t[55] = s?.graphObjectValues, t[56] = s?.xAxis?.gridLines, t[57] = s?.xAxis?.labels, t[58] = s?.xAxis?.title, t[59] = s?.yAxis?.axis, t[60] = s?.yAxis?.labels, t[61] = U, t[62] = rt, t[63] = q, t[64] = et, t[65] = A, t[66] = ct, t[67] = Ft, t[68] = Nt, t[69] = Vt, t[70] = zt, t[71] = G, t[72] = I, t[73] = z, t[74] = ht, t[75] = ot, t[76] = dt, t[77] = vt, t[78] = _, t[79] = ut;
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;
1643
1702
  } else
1644
- ct = t[66], Ft = t[67], Nt = t[68], Vt = t[69], zt = t[70], G = t[71], I = t[72], z = t[73], ht = t[74], ot = t[75], dt = t[76], vt = t[77], _ = t[78], ut = t[79];
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];
1645
1710
  let wt;
1646
- t[92] !== ct || t[93] !== Nt || t[94] !== Vt || t[95] !== ut ? (wt = /* @__PURE__ */ i.jsxs(ct, { children: [
1647
- ut,
1648
- Nt,
1649
- Vt
1650
- ] }), t[92] = ct, t[93] = Nt, t[94] = Vt, t[95] = ut, t[96] = wt) : wt = t[96];
1651
- let st;
1652
- t[97] !== x ? (st = x.filter(Ts).map(Ns), t[97] = x, t[98] = st) : st = t[98];
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,
1717
+ 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];
1653
1720
  let At;
1654
- t[99] !== zt || t[100] !== G || t[101] !== I || t[102] !== z || t[103] !== wt || t[104] !== st ? (At = /* @__PURE__ */ i.jsxs("g", { transform: zt, children: [
1655
- G,
1656
- I,
1657
- z,
1658
- wt,
1659
- st
1660
- ] }), t[99] = zt, t[100] = G, t[101] = I, t[102] = z, t[103] = wt, t[104] = st, t[105] = At) : At = t[105];
1661
- let $t;
1662
- t[106] !== Ft || t[107] !== ht || t[108] !== ot || t[109] !== dt || t[110] !== vt || t[111] !== _ || t[112] !== At ? ($t = /* @__PURE__ */ i.jsx(Ft, { ref: ht, width: ot, height: dt, viewBox: vt, direction: _, children: At }), t[106] = Ft, t[107] = ht, t[108] = ot, t[109] = dt, t[110] = vt, t[111] = _, t[112] = At, t[113] = $t) : $t = t[113];
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];
1663
1724
  let b;
1664
- t[114] !== l?.tooltip || t[115] !== C || t[116] !== yt || t[117] !== F || t[118] !== s?.tooltip || t[119] !== St ? (b = F && St && C && yt ? /* @__PURE__ */ i.jsx(Ve, { data: F, body: St, xPos: C, yPos: yt, backgroundStyle: s?.tooltip, className: l?.tooltip }) : null, t[114] = l?.tooltip, t[115] = C, t[116] = yt, t[117] = F, t[118] = s?.tooltip, t[119] = St, t[120] = b) : b = t[120];
1665
- let $;
1666
- t[121] !== l?.modal || t[122] !== L || t[123] !== it ? ($ = L && it !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: L, data: it, setData: W, className: l?.modal }) : null, t[121] = l?.modal, t[122] = L, t[123] = it, t[124] = $) : $ = t[124];
1667
- let O;
1668
- return t[125] !== $t || t[126] !== b || t[127] !== $ ? (O = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
1669
- $t,
1670
- b,
1671
- $
1672
- ] }), t[125] = $t, t[126] = b, t[127] = $, t[128] = O) : O = t[128], O;
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];
1726
+ 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;
1673
1732
  }
1674
- function Ns(e) {
1733
+ function Fl(e) {
1675
1734
  return e.layer;
1676
1735
  }
1677
- function Ts(e) {
1736
+ function Pl(e) {
1678
1737
  return e.position === "after";
1679
1738
  }
1680
- function Ss(e) {
1739
+ function Hl(e) {
1681
1740
  return e;
1682
1741
  }
1683
- function Bs(e) {
1742
+ function Wl(e) {
1684
1743
  return e || 0;
1685
1744
  }
1686
- function Fs(e) {
1745
+ function Xl(e) {
1687
1746
  return e.layer;
1688
1747
  }
1689
- function Ps(e) {
1748
+ function Yl(e) {
1690
1749
  return e.position === "before";
1691
1750
  }
1692
- function Hs(e) {
1751
+ function El(e) {
1693
1752
  return e !== 0;
1694
1753
  }
1695
- function Ws(e) {
1754
+ function Gl(e) {
1696
1755
  return e !== 0;
1697
1756
  }
1698
- function Xs(e) {
1757
+ function Rl(e) {
1699
1758
  return `${e.id}`;
1700
1759
  }
1701
- function Ys(e) {
1702
- const t = ge.c(136), {
1703
- data: a,
1704
- leftMargin: P,
1705
- rightMargin: qt,
1706
- topMargin: Ut,
1707
- bottomMargin: It,
1760
+ function ql(e) {
1761
+ const t = we.c(136), {
1762
+ data: s,
1763
+ leftMargin: X,
1764
+ rightMargin: Ut,
1765
+ topMargin: Kt,
1766
+ bottomMargin: Lt,
1708
1767
  width: Ot,
1709
1768
  height: Tt,
1710
- barColors: B,
1711
- barPadding: q,
1712
- showLabels: A,
1713
- showTicks: lt,
1714
- truncateBy: St,
1715
- tooltip: tt,
1716
- onSeriesMouseOver: Et,
1717
- suffix: U,
1769
+ barColors: P,
1770
+ barPadding: K,
1771
+ showLabels: y,
1772
+ showTicks: st,
1773
+ truncateBy: ht,
1774
+ tooltip: it,
1775
+ onSeriesMouseOver: Jt,
1776
+ suffix: Y,
1718
1777
  prefix: at,
1719
1778
  showValues: Mt,
1720
1779
  refValues: kt,
1721
- maxValue: Xt,
1722
- onSeriesMouseClick: M,
1723
- selectedColor: J,
1724
- labelOrder: H,
1725
- maxBarThickness: D,
1726
- minBarThickness: nt,
1727
- resetSelectionOnDoubleClick: K,
1728
- detailsOnClick: mt,
1729
- barAxisTitle: L,
1730
- valueColor: Q,
1731
- noOfTicks: et,
1732
- styles: c,
1733
- classNames: s,
1734
- animate: l,
1735
- colorDomain: m,
1736
- precision: d,
1737
- customLayers: g,
1738
- naLabel: x
1739
- } = e, k = P === void 0 ? 20 : P, rt = qt === void 0 ? 20 : qt, Z = Ut === void 0 ? 20 : Ut, pt = It === void 0 ? 25 : It, Jt = pe(null);
1740
- let Gt;
1741
- t[0] !== l.amount || t[1] !== l.once ? (Gt = {
1742
- once: l.once,
1743
- amount: l.amount
1744
- }, t[0] = l.amount, t[1] = l.once, t[2] = Gt) : Gt = t[2];
1745
- const Y = Ie(Jt, Gt), gt = L ? k + 30 : k;
1746
- let Ht;
1747
- t[3] !== pt || t[4] !== rt || t[5] !== gt || t[6] !== Z ? (Ht = {
1748
- top: Z,
1749
- bottom: pt,
1750
- left: gt,
1751
- right: rt
1752
- }, t[3] = pt, t[4] = rt, t[5] = gt, t[6] = Z, t[7] = Ht) : Ht = t[7];
1753
- const r = Ht, [n, F] = Zt(void 0), [y, it] = Zt(void 0), [W, C] = Zt(void 0), [Yt, yt] = Zt(void 0), xt = Ot - r.left - r.right, Ct = Tt - r.top - r.bottom;
1754
- let E;
1755
- if (t[8] !== a || t[9] !== H) {
1756
- const O = /* @__PURE__ */ new Set(), v = a.map((p, f) => {
1757
- const Dt = H ? `${p.label}` : `${f}`;
1758
- return O.add(Dt), {
1759
- ...p,
1760
- id: Dt
1780
+ maxValue: Gt,
1781
+ onSeriesMouseClick: w,
1782
+ selectedColor: Q,
1783
+ labelOrder: E,
1784
+ 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
1761
1820
  };
1762
- }), ft = H ? H.filter((p) => !O.has(p)) : [];
1763
- let j;
1764
- t[11] !== a[0] ? (j = (p) => ({
1765
- id: p,
1766
- label: p,
1767
- size: Array(a[0].size.length).fill(null)
1768
- }), t[11] = a[0], t[12] = j) : j = t[12], E = [...v, ...ft.map(j)], t[8] = a, t[9] = H, t[10] = E;
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;
1769
1828
  } else
1770
- E = t[10];
1771
- const w = E;
1772
- let bt;
1773
- t[13] !== w || t[14] !== H ? (bt = H ?? w.map(Zs), t[13] = w, t[14] = H, t[15] = bt) : bt = t[15];
1774
- const Wt = bt;
1775
- let jt, ct, Ft, Nt, Vt, zt, G, I, z, ht, ot, dt, vt, _;
1776
- if (t[16] !== l || t[17] !== L || t[18] !== B || t[19] !== Wt || t[20] !== q || 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] !== g || t[29] !== w || t[30] !== mt || t[31] !== Ct || t[32] !== xt || t[33] !== Tt || t[34] !== Y || t[35] !== k || t[36] !== r.bottom || t[37] !== r.left || t[38] !== r.right || t[39] !== r.top || t[40] !== D || t[41] !== Xt || t[42] !== nt || t[43] !== y || t[44] !== x || t[45] !== et || t[46] !== M || t[47] !== Et || t[48] !== d || t[49] !== at || t[50] !== kt || t[51] !== K || t[52] !== J || t[53] !== A || t[54] !== lt || t[55] !== Mt || t[56] !== c?.graphObjectValues || t[57] !== c?.xAxis?.axis || t[58] !== c?.xAxis?.labels || t[59] !== c?.yAxis?.gridLines || t[60] !== c?.yAxis?.labels || t[61] !== c?.yAxis?.title || t[62] !== U || t[63] !== St || t[64] !== Q || t[65] !== Ot) {
1777
- const O = je().domain([0, Xt]).range([Ct, 0]).nice(), v = ve().domain(Wt).range([0, nt ? Math.max(xt, nt * Wt.length) : D ? Math.min(xt, D * Wt.length) : xt]).paddingInner(q), ft = O.ticks(et);
1778
- ct = ee.svg, z = `${Ot}px`, ht = `${Tt}px`, ot = `0 0 ${Ot} ${Tt}`, dt = "ltr", vt = Jt, Nt = `translate(${r.left},${r.top})`;
1779
- const j = O(0), p = O(0);
1780
- let f;
1781
- t[80] !== x || t[81] !== d || t[82] !== at || t[83] !== U ? (f = fe(0, x, d, at, U), t[80] = x, t[81] = d, t[82] = at, t[83] = U, t[84] = f) : f = t[84];
1782
- const Dt = s?.xAxis?.axis, Lt = s?.yAxis?.labels;
1783
- let Kt;
1784
- t[85] !== Dt || t[86] !== Lt ? (Kt = {
1785
- axis: Dt,
1786
- label: Lt
1787
- }, t[85] = Dt, t[86] = Lt, t[87] = Kt) : Kt = t[87];
1788
- const N = c?.xAxis?.axis, T = c?.yAxis?.labels;
1789
- let Rt;
1790
- t[88] !== N || t[89] !== T ? (Rt = {
1791
- axis: N,
1792
- label: T
1793
- }, t[88] = N, t[89] = T, t[90] = Rt) : Rt = t[90], Vt = /* @__PURE__ */ i.jsx(ze, { y1: j, y2: p, x1: 0 - k, x2: xt + r.right, label: f, labelPos: {
1794
- x: 0 - k,
1795
- y: O(0),
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),
1796
1855
  dx: 0,
1797
1856
  dy: -5
1798
- }, classNames: Kt, styles: Rt }), zt = lt ? /* @__PURE__ */ i.jsx(Ge, { values: ft.filter(Qs), y: ft.filter(Ks).map((h) => O(h)), x1: 0 - k, x2: xt + r.right, styles: {
1799
- gridLines: c?.yAxis?.gridLines,
1800
- labels: c?.yAxis?.labels
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
1801
1860
  }, classNames: {
1802
- gridLines: s?.yAxis?.gridLines,
1803
- labels: s?.yAxis?.labels
1804
- }, suffix: U, prefix: at, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: d }) : null;
1805
- const X = 0 - k - 15, V = Ct / 2, R = c?.yAxis?.title, o = s?.yAxis?.title;
1806
- t[91] !== L || t[92] !== X || t[93] !== V || t[94] !== R || t[95] !== o ? (G = /* @__PURE__ */ i.jsx(De, { x: X, y: V, style: R, className: o, text: L, rotate90: !0 }), t[91] = L, t[92] = X, t[93] = V, t[94] = R, t[95] = o, t[96] = G) : G = t[96], t[97] !== g ? (I = g.filter(Js).map(Us), t[97] = g, t[98] = I) : I = t[98], jt = Ne, _ = w.map((h) => ie(v(h.id)) ? null : /* @__PURE__ */ i.jsxs(ee.g, { className: "undp-viz-low-opacity undp-viz-g-with-hover", variants: {
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: {
1807
1866
  initial: {
1808
- x: v(`${h.id}`),
1867
+ x: p(`${a.id}`),
1809
1868
  y: 0
1810
1869
  },
1811
1870
  whileInView: {
1812
- x: v(`${h.id}`),
1871
+ x: p(`${a.id}`),
1813
1872
  y: 0,
1814
1873
  transition: {
1815
- duration: l.duration
1874
+ duration: n.duration
1816
1875
  }
1817
1876
  }
1818
1877
  }, transition: {
1819
- duration: l.duration
1820
- }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1878
+ duration: n.duration
1879
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1821
1880
  opacity: 0,
1822
1881
  transition: {
1823
- duration: l.duration
1882
+ duration: n.duration
1824
1883
  }
1825
1884
  }, children: [
1826
- h.size.map((_t, S) => /* @__PURE__ */ i.jsxs(ee.g, { opacity: J ? B[S] === J ? 1 : 0.3 : 1, onMouseEnter: (Bt) => {
1827
- F({
1828
- ...h,
1829
- sizeIndex: S
1830
- }), yt(Bt.clientY), C(Bt.clientX), Et?.({
1831
- ...h,
1832
- sizeIndex: S
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
1833
1892
  });
1834
1893
  }, onMouseMove: (Bt) => {
1835
- F({
1836
- ...h,
1837
- sizeIndex: S
1838
- }), yt(Bt.clientY), C(Bt.clientX);
1894
+ I({
1895
+ ...a,
1896
+ sizeIndex: k
1897
+ }), It(Bt.clientY), N(Bt.clientX);
1839
1898
  }, onMouseLeave: () => {
1840
- F(void 0), C(void 0), yt(void 0), Et?.(void 0);
1899
+ I(void 0), N(void 0), It(void 0), Jt?.(void 0);
1841
1900
  }, onClick: () => {
1842
- (M || mt) && (Ce(y, {
1843
- ...h,
1844
- sizeIndex: S
1845
- }) && K ? (it(void 0), M?.(void 0)) : (it({
1846
- ...h,
1847
- sizeIndex: S
1848
- }), M && M({
1849
- ...h,
1850
- sizeIndex: S
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
1851
1910
  })));
1852
1911
  }, children: [
1853
- /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: v.bandwidth(), variants: {
1912
+ /* @__PURE__ */ i.jsx(ee.rect, { x: 0, width: p.bandwidth(), variants: {
1854
1913
  initial: {
1855
1914
  height: 0,
1856
- fill: B[S],
1857
- y: O(0)
1915
+ fill: P[k],
1916
+ y: v(0)
1858
1917
  },
1859
1918
  whileInView: {
1860
- height: Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))),
1861
- y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))),
1862
- fill: B[S],
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],
1863
1922
  transition: {
1864
- duration: l.duration
1923
+ duration: n.duration
1865
1924
  }
1866
1925
  }
1867
- }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1926
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1868
1927
  height: 0,
1869
- y: O(0),
1928
+ y: v(0),
1870
1929
  transition: {
1871
- duration: l.duration
1930
+ duration: n.duration
1872
1931
  }
1873
1932
  } }),
1874
- Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: v.bandwidth() / 2, style: {
1933
+ Mt ? /* @__PURE__ */ i.jsx(ee.text, { x: p.bandwidth() / 2, style: {
1875
1934
  textAnchor: "middle",
1876
- ...c?.graphObjectValues || {}
1877
- }, className: be("graph-value text-sm", s?.graphObjectValues), dy: "0.33em", variants: {
1935
+ ...r?.graphObjectValues || {}
1936
+ }, className: $e("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
1878
1937
  initial: {
1879
- y: O(0),
1938
+ y: v(0),
1880
1939
  opacity: 0,
1881
- fill: Be(B[S])
1940
+ fill: We(P[k])
1882
1941
  },
1883
1942
  whileInView: {
1884
- y: O(ce(h.size.filter((Bt, u) => u <= S && Bt))) + Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) / 2,
1885
- opacity: _t && Math.abs(O(ce(h.size.filter((Bt, u) => u <= S && Bt))) - O(ce(h.size.filter((Bt, u) => u < S && Bt)))) > 20 ? 1 : 0,
1886
- fill: Be(B[S]),
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]),
1887
1946
  transition: {
1888
- duration: l.duration
1947
+ duration: n.duration
1889
1948
  }
1890
1949
  }
1891
- }, initial: "initial", animate: Y ? "whileInView" : "initial", exit: {
1950
+ }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
1892
1951
  opacity: 0,
1893
1952
  transition: {
1894
- duration: l.duration
1953
+ duration: n.duration
1895
1954
  }
1896
- }, children: fe(_t, x, d, at, U) }) : null
1897
- ] }, `${h.label}-${m[S] || S}`)),
1898
- A ? /* @__PURE__ */ i.jsx(Re, { value: `${h.label}`.length < St ? `${h.label}` : `${`${h.label}`.substring(0, St)}...`, y: O(0) + 5, x: 0, width: v.bandwidth(), height: r.bottom, style: c?.xAxis?.labels, className: s?.xAxis?.labels, alignment: "top", animate: l, isInView: Y }) : null,
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,
1899
1958
  Mt ? /* @__PURE__ */ i.jsx(ee.text, { style: {
1900
1959
  textAnchor: "middle",
1901
- ...c?.graphObjectValues || {}
1902
- }, x: v.bandwidth() / 2, dy: -10, className: be("graph-value graph-value-total", Q ? "text-sm" : "fill-primary-gray-700 dark:fill-primary-gray-300 text-sm", s?.graphObjectValues), variants: {
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: {
1903
1962
  initial: {
1904
- y: O(0),
1963
+ y: v(0),
1905
1964
  opacity: 0,
1906
- ...Q && {
1907
- fill: Q
1965
+ ..._ && {
1966
+ fill: _
1908
1967
  }
1909
1968
  },
1910
1969
  whileInView: {
1911
- y: O(ce(h.size.map(qs))),
1970
+ y: v(he(a.size.map(Ql))),
1912
1971
  opacity: 1,
1913
- ...Q && {
1914
- fill: Q
1972
+ ..._ && {
1973
+ fill: _
1915
1974
  },
1916
1975
  transition: {
1917
- duration: l.duration
1976
+ duration: n.duration
1918
1977
  }
1919
1978
  }
1920
1979
  }, exit: {
1921
1980
  opacity: 0,
1922
1981
  transition: {
1923
- duration: l.duration
1982
+ duration: n.duration
1924
1983
  }
1925
- }, initial: "initial", animate: Y ? "whileInView" : "initial", children: fe(ce(h.size.filter(Rs)), x, d, at, U) }) : null
1926
- ] }, h.label)), Ft = kt ? /* @__PURE__ */ i.jsx(i.Fragment, { children: kt.map((h, _t) => /* @__PURE__ */ i.jsx(Ee, { text: h.text, color: h.color, y: O(h.value), x1: 0 - k, x2: xt + r.right, classNames: h.classNames, styles: h.styles, animate: l, isInView: Y }, _t)) }) : null, t[16] = l, t[17] = L, t[18] = B, t[19] = Wt, t[20] = q, 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] = g, t[29] = w, t[30] = mt, t[31] = Ct, t[32] = xt, t[33] = Tt, t[34] = Y, t[35] = k, t[36] = r.bottom, t[37] = r.left, t[38] = r.right, t[39] = r.top, t[40] = D, t[41] = Xt, t[42] = nt, t[43] = y, t[44] = x, t[45] = et, t[46] = M, t[47] = Et, t[48] = d, t[49] = at, t[50] = kt, t[51] = K, t[52] = J, t[53] = A, t[54] = lt, t[55] = Mt, t[56] = c?.graphObjectValues, t[57] = c?.xAxis?.axis, t[58] = c?.xAxis?.labels, t[59] = c?.yAxis?.gridLines, t[60] = c?.yAxis?.labels, t[61] = c?.yAxis?.title, t[62] = U, t[63] = St, t[64] = Q, t[65] = Ot, t[66] = jt, t[67] = ct, t[68] = Ft, t[69] = Nt, t[70] = Vt, t[71] = zt, t[72] = G, t[73] = I, t[74] = z, t[75] = ht, t[76] = ot, t[77] = dt, t[78] = vt, t[79] = _;
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;
1927
1986
  } else
1928
- jt = t[66], ct = t[67], Ft = t[68], Nt = t[69], Vt = t[70], zt = t[71], G = t[72], I = t[73], z = t[74], ht = t[75], ot = t[76], dt = t[77], vt = t[78], _ = t[79];
1929
- let ut;
1930
- t[99] !== jt || t[100] !== Ft || t[101] !== _ ? (ut = /* @__PURE__ */ i.jsxs(jt, { children: [
1931
- _,
1932
- Ft
1933
- ] }), t[99] = jt, t[100] = Ft, t[101] = _, t[102] = ut) : ut = t[102];
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];
1934
1995
  let wt;
1935
- t[103] !== g ? (wt = g.filter(Gs).map(Es), t[103] = g, t[104] = wt) : wt = t[104];
1936
- let st;
1937
- t[105] !== Nt || t[106] !== Vt || t[107] !== zt || t[108] !== G || t[109] !== I || t[110] !== ut || t[111] !== wt ? (st = /* @__PURE__ */ i.jsxs("g", { transform: Nt, children: [
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,
1938
1998
  Vt,
1939
- zt,
1940
- G,
1941
- I,
1942
- ut,
1943
- wt
1944
- ] }), t[105] = Nt, t[106] = Vt, t[107] = zt, t[108] = G, t[109] = I, t[110] = ut, t[111] = wt, t[112] = st) : st = t[112];
1999
+ et,
2000
+ S,
2001
+ 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];
1945
2006
  let At;
1946
- t[113] !== ct || t[114] !== z || t[115] !== ht || t[116] !== ot || t[117] !== dt || t[118] !== vt || t[119] !== st ? (At = /* @__PURE__ */ i.jsx(ct, { width: z, height: ht, viewBox: ot, direction: dt, ref: vt, children: st }), t[113] = ct, t[114] = z, t[115] = ht, t[116] = ot, t[117] = dt, t[118] = vt, t[119] = st, t[120] = At) : At = t[120];
1947
- let $t;
1948
- t[121] !== s?.tooltip || t[122] !== W || t[123] !== Yt || t[124] !== n || t[125] !== c?.tooltip || t[126] !== tt ? ($t = n && tt && W && Yt ? /* @__PURE__ */ i.jsx(Ve, { data: n, body: tt, xPos: W, yPos: Yt, backgroundStyle: c?.tooltip, className: s?.tooltip }) : null, t[121] = s?.tooltip, t[122] = W, t[123] = Yt, t[124] = n, t[125] = c?.tooltip, t[126] = tt, t[127] = $t) : $t = t[127];
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];
1949
2010
  let b;
1950
- t[128] !== s?.modal || t[129] !== mt || t[130] !== y ? (b = mt && y !== void 0 ? /* @__PURE__ */ i.jsx(Le, { body: mt, data: y, setData: it, className: s?.modal }) : null, t[128] = s?.modal, t[129] = mt, t[130] = y, t[131] = b) : b = t[131];
1951
- let $;
1952
- return t[132] !== At || t[133] !== $t || t[134] !== b ? ($ = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2011
+ return t[132] !== J || t[133] !== At || t[134] !== g ? (b = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2012
+ J,
1953
2013
  At,
1954
- $t,
1955
- b
1956
- ] }), t[132] = At, t[133] = $t, t[134] = b, t[135] = $) : $ = t[135], $;
2014
+ g
2015
+ ] }), t[132] = J, t[133] = At, t[134] = g, t[135] = b) : b = t[135], b;
1957
2016
  }
1958
- function Es(e) {
2017
+ function Ul(e) {
1959
2018
  return e.layer;
1960
2019
  }
1961
- function Gs(e) {
2020
+ function Jl(e) {
1962
2021
  return e.position === "after";
1963
2022
  }
1964
- function Rs(e) {
2023
+ function Kl(e) {
1965
2024
  return e;
1966
2025
  }
1967
- function qs(e) {
2026
+ function Ql(e) {
1968
2027
  return e || 0;
1969
2028
  }
1970
- function Us(e) {
2029
+ function Zl(e) {
1971
2030
  return e.layer;
1972
2031
  }
1973
- function Js(e) {
2032
+ function _l(e) {
1974
2033
  return e.position === "before";
1975
2034
  }
1976
- function Ks(e) {
2035
+ function ts(e) {
1977
2036
  return e !== 0;
1978
2037
  }
1979
- function Qs(e) {
2038
+ function es(e) {
1980
2039
  return e !== 0;
1981
2040
  }
1982
- function Zs(e) {
2041
+ function is(e) {
1983
2042
  return `${e.id}`;
1984
2043
  }
1985
- function _s(e) {
1986
- const t = ge.c(113), {
1987
- data: a,
1988
- graphTitle: P,
1989
- colors: qt,
1990
- sources: Ut,
1991
- graphDescription: It,
2044
+ function ls(e) {
2045
+ const t = we.c(126), {
2046
+ data: s,
2047
+ graphTitle: X,
2048
+ colors: Ut,
2049
+ sources: Kt,
2050
+ graphDescription: Lt,
1992
2051
  barPadding: Ot,
1993
2052
  showTicks: Tt,
1994
- truncateBy: B,
1995
- height: q,
1996
- width: A,
1997
- footNote: lt,
1998
- colorDomain: St,
1999
- colorLegendTitle: tt,
2000
- padding: Et,
2001
- backgroundColor: U,
2053
+ truncateBy: P,
2054
+ height: K,
2055
+ width: y,
2056
+ footNote: st,
2057
+ colorDomain: ht,
2058
+ colorLegendTitle: it,
2059
+ padding: Jt,
2060
+ backgroundColor: Y,
2002
2061
  topMargin: at,
2003
2062
  bottomMargin: Mt,
2004
2063
  leftMargin: kt,
2005
- rightMargin: Xt,
2006
- tooltip: M,
2007
- onSeriesMouseOver: J,
2008
- suffix: H,
2009
- prefix: D,
2010
- showLabels: nt,
2011
- relativeHeight: K,
2012
- showValues: mt,
2013
- refValues: L,
2014
- graphID: Q,
2015
- maxValue: et,
2016
- onSeriesMouseClick: c,
2017
- graphDownload: s,
2018
- dataDownload: l,
2019
- language: m,
2020
- labelOrder: d,
2021
- minHeight: g,
2022
- theme: x,
2023
- maxBarThickness: k,
2024
- sortParameter: rt,
2025
- maxNumberOfBars: Z,
2026
- minBarThickness: pt,
2027
- showColorScale: Jt,
2028
- ariaLabel: Gt,
2029
- resetSelectionOnDoubleClick: Y,
2030
- detailsOnClick: gt,
2031
- barAxisTitle: Ht,
2032
- noOfTicks: r,
2033
- valueColor: n,
2034
- styles: F,
2035
- classNames: y,
2036
- filterNA: it,
2037
- animate: W,
2038
- precision: C,
2039
- customLayers: Yt,
2040
- timeline: yt,
2041
- naLabel: xt,
2042
- sortData: Ct,
2043
- orientation: E
2044
- } = e, w = qt === void 0 ? xe.light.categoricalColors.colors : qt, bt = Ot === void 0 ? 0.25 : Ot, Wt = Tt === void 0 ? !0 : Tt, jt = B === void 0 ? 999 : B, ct = U === void 0 ? !1 : U, Ft = H === void 0 ? "" : H, Nt = D === void 0 ? "" : D, Vt = nt === void 0 ? !0 : nt, zt = mt === void 0 ? !0 : mt, G = s === void 0 ? !1 : s, I = l === void 0 ? !1 : l, z = m === void 0 ? "en" : m, ht = g === void 0 ? 0 : g, ot = x === void 0 ? "light" : x, dt = Jt === void 0 ? !0 : Jt, vt = Y === void 0 ? !0 : Y, _ = r === void 0 ? 5 : r, ut = it === void 0 ? !0 : it, wt = W === void 0 ? !1 : W, st = C === void 0 ? 2 : C;
2045
- let At;
2046
- t[0] !== Yt ? (At = Yt === void 0 ? [] : Yt, t[0] = Yt, t[1] = At) : At = t[1];
2047
- const $t = At;
2048
- let b;
2049
- t[2] !== yt ? (b = yt === void 0 ? {
2064
+ rightMargin: Gt,
2065
+ tooltip: w,
2066
+ onSeriesMouseOver: Q,
2067
+ suffix: E,
2068
+ 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 ? {
2050
2109
  enabled: !1,
2051
2110
  autoplay: !1,
2052
2111
  showOnlyActiveDate: !0
2053
- } : yt, t[2] = yt, t[3] = b) : b = t[3];
2054
- const $ = b, O = xt === void 0 ? "NA" : xt, ft = (E === void 0 ? "vertical" : E) === "horizontal" ? js : Ys, [j, p] = Zt(0), [f, Dt] = Zt(0), [Lt, Kt] = Zt($.autoplay);
2055
- let N;
2056
- if (t[4] !== a || t[5] !== $.dateFormat) {
2057
- let Pt;
2058
- t[7] !== $.dateFormat ? (Pt = (le) => He(`${le.date}`, $.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[7] = $.dateFormat, t[8] = Pt) : Pt = t[8], N = [...new Set(a.filter(xl).map(Pt))], N.sort(ml), t[4] = a, t[5] = $.dateFormat, t[6] = N;
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;
2059
2118
  } else
2060
- N = t[6];
2061
- const T = N, [Rt, X] = Zt($.autoplay ? 0 : T.length - 1), [V, R] = Zt(void 0), o = pe(null), h = pe(null);
2062
- let _t, S;
2063
- t[9] === Symbol.for("react.memo_cache_sentinel") ? (_t = () => {
2064
- const Pt = new ResizeObserver((le) => {
2065
- p(le[0].target.clientWidth || 620), Dt(le[0].target.clientHeight || 480);
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] === 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);
2066
2125
  });
2067
- return o.current && Pt.observe(o.current), () => Pt.disconnect();
2068
- }, S = [], t[9] = _t, t[10] = S) : (_t = t[9], S = t[10]), ke(_t, S);
2069
- let Bt, u;
2070
- t[11] !== Lt || t[12] !== $.speed || t[13] !== T ? (Bt = () => {
2071
- const Pt = setInterval(() => {
2072
- X((le) => le < T.length - 1 ? le + 1 : 0);
2073
- }, ($.speed || 2) * 1e3);
2074
- return Lt || clearInterval(Pt), () => clearInterval(Pt);
2075
- }, u = [T, Lt, $.speed], t[11] = Lt, t[12] = $.speed, t[13] = T, t[14] = Bt, t[15] = u) : (Bt = t[14], u = t[15]), ke(Bt, u);
2076
- const se = $.dateFormat || "yyyy";
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";
2136
+ 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;
2077
2139
  let ae;
2078
- t[16] !== Rt || t[17] !== se || t[18] !== $.showOnlyActiveDate || t[19] !== T ? (ae = Fe(T, Rt, $.showOnlyActiveDate, se), t[16] = Rt, t[17] = se, t[18] = $.showOnlyActiveDate, t[19] = T, t[20] = ae) : ae = t[20];
2079
- const me = ae, he = y?.graphContainer, ue = F?.graphContainer;
2080
- let oe;
2081
- t[21] !== y?.description || t[22] !== y?.title || t[23] !== a || t[24] !== I || t[25] !== It || t[26] !== G || t[27] !== P || t[28] !== F?.description || t[29] !== F?.title || t[30] !== A ? (oe = P || It || G || I ? /* @__PURE__ */ i.jsx(qe, { styles: {
2082
- title: F?.title,
2083
- description: F?.description
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
2084
2143
  }, classNames: {
2085
- title: y?.title,
2086
- description: y?.description
2087
- }, graphTitle: P, graphDescription: It, width: A, graphDownload: G ? h : void 0, dataDownload: I ? a.map(ul).filter(dl).length > 0 ? a.map(cl).filter(rl) : a.filter(nl) : null }) : null, t[21] = y?.description, t[22] = y?.title, t[23] = a, t[24] = I, t[25] = It, t[26] = G, t[27] = P, t[28] = F?.description, t[29] = F?.title, t[30] = A, t[31] = oe) : oe = t[31];
2088
- let re;
2089
- t[32] !== Rt || t[33] !== me || t[34] !== Lt || t[35] !== $.enabled || t[36] !== T ? (re = $.enabled && T.length > 0 && me ? /* @__PURE__ */ i.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
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];
2147
+ 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: [
2090
2149
  /* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => {
2091
- Kt(!Lt);
2092
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": Lt ? "Click to pause animation" : "Click to play animation", children: Lt ? /* @__PURE__ */ i.jsx(Qe, {}) : /* @__PURE__ */ i.jsx(Ze, {}) }),
2093
- /* @__PURE__ */ i.jsx(Pe, { min: T[0], max: T[T.length - 1], marks: me, step: null, defaultValue: T[T.length - 1], value: T[Rt], onChangeComplete: (Pt) => {
2094
- X(T.indexOf(Pt));
2095
- }, onChange: (Pt) => {
2096
- X(T.indexOf(Pt));
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));
2097
2156
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
2098
- ] }) : null, t[32] = Rt, t[33] = me, t[34] = Lt, t[35] = $.enabled, t[36] = T, t[37] = re) : re = t[37];
2099
- let ne;
2100
- t[38] !== ft || t[39] !== wt || t[40] !== Ht || t[41] !== bt || t[42] !== Mt || t[43] !== y || t[44] !== St || t[45] !== tt || t[46] !== w || t[47] !== $t || t[48] !== a || t[49] !== gt || t[50] !== ut || t[51] !== Rt || t[52] !== d || t[53] !== z || t[54] !== kt || t[55] !== k || t[56] !== Z || t[57] !== et || t[58] !== pt || t[59] !== O || t[60] !== _ || t[61] !== c || t[62] !== J || t[63] !== st || t[64] !== Nt || t[65] !== L || t[66] !== vt || t[67] !== Xt || t[68] !== V || t[69] !== dt || t[70] !== Vt || t[71] !== Wt || t[72] !== zt || t[73] !== Ct || t[74] !== rt || t[75] !== F || t[76] !== Ft || t[77] !== f || t[78] !== j || t[79] !== $.dateFormat || t[80] !== $.enabled || t[81] !== M || t[82] !== at || t[83] !== jt || t[84] !== T || t[85] !== n || t[86] !== A ? (ne = /* @__PURE__ */ i.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: a.length === 0 ? /* @__PURE__ */ i.jsx(Ke, {}) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2101
- dt ? /* @__PURE__ */ i.jsx(Je, { width: A, colorDomain: St, colors: w, colorLegendTitle: tt, setSelectedColor: R, showNAColor: !1, className: y?.colorLegend }) : null,
2102
- /* @__PURE__ */ i.jsx(_e, { ref: o, children: j && f ? /* @__PURE__ */ i.jsx(ft, { data: rt !== void 0 ? rt === "total" ? Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(ol) : Pt), ll, [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Te(Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(sl) : Pt), (Pt) => ie(Pt.size[rt]) ? -1 / 0 : Pt.size[rt], [Ct || "asc"]).filter((Pt, le) => Z ? le < Z : !0) : Me(a, $.dateFormat || "yyyy").filter((Pt) => $.enabled ? Pt.date === we(new Date(T[Rt]), $.dateFormat || "yyyy") : Pt).filter((Pt) => ut ? !Pt.size.every(il) : Pt).filter((Pt, le) => Z ? le < Z : !0), barColors: w, width: j, height: f, barPadding: bt, showTicks: Wt, leftMargin: kt, rightMargin: Xt, topMargin: at, bottomMargin: Mt, truncateBy: jt, showLabels: Vt, tooltip: M, onSeriesMouseOver: J, showValues: zt, suffix: Ft, prefix: Nt, refValues: L, maxValue: ie(et) ? Math.max(...a.map(tl)) : et, onSeriesMouseClick: c, selectedColor: V, rtl: z === "he" || z === "ar", labelOrder: d, maxBarThickness: k, minBarThickness: pt, resetSelectionOnDoubleClick: vt, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: _, valueColor: n, classNames: y, styles: F, animate: wt === !0 ? {
2103
- duration: 0.5,
2104
- once: !0,
2105
- amount: 0.5
2106
- } : wt || {
2107
- duration: 0,
2108
- once: !0,
2109
- amount: 0
2110
- }, colorDomain: St, precision: st, customLayers: $t, naLabel: O }) : null })
2111
- ] }) }), t[38] = ft, t[39] = wt, t[40] = Ht, t[41] = bt, t[42] = Mt, t[43] = y, t[44] = St, t[45] = tt, t[46] = w, t[47] = $t, t[48] = a, t[49] = gt, t[50] = ut, t[51] = Rt, t[52] = d, t[53] = z, t[54] = kt, t[55] = k, t[56] = Z, t[57] = et, t[58] = pt, t[59] = O, t[60] = _, t[61] = c, t[62] = J, t[63] = st, t[64] = Nt, t[65] = L, t[66] = vt, t[67] = Xt, t[68] = V, t[69] = dt, t[70] = Vt, t[71] = Wt, t[72] = zt, t[73] = Ct, t[74] = rt, t[75] = F, t[76] = Ft, t[77] = f, t[78] = j, t[79] = $.dateFormat, t[80] = $.enabled, t[81] = M, t[82] = at, t[83] = jt, t[84] = T, t[85] = n, t[86] = A, t[87] = ne) : ne = t[87];
2112
- let de;
2113
- t[88] !== y?.footnote || t[89] !== y?.source || t[90] !== lt || t[91] !== Ut || t[92] !== F?.footnote || t[93] !== F?.source || t[94] !== A ? (de = Ut || lt ? /* @__PURE__ */ i.jsx(Ue, { styles: {
2114
- footnote: F?.footnote,
2115
- source: F?.source
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];
2160
+ 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];
2162
+ 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 ? {
2164
+ duration: 0.5,
2165
+ once: !0,
2166
+ amount: 0.5
2167
+ } : vt || {
2168
+ duration: 0,
2169
+ once: !0,
2170
+ 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: [
2174
+ oe,
2175
+ re
2176
+ ] }), t[95] = oe, t[96] = re, t[97] = me) : me = t[97];
2177
+ 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];
2182
+ 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
2116
2186
  }, classNames: {
2117
- footnote: y?.footnote,
2118
- source: y?.source
2119
- }, sources: Ut, footNote: lt, width: A }) : null, t[88] = y?.footnote, t[89] = y?.source, t[90] = lt, t[91] = Ut, t[92] = F?.footnote, t[93] = F?.source, t[94] = A, t[95] = de) : de = t[95];
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];
2120
2190
  let Qt;
2121
- return t[96] !== Gt || t[97] !== ct || t[98] !== Q || t[99] !== q || t[100] !== z || t[101] !== ht || t[102] !== Et || t[103] !== K || t[104] !== he || t[105] !== ue || t[106] !== oe || t[107] !== re || t[108] !== ne || t[109] !== de || t[110] !== ot || t[111] !== A ? (Qt = /* @__PURE__ */ i.jsxs(ti, { className: he, style: ue, id: Q, ref: h, "aria-label": Gt, backgroundColor: ct, theme: ot, language: z, minHeight: ht, width: A, height: q, relativeHeight: K, padding: Et, children: [
2122
- oe,
2123
- re,
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: [
2192
+ ae,
2124
2193
  ne,
2125
- de
2126
- ] }), t[96] = Gt, t[97] = ct, t[98] = Q, t[99] = q, t[100] = z, t[101] = ht, t[102] = Et, t[103] = K, t[104] = he, t[105] = ue, t[106] = oe, t[107] = re, t[108] = ne, t[109] = de, t[110] = ot, t[111] = A, t[112] = Qt) : Qt = t[112], Qt;
2194
+ xe,
2195
+ 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;
2127
2197
  }
2128
- function tl(e) {
2129
- return ce(e.size.filter(el)) || 0;
2198
+ function ss(e) {
2199
+ return he(e.size.filter(as)) || 0;
2130
2200
  }
2131
- function el(e) {
2132
- return !ie(e);
2201
+ function as(e) {
2202
+ return !le(e);
2133
2203
  }
2134
- function il(e) {
2204
+ function ns(e) {
2135
2205
  return e == null;
2136
2206
  }
2137
- function sl(e) {
2207
+ function os(e) {
2138
2208
  return e == null;
2139
2209
  }
2140
- function ll(e) {
2141
- return ce(e.size.filter(al));
2210
+ function rs(e) {
2211
+ return he(e.size.filter(cs));
2142
2212
  }
2143
- function al(e) {
2144
- return !ie(e);
2213
+ function cs(e) {
2214
+ return !le(e);
2145
2215
  }
2146
- function ol(e) {
2216
+ function ds(e) {
2147
2217
  return e == null;
2148
2218
  }
2149
- function nl(e) {
2219
+ function us(e) {
2150
2220
  return e !== void 0;
2151
2221
  }
2152
- function rl(e) {
2222
+ function ms(e) {
2153
2223
  return e !== void 0;
2154
2224
  }
2155
- function cl(e) {
2225
+ function xs(e) {
2156
2226
  return e.data;
2157
2227
  }
2158
- function dl(e) {
2228
+ function hs(e) {
2159
2229
  return e !== void 0;
2160
2230
  }
2161
- function ul(e) {
2231
+ function fs(e) {
2162
2232
  return e.data;
2163
2233
  }
2164
- function ml(e, t) {
2234
+ function ps(e, t) {
2165
2235
  return e - t;
2166
2236
  }
2167
- function xl(e) {
2237
+ function gs(e) {
2168
2238
  return e.date;
2169
2239
  }
2170
- function ql(e) {
2171
- const t = ge.c(61), {
2172
- data: a,
2173
- graphTitle: P,
2174
- colors: qt,
2175
- barPadding: Ut,
2176
- showTicks: It,
2240
+ function Qs(e) {
2241
+ const t = we.c(62), {
2242
+ data: s,
2243
+ graphTitle: X,
2244
+ colors: Ut,
2245
+ barPadding: Kt,
2246
+ showTicks: Lt,
2177
2247
  leftMargin: Ot,
2178
2248
  rightMargin: Tt,
2179
- topMargin: B,
2180
- bottomMargin: q,
2181
- truncateBy: A,
2182
- showLabels: lt,
2183
- showValues: St,
2184
- backgroundColor: tt,
2185
- suffix: Et,
2186
- prefix: U,
2249
+ topMargin: P,
2250
+ bottomMargin: K,
2251
+ truncateBy: y,
2252
+ showLabels: st,
2253
+ showValues: ht,
2254
+ backgroundColor: it,
2255
+ suffix: Jt,
2256
+ prefix: Y,
2187
2257
  sources: at,
2188
2258
  graphDescription: Mt,
2189
2259
  height: kt,
2190
- width: Xt,
2191
- footNote: M,
2192
- colorDomain: J,
2193
- colorLegendTitle: H,
2194
- padding: D,
2195
- relativeHeight: nt,
2196
- tooltip: K,
2197
- onSeriesMouseOver: mt,
2198
- refValues: L,
2199
- showColorScale: Q,
2200
- graphID: et,
2201
- maxValue: c,
2202
- minValue: s,
2203
- highlightedDataPoints: l,
2204
- onSeriesMouseClick: m,
2205
- graphDownload: d,
2206
- dataDownload: g,
2207
- language: x,
2208
- theme: k,
2209
- sortData: rt,
2210
- labelOrder: Z,
2211
- showNAColor: pt,
2212
- minHeight: Jt,
2213
- maxBarThickness: Gt,
2214
- maxNumberOfBars: Y,
2215
- minBarThickness: gt,
2216
- ariaLabel: Ht,
2217
- resetSelectionOnDoubleClick: r,
2218
- detailsOnClick: n,
2219
- barAxisTitle: F,
2220
- noOfTicks: y,
2221
- valueColor: it,
2222
- orientation: W,
2223
- styles: C,
2224
- classNames: Yt,
2225
- filterNA: yt,
2226
- animate: xt,
2227
- dimmedOpacity: Ct,
2228
- precision: E,
2229
- customLayers: w,
2230
- timeline: bt,
2231
- naLabel: Wt
2232
- } = e, jt = W === void 0 ? "vertical" : W;
2233
- let ct;
2234
- return t[0] !== xt || t[1] !== Ht || t[2] !== tt || t[3] !== F || t[4] !== Ut || t[5] !== q || t[6] !== Yt || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== w || t[11] !== a || t[12] !== g || t[13] !== n || t[14] !== Ct || t[15] !== yt || t[16] !== M || t[17] !== Mt || t[18] !== d || t[19] !== et || t[20] !== P || t[21] !== kt || t[22] !== l || t[23] !== Z || t[24] !== x || t[25] !== Ot || t[26] !== Gt || t[27] !== Y || t[28] !== c || t[29] !== gt || t[30] !== Jt || t[31] !== s || t[32] !== Wt || t[33] !== y || t[34] !== m || t[35] !== mt || t[36] !== jt || t[37] !== D || t[38] !== E || t[39] !== U || t[40] !== L || t[41] !== nt || t[42] !== r || t[43] !== Tt || t[44] !== Q || t[45] !== lt || t[46] !== pt || t[47] !== It || t[48] !== St || t[49] !== rt || t[50] !== at || t[51] !== C || t[52] !== Et || t[53] !== k || t[54] !== bt || t[55] !== K || t[56] !== B || t[57] !== A || t[58] !== it || t[59] !== Xt ? (ct = /* @__PURE__ */ i.jsx(hs, { data: a, graphTitle: P, colors: qt, barPadding: Ut, showTicks: It, leftMargin: Ot, rightMargin: Tt, topMargin: B, bottomMargin: q, truncateBy: A, showLabels: lt, showValues: St, backgroundColor: tt, suffix: Et, prefix: U, sources: at, graphDescription: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, showColorScale: Q, graphID: et, maxValue: c, minValue: s, highlightedDataPoints: l, onSeriesMouseClick: m, graphDownload: d, dataDownload: g, language: x, theme: k, sortData: rt, labelOrder: Z, showNAColor: pt, minHeight: Jt, maxBarThickness: Gt, maxNumberOfBars: Y, minBarThickness: gt, ariaLabel: Ht, resetSelectionOnDoubleClick: r, styles: C, detailsOnClick: n, barAxisTitle: F, noOfTicks: y, valueColor: it, classNames: Yt, filterNA: yt, animate: xt, dimmedOpacity: Ct, precision: E, customLayers: w, timeline: bt, naLabel: Wt, orientation: jt }), t[0] = xt, t[1] = Ht, t[2] = tt, t[3] = F, t[4] = Ut, t[5] = q, t[6] = Yt, t[7] = J, t[8] = H, t[9] = qt, t[10] = w, t[11] = a, t[12] = g, t[13] = n, t[14] = Ct, t[15] = yt, t[16] = M, t[17] = Mt, t[18] = d, t[19] = et, t[20] = P, t[21] = kt, t[22] = l, t[23] = Z, t[24] = x, t[25] = Ot, t[26] = Gt, t[27] = Y, t[28] = c, t[29] = gt, t[30] = Jt, t[31] = s, t[32] = Wt, t[33] = y, t[34] = m, t[35] = mt, t[36] = jt, t[37] = D, t[38] = E, t[39] = U, t[40] = L, t[41] = nt, t[42] = r, t[43] = Tt, t[44] = Q, t[45] = lt, t[46] = pt, t[47] = It, t[48] = St, t[49] = rt, t[50] = at, t[51] = C, t[52] = Et, t[53] = k, t[54] = bt, t[55] = K, t[56] = B, t[57] = A, t[58] = it, t[59] = Xt, t[60] = ct) : ct = t[60], ct;
2260
+ width: Gt,
2261
+ footNote: w,
2262
+ colorDomain: Q,
2263
+ colorLegendTitle: E,
2264
+ 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,
2299
+ 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;
2235
2306
  }
2236
- function Ul(e) {
2237
- const t = ge.c(57), {
2238
- data: a,
2239
- graphTitle: P,
2240
- colors: qt,
2241
- sources: Ut,
2242
- graphDescription: It,
2307
+ function Zs(e) {
2308
+ const t = we.c(57), {
2309
+ data: s,
2310
+ graphTitle: X,
2311
+ colors: Ut,
2312
+ sources: Kt,
2313
+ graphDescription: Lt,
2243
2314
  barPadding: Ot,
2244
2315
  showTicks: Tt,
2245
- truncateBy: B,
2246
- height: q,
2247
- width: A,
2248
- footNote: lt,
2249
- colorDomain: St,
2250
- colorLegendTitle: tt,
2251
- suffix: Et,
2252
- prefix: U,
2316
+ truncateBy: P,
2317
+ height: K,
2318
+ width: y,
2319
+ footNote: st,
2320
+ colorDomain: ht,
2321
+ colorLegendTitle: it,
2322
+ suffix: Jt,
2323
+ prefix: Y,
2253
2324
  showValues: at,
2254
2325
  padding: Mt,
2255
2326
  backgroundColor: kt,
2256
- leftMargin: Xt,
2257
- rightMargin: M,
2258
- topMargin: J,
2259
- bottomMargin: H,
2260
- showLabels: D,
2261
- relativeHeight: nt,
2262
- tooltip: K,
2263
- onSeriesMouseOver: mt,
2264
- refValues: L,
2265
- graphID: Q,
2266
- maxValue: et,
2267
- minValue: c,
2268
- onSeriesMouseClick: s,
2269
- graphDownload: l,
2270
- dataDownload: m,
2271
- language: d,
2272
- labelOrder: g,
2273
- minHeight: x,
2274
- theme: k,
2275
- sortParameter: rt,
2276
- sortData: Z,
2277
- maxBarThickness: pt,
2278
- ariaLabel: Jt,
2279
- resetSelectionOnDoubleClick: Gt,
2280
- detailsOnClick: Y,
2281
- barAxisTitle: gt,
2282
- noOfTicks: Ht,
2283
- valueColor: r,
2284
- orientation: n,
2285
- styles: F,
2286
- classNames: y,
2287
- filterNA: it,
2288
- animate: W,
2289
- precision: C,
2290
- customLayers: Yt,
2291
- showColorScale: yt,
2292
- timeline: xt,
2293
- naLabel: Ct
2294
- } = e, E = n === void 0 ? "vertical" : n;
2295
- let w;
2296
- return t[0] !== W || t[1] !== Jt || t[2] !== kt || t[3] !== gt || t[4] !== Ot || t[5] !== H || t[6] !== y || t[7] !== St || t[8] !== tt || t[9] !== qt || t[10] !== Yt || t[11] !== a || t[12] !== m || t[13] !== Y || t[14] !== it || t[15] !== lt || t[16] !== It || t[17] !== l || t[18] !== Q || t[19] !== P || t[20] !== q || t[21] !== g || t[22] !== d || t[23] !== Xt || t[24] !== pt || t[25] !== et || t[26] !== x || t[27] !== c || t[28] !== Ct || t[29] !== Ht || t[30] !== s || t[31] !== mt || t[32] !== E || t[33] !== Mt || t[34] !== C || t[35] !== U || t[36] !== L || t[37] !== nt || t[38] !== Gt || t[39] !== M || t[40] !== yt || t[41] !== D || t[42] !== Tt || t[43] !== at || t[44] !== Z || t[45] !== rt || t[46] !== Ut || t[47] !== F || t[48] !== Et || t[49] !== k || t[50] !== xt || t[51] !== K || t[52] !== J || t[53] !== B || t[54] !== r || t[55] !== A ? (w = /* @__PURE__ */ i.jsx(wi, { orientation: E, data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, truncateBy: B, height: q, width: A, footNote: lt, colorDomain: St, colorLegendTitle: tt, suffix: Et, prefix: U, showValues: at, padding: Mt, backgroundColor: kt, leftMargin: Xt, rightMargin: M, sortParameter: rt, sortData: Z, topMargin: J, bottomMargin: H, showLabels: D, relativeHeight: nt, tooltip: K, onSeriesMouseOver: mt, refValues: L, graphID: Q, maxValue: et, minValue: c, onSeriesMouseClick: s, graphDownload: l, dataDownload: m, language: d, labelOrder: g, minHeight: x, theme: k, maxBarThickness: pt, ariaLabel: Jt, resetSelectionOnDoubleClick: Gt, styles: F, detailsOnClick: Y, barAxisTitle: gt, noOfTicks: Ht, valueColor: r, classNames: y, filterNA: it, animate: W, precision: C, customLayers: Yt, showColorScale: yt, timeline: xt, naLabel: Ct }), t[0] = W, t[1] = Jt, t[2] = kt, t[3] = gt, t[4] = Ot, t[5] = H, t[6] = y, t[7] = St, t[8] = tt, t[9] = qt, t[10] = Yt, t[11] = a, t[12] = m, t[13] = Y, t[14] = it, t[15] = lt, t[16] = It, t[17] = l, t[18] = Q, t[19] = P, t[20] = q, t[21] = g, t[22] = d, t[23] = Xt, t[24] = pt, t[25] = et, t[26] = x, t[27] = c, t[28] = Ct, t[29] = Ht, t[30] = s, t[31] = mt, t[32] = E, t[33] = Mt, t[34] = C, t[35] = U, t[36] = L, t[37] = nt, t[38] = Gt, t[39] = M, t[40] = yt, t[41] = D, t[42] = Tt, t[43] = at, t[44] = Z, t[45] = rt, t[46] = Ut, t[47] = F, t[48] = Et, t[49] = k, t[50] = xt, t[51] = K, t[52] = J, t[53] = B, t[54] = r, t[55] = A, t[56] = w) : w = t[56], w;
2327
+ leftMargin: Gt,
2328
+ rightMargin: w,
2329
+ topMargin: Q,
2330
+ bottomMargin: E,
2331
+ 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;
2297
2368
  }
2298
- function Jl(e) {
2299
- const t = ge.c(58), {
2300
- data: a,
2301
- graphTitle: P,
2302
- colors: qt,
2303
- sources: Ut,
2304
- graphDescription: It,
2369
+ function _s(e) {
2370
+ const t = we.c(58), {
2371
+ data: s,
2372
+ graphTitle: X,
2373
+ colors: Ut,
2374
+ sources: Kt,
2375
+ graphDescription: Lt,
2305
2376
  barPadding: Ot,
2306
2377
  showTicks: Tt,
2307
- leftMargin: B,
2308
- rightMargin: q,
2309
- topMargin: A,
2310
- bottomMargin: lt,
2311
- truncateBy: St,
2312
- showLabels: tt,
2313
- showValues: Et,
2314
- backgroundColor: U,
2378
+ leftMargin: P,
2379
+ rightMargin: K,
2380
+ topMargin: y,
2381
+ bottomMargin: st,
2382
+ truncateBy: ht,
2383
+ showLabels: it,
2384
+ showValues: Jt,
2385
+ backgroundColor: Y,
2315
2386
  suffix: at,
2316
2387
  prefix: Mt,
2317
2388
  height: kt,
2318
- width: Xt,
2319
- footNote: M,
2320
- colorDomain: J,
2321
- colorLegendTitle: H,
2322
- padding: D,
2323
- tooltip: nt,
2324
- onSeriesMouseOver: K,
2325
- relativeHeight: mt,
2326
- refValues: L,
2327
- graphID: Q,
2328
- maxValue: et,
2329
- onSeriesMouseClick: c,
2330
- graphDownload: s,
2331
- dataDownload: l,
2332
- language: m,
2333
- theme: d,
2334
- labelOrder: g,
2335
- minHeight: x,
2336
- maxBarThickness: k,
2337
- sortParameter: rt,
2338
- sortData: Z,
2339
- maxNumberOfBars: pt,
2340
- minBarThickness: Jt,
2341
- ariaLabel: Gt,
2342
- resetSelectionOnDoubleClick: Y,
2343
- detailsOnClick: gt,
2344
- barAxisTitle: Ht,
2345
- noOfTicks: r,
2346
- valueColor: n,
2347
- orientation: F,
2348
- styles: y,
2349
- classNames: it,
2350
- filterNA: W,
2351
- animate: C,
2352
- precision: Yt,
2353
- customLayers: yt,
2354
- showColorScale: xt,
2355
- timeline: Ct,
2356
- naLabel: E
2357
- } = e, w = F === void 0 ? "vertical" : F;
2358
- let bt;
2359
- return t[0] !== C || t[1] !== Gt || t[2] !== U || t[3] !== Ht || t[4] !== Ot || t[5] !== lt || t[6] !== it || t[7] !== J || t[8] !== H || t[9] !== qt || t[10] !== yt || t[11] !== a || t[12] !== l || t[13] !== gt || t[14] !== W || t[15] !== M || t[16] !== It || t[17] !== s || t[18] !== Q || t[19] !== P || t[20] !== kt || t[21] !== g || t[22] !== m || t[23] !== B || t[24] !== k || t[25] !== pt || t[26] !== et || t[27] !== Jt || t[28] !== x || t[29] !== E || t[30] !== r || t[31] !== c || t[32] !== K || t[33] !== w || t[34] !== D || t[35] !== Yt || t[36] !== Mt || t[37] !== L || t[38] !== mt || t[39] !== Y || t[40] !== q || t[41] !== xt || t[42] !== tt || t[43] !== Tt || t[44] !== Et || t[45] !== Z || t[46] !== rt || t[47] !== Ut || t[48] !== y || t[49] !== at || t[50] !== d || t[51] !== Ct || t[52] !== nt || t[53] !== A || t[54] !== St || t[55] !== n || t[56] !== Xt ? (bt = /* @__PURE__ */ i.jsx(_s, { data: a, graphTitle: P, colors: qt, sources: Ut, graphDescription: It, barPadding: Ot, showTicks: Tt, leftMargin: B, rightMargin: q, topMargin: A, bottomMargin: lt, truncateBy: St, showLabels: tt, showValues: Et, backgroundColor: U, suffix: at, prefix: Mt, height: kt, width: Xt, footNote: M, colorDomain: J, colorLegendTitle: H, padding: D, tooltip: nt, onSeriesMouseOver: K, relativeHeight: mt, refValues: L, graphID: Q, maxValue: et, onSeriesMouseClick: c, graphDownload: s, dataDownload: l, language: m, theme: d, labelOrder: g, minHeight: x, maxBarThickness: k, sortParameter: rt, sortData: Z, maxNumberOfBars: pt, minBarThickness: Jt, ariaLabel: Gt, resetSelectionOnDoubleClick: Y, styles: y, detailsOnClick: gt, barAxisTitle: Ht, noOfTicks: r, valueColor: n, classNames: it, filterNA: W, animate: C, precision: Yt, customLayers: yt, showColorScale: xt, timeline: Ct, naLabel: E, orientation: w }), t[0] = C, t[1] = Gt, t[2] = U, t[3] = Ht, t[4] = Ot, t[5] = lt, t[6] = it, t[7] = J, t[8] = H, t[9] = qt, t[10] = yt, t[11] = a, t[12] = l, t[13] = gt, t[14] = W, t[15] = M, t[16] = It, t[17] = s, t[18] = Q, t[19] = P, t[20] = kt, t[21] = g, t[22] = m, t[23] = B, t[24] = k, t[25] = pt, t[26] = et, t[27] = Jt, t[28] = x, t[29] = E, t[30] = r, t[31] = c, t[32] = K, t[33] = w, t[34] = D, t[35] = Yt, t[36] = Mt, t[37] = L, t[38] = mt, t[39] = Y, t[40] = q, t[41] = xt, t[42] = tt, t[43] = Tt, t[44] = Et, t[45] = Z, t[46] = rt, t[47] = Ut, t[48] = y, t[49] = at, t[50] = d, t[51] = Ct, t[52] = nt, t[53] = A, t[54] = St, t[55] = n, t[56] = Xt, t[57] = bt) : bt = t[57], bt;
2389
+ width: Gt,
2390
+ footNote: w,
2391
+ colorDomain: Q,
2392
+ colorLegendTitle: E,
2393
+ 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], $;
2360
2431
  }
2361
2432
  export {
2362
- Ul as GroupedBarGraph,
2363
- ql as SimpleBarGraph,
2364
- Jl as StackedBarGraph
2433
+ Zs as GroupedBarGraph,
2434
+ Qs as SimpleBarGraph,
2435
+ _s as StackedBarGraph
2365
2436
  };
2366
2437
  //# sourceMappingURL=BarGraph.js.map