@undp/data-viz 2.1.3 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.js +279 -272
  4. package/dist/AreaChart.js.map +1 -1
  5. package/dist/BarGraph.cjs +1 -1
  6. package/dist/BarGraph.cjs.map +1 -1
  7. package/dist/BarGraph.d.ts +2 -0
  8. package/dist/BarGraph.js +1795 -1724
  9. package/dist/BarGraph.js.map +1 -1
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.js +312 -305
  13. package/dist/BeeSwarmChart.js.map +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs +1 -1
  15. package/dist/BiVariateChoroplethMap.js +1 -1
  16. package/dist/BulletChart.cjs +1 -1
  17. package/dist/BulletChart.cjs.map +1 -1
  18. package/dist/BulletChart.js +298 -287
  19. package/dist/BulletChart.js.map +1 -1
  20. package/dist/ButterflyChart.cjs +1 -1
  21. package/dist/ButterflyChart.cjs.map +1 -1
  22. package/dist/ButterflyChart.js +224 -217
  23. package/dist/ButterflyChart.js.map +1 -1
  24. package/dist/ChoroplethMap.cjs +1 -1
  25. package/dist/ChoroplethMap.js +1 -1
  26. package/dist/CirclePackingGraph.cjs +1 -1
  27. package/dist/CirclePackingGraph.js +2 -2
  28. package/dist/DifferenceLineChart.cjs +1 -1
  29. package/dist/DifferenceLineChart.cjs.map +1 -1
  30. package/dist/DifferenceLineChart.js +404 -397
  31. package/dist/DifferenceLineChart.js.map +1 -1
  32. package/dist/DonutChart.cjs +1 -1
  33. package/dist/DonutChart.cjs.map +1 -1
  34. package/dist/DonutChart.js +116 -113
  35. package/dist/DonutChart.js.map +1 -1
  36. package/dist/DotDensityMap.cjs +1 -1
  37. package/dist/DotDensityMap.js +1 -1
  38. package/dist/DualAxisLineChart.cjs +1 -1
  39. package/dist/DualAxisLineChart.cjs.map +1 -1
  40. package/dist/DualAxisLineChart.js +320 -313
  41. package/dist/DualAxisLineChart.js.map +1 -1
  42. package/dist/DumbbellChart.cjs +1 -1
  43. package/dist/DumbbellChart.cjs.map +1 -1
  44. package/dist/DumbbellChart.js +298 -291
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  47. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  48. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  49. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  50. package/dist/GraphEl-BixTEyKW.cjs +2 -0
  51. package/dist/GraphEl-BixTEyKW.cjs.map +1 -0
  52. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-Dyu_EIQb.js} +3 -2
  53. package/dist/GraphEl-Dyu_EIQb.js.map +1 -0
  54. package/dist/GriddedGraphs.cjs +1 -1
  55. package/dist/GriddedGraphs.js +2 -2
  56. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  57. package/dist/GriddedGraphsFromConfig.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.cjs.map +1 -1
  60. package/dist/HeatMap.js +179 -172
  61. package/dist/HeatMap.js.map +1 -1
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.js +2 -2
  64. package/dist/HybridMap.cjs +1 -1
  65. package/dist/HybridMap.js +1 -1
  66. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  67. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  68. package/dist/LineChartWithConfidenceInterval.js +368 -361
  69. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  70. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  71. package/dist/MultiGraphDashboardFromConfig.js +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  73. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  74. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  75. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +1 -1
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.cjs.map +1 -1
  78. package/dist/MultiLineAltChart.js +327 -320
  79. package/dist/MultiLineAltChart.js.map +1 -1
  80. package/dist/MultiLineChart.cjs +1 -1
  81. package/dist/MultiLineChart.cjs.map +1 -1
  82. package/dist/MultiLineChart.js +374 -367
  83. package/dist/MultiLineChart.js.map +1 -1
  84. package/dist/ParetoChart.cjs +1 -1
  85. package/dist/ParetoChart.cjs.map +1 -1
  86. package/dist/ParetoChart.js +385 -378
  87. package/dist/ParetoChart.js.map +1 -1
  88. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  89. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +1 -1
  90. package/dist/RadarChart.cjs +1 -1
  91. package/dist/RadarChart.cjs.map +1 -1
  92. package/dist/RadarChart.js +34 -33
  93. package/dist/RadarChart.js.map +1 -1
  94. package/dist/SankeyChart.cjs +1 -1
  95. package/dist/SankeyChart.cjs.map +1 -1
  96. package/dist/SankeyChart.js +176 -169
  97. package/dist/SankeyChart.js.map +1 -1
  98. package/dist/ScatterPlot.cjs +1 -1
  99. package/dist/ScatterPlot.cjs.map +1 -1
  100. package/dist/ScatterPlot.js +366 -359
  101. package/dist/ScatterPlot.js.map +1 -1
  102. package/dist/SimpleLineChart.cjs +1 -1
  103. package/dist/SimpleLineChart.cjs.map +1 -1
  104. package/dist/SimpleLineChart.js +285 -278
  105. package/dist/SimpleLineChart.js.map +1 -1
  106. package/dist/SingleGraphDashboard.cjs +1 -1
  107. package/dist/SingleGraphDashboard.js +2 -2
  108. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  109. package/dist/SingleGraphDashboardFromConfig.js +1 -1
  110. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  111. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +1 -1
  112. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  113. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  114. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  115. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +1 -1
  116. package/dist/SlopeChart.cjs +1 -1
  117. package/dist/SlopeChart.cjs.map +1 -1
  118. package/dist/SlopeChart.js +243 -236
  119. package/dist/SlopeChart.js.map +1 -1
  120. package/dist/Spinner-CQZcjzwd.cjs +2 -0
  121. package/dist/Spinner-CQZcjzwd.cjs.map +1 -0
  122. package/dist/{Spinner-D7rnnwnA.js → Spinner-DVBnY6Vg.js} +5 -5
  123. package/dist/Spinner-DVBnY6Vg.js.map +1 -0
  124. package/dist/StripChart.cjs +1 -1
  125. package/dist/StripChart.cjs.map +1 -1
  126. package/dist/StripChart.js +293 -286
  127. package/dist/StripChart.js.map +1 -1
  128. package/dist/ThreeDGlobe.cjs +1 -1
  129. package/dist/ThreeDGlobe.js +1 -1
  130. package/dist/TreeMapGraph.cjs +1 -1
  131. package/dist/TreeMapGraph.cjs.map +1 -1
  132. package/dist/TreeMapGraph.js +222 -215
  133. package/dist/TreeMapGraph.js.map +1 -1
  134. package/dist/index-R1gTfap5.js +337 -0
  135. package/dist/index-R1gTfap5.js.map +1 -0
  136. package/dist/index-WML2dCZ0.cjs +2 -0
  137. package/dist/{index-CF5hnGvG.cjs.map → index-WML2dCZ0.cjs.map} +1 -1
  138. package/dist/index.cjs +1 -1
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +2 -2
  143. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  144. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  145. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  146. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  147. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  148. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  149. package/dist/Spinner-D7rnnwnA.js.map +0 -1
  150. package/dist/Spinner-DRMBUsX7.cjs +0 -2
  151. package/dist/Spinner-DRMBUsX7.cjs.map +0 -1
  152. package/dist/index-CF5hnGvG.cjs +0 -2
  153. package/dist/index-DPGq3eIL.js +0 -330
  154. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { c as Te, j as n, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as De, useState as Zt, useEffect as $e } from "react";
