@undp/data-viz 2.1.3 → 2.1.4

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 (118) 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/BulletChart.cjs +1 -1
  15. package/dist/BulletChart.cjs.map +1 -1
  16. package/dist/BulletChart.js +298 -287
  17. package/dist/BulletChart.js.map +1 -1
  18. package/dist/ButterflyChart.cjs +1 -1
  19. package/dist/ButterflyChart.cjs.map +1 -1
  20. package/dist/ButterflyChart.js +224 -217
  21. package/dist/ButterflyChart.js.map +1 -1
  22. package/dist/CirclePackingGraph.cjs +1 -1
  23. package/dist/CirclePackingGraph.js +2 -2
  24. package/dist/DifferenceLineChart.cjs +1 -1
  25. package/dist/DifferenceLineChart.cjs.map +1 -1
  26. package/dist/DifferenceLineChart.js +404 -397
  27. package/dist/DifferenceLineChart.js.map +1 -1
  28. package/dist/DonutChart.cjs +1 -1
  29. package/dist/DonutChart.cjs.map +1 -1
  30. package/dist/DonutChart.js +42 -39
  31. package/dist/DonutChart.js.map +1 -1
  32. package/dist/DualAxisLineChart.cjs +1 -1
  33. package/dist/DualAxisLineChart.cjs.map +1 -1
  34. package/dist/DualAxisLineChart.js +320 -313
  35. package/dist/DualAxisLineChart.js.map +1 -1
  36. package/dist/DumbbellChart.cjs +1 -1
  37. package/dist/DumbbellChart.cjs.map +1 -1
  38. package/dist/DumbbellChart.js +298 -291
  39. package/dist/DumbbellChart.js.map +1 -1
  40. package/dist/{EmptyState-BZo1BbAn.js → EmptyState-C7ZXkZWd.js} +4 -4
  41. package/dist/EmptyState-C7ZXkZWd.js.map +1 -0
  42. package/dist/EmptyState-gLDRXBHm.cjs +2 -0
  43. package/dist/EmptyState-gLDRXBHm.cjs.map +1 -0
  44. package/dist/GraphEl-C2Fgg8PA.cjs +2 -0
  45. package/dist/GraphEl-C2Fgg8PA.cjs.map +1 -0
  46. package/dist/{GraphEl-CRrAlbcr.js → GraphEl-oZwZiTHI.js} +3 -2
  47. package/dist/GraphEl-oZwZiTHI.js.map +1 -0
  48. package/dist/GriddedGraphs.cjs +1 -1
  49. package/dist/GriddedGraphs.js +1 -1
  50. package/dist/HeatMap.cjs +1 -1
  51. package/dist/HeatMap.cjs.map +1 -1
  52. package/dist/HeatMap.js +179 -172
  53. package/dist/HeatMap.js.map +1 -1
  54. package/dist/Histogram.cjs +1 -1
  55. package/dist/Histogram.js +1 -1
  56. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  57. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  58. package/dist/LineChartWithConfidenceInterval.js +368 -361
  59. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  60. package/dist/MultiLineAltChart.cjs +1 -1
  61. package/dist/MultiLineAltChart.cjs.map +1 -1
  62. package/dist/MultiLineAltChart.js +327 -320
  63. package/dist/MultiLineAltChart.js.map +1 -1
  64. package/dist/MultiLineChart.cjs +1 -1
  65. package/dist/MultiLineChart.cjs.map +1 -1
  66. package/dist/MultiLineChart.js +374 -367
  67. package/dist/MultiLineChart.js.map +1 -1
  68. package/dist/ParetoChart.cjs +1 -1
  69. package/dist/ParetoChart.cjs.map +1 -1
  70. package/dist/ParetoChart.js +385 -378
  71. package/dist/ParetoChart.js.map +1 -1
  72. package/dist/RadarChart.cjs +1 -1
  73. package/dist/RadarChart.cjs.map +1 -1
  74. package/dist/RadarChart.js +34 -33
  75. package/dist/RadarChart.js.map +1 -1
  76. package/dist/SankeyChart.cjs +1 -1
  77. package/dist/SankeyChart.cjs.map +1 -1
  78. package/dist/SankeyChart.js +176 -169
  79. package/dist/SankeyChart.js.map +1 -1
  80. package/dist/ScatterPlot.cjs +1 -1
  81. package/dist/ScatterPlot.cjs.map +1 -1
  82. package/dist/ScatterPlot.js +366 -359
  83. package/dist/ScatterPlot.js.map +1 -1
  84. package/dist/SimpleLineChart.cjs +1 -1
  85. package/dist/SimpleLineChart.cjs.map +1 -1
  86. package/dist/SimpleLineChart.js +285 -278
  87. package/dist/SimpleLineChart.js.map +1 -1
  88. package/dist/SingleGraphDashboard.cjs +1 -1
  89. package/dist/SingleGraphDashboard.js +1 -1
  90. package/dist/SlopeChart.cjs +1 -1
  91. package/dist/SlopeChart.cjs.map +1 -1
  92. package/dist/SlopeChart.js +243 -236
  93. package/dist/SlopeChart.js.map +1 -1
  94. package/dist/StripChart.cjs +1 -1
  95. package/dist/StripChart.cjs.map +1 -1
  96. package/dist/StripChart.js +293 -286
  97. package/dist/StripChart.js.map +1 -1
  98. package/dist/TreeMapGraph.cjs +1 -1
  99. package/dist/TreeMapGraph.cjs.map +1 -1
  100. package/dist/TreeMapGraph.js +222 -215
  101. package/dist/TreeMapGraph.js.map +1 -1
  102. package/dist/index-Blvf-Q3U.cjs +2 -0
  103. package/dist/{index-CF5hnGvG.cjs.map → index-Blvf-Q3U.cjs.map} +1 -1
  104. package/dist/index-D1RrKgK6.js +337 -0
  105. package/dist/index-D1RrKgK6.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.d.ts +2 -0
  108. package/dist/index.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/EmptyState-BZo1BbAn.js.map +0 -1
  111. package/dist/EmptyState-sAEZ_5rU.cjs +0 -2
  112. package/dist/EmptyState-sAEZ_5rU.cjs.map +0 -1
  113. package/dist/GraphEl-BLMih7RN.cjs +0 -2
  114. package/dist/GraphEl-BLMih7RN.cjs.map +0 -1
  115. package/dist/GraphEl-CRrAlbcr.js.map +0 -1
  116. package/dist/index-CF5hnGvG.cjs +0 -2
  117. package/dist/index-DPGq3eIL.js +0 -330
  118. package/dist/index-DPGq3eIL.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { c as Ye, m as Se, j as s } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useRef as De, useState as Et, useEffect as ke } from "react";
1
+ import { c as Ie, m as ke, j as s } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useRef as je, useState as Bt, useEffect as Ne } from "react";
3
3
  import { p as D, f as Pe } from "./parse-DlCRUFh_.js";
4
- import { o as He } from "./index-BZQYSqar.js";
5
- import { n as We } from "./numberFormattingFunction-14YCbkN2.js";
4
+ import { o as We } from "./index-BZQYSqar.js";
5
+ import { n as Ye } from "./numberFormattingFunction-14YCbkN2.js";
6
6
  import { T as Fe } from "./Tooltip-Dj5eVppQ.js";
7
7
  import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { C as Be, g as ze, A as Ue } from "./customArea-BUhPiPT6.js";
@@ -12,9 +12,9 @@ import { X as Ke } from "./XTicksAndGridLines-CObVFSm4.js";
12
12
  import { a as Qe } from "./ReferenceLine-2XCwHXQ4.js";
13
13
  import { Y as Ze } from "./YTicksAndGridLines-Blepl7XF.js";
14
14
  import { H as _e } from "./index-SKgJALZg.js";
15
- import { Colors as P } from "./Colors.js";
16
- import { u as je } from "./uniqBy-BHy4I8PK.js";
17
- import { c as Ne, a as to } from "./init-BhZylTFx.js";
15
+ import { Colors as z } from "./Colors.js";
16
+ import { u as Le } from "./uniqBy-BHy4I8PK.js";
17
+ import { c as Ve, a as to } from "./init-BhZylTFx.js";
18
18
  import { t as eo } from "./time-BUL-dwnK.js";
19
19
  import { a as oo } from "./linear-BqltdMeF.js";
20
20
  import { D as io } from "./delaunay-C1uAf38t.js";
@@ -23,290 +23,290 @@ import { c as so, s as ao, a as lo, m as co } from "./step-BrDul-H4.js";
23
23
  import { s as fo } from "./select-DKy99ogv.js";
24
24
  import { p as mo } from "./pointer-CWRWOsrb.js";
25
25
  import { u as uo } from "./use-in-view-Cxa7y1TH.js";
26
- import { m as Xt } from "./proxy-BxkFHwUw.js";
26
+ import { m as Ft } from "./proxy-BxkFHwUw.js";
27
27
  import { GraphFooter as po } from "./GraphFooter.js";
28
28
  import { GraphHeader as ho } from "./GraphHeader.js";
29
- import { E as go } from "./EmptyState-BZo1BbAn.js";
29
+ import { E as go } from "./EmptyState-C7ZXkZWd.js";
30
30
  import { ColorLegendWithMouseOver as xo } from "./ColorLegendWithMouseOver.js";
31
31
  import { a as yo, G as vo } from "./GraphContainer-CRqzdKu2.js";
32
32
  import { g as wo } from "./getNoOfTicks-CpmRjcRF.js";
