@undp/data-viz 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +959 -959
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.js +2 -2
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.js +1 -1
  21. package/dist/ChoroplethMap.cjs +1 -1
  22. package/dist/ChoroplethMap.cjs.map +1 -1
  23. package/dist/ChoroplethMap.js +185 -185
  24. package/dist/ChoroplethMap.js.map +1 -1
  25. package/dist/CirclePackingGraph.cjs +1 -1
  26. package/dist/CirclePackingGraph.js +2 -4
  27. package/dist/CirclePackingGraph.js.map +1 -1
  28. package/dist/Data/barChart.json +70 -0
  29. package/dist/Data/basic.csv +20 -0
  30. package/dist/DifferenceLineChart.cjs +1 -1
  31. package/dist/DifferenceLineChart.cjs.map +1 -1
  32. package/dist/DifferenceLineChart.js +224 -223
  33. package/dist/DifferenceLineChart.js.map +1 -1
  34. package/dist/DonutChart.cjs +1 -1
  35. package/dist/DonutChart.cjs.map +1 -1
  36. package/dist/DonutChart.js +32 -24
  37. package/dist/DonutChart.js.map +1 -1
  38. package/dist/DotDensityMap.cjs +1 -1
  39. package/dist/DotDensityMap.cjs.map +1 -1
  40. package/dist/DotDensityMap.js +156 -156
  41. package/dist/DotDensityMap.js.map +1 -1
  42. package/dist/DualAxisLineChart.cjs +1 -1
  43. package/dist/DualAxisLineChart.cjs.map +1 -1
  44. package/dist/DualAxisLineChart.js +326 -325
  45. package/dist/DualAxisLineChart.js.map +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/GeoHubCompareMaps.cjs +1 -1
  49. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  50. package/dist/GeoHubCompareMaps.js +183 -183
  51. package/dist/GeoHubCompareMaps.js.map +1 -1
  52. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  53. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  54. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  55. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.js +2 -2
  60. package/dist/Histogram.cjs +1 -1
  61. package/dist/Histogram.js +1 -1
  62. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  63. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  64. package/dist/LineChartWithConfidenceInterval.js +133 -132
  65. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  66. package/dist/MultiGraphDashboard.cjs +1 -1
  67. package/dist/MultiGraphDashboard.cjs.map +1 -1
  68. package/dist/MultiGraphDashboard.js +52 -50
  69. package/dist/MultiGraphDashboard.js.map +1 -1
  70. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  71. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  73. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  74. package/dist/MultiLineAltChart.cjs +1 -1
  75. package/dist/MultiLineAltChart.cjs.map +1 -1
  76. package/dist/MultiLineAltChart.js +149 -148
  77. package/dist/MultiLineAltChart.js.map +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.cjs.map +1 -1
  80. package/dist/MultiLineChart.js +182 -181
  81. package/dist/MultiLineChart.js.map +1 -1
  82. package/dist/ParetoChart.cjs +1 -1
  83. package/dist/ParetoChart.js +1 -1
  84. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  85. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  86. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  87. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.cjs.map +1 -1
  90. package/dist/SimpleLineChart.js +123 -122
  91. package/dist/SimpleLineChart.js.map +1 -1
  92. package/dist/SingleGraphDashboard.cjs +1 -1
  93. package/dist/SingleGraphDashboard.cjs.map +1 -1
  94. package/dist/SingleGraphDashboard.js +83 -79
  95. package/dist/SingleGraphDashboard.js.map +1 -1
  96. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  98. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  99. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  100. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  102. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  103. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  104. package/dist/StatCardFromData.cjs +1 -1
  105. package/dist/StatCardFromData.cjs.map +1 -1
  106. package/dist/StatCardFromData.js +44 -46
  107. package/dist/StatCardFromData.js.map +1 -1
  108. package/dist/ThreeDGlobe.cjs +1 -1
  109. package/dist/ThreeDGlobe.cjs.map +1 -1
  110. package/dist/ThreeDGlobe.js +134 -134
  111. package/dist/ThreeDGlobe.js.map +1 -1
  112. package/dist/{XAxesLabels-D5X8jngD.cjs → XAxesLabels-C1XSXoWG.cjs} +2 -2
  113. package/dist/XAxesLabels-C1XSXoWG.cjs.map +1 -0
  114. package/dist/{XAxesLabels-DNO0KmjL.js → XAxesLabels-Dmbk50u4.js} +18 -16
  115. package/dist/XAxesLabels-Dmbk50u4.js.map +1 -0
  116. package/dist/YAxesLabels-1XTb-D0_.js +72 -0
  117. package/dist/YAxesLabels-1XTb-D0_.js.map +1 -0
  118. package/dist/YAxesLabels-pjdsVwIM.cjs +2 -0
  119. package/dist/YAxesLabels-pjdsVwIM.cjs.map +1 -0
  120. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  121. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  122. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  123. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  124. package/dist/index-C6LorfZ-.cjs +2 -0
  125. package/dist/index-C6LorfZ-.cjs.map +1 -0
  126. package/dist/index-Ceppbd8C.js +342 -0
  127. package/dist/index-Ceppbd8C.js.map +1 -0
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  132. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  133. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  134. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  135. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  136. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  137. package/dist/index-DoY3Ga3W.cjs +0 -2
  138. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  139. package/dist/index-leTnKT2q.js +0 -329
  140. package/dist/index-leTnKT2q.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as Te, j as n, m as Oe } from "./index-CHPV5EwG-Curnpaqc.js";