3
- import { p as j, f as Re } from "./parse-DlCRUFh_.js";
1
+ import { c as Te, j as o, m as be } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as De, useState as ee, useEffect as $e } from "react";
3
+ import { p as C, f as Re } from "./parse-DlCRUFh_.js";
4
4
  import { l as Fe, a as He } from "./simple-statistics-flVzqVtt.js";
5
5
  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-Dj5eVppQ.js";
8
- import { c as F } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
+ import { c as P } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
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";
@@ -22,199 +22,199 @@ import { s as ai } from "./select-DKy99ogv.js";
22
22
  import { a as si } from "./init-BhZylTFx.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 O } from "./proxy-BxkFHwUw.js";
25
+ import { m as b } 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
- import { ColorLegend as ui } from "./ColorLegend.js";
30
- import { E as fi } from "./EmptyState-BZo1BbAn.js";
29
+ import { ColorLegend as fi } from "./ColorLegend.js";
30
+ import { E as ui } from "./EmptyState-C7ZXkZWd.js";
31
31
  import { a as hi, G as yi } from "./GraphContainer-CRqzdKu2.js";
32
32
  import { g as pi } from "./getNoOfTicks-CpmRjcRF.js";
33
33
  function xi(i) {
34
34
  const t = Te.c(102), {
35
- data: b,
36
- width: q,
37
- height: Tt,
35
+ data: p,
36
+ width: Z,
37
+ height: Ft,
38
38
  lineColor: L,
39
- suffix: I,
40
- prefix: C,
39
+ suffix: N,
40
+ prefix: A,
41
41
  dateFormat: l,
42
- highlightAreaSettings: p,
43
- showValues: Wt,
44
- noOfXTicks: fe,
45
- rightMargin: Rt,
46
- leftMargin: S,
47
- topMargin: Ft,
48
- bottomMargin: mt,
49
- tooltip: J,
50
- onSeriesMouseOver: Ht,
51
- refValues: _t,
52
- minValue: te,
53
- maxValue: ut,
54
- animate: o,
55
- rtl: ft,
56
- strokeWidth: K,
57
- showDots: ee,
58
- annotations: ie,
59
- customHighlightAreaSettings: ht,
60
- regressionLine: yt,
61
- showIntervalDots: ne,
62
- showIntervalValues: he,
63
- intervalLineStrokeWidth: Yt,
64
- intervalLineColors: M,
65
- intervalAreaColor: Pt,
66
- intervalAreaOpacity: Et,
67
- yAxisTitle: pt,
68
- noOfYTicks: ye,
69
- minDate: oe,
70
- maxDate: ae,
71
- curveType: xt,
72
- styles: x,
73
- classNames: d,
74
- precision: N,
75
- customLayers: H
76
- } = i, dt = De(null);
77
- let Y;
78
- t[0] !== o.amount || t[1] !== o.once ? (Y = {
79
- once: o.once,
80
- amount: o.amount
81
- }, t[0] = o.amount, t[1] = o.once, t[2] = Y) : Y = t[2];
82
- const c = li(dt, Y), [f, se] = Zt(!1);
83
- let gt, Q;
84
- t[3] !== o.duration || t[4] !== f || t[5] !== c ? (gt = () => {
85
- if (c && !f) {
42
+ highlightAreaSettings: x,
43
+ showValues: Ht,
44
+ noOfXTicks: pe,
45
+ rightMargin: Yt,
46
+ leftMargin: $,
47
+ topMargin: Pt,
48
+ bottomMargin: ht,
49
+ tooltip: _,
50
+ onSeriesMouseOver: Et,
51
+ refValues: ie,
52
+ minValue: ne,
53
+ maxValue: yt,
54
+ animate: n,
55
+ rtl: pt,
56
+ strokeWidth: tt,
57
+ showDots: oe,
58
+ annotations: ae,
59
+ customHighlightAreaSettings: xt,
60
+ regressionLine: dt,
61
+ showIntervalDots: se,
62
+ showIntervalValues: xe,
63
+ intervalLineStrokeWidth: Xt,
64
+ intervalLineColors: j,
65
+ intervalAreaColor: Gt,
66
+ intervalAreaOpacity: Bt,
67
+ yAxisTitle: gt,
68
+ noOfYTicks: de,
69
+ minDate: re,
70
+ maxDate: le,
71
+ curveType: vt,
72
+ styles: d,
73
+ classNames: g,
74
+ precision: T,
75
+ customLayers: E
76
+ } = i, wt = De(null);
77
+ let X;
78
+ t[0] !== n.amount || t[1] !== n.once ? (X = {
79
+ once: n.once,
80
+ amount: n.amount
81
+ }, t[0] = n.amount, t[1] = n.once, t[2] = X) : X = t[2];
82
+ const c = li(wt, X), [h, ce] = ee(!1);
83
+ let Mt, et;
84
+ t[3] !== n.duration || t[4] !== h || t[5] !== c ? (Mt = () => {
85
+ if (c && !h) {
86
86
  const e = setTimeout(() => {
87
- se(!0);
88
- }, (o.duration + 0.5) * 1e3);
87
+ ce(!0);
88
+ }, (n.duration + 0.5) * 1e3);
89
89
  return () => clearTimeout(e);
90
90
  }
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;
93
- let E;
94
- t[8] !== mt || t[9] !== Rt || t[10] !== Xt || t[11] !== Ft ? (E = {
95
- top: Ft,
96
- bottom: mt,
97
- left: Xt,
98
- right: Rt
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) => ({
103
- date: j(`${e.date}`, l, /* @__PURE__ */ new Date()),
91
+ }, et = [c, h, n.duration], t[3] = n.duration, t[4] = h, t[5] = c, t[6] = Mt, t[7] = et) : (Mt = t[6], et = t[7]), $e(Mt, et);
92
+ const it = vt === "linear" ? _e : vt === "step" ? ti : vt === "stepAfter" ? ei : vt === "stepBefore" ? ii : ni, [V, jt] = ee(void 0), [G, me] = ee(void 0), [u, f] = ee(void 0), zt = gt ? $ + 30 : $;
93
+ let B;
94
+ t[8] !== ht || t[9] !== Yt || t[10] !== zt || t[11] !== Pt ? (B = {
95
+ top: Pt,
96
+ bottom: ht,
97
+ left: zt,
98
+ right: Yt
99
+ }, t[8] = ht, t[9] = Yt, t[10] = zt, t[11] = Pt, t[12] = B) : B = t[12];
100
+ const w = B, nt = De(null);
101
+ let ot;
102
+ t[13] !== l ? (ot = (e) => ({
103
+ date: C(`${e.date}`, l, /* @__PURE__ */ new Date()),
104
104
  y: e.y,
105
- yMin: F(e.yMin) ? e.y : e.yMin,
106
- yMax: F(e.yMax) ? e.y : e.yMax,
105
+ yMin: P(e.yMin) ? e.y : e.yMin,
106
+ yMax: P(e.yMax) ? e.y : e.yMax,
107
107
  data: e.data
108
- }), t[13] = l, t[14] = tt) : tt = t[14];
109
- const s = Ye(b.filter(ki).map(tt), ["date"], ["asc"]);
110
- let et;
111
- if (t[15] !== l || t[16] !== p) {
108
+ }), t[13] = l, t[14] = ot) : ot = t[14];
109
+ const s = Ye(p.filter(ki).map(ot), ["date"], ["asc"]);
110
+ let at;
111
+ if (t[15] !== l || t[16] !== x) {
112
112
  let e;
113
113
  t[18] !== l ? (e = (y) => ({
114
114
  ...y,
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())]
116
- }), t[18] = l, t[19] = e) : e = t[19], et = p.map(e), t[15] = l, t[16] = p, t[17] = et;
115
+ coordinates: [y.coordinates[0] === null ? null : C(`${y.coordinates[0]}`, l, /* @__PURE__ */ new Date()), y.coordinates[1] === null ? null : C(`${y.coordinates[1]}`, l, /* @__PURE__ */ new Date())]
116
+ }), t[18] = l, t[19] = e) : e = t[19], at = x.map(e), t[15] = l, t[16] = x, t[17] = at;
117
117
  } else
