@undp/data-viz 2.1.0 → 2.1.2

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