1
+ import { c as Te, j as n, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import { useRef as De, useState as Zt, useEffect as $e } from "react";
3
3
  import { p as j, f as Re } from "./parse-DlCRUFh_.js";
4
4
  import { l as Fe, a as He } from "./simple-statistics-flVzqVtt.js";
@@ -6,7 +6,7 @@ import { o as Ye } from "./index-BZQYSqar.js";
6
6
  import { n as Le } from "./numberFormattingFunction-14YCbkN2.js";
7
7
  import { T as Pe } from "./Tooltip-CwWUegPB.js";
8
8
  import { c as F } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
- import { g as Ee, A as Ge, C as Xe } from "./customArea-BUhPiPT6.js";
9
+ import { g as Ee, A as Xe, C as Ge } from "./customArea-BUhPiPT6.js";
10
10
  import { A as Be } from "./AxisTitle-jeI7am8o.js";
11
11
  import { A as ze } from "./Axis-CRyfcLjc.js";
12
12
  import { a as Ue } from "./ReferenceLine-2XCwHXQ4.js";
@@ -22,17 +22,18 @@ import { s as ai } from "./select-DKy99ogv.js";
22
22
  import { c as si } from "./init-BJFW6EwE.js";
23
23
  import { p as ri } from "./pointer-CWRWOsrb.js";
24
24
  import { u as li } from "./use-in-view-Cxa7y1TH.js";
25
- import { m as b } from "./proxy-BxkFHwUw.js";
25
+ import { m as O } from "./proxy-BxkFHwUw.js";
26
26
  import { GraphFooter as ci } from "./GraphFooter.js";
27
27
  import { GraphHeader as mi } from "./GraphHeader.js";
28
28
  import { Colors as Ve } from "./Colors.js";
29
29
  import { ColorLegend as ui } from "./ColorLegend.js";
30
30
  import { E as fi } from "./EmptyState-BZo1BbAn.js";
31
31
  import { a as hi, G as yi } from "./GraphContainer-CRqzdKu2.js";
32
- function pi(i) {
32
+ import { g as pi } from "./getNoOfTicks-CpmRjcRF.js";
33
+ function xi(i) {
33
34
  const t = Te.c(102), {
34
- data: O,
35
- width: U,
35
+ data: b,
36
+ width: q,
36
37
  height: Tt,
37
38
  lineColor: L,
38
39
  suffix: I,
@@ -45,14 +46,14 @@ function pi(i) {
45
46
  leftMargin: S,
46
47
  topMargin: Ft,
47
48
  bottomMargin: mt,
48
- tooltip: q,
49
+ tooltip: J,
49
50
  onSeriesMouseOver: Ht,
50
51
  refValues: _t,
51
52
  minValue: te,
52
53
  maxValue: ut,
53
54
  animate: o,
54
55
  rtl: ft,
55
- strokeWidth: J,
56
+ strokeWidth: K,
56
57
  showDots: ee,
57
58
  annotations: ie,
58
59
  customHighlightAreaSettings: ht,
@@ -79,7 +80,7 @@ function pi(i) {
79
80
  amount: o.amount
80
81
  }, t[0] = o.amount, t[1] = o.once, t[2] = Y) : Y = t[2];
81
82
  const c = li(dt, Y), [f, se] = Zt(!1);
82
- let gt, K;
83
+ let gt, Q;
83
84
  t[3] !== o.duration || t[4] !== f || t[5] !== c ? (gt = () => {
84
85
  if (c && !f) {
85
86
  const e = setTimeout(() => {
@@ -87,89 +88,89 @@ function pi(i) {
87
88
  }, (o.duration + 0.5) * 1e3);
88
89
  return () => clearTimeout(e);
89
90
  }
90
- }, K = [c, f, o.duration], t[3] = o.duration, t[4] = f, t[5] = c, t[6] = gt, t[7] = K) : (gt = t[6], K = t[7]), $e(gt, K);
91
- const Q = xt === "linear" ? _e : xt === "step" ? ti : xt === "stepAfter" ? ei : xt === "stepBefore" ? ii : ni, [V, vt] = Zt(void 0), [P, re] = Zt(void 0), [u, h] = Zt(void 0), Gt = pt ? S + 30 : S;
91
+ }, Q = [c, f, o.duration], t[3] = o.duration, t[4] = f, t[5] = c, t[6] = gt, t[7] = Q) : (gt = t[6], Q = t[7]), $e(gt, Q);
92
+ const Z = xt === "linear" ? _e : xt === "step" ? ti : xt === "stepAfter" ? ei : xt === "stepBefore" ? ii : ni, [V, vt] = Zt(void 0), [P, re] = Zt(void 0), [u, h] = Zt(void 0), Xt = pt ? S + 30 : S;
92
93
  let E;
93
- t[8] !== mt || t[9] !== Rt || t[10] !== Gt || t[11] !== Ft ? (E = {
94
+ t[8] !== mt || t[9] !== Rt || t[10] !== Xt || t[11] !== Ft ? (E = {
94
95
  top: Ft,
95
96
  bottom: mt,
96
- left: Gt,
97
+ left: Xt,
97
98
  right: Rt
98
- }, t[8] = mt, t[9] = Rt, t[10] = Gt, t[11] = Ft, t[12] = E) : E = t[12];
99
- const v = E, Z = De(null);
100
- let _;
101
- t[13] !== l ? (_ = (e) => ({
99
+ }, t[8] = mt, t[9] = Rt, t[10] = Xt, t[11] = Ft, t[12] = E) : E = t[12];
100
+ const v = E, _ = De(null);
101
+ let tt;
102
+ t[13] !== l ? (tt = (e) => ({
102
103
  date: j(`${e.date}`, l, /* @__PURE__ */ new Date()),
103
104
  y: e.y,
104
105
  yMin: F(e.yMin) ? e.y : e.yMin,
105
106
  yMax: F(e.yMax) ? e.y : e.yMax,
106
107
  data: e.data
107
- }), t[13] = l, t[14] = _) : _ = t[14];
108
- const s = Ye(O.filter(Di).map(_), ["date"], ["asc"]);
109
- let tt;
108
+ }), t[13] = l, t[14] = tt) : tt = t[14];
109
+ const s = Ye(b.filter(ki).map(tt), ["date"], ["asc"]);
110
+ let et;
110
111
  if (t[15] !== l || t[16] !== p) {
111
112
  let e;
112
113
  t[18] !== l ? (e = (y) => ({
113
114
  ...y,
114
115
  coordinates: [y.coordinates[0] === null ? null : j(`${y.coordinates[0]}`, l, /* @__PURE__ */ new Date()), y.coordinates[1] === null ? null : j(`${y.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
115
- }), t[18] = l, t[19] = e) : e = t[19], tt = p.map(e), t[15] = l, t[16] = p, t[17] = tt;
116
+ }), t[18] = l, t[19] = e) : e = t[19], et = p.map(e), t[15] = l, t[16] = p, t[17] = et;
116
117
  } else
117
- tt = t[17];
118
- const wt = tt;
119
- let et;
118
+ et = t[17];
119
+ const wt = et;
120
+ let it;
120
121
  if (t[20] !== ht || t[21] !== l) {
121
122
  let e;
122
123
  t[23] !== l ? (e = (y) => ({
123
124
  ...y,
124
- coordinates: y.coordinates.map((z, Qt) => Qt % 2 === 0 ? j(`${z}`, l, /* @__PURE__ */ new Date()) : z)
125
- }), t[23] = l, t[24] = e) : e = t[24], et = ht.map(e), t[20] = ht, t[21] = l, t[22] = et;
125
+ coordinates: y.coordinates.map((U, Qt) => Qt % 2 === 0 ? j(`${U}`, l, /* @__PURE__ */ new Date()) : U)
126
+ }), t[23] = l, t[24] = e) : e = t[24], it = ht.map(e), t[20] = ht, t[21] = l, t[22] = it;
126
127
  } else
127
- et = t[22];
128
- const le = et, m = U - v.left - v.right, g = Tt - v.top - v.bottom, Xt = oe ? j(`${oe}`, l, /* @__PURE__ */ new Date()) : s[0].date, ce = ae ? j(`${ae}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, w = F(te) ? Math.min(...s.map(Vi)) ? Math.min(...s.map(Li)) > 0 ? 0 : Math.min(...s.map(Oi)) : 0 : te, G = Math.max(...s.map(bi)) ? Math.max(...s.map(Ai)) : 0, a = Qe().domain([Xt, ce]).range([0, m]);
129
- let it;
130
- t[25] !== G || t[26] !== ut ? (it = F(ut) ? G > 0 ? G : 0 : ut, t[25] = G, t[26] = ut, t[27] = it) : it = t[27];
131
- const r = Ze().domain([w, it]).range([g, 0]).nice(), Bt = Ne().x((e) => a(e.date)).y((e) => r(e.y)).curve(Q), Mt = Ne().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(Q), zt = Ne().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(Q), Ut = oi().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(Q), qt = r.ticks(ye), Jt = a.ticks(fe);
128
+ it = t[22];
129
+ const le = it, m = q - v.left - v.right, g = Tt - v.top - v.bottom, Gt = oe ? j(`${oe}`, l, /* @__PURE__ */ new Date()) : s[0].date, ce = ae ? j(`${ae}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, w = F(te) ? Math.min(...s.map(Di)) ? Math.min(...s.map(Vi)) > 0 ? 0 : Math.min(...s.map(Li)) : 0 : te, X = Math.max(...s.map(bi)) ? Math.max(...s.map(Oi)) : 0, a = Qe().domain([Gt, ce]).range([0, m]);
130
+ let nt;
131
+ t[25] !== X || t[26] !== ut ? (nt = F(ut) ? X > 0 ? X : 0 : ut, t[25] = X, t[26] = ut, t[27] = nt) : nt = t[27];
132
+ const r = Ze().domain([w, nt]).range([g, 0]).nice(), Bt = Ne().x((e) => a(e.date)).y((e) => r(e.y)).curve(Z), Mt = Ne().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(Z), zt = Ne().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(Z), Ut = oi().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(Z), qt = r.ticks(ye), Jt = a.ticks(fe);
132
133
  $e(() => {
133
- const e = (z) => {
134
- const Qt = s[si(s.map(Ci), a.invert(ri(z)[0]), 0)];
135
- vt(Qt || s[s.length - 1]), Ht?.(Qt || s[s.length - 1]), h(z.clientY), re(z.clientX);
134
+ const e = (U) => {
135
+ const Qt = s[si(s.map(Ai), a.invert(ri(U)[0]), 0)];
136
+ vt(Qt || s[s.length - 1]), Ht?.(Qt || s[s.length - 1]), h(U.clientY), re(U.clientX);
136
137
  }, y = () => {
137
138
  vt(void 0), re(void 0), h(void 0), Ht?.(void 0);
138
139
  };
139
- ai(Z.current).on("mousemove", e).on("mouseout", y);
140
+ ai(_.current).on("mousemove", e).on("mouseout", y);
140
141
  }, [a, s, Ht]);
141
- const Kt = Fe(s.filter(ji).map((e) => [a(e.date), r(e.y)])), jt = He(Kt);
142
+ const Kt = Fe(s.filter(Ci).map((e) => [a(e.date), r(e.y)])), jt = He(Kt);
142
143
  let A;
143
144
  t[28] !== o || t[29] !== g || t[30] !== m || t[31] !== wt || t[32] !== c || t[33] !== a ? (A = /* @__PURE__ */ n.jsx(Ke, { areaSettings: wt, width: m, height: g, scale: a, animate: o, isInView: c }), t[28] = o, t[29] = g, t[30] = m, t[31] = wt, t[32] = c, t[33] = a, t[34] = A) : A = t[34];
144
145
  const Ct = x?.yAxis?.gridLines, At = x?.yAxis?.labels;
145
- let nt;
146
- t[35] !== Ct || t[36] !== At ? (nt = {
146
+ let ot;
147
+ t[35] !== Ct || t[36] !== At ? (ot = {
147
148
  gridLines: Ct,
148
149
  labels: At
149
- }, t[35] = Ct, t[36] = At, t[37] = nt) : nt = t[37];
150
- const ot = d?.yAxis?.gridLines, bt = d?.yAxis?.labels;
151
- let X;
152
- t[38] !== ot || t[39] !== bt ? (X = {
153
- gridLines: ot,
154
- labels: bt
155
- }, t[38] = ot, t[39] = bt, t[40] = X) : X = t[40];
156
- const Ot = r(w < 0 ? 0 : w), Lt = r(w < 0 ? 0 : w), Vt = 0 - S, Dt = m + v.right, kt = w < 0 ? 0 : w;
150
+ }, t[35] = Ct, t[36] = At, t[37] = ot) : ot = t[37];
151
+ const at = d?.yAxis?.gridLines, Ot = d?.yAxis?.labels;
152
+ let G;
153
+ t[38] !== at || t[39] !== Ot ? (G = {
154
+ gridLines: at,
155
+ labels: Ot
156
+ }, t[38] = at, t[39] = Ot, t[40] = G) : G = t[40];
157
+ const bt = r(w < 0 ? 0 : w), Lt = r(w < 0 ? 0 : w), Vt = 0 - S, Dt = m + v.right, kt = w < 0 ? 0 : w;
157
158
  let D;
158
159
  t[41] !== N || t[42] !== C || t[43] !== I || t[44] !== kt ? (D = Le(kt, "NA", N, C, I), t[41] = N, t[42] = C, t[43] = I, t[44] = kt, t[45] = D) : D = t[45];
159
- const It = 0 - S, at = r(w < 0 ? 0 : w), me = G < 0 ? "1em" : -5;
160
+ const It = 0 - S, B = r(w < 0 ? 0 : w), me = X < 0 ? "1em" : -5;
160
161
  let k;
161
- t[46] !== It || t[47] !== at || t[48] !== me ? (k = {
162
+ t[46] !== It || t[47] !== B || t[48] !== me ? (k = {
162
163
  x: It,
163
- y: at,
164
+ y: B,
164
165
  dx: 0,
165
166
  dy: me
166
- }, t[46] = It, t[47] = at, t[48] = me, t[49] = k) : k = t[49];
167
+ }, t[46] = It, t[47] = B, t[48] = me, t[49] = k) : k = t[49];
167
168
  const ue = d?.xAxis?.axis, St = d?.yAxis?.labels;
168
- let B;
169
- t[50] !== ue || t[51] !== St ? (B = {
169
+ let z;
170
+ t[50] !== ue || t[51] !== St ? (z = {
170
171
  axis: ue,
171
172
  label: St
172
- }, t[50] = ue, t[51] = St, t[52] = B) : B = t[52];
173
+ }, t[50] = ue, t[51] = St, t[52] = z) : z = t[52];
173
174
  const st = x?.xAxis?.axis, rt = x?.yAxis?.labels;
174
175
  let $;
175
176
  t[53] !== st || t[54] !== rt ? ($ = {
@@ -177,12 +178,12 @@ function pi(i) {
177
178
  label: rt
178
179
  }, t[53] = st, t[54] = rt, t[55] = $) : $ = t[55];
179
180
  let lt;
180
- t[56] !== Ot || t[57] !== Lt || t[58] !== Vt || t[59] !== Dt || t[60] !== D || t[61] !== k || t[62] !== B || t[63] !== $ ? (lt = /* @__PURE__ */ n.jsx(ze, { y1: Ot, y2: Lt, x1: Vt, x2: Dt, label: D, labelPos: k, classNames: B, styles: $ }), t[56] = Ot, t[57] = Lt, t[58] = Vt, t[59] = Dt, t[60] = D, t[61] = k, t[62] = B, t[63] = $, t[64] = lt) : lt = t[64];
181
+ t[56] !== bt || t[57] !== Lt || t[58] !== Vt || t[59] !== Dt || t[60] !== D || t[61] !== k || t[62] !== z || t[63] !== $ ? (lt = /* @__PURE__ */ n.jsx(ze, { y1: bt, y2: Lt, x1: Vt, x2: Dt, label: D, labelPos: k, classNames: z, styles: $ }), t[56] = bt, t[57] = Lt, t[58] = Vt, t[59] = Dt, t[60] = D, t[61] = k, t[62] = z, t[63] = $, t[64] = lt) : lt = t[64];
181
182
  const T = 0 - S + 15, W = g / 2, R = x?.yAxis?.title, ct = d?.yAxis?.title;
182
183
  let Nt;
183
184
  t[65] !== T || t[66] !== W || t[67] !== R || t[68] !== ct || t[69] !== pt ? (Nt = /* @__PURE__ */ n.jsx(Be, { x: T, y: W, style: R, className: ct, text: pt, rotate90: !0 }), t[65] = T, t[66] = W, t[67] = R, t[68] = ct, t[69] = pt, t[70] = Nt) : Nt = t[70];
184
185
  let $t;
185
- t[71] !== H ? ($t = H.filter(vi).map(gi), t[71] = H, t[72] = $t) : $t = t[72];
186
+ t[71] !== H ? ($t = H.filter(wi).map(vi), t[71] = H, t[72] = $t) : $t = t[72];
186
187
  let pe;
187
188
  t[73] !== Pt ? (pe = {
188
189
  fill: Pt
@@ -195,11 +196,11 @@ function pi(i) {
195
196
  }
196
197
  }, t[75] = o.duration, t[76] = xe) : xe = t[76];
197
198
  let de;
198
- t[77] !== L || t[78] !== J ? (de = {
199
+ t[77] !== L || t[78] !== K ? (de = {
199
200
  stroke: L,
200
201
  fill: "none",
201
- strokeWidth: J
202
- }, t[77] = L, t[78] = J, t[79] = de) : de = t[79];
202
+ strokeWidth: K
203
+ }, t[77] = L, t[78] = K, t[79] = de) : de = t[79];
203
204
  let ge;
204
205
  t[80] !== o.duration ? (ge = {
205
206
  opacity: 0,
@@ -207,8 +208,8 @@ function pi(i) {
207
208
  duration: o.duration
208
209
  }
209
210
  }, t[80] = o.duration, t[81] = ge) : ge = t[81];
210
- const ke = s.map((e, y) => /* @__PURE__ */ n.jsx(b.g, { children: F(e.y) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
211
- ee ? /* @__PURE__ */ n.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, style: {
211
+ const ke = s.map((e, y) => /* @__PURE__ */ n.jsx(O.g, { children: F(e.y) ? null : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
212
+ ee ? /* @__PURE__ */ n.jsx(O.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, style: {
212
213
  fill: L
213
214
  }, exit: {
214
215
  opacity: 0,
@@ -232,7 +233,7 @@ function pi(i) {
232
233
  }
233
234
  }, initial: "initial", animate: c ? "whileInView" : "initial" }) : null,
234
235
  ne ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
235
- /* @__PURE__ */ n.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
236
+ /* @__PURE__ */ n.jsx(O.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
236
237
  opacity: 0,
237
238
  transition: {
238
239
  duration: o.duration
@@ -255,7 +256,7 @@ function pi(i) {
255
256
  fill: M[0]
256
257
  }
257
258
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
258
- /* @__PURE__ */ n.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
259
+ /* @__PURE__ */ n.jsx(O.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
259
260
  opacity: 0,
260
261
  transition: {
261
262
  duration: o.duration
@@ -279,10 +280,10 @@ function pi(i) {
279
280
  }
280
281
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
281
282
  ] }) : null,
282
- Wt ? /* @__PURE__ */ n.jsx(b.text, { dy: -8, style: {
283
+ Wt ? /* @__PURE__ */ n.jsx(O.text, { dy: -8, style: {
283
284
  textAnchor: "middle",
284
285
  ...x?.graphObjectValues || {}
285
- }, className: Oe("graph-value text-xs font-bold", d?.graphObjectValues), exit: {
286
+ }, className: be("graph-value text-xs font-bold", d?.graphObjectValues), exit: {
286
287
  opacity: 0,
287
288
  transition: {
288
289
  duration: o.duration
@@ -306,10 +307,10 @@ function pi(i) {
306
307
  }
307
308
  }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, "NA", N, C, I) }) : null,
308
309
  he ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
309
- /* @__PURE__ */ n.jsx(b.text, { dy: "1em", style: {
310
+ /* @__PURE__ */ n.jsx(O.text, { dy: "1em", style: {
310
311
  textAnchor: "middle",
311
312
  ...x?.graphObjectValues || {}
312
- }, className: Oe("text-xs font-bold", d?.graphObjectValues), exit: {
313
+ }, className: be("text-xs font-bold", d?.graphObjectValues), exit: {
313
314
  opacity: 0,
314
315
  transition: {
315
316
  duration: o.duration
@@ -332,10 +333,10 @@ function pi(i) {
332
333
  }
333
334
  }
334
335
  }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, "NA", N, C, I) }),
335
- /* @__PURE__ */ n.jsx(b.text, { dy: -8, style: {
336
+ /* @__PURE__ */ n.jsx(O.text, { dy: -8, style: {
336
337
  textAnchor: "middle",
337
338
  ...x?.graphObjectValues || {}
338
- }, className: Oe("text-xs font-bold", d?.graphObjectValues), exit: {
339
+ }, className: be("text-xs font-bold", d?.graphObjectValues), exit: {
339
340
  opacity: 0,
340
341
  transition: {
341
342
  duration: o.duration
@@ -363,15 +364,15 @@ function pi(i) {
363
364
  let ve;
364
365
  t[82] !== ke ? (ve = /* @__PURE__ */ n.jsx("g", { children: ke }), t[82] = ke, t[83] = ve) : ve = t[83];
365
366
  const Ie = ie.map((e, y) => {
366
- const z = Ee({
367
+ const U = Ee({
367
368
  x: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
368
369
  y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
369
370
  }, {
370
371
  x: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
371
372
  y: e.yCoordinate ? r(e.yCoordinate) : 0
372
373
  }, F(e.connectorRadius) ? 3.5 : e.connectorRadius), Qt = e.showConnector ? {
373
- y1: z.y,
374
- x1: z.x,
374
+ y1: U.y,
375
+ x1: U.x,
375
376
  y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
376
377
  x2: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
377
378
  cy: e.yCoordinate ? r(e.yCoordinate) : 0,
@@ -386,7 +387,7 @@ function pi(i) {
386
387
  fontWeight: e.fontWeight,
387
388
  align: e.align
388
389
  };
389
- return /* @__PURE__ */ n.jsx(Ge, { color: e.color, connectorsSettings: Qt, labelSettings: We, text: e.text, classNames: e.classNames, styles: e.styles, animate: o, isInView: c }, y);
390
+ return /* @__PURE__ */ n.jsx(Xe, { color: e.color, connectorsSettings: Qt, labelSettings: We, text: e.text, classNames: e.classNames, styles: e.styles, animate: o, isInView: c }, y);
390
391
  });
391
392
  let we;
392
393
  t[84] !== Ie ? (we = /* @__PURE__ */ n.jsx("g", { children: Ie }), t[84] = Ie, t[85] = we) : we = t[85];
@@ -394,21 +395,21 @@ function pi(i) {
394
395
  let Me;
395
396
  t[86] !== Se ? (Me = /* @__PURE__ */ n.jsx("g", { children: Se }), t[86] = Se, t[87] = Me) : Me = t[87];
396
397
  let je;
397
- t[88] !== H ? (je = H.filter(di).map(xi), t[88] = H, t[89] = je) : je = t[89];
398
+ t[88] !== H ? (je = H.filter(gi).map(di), t[88] = H, t[89] = je) : je = t[89];
398
399
  let Ce;
399
400
  t[90] === Symbol.for("react.memo_cache_sentinel") ? (Ce = {
400
401
  fill: "none",
401
402
  pointerEvents: "all"
402
403
  }, t[90] = Ce) : Ce = t[90];
403
404
  let Ae;
404
- t[91] !== Z || t[92] !== g || t[93] !== m ? (Ae = /* @__PURE__ */ n.jsx("rect", { ref: Z, style: Ce, width: m, height: g }), t[91] = Z, t[92] = g, t[93] = m, t[94] = Ae) : Ae = t[94];
405
- let be;
406
- return t[95] !== d?.tooltip || t[96] !== P || t[97] !== u || t[98] !== V || t[99] !== x?.tooltip || t[100] !== q ? (be = V && q && P && u ? /* @__PURE__ */ n.jsx(Pe, { data: V, body: q, xPos: P, yPos: u, backgroundStyle: x?.tooltip, className: d?.tooltip }) : null, t[95] = d?.tooltip, t[96] = P, t[97] = u, t[98] = V, t[99] = x?.tooltip, t[100] = q, t[101] = be) : be = t[101], /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
407
- /* @__PURE__ */ n.jsx(b.svg, { width: `${U}px`, height: `${Tt}px`, viewBox: `0 0 ${U} ${Tt}`, direction: "ltr", ref: dt, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
405
+ t[91] !== _ || t[92] !== g || t[93] !== m ? (Ae = /* @__PURE__ */ n.jsx("rect", { ref: _, style: Ce, width: m, height: g }), t[91] = _, t[92] = g, t[93] = m, t[94] = Ae) : Ae = t[94];
406
+ let Oe;
407
+ return t[95] !== d?.tooltip || t[96] !== P || t[97] !== u || t[98] !== V || t[99] !== x?.tooltip || t[100] !== J ? (Oe = V && J && P && u ? /* @__PURE__ */ n.jsx(Pe, { data: V, body: J, xPos: P, yPos: u, backgroundStyle: x?.tooltip, className: d?.tooltip }) : null, t[95] = d?.tooltip, t[96] = P, t[97] = u, t[98] = V, t[99] = x?.tooltip, t[100] = J, t[101] = Oe) : Oe = t[101], /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
408
+ /* @__PURE__ */ n.jsx(O.svg, { width: `${q}px`, height: `${Tt}px`, viewBox: `0 0 ${q} ${Tt}`, direction: "ltr", ref: dt, children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${v.left},${v.top})`, children: [
408
409
  A,
409
- /* @__PURE__ */ n.jsx(Xe, { areaSettings: le, scaleX: a, scaleY: r, animate: o, isInView: c }),
410
+ /* @__PURE__ */ n.jsx(Ge, { areaSettings: le, scaleX: a, scaleY: r, animate: o, isInView: c }),
410
411
  /* @__PURE__ */ n.jsxs("g", { children: [
411
- /* @__PURE__ */ n.jsx(Je, { values: qt.filter(Mi), y: qt.filter(wi).map((e) => r(e)), x1: 0 - S, x2: m + v.right, styles: nt, classNames: X, suffix: I, prefix: C, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: N }),
412
+ /* @__PURE__ */ n.jsx(Je, { values: qt.filter(ji), y: qt.filter(Mi).map((e) => r(e)), x1: 0 - S, x2: m + v.right, styles: ot, classNames: G, suffix: I, prefix: C, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: N }),
412
413
  lt,
413
414
  Nt
414
415
  ] }),
@@ -416,7 +417,7 @@ function pi(i) {
416
417
  textAnchor: "middle"
417
418
  }, className: "fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", dy: 15, children: Re(e, l) }) }, y)) }),
418
419
  $t,
419
- /* @__PURE__ */ n.jsx(b.path, { style: pe, exit: xe, variants: {
420
+ /* @__PURE__ */ n.jsx(O.path, { style: pe, exit: xe, variants: {
420
421
  initial: {
421
422
  opacity: 0,
422
423
  d: Ut(s) || ""
@@ -430,7 +431,7 @@ function pi(i) {
430
431
  }
431
432
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
432
433
  Yt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
433
- /* @__PURE__ */ n.jsx(b.path, { style: {
434
+ /* @__PURE__ */ n.jsx(O.path, { style: {
434
435
  stroke: M[0],
435
436
  fill: "none",
436
437
  strokeWidth: Yt
@@ -454,7 +455,7 @@ function pi(i) {
454
455
  }
455
456
  }
456
457
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
457
- /* @__PURE__ */ n.jsx(b.path, { style: {
458
+ /* @__PURE__ */ n.jsx(O.path, { style: {
458
459
  stroke: M[1],
459
460
  fill: "none",
460
461
  strokeWidth: Yt
@@ -479,7 +480,7 @@ function pi(i) {
479
480
  }
480
481
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
481
482
  ] }) : null,
482
- /* @__PURE__ */ n.jsx(b.path, { style: de, exit: ge, variants: {
483
+ /* @__PURE__ */ n.jsx(O.path, { style: de, exit: ge, variants: {
483
484
  initial: {
484
485
  pathLength: 0,
485
486
  d: Bt(s) || "",
@@ -494,7 +495,7 @@ function pi(i) {
494
495
  }
495
496
  }
496
497
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
497
- V ? /* @__PURE__ */ n.jsx("line", { y1: 0, y2: g, x1: a(V.date), x2: a(V.date), className: Oe("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", d?.mouseOverLine), style: x?.mouseOverLine }) : null,
498
+ V ? /* @__PURE__ */ n.jsx("line", { y1: 0, y2: g, x1: a(V.date), x2: a(V.date), className: be("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", d?.mouseOverLine), style: x?.mouseOverLine }) : null,
498
499
  ve,
499
500
  _t ? /* @__PURE__ */ n.jsx(n.Fragment, { children: _t.map((e, y) => /* @__PURE__ */ n.jsx(Ue, { text: e.text, color: e.color, y: r(e.value), x1: 0 - S, x2: m + v.right, classNames: e.classNames, styles: e.styles, animate: o, isInView: c }, y)) }) : null,
500
501
  we,
@@ -502,42 +503,39 @@ function pi(i) {
502
503
  je,
503
504
  Ae
504
505
  ] }) }),
505
- be
506
+ Oe
506
507
  ] });
507
508
  }
508
- function xi(i) {
509
- return i.layer;
510
- }
511
509
  function di(i) {
512
- return i.position === "after";
510
+ return i.layer;
513
511
  }
514
512
  function gi(i) {
515
- return i.layer;
513
+ return i.position === "after";
516
514
  }
517
515
  function vi(i) {
518
- return i.position === "before";
516
+ return i.layer;
519
517
  }
520
518
  function wi(i) {
521
- return i !== 0;
519
+ return i.position === "before";
522
520
  }
523
521
  function Mi(i) {
524
522
  return i !== 0;
525
523
  }
526
524
  function ji(i) {
527
- return !F(i.date) && !F(i.y);
525
+ return i !== 0;
528
526
  }
529
527
  function Ci(i) {
530
- return i.date;
528
+ return !F(i.date) && !F(i.y);
531
529
  }
532
530
  function Ai(i) {
531
+ return i.date;
532
+ }
533
+ function Oi(i) {
533
534
  return Math.max(i.y, i.yMax, i.yMin);
534
535
  }
535
536
  function bi(i) {
536
537
  return Math.max(i.y, i.yMax, i.yMin);
537
538
  }
538
- function Oi(i) {
539
- return Math.min(i.y, i.yMax, i.yMin);
540
- }
541
539
  function Li(i) {
542
540
  return Math.min(i.y, i.yMax, i.yMin);
543
541
  }
@@ -545,12 +543,15 @@ function Vi(i) {
545
543
  return Math.min(i.y, i.yMax, i.yMin);
546
544
  }
547
545
  function Di(i) {
546
+ return Math.min(i.y, i.yMax, i.yMin);
547
+ }
548
+ function ki(i) {
548
549
  return !F(i.y);
549
550
  }
550
- function hn(i) {
551
+ function pn(i) {
551
552
  const t = Te.c(95), {
552
- data: O,
553
- graphTitle: U,
553
+ data: b,
554
+ graphTitle: q,
554
555
  suffix: Tt,
555
556
  sources: L,
556
557
  prefix: I,
@@ -563,14 +564,14 @@ function hn(i) {
563
564
  showValues: S,
564
565
  backgroundColor: Ft,
565
566
  padding: mt,
566
- lineColor: q,
567
+ lineColor: J,
567
568
  leftMargin: Ht,
568
569
  rightMargin: _t,
569
570
  topMargin: te,
570
571
  bottomMargin: ut,
571
572
  tooltip: o,
572
573
  refValues: ft,
573
- highlightAreaSettings: J,
574
+ highlightAreaSettings: K,
574
575
  relativeHeight: ee,
575
576
  onSeriesMouseOver: ie,
576
577
  graphID: ht,
@@ -596,35 +597,35 @@ function hn(i) {
596
597
  ariaLabel: f,
597
598
  yAxisTitle: se,
598
599
  noOfYTicks: gt,
599
- minDate: K,
600
- maxDate: Q,
600
+ minDate: Q,
601
+ maxDate: Z,
601
602
  colorLegendTitle: V,
602
603
  colorLegendColors: vt,
603
604
  colorLegendDomain: P,
604
605
  curveType: re,
605
606
  styles: u,
606
607
  classNames: h,
607
- precision: Gt,
608
+ precision: Xt,
608
609
  customLayers: E
609
- } = i, v = Tt === void 0 ? "" : Tt, Z = I === void 0 ? "" : I, _ = fe === void 0 ? 10 : fe, s = Rt === void 0 ? "yyyy" : Rt, tt = S === void 0 ? !1 : S, wt = Ft === void 0 ? !1 : Ft, et = Ht === void 0 ? 30 : Ht, le = _t === void 0 ? 30 : _t, m = te === void 0 ? 20 : te, g = ut === void 0 ? 25 : ut;
610
- let Xt;
611
- t[0] !== ft ? (Xt = ft === void 0 ? [] : ft, t[0] = ft, t[1] = Xt) : Xt = t[1];
612
- const ce = Xt;
610
+ } = i, v = Tt === void 0 ? "" : Tt, _ = I === void 0 ? "" : I, tt = fe === void 0 ? 10 : fe, s = Rt === void 0 ? "yyyy" : Rt, et = S === void 0 ? !1 : S, wt = Ft === void 0 ? !1 : Ft, it = Ht === void 0 ? 30 : Ht, le = _t === void 0 ? 30 : _t, m = te === void 0 ? 20 : te, g = ut === void 0 ? 25 : ut;
611
+ let Gt;
612
+ t[0] !== ft ? (Gt = ft === void 0 ? [] : ft, t[0] = ft, t[1] = Gt) : Gt = t[1];
613
+ const ce = Gt;
613
614
  let w;
614
- t[2] !== J ? (w = J === void 0 ? [] : J, t[2] = J, t[3] = w) : w = t[3];
615
- const G = w, a = he === void 0 ? !1 : he, it = Yt === void 0 ? !1 : Yt, r = M === void 0 ? !1 : M, Bt = Pt === void 0 ? 0 : Pt;
615
+ t[2] !== K ? (w = K === void 0 ? [] : K, t[2] = K, t[3] = w) : w = t[3];
616
+ const X = w, a = he === void 0 ? !1 : he, nt = Yt === void 0 ? !1 : Yt, r = M === void 0 ? !1 : M, Bt = Pt === void 0 ? 0 : Pt;
616
617
  let Mt;
617
618
  t[4] !== Et ? (Mt = Et === void 0 ? [Ve.light.grays["gray-500"], Ve.light.grays["gray-500"]] : Et, t[4] = Et, t[5] = Mt) : Mt = t[5];
618
- const zt = Mt, Ut = pt === void 0 ? Ve.primaryColors["blue-100"] : pt, qt = ye === void 0 ? 0.4 : ye, Jt = oe === void 0 ? !1 : oe, Kt = ae === void 0 ? !1 : ae, jt = xt === void 0 ? !1 : xt, A = x === void 0 ? "en" : x, Ct = d === void 0 ? 0 : d, At = N === void 0 ? 2 : N, nt = H === void 0 ? !0 : H;
619
- let ot;
620
- t[6] !== dt ? (ot = dt === void 0 ? [] : dt, t[6] = dt, t[7] = ot) : ot = t[7];
621
- const bt = ot;
622
- let X;
623
- t[8] !== Y ? (X = Y === void 0 ? [] : Y, t[8] = Y, t[9] = X) : X = t[9];
624
- const Ot = X, Lt = c === void 0 ? "light" : c, Vt = gt === void 0 ? 5 : gt, Dt = re === void 0 ? "curve" : re, kt = Gt === void 0 ? 2 : Gt;
619
+ const zt = Mt, Ut = pt === void 0 ? Ve.primaryColors["blue-100"] : pt, qt = ye === void 0 ? 0.4 : ye, Jt = oe === void 0 ? !1 : oe, Kt = ae === void 0 ? !1 : ae, jt = xt === void 0 ? !1 : xt, A = x === void 0 ? "en" : x, Ct = d === void 0 ? 0 : d, At = N === void 0 ? 2 : N, ot = H === void 0 ? !0 : H;
620
+ let at;
621
+ t[6] !== dt ? (at = dt === void 0 ? [] : dt, t[6] = dt, t[7] = at) : at = t[7];
622
+ const Ot = at;
623
+ let G;
624
+ t[8] !== Y ? (G = Y === void 0 ? [] : Y, t[8] = Y, t[9] = G) : G = t[9];
625
+ const bt = G, Lt = c === void 0 ? "light" : c, Vt = gt === void 0 ? 5 : gt, Dt = re === void 0 ? "curve" : re, kt = Xt === void 0 ? 2 : Xt;
625
626
  let D;
626
627
  t[10] !== E ? (D = E === void 0 ? [] : E, t[10] = E, t[11] = D) : D = t[11];
627
- const It = D, [at, me] = Zt(0), [k, ue] = Zt(0), St = De(null), B = De(null);
628
+ const It = D, [B, me] = Zt(0), [k, ue] = Zt(0), St = De(null), z = De(null);
628
629
  let st, rt;
629
630
  t[12] === Symbol.for("react.memo_cache_sentinel") ? (st = () => {
630
631
  const Nt = new ResizeObserver(($t) => {
@@ -634,17 +635,17 @@ function hn(i) {
634
635
  }, rt = [], t[12] = st, t[13] = rt) : (st = t[12], rt = t[13]), $e(st, rt);
635
636
  const $ = h?.graphContainer, lt = u?.graphContainer;
636
637
  let T;
637
- t[14] !== h?.description || t[15] !== h?.title || t[16] !== O || t[17] !== Kt || t[18] !== C || t[19] !== Jt || t[20] !== U || t[21] !== u?.description || t[22] !== u?.title || t[23] !== p ? (T = U || C || Jt || Kt ? /* @__PURE__ */ n.jsx(mi, { styles: {
638
+ t[14] !== h?.description || t[15] !== h?.title || t[16] !== b || t[17] !== Kt || t[18] !== C || t[19] !== Jt || t[20] !== q || t[21] !== u?.description || t[22] !== u?.title || t[23] !== p ? (T = q || C || Jt || Kt ? /* @__PURE__ */ n.jsx(mi, { styles: {
638
639
  title: u?.title,
639
640
  description: u?.description
640
641
  }, classNames: {
641
642
  title: h?.title,
642
643
  description: h?.description
643
- }, graphTitle: U, graphDescription: C, width: p, graphDownload: Jt ? B : void 0, dataDownload: Kt ? O.map($i).filter(Ni).length > 0 ? O.map(Si).filter(Ii) : O.filter(ki) : null }) : null, t[14] = h?.description, t[15] = h?.title, t[16] = O, t[17] = Kt, t[18] = C, t[19] = Jt, t[20] = U, t[21] = u?.description, t[22] = u?.title, t[23] = p, t[24] = T) : T = t[24];
644
+ }, graphTitle: q, graphDescription: C, width: p, graphDownload: Jt ? z : void 0, dataDownload: Kt ? b.map(Ti).filter($i).length > 0 ? b.map(Ni).filter(Si) : b.filter(Ii) : null }) : null, t[14] = h?.description, t[15] = h?.title, t[16] = b, t[17] = Kt, t[18] = C, t[19] = Jt, t[20] = q, t[21] = u?.description, t[22] = u?.title, t[23] = p, t[24] = T) : T = t[24];
644
645
  let W;
645
- t[25] !== jt || t[26] !== bt || t[27] !== g || t[28] !== h || t[29] !== vt || t[30] !== P || t[31] !== V || t[32] !== Dt || t[33] !== Ot || t[34] !== It || t[35] !== O || t[36] !== s || t[37] !== G || t[38] !== Ut || t[39] !== qt || t[40] !== zt || t[41] !== Bt || t[42] !== A || t[43] !== et || t[44] !== q || t[45] !== Q || t[46] !== ne || t[47] !== K || t[48] !== yt || t[49] !== _ || t[50] !== Vt || t[51] !== ie || t[52] !== kt || t[53] !== Z || t[54] !== ce || t[55] !== a || t[56] !== le || t[57] !== nt || t[58] !== it || t[59] !== r || t[60] !== tt || t[61] !== At || t[62] !== u || t[63] !== v || t[64] !== k || t[65] !== at || t[66] !== o || t[67] !== m || t[68] !== p || t[69] !== se ? (W = O.length === 0 ? /* @__PURE__ */ n.jsx(fi, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
646
+ t[25] !== jt || t[26] !== Ot || t[27] !== g || t[28] !== h || t[29] !== vt || t[30] !== P || t[31] !== V || t[32] !== Dt || t[33] !== bt || t[34] !== It || t[35] !== b || t[36] !== s || t[37] !== X || t[38] !== Ut || t[39] !== qt || t[40] !== zt || t[41] !== Bt || t[42] !== A || t[43] !== it || t[44] !== J || t[45] !== Z || t[46] !== ne || t[47] !== Q || t[48] !== yt || t[49] !== tt || t[50] !== Vt || t[51] !== ie || t[52] !== kt || t[53] !== _ || t[54] !== ce || t[55] !== a || t[56] !== le || t[57] !== ot || t[58] !== nt || t[59] !== r || t[60] !== et || t[61] !== At || t[62] !== u || t[63] !== v || t[64] !== k || t[65] !== B || t[66] !== o || t[67] !== m || t[68] !== p || t[69] !== se ? (W = b.length === 0 ? /* @__PURE__ */ n.jsx(fi, {}) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
646
647
  vt && P ? /* @__PURE__ */ n.jsx(ui, { width: p, colorLegendTitle: V, colors: vt, colorDomain: P, showNAColor: !1, className: h?.colorLegend }) : null,
647
- /* @__PURE__ */ n.jsx(hi, { ref: St, children: at && k ? /* @__PURE__ */ n.jsx(pi, { data: O, lineColor: q || Ve.primaryColors["blue-600"], width: at, height: k, suffix: v, prefix: Z, dateFormat: s, showValues: tt, noOfXTicks: _, leftMargin: et, rightMargin: le, topMargin: m, bottomMargin: g, tooltip: o, highlightAreaSettings: G, onSeriesMouseOver: ie, refValues: ce, minValue: yt, maxValue: ne, animate: jt === !0 ? {
648
+ /* @__PURE__ */ n.jsx(hi, { ref: St, children: B && k ? /* @__PURE__ */ n.jsx(xi, { data: b, lineColor: J || Ve.primaryColors["blue-600"], width: B, height: k, suffix: v, prefix: _, dateFormat: s, showValues: et, noOfXTicks: tt ?? pi(B), leftMargin: it, rightMargin: le, topMargin: m, bottomMargin: g, tooltip: o, highlightAreaSettings: X, onSeriesMouseOver: ie, refValues: ce, minValue: yt, maxValue: ne, animate: jt === !0 ? {
648
649
  duration: 0.5,
649
650
  once: !0,
650
651
  amount: 0.5
@@ -652,8 +653,8 @@ function hn(i) {
652
653
  duration: 0,
653
654
  once: !0,
654
655
  amount: 0
655
- }, rtl: A === "he" || A === "ar", strokeWidth: At, showDots: nt, annotations: bt, customHighlightAreaSettings: Ot, regressionLine: a, showIntervalDots: it, showIntervalValues: r, intervalLineStrokeWidth: Bt, intervalLineColors: zt, intervalAreaColor: Ut, intervalAreaOpacity: qt, yAxisTitle: se, noOfYTicks: Vt, minDate: K, maxDate: Q, curveType: Dt, styles: u, classNames: h, precision: kt, customLayers: It }) : null })
656
- ] }), t[25] = jt, t[26] = bt, t[27] = g, t[28] = h, t[29] = vt, t[30] = P, t[31] = V, t[32] = Dt, t[33] = Ot, t[34] = It, t[35] = O, t[36] = s, t[37] = G, t[38] = Ut, t[39] = qt, t[40] = zt, t[41] = Bt, t[42] = A, t[43] = et, t[44] = q, t[45] = Q, t[46] = ne, t[47] = K, t[48] = yt, t[49] = _, t[50] = Vt, t[51] = ie, t[52] = kt, t[53] = Z, t[54] = ce, t[55] = a, t[56] = le, t[57] = nt, t[58] = it, t[59] = r, t[60] = tt, t[61] = At, t[62] = u, t[63] = v, t[64] = k, t[65] = at, t[66] = o, t[67] = m, t[68] = p, t[69] = se, t[70] = W) : W = t[70];
656
+ }, rtl: A === "he" || A === "ar", strokeWidth: At, showDots: ot, annotations: Ot, customHighlightAreaSettings: bt, regressionLine: a, showIntervalDots: nt, showIntervalValues: r, intervalLineStrokeWidth: Bt, intervalLineColors: zt, intervalAreaColor: Ut, intervalAreaOpacity: qt, yAxisTitle: se, noOfYTicks: Vt, minDate: Q, maxDate: Z, curveType: Dt, styles: u, classNames: h, precision: kt, customLayers: It }) : null })
657
+ ] }), t[25] = jt, t[26] = Ot, t[27] = g, t[28] = h, t[29] = vt, t[30] = P, t[31] = V, t[32] = Dt, t[33] = bt, t[34] = It, t[35] = b, t[36] = s, t[37] = X, t[38] = Ut, t[39] = qt, t[40] = zt, t[41] = Bt, t[42] = A, t[43] = it, t[44] = J, t[45] = Z, t[46] = ne, t[47] = Q, t[48] = yt, t[49] = tt, t[50] = Vt, t[51] = ie, t[52] = kt, t[53] = _, t[54] = ce, t[55] = a, t[56] = le, t[57] = ot, t[58] = nt, t[59] = r, t[60] = et, t[61] = At, t[62] = u, t[63] = v, t[64] = k, t[65] = B, t[66] = o, t[67] = m, t[68] = p, t[69] = se, t[70] = W) : W = t[70];
657
658
  let R;
658
659
  t[71] !== h?.footnote || t[72] !== h?.source || t[73] !== Wt || t[74] !== L || t[75] !== u?.footnote || t[76] !== u?.source || t[77] !== p ? (R = L || Wt ? /* @__PURE__ */ n.jsx(ci, { styles: {
659
660
  footnote: u?.footnote,
@@ -663,28 +664,28 @@ function hn(i) {
663
664
  source: h?.source
664
665
  }, sources: L, footNote: Wt, width: p }) : null, t[71] = h?.footnote, t[72] = h?.source, t[73] = Wt, t[74] = L, t[75] = u?.footnote, t[76] = u?.source, t[77] = p, t[78] = R) : R = t[78];
665
666
  let ct;
666
- return t[79] !== f || t[80] !== wt || t[81] !== ht || t[82] !== l || t[83] !== A || t[84] !== Ct || t[85] !== mt || t[86] !== ee || t[87] !== $ || t[88] !== lt || t[89] !== T || t[90] !== W || t[91] !== R || t[92] !== Lt || t[93] !== p ? (ct = /* @__PURE__ */ n.jsxs(yi, { className: $, style: lt, id: ht, ref: B, "aria-label": f, backgroundColor: wt, theme: Lt, language: A, minHeight: Ct, width: p, height: l, relativeHeight: ee, padding: mt, children: [
667
+ return t[79] !== f || t[80] !== wt || t[81] !== ht || t[82] !== l || t[83] !== A || t[84] !== Ct || t[85] !== mt || t[86] !== ee || t[87] !== $ || t[88] !== lt || t[89] !== T || t[90] !== W || t[91] !== R || t[92] !== Lt || t[93] !== p ? (ct = /* @__PURE__ */ n.jsxs(yi, { className: $, style: lt, id: ht, ref: z, "aria-label": f, backgroundColor: wt, theme: Lt, language: A, minHeight: Ct, width: p, height: l, relativeHeight: ee, padding: mt, children: [
667
668
  T,
668
669
  W,
669
670
  R
670
671
  ] }), t[79] = f, t[80] = wt, t[81] = ht, t[82] = l, t[83] = A, t[84] = Ct, t[85] = mt, t[86] = ee, t[87] = $, t[88] = lt, t[89] = T, t[90] = W, t[91] = R, t[92] = Lt, t[93] = p, t[94] = ct) : ct = t[94], ct;
671
672
  }
672
- function ki(i) {
673
- return i !== void 0;
674
- }
675
673
  function Ii(i) {
676
674
  return i !== void 0;
677
675
  }
678
676
  function Si(i) {
679
- return i.data;
677
+ return i !== void 0;
680
678
  }
681
679
  function Ni(i) {
682
- return i !== void 0;
680
+ return i.data;
683
681
  }
684
682
  function $i(i) {
683
+ return i !== void 0;
684
+ }
685
+ function Ti(i) {
685
686
  return i.data;
686
687
  }
687
688
  export {
688
- hn as LineChartWithConfidenceInterval
689
+ pn as LineChartWithConfidenceInterval
689
690
  };
690
691
  //# sourceMappingURL=LineChartWithConfidenceInterval.js.map