118
- et = t[17];
119
- const wt = et;
120
- let it;
121
- if (t[20] !== ht || t[21] !== l) {
118
+ at = t[17];
119
+ const Ct = at;
120
+ let st;
121
+ if (t[20] !== xt || t[21] !== l) {
122
122
  let e;
123
123
  t[23] !== l ? (e = (y) => ({
124
124
  ...y,
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;
125
+ coordinates: y.coordinates.map((Q, te) => te % 2 === 0 ? C(`${Q}`, l, /* @__PURE__ */ new Date()) : Q)
126
+ }), t[23] = l, t[24] = e) : e = t[24], st = xt.map(e), t[20] = xt, t[21] = l, t[22] = st;
127
127
  } else
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);
128
+ st = t[22];
129
+ const fe = st, m = Z - w.left - w.right, v = Ft - w.top - w.bottom, Ut = re ? C(`${re}`, l, /* @__PURE__ */ new Date()) : s[0].date, ue = le ? C(`${le}`, l, /* @__PURE__ */ new Date()) : s[s.length - 1].date, M = P(ne) ? Math.min(...s.map(Di)) ? Math.min(...s.map(Vi)) > 0 ? 0 : Math.min(...s.map(Li)) : 0 : ne, z = Math.max(...s.map(bi)) ? Math.max(...s.map(Oi)) : 0, a = Qe().domain([Ut, ue]).range([0, m]);
130
+ let rt;
131
+ t[25] !== z || t[26] !== yt ? (rt = P(yt) ? z > 0 ? z : 0 : yt, t[25] = z, t[26] = yt, t[27] = rt) : rt = t[27];
132
+ const r = Ze().domain([M, rt]).range([v, 0]).nice(), qt = Ne().x((e) => a(e.date)).y((e) => r(e.y)).curve(it), At = Ne().x((e) => a(e.date)).y((e) => r(e.yMin)).curve(it), Jt = Ne().x((e) => a(e.date)).y((e) => r(e.yMax)).curve(it), Kt = oi().x((e) => a(e.date)).y0((e) => r(e.yMin)).y1((e) => r(e.yMax)).curve(it), Qt = r.ticks(de), Zt = a.ticks(pe);
133
133
  $e(() => {
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);
134
+ const e = (Q) => {
135
+ const te = s[si(s.map(Ai), a.invert(ri(Q)[0]), 0)];
136
+ jt(te || s[s.length - 1]), Et?.(te || s[s.length - 1]), f(Q.clientY), me(Q.clientX);
137
137
  }, y = () => {
138
- vt(void 0), re(void 0), h(void 0), Ht?.(void 0);
138
+ jt(void 0), me(void 0), f(void 0), Et?.(void 0);
139
139
  };
140
- ai(_.current).on("mousemove", e).on("mouseout", y);
141
- }, [a, s, Ht]);
142
- const Kt = Fe(s.filter(Ci).map((e) => [a(e.date), r(e.y)])), jt = He(Kt);
143
- let A;
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];
145
- const Ct = x?.yAxis?.gridLines, At = x?.yAxis?.labels;
146
- let ot;
147
- t[35] !== Ct || t[36] !== At ? (ot = {
148
- gridLines: Ct,
149
- labels: At
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;
140
+ ai(nt.current).on("mousemove", e).on("mouseout", y);
141
+ }, [a, s, Et]);
142
+ const _t = Fe(s.filter(Ci).map((e) => [a(e.date), r(e.y)])), Ot = He(_t);
143
+ let O;
144
+ t[28] !== n || t[29] !== v || t[30] !== m || t[31] !== Ct || t[32] !== c || t[33] !== a ? (O = /* @__PURE__ */ o.jsx(Ke, { areaSettings: Ct, width: m, height: v, scale: a, animate: n, isInView: c }), t[28] = n, t[29] = v, t[30] = m, t[31] = Ct, t[32] = c, t[33] = a, t[34] = O) : O = t[34];
145
+ const bt = d?.yAxis?.gridLines, Lt = d?.yAxis?.labels;
146
+ let lt;
147
+ t[35] !== bt || t[36] !== Lt ? (lt = {
148
+ gridLines: bt,
149
+ labels: Lt
150
+ }, t[35] = bt, t[36] = Lt, t[37] = lt) : lt = t[37];
151
+ const ct = g?.yAxis?.gridLines, Vt = g?.yAxis?.labels;
152
+ let U;
153
+ t[38] !== ct || t[39] !== Vt ? (U = {
154
+ gridLines: ct,
155
+ labels: Vt
156
+ }, t[38] = ct, t[39] = Vt, t[40] = U) : U = t[40];
157
+ const Dt = r(M < 0 ? 0 : M), kt = r(M < 0 ? 0 : M), It = 0 - $, St = m + w.right, Nt = M < 0 ? 0 : M;
158
158
  let D;
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];
160
- const It = 0 - S, B = r(w < 0 ? 0 : w), me = X < 0 ? "1em" : -5;
159
+ t[41] !== T || t[42] !== A || t[43] !== N || t[44] !== Nt ? (D = Le(Nt, "NA", T, A, N), t[41] = T, t[42] = A, t[43] = N, t[44] = Nt, t[45] = D) : D = t[45];
160
+ const $t = 0 - $, q = r(M < 0 ? 0 : M), he = z < 0 ? "1em" : -5;
161
161
  let k;