33
33
  function bo(e, t) {
34
- return Array.from(t, (r) => e[r]);
34
+ return Array.from(t, (n) => e[n]);
35
35
  }
36
36
  function Oo(e, ...t) {
37
37
  if (typeof e[Symbol.iterator] != "function") throw new TypeError("values is not iterable");
38
38
  e = Array.from(e);
39
- let [r] = t;
40
- if (r && r.length !== 2 || t.length > 1) {
41
- const w = Uint32Array.from(e, (j, f) => f);
42
- return t.length > 1 ? (t = t.map((j) => e.map(j)), w.sort((j, f) => {
43
- for (const n of t) {
44
- const yt = Ve(n[j], n[f]);
45
- if (yt) return yt;
39
+ let [n] = t;
40
+ if (n && n.length !== 2 || t.length > 1) {
41
+ const w = Uint32Array.from(e, (j, c) => c);
42
+ return t.length > 1 ? (t = t.map((j) => e.map(j)), w.sort((j, c) => {
43
+ for (const r of t) {
44
+ const bt = He(r[j], r[c]);
45
+ if (bt) return bt;
46
46
  }
47
- })) : (r = e.map(r), w.sort((j, f) => Ve(r[j], r[f]))), bo(e, w);
47
+ })) : (n = e.map(n), w.sort((j, c) => He(n[j], n[c]))), bo(e, w);
48
48
  }
49
- return e.sort(Co(r));
49
+ return e.sort(Co(n));
50
50
  }
51
- function Co(e = Ne) {
52
- if (e === Ne) return Ve;
51
+ function Co(e = Ve) {
52
+ if (e === Ve) return He;
53
53
  if (typeof e != "function") throw new TypeError("compare is not a function");
54
- return (t, r) => {
55
- const w = e(t, r);
56
- return w || w === 0 ? w : (e(r, r) === 0) - (e(t, t) === 0);
54
+ return (t, n) => {
55
+ const w = e(t, n);
56
+ return w || w === 0 ? w : (e(n, n) === 0) - (e(t, t) === 0);
57
57
  };
58
58
  }
59
- function Ve(e, t) {
59
+ function He(e, t) {
60
60
  return (e == null || !(e >= e)) - (t == null || !(t >= t)) || (e < t ? -1 : e > t ? 1 : 0);
61
61
  }
62
62
  function Ao(e) {
63
- const t = Ye.c(128), {
64
- data: r,
63
+ const t = Ie.c(128), {
64
+ data: n,
65
65
  width: w,
66
66
  height: j,
67
- lineColors: f,
68
- dateFormat: n,
69
- noOfXTicks: yt,
70
- rightMargin: et,
71
- topMargin: Gt,
72
- bottomMargin: ot,
67
+ lineColors: c,
68
+ dateFormat: r,
69
+ noOfXTicks: bt,
70
+ rightMargin: rt,
71
+ topMargin: zt,
72
+ bottomMargin: st,
73
73
  suffix: I,
74
74
  prefix: x,
75
75
  leftMargin: C,
76
- tooltip: vt,
77
- onSeriesMouseOver: it,
78
- refValues: nt,
79
- highlightAreaSettings: Pt,
80
- minValue: F,
81
- maxValue: wt,
76
+ tooltip: Ot,
77
+ onSeriesMouseOver: at,
78
+ refValues: lt,
79
+ highlightAreaSettings: Ut,
80
+ minValue: U,
81
+ maxValue: Ct,
82
82
  highlightedLines: R,
83
83
  animate: a,
84
- rtl: B,
85
- strokeWidth: N,
86
- showDots: ne,
87
- annotations: bt,
88
- customHighlightAreaSettings: Ft,
89
- yAxisTitle: z,
90
- noOfYTicks: Bt,
91
- minDate: zt,
92
- maxDate: Ut,
93
- curveType: rt,
84
+ rtl: q,
85
+ strokeWidth: V,
86
+ showDots: se,
87
+ annotations: At,
88
+ customHighlightAreaSettings: qt,
89
+ yAxisTitle: J,
90
+ noOfYTicks: Jt,
91
+ minDate: Kt,
92
+ maxDate: Qt,
93
+ curveType: ct,
94
94
  styles: b,
95
- colorDomain: $,
96
- selectedColor: Ot,
95
+ colorDomain: T,
96
+ selectedColor: Dt,
97
97
  classNames: A,
98
- showLabels: he,
99
- dimmedOpacity: T,
100
- precision: U,
101
- naLabel: ge,
102
- customLayers: q
103
- } = e, Ct = De(null);
104
- let J;
105
- t[0] !== a.amount || t[1] !== a.once ? (J = {
98
+ showLabels: de,
99
+ dimmedOpacity: S,
100
+ precision: K,
101
+ naLabel: xe,
102
+ customLayers: Q
103
+ } = e, jt = je(null);
104
+ let Z;
105
+ t[0] !== a.amount || t[1] !== a.once ? (Z = {
106
106
  once: a.once,
107
107
  amount: a.amount
108
- }, t[0] = a.amount, t[1] = a.once, t[2] = J) : J = t[2];
109
- const u = uo(Ct, J), [S, re] = Et(!1);
110
- let At, st;
111
- t[3] !== a.duration || t[4] !== S || t[5] !== u ? (At = () => {
112
- if (u && !S) {
108
+ }, t[0] = a.amount, t[1] = a.once, t[2] = Z) : Z = t[2];
109
+ const u = uo(jt, Z), [k, ae] = Bt(!1);
110
+ let Lt, ft;
111
+ t[3] !== a.duration || t[4] !== k || t[5] !== u ? (Lt = () => {
112
+ if (u && !k) {
113
113
  const o = setTimeout(() => {
114
- re(!0);
114
+ ae(!0);
115
115
  }, (a.duration + 0.5) * 1e3);
116
116
  return () => clearTimeout(o);
117
117
  }
118
- }, st = [u, S, a.duration], t[3] = a.duration, t[4] = S, t[5] = u, t[6] = At, t[7] = st) : (At = t[6], st = t[7]), ke(At, st);
119
- const se = rt === "linear" ? ro : rt === "step" ? so : rt === "stepAfter" ? ao : rt === "stepBefore" ? lo : co;
120
- let Dt;
121
- t[8] !== n ? (Dt = (o) => ({
118
+ }, ft = [u, k, a.duration], t[3] = a.duration, t[4] = k, t[5] = u, t[6] = Lt, t[7] = ft) : (Lt = t[6], ft = t[7]), Ne(Lt, ft);
119
+ const le = ct === "linear" ? ro : ct === "step" ? so : ct === "stepAfter" ? ao : ct === "stepBefore" ? lo : co;
120
+ let Mt;
121
+ t[8] !== r ? (Mt = (o) => ({
122
122
  ...o,
123
- date: D(`${o.date}`, n, /* @__PURE__ */ new Date())
124
- }), t[8] = n, t[9] = Dt) : Dt = t[9];
125
- const l = He(r.map(Dt), ["date"], ["asc"]).filter(ei), d = je(l, "label", !0);
126
- let jt;
127
- t[10] !== n ? (jt = (o) => D(`${o}`, n, /* @__PURE__ */ new Date()), t[10] = n, t[11] = jt) : jt = t[11];
128
- const qt = Oo(je(r, "date", !0).map(jt), ti), [p, at] = Et(void 0), [lt, K] = Et(void 0), [ct, Q] = Et(void 0), Lt = z ? C + 30 : C;
129
- let ft;
130
- t[12] !== ot || t[13] !== et || t[14] !== Lt || t[15] !== Gt ? (ft = {
131
- top: Gt,
132
- bottom: ot,
133
- left: Lt,
134
- right: et
135
- }, t[12] = ot, t[13] = et, t[14] = Lt, t[15] = Gt, t[16] = ft) : ft = t[16];
136
- const g = ft, ae = De(null), le = d.map((o) => He(l.filter((i) => i.label == o), ["date"], ["asc"]));
137
- let mt;
138
- if (t[17] !== n || t[18] !== Pt) {
123
+ date: D(`${o.date}`, r, /* @__PURE__ */ new Date())
124
+ }), t[8] = r, t[9] = Mt) : Mt = t[9];
125
+ const l = We(n.map(Mt), ["date"], ["asc"]).filter(ei), g = Le(l, "label", !0);
126
+ let $t;
127
+ t[10] !== r ? ($t = (o) => D(`${o}`, r, /* @__PURE__ */ new Date()), t[10] = r, t[11] = $t) : $t = t[11];
128
+ const Zt = Oo(Le(n, "date", !0).map($t), ti), [p, mt] = Bt(void 0), [ut, _] = Bt(void 0), [pt, tt] = Bt(void 0), Tt = J ? C + 30 : C;
129
+ let ht;
130
+ t[12] !== st || t[13] !== rt || t[14] !== Tt || t[15] !== zt ? (ht = {
131
+ top: zt,
132
+ bottom: st,
133
+ left: Tt,
134
+ right: rt
135
+ }, t[12] = st, t[13] = rt, t[14] = Tt, t[15] = zt, t[16] = ht) : ht = t[16];
136
+ const d = ht, ce = je(null), fe = g.map((o) => We(l.filter((i) => i.label == o), ["date"], ["asc"]));
137
+ let gt;
138
+ if (t[17] !== r || t[18] !== Ut) {
139
139
  let o;
140
- t[20] !== n ? (o = (i) => ({
140
+ t[20] !== r ? (o = (i) => ({
141
141
  ...i,
142
- coordinates: [i.coordinates[0] === null ? null : D(`${i.coordinates[0]}`, n, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : D(`${i.coordinates[1]}`, n, /* @__PURE__ */ new Date())]
143
- }), t[20] = n, t[21] = o) : o = t[21], mt = Pt.map(o), t[17] = n, t[18] = Pt, t[19] = mt;
142
+ coordinates: [i.coordinates[0] === null ? null : D(`${i.coordinates[0]}`, r, /* @__PURE__ */ new Date()), i.coordinates[1] === null ? null : D(`${i.coordinates[1]}`, r, /* @__PURE__ */ new Date())]
143
+ }), t[20] = r, t[21] = o) : o = t[21], gt = Ut.map(o), t[17] = r, t[18] = Ut, t[19] = gt;
144
144
  } else
145
- mt = t[19];
146
- const Mt = mt;
147
- let ut;
148
- if (t[22] !== Ft || t[23] !== n) {
145
+ gt = t[19];
146
+ const St = gt;
147
+ let dt;
148
+ if (t[22] !== qt || t[23] !== r) {
149
149
  let o;
150
- t[25] !== n ? (o = (i) => ({
150
+ t[25] !== r ? (o = (i) => ({
151
151
  ...i,
152
- coordinates: i.coordinates.map((y, Rt) => Rt % 2 === 0 ? D(`${y}`, n, /* @__PURE__ */ new Date()) : y)
153
- }), t[25] = n, t[26] = o) : o = t[26], ut = Ft.map(o), t[22] = Ft, t[23] = n, t[24] = ut;
152
+ coordinates: i.coordinates.map((y, Pt) => Pt % 2 === 0 ? D(`${y}`, r, /* @__PURE__ */ new Date()) : y)
153
+ }), t[25] = r, t[26] = o) : o = t[26], dt = qt.map(o), t[22] = qt, t[23] = r, t[24] = dt;
154
154
  } else
155
- ut = t[24];
156
- const Jt = ut, h = w - g.left - g.right, L = j - g.top - g.bottom, ce = zt ? D(`${zt}`, n, /* @__PURE__ */ new Date()) : qt[0], Kt = Ut ? D(`${Ut}`, n, /* @__PURE__ */ new Date()) : qt[qt.length - 1], O = v(F) ? Math.min(...l.map(_o).filter(Zo)) ? Math.min(...l.map(Qo).filter(Ko)) > 0 ? 0 : Math.min(...l.map(Jo).filter(qo)) : 0 : F, X = Math.max(...l.map(Uo).filter(zo)) ? Math.max(...l.map(Bo).filter(Fo)) : 0, c = eo().domain([ce, Kt]).range([0, h]);
157
- let Z;
158
- t[27] !== O || t[28] !== F ? (Z = v(F) ? O : F, t[27] = O, t[28] = F, t[29] = Z) : Z = t[29];
159
- let k;
160
- t[30] !== X || t[31] !== wt ? (k = v(wt) ? X > 0 ? X : 0 : wt, t[30] = X, t[31] = wt, t[32] = k) : k = t[32];
161
- const m = oo().domain([Z, k]).range([L, 0]).nice(), fe = io.from(l.filter(Po), (o) => c(o.date), (o) => m(o.y)).voronoi([0, 0, h < 0 ? 0 : h, L < 0 ? 0 : L]), $t = no().x((o) => c(o.date)).y((o) => m(o.y)).curve(se), Tt = m.ticks(Bt), Qt = c.ticks(yt);
162
- ke(() => {
155
+ dt = t[24];
156
+ const _t = dt, h = w - d.left - d.right, L = j - d.top - d.bottom, me = Kt ? D(`${Kt}`, r, /* @__PURE__ */ new Date()) : Zt[0], te = Qt ? D(`${Qt}`, r, /* @__PURE__ */ new Date()) : Zt[Zt.length - 1], O = v(U) ? Math.min(...l.map(_o).filter(Zo)) ? Math.min(...l.map(Qo).filter(Ko)) > 0 ? 0 : Math.min(...l.map(Jo).filter(qo)) : 0 : U, X = Math.max(...l.map(Uo).filter(zo)) ? Math.max(...l.map(Bo).filter(Fo)) : 0, f = eo().domain([me, te]).range([0, h]);
157
+ let et;
158
+ t[27] !== O || t[28] !== U ? (et = v(U) ? O : U, t[27] = O, t[28] = U, t[29] = et) : et = t[29];
159
+ let N;
160
+ t[30] !== X || t[31] !== Ct ? (N = v(Ct) ? X > 0 ? X : 0 : Ct, t[30] = X, t[31] = Ct, t[32] = N) : N = t[32];
161
+ const m = oo().domain([et, N]).range([L, 0]).nice(), ue = io.from(l.filter(Po), (o) => f(o.date), (o) => m(o.y)).voronoi([0, 0, h < 0 ? 0 : h, L < 0 ? 0 : L]), kt = no().x((o) => f(o.date)).y((o) => m(o.y)).curve(le), Nt = m.ticks(Jt), ee = f.ticks(bt);
162
+ Ne(() => {
163
163
  const o = (y) => {
164
- const Rt = l[to(l.map(Go), c.invert(mo(y)[0]), 0)];
165
- at(Rt || l[l.length - 1]), Q(y.clientY), K(y.clientX), it?.(Rt || l[l.length - 1]);
164
+ const Pt = l[to(l.map(Go), f.invert(mo(y)[0]), 0)];
165
+ mt(Pt || l[l.length - 1]), tt(y.clientY), _(y.clientX), at?.(Pt || l[l.length - 1]);
166
166
  }, i = () => {
167
- at(void 0), K(void 0), Q(void 0);
167
+ mt(void 0), _(void 0), tt(void 0);
168
168
  };
169
- fo(ae.current).on("mousemove", o).on("mouseout", i), it?.(void 0);
170
- }, [c, l, it]);
171
- let _;
172
- t[33] !== a || t[34] !== L || t[35] !== h || t[36] !== Mt || t[37] !== u || t[38] !== c ? (_ = /* @__PURE__ */ s.jsx(_e, { areaSettings: Mt, width: h, height: L, scale: c, animate: a, isInView: u }), t[33] = a, t[34] = L, t[35] = h, t[36] = Mt, t[37] = u, t[38] = c, t[39] = _) : _ = t[39];
173
- const St = b?.yAxis?.gridLines, V = b?.yAxis?.labels;
174
- let pt;
175
- t[40] !== St || t[41] !== V ? (pt = {
176
- gridLines: St,
177
- labels: V
178
- }, t[40] = St, t[41] = V, t[42] = pt) : pt = t[42];
179
- const kt = A?.yAxis?.gridLines, Nt = A?.yAxis?.labels;
180
- let ht;
181
- t[43] !== kt || t[44] !== Nt ? (ht = {
182
- gridLines: kt,
183
- labels: Nt
184
- }, t[43] = kt, t[44] = Nt, t[45] = ht) : ht = t[45];
185
- const gt = m(O < 0 ? 0 : O), Vt = m(O < 0 ? 0 : O), Ht = 0 - C, tt = h + g.right, me = O < 0 ? 0 : O;
169
+ fo(ce.current).on("mousemove", o).on("mouseout", i), at?.(void 0);
170
+ }, [f, l, at]);
171
+ let ot;
172
+ t[33] !== a || t[34] !== L || t[35] !== h || t[36] !== St || t[37] !== u || t[38] !== f ? (ot = /* @__PURE__ */ s.jsx(_e, { areaSettings: St, width: h, height: L, scale: f, animate: a, isInView: u }), t[33] = a, t[34] = L, t[35] = h, t[36] = St, t[37] = u, t[38] = f, t[39] = ot) : ot = t[39];
173
+ const Vt = b?.yAxis?.gridLines, M = b?.yAxis?.labels;
174
+ let xt;
175
+ t[40] !== Vt || t[41] !== M ? (xt = {
176
+ gridLines: Vt,
177
+ labels: M
178
+ }, t[40] = Vt, t[41] = M, t[42] = xt) : xt = t[42];
179
+ const Ht = A?.yAxis?.gridLines, Wt = A?.yAxis?.labels;
180
+ let yt;
181
+ t[43] !== Ht || t[44] !== Wt ? (yt = {
182
+ gridLines: Ht,
183
+ labels: Wt
184
+ }, t[43] = Ht, t[44] = Wt, t[45] = yt) : yt = t[45];
185
+ const vt = m(O < 0 ? 0 : O), Yt = m(O < 0 ? 0 : O), It = 0 - C, it = h + d.right, pe = O < 0 ? 0 : O;
186
186
  let H;
187
- t[46] !== U || t[47] !== x || t[48] !== I || t[49] !== me ? (H = We(me, "NA", U, x, I), t[46] = U, t[47] = x, t[48] = I, t[49] = me, t[50] = H) : H = t[50];
188
- const ue = 0 - C, Wt = m(O < 0 ? 0 : O), pe = X < 0 ? "1em" : -5;
187
+ t[46] !== K || t[47] !== x || t[48] !== I || t[49] !== pe ? (H = Ye(pe, "NA", K, x, I), t[46] = K, t[47] = x, t[48] = I, t[49] = pe, t[50] = H) : H = t[50];
188
+ const he = 0 - C, Rt = m(O < 0 ? 0 : O), ge = X < 0 ? "1em" : -5;
189
189
  let E;
190
- t[51] !== ue || t[52] !== Wt || t[53] !== pe ? (E = {
191
- x: ue,
192
- y: Wt,
190
+ t[51] !== he || t[52] !== Rt || t[53] !== ge ? (E = {
191
+ x: he,
192
+ y: Rt,
193
193
  dx: 0,
194
- dy: pe
195
- }, t[51] = ue, t[52] = Wt, t[53] = pe, t[54] = E) : E = t[54];
196
- const Zt = A?.xAxis?.axis, xt = A?.yAxis?.labels;
194
+ dy: ge
195
+ }, t[51] = he, t[52] = Rt, t[53] = ge, t[54] = E) : E = t[54];
196
+ const oe = A?.xAxis?.axis, wt = A?.yAxis?.labels;
197
197
  let W;
198
- t[55] !== Zt || t[56] !== xt ? (W = {
199
- axis: Zt,
200
- label: xt
201
- }, t[55] = Zt, t[56] = xt, t[57] = W) : W = t[57];
202
- const Yt = b?.xAxis?.axis, It = b?.yAxis?.labels;
203
- let M;
204
- t[58] !== Yt || t[59] !== It ? (M = {
205
- axis: Yt,
206
- label: It
207
- }, t[58] = Yt, t[59] = It, t[60] = M) : M = t[60];
198
+ t[55] !== oe || t[56] !== wt ? (W = {
199
+ axis: oe,
200
+ label: wt
201
+ }, t[55] = oe, t[56] = wt, t[57] = W) : W = t[57];
202
+ const Xt = b?.xAxis?.axis, Et = b?.yAxis?.labels;
203
+ let $;
204
+ t[58] !== Xt || t[59] !== Et ? ($ = {
205
+ axis: Xt,
206
+ label: Et
207
+ }, t[58] = Xt, t[59] = Et, t[60] = $) : $ = t[60];
208
208
  let Y;
209
- t[61] !== gt || t[62] !== Vt || t[63] !== Ht || t[64] !== tt || t[65] !== H || t[66] !== E || t[67] !== W || t[68] !== M ? (Y = /* @__PURE__ */ s.jsx(Je, { y1: gt, y2: Vt, x1: Ht, x2: tt, label: H, labelPos: E, classNames: W, styles: M }), t[61] = gt, t[62] = Vt, t[63] = Ht, t[64] = tt, t[65] = H, t[66] = E, t[67] = W, t[68] = M, t[69] = Y) : Y = t[69];
210
- const G = 0 - C - 15, dt = L / 2, _t = b?.yAxis?.title, te = A?.yAxis?.title;
211
- let xe;
212
- t[70] !== G || t[71] !== dt || t[72] !== _t || t[73] !== te || t[74] !== z ? (xe = /* @__PURE__ */ s.jsx(qe, { x: G, y: dt, style: _t, className: te, text: z, rotate90: !0 }), t[70] = G, t[71] = dt, t[72] = _t, t[73] = te, t[74] = z, t[75] = xe) : xe = t[75];
213
- let de;
214
- t[76] !== n ? (de = (o) => Pe(o, n), t[76] = n, t[77] = de) : de = t[77];
215
- const Ie = Qt.map(de), Re = Qt.map((o) => c(o)), Le = b?.xAxis?.gridLines, Me = b?.xAxis?.labels;
216
- let ye;
217
- t[78] !== Le || t[79] !== Me ? (ye = {
218
- gridLines: Le,
219
- labels: Me
220
- }, t[78] = Le, t[79] = Me, t[80] = ye) : ye = t[80];
221
- const $e = A?.xAxis?.gridLines;
222
- let ee;
223
- t[81] !== $e ? (ee = Se("opacity-0", $e), t[81] = $e, t[82] = ee) : ee = t[82];
224
- const Te = A?.xAxis?.labels;
225
- let oe;
226
- t[83] !== Te ? (oe = Se("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Te), t[83] = Te, t[84] = oe) : oe = t[84];
209
+ t[61] !== vt || t[62] !== Yt || t[63] !== It || t[64] !== it || t[65] !== H || t[66] !== E || t[67] !== W || t[68] !== $ ? (Y = /* @__PURE__ */ s.jsx(Je, { y1: vt, y2: Yt, x1: It, x2: it, label: H, labelPos: E, classNames: W, styles: $ }), t[61] = vt, t[62] = Yt, t[63] = It, t[64] = it, t[65] = H, t[66] = E, t[67] = W, t[68] = $, t[69] = Y) : Y = t[69];
210
+ const G = 0 - C - 15, P = L / 2, F = b?.yAxis?.title, B = A?.yAxis?.title;
211
+ let nt;
212
+ t[70] !== G || t[71] !== P || t[72] !== F || t[73] !== B || t[74] !== J ? (nt = /* @__PURE__ */ s.jsx(qe, { x: G, y: P, style: F, className: B, text: J, rotate90: !0 }), t[70] = G, t[71] = P, t[72] = F, t[73] = B, t[74] = J, t[75] = nt) : nt = t[75];
213
+ let Gt;
214
+ t[76] !== r ? (Gt = (o) => Pe(o, r), t[76] = r, t[77] = Gt) : Gt = t[77];
215
+ const ye = ee.map(Gt), Re = ee.map((o) => f(o)), Me = b?.xAxis?.gridLines, $e = b?.xAxis?.labels;
227
216
  let ve;
228
- t[85] !== ee || t[86] !== oe ? (ve = {
229
- gridLines: ee,
230
- labels: oe
231
- }, t[85] = ee, t[86] = oe, t[87] = ve) : ve = t[87];
217
+ t[78] !== Me || t[79] !== $e ? (ve = {
218
+ gridLines: Me,
219
+ labels: $e
220
+ }, t[78] = Me, t[79] = $e, t[80] = ve) : ve = t[80];
221
+ const Te = A?.xAxis?.gridLines;
222
+ let ie;
223
+ t[81] !== Te ? (ie = ke("opacity-0", Te), t[81] = Te, t[82] = ie) : ie = t[82];
224
+ const Se = A?.xAxis?.labels;
225
+ let ne;
226
+ t[83] !== Se ? (ne = ke("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs", Se), t[83] = Se, t[84] = ne) : ne = t[84];
232
227
  let we;
233
- t[88] !== q ? (we = q.filter(Ro).map(Io), t[88] = q, t[89] = we) : we = t[89];
234
- const Xe = l.filter(Lo).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d: fe.renderCell(l.findIndex((y) => y.label === o.label && y.date === o.date)), opacity: 0, onMouseEnter: (y) => {
235
- at(o), Q(y.clientY), K(y.clientX), it?.(o);
228
+ t[85] !== ie || t[86] !== ne ? (we = {
229
+ gridLines: ie,
230
+ labels: ne
231
+ }, t[85] = ie, t[86] = ne, t[87] = we) : we = t[87];
232
+ let be;
233
+ t[88] !== Q ? (be = Q.filter(Ro).map(Io), t[88] = Q, t[89] = be) : be = t[89];
234
+ const Xe = l.filter(Lo).map((o, i) => /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx("path", { d: ue.renderCell(l.findIndex((y) => y.label === o.label && y.date === o.date)), opacity: 0, onMouseEnter: (y) => {
235
+ mt(o), tt(y.clientY), _(y.clientX), at?.(o);
236
236
  }, onMouseMove: (y) => {
237
- at(o), Q(y.clientY), K(y.clientX);
237
+ mt(o), tt(y.clientY), _(y.clientX);
238
238
  }, onMouseLeave: () => {
239
- at(void 0), K(void 0), Q(void 0), it?.(void 0);
239
+ mt(void 0), _(void 0), tt(void 0), at?.(void 0);
240
240
  } }) }, i));
241
- let be;
242
- t[90] !== a || t[91] !== h || t[92] !== u || t[93] !== C || t[94] !== g.right || t[95] !== nt || t[96] !== m ? (be = nt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: nt.map((o, i) => /* @__PURE__ */ s.jsx(Qe, { text: o.text, color: o.color, y: m(o.value), x1: 0 - C, x2: h + g.right, classNames: o.classNames, styles: o.styles, animate: a, isInView: u }, i)) }) : null, t[90] = a, t[91] = h, t[92] = u, t[93] = C, t[94] = g.right, t[95] = nt, t[96] = m, t[97] = be) : be = t[97];
243
- let ie;
244
- if (t[98] !== a || t[99] !== bt || t[100] !== n || t[101] !== h || t[102] !== u || t[103] !== g.right || t[104] !== B || t[105] !== c || t[106] !== m) {
241
+ let Oe;
242
+ t[90] !== a || t[91] !== h || t[92] !== u || t[93] !== C || t[94] !== d.right || t[95] !== lt || t[96] !== m ? (Oe = lt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: lt.map((o, i) => /* @__PURE__ */ s.jsx(Qe, { text: o.text, color: o.color, y: m(o.value), x1: 0 - C, x2: h + d.right, classNames: o.classNames, styles: o.styles, animate: a, isInView: u }, i)) }) : null, t[90] = a, t[91] = h, t[92] = u, t[93] = C, t[94] = d.right, t[95] = lt, t[96] = m, t[97] = Oe) : Oe = t[97];
243
+ let re;
244
+ if (t[98] !== a || t[99] !== At || t[100] !== r || t[101] !== h || t[102] !== u || t[103] !== d.right || t[104] !== q || t[105] !== f || t[106] !== m) {
245
245
  let o;
246
- t[108] !== a || t[109] !== n || t[110] !== h || t[111] !== u || t[112] !== g.right || t[113] !== B || t[114] !== c || t[115] !== m ? (o = (i, y) => {
247
- const Rt = ze({
248
- x: i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
246
+ t[108] !== a || t[109] !== r || t[110] !== h || t[111] !== u || t[112] !== d.right || t[113] !== q || t[114] !== f || t[115] !== m ? (o = (i, y) => {
247
+ const Pt = ze({
248
+ x: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
249
249
  y: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8
250
250
  }, {
251
- x: i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
251
+ x: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
252
252
  y: i.yCoordinate ? m(i.yCoordinate) : 0
253
253
  }, v(i.connectorRadius) ? 3.5 : i.connectorRadius), Ee = i.showConnector ? {
254
- y1: Rt.y,
255
- x1: Rt.x,
254
+ y1: Pt.y,
255
+ x1: Pt.x,
256
256
  y2: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) : 0 + (i.yOffset || 0),
257
- x2: i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
257
+ x2: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
258
258
  cy: i.yCoordinate ? m(i.yCoordinate) : 0,
259
- cx: i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) : 0,
259
+ cx: i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) : 0,
260
260
  circleRadius: v(i.connectorRadius) ? 3.5 : i.connectorRadius,
261
261
  strokeWidth: i.showConnector === !0 ? 2 : Math.min(i.showConnector || 0, 1)
262
262
  } : void 0, Ge = {
263
263
  y: i.yCoordinate ? m(i.yCoordinate) + (i.yOffset || 0) - 8 : 0 + (i.yOffset || 0) - 8,
264
- x: B ? 0 : i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
265
- width: B ? i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : h + g.right - (i.xCoordinate ? c(D(`${i.xCoordinate}`, n, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
264
+ x: q ? 0 : i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0),
265
+ width: q ? i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0) : h + d.right - (i.xCoordinate ? f(D(`${i.xCoordinate}`, r, /* @__PURE__ */ new Date())) + (i.xOffset || 0) : 0 + (i.xOffset || 0)),
266
266
  maxWidth: i.maxWidth,
267
267
  fontWeight: i.fontWeight,
268
268
  align: i.align
269
269
  };
270
270
  return /* @__PURE__ */ s.jsx(Ue, { color: i.color, connectorsSettings: Ee, labelSettings: Ge, text: i.text, classNames: i.classNames, styles: i.styles, animate: a, isInView: u }, y);
271
- }, t[108] = a, t[109] = n, t[110] = h, t[111] = u, t[112] = g.right, t[113] = B, t[114] = c, t[115] = m, t[116] = o) : o = t[116], ie = bt.map(o), t[98] = a, t[99] = bt, t[100] = n, t[101] = h, t[102] = u, t[103] = g.right, t[104] = B, t[105] = c, t[106] = m, t[107] = ie;
271
+ }, t[108] = a, t[109] = r, t[110] = h, t[111] = u, t[112] = d.right, t[113] = q, t[114] = f, t[115] = m, t[116] = o) : o = t[116], re = At.map(o), t[98] = a, t[99] = At, t[100] = r, t[101] = h, t[102] = u, t[103] = d.right, t[104] = q, t[105] = f, t[106] = m, t[107] = re;
272
272
  } else
273
- ie = t[107];
274
- let Oe;
275
- t[117] !== ie ? (Oe = /* @__PURE__ */ s.jsx("g", { children: ie }), t[117] = ie, t[118] = Oe) : Oe = t[118];
273
+ re = t[107];
276
274
  let Ce;
277
- t[119] !== q ? (Ce = q.filter(jo).map(Do), t[119] = q, t[120] = Ce) : Ce = t[120];
275
+ t[117] !== re ? (Ce = /* @__PURE__ */ s.jsx("g", { children: re }), t[117] = re, t[118] = Ce) : Ce = t[118];
278
276
  let Ae;
279
- return t[121] !== A?.tooltip || t[122] !== lt || t[123] !== ct || t[124] !== p || t[125] !== b?.tooltip || t[126] !== vt ? (Ae = p && vt && lt && ct ? /* @__PURE__ */ s.jsx(Fe, { data: p, body: vt, xPos: lt, yPos: ct, backgroundStyle: b?.tooltip, className: A?.tooltip }) : null, t[121] = A?.tooltip, t[122] = lt, t[123] = ct, t[124] = p, t[125] = b?.tooltip, t[126] = vt, t[127] = Ae) : Ae = t[127], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
280
- /* @__PURE__ */ s.jsx(Xt.svg, { width: `${w}px`, height: `${j}px`, viewBox: `0 0 ${w} ${j}`, direction: "ltr", ref: Ct, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${g.left},${g.top})`, children: [
281
- _,
282
- /* @__PURE__ */ s.jsx(Be, { areaSettings: Jt, scaleX: c, scaleY: m, animate: a, isInView: u }),
277
+ t[119] !== Q ? (Ae = Q.filter(jo).map(Do), t[119] = Q, t[120] = Ae) : Ae = t[120];
278
+ let De;
279
+ return t[121] !== A?.tooltip || t[122] !== ut || t[123] !== pt || t[124] !== p || t[125] !== b?.tooltip || t[126] !== Ot ? (De = p && Ot && ut && pt ? /* @__PURE__ */ s.jsx(Fe, { data: p, body: Ot, xPos: ut, yPos: pt, backgroundStyle: b?.tooltip, className: A?.tooltip }) : null, t[121] = A?.tooltip, t[122] = ut, t[123] = pt, t[124] = p, t[125] = b?.tooltip, t[126] = Ot, t[127] = De) : De = t[127], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
280
+ /* @__PURE__ */ s.jsx(Ft.svg, { width: `${w}px`, height: `${j}px`, viewBox: `0 0 ${w} ${j}`, direction: "ltr", ref: jt, children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${d.left},${d.top})`, children: [
281
+ ot,
282
+ /* @__PURE__ */ s.jsx(Be, { areaSettings: _t, scaleX: f, scaleY: m, animate: a, isInView: u }),
283
283
  /* @__PURE__ */ s.jsxs("g", { children: [
284
- /* @__PURE__ */ s.jsx(Ze, { values: Tt.filter(Eo), y: Tt.filter(Xo).map((o) => m(o)), x1: 0 - C, x2: h + g.right, styles: pt, classNames: ht, suffix: I, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: U }),
284
+ /* @__PURE__ */ s.jsx(Ze, { values: Nt.filter(Eo), y: Nt.filter(Xo).map((o) => m(o)), x1: 0 - C, x2: h + d.right, styles: xt, classNames: yt, suffix: I, prefix: x, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: K }),
285
285
  Y,
286
- xe
286
+ nt
287
287
  ] }),
288
- /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(Ke, { values: Ie, x: Re, y1: 0, y2: L, styles: ye, classNames: ve, suffix: I, prefix: x, labelType: "primary", showGridLines: !0, precision: U }) }),
289
- we,
290
- /* @__PURE__ */ s.jsxs(Xt.g, { children: [
291
- le.map((o) => /* @__PURE__ */ s.jsxs(Xt.g, { exit: {
288
+ /* @__PURE__ */ s.jsx("g", { children: /* @__PURE__ */ s.jsx(Ke, { values: ye, x: Re, y1: 0, y2: L, styles: ve, classNames: we, suffix: I, prefix: x, labelType: "primary", showGridLines: !0, precision: K }) }),
289
+ be,
290
+ /* @__PURE__ */ s.jsxs(Ft.g, { children: [
291
+ fe.map((o) => /* @__PURE__ */ s.jsxs(Ft.g, { exit: {
292
292
  opacity: 0,
293
293
  transition: {
294
294
  duration: a.duration
295
295
  }
296
296
  }, variants: {
297
297
  initial: {
298
- opacity: p ? o[0].label === p.label ? 1 : T : Ot ? o[0].color && f[$.indexOf(o[0].color)] === Ot ? 1 : T : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : T : 1
298
+ opacity: p ? o[0].label === p.label ? 1 : S : Dt ? o[0].color && c[T.indexOf(o[0].color)] === Dt ? 1 : S : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : S : 1
299
299
  },
300
300
  whileInView: {
301
- opacity: p ? o[0].label === p.label ? 1 : T : Ot ? o[0].color && f[$.indexOf(o[0].color)] === Ot ? 1 : T : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : T : 1,
301
+ opacity: p ? o[0].label === p.label ? 1 : S : Dt ? o[0].color && c[T.indexOf(o[0].color)] === Dt ? 1 : S : R.length !== 0 ? R.indexOf(o[0].label) !== -1 ? 1 : S : 1,
302
302
  transition: {
303
303
  duration: a.duration
304
304
  }
305
305
  }
306
306
  }, initial: "initial", animate: u ? "whileInView" : "initial", children: [
307
- /* @__PURE__ */ s.jsx(Xt.path, { d: $t(o.filter(Yo)) || "", style: {
307
+ /* @__PURE__ */ s.jsx(Ft.path, { d: kt(o.filter(Yo)) || "", style: {
308
308
  fill: "none",
309
- strokeWidth: p ? o[0].label === p.label ? N + Math.max(2, 0.5 * N) : N : R.length !== 0 && R.indexOf(o[0].label) !== -1 ? N + Math.max(2, 0.5 * N) : N
309
+ strokeWidth: p ? o[0].label === p.label ? V + Math.max(2, 0.5 * V) : V : R.length !== 0 && R.indexOf(o[0].label) !== -1 ? V + Math.max(2, 0.5 * V) : V
310
310
  }, exit: {
311
311
  opacity: 0,
312
312
  transition: {
@@ -315,21 +315,21 @@ function Ao(e) {
315
315
  }, variants: {
316
316
  initial: {
317
317
  pathLength: 0,
318
- d: $t(o.filter(Wo)) || "",
318
+ d: kt(o.filter(Wo)) || "",
319
319
  opacity: 1,
320
- stroke: r.filter(Ho).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray
320
+ stroke: n.filter(Ho).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray
321
321
  },
322
322
  whileInView: {
323
323
  pathLength: 1,
324
- d: $t(o.filter(Vo)) || "",
324
+ d: kt(o.filter(Vo)) || "",
325
325
  opacity: 1,
326
- stroke: r.filter(No).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray,
326
+ stroke: n.filter(No).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
327
327
  transition: {
328
328
  duration: a.duration
329
329
  }
330
330
  }
331
331
  }, initial: "initial", animate: u ? "whileInView" : "initial" }),
332
- o.map((i, y) => /* @__PURE__ */ s.jsx(Xt.g, { children: v(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: ne ? /* @__PURE__ */ s.jsx(Xt.circle, { r: h / o.length < 5 ? 0 : h / o.length < 20 ? 2 : 4, exit: {
332
+ o.map((i, y) => /* @__PURE__ */ s.jsx(Ft.g, { children: v(i.y) ? null : /* @__PURE__ */ s.jsx(s.Fragment, { children: se ? /* @__PURE__ */ s.jsx(Ft.circle, { r: h / o.length < 5 ? 0 : h / o.length < 20 ? 2 : 4, exit: {
333
333
  opacity: 0,
334
334
  transition: {
335
335
  duration: a.duration
@@ -337,22 +337,22 @@ function Ao(e) {
337
337
  }, variants: {
338
338
  initial: {
339
339
  opacity: 0,
340
- fill: r.filter(ko).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray,
341
- cx: c(i.date),
340
+ fill: n.filter(ko).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
341
+ cx: f(i.date),
342
342
  cy: m(i.y)
343
343
  },
344
344
  whileInView: {
345
345
  opacity: 1,
346
- fill: r.filter(So).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray,
346
+ fill: n.filter(So).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
347
347
  transition: {
348
- duration: S ? a.duration : 0.5,
349
- delay: S ? 0 : a.duration
348
+ duration: k ? a.duration : 0.5,
349
+ delay: k ? 0 : a.duration
350
350
  },
351
- cx: c(i.date),
351
+ cx: f(i.date),
352
352
  cy: m(i.y)
353
353
  }
354
354
  }, initial: "initial", animate: u ? "whileInView" : "initial" }) : null }) }, y)),
355
- (R.indexOf(o[0].label) !== -1 || p?.label === o[0].label) && he ? /* @__PURE__ */ s.jsx(Xt.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
355
+ (R.indexOf(o[0].label) !== -1 || p?.label === o[0].label) && de ? /* @__PURE__ */ s.jsx(Ft.text, { className: "text-sm font-bold", dx: 5, dy: 4, exit: {
356
356
  opacity: 0,
357
357
  transition: {
358
358
  duration: a.duration
@@ -360,34 +360,34 @@ function Ao(e) {
360
360
  }, variants: {
361
361
  initial: {
362
362
  opacity: 0,
363
- fill: r.filter(To).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray,
364
- x: c(o[o.length - 1].date),
363
+ fill: n.filter(To).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
364
+ x: f(o[o.length - 1].date),
365
365
  y: m(o[o.length - 1].y)
366
366
  },
367
367
  whileInView: {
368
368
  opacity: 1,
369
- fill: r.filter($o).length === 0 ? f[0] : o[0].color ? f[$.indexOf(o[0].color)] : P.gray,
370
- x: c(o[o.length - 1].date),
369
+ fill: n.filter($o).length === 0 ? c[0] : o[0].color ? c[T.indexOf(o[0].color)] : z.gray,
370
+ x: f(o[o.length - 1].date),
371
371
  y: m(o[o.length - 1].y),
372
372
  transition: {
373
- duration: S ? a.duration : 0.5,
374
- delay: S ? 0 : a.duration
373
+ duration: k ? a.duration : 0.5,
374
+ delay: k ? 0 : a.duration
375
375
  }
376
376
  }
377
377
  }, initial: "initial", animate: u ? "whileInView" : "initial", children: o[0].label }) : null
378
378
  ] }, o[0].label)),
379
- p ? /* @__PURE__ */ s.jsx("text", { y: m(p.y) - 8, x: c(p.date), className: Se("graph-value text-sm font-bold", A?.graphObjectValues), style: {
380
- fill: r.filter(Mo).length === 0 ? f[0] : p.color ? f[$.indexOf(p.color)] : P.gray,
379
+ p ? /* @__PURE__ */ s.jsx("text", { y: m(p.y) - 8, x: f(p.date), className: ke("graph-value text-sm font-bold", A?.graphObjectValues), style: {
380
+ fill: n.filter(Mo).length === 0 ? c[0] : p.color ? c[T.indexOf(p.color)] : z.gray,
381
381
  textAnchor: "middle",
382
382
  ...b?.graphObjectValues || {}
383
- }, children: We(p.y, ge, U, x, I) }) : null
383
+ }, children: Ye(p.y, xe, K, x, I) }) : null
384
384
  ] }),
385
385
  Xe,
386
- be,
387
386
  Oe,
388
- Ce
387
+ Ce,
388
+ Ae
389
389
  ] }) }),
390
- Ae
390
+ De
391
391
  ] });
392
392
  }
393
393
  function Do(e) {
@@ -478,129 +478,136 @@ function _o(e) {
478
478
  return e.y;
479
479
  }
480
480
  function ti(e, t) {
481
- return Ne(e, t);
481
+ return Ve(e, t);
482
482
  }
483
483
  function ei(e) {
484
484
  return !v(e.y);
485
485
  }
486
486
  function Gi(e) {
487
- const t = Ye.c(94), {
488
- data: r,
487
+ const t = Ie.c(106), {
488
+ data: n,
489
489
  graphTitle: w,
490
490
  showNAColor: j,
491
- colors: f,
492
- colorDomain: n,
493
- suffix: yt,
494
- sources: et,
495
- prefix: Gt,
496
- graphDescription: ot,
491
+ colors: c,
492
+ colorDomain: r,
493
+ suffix: bt,
494
+ sources: rt,
495
+ prefix: zt,
496
+ graphDescription: st,
497
497
  height: I,
498
498
  width: x,
499
499
  footNote: C,
500
- noOfXTicks: vt,
501
- dateFormat: it,
502
- padding: nt,
503
- backgroundColor: Pt,
504
- leftMargin: F,
505
- rightMargin: wt,
500
+ noOfXTicks: Ot,
501
+ dateFormat: at,
502
+ padding: lt,
503
+ backgroundColor: Ut,
504
+ leftMargin: U,
505
+ rightMargin: Ct,
506
506
  topMargin: R,
507
507
  bottomMargin: a,
508
- showColorScale: B,
509
- tooltip: N,
510
- relativeHeight: ne,
511
- onSeriesMouseOver: bt,
512
- showLabels: Ft,
513
- refValues: z,
514
- highlightAreaSettings: Bt,
515
- graphID: zt,
516
- minValue: Ut,
517
- maxValue: rt,
508
+ showColorScale: q,
509
+ tooltip: V,
510
+ relativeHeight: se,
511
+ onSeriesMouseOver: At,
512
+ showLabels: qt,
513
+ refValues: J,
514
+ highlightAreaSettings: Jt,
515
+ graphID: Kt,
516
+ minValue: Qt,
517
+ maxValue: ct,
518
518
  highlightedLines: b,
519
- graphDownload: $,
520
- dataDownload: Ot,
519
+ graphDownload: T,
520
+ dataDownload: Dt,
521
521
  animate: A,
522
- language: he,
523
- colorLegendTitle: T,
524
- minHeight: U,
525
- strokeWidth: ge,
526
- showDots: q,
527
- annotations: Ct,
528
- customHighlightAreaSettings: J,
522
+ language: de,
523
+ colorLegendTitle: S,
524
+ minHeight: K,
525
+ strokeWidth: xe,
526
+ showDots: Q,
527
+ annotations: jt,
528
+ customHighlightAreaSettings: Z,
529
529
  theme: u,
530
- ariaLabel: S,
531
- yAxisTitle: re,
532
- noOfYTicks: At,
533
- minDate: st,
534
- maxDate: se,
535
- curveType: Dt,
530
+ ariaLabel: k,
531
+ yAxisTitle: ae,
532
+ noOfYTicks: Lt,
533
+ minDate: ft,
534
+ maxDate: le,
535
+ curveType: Mt,
536
536
  styles: l,
537
- classNames: d,
538
- dimmedOpacity: jt,
539
- precision: qt,
537
+ classNames: g,
538
+ dimmedOpacity: $t,
539
+ precision: Zt,
540
540
  customLayers: p,
541
- naLabel: at
542
- } = e, lt = j === void 0 ? !0 : j, K = yt === void 0 ? "" : yt, ct = Gt === void 0 ? "" : Gt, Q = vt === void 0 ? 10 : vt, Lt = it === void 0 ? "yyyy" : it, ft = Pt === void 0 ? !1 : Pt, g = F === void 0 ? 30 : F, ae = wt === void 0 ? 50 : wt, le = R === void 0 ? 20 : R, mt = a === void 0 ? 25 : a, Mt = B === void 0 ? !0 : B, ut = Ft === void 0 ? !0 : Ft;
543
- let Jt;
544
- t[0] !== z ? (Jt = z === void 0 ? [] : z, t[0] = z, t[1] = Jt) : Jt = t[1];
545
- const h = Jt;
541
+ naLabel: mt
542
+ } = e, ut = j === void 0 ? !0 : j, _ = bt === void 0 ? "" : bt, pt = zt === void 0 ? "" : zt, tt = Ot === void 0 ? 10 : Ot, Tt = at === void 0 ? "yyyy" : at, ht = Ut === void 0 ? !1 : Ut, d = U === void 0 ? 30 : U, ce = Ct === void 0 ? 50 : Ct, fe = R === void 0 ? 20 : R, gt = a === void 0 ? 25 : a, St = q === void 0 ? !0 : q, dt = qt === void 0 ? !0 : qt;
543
+ let _t;
544
+ t[0] !== J ? (_t = J === void 0 ? [] : J, t[0] = J, t[1] = _t) : _t = t[1];
545
+ const h = _t;
546
546
  let L;
547
- t[2] !== Bt ? (L = Bt === void 0 ? [] : Bt, t[2] = Bt, t[3] = L) : L = t[3];
548
- const ce = L;
549
- let Kt;
550
- t[4] !== b ? (Kt = b === void 0 ? [] : b, t[4] = b, t[5] = Kt) : Kt = t[5];
551
- const O = Kt, X = $ === void 0 ? !1 : $, c = Ot === void 0 ? !1 : Ot, Z = A === void 0 ? !1 : A, k = he === void 0 ? "en" : he, m = U === void 0 ? 0 : U, fe = ge === void 0 ? 2 : ge, $t = q === void 0 ? !0 : q;
552
- let Tt;
553
- t[6] !== Ct ? (Tt = Ct === void 0 ? [] : Ct, t[6] = Ct, t[7] = Tt) : Tt = t[7];
554
- const Qt = Tt;
555
- let _;
556
- t[8] !== J ? (_ = J === void 0 ? [] : J, t[8] = J, t[9] = _) : _ = t[9];
557
- const St = _, V = u === void 0 ? "light" : u, pt = At === void 0 ? 5 : At, kt = Dt === void 0 ? "curve" : Dt, Nt = jt === void 0 ? 0.3 : jt, ht = qt === void 0 ? 2 : qt;
558
- let gt;
559
- t[10] !== p ? (gt = p === void 0 ? [] : p, t[10] = p, t[11] = gt) : gt = t[11];
560
- const Vt = gt, Ht = at === void 0 ? "NA" : at, [tt, me] = Et(0), [H, ue] = Et(0), [Wt, pe] = Et(void 0), E = De(null), Zt = De(null);
561
- let xt, W;
562
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (xt = () => {
563
- const _t = new ResizeObserver((te) => {
564
- me(te[0].target.clientWidth || 620), ue(te[0].target.clientHeight || 480);
547
+ t[2] !== Jt ? (L = Jt === void 0 ? [] : Jt, t[2] = Jt, t[3] = L) : L = t[3];
548
+ const me = L;
549
+ let te;
550
+ t[4] !== b ? (te = b === void 0 ? [] : b, t[4] = b, t[5] = te) : te = t[5];
551
+ const O = te, X = T === void 0 ? !1 : T, f = Dt === void 0 ? !1 : Dt, et = A === void 0 ? !1 : A, N = de === void 0 ? "en" : de, m = K === void 0 ? 0 : K, ue = xe === void 0 ? 2 : xe, kt = Q === void 0 ? !0 : Q;
552
+ let Nt;
553
+ t[6] !== jt ? (Nt = jt === void 0 ? [] : jt, t[6] = jt, t[7] = Nt) : Nt = t[7];
554
+ const ee = Nt;
555
+ let ot;
556
+ t[8] !== Z ? (ot = Z === void 0 ? [] : Z, t[8] = Z, t[9] = ot) : ot = t[9];
557
+ const Vt = ot, M = u === void 0 ? "light" : u, xt = Lt === void 0 ? 5 : Lt, Ht = Mt === void 0 ? "curve" : Mt, Wt = $t === void 0 ? 0.3 : $t, yt = Zt === void 0 ? 2 : Zt;
558
+ let vt;
559
+ t[10] !== p ? (vt = p === void 0 ? [] : p, t[10] = p, t[11] = vt) : vt = t[11];
560
+ const Yt = vt, It = mt === void 0 ? "NA" : mt, [it, pe] = Bt(0), [H, he] = Bt(0), [Rt, ge] = Bt(void 0), E = je(null), oe = je(null);
561
+ let wt, W;
562
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (wt = () => {
563
+ const Gt = new ResizeObserver((ye) => {
564
+ pe(ye[0].target.clientWidth || 620), he(ye[0].target.clientHeight || 480);
565
565
  });
566
- return E.current && _t.observe(E.current), () => _t.disconnect();
567
- }, W = [], t[12] = xt, t[13] = W) : (xt = t[12], W = t[13]), ke(xt, W);
568
- const Yt = d?.graphContainer, It = l?.graphContainer;
569
- let M;
570
- t[14] !== d?.description || t[15] !== d?.title || t[16] !== r || t[17] !== c || t[18] !== ot || t[19] !== X || t[20] !== w || t[21] !== l?.description || t[22] !== l?.title || t[23] !== x ? (M = w || ot || X || c ? /* @__PURE__ */ s.jsx(ho, { styles: {
566
+ return E.current && Gt.observe(E.current), () => Gt.disconnect();
567
+ }, W = [], t[12] = wt, t[13] = W) : (wt = t[12], W = t[13]), Ne(wt, W);
568
+ const Xt = g?.graphContainer, Et = l?.graphContainer;
569
+ let $;
570
+ t[14] !== g?.description || t[15] !== g?.title || t[16] !== n || t[17] !== f || t[18] !== st || t[19] !== X || t[20] !== w || t[21] !== l?.description || t[22] !== l?.title || t[23] !== x ? ($ = w || st || X || f ? /* @__PURE__ */ s.jsx(ho, { styles: {
571
571
  title: l?.title,
572
572
  description: l?.description
573
573
  }, classNames: {
574
- title: d?.title,
575
- description: d?.description
576
- }, graphTitle: w, graphDescription: ot, width: x, graphDownload: X ? Zt : void 0, dataDownload: c ? r.map(ci).filter(li).length > 0 ? r.map(ai).filter(si) : r.filter(ri) : null }) : null, t[14] = d?.description, t[15] = d?.title, t[16] = r, t[17] = c, t[18] = ot, t[19] = X, t[20] = w, t[21] = l?.description, t[22] = l?.title, t[23] = x, t[24] = M) : M = t[24];
574
+ title: g?.title,
575
+ description: g?.description
576
+ }, graphTitle: w, graphDescription: st, width: x, graphDownload: X ? oe : void 0, dataDownload: f ? n.map(ci).filter(li).length > 0 ? n.map(ai).filter(si) : n.filter(ri) : null }) : null, t[14] = g?.description, t[15] = g?.title, t[16] = n, t[17] = f, t[18] = st, t[19] = X, t[20] = w, t[21] = l?.description, t[22] = l?.title, t[23] = x, t[24] = $) : $ = t[24];
577
577
  let Y;
578
- t[25] !== Z || t[26] !== Qt || t[27] !== mt || t[28] !== d || t[29] !== n || t[30] !== T || t[31] !== f || t[32] !== kt || t[33] !== St || t[34] !== Vt || t[35] !== r || t[36] !== Lt || t[37] !== Nt || t[38] !== ce || t[39] !== O || t[40] !== k || t[41] !== g || t[42] !== se || t[43] !== rt || t[44] !== st || t[45] !== Ut || t[46] !== Ht || t[47] !== Q || t[48] !== pt || t[49] !== bt || t[50] !== ht || t[51] !== ct || t[52] !== h || t[53] !== ae || t[54] !== Wt || t[55] !== Mt || t[56] !== $t || t[57] !== ut || t[58] !== lt || t[59] !== fe || t[60] !== l || t[61] !== K || t[62] !== H || t[63] !== tt || t[64] !== V || t[65] !== N || t[66] !== le || t[67] !== x || t[68] !== re ? (Y = r.length === 0 ? /* @__PURE__ */ s.jsx(go, {}) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
579
- Mt && r.filter(ni).length !== 0 ? /* @__PURE__ */ s.jsx(xo, { width: x, colorLegendTitle: T, colors: f || P[V].categoricalColors.colors, colorDomain: n || je(r, "color", !0), setSelectedColor: pe, showNAColor: lt, className: d?.colorLegend }) : null,
580
- /* @__PURE__ */ s.jsx(yo, { ref: E, children: tt && H ? /* @__PURE__ */ s.jsx(Ao, { data: r, lineColors: r.filter(ii).length === 0 ? f ? [f] : [P.primaryColors["blue-600"]] : f || P[V].categoricalColors.colors, width: tt, height: H, dateFormat: Lt, noOfXTicks: Q ?? wo(tt), leftMargin: g, rightMargin: ae, topMargin: le, bottomMargin: mt, tooltip: N, onSeriesMouseOver: bt, suffix: K, prefix: ct, highlightAreaSettings: ce, refValues: h, minValue: Ut, maxValue: rt, highlightedLines: O, animate: Z === !0 ? {
581
- duration: 0.5,
582
- once: !0,
583
- amount: 0.5
584
- } : Z || {
585
- duration: 0,
586
- once: !0,
587
- amount: 0
588
- }, rtl: k === "he" || k === "ar", strokeWidth: fe, showDots: $t, annotations: Qt, customHighlightAreaSettings: St, yAxisTitle: re, noOfYTicks: pt, minDate: st, maxDate: se, curveType: kt, styles: l, classNames: d, selectedColor: Wt, showLabels: ut, colorDomain: r.filter(oi).length === 0 ? [] : n || je(r, "color", !0), dimmedOpacity: Nt, precision: ht, customLayers: Vt, naLabel: Ht }) : null })
589
- ] }), t[25] = Z, t[26] = Qt, t[27] = mt, t[28] = d, t[29] = n, t[30] = T, t[31] = f, t[32] = kt, t[33] = St, t[34] = Vt, t[35] = r, t[36] = Lt, t[37] = Nt, t[38] = ce, t[39] = O, t[40] = k, t[41] = g, t[42] = se, t[43] = rt, t[44] = st, t[45] = Ut, t[46] = Ht, t[47] = Q, t[48] = pt, t[49] = bt, t[50] = ht, t[51] = ct, t[52] = h, t[53] = ae, t[54] = Wt, t[55] = Mt, t[56] = $t, t[57] = ut, t[58] = lt, t[59] = fe, t[60] = l, t[61] = K, t[62] = H, t[63] = tt, t[64] = V, t[65] = N, t[66] = le, t[67] = x, t[68] = re, t[69] = Y) : Y = t[69];
578
+ t[25] !== g?.colorLegend || t[26] !== r || t[27] !== S || t[28] !== c || t[29] !== n || t[30] !== St || t[31] !== ut || t[32] !== M || t[33] !== x ? (Y = St && n.filter(ni).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(xo, { width: x, colorLegendTitle: S, colors: c || z[M].categoricalColors.colors, colorDomain: r || Le(n, "color", !0), setSelectedColor: ge, showNAColor: ut, className: g?.colorLegend }) : null, t[25] = g?.colorLegend, t[26] = r, t[27] = S, t[28] = c, t[29] = n, t[30] = St, t[31] = ut, t[32] = M, t[33] = x, t[34] = Y) : Y = t[34];
590
579
  let G;
591
- t[70] !== d?.footnote || t[71] !== d?.source || t[72] !== C || t[73] !== et || t[74] !== l?.footnote || t[75] !== l?.source || t[76] !== x ? (G = et || C ? /* @__PURE__ */ s.jsx(po, { styles: {
580
+ t[35] !== n.length ? (G = n.length === 0 && /* @__PURE__ */ s.jsx(go, {}), t[35] = n.length, t[36] = G) : G = t[36];
581
+ let P;
582
+ t[37] !== et || t[38] !== ee || t[39] !== gt || t[40] !== g || t[41] !== r || t[42] !== c || t[43] !== Ht || t[44] !== Vt || t[45] !== Yt || t[46] !== n || t[47] !== Tt || t[48] !== Wt || t[49] !== me || t[50] !== O || t[51] !== N || t[52] !== d || t[53] !== le || t[54] !== ct || t[55] !== ft || t[56] !== Qt || t[57] !== It || t[58] !== tt || t[59] !== xt || t[60] !== At || t[61] !== yt || t[62] !== pt || t[63] !== h || t[64] !== ce || t[65] !== Rt || t[66] !== kt || t[67] !== dt || t[68] !== ue || t[69] !== l || t[70] !== _ || t[71] !== H || t[72] !== it || t[73] !== M || t[74] !== V || t[75] !== fe || t[76] !== ae ? (P = it && H && n.length > 0 ? /* @__PURE__ */ s.jsx(Ao, { data: n, lineColors: n.filter(ii).length === 0 ? c ? [c] : [z.primaryColors["blue-600"]] : c || z[M].categoricalColors.colors, width: it, height: H, dateFormat: Tt, noOfXTicks: tt ?? wo(it), leftMargin: d, rightMargin: ce, topMargin: fe, bottomMargin: gt, tooltip: V, onSeriesMouseOver: At, suffix: _, prefix: pt, highlightAreaSettings: me, refValues: h, minValue: Qt, maxValue: ct, highlightedLines: O, animate: et === !0 ? {
583
+ duration: 0.5,
584
+ once: !0,
585
+ amount: 0.5
586
+ } : et || {
587
+ duration: 0,
588
+ once: !0,
589
+ amount: 0
590
+ }, rtl: N === "he" || N === "ar", strokeWidth: ue, showDots: kt, annotations: ee, customHighlightAreaSettings: Vt, yAxisTitle: ae, noOfYTicks: xt, minDate: ft, maxDate: le, curveType: Ht, styles: l, classNames: g, selectedColor: Rt, showLabels: dt, colorDomain: n.filter(oi).length === 0 ? [] : r || Le(n, "color", !0), dimmedOpacity: Wt, precision: yt, customLayers: Yt, naLabel: It }) : null, t[37] = et, t[38] = ee, t[39] = gt, t[40] = g, t[41] = r, t[42] = c, t[43] = Ht, t[44] = Vt, t[45] = Yt, t[46] = n, t[47] = Tt, t[48] = Wt, t[49] = me, t[50] = O, t[51] = N, t[52] = d, t[53] = le, t[54] = ct, t[55] = ft, t[56] = Qt, t[57] = It, t[58] = tt, t[59] = xt, t[60] = At, t[61] = yt, t[62] = pt, t[63] = h, t[64] = ce, t[65] = Rt, t[66] = kt, t[67] = dt, t[68] = ue, t[69] = l, t[70] = _, t[71] = H, t[72] = it, t[73] = M, t[74] = V, t[75] = fe, t[76] = ae, t[77] = P) : P = t[77];
591
+ let F;
592
+ t[78] !== G || t[79] !== P ? (F = /* @__PURE__ */ s.jsxs(yo, { ref: E, children: [
593
+ G,
594
+ P
595
+ ] }), t[78] = G, t[79] = P, t[80] = F) : F = t[80];
596
+ let B;
597
+ t[81] !== g?.footnote || t[82] !== g?.source || t[83] !== C || t[84] !== rt || t[85] !== l?.footnote || t[86] !== l?.source || t[87] !== x ? (B = rt || C ? /* @__PURE__ */ s.jsx(po, { styles: {
592
598
  footnote: l?.footnote,
593
599
  source: l?.source
594
600
  }, classNames: {
595
- footnote: d?.footnote,
596
- source: d?.source
597
- }, sources: et, footNote: C, width: x }) : null, t[70] = d?.footnote, t[71] = d?.source, t[72] = C, t[73] = et, t[74] = l?.footnote, t[75] = l?.source, t[76] = x, t[77] = G) : G = t[77];
598
- let dt;
599
- return t[78] !== S || t[79] !== ft || t[80] !== zt || t[81] !== I || t[82] !== k || t[83] !== m || t[84] !== nt || t[85] !== ne || t[86] !== Yt || t[87] !== It || t[88] !== M || t[89] !== Y || t[90] !== G || t[91] !== V || t[92] !== x ? (dt = /* @__PURE__ */ s.jsxs(vo, { className: Yt, style: It, id: zt, ref: Zt, "aria-label": S, backgroundColor: ft, theme: V, language: k, minHeight: m, width: x, height: I, relativeHeight: ne, padding: nt, children: [
600
- M,
601
+ footnote: g?.footnote,
602
+ source: g?.source
603
+ }, sources: rt, footNote: C, width: x }) : null, t[81] = g?.footnote, t[82] = g?.source, t[83] = C, t[84] = rt, t[85] = l?.footnote, t[86] = l?.source, t[87] = x, t[88] = B) : B = t[88];
604
+ let nt;
605
+ return t[89] !== k || t[90] !== ht || t[91] !== Kt || t[92] !== I || t[93] !== N || t[94] !== m || t[95] !== lt || t[96] !== se || t[97] !== Xt || t[98] !== Et || t[99] !== $ || t[100] !== Y || t[101] !== F || t[102] !== B || t[103] !== M || t[104] !== x ? (nt = /* @__PURE__ */ s.jsxs(vo, { className: Xt, style: Et, id: Kt, ref: oe, "aria-label": k, backgroundColor: ht, theme: M, language: N, minHeight: m, width: x, height: I, relativeHeight: se, padding: lt, children: [
606
+ $,
601
607
  Y,
602
- G
603
- ] }), t[78] = S, t[79] = ft, t[80] = zt, t[81] = I, t[82] = k, t[83] = m, t[84] = nt, t[85] = ne, t[86] = Yt, t[87] = It, t[88] = M, t[89] = Y, t[90] = G, t[91] = V, t[92] = x, t[93] = dt) : dt = t[93], dt;
608
+ F,
609
+ B
610
+ ] }), t[89] = k, t[90] = ht, t[91] = Kt, t[92] = I, t[93] = N, t[94] = m, t[95] = lt, t[96] = se, t[97] = Xt, t[98] = Et, t[99] = $, t[100] = Y, t[101] = F, t[102] = B, t[103] = M, t[104] = x, t[105] = nt) : nt = t[105], nt;
604
611
  }
605
612
  function oi(e) {
606
613
  return e.color;