@undp/data-viz 2.1.1 → 2.1.3

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