162
- t[46] !== It || t[47] !== B || t[48] !== me ? (k = {
163
- x: It,
164
- y: B,
162
+ t[46] !== $t || t[47] !== q || t[48] !== he ? (k = {
163
+ x: $t,
164
+ y: q,
165
165
  dx: 0,
166
- dy: me
167
- }, t[46] = It, t[47] = B, t[48] = me, t[49] = k) : k = t[49];
168
- const ue = d?.xAxis?.axis, St = d?.yAxis?.labels;
169
- let z;
170
- t[50] !== ue || t[51] !== St ? (z = {
171
- axis: ue,
172
- label: St
173
- }, t[50] = ue, t[51] = St, t[52] = z) : z = t[52];
174
- const st = x?.xAxis?.axis, rt = x?.yAxis?.labels;
175
- let $;
176
- t[53] !== st || t[54] !== rt ? ($ = {
177
- axis: st,
178
- label: rt
179
- }, t[53] = st, t[54] = rt, t[55] = $) : $ = t[55];
180
- let lt;
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];
182
- const T = 0 - S + 15, W = g / 2, R = x?.yAxis?.title, ct = d?.yAxis?.title;
183
- let Nt;
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];
185
- let $t;
186
- t[71] !== H ? ($t = H.filter(wi).map(vi), t[71] = H, t[72] = $t) : $t = t[72];
187
- let pe;
188
- t[73] !== Pt ? (pe = {
189
- fill: Pt
190
- }, t[73] = Pt, t[74] = pe) : pe = t[74];
191
- let xe;
192
- t[75] !== o.duration ? (xe = {
166
+ dy: he
167
+ }, t[46] = $t, t[47] = q, t[48] = he, t[49] = k) : k = t[49];
168
+ const ye = g?.xAxis?.axis, Tt = g?.yAxis?.labels;
169
+ let J;
170
+ t[50] !== ye || t[51] !== Tt ? (J = {
171
+ axis: ye,
172
+ label: Tt
173
+ }, t[50] = ye, t[51] = Tt, t[52] = J) : J = t[52];
174
+ const mt = d?.xAxis?.axis, ft = d?.yAxis?.labels;
175
+ let W;
176
+ t[53] !== mt || t[54] !== ft ? (W = {
177
+ axis: mt,
178
+ label: ft
179
+ }, t[53] = mt, t[54] = ft, t[55] = W) : W = t[55];
180
+ let ut;
181
+ t[56] !== Dt || t[57] !== kt || t[58] !== It || t[59] !== St || t[60] !== D || t[61] !== k || t[62] !== J || t[63] !== W ? (ut = /* @__PURE__ */ o.jsx(ze, { y1: Dt, y2: kt, x1: It, x2: St, label: D, labelPos: k, classNames: J, styles: W }), t[56] = Dt, t[57] = kt, t[58] = It, t[59] = St, t[60] = D, t[61] = k, t[62] = J, t[63] = W, t[64] = ut) : ut = t[64];
182
+ const R = 0 - $ + 15, F = v / 2, H = d?.yAxis?.title, Y = g?.yAxis?.title;
183
+ let I;
184
+ t[65] !== R || t[66] !== F || t[67] !== H || t[68] !== Y || t[69] !== gt ? (I = /* @__PURE__ */ o.jsx(Be, { x: R, y: F, style: H, className: Y, text: gt, rotate90: !0 }), t[65] = R, t[66] = F, t[67] = H, t[68] = Y, t[69] = gt, t[70] = I) : I = t[70];
185
+ let S;
186
+ t[71] !== E ? (S = E.filter(wi).map(vi), t[71] = E, t[72] = S) : S = t[72];
187
+ let K;
188
+ t[73] !== Gt ? (K = {
189
+ fill: Gt
190
+ }, t[73] = Gt, t[74] = K) : K = t[74];
191
+ let Wt;
192
+ t[75] !== n.duration ? (Wt = {
193
193
  opacity: 0,
194
194
  transition: {
195
- duration: o.duration
195
+ duration: n.duration
196
196
  }
197
- }, t[75] = o.duration, t[76] = xe) : xe = t[76];
198
- let de;
199
- t[77] !== L || t[78] !== K ? (de = {
197
+ }, t[75] = n.duration, t[76] = Wt) : Wt = t[76];
198
+ let Rt;
199
+ t[77] !== L || t[78] !== tt ? (Rt = {
200
200
  stroke: L,
201
201
  fill: "none",
202
- strokeWidth: K
203
- }, t[77] = L, t[78] = K, t[79] = de) : de = t[79];
202
+ strokeWidth: tt
203
+ }, t[77] = L, t[78] = tt, t[79] = Rt) : Rt = t[79];
204
204
  let ge;
205
- t[80] !== o.duration ? (ge = {
205
+ t[80] !== n.duration ? (ge = {
206
206
  opacity: 0,
207
207
  transition: {
208
- duration: o.duration
208
+ duration: n.duration
209
209
  }
210
- }, t[80] = o.duration, t[81] = ge) : ge = t[81];
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: {
210
+ }, t[80] = n.duration, t[81] = ge) : ge = t[81];
211
+ const ke = s.map((e, y) => /* @__PURE__ */ o.jsx(b.g, { children: P(e.y) ? null : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
212
+ oe ? /* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, style: {
213
213
  fill: L
214
214
  }, exit: {
215
215
  opacity: 0,
216
216
  transition: {
217
- duration: o.duration
217
+ duration: n.duration
218
218
  }
219
219
  }, variants: {
220
220
  initial: {
@@ -225,68 +225,68 @@ function xi(i) {
225
225
  whileInView: {
226
226
  opacity: 1,
227
227
  transition: {
228
- duration: f ? o.duration : 0.5,
229
- delay: f ? 0 : o.duration
228
+ duration: h ? n.duration : 0.5,
229
+ delay: h ? 0 : n.duration
230
230
  },
231
231
  cx: a(e.date),
232
232
  cy: r(e.y)
233
233
  }
234
234
  }, initial: "initial", animate: c ? "whileInView" : "initial" }) : null,
235
- ne ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
236
- /* @__PURE__ */ n.jsx(O.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
235
+ se ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
236
+ /* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
237
237
  opacity: 0,
238
238
  transition: {
239
- duration: o.duration
239
+ duration: n.duration
240
240
  }
241
241
  }, variants: {
242
242
  initial: {
243
243
  opacity: 0,
244
- fill: M[0],
244
+ fill: j[0],
245
245
  cx: a(e.date),
246
246
  cy: r(e.yMin)
247
247
  },
248
248
  whileInView: {
249
249
  opacity: 1,
250
250
  transition: {
251
- duration: f ? o.duration : 0.5,
252
- delay: f ? 0 : o.duration
251
+ duration: h ? n.duration : 0.5,
252
+ delay: h ? 0 : n.duration
253
253
  },
254
254
  cx: a(e.date),
255
255
  cy: r(e.yMin),
256
- fill: M[0]
256
+ fill: j[0]
257
257
  }
258
258
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
259
- /* @__PURE__ */ n.jsx(O.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
259
+ /* @__PURE__ */ o.jsx(b.circle, { r: m / s.length < 5 ? 0 : m / s.length < 20 ? 2 : 4, exit: {
260
260
  opacity: 0,
261
261
  transition: {
262
- duration: o.duration
262
+ duration: n.duration
263
263
  }
264
264
  }, variants: {
265
265
  initial: {
266
266
  opacity: 0,
267
- fill: M[1],
267
+ fill: j[1],
268
268
  cx: a(e.date),
269
269
  cy: r(e.yMax)
270
270
  },
271
271
  whileInView: {
272
272
  opacity: 1,
273
- fill: M[1],
273
+ fill: j[1],
274
274
  transition: {
275
- duration: f ? o.duration : 0.5,
276
- delay: f ? 0 : o.duration
275
+ duration: h ? n.duration : 0.5,
276
+ delay: h ? 0 : n.duration
277
277
  },
278
278
  cx: a(e.date),
279
279
  cy: r(e.yMax)
280
280
  }
281
281
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
282
282
  ] }) : null,
283
- Wt ? /* @__PURE__ */ n.jsx(O.text, { dy: -8, style: {
283
+ Ht ? /* @__PURE__ */ o.jsx(b.text, { dy: -8, style: {
284
284
  textAnchor: "middle",
285
- ...x?.graphObjectValues || {}
286
- }, className: be("graph-value text-xs font-bold", d?.graphObjectValues), exit: {
285
+ ...d?.graphObjectValues || {}
286
+ }, className: be("graph-value text-xs font-bold", g?.graphObjectValues), exit: {
287
287
  opacity: 0,
288
288
  transition: {
289
- duration: o.duration
289
+ duration: n.duration
290
290
  }
291
291
  }, variants: {
292
292
  initial: {
@@ -301,24 +301,24 @@ function xi(i) {
301
301
  fill: L,
302
302
  y: r(e.y),
303
303
  transition: {
304
- duration: f ? o.duration : 0.5,
305
- delay: f ? 0 : o.duration
304
+ duration: h ? n.duration : 0.5,
305
+ delay: h ? 0 : n.duration
306
306
  }
307
307
  }
308
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, "NA", N, C, I) }) : null,
309
- he ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
310
- /* @__PURE__ */ n.jsx(O.text, { dy: "1em", style: {
308
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.y, "NA", T, A, N) }) : null,
309
+ xe ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
310
+ /* @__PURE__ */ o.jsx(b.text, { dy: "1em", style: {
311
311
  textAnchor: "middle",
312
- ...x?.graphObjectValues || {}
313
- }, className: be("text-xs font-bold", d?.graphObjectValues), exit: {
312
+ ...d?.graphObjectValues || {}
313
+ }, className: be("text-xs font-bold", g?.graphObjectValues), exit: {
314
314
  opacity: 0,
315
315
  transition: {
316
- duration: o.duration
316
+ duration: n.duration
317
317
  }
318
318
  }, variants: {
319
319
  initial: {
320
320
  opacity: 0,
321
- fill: M[0],
321
+ fill: j[0],
322
322
  x: a(e.date),
323
323
  y: r(e.yMin)
324
324
  },
@@ -326,178 +326,178 @@ function xi(i) {
326
326
  opacity: 1,
327
327
  x: a(e.date),
328
328
  y: r(e.yMin),
329
- fill: M[0],
329
+ fill: j[0],
330
330
  transition: {
331
- duration: f ? o.duration : 0.5,
332
- delay: f ? 0 : o.duration
331
+ duration: h ? n.duration : 0.5,
332
+ delay: h ? 0 : n.duration
333
333
  }
334
334
  }
335
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, "NA", N, C, I) }),
336
- /* @__PURE__ */ n.jsx(O.text, { dy: -8, style: {
335
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMin, "NA", T, A, N) }),
336
+ /* @__PURE__ */ o.jsx(b.text, { dy: -8, style: {
337
337
  textAnchor: "middle",
338
- ...x?.graphObjectValues || {}
339
- }, className: be("text-xs font-bold", d?.graphObjectValues), exit: {
338
+ ...d?.graphObjectValues || {}
339
+ }, className: be("text-xs font-bold", g?.graphObjectValues), exit: {
340
340
  opacity: 0,
341
341
  transition: {
342
- duration: o.duration
342
+ duration: n.duration
343
343
  }
344
344
  }, variants: {
345
345
  initial: {
346
346
  opacity: 0,
347
- fill: M[1],
347
+ fill: j[1],
348
348
  x: a(e.date),
349
349
  y: r(e.yMax)
350
350
  },
351
351
  whileInView: {
352
352
  opacity: 1,
353
- fill: M[1],
353
+ fill: j[1],
354
354
  x: a(e.date),
355
355
  y: r(e.yMax),
356
356
  transition: {
357
- duration: f ? o.duration : 0.5,
358
- delay: f ? 0 : o.duration
357
+ duration: h ? n.duration : 0.5,
358
+ delay: h ? 0 : n.duration
359
359
  }
360
360
  }
361
- }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, "NA", N, C, I) })
361
+ }, initial: "initial", animate: c ? "whileInView" : "initial", children: Le(e.yMax, "NA", T, A, N) })
362
362
  ] }) : null
363
363
  ] }) }, y));
364
364
  let ve;
365
- t[82] !== ke ? (ve = /* @__PURE__ */ n.jsx("g", { children: ke }), t[82] = ke, t[83] = ve) : ve = t[83];
366
- const Ie = ie.map((e, y) => {
367
- const U = Ee({
368
- x: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
365
+ t[82] !== ke ? (ve = /* @__PURE__ */ o.jsx("g", { children: ke }), t[82] = ke, t[83] = ve) : ve = t[83];
366
+ const Ie = ae.map((e, y) => {
367
+ const Q = Ee({
368
+ x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
369
369
  y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8
370
370
  }, {
371
- x: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
371
+ x: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
372
372
  y: e.yCoordinate ? r(e.yCoordinate) : 0
373
- }, F(e.connectorRadius) ? 3.5 : e.connectorRadius), Qt = e.showConnector ? {
374
- y1: U.y,
375
- x1: U.x,
373
+ }, P(e.connectorRadius) ? 3.5 : e.connectorRadius), te = e.showConnector ? {
374
+ y1: Q.y,
375
+ x1: Q.x,
376
376
  y2: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) : 0 + (e.yOffset || 0),
377
- x2: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
377
+ x2: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
378
378
  cy: e.yCoordinate ? r(e.yCoordinate) : 0,
379
- cx: e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
380
- circleRadius: F(e.connectorRadius) ? 3.5 : e.connectorRadius,
379
+ cx: e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) : 0,
380
+ circleRadius: P(e.connectorRadius) ? 3.5 : e.connectorRadius,
381
381
  strokeWidth: e.showConnector === !0 ? 2 : Math.min(e.showConnector || 0, 1)
382
382
  } : void 0, We = {
383
383
  y: e.yCoordinate ? r(e.yCoordinate) + (e.yOffset || 0) - 8 : 0 + (e.yOffset || 0) - 8,
384
- x: ft ? 0 : e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
385
- width: ft ? e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + v.right - (e.xCoordinate ? a(j(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
384
+ x: pt ? 0 : e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0),
385
+ width: pt ? e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0) : m + w.right - (e.xCoordinate ? a(C(`${e.xCoordinate}`, l, /* @__PURE__ */ new Date())) + (e.xOffset || 0) : 0 + (e.xOffset || 0)),
386
386
  maxWidth: e.maxWidth,
387
387
  fontWeight: e.fontWeight,
388
388
  align: e.align
389
389
  };
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
+ return /* @__PURE__ */ o.jsx(Xe, { color: e.color, connectorsSettings: te, labelSettings: We, text: e.text, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y);
391
391
  });
392
392
  let we;
393
- t[84] !== Ie ? (we = /* @__PURE__ */ n.jsx("g", { children: Ie }), t[84] = Ie, t[85] = we) : we = t[85];
394
- const Se = yt ? /* @__PURE__ */ n.jsx(qe, { x1: 0, x2: m, y1: jt(0), y2: jt(m), graphHeight: g, graphWidth: m, className: d?.regLine, style: x?.regLine, color: typeof yt == "string" ? yt : void 0, animate: o, isInView: c }) : null;
393
+ t[84] !== Ie ? (we = /* @__PURE__ */ o.jsx("g", { children: Ie }), t[84] = Ie, t[85] = we) : we = t[85];
394
+ const Se = dt ? /* @__PURE__ */ o.jsx(qe, { x1: 0, x2: m, y1: Ot(0), y2: Ot(m), graphHeight: v, graphWidth: m, className: g?.regLine, style: d?.regLine, color: typeof dt == "string" ? dt : void 0, animate: n, isInView: c }) : null;
395
395
  let Me;
396
- t[86] !== Se ? (Me = /* @__PURE__ */ n.jsx("g", { children: Se }), t[86] = Se, t[87] = Me) : Me = t[87];
396
+ t[86] !== Se ? (Me = /* @__PURE__ */ o.jsx("g", { children: Se }), t[86] = Se, t[87] = Me) : Me = t[87];
397
397
  let je;
398
- t[88] !== H ? (je = H.filter(gi).map(di), t[88] = H, t[89] = je) : je = t[89];
398
+ t[88] !== E ? (je = E.filter(gi).map(di), t[88] = E, t[89] = je) : je = t[89];
399
399
  let Ce;
400
400
  t[90] === Symbol.for("react.memo_cache_sentinel") ? (Ce = {
401
401
  fill: "none",
402
402
  pointerEvents: "all"
403
403
  }, t[90] = Ce) : Ce = t[90];
404
404
  let Ae;
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];
405
+ t[91] !== nt || t[92] !== v || t[93] !== m ? (Ae = /* @__PURE__ */ o.jsx("rect", { ref: nt, style: Ce, width: m, height: v }), t[91] = nt, t[92] = v, t[93] = m, t[94] = Ae) : Ae = t[94];
406
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: [
409
- A,
410
- /* @__PURE__ */ n.jsx(Ge, { areaSettings: le, scaleX: a, scaleY: r, animate: o, isInView: c }),
411
- /* @__PURE__ */ n.jsxs("g", { children: [
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 }),
413
- lt,
414
- Nt
407
+ return t[95] !== g?.tooltip || t[96] !== G || t[97] !== u || t[98] !== V || t[99] !== d?.tooltip || t[100] !== _ ? (Oe = V && _ && G && u ? /* @__PURE__ */ o.jsx(Pe, { data: V, body: _, xPos: G, yPos: u, backgroundStyle: d?.tooltip, className: g?.tooltip }) : null, t[95] = g?.tooltip, t[96] = G, t[97] = u, t[98] = V, t[99] = d?.tooltip, t[100] = _, t[101] = Oe) : Oe = t[101], /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
408
+ /* @__PURE__ */ o.jsx(b.svg, { width: `${Z}px`, height: `${Ft}px`, viewBox: `0 0 ${Z} ${Ft}`, direction: "ltr", ref: wt, children: /* @__PURE__ */ o.jsxs("g", { transform: `translate(${w.left},${w.top})`, children: [
409
+ O,
410
+ /* @__PURE__ */ o.jsx(Ge, { areaSettings: fe, scaleX: a, scaleY: r, animate: n, isInView: c }),
411
+ /* @__PURE__ */ o.jsxs("g", { children: [
412
+ /* @__PURE__ */ o.jsx(Je, { values: Qt.filter(ji), y: Qt.filter(Mi).map((e) => r(e)), x1: 0 - $, x2: m + w.right, styles: lt, classNames: U, suffix: N, prefix: A, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: T }),
413
+ ut,
414
+ I
415
415
  ] }),
416
- /* @__PURE__ */ n.jsx("g", { children: Jt.map((e, y) => /* @__PURE__ */ n.jsx("g", { children: /* @__PURE__ */ n.jsx("text", { y: g, x: a(e), style: {
416
+ /* @__PURE__ */ o.jsx("g", { children: Zt.map((e, y) => /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("text", { y: v, x: a(e), style: {
417
417
  textAnchor: "middle"
418
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)) }),
419
- $t,
420
- /* @__PURE__ */ n.jsx(O.path, { style: pe, exit: xe, variants: {
419
+ S,
420
+ /* @__PURE__ */ o.jsx(b.path, { style: K, exit: Wt, variants: {
421
421
  initial: {
422
422
  opacity: 0,
423
- d: Ut(s) || ""
423
+ d: Kt(s) || ""
424
424
  },
425
425
  whileInView: {
426
- opacity: Et,
427
- d: Ut(s) || "",
426
+ opacity: Bt,
427
+ d: Kt(s) || "",
428
428
  transition: {
429
- duration: o.duration
429
+ duration: n.duration
430
430
  }
431
431
  }
432
432
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
433
- Yt ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
434
- /* @__PURE__ */ n.jsx(O.path, { style: {
435
- stroke: M[0],
433
+ Xt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
434
+ /* @__PURE__ */ o.jsx(b.path, { style: {
435
+ stroke: j[0],
436
436
  fill: "none",
437
- strokeWidth: Yt
437
+ strokeWidth: Xt
438
438
  }, exit: {
439
439
  opacity: 0,
440
440
  transition: {
441
- duration: o.duration
441
+ duration: n.duration
442
442
  }
443
443
  }, variants: {
444
444
  initial: {
445
445
  pathLength: 0,
446
- d: Mt(s) || "",
446
+ d: At(s) || "",
447
447
  opacity: 1
448
448
  },
449
449
  whileInView: {
450
450
  pathLength: 1,
451
- d: Mt(s) || "",
451
+ d: At(s) || "",
452
452
  opacity: 1,
453
453
  transition: {
454
- duration: o.duration
454
+ duration: n.duration
455
455
  }
456
456
  }
457
457
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
458
- /* @__PURE__ */ n.jsx(O.path, { style: {
459
- stroke: M[1],
458
+ /* @__PURE__ */ o.jsx(b.path, { style: {
459
+ stroke: j[1],
460
460
  fill: "none",
461
- strokeWidth: Yt
461
+ strokeWidth: Xt
462
462
  }, exit: {
463
463
  opacity: 0,
464
464
  transition: {
465
- duration: o.duration
465
+ duration: n.duration
466
466
  }
467
467
  }, variants: {
468
468
  initial: {
469
469
  pathLength: 0,
470
- d: zt(s) || "",
470
+ d: Jt(s) || "",
471
471
  opacity: 1
472
472
  },
473
473
  whileInView: {
474
474
  pathLength: 1,
475
- d: zt(s) || "",
475
+ d: Jt(s) || "",
476
476
  opacity: 1,
477
477
  transition: {
478
- duration: o.duration
478
+ duration: n.duration
479
479
  }
480
480
  }
481
481
  }, initial: "initial", animate: c ? "whileInView" : "initial" })
482
482
  ] }) : null,
483
- /* @__PURE__ */ n.jsx(O.path, { style: de, exit: ge, variants: {
483
+ /* @__PURE__ */ o.jsx(b.path, { style: Rt, exit: ge, variants: {
484
484
  initial: {
485
485
  pathLength: 0,
486
- d: Bt(s) || "",
486
+ d: qt(s) || "",
487
487
  opacity: 1
488
488
  },
489
489
  whileInView: {
490
490
  pathLength: 1,
491
- d: Bt(s) || "",
491
+ d: qt(s) || "",
492
492
  opacity: 1,
493
493
  transition: {
494
- duration: o.duration
494
+ duration: n.duration
495
495
  }
496
496
  }
497
497
  }, initial: "initial", animate: c ? "whileInView" : "initial" }),
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
+ V ? /* @__PURE__ */ o.jsx("line", { y1: 0, y2: v, x1: a(V.date), x2: a(V.date), className: be("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100", g?.mouseOverLine), style: d?.mouseOverLine }) : null,
499
499
  ve,
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
+ ie ? /* @__PURE__ */ o.jsx(o.Fragment, { children: ie.map((e, y) => /* @__PURE__ */ o.jsx(Ue, { text: e.text, color: e.color, y: r(e.value), x1: 0 - $, x2: m + w.right, classNames: e.classNames, styles: e.styles, animate: n, isInView: c }, y)) }) : null,
501
501
  we,
502
502
  Me,
503
503
  je,
@@ -525,7 +525,7 @@ function ji(i) {
525
525
  return i !== 0;
526
526
  }
527
527
  function Ci(i) {
528
- return !F(i.date) && !F(i.y);
528
+ return !P(i.date) && !P(i.y);
529
529
  }
530
530
  function Ai(i) {
531
531
  return i.date;
@@ -546,129 +546,136 @@ function Di(i) {
546
546
  return Math.min(i.y, i.yMax, i.yMin);
547
547
  }
548
548
  function ki(i) {
549
- return !F(i.y);
549
+ return !P(i.y);
550
550
  }
551
551
  function pn(i) {
552
- const t = Te.c(95), {
553
- data: b,
554
- graphTitle: q,
555
- suffix: Tt,
552
+ const t = Te.c(104), {
553
+ data: p,
554
+ graphTitle: Z,
555
+ suffix: Ft,
556
556
  sources: L,
557
- prefix: I,
558
- graphDescription: C,
557
+ prefix: N,
558
+ graphDescription: A,
559
559
  height: l,
560
- width: p,
561
- footNote: Wt,
562
- noOfXTicks: fe,
563
- dateFormat: Rt,
564
- showValues: S,
565
- backgroundColor: Ft,
566
- padding: mt,
567
- lineColor: J,
568
- leftMargin: Ht,
569
- rightMargin: _t,
570
- topMargin: te,
571
- bottomMargin: ut,
572
- tooltip: o,
573
- refValues: ft,
574
- highlightAreaSettings: K,
575
- relativeHeight: ee,
576
- onSeriesMouseOver: ie,
577
- graphID: ht,
578
- minValue: yt,
579
- maxValue: ne,
580
- regressionLine: he,
581
- showIntervalDots: Yt,
582
- showIntervalValues: M,
583
- intervalLineStrokeWidth: Pt,
584
- intervalLineColors: Et,
585
- intervalAreaColor: pt,
586
- intervalAreaOpacity: ye,
587
- graphDownload: oe,
588
- dataDownload: ae,
589
- animate: xt,
590
- language: x,
591
- minHeight: d,
592
- strokeWidth: N,
593
- showDots: H,
594
- annotations: dt,
595
- customHighlightAreaSettings: Y,
560
+ width: x,
561
+ footNote: Ht,
562
+ noOfXTicks: pe,
563
+ dateFormat: Yt,
564
+ showValues: $,
565
+ backgroundColor: Pt,
566
+ padding: ht,
567
+ lineColor: _,
568
+ leftMargin: Et,
569
+ rightMargin: ie,
570
+ topMargin: ne,
571
+ bottomMargin: yt,
572
+ tooltip: n,
573
+ refValues: pt,
574
+ highlightAreaSettings: tt,
575
+ relativeHeight: oe,
576
+ onSeriesMouseOver: ae,
577
+ graphID: xt,
578
+ minValue: dt,
579
+ maxValue: se,
580
+ regressionLine: xe,
581
+ showIntervalDots: Xt,
582
+ showIntervalValues: j,
583
+ intervalLineStrokeWidth: Gt,
584
+ intervalLineColors: Bt,
585
+ intervalAreaColor: gt,
586
+ intervalAreaOpacity: de,
587
+ graphDownload: re,
588
+ dataDownload: le,
589
+ animate: vt,
590
+ language: d,
591
+ minHeight: g,
592
+ strokeWidth: T,
593
+ showDots: E,
594
+ annotations: wt,
595
+ customHighlightAreaSettings: X,
596
596
  theme: c,
597
- ariaLabel: f,
598
- yAxisTitle: se,
599
- noOfYTicks: gt,
600
- minDate: Q,
601
- maxDate: Z,
597
+ ariaLabel: h,
598
+ yAxisTitle: ce,
599
+ noOfYTicks: Mt,
600
+ minDate: et,
601
+ maxDate: it,
602
602
  colorLegendTitle: V,
603
- colorLegendColors: vt,
604
- colorLegendDomain: P,
605
- curveType: re,
603
+ colorLegendColors: jt,
604
+ colorLegendDomain: G,
605
+ curveType: me,
606
606
  styles: u,
607
- classNames: h,
608
- precision: Xt,
609
- customLayers: E
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;
614
- let w;
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;
617
- let Mt;
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];
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;
607
+ classNames: f,
608
+ precision: zt,
609
+ customLayers: B
610
+ } = i, w = Ft === void 0 ? "" : Ft, nt = N === void 0 ? "" : N, ot = pe === void 0 ? 10 : pe, s = Yt === void 0 ? "yyyy" : Yt, at = $ === void 0 ? !1 : $, Ct = Pt === void 0 ? !1 : Pt, st = Et === void 0 ? 30 : Et, fe = ie === void 0 ? 30 : ie, m = ne === void 0 ? 20 : ne, v = yt === void 0 ? 25 : yt;
611
+ let Ut;
612
+ t[0] !== pt ? (Ut = pt === void 0 ? [] : pt, t[0] = pt, t[1] = Ut) : Ut = t[1];
613
+ const ue = Ut;
614
+ let M;
615
+ t[2] !== tt ? (M = tt === void 0 ? [] : tt, t[2] = tt, t[3] = M) : M = t[3];
616
+ const z = M, a = xe === void 0 ? !1 : xe, rt = Xt === void 0 ? !1 : Xt, r = j === void 0 ? !1 : j, qt = Gt === void 0 ? 0 : Gt;
617
+ let At;
618
+ t[4] !== Bt ? (At = Bt === void 0 ? [Ve.light.grays["gray-500"], Ve.light.grays["gray-500"]] : Bt, t[4] = Bt, t[5] = At) : At = t[5];
619
+ const Jt = At, Kt = gt === void 0 ? Ve.primaryColors["blue-100"] : gt, Qt = de === void 0 ? 0.4 : de, Zt = re === void 0 ? !1 : re, _t = le === void 0 ? !1 : le, Ot = vt === void 0 ? !1 : vt, O = d === void 0 ? "en" : d, bt = g === void 0 ? 0 : g, Lt = T === void 0 ? 2 : T, lt = E === void 0 ? !0 : E;
620
+ let ct;
621
+ t[6] !== wt ? (ct = wt === void 0 ? [] : wt, t[6] = wt, t[7] = ct) : ct = t[7];
622
+ const Vt = ct;
623
+ let U;
624
+ t[8] !== X ? (U = X === void 0 ? [] : X, t[8] = X, t[9] = U) : U = t[9];
625
+ const Dt = U, kt = c === void 0 ? "light" : c, It = Mt === void 0 ? 5 : Mt, St = me === void 0 ? "curve" : me, Nt = zt === void 0 ? 2 : zt;
626
626
  let D;
627
- t[10] !== E ? (D = E === void 0 ? [] : E, t[10] = E, t[11] = D) : D = t[11];
628
- const It = D, [B, me] = Zt(0), [k, ue] = Zt(0), St = De(null), z = De(null);
629
- let st, rt;
630
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (st = () => {
631
- const Nt = new ResizeObserver(($t) => {
632
- me($t[0].target.clientWidth || 620), ue($t[0].target.clientHeight || 480);
627
+ t[10] !== B ? (D = B === void 0 ? [] : B, t[10] = B, t[11] = D) : D = t[11];
628
+ const $t = D, [q, he] = ee(0), [k, ye] = ee(0), Tt = De(null), J = De(null);
629
+ let mt, ft;
630
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (mt = () => {
631
+ const Wt = new ResizeObserver((Rt) => {
632
+ he(Rt[0].target.clientWidth || 620), ye(Rt[0].target.clientHeight || 480);
633
633
  });
634
- return St.current && Nt.observe(St.current), () => Nt.disconnect();
635
- }, rt = [], t[12] = st, t[13] = rt) : (st = t[12], rt = t[13]), $e(st, rt);
636
- const $ = h?.graphContainer, lt = u?.graphContainer;
637
- let T;
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: {
634
+ return Tt.current && Wt.observe(Tt.current), () => Wt.disconnect();
635
+ }, ft = [], t[12] = mt, t[13] = ft) : (mt = t[12], ft = t[13]), $e(mt, ft);
636
+ const W = f?.graphContainer, ut = u?.graphContainer;
637
+ let R;
638
+ t[14] !== f?.description || t[15] !== f?.title || t[16] !== p || t[17] !== _t || t[18] !== A || t[19] !== Zt || t[20] !== Z || t[21] !== u?.description || t[22] !== u?.title || t[23] !== x ? (R = Z || A || Zt || _t ? /* @__PURE__ */ o.jsx(mi, { styles: {
639
639
  title: u?.title,
640
640
  description: u?.description
641
641
  }, classNames: {
642
- title: h?.title,
643
- description: h?.description
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];
645
- let W;
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: [
647
- vt && P ? /* @__PURE__ */ n.jsx(ui, { width: p, colorLegendTitle: V, colors: vt, colorDomain: P, showNAColor: !1, className: h?.colorLegend }) : null,
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 ? {
649
- duration: 0.5,
650
- once: !0,
651
- amount: 0.5
652
- } : jt || {
653
- duration: 0,
654
- once: !0,
655
- amount: 0
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];
658
- let R;
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: {
642
+ title: f?.title,
643
+ description: f?.description
644
+ }, graphTitle: Z, graphDescription: A, width: x, graphDownload: Zt ? J : void 0, dataDownload: _t ? p.map(Ti).filter($i).length > 0 ? p.map(Ni).filter(Si) : p.filter(Ii) : null }) : null, t[14] = f?.description, t[15] = f?.title, t[16] = p, t[17] = _t, t[18] = A, t[19] = Zt, t[20] = Z, t[21] = u?.description, t[22] = u?.title, t[23] = x, t[24] = R) : R = t[24];
645
+ let F;
646
+ t[25] !== f?.colorLegend || t[26] !== jt || t[27] !== G || t[28] !== V || t[29] !== p.length || t[30] !== x ? (F = jt && G && p.length > 0 ? /* @__PURE__ */ o.jsx(fi, { width: x, colorLegendTitle: V, colors: jt, colorDomain: G, showNAColor: !1, className: f?.colorLegend }) : null, t[25] = f?.colorLegend, t[26] = jt, t[27] = G, t[28] = V, t[29] = p.length, t[30] = x, t[31] = F) : F = t[31];
647
+ let H;
648
+ t[32] !== p.length ? (H = p.length === 0 && /* @__PURE__ */ o.jsx(ui, {}), t[32] = p.length, t[33] = H) : H = t[33];
649
+ let Y;
650
+ t[34] !== Ot || t[35] !== Vt || t[36] !== v || t[37] !== f || t[38] !== St || t[39] !== Dt || t[40] !== $t || t[41] !== p || t[42] !== s || t[43] !== z || t[44] !== Kt || t[45] !== Qt || t[46] !== Jt || t[47] !== qt || t[48] !== O || t[49] !== st || t[50] !== _ || t[51] !== it || t[52] !== se || t[53] !== et || t[54] !== dt || t[55] !== ot || t[56] !== It || t[57] !== ae || t[58] !== Nt || t[59] !== nt || t[60] !== ue || t[61] !== a || t[62] !== fe || t[63] !== lt || t[64] !== rt || t[65] !== r || t[66] !== at || t[67] !== Lt || t[68] !== u || t[69] !== w || t[70] !== k || t[71] !== q || t[72] !== n || t[73] !== m || t[74] !== ce ? (Y = q && k && p.length > 0 ? /* @__PURE__ */ o.jsx(xi, { data: p, lineColor: _ || Ve.primaryColors["blue-600"], width: q, height: k, suffix: w, prefix: nt, dateFormat: s, showValues: at, noOfXTicks: ot ?? pi(q), leftMargin: st, rightMargin: fe, topMargin: m, bottomMargin: v, tooltip: n, highlightAreaSettings: z, onSeriesMouseOver: ae, refValues: ue, minValue: dt, maxValue: se, animate: Ot === !0 ? {
651
+ duration: 0.5,
652
+ once: !0,
653
+ amount: 0.5
654
+ } : Ot || {
655
+ duration: 0,
656
+ once: !0,
657
+ amount: 0
658
+ }, rtl: O === "he" || O === "ar", strokeWidth: Lt, showDots: lt, annotations: Vt, customHighlightAreaSettings: Dt, regressionLine: a, showIntervalDots: rt, showIntervalValues: r, intervalLineStrokeWidth: qt, intervalLineColors: Jt, intervalAreaColor: Kt, intervalAreaOpacity: Qt, yAxisTitle: ce, noOfYTicks: It, minDate: et, maxDate: it, curveType: St, styles: u, classNames: f, precision: Nt, customLayers: $t }) : null, t[34] = Ot, t[35] = Vt, t[36] = v, t[37] = f, t[38] = St, t[39] = Dt, t[40] = $t, t[41] = p, t[42] = s, t[43] = z, t[44] = Kt, t[45] = Qt, t[46] = Jt, t[47] = qt, t[48] = O, t[49] = st, t[50] = _, t[51] = it, t[52] = se, t[53] = et, t[54] = dt, t[55] = ot, t[56] = It, t[57] = ae, t[58] = Nt, t[59] = nt, t[60] = ue, t[61] = a, t[62] = fe, t[63] = lt, t[64] = rt, t[65] = r, t[66] = at, t[67] = Lt, t[68] = u, t[69] = w, t[70] = k, t[71] = q, t[72] = n, t[73] = m, t[74] = ce, t[75] = Y) : Y = t[75];
659
+ let I;
660
+ t[76] !== H || t[77] !== Y ? (I = /* @__PURE__ */ o.jsxs(hi, { ref: Tt, children: [
661
+ H,
662
+ Y
663
+ ] }), t[76] = H, t[77] = Y, t[78] = I) : I = t[78];
664
+ let S;
665
+ t[79] !== f?.footnote || t[80] !== f?.source || t[81] !== Ht || t[82] !== L || t[83] !== u?.footnote || t[84] !== u?.source || t[85] !== x ? (S = L || Ht ? /* @__PURE__ */ o.jsx(ci, { styles: {
660
666
  footnote: u?.footnote,
661
667
  source: u?.source
662
668
  }, classNames: {
663
- footnote: h?.footnote,
664
- source: h?.source
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];
666
- let ct;
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: [
668
- T,
669
- W,
670
- R
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;
669
+ footnote: f?.footnote,
670
+ source: f?.source
671
+ }, sources: L, footNote: Ht, width: x }) : null, t[79] = f?.footnote, t[80] = f?.source, t[81] = Ht, t[82] = L, t[83] = u?.footnote, t[84] = u?.source, t[85] = x, t[86] = S) : S = t[86];
672
+ let K;
673
+ return t[87] !== h || t[88] !== Ct || t[89] !== xt || t[90] !== l || t[91] !== O || t[92] !== bt || t[93] !== ht || t[94] !== oe || t[95] !== W || t[96] !== ut || t[97] !== R || t[98] !== F || t[99] !== I || t[100] !== S || t[101] !== kt || t[102] !== x ? (K = /* @__PURE__ */ o.jsxs(yi, { className: W, style: ut, id: xt, ref: J, "aria-label": h, backgroundColor: Ct, theme: kt, language: O, minHeight: bt, width: x, height: l, relativeHeight: oe, padding: ht, children: [
674
+ R,
675
+ F,
676
+ I,
677
+ S
678
+ ] }), t[87] = h, t[88] = Ct, t[89] = xt, t[90] = l, t[91] = O, t[92] = bt, t[93] = ht, t[94] = oe, t[95] = W, t[96] = ut, t[97] = R, t[98] = F, t[99] = I, t[100] = S, t[101] = kt, t[102] = x, t[103] = K) : K = t[103], K;
672
679
  }
673
680
  function Ii(i) {
674
681
  return i !== void 0;