@undp/data-viz 2.3.13 → 2.3.15

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 (58) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.d.ts +6 -0
  4. package/dist/BiVariateChoroplethMap.js +330 -297
  5. package/dist/BiVariateChoroplethMap.js.map +1 -1
  6. package/dist/ChoroplethMap.cjs +1 -1
  7. package/dist/ChoroplethMap.cjs.map +1 -1
  8. package/dist/ChoroplethMap.d.ts +6 -0
  9. package/dist/ChoroplethMap.js +359 -326
  10. package/dist/ChoroplethMap.js.map +1 -1
  11. package/dist/DotDensityMap.cjs +1 -1
  12. package/dist/DotDensityMap.cjs.map +1 -1
  13. package/dist/DotDensityMap.d.ts +8 -1
  14. package/dist/DotDensityMap.js +319 -286
  15. package/dist/DotDensityMap.js.map +1 -1
  16. package/dist/{GraphEl-Bb5oGHoa.js → GraphEl-BgNA-xFf.js} +10 -5
  17. package/dist/GraphEl-BgNA-xFf.js.map +1 -0
  18. package/dist/GraphEl-Bl1Hnqnd.cjs +2 -0
  19. package/dist/GraphEl-Bl1Hnqnd.cjs.map +1 -0
  20. package/dist/GriddedGraphs.cjs +1 -1
  21. package/dist/GriddedGraphs.d.ts +8 -1
  22. package/dist/GriddedGraphs.js +1 -1
  23. package/dist/GriddedGraphsFromConfig.d.ts +8 -1
  24. package/dist/HybridMap.cjs +1 -1
  25. package/dist/HybridMap.cjs.map +1 -1
  26. package/dist/HybridMap.d.ts +8 -1
  27. package/dist/HybridMap.js +416 -382
  28. package/dist/HybridMap.js.map +1 -1
  29. package/dist/MultiGraphDashboard.d.ts +8 -1
  30. package/dist/MultiGraphDashboardFromConfig.d.ts +8 -1
  31. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +8 -1
  32. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +8 -1
  33. package/dist/PerformanceIntensiveScrollStory.d.ts +8 -1
  34. package/dist/ScatterPlot.cjs +1 -1
  35. package/dist/ScatterPlot.cjs.map +1 -1
  36. package/dist/ScatterPlot.d.ts +2 -0
  37. package/dist/ScatterPlot.js +408 -403
  38. package/dist/ScatterPlot.js.map +1 -1
  39. package/dist/ScrollStory.d.ts +8 -1
  40. package/dist/SingleGraphDashboard.cjs +1 -1
  41. package/dist/SingleGraphDashboard.d.ts +8 -1
  42. package/dist/SingleGraphDashboard.js +1 -1
  43. package/dist/SingleGraphDashboardFromConfig.d.ts +8 -1
  44. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +8 -1
  45. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +8 -1
  46. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +8 -1
  47. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +8 -1
  48. package/dist/StripChart.cjs +1 -1
  49. package/dist/StripChart.cjs.map +1 -1
  50. package/dist/StripChart.js +330 -334
  51. package/dist/StripChart.js.map +1 -1
  52. package/dist/Types.d.ts +9 -1
  53. package/dist/index.d.ts +36 -3
  54. package/dist/style.css +1 -1
  55. package/package.json +1 -1
  56. package/dist/GraphEl-Bb5oGHoa.js.map +0 -1
  57. package/dist/GraphEl-BerZfJ3j.cjs +0 -2
  58. package/dist/GraphEl-BerZfJ3j.cjs.map +0 -1
@@ -1,16 +1,16 @@
1
- import { c as Jt, j as s, m as Yt } from "./index-CHPV5EwG-BCLAYDCV.js";
2
- import { useRef as Bt, useState as bt, useEffect as si } from "react";
1
+ import { c as Jt, j as a, m as Yt } from "./index-CHPV5EwG-BCLAYDCV.js";
2
+ import { useRef as Bt, useState as Ot, useEffect as si } from "react";
3
3
  import { i as ti } from "./index-Bwrro8-q.js";
4
4
  import { o as ii } from "./index-BZQYSqar.js";
5
5
  import { T as ei } from "./Tooltip-CohiIbLZ.js";
6
- import { c as dt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
6
+ import { c as U } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
7
  import { n as Gt } from "./numberFormattingFunction-14YCbkN2.js";
8
- import { Colors as a } from "./Colors.js";
8
+ import { Colors as h } from "./Colors.js";
9
9
  import { D as oi } from "./DetailsModal-C3qlUyFK.js";
10
10
  import { a as ni } from "./linear-DNXM5Pdl.js";
11
- import { m as it } from "./proxy--_f6k3NR.js";
12
- import { u as li } from "./use-in-view-DqvKAveg.js";
13
- import { A as ri } from "./index-Co3YGYe1.js";
11
+ import { m as et } from "./proxy--_f6k3NR.js";
12
+ import { u as ri } from "./use-in-view-DqvKAveg.js";
13
+ import { A as li } from "./index-Co3YGYe1.js";
14
14
  import { u as _t } from "./uniqBy-BHy4I8PK.js";
15
15
  import { a as ci, G as ui } from "./GraphContainer-DwMxWRCi.js";
16
16
  import { E as fi } from "./EmptyState-B3fPoH6L.js";
@@ -22,74 +22,74 @@ function ai(i, t) {
22
22
  const o = t / (i - 1);
23
23
  return Array.from({
24
24
  length: i
25
- }, ($, b) => b * o);
25
+ }, ($, v) => v * o);
26
26
  }
27
- function gi(i) {
27
+ function di(i) {
28
28
  const t = Jt.c(101), {
29
29
  data: o,
30
30
  width: $,
31
- height: b,
31
+ height: v,
32
32
  colors: n,
33
- colorDomain: r,
34
- radius: f,
33
+ colorDomain: l,
34
+ radius: c,
35
35
  leftMargin: C,
36
- rightMargin: wt,
36
+ rightMargin: bt,
37
37
  topMargin: pt,
38
- bottomMargin: At,
38
+ bottomMargin: It,
39
39
  tooltip: mt,
40
- onSeriesMouseOver: et,
41
- highlightedDataPoints: l,
42
- selectedColor: ot,
40
+ onSeriesMouseOver: ot,
41
+ highlightedDataPoints: r,
42
+ selectedColor: nt,
43
43
  minValue: S,
44
44
  maxValue: T,
45
- onSeriesMouseClick: U,
46
- noOfTicks: nt,
47
- prefix: J,
45
+ onSeriesMouseClick: J,
46
+ noOfTicks: rt,
47
+ prefix: K,
48
48
  suffix: lt,
49
- stripType: d,
50
- highlightColor: h,
51
- dotOpacity: xt,
52
- resetSelectionOnDoubleClick: K,
53
- detailsOnClick: w,
54
- styles: m,
55
- classNames: v,
56
- valueColor: u,
57
- animate: g,
58
- dimmedOpacity: Z,
59
- precision: _,
49
+ stripType: b,
50
+ highlightColor: x,
51
+ dotOpacity: gt,
52
+ resetSelectionOnDoubleClick: Q,
53
+ detailsOnClick: O,
54
+ styles: f,
55
+ classNames: w,
56
+ valueColor: p,
57
+ animate: m,
58
+ dimmedOpacity: _,
59
+ precision: tt,
60
60
  customLayers: j,
61
- showDataMinMax: Mt
62
- } = i, yt = C === void 0 ? 20 : C, Vt = wt === void 0 ? 20 : wt, jt = pt === void 0 ? 10 : pt, Ct = At === void 0 ? 10 : At, Nt = Bt(null);
63
- let rt;
64
- t[0] !== g.amount || t[1] !== g.once ? (rt = {
65
- once: g.once,
66
- amount: g.amount
67
- }, t[0] = g.amount, t[1] = g.once, t[2] = rt) : rt = t[2];
68
- const M = li(Nt, rt), [ht, vt] = bt(void 0), [D, x] = bt(void 0), [p, Dt] = bt(void 0), [gt, It] = bt(void 0);
69
- let tt;
70
- t[3] !== Ct || t[4] !== yt || t[5] !== Vt || t[6] !== jt ? (tt = {
71
- top: jt,
72
- bottom: Ct,
73
- left: yt,
74
- right: Vt
75
- }, t[3] = Ct, t[4] = yt, t[5] = Vt, t[6] = jt, t[7] = tt) : tt = t[7];
76
- const y = tt, B = $ - y.left - y.right, q = b - y.top - y.bottom;
77
- let E, I, V, L, A, N, P, H, W, X, Y, G;
78
- if (t[8] !== g.duration || t[9] !== v?.graphObjectValues || t[10] !== v?.yAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== w || t[16] !== Z || t[17] !== xt || t[18] !== q || t[19] !== B || t[20] !== b || t[21] !== h || t[22] !== l || t[23] !== M || t[24] !== y.left || t[25] !== y.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== nt || t[30] !== U || t[31] !== et || t[32] !== _ || t[33] !== J || t[34] !== f || t[35] !== K || t[36] !== ot || t[37] !== Mt || t[38] !== d || t[39] !== m?.graphObjectValues || t[40] !== m?.yAxis?.labels || t[41] !== lt || t[42] !== u || t[43] !== $) {
79
- const kt = o.map(Ri);
80
- let st;
81
- t[56] !== l ? (st = (e) => {
82
- const c = (l || []).indexOf(e.label);
83
- return c === -1 ? 1 / 0 : c;
84
- }, t[56] = l, t[57] = st) : st = t[57];
85
- const ct = ii(kt, [st], ["desc"]);
61
+ showDataMinMax: wt
62
+ } = i, xt = C === void 0 ? 20 : C, Mt = bt === void 0 ? 20 : bt, Vt = pt === void 0 ? 10 : pt, jt = It === void 0 ? 10 : It, kt = Bt(null);
63
+ let at;
64
+ t[0] !== m.amount || t[1] !== m.once ? (at = {
65
+ once: m.once,
66
+ amount: m.amount
67
+ }, t[0] = m.amount, t[1] = m.once, t[2] = at) : at = t[2];
68
+ const M = ri(kt, at), [ht, yt] = Ot(void 0), [D, d] = Ot(void 0), [u, Ct] = Ot(void 0), [dt, Dt] = Ot(void 0);
69
+ let it;
70
+ t[3] !== jt || t[4] !== xt || t[5] !== Mt || t[6] !== Vt ? (it = {
71
+ top: Vt,
72
+ bottom: jt,
73
+ left: xt,
74
+ right: Mt
75
+ }, t[3] = jt, t[4] = xt, t[5] = Mt, t[6] = Vt, t[7] = it) : it = t[7];
76
+ const g = it, B = $ - g.left - g.right, q = v - g.top - g.bottom;
77
+ let E, I, V, L, k, A, P, H, W, X, Y, G;
78
+ if (t[8] !== m.duration || t[9] !== w?.graphObjectValues || t[10] !== w?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== O || t[16] !== _ || t[17] !== gt || t[18] !== q || t[19] !== B || t[20] !== v || t[21] !== x || t[22] !== r || t[23] !== M || t[24] !== g.left || t[25] !== g.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== rt || t[30] !== J || t[31] !== ot || t[32] !== tt || t[33] !== K || t[34] !== c || t[35] !== Q || t[36] !== nt || t[37] !== wt || t[38] !== b || t[39] !== f?.graphObjectValues || t[40] !== f?.yAxis?.labels || t[41] !== lt || t[42] !== p || t[43] !== $) {
79
+ const At = o.map(Ri);
80
+ let ct;
81
+ t[56] !== r ? (ct = (e) => {
82
+ const s = (r || []).indexOf(e.label);
83
+ return s === -1 ? 1 / 0 : s;
84
+ }, t[56] = r, t[57] = ct) : ct = t[57];
85
+ const Tt = ii(At, [ct], ["desc"]);
86
86
  let ut;
87
- t[58] !== o || t[59] !== T ? (ut = dt(T) ? Math.max(...o.filter(zi).map(Gi)) < 0 ? 0 : Math.max(...o.filter(Yi).map(Xi)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
88
- const $t = ut;
89
- let Ot;
90
- t[61] !== o || t[62] !== S ? (Ot = dt(S) ? Math.min(...o.filter(Wi).map(Hi)) >= 0 ? 0 : Math.min(...o.filter(Pi).map(Li)) : S, t[61] = o, t[62] = S, t[63] = Ot) : Ot = t[63];
91
- const St = Ot, ft = ni().domain([St, $t]).range([q, 0]).nice(), Tt = ai(nt, q);
92
- I = it.svg, L = `${$}px`, A = `${b}px`, N = `0 0 ${$} ${b}`, P = "ltr", H = Nt, G = `translate(${y.left},${y.top})`, t[64] !== j ? (V = j.filter(Ei).map(Ti), t[64] = j, t[65] = V) : V = t[65], E = ri, W = ct.map((e) => /* @__PURE__ */ s.jsxs(it.g, { className: "undp-viz-g-with-hover", variants: {
87
+ t[58] !== o || t[59] !== T ? (ut = U(T) ? Math.max(...o.filter(zi).map(Gi)) < 0 ? 0 : Math.max(...o.filter(Yi).map(Xi)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
88
+ const Nt = ut;
89
+ let vt;
90
+ t[61] !== o || t[62] !== S ? (vt = U(S) ? Math.min(...o.filter(Wi).map(Hi)) >= 0 ? 0 : Math.min(...o.filter(Pi).map(Li)) : S, t[61] = o, t[62] = S, t[63] = vt) : vt = t[63];
91
+ const $t = vt, ft = ni().domain([$t, Nt]).range([q, 0]).nice(), St = ai(rt, q);
92
+ I = et.svg, L = `${$}px`, k = `${v}px`, A = `0 0 ${$} ${v}`, P = "ltr", H = kt, G = `translate(${g.left},${g.top})`, t[64] !== j ? (V = j.filter(Ei).map(Ti), t[64] = j, t[65] = V) : V = t[65], E = li, W = Tt.map((e) => /* @__PURE__ */ a.jsxs(et.g, { className: "undp-viz-g-with-hover", variants: {
93
93
  initial: {
94
94
  opacity: 0,
95
95
  x: B / 2,
@@ -98,84 +98,84 @@ function gi(i) {
98
98
  whileInView: {
99
99
  x: B / 2,
100
100
  y: ft(e.position),
101
- opacity: ot ? e.color && n[r.indexOf(e.color)] === ot ? 0.95 : Z : l.length !== 0 ? l.indexOf(e.label) !== -1 ? 0.95 : Z : xt,
101
+ opacity: nt ? e.color && n[l.indexOf(e.color)] === nt ? 0.95 : _ : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : _ : gt,
102
102
  transition: {
103
- duration: g.duration
103
+ duration: m.duration
104
104
  }
105
105
  }
106
106
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
107
107
  opacity: 0,
108
108
  transition: {
109
- duration: g.duration
109
+ duration: m.duration
110
110
  }
111
- }, onMouseEnter: (c) => {
112
- vt(e), It(c.clientY), Dt(c.clientX), et?.(e);
111
+ }, onMouseEnter: (s) => {
112
+ yt(e), Dt(s.clientY), Ct(s.clientX), ot?.(e);
113
113
  }, onClick: () => {
114
- (U || w) && (ti(D, e) && K ? (x(void 0), U?.(void 0)) : (x(e), U?.(e)));
115
- }, onMouseMove: (c) => {
116
- vt(e), It(c.clientY), Dt(c.clientX);
114
+ (J || O) && (ti(D, e) && Q ? (d(void 0), J?.(void 0)) : (d(e), J?.(e)));
115
+ }, onMouseMove: (s) => {
116
+ yt(e), Dt(s.clientY), Ct(s.clientX);
117
117
  }, onMouseLeave: () => {
118
- vt(void 0), Dt(void 0), It(void 0), et?.(void 0);
118
+ yt(void 0), Ct(void 0), Dt(void 0), ot?.(void 0);
119
119
  }, children: [
120
- d === "dot" ? /* @__PURE__ */ s.jsx(it.circle, { cy: 0, cx: 0, variants: {
120
+ b === "dot" ? /* @__PURE__ */ a.jsx(et.circle, { cy: 0, cx: 0, variants: {
121
121
  initial: {
122
- fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Si).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
122
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Si).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
123
123
  },
124
124
  whileInView: {
125
- fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(ki).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ni).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
125
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ni).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ai).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
126
126
  transition: {
127
- duration: g.duration
127
+ duration: m.duration
128
128
  }
129
129
  }
130
130
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
131
131
  opacity: 0,
132
132
  transition: {
133
- duration: g.duration
133
+ duration: m.duration
134
134
  }
135
- }, r: f }) : /* @__PURE__ */ s.jsx(it.rect, { y: -1, height: 2, variants: {
135
+ }, r: c }) : /* @__PURE__ */ a.jsx(et.rect, { y: -1, height: 2, variants: {
136
136
  initial: {
137
- x: 0 - f,
138
- width: f * 2,
139
- fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Ai).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
137
+ x: 0 - c,
138
+ width: c * 2,
139
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
140
140
  },
141
141
  whileInView: {
142
- x: 0 - f,
143
- width: f * 2,
144
- fill: h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Di).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
142
+ x: 0 - c,
143
+ width: c * 2,
144
+ fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Di).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
145
145
  transition: {
146
- duration: g.duration
146
+ duration: m.duration
147
147
  }
148
148
  }
149
149
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
150
150
  opacity: 0,
151
151
  transition: {
152
- duration: g.duration
152
+ duration: m.duration
153
153
  }
154
154
  } }),
155
- l.length !== 0 && l.indexOf(e.label) !== -1 ? /* @__PURE__ */ s.jsx(it.text, { y: 0, dy: "0.33em", variants: {
155
+ r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(et.text, { y: 0, dy: "0.33em", variants: {
156
156
  initial: {
157
157
  opacity: 0,
158
- x: 0 + f + 3,
159
- fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(ji).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
158
+ x: 0 + c + 3,
159
+ fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
160
160
  },
161
161
  whileInView: {
162
162
  opacity: 1,
163
- x: 0 + f + 3,
164
- fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(Mi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(wi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
163
+ x: 0 + c + 3,
164
+ fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Mi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(wi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
165
165
  transition: {
166
- duration: g.duration
166
+ duration: m.duration
167
167
  }
168
168
  }
169
169
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
170
170
  opacity: 0,
171
171
  transition: {
172
- duration: g.duration
172
+ duration: m.duration
173
173
  }
174
174
  }, style: {
175
175
  textAnchor: "start",
176
- ...m?.graphObjectValues || {}
177
- }, className: Yt("graph-value text-sm font-bold", v?.graphObjectValues), children: Gt(e.position, "NA", _, J, lt) }) : null
178
- ] }, e.label)), X = Mt ? [ct[0], ct[ct.length - 1]].map((e, c) => /* @__PURE__ */ s.jsx(it.g, { variants: {
176
+ ...f?.graphObjectValues || {}
177
+ }, className: Yt("graph-value text-sm font-bold", w?.graphObjectValues), children: Gt(e.position, "NA", tt, K, lt) }) : null
178
+ ] }, e.label)), X = wt ? [Math.min(...o.filter(bi).map(Oi)), Math.max(...o.filter(vi).map(yi))].map((e, s) => /* @__PURE__ */ a.jsx(et.g, { variants: {
179
179
  initial: {
180
180
  opacity: 0,
181
181
  x: B / 2,
@@ -183,89 +183,87 @@ function gi(i) {
183
183
  },
184
184
  whileInView: {
185
185
  x: B / 2,
186
- y: ft(e.position),
186
+ y: ft(e),
187
187
  opacity: 1,
188
188
  transition: {
189
- duration: g.duration
189
+ duration: m.duration
190
190
  }
191
191
  }
192
192
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
193
193
  opacity: 0,
194
194
  transition: {
195
- duration: g.duration
195
+ duration: m.duration
196
196
  }
197
- }, children: /* @__PURE__ */ s.jsx(it.text, { y: 0, dy: "0.33em", variants: {
197
+ }, children: /* @__PURE__ */ a.jsx(et.text, { y: 0, dy: "0.33em", variants: {
198
198
  initial: {
199
199
  opacity: 0,
200
- x: 0 + f + 3,
201
- fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(bi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Oi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
200
+ x: 0 + c + 3
202
201
  },
203
202
  whileInView: {
204
203
  opacity: 1,
205
- x: 0 + f + 3,
206
- fill: u || (h && l ? l.indexOf(e.label) !== -1 ? h : o.filter(vi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(yi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
204
+ x: 0 + c + 3,
207
205
  transition: {
208
- duration: g.duration
206
+ duration: m.duration
209
207
  }
210
208
  }
211
209
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
212
210
  opacity: 0,
213
211
  transition: {
214
- duration: g.duration
212
+ duration: m.duration
215
213
  }
216
214
  }, style: {
217
215
  textAnchor: "start",
218
- ...m?.graphObjectValues || {}
219
- }, className: Yt("graph-value text-sm", v?.graphObjectValues), children: Gt(e.position, "NA", _, J, lt) }, c) }, c)) : null, Y = Tt.map((e, c) => /* @__PURE__ */ s.jsx("text", { y: e, x: B / 2 + f + 5, style: {
216
+ ...f?.graphObjectValues || {}
217
+ }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", w?.graphObjectValues), children: Gt(e, "NA", tt, K, lt) }, s) }, s)) : null, Y = St.map((e, s) => /* @__PURE__ */ a.jsx("text", { y: e, x: B / 2 + c + 5, style: {
220
218
  textAnchor: "start",
221
- ...m?.yAxis?.labels || {}
222
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", v?.yAxis?.labels), children: Gt(ft.invert(e), "NA", _, J, lt) }, c)), t[8] = g.duration, t[9] = v?.graphObjectValues, t[10] = v?.yAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = w, t[16] = Z, t[17] = xt, t[18] = q, t[19] = B, t[20] = b, t[21] = h, t[22] = l, t[23] = M, t[24] = y.left, t[25] = y.top, t[26] = T, t[27] = S, t[28] = D, t[29] = nt, t[30] = U, t[31] = et, t[32] = _, t[33] = J, t[34] = f, t[35] = K, t[36] = ot, t[37] = Mt, t[38] = d, t[39] = m?.graphObjectValues, t[40] = m?.yAxis?.labels, t[41] = lt, t[42] = u, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = A, t[49] = N, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
219
+ ...f?.yAxis?.labels || {}
220
+ }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", w?.yAxis?.labels), children: Gt(ft.invert(e), "NA", tt, K, lt) }, s)), t[8] = m.duration, t[9] = w?.graphObjectValues, t[10] = w?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = j, t[14] = o, t[15] = O, t[16] = _, t[17] = gt, t[18] = q, t[19] = B, t[20] = v, t[21] = x, t[22] = r, t[23] = M, t[24] = g.left, t[25] = g.top, t[26] = T, t[27] = S, t[28] = D, t[29] = rt, t[30] = J, t[31] = ot, t[32] = tt, t[33] = K, t[34] = c, t[35] = Q, t[36] = nt, t[37] = wt, t[38] = b, t[39] = f?.graphObjectValues, t[40] = f?.yAxis?.labels, t[41] = lt, t[42] = p, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = k, t[49] = A, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
223
221
  } else
224
- E = t[44], I = t[45], V = t[46], L = t[47], A = t[48], N = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
222
+ E = t[44], I = t[45], V = t[46], L = t[47], k = t[48], A = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
225
223
  let z;
226
- t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ s.jsxs(E, { children: [
224
+ t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ a.jsxs(E, { children: [
227
225
  W,
228
226
  X,
229
227
  Y
230
228
  ] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
231
- let O;
232
- t[71] !== j ? (O = j.filter(xi).map(di), t[71] = j, t[72] = O) : O = t[72];
229
+ let y;
230
+ t[71] !== j ? (y = j.filter(xi).map(gi), t[71] = j, t[72] = y) : y = t[72];
233
231
  let R;
234
- t[73] !== V || t[74] !== z || t[75] !== O || t[76] !== G ? (R = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
232
+ t[73] !== V || t[74] !== z || t[75] !== y || t[76] !== G ? (R = /* @__PURE__ */ a.jsxs("g", { transform: G, children: [
235
233
  V,
236
234
  z,
237
- O
238
- ] }), t[73] = V, t[74] = z, t[75] = O, t[76] = G, t[77] = R) : R = t[77];
239
- let Q;
240
- t[78] !== I || t[79] !== L || t[80] !== A || t[81] !== N || t[82] !== P || t[83] !== H || t[84] !== R ? (Q = /* @__PURE__ */ s.jsx(I, { width: L, height: A, viewBox: N, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = A, t[81] = N, t[82] = P, t[83] = H, t[84] = R, t[85] = Q) : Q = t[85];
241
- let k;
242
- t[86] !== v?.tooltip || t[87] !== p || t[88] !== gt || t[89] !== ht || t[90] !== m?.tooltip || t[91] !== mt ? (k = ht && mt && p && gt ? /* @__PURE__ */ s.jsx(ei, { data: ht, body: mt, xPos: p, yPos: gt, backgroundStyle: m?.tooltip, className: v?.tooltip }) : null, t[86] = v?.tooltip, t[87] = p, t[88] = gt, t[89] = ht, t[90] = m?.tooltip, t[91] = mt, t[92] = k) : k = t[92];
235
+ y
236
+ ] }), t[73] = V, t[74] = z, t[75] = y, t[76] = G, t[77] = R) : R = t[77];
237
+ let Z;
238
+ t[78] !== I || t[79] !== L || t[80] !== k || t[81] !== A || t[82] !== P || t[83] !== H || t[84] !== R ? (Z = /* @__PURE__ */ a.jsx(I, { width: L, height: k, viewBox: A, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = k, t[81] = A, t[82] = P, t[83] = H, t[84] = R, t[85] = Z) : Z = t[85];
239
+ let N;
240
+ t[86] !== w?.tooltip || t[87] !== u || t[88] !== dt || t[89] !== ht || t[90] !== f?.tooltip || t[91] !== mt ? (N = ht && mt && u && dt ? /* @__PURE__ */ a.jsx(ei, { data: ht, body: mt, xPos: u, yPos: dt, backgroundStyle: f?.tooltip, className: w?.tooltip }) : null, t[86] = w?.tooltip, t[87] = u, t[88] = dt, t[89] = ht, t[90] = f?.tooltip, t[91] = mt, t[92] = N) : N = t[92];
243
241
  let F;
244
- t[93] !== v?.modal || t[94] !== w || t[95] !== D ? (F = w && D !== void 0 ? /* @__PURE__ */ s.jsx(oi, { body: w, data: D, setData: x, className: v?.modal }) : null, t[93] = v?.modal, t[94] = w, t[95] = D, t[96] = F) : F = t[96];
245
- let at;
246
- return t[97] !== Q || t[98] !== k || t[99] !== F ? (at = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
247
- Q,
248
- k,
242
+ t[93] !== w?.modal || t[94] !== O || t[95] !== D ? (F = O && D !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: O, data: D, setData: d, className: w?.modal }) : null, t[93] = w?.modal, t[94] = O, t[95] = D, t[96] = F) : F = t[96];
243
+ let st;
244
+ return t[97] !== Z || t[98] !== N || t[99] !== F ? (st = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
245
+ Z,
246
+ N,
249
247
  F
250
- ] }), t[97] = Q, t[98] = k, t[99] = F, t[100] = at) : at = t[100], at;
248
+ ] }), t[97] = Z, t[98] = N, t[99] = F, t[100] = st) : st = t[100], st;
251
249
  }
252
- function di(i) {
250
+ function gi(i) {
253
251
  return i.layer;
254
252
  }
255
253
  function xi(i) {
256
254
  return i.position === "after";
257
255
  }
258
256
  function yi(i) {
259
- return i.color;
257
+ return i.position;
260
258
  }
261
259
  function vi(i) {
262
- return i.color;
260
+ return !U(i.position);
263
261
  }
264
262
  function Oi(i) {
265
- return i.color;
263
+ return i.position;
266
264
  }
267
265
  function bi(i) {
268
- return i.color;
266
+ return !U(i.position);
269
267
  }
270
268
  function wi(i) {
271
269
  return i.color;
@@ -288,13 +286,13 @@ function Di(i) {
288
286
  function Ii(i) {
289
287
  return i.color;
290
288
  }
291
- function Ai(i) {
289
+ function ki(i) {
292
290
  return i.color;
293
291
  }
294
- function Ni(i) {
292
+ function Ai(i) {
295
293
  return i.color;
296
294
  }
297
- function ki(i) {
295
+ function Ni(i) {
298
296
  return i.color;
299
297
  }
300
298
  function $i(i) {
@@ -313,25 +311,25 @@ function Li(i) {
313
311
  return i.position;
314
312
  }
315
313
  function Pi(i) {
316
- return !dt(i.position);
314
+ return !U(i.position);
317
315
  }
318
316
  function Hi(i) {
319
317
  return i.position;
320
318
  }
321
319
  function Wi(i) {
322
- return !dt(i.position);
320
+ return !U(i.position);
323
321
  }
324
322
  function Xi(i) {
325
323
  return i.position;
326
324
  }
327
325
  function Yi(i) {
328
- return !dt(i.position);
326
+ return !U(i.position);
329
327
  }
330
328
  function Gi(i) {
331
329
  return i.position;
332
330
  }
333
331
  function zi(i) {
334
- return !dt(i.position);
332
+ return !U(i.position);
335
333
  }
336
334
  function Ri(i, t) {
337
335
  return {
@@ -343,68 +341,68 @@ function Fi(i) {
343
341
  const t = Jt.c(101), {
344
342
  data: o,
345
343
  width: $,
346
- height: b,
344
+ height: v,
347
345
  colors: n,
348
- colorDomain: r,
349
- radius: f,
346
+ colorDomain: l,
347
+ radius: c,
350
348
  leftMargin: C,
351
- rightMargin: wt,
349
+ rightMargin: bt,
352
350
  topMargin: pt,
353
- bottomMargin: At,
351
+ bottomMargin: It,
354
352
  tooltip: mt,
355
- onSeriesMouseOver: et,
356
- highlightedDataPoints: l,
357
- selectedColor: ot,
353
+ onSeriesMouseOver: ot,
354
+ highlightedDataPoints: r,
355
+ selectedColor: nt,
358
356
  minValue: S,
359
357
  maxValue: T,
360
- onSeriesMouseClick: U,
361
- prefix: nt,
362
- suffix: J,
358
+ onSeriesMouseClick: J,
359
+ prefix: rt,
360
+ suffix: K,
363
361
  stripType: lt,
364
- highlightColor: d,
365
- dotOpacity: h,
366
- resetSelectionOnDoubleClick: xt,
367
- detailsOnClick: K,
368
- styles: w,
369
- classNames: m,
370
- valueColor: v,
371
- animate: u,
372
- noOfTicks: g,
373
- dimmedOpacity: Z,
374
- precision: _,
362
+ highlightColor: b,
363
+ dotOpacity: x,
364
+ resetSelectionOnDoubleClick: gt,
365
+ detailsOnClick: Q,
366
+ styles: O,
367
+ classNames: f,
368
+ valueColor: w,
369
+ animate: p,
370
+ noOfTicks: m,
371
+ dimmedOpacity: _,
372
+ precision: tt,
375
373
  customLayers: j,
376
- showDataMinMax: Mt
377
- } = i, yt = C === void 0 ? 5 : C, Vt = wt === void 0 ? 5 : wt, jt = pt === void 0 ? 10 : pt, Ct = At === void 0 ? 10 : At, Nt = Bt(null);
378
- let rt;
379
- t[0] !== u.amount || t[1] !== u.once ? (rt = {
380
- once: u.once,
381
- amount: u.amount
382
- }, t[0] = u.amount, t[1] = u.once, t[2] = rt) : rt = t[2];
383
- const M = li(Nt, rt), [ht, vt] = bt(void 0), [D, x] = bt(void 0), [p, Dt] = bt(void 0), [gt, It] = bt(void 0);
384
- let tt;
385
- t[3] !== Ct || t[4] !== yt || t[5] !== Vt || t[6] !== jt ? (tt = {
386
- top: jt,
387
- bottom: Ct,
388
- left: yt,
389
- right: Vt
390
- }, t[3] = Ct, t[4] = yt, t[5] = Vt, t[6] = jt, t[7] = tt) : tt = t[7];
391
- const y = tt, B = $ - y.left - y.right, q = b - y.top - y.bottom;
392
- let E, I, V, L, A, N, P, H, W, X, Y, G;
393
- if (t[8] !== u.duration || t[9] !== m?.graphObjectValues || t[10] !== m?.xAxis?.labels || t[11] !== r || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== K || t[16] !== Z || t[17] !== h || t[18] !== q || t[19] !== B || t[20] !== b || t[21] !== d || t[22] !== l || t[23] !== M || t[24] !== y.left || t[25] !== y.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== g || t[30] !== U || t[31] !== et || t[32] !== _ || t[33] !== nt || t[34] !== f || t[35] !== xt || t[36] !== ot || t[37] !== Mt || t[38] !== lt || t[39] !== w?.graphObjectValues || t[40] !== w?.xAxis?.labels || t[41] !== J || t[42] !== v || t[43] !== $) {
394
- const kt = o.map(Oe);
395
- let st;
396
- t[56] !== l ? (st = (e) => {
397
- const c = (l || []).indexOf(e.label);
398
- return c === -1 ? 1 / 0 : c;
399
- }, t[56] = l, t[57] = st) : st = t[57];
400
- const ct = ii(kt, [st], ["desc"]);
374
+ showDataMinMax: wt
375
+ } = i, xt = C === void 0 ? 5 : C, Mt = bt === void 0 ? 5 : bt, Vt = pt === void 0 ? 10 : pt, jt = It === void 0 ? 10 : It, kt = Bt(null);
376
+ let at;
377
+ t[0] !== p.amount || t[1] !== p.once ? (at = {
378
+ once: p.once,
379
+ amount: p.amount
380
+ }, t[0] = p.amount, t[1] = p.once, t[2] = at) : at = t[2];
381
+ const M = ri(kt, at), [ht, yt] = Ot(void 0), [D, d] = Ot(void 0), [u, Ct] = Ot(void 0), [dt, Dt] = Ot(void 0);
382
+ let it;
383
+ t[3] !== jt || t[4] !== xt || t[5] !== Mt || t[6] !== Vt ? (it = {
384
+ top: Vt,
385
+ bottom: jt,
386
+ left: xt,
387
+ right: Mt
388
+ }, t[3] = jt, t[4] = xt, t[5] = Mt, t[6] = Vt, t[7] = it) : it = t[7];
389
+ const g = it, B = $ - g.left - g.right, q = v - g.top - g.bottom;
390
+ let E, I, V, L, k, A, P, H, W, X, Y, G;
391
+ if (t[8] !== p.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== j || t[14] !== o || t[15] !== Q || t[16] !== _ || t[17] !== x || t[18] !== q || t[19] !== B || t[20] !== v || t[21] !== b || t[22] !== r || t[23] !== M || t[24] !== g.left || t[25] !== g.top || t[26] !== T || t[27] !== S || t[28] !== D || t[29] !== m || t[30] !== J || t[31] !== ot || t[32] !== tt || t[33] !== rt || t[34] !== c || t[35] !== gt || t[36] !== nt || t[37] !== wt || t[38] !== lt || t[39] !== O?.graphObjectValues || t[40] !== O?.xAxis?.labels || t[41] !== K || t[42] !== w || t[43] !== $) {
392
+ const At = o.map(Oe);
393
+ let ct;
394
+ t[56] !== r ? (ct = (e) => {
395
+ const s = (r || []).indexOf(e.label);
396
+ return s === -1 ? 1 / 0 : s;
397
+ }, t[56] = r, t[57] = ct) : ct = t[57];
398
+ const Tt = ii(At, [ct], ["desc"]);
401
399
  let ut;
402
- t[58] !== o || t[59] !== T ? (ut = dt(T) ? Math.max(...o.filter(ve).map(ye)) < 0 ? 0 : Math.max(...o.filter(xe).map(de)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
403
- const $t = ut;
404
- let Ot;
405
- t[61] !== o || t[62] !== S ? (Ot = dt(S) ? Math.min(...o.filter(ge).map(he)) >= 0 ? 0 : Math.min(...o.filter(me).map(pe)) : S, t[61] = o, t[62] = S, t[63] = Ot) : Ot = t[63];
406
- const St = Ot, ft = ni().domain([St, $t]).range([0, B]).nice(), Tt = ai(g, B);
407
- I = it.svg, L = `${$}px`, A = `${b}px`, N = `0 0 ${$} ${b}`, P = "ltr", H = Nt, G = `translate(${y.left},${y.top})`, t[64] !== j ? (V = j.filter(fe).map(ue), t[64] = j, t[65] = V) : V = t[65], E = ri, W = ct.map((e) => /* @__PURE__ */ s.jsxs(it.g, { className: "undp-viz-g-with-hover", variants: {
400
+ t[58] !== o || t[59] !== T ? (ut = U(T) ? Math.max(...o.filter(ve).map(ye)) < 0 ? 0 : Math.max(...o.filter(xe).map(ge)) : T, t[58] = o, t[59] = T, t[60] = ut) : ut = t[60];
401
+ const Nt = ut;
402
+ let vt;
403
+ t[61] !== o || t[62] !== S ? (vt = U(S) ? Math.min(...o.filter(de).map(he)) >= 0 ? 0 : Math.min(...o.filter(me).map(pe)) : S, t[61] = o, t[62] = S, t[63] = vt) : vt = t[63];
404
+ const $t = vt, ft = ni().domain([$t, Nt]).range([0, B]).nice(), St = ai(m, B);
405
+ I = et.svg, L = `${$}px`, k = `${v}px`, A = `0 0 ${$} ${v}`, P = "ltr", H = kt, G = `translate(${g.left},${g.top})`, t[64] !== j ? (V = j.filter(fe).map(ue), t[64] = j, t[65] = V) : V = t[65], E = li, W = Tt.map((e) => /* @__PURE__ */ a.jsxs(et.g, { className: "undp-viz-g-with-hover", variants: {
408
406
  initial: {
409
407
  opacity: 0,
410
408
  x: ft(0),
@@ -413,156 +411,154 @@ function Fi(i) {
413
411
  whileInView: {
414
412
  x: ft(e.position),
415
413
  y: q / 2,
416
- opacity: ot ? e.color && n[r.indexOf(e.color)] === ot ? 0.95 : Z : l.length !== 0 ? l.indexOf(e.label) !== -1 ? 0.95 : Z : h,
414
+ opacity: nt ? e.color && n[l.indexOf(e.color)] === nt ? 0.95 : _ : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : _ : x,
417
415
  transition: {
418
- duration: u.duration
416
+ duration: p.duration
419
417
  }
420
418
  }
421
419
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
422
420
  opacity: 0,
423
421
  transition: {
424
- duration: u.duration
422
+ duration: p.duration
425
423
  }
426
- }, onMouseEnter: (c) => {
427
- vt(e), It(c.clientY), Dt(c.clientX), et?.(e);
424
+ }, onMouseEnter: (s) => {
425
+ yt(e), Dt(s.clientY), Ct(s.clientX), ot?.(e);
428
426
  }, onClick: () => {
429
- (U || K) && (ti(D, e) && xt ? (x(void 0), U?.(void 0)) : (x(e), U?.(e)));
430
- }, onMouseMove: (c) => {
431
- vt(e), It(c.clientY), Dt(c.clientX);
427
+ (J || Q) && (ti(D, e) && gt ? (d(void 0), J?.(void 0)) : (d(e), J?.(e)));
428
+ }, onMouseMove: (s) => {
429
+ yt(e), Dt(s.clientY), Ct(s.clientX);
432
430
  }, onMouseLeave: () => {
433
- vt(void 0), Dt(void 0), It(void 0), et?.(void 0);
431
+ yt(void 0), Ct(void 0), Dt(void 0), ot?.(void 0);
434
432
  }, children: [
435
- lt === "dot" ? /* @__PURE__ */ s.jsx(it.circle, { cy: 0, cx: 0, variants: {
433
+ lt === "dot" ? /* @__PURE__ */ a.jsx(et.circle, { cy: 0, cx: 0, variants: {
436
434
  initial: {
437
- fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ce).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
435
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ce).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
438
436
  },
439
437
  whileInView: {
440
- fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ae).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(re).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
438
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ae).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(le).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
441
439
  transition: {
442
- duration: u.duration
440
+ duration: p.duration
443
441
  }
444
442
  }
445
443
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
446
444
  opacity: 0,
447
445
  transition: {
448
- duration: u.duration
446
+ duration: p.duration
449
447
  }
450
- }, r: f }) : /* @__PURE__ */ s.jsx(it.rect, { x: -1, width: 2, variants: {
448
+ }, r: c }) : /* @__PURE__ */ a.jsx(et.rect, { x: -1, width: 2, variants: {
451
449
  initial: {
452
- y: 0 - f,
453
- height: f * 2,
454
- fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(le).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray
450
+ y: 0 - c,
451
+ height: c * 2,
452
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(re).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
455
453
  },
456
454
  whileInView: {
457
- y: 0 - f,
458
- height: f * 2,
459
- fill: d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(oe).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray,
455
+ y: 0 - c,
456
+ height: c * 2,
457
+ fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(oe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
460
458
  transition: {
461
- duration: u.duration
459
+ duration: p.duration
462
460
  }
463
461
  }
464
462
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
465
463
  opacity: 0,
466
464
  transition: {
467
- duration: u.duration
465
+ duration: p.duration
468
466
  }
469
467
  } }),
470
- l.length !== 0 && l.indexOf(e.label) !== -1 ? /* @__PURE__ */ s.jsx(it.text, { x: 0, variants: {
468
+ r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(et.text, { x: 0, variants: {
471
469
  initial: {
472
470
  opacity: 0,
473
- y: 0 - f - 5,
474
- fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(ie).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
471
+ y: 0 - c - 5,
472
+ fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
475
473
  },
476
474
  whileInView: {
477
475
  opacity: 1,
478
- y: 0 - f - 5,
479
- fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(_i).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
476
+ y: 0 - c - 5,
477
+ fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(_i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
480
478
  transition: {
481
- duration: u.duration
479
+ duration: p.duration
482
480
  }
483
481
  }
484
482
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
485
483
  opacity: 0,
486
484
  transition: {
487
- duration: u.duration
485
+ duration: p.duration
488
486
  }
489
487
  }, style: {
490
488
  textAnchor: "middle",
491
- ...w?.graphObjectValues || {}
492
- }, className: Yt("graph-value text-sm font-bold", m?.graphObjectValues), children: Gt(e.position, "NA", _, nt, J) }) : null
493
- ] }, e.label)), X = Mt ? [ct[0], ct[ct.length - 1]].map((e, c) => /* @__PURE__ */ s.jsx(it.g, { variants: {
489
+ ...O?.graphObjectValues || {}
490
+ }, className: Yt("graph-value text-sm font-bold", f?.graphObjectValues), children: Gt(e.position, "NA", tt, rt, K) }) : null
491
+ ] }, e.label)), X = wt ? [Math.min(...o.filter(Qi).map(Ki)), Math.max(...o.filter(Ji).map(Ui))].map((e, s) => /* @__PURE__ */ a.jsx(et.g, { variants: {
494
492
  initial: {
495
493
  opacity: 0,
496
494
  x: ft(0),
497
495
  y: q / 2
498
496
  },
499
497
  whileInView: {
500
- x: ft(e.position),
498
+ x: ft(e),
501
499
  y: q / 2,
502
500
  opacity: 1,
503
501
  transition: {
504
- duration: u.duration
502
+ duration: p.duration
505
503
  }
506
504
  }
507
505
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
508
506
  opacity: 0,
509
507
  transition: {
510
- duration: u.duration
508
+ duration: p.duration
511
509
  }
512
- }, children: /* @__PURE__ */ s.jsx(it.text, { x: 0, variants: {
510
+ }, children: /* @__PURE__ */ a.jsx(et.text, { x: 0, variants: {
513
511
  initial: {
514
512
  opacity: 0,
515
- y: 0 - f - 5,
516
- fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(Qi).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ki).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray)
513
+ y: 0 - c - 5
517
514
  },
518
515
  whileInView: {
519
516
  opacity: 1,
520
- y: 0 - f - 5,
521
- fill: v || (d && l ? l.indexOf(e.label) !== -1 ? d : o.filter(Ji).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray : o.filter(Ui).length === 0 ? n[0] : e.color ? n[r.indexOf(e.color)] : a.gray),
517
+ y: 0 - c - 5,
522
518
  transition: {
523
- duration: u.duration
519
+ duration: p.duration
524
520
  }
525
521
  }
526
522
  }, initial: "initial", animate: M ? "whileInView" : "initial", exit: {
527
523
  opacity: 0,
528
524
  transition: {
529
- duration: u.duration
525
+ duration: p.duration
530
526
  }
531
527
  }, style: {
532
528
  textAnchor: "middle",
533
- ...w?.graphObjectValues || {}
534
- }, className: Yt("graph-value text-sm", m?.graphObjectValues), children: Gt(e.position, "NA", _, nt, J) }) }, c)) : null, Y = Tt.map((e, c) => /* @__PURE__ */ s.jsx("text", { x: e, y: q / 2 + f, style: {
535
- textAnchor: c === 0 ? "start" : c === Tt.length - 1 ? "end" : "middle",
536
- ...w?.xAxis?.labels || {}
537
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", m?.xAxis?.labels), dy: "1em", children: Gt(ft.invert(e), "NA", _, nt, J) }, c)), t[8] = u.duration, t[9] = m?.graphObjectValues, t[10] = m?.xAxis?.labels, t[11] = r, t[12] = n, t[13] = j, t[14] = o, t[15] = K, t[16] = Z, t[17] = h, t[18] = q, t[19] = B, t[20] = b, t[21] = d, t[22] = l, t[23] = M, t[24] = y.left, t[25] = y.top, t[26] = T, t[27] = S, t[28] = D, t[29] = g, t[30] = U, t[31] = et, t[32] = _, t[33] = nt, t[34] = f, t[35] = xt, t[36] = ot, t[37] = Mt, t[38] = lt, t[39] = w?.graphObjectValues, t[40] = w?.xAxis?.labels, t[41] = J, t[42] = v, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = A, t[49] = N, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
529
+ ...O?.graphObjectValues || {}
530
+ }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", f?.graphObjectValues), children: Gt(e, "NA", tt, rt, K) }) }, s)) : null, Y = St.map((e, s) => /* @__PURE__ */ a.jsx("text", { x: e, y: q / 2 + c, style: {
531
+ textAnchor: s === 0 ? "start" : s === St.length - 1 ? "end" : "middle",
532
+ ...O?.xAxis?.labels || {}
533
+ }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Gt(ft.invert(e), "NA", tt, rt, K) }, s)), t[8] = p.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = j, t[14] = o, t[15] = Q, t[16] = _, t[17] = x, t[18] = q, t[19] = B, t[20] = v, t[21] = b, t[22] = r, t[23] = M, t[24] = g.left, t[25] = g.top, t[26] = T, t[27] = S, t[28] = D, t[29] = m, t[30] = J, t[31] = ot, t[32] = tt, t[33] = rt, t[34] = c, t[35] = gt, t[36] = nt, t[37] = wt, t[38] = lt, t[39] = O?.graphObjectValues, t[40] = O?.xAxis?.labels, t[41] = K, t[42] = w, t[43] = $, t[44] = E, t[45] = I, t[46] = V, t[47] = L, t[48] = k, t[49] = A, t[50] = P, t[51] = H, t[52] = W, t[53] = X, t[54] = Y, t[55] = G;
538
534
  } else
539
- E = t[44], I = t[45], V = t[46], L = t[47], A = t[48], N = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
535
+ E = t[44], I = t[45], V = t[46], L = t[47], k = t[48], A = t[49], P = t[50], H = t[51], W = t[52], X = t[53], Y = t[54], G = t[55];
540
536
  let z;
541
- t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ s.jsxs(E, { children: [
537
+ t[66] !== E || t[67] !== W || t[68] !== X || t[69] !== Y ? (z = /* @__PURE__ */ a.jsxs(E, { children: [
542
538
  W,
543
539
  X,
544
540
  Y
545
541
  ] }), t[66] = E, t[67] = W, t[68] = X, t[69] = Y, t[70] = z) : z = t[70];
546
- let O;
547
- t[71] !== j ? (O = j.filter(qi).map(Bi), t[71] = j, t[72] = O) : O = t[72];
542
+ let y;
543
+ t[71] !== j ? (y = j.filter(qi).map(Bi), t[71] = j, t[72] = y) : y = t[72];
548
544
  let R;
549
- t[73] !== V || t[74] !== z || t[75] !== O || t[76] !== G ? (R = /* @__PURE__ */ s.jsxs("g", { transform: G, children: [
545
+ t[73] !== V || t[74] !== z || t[75] !== y || t[76] !== G ? (R = /* @__PURE__ */ a.jsxs("g", { transform: G, children: [
550
546
  V,
551
547
  z,
552
- O
553
- ] }), t[73] = V, t[74] = z, t[75] = O, t[76] = G, t[77] = R) : R = t[77];
554
- let Q;
555
- t[78] !== I || t[79] !== L || t[80] !== A || t[81] !== N || t[82] !== P || t[83] !== H || t[84] !== R ? (Q = /* @__PURE__ */ s.jsx(I, { width: L, height: A, viewBox: N, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = A, t[81] = N, t[82] = P, t[83] = H, t[84] = R, t[85] = Q) : Q = t[85];
556
- let k;
557
- t[86] !== m?.tooltip || t[87] !== p || t[88] !== gt || t[89] !== ht || t[90] !== w?.tooltip || t[91] !== mt ? (k = ht && mt && p && gt ? /* @__PURE__ */ s.jsx(ei, { data: ht, body: mt, xPos: p, yPos: gt, backgroundStyle: w?.tooltip, className: m?.tooltip }) : null, t[86] = m?.tooltip, t[87] = p, t[88] = gt, t[89] = ht, t[90] = w?.tooltip, t[91] = mt, t[92] = k) : k = t[92];
548
+ y
549
+ ] }), t[73] = V, t[74] = z, t[75] = y, t[76] = G, t[77] = R) : R = t[77];
550
+ let Z;
551
+ t[78] !== I || t[79] !== L || t[80] !== k || t[81] !== A || t[82] !== P || t[83] !== H || t[84] !== R ? (Z = /* @__PURE__ */ a.jsx(I, { width: L, height: k, viewBox: A, direction: P, ref: H, children: R }), t[78] = I, t[79] = L, t[80] = k, t[81] = A, t[82] = P, t[83] = H, t[84] = R, t[85] = Z) : Z = t[85];
552
+ let N;
553
+ t[86] !== f?.tooltip || t[87] !== u || t[88] !== dt || t[89] !== ht || t[90] !== O?.tooltip || t[91] !== mt ? (N = ht && mt && u && dt ? /* @__PURE__ */ a.jsx(ei, { data: ht, body: mt, xPos: u, yPos: dt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[86] = f?.tooltip, t[87] = u, t[88] = dt, t[89] = ht, t[90] = O?.tooltip, t[91] = mt, t[92] = N) : N = t[92];
558
554
  let F;
559
- t[93] !== m?.modal || t[94] !== K || t[95] !== D ? (F = K && D !== void 0 ? /* @__PURE__ */ s.jsx(oi, { body: K, data: D, setData: x, className: m?.modal }) : null, t[93] = m?.modal, t[94] = K, t[95] = D, t[96] = F) : F = t[96];
560
- let at;
561
- return t[97] !== Q || t[98] !== k || t[99] !== F ? (at = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
562
- Q,
563
- k,
555
+ t[93] !== f?.modal || t[94] !== Q || t[95] !== D ? (F = Q && D !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: Q, data: D, setData: d, className: f?.modal }) : null, t[93] = f?.modal, t[94] = Q, t[95] = D, t[96] = F) : F = t[96];
556
+ let st;
557
+ return t[97] !== Z || t[98] !== N || t[99] !== F ? (st = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
558
+ Z,
559
+ N,
564
560
  F
565
- ] }), t[97] = Q, t[98] = k, t[99] = F, t[100] = at) : at = t[100], at;
561
+ ] }), t[97] = Z, t[98] = N, t[99] = F, t[100] = st) : st = t[100], st;
566
562
  }
567
563
  function Bi(i) {
568
564
  return i.layer;
@@ -571,16 +567,16 @@ function qi(i) {
571
567
  return i.position === "after";
572
568
  }
573
569
  function Ui(i) {
574
- return i.color;
570
+ return i.position;
575
571
  }
576
572
  function Ji(i) {
577
- return i.color;
573
+ return !U(i.position);
578
574
  }
579
575
  function Ki(i) {
580
- return i.color;
576
+ return i.position;
581
577
  }
582
578
  function Qi(i) {
583
- return i.color;
579
+ return !U(i.position);
584
580
  }
585
581
  function Zi(i) {
586
582
  return i.color;
@@ -603,10 +599,10 @@ function oe(i) {
603
599
  function ne(i) {
604
600
  return i.color;
605
601
  }
606
- function le(i) {
602
+ function re(i) {
607
603
  return i.color;
608
604
  }
609
- function re(i) {
605
+ function le(i) {
610
606
  return i.color;
611
607
  }
612
608
  function ae(i) {
@@ -628,25 +624,25 @@ function pe(i) {
628
624
  return i.position;
629
625
  }
630
626
  function me(i) {
631
- return !dt(i.position);
627
+ return !U(i.position);
632
628
  }
633
629
  function he(i) {
634
630
  return i.position;
635
631
  }
636
- function ge(i) {
637
- return !dt(i.position);
638
- }
639
632
  function de(i) {
633
+ return !U(i.position);
634
+ }
635
+ function ge(i) {
640
636
  return i.position;
641
637
  }
642
638
  function xe(i) {
643
- return !dt(i.position);
639
+ return !U(i.position);
644
640
  }
645
641
  function ye(i) {
646
642
  return i.position;
647
643
  }
648
644
  function ve(i) {
649
- return !dt(i.position);
645
+ return !U(i.position);
650
646
  }
651
647
  function Oe(i, t) {
652
648
  return {
@@ -658,111 +654,111 @@ function Ue(i) {
658
654
  const t = Jt.c(93), {
659
655
  data: o,
660
656
  graphTitle: $,
661
- colors: b,
657
+ colors: v,
662
658
  sources: n,
663
- graphDescription: r,
664
- height: f,
659
+ graphDescription: l,
660
+ height: c,
665
661
  width: C,
666
- footNote: wt,
662
+ footNote: bt,
667
663
  colorDomain: pt,
668
- colorLegendTitle: At,
664
+ colorLegendTitle: It,
669
665
  radius: mt,
670
- padding: et,
671
- backgroundColor: l,
672
- leftMargin: ot,
666
+ padding: ot,
667
+ backgroundColor: r,
668
+ leftMargin: nt,
673
669
  rightMargin: S,
674
670
  topMargin: T,
675
- bottomMargin: U,
676
- tooltip: nt,
677
- relativeHeight: J,
671
+ bottomMargin: J,
672
+ tooltip: rt,
673
+ relativeHeight: K,
678
674
  onSeriesMouseOver: lt,
679
- showColorScale: d,
680
- highlightedDataPoints: h,
681
- graphID: xt,
682
- minValue: K,
683
- maxValue: w,
684
- onSeriesMouseClick: m,
685
- noOfTicks: v,
686
- graphDownload: u,
687
- dataDownload: g,
688
- prefix: Z,
689
- suffix: _,
675
+ showColorScale: b,
676
+ highlightedDataPoints: x,
677
+ graphID: gt,
678
+ minValue: Q,
679
+ maxValue: O,
680
+ onSeriesMouseClick: f,
681
+ noOfTicks: w,
682
+ graphDownload: p,
683
+ dataDownload: m,
684
+ prefix: _,
685
+ suffix: tt,
690
686
  stripType: j,
691
- language: Mt,
692
- highlightColor: yt,
693
- dotOpacity: Vt,
694
- showNAColor: jt,
695
- minHeight: Ct,
696
- theme: Nt,
697
- ariaLabel: rt,
687
+ language: wt,
688
+ highlightColor: xt,
689
+ dotOpacity: Mt,
690
+ showNAColor: Vt,
691
+ minHeight: jt,
692
+ theme: kt,
693
+ ariaLabel: at,
698
694
  valueColor: M,
699
695
  resetSelectionOnDoubleClick: ht,
700
- detailsOnClick: vt,
696
+ detailsOnClick: yt,
701
697
  orientation: D,
702
- styles: x,
703
- classNames: p,
704
- animate: Dt,
705
- dimmedOpacity: gt,
706
- precision: It,
707
- customLayers: tt,
708
- showDataMinMax: y
709
- } = i, B = mt === void 0 ? 5 : mt, q = l === void 0 ? !1 : l, E = d === void 0 ? !0 : d;
698
+ styles: d,
699
+ classNames: u,
700
+ animate: Ct,
701
+ dimmedOpacity: dt,
702
+ precision: Dt,
703
+ customLayers: it,
704
+ showDataMinMax: g
705
+ } = i, B = mt === void 0 ? 5 : mt, q = r === void 0 ? !1 : r, E = b === void 0 ? !0 : b;
710
706
  let I;
711
- t[0] !== h ? (I = h === void 0 ? [] : h, t[0] = h, t[1] = I) : I = t[1];
712
- const V = I, L = v === void 0 ? 2 : v, A = u === void 0 ? !1 : u, N = g === void 0 ? !1 : g, P = Z === void 0 ? "" : Z, H = _ === void 0 ? "" : _, W = j === void 0 ? "dot" : j, X = Mt === void 0 ? "en" : Mt, Y = Vt === void 0 ? 0.3 : Vt, G = jt === void 0 ? !0 : jt, z = Ct === void 0 ? 0 : Ct, O = Nt === void 0 ? "light" : Nt, R = ht === void 0 ? !0 : ht, Q = D === void 0 ? "vertical" : D, k = Dt === void 0 ? !1 : Dt, F = gt === void 0 ? 0.3 : gt, at = It === void 0 ? 2 : It;
713
- let kt;
714
- t[2] !== tt ? (kt = tt === void 0 ? [] : tt, t[2] = tt, t[3] = kt) : kt = t[3];
715
- const st = kt, ct = y === void 0 ? !1 : y, ut = Q === "horizontal" ? Fi : gi, [$t, Ot] = bt(0), [St, ft] = bt(0), [Tt, e] = bt(void 0), c = Bt(null), Kt = Bt(null);
707
+ t[0] !== x ? (I = x === void 0 ? [] : x, t[0] = x, t[1] = I) : I = t[1];
708
+ const V = I, L = w === void 0 ? 2 : w, k = p === void 0 ? !1 : p, A = m === void 0 ? !1 : m, P = _ === void 0 ? "" : _, H = tt === void 0 ? "" : tt, W = j === void 0 ? "dot" : j, X = wt === void 0 ? "en" : wt, Y = Mt === void 0 ? 0.3 : Mt, G = Vt === void 0 ? !0 : Vt, z = jt === void 0 ? 0 : jt, y = kt === void 0 ? "light" : kt, R = ht === void 0 ? !0 : ht, Z = D === void 0 ? "vertical" : D, N = Ct === void 0 ? !1 : Ct, F = dt === void 0 ? 0.3 : dt, st = Dt === void 0 ? 2 : Dt;
709
+ let At;
710
+ t[2] !== it ? (At = it === void 0 ? [] : it, t[2] = it, t[3] = At) : At = t[3];
711
+ const ct = At, Tt = g === void 0 ? !1 : g, ut = Z === "horizontal" ? Fi : di, [Nt, vt] = Ot(0), [$t, ft] = Ot(0), [St, e] = Ot(void 0), s = Bt(null), Kt = Bt(null);
716
712
  let zt, Rt;
717
713
  t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zt = () => {
718
714
  const Qt = new ResizeObserver((Zt) => {
719
- Ot(Zt[0].target.clientWidth || 620), ft(Zt[0].target.clientHeight || 480);
715
+ vt(Zt[0].target.clientWidth || 620), ft(Zt[0].target.clientHeight || 480);
720
716
  });
721
- return c.current && Qt.observe(c.current), () => Qt.disconnect();
717
+ return s.current && Qt.observe(s.current), () => Qt.disconnect();
722
718
  }, Rt = [], t[4] = zt, t[5] = Rt) : (zt = t[4], Rt = t[5]), si(zt, Rt);
723
- const qt = p?.graphContainer, Ut = x?.graphContainer;
719
+ const qt = u?.graphContainer, Ut = d?.graphContainer;
724
720
  let Et;
725
- t[6] !== p?.description || t[7] !== p?.title || t[8] !== o || t[9] !== N || t[10] !== r || t[11] !== A || t[12] !== $ || t[13] !== x?.description || t[14] !== x?.title || t[15] !== C ? (Et = $ || r || A || N ? /* @__PURE__ */ s.jsx(hi, { styles: {
726
- title: x?.title,
727
- description: x?.description
721
+ t[6] !== u?.description || t[7] !== u?.title || t[8] !== o || t[9] !== A || t[10] !== l || t[11] !== k || t[12] !== $ || t[13] !== d?.description || t[14] !== d?.title || t[15] !== C ? (Et = $ || l || k || A ? /* @__PURE__ */ a.jsx(hi, { styles: {
722
+ title: d?.title,
723
+ description: d?.description
728
724
  }, classNames: {
729
- title: p?.title,
730
- description: p?.description
731
- }, graphTitle: $, graphDescription: r, width: C, graphDownload: A ? Kt : void 0, dataDownload: N ? o.map(Ie).filter(De).length > 0 ? o.map(Ce).filter(je) : o.filter(Ve) : null }) : null, t[6] = p?.description, t[7] = p?.title, t[8] = o, t[9] = N, t[10] = r, t[11] = A, t[12] = $, t[13] = x?.description, t[14] = x?.title, t[15] = C, t[16] = Et) : Et = t[16];
725
+ title: u?.title,
726
+ description: u?.description
727
+ }, graphTitle: $, graphDescription: l, width: C, graphDownload: k ? Kt : void 0, dataDownload: A ? o.map(Ie).filter(De).length > 0 ? o.map(Ce).filter(je) : o.filter(Ve) : null }) : null, t[6] = u?.description, t[7] = u?.title, t[8] = o, t[9] = A, t[10] = l, t[11] = k, t[12] = $, t[13] = d?.description, t[14] = d?.title, t[15] = C, t[16] = Et) : Et = t[16];
732
728
  let Lt;
733
- t[17] !== p?.colorLegend || t[18] !== pt || t[19] !== At || t[20] !== b || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== O || t[25] !== C ? (Lt = E !== !1 && o.filter(Me).length !== 0 && o.length > 0 ? /* @__PURE__ */ s.jsx(pi, { width: C, colorLegendTitle: At, colors: b || a[O].categoricalColors.colors, colorDomain: pt || _t(o, "color", !0), setSelectedColor: e, showNAColor: G, className: p?.colorLegend }) : null, t[17] = p?.colorLegend, t[18] = pt, t[19] = At, t[20] = b, t[21] = o, t[22] = E, t[23] = G, t[24] = O, t[25] = C, t[26] = Lt) : Lt = t[26];
729
+ t[17] !== u?.colorLegend || t[18] !== pt || t[19] !== It || t[20] !== v || t[21] !== o || t[22] !== E || t[23] !== G || t[24] !== y || t[25] !== C ? (Lt = E !== !1 && o.filter(Me).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(pi, { width: C, colorLegendTitle: It, colors: v || h[y].categoricalColors.colors, colorDomain: pt || _t(o, "color", !0), setSelectedColor: e, showNAColor: G, className: u?.colorLegend }) : null, t[17] = u?.colorLegend, t[18] = pt, t[19] = It, t[20] = v, t[21] = o, t[22] = E, t[23] = G, t[24] = y, t[25] = C, t[26] = Lt) : Lt = t[26];
734
730
  let Pt;
735
- t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ s.jsx(fi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
731
+ t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ a.jsx(fi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
736
732
  let Ht;
737
- t[29] !== ut || t[30] !== k || t[31] !== U || t[32] !== p || t[33] !== pt || t[34] !== b || t[35] !== st || t[36] !== o || t[37] !== vt || t[38] !== F || t[39] !== Y || t[40] !== yt || t[41] !== V || t[42] !== ot || t[43] !== w || t[44] !== K || t[45] !== L || t[46] !== m || t[47] !== lt || t[48] !== at || t[49] !== P || t[50] !== B || t[51] !== R || t[52] !== S || t[53] !== Tt || t[54] !== ct || t[55] !== W || t[56] !== x || t[57] !== H || t[58] !== St || t[59] !== $t || t[60] !== O || t[61] !== nt || t[62] !== T || t[63] !== M ? (Ht = $t && St && o.length > 0 ? /* @__PURE__ */ s.jsx(ut, { data: o, width: $t, showDataMinMax: ct, height: St, colorDomain: o.filter(we).length === 0 ? [] : pt || _t(o, "color", !0), colors: o.filter(be).length === 0 ? b ? [b] : [a.primaryColors["blue-600"]] : b || a[O].categoricalColors.colors, selectedColor: Tt, radius: B, leftMargin: ot, rightMargin: S, topMargin: T, bottomMargin: U, tooltip: nt, onSeriesMouseOver: lt, highlightedDataPoints: V, minValue: K, maxValue: w, onSeriesMouseClick: m, prefix: P, suffix: H, stripType: W, highlightColor: yt, dotOpacity: Y, resetSelectionOnDoubleClick: R, detailsOnClick: vt, styles: x, classNames: p, valueColor: M, animate: k === !0 ? {
733
+ t[29] !== ut || t[30] !== N || t[31] !== J || t[32] !== u || t[33] !== pt || t[34] !== v || t[35] !== ct || t[36] !== o || t[37] !== yt || t[38] !== F || t[39] !== Y || t[40] !== xt || t[41] !== V || t[42] !== nt || t[43] !== O || t[44] !== Q || t[45] !== L || t[46] !== f || t[47] !== lt || t[48] !== st || t[49] !== P || t[50] !== B || t[51] !== R || t[52] !== S || t[53] !== St || t[54] !== Tt || t[55] !== W || t[56] !== d || t[57] !== H || t[58] !== $t || t[59] !== Nt || t[60] !== y || t[61] !== rt || t[62] !== T || t[63] !== M ? (Ht = Nt && $t && o.length > 0 ? /* @__PURE__ */ a.jsx(ut, { data: o, width: Nt, showDataMinMax: Tt, height: $t, colorDomain: o.filter(we).length === 0 ? [] : pt || _t(o, "color", !0), colors: o.filter(be).length === 0 ? v ? [v] : [h.primaryColors["blue-600"]] : v || h[y].categoricalColors.colors, selectedColor: St, radius: B, leftMargin: nt, rightMargin: S, topMargin: T, bottomMargin: J, tooltip: rt, onSeriesMouseOver: lt, highlightedDataPoints: V, minValue: Q, maxValue: O, onSeriesMouseClick: f, prefix: P, suffix: H, stripType: W, highlightColor: xt, dotOpacity: Y, resetSelectionOnDoubleClick: R, detailsOnClick: yt, styles: d, classNames: u, valueColor: M, animate: N === !0 ? {
738
734
  duration: 0.5,
739
735
  once: !0,
740
736
  amount: 0.5
741
- } : k || {
737
+ } : N || {
742
738
  duration: 0,
743
739
  once: !0,
744
740
  amount: 0
745
- }, noOfTicks: L, dimmedOpacity: F, precision: at, customLayers: st }) : null, t[29] = ut, t[30] = k, t[31] = U, t[32] = p, t[33] = pt, t[34] = b, t[35] = st, t[36] = o, t[37] = vt, t[38] = F, t[39] = Y, t[40] = yt, t[41] = V, t[42] = ot, t[43] = w, t[44] = K, t[45] = L, t[46] = m, t[47] = lt, t[48] = at, t[49] = P, t[50] = B, t[51] = R, t[52] = S, t[53] = Tt, t[54] = ct, t[55] = W, t[56] = x, t[57] = H, t[58] = St, t[59] = $t, t[60] = O, t[61] = nt, t[62] = T, t[63] = M, t[64] = Ht) : Ht = t[64];
741
+ }, noOfTicks: L, dimmedOpacity: F, precision: st, customLayers: ct }) : null, t[29] = ut, t[30] = N, t[31] = J, t[32] = u, t[33] = pt, t[34] = v, t[35] = ct, t[36] = o, t[37] = yt, t[38] = F, t[39] = Y, t[40] = xt, t[41] = V, t[42] = nt, t[43] = O, t[44] = Q, t[45] = L, t[46] = f, t[47] = lt, t[48] = st, t[49] = P, t[50] = B, t[51] = R, t[52] = S, t[53] = St, t[54] = Tt, t[55] = W, t[56] = d, t[57] = H, t[58] = $t, t[59] = Nt, t[60] = y, t[61] = rt, t[62] = T, t[63] = M, t[64] = Ht) : Ht = t[64];
746
742
  let Wt;
747
- t[65] !== Pt || t[66] !== Ht ? (Wt = /* @__PURE__ */ s.jsxs(ci, { ref: c, children: [
743
+ t[65] !== Pt || t[66] !== Ht ? (Wt = /* @__PURE__ */ a.jsxs(ci, { ref: s, children: [
748
744
  Pt,
749
745
  Ht
750
746
  ] }), t[65] = Pt, t[66] = Ht, t[67] = Wt) : Wt = t[67];
751
747
  let Xt;
752
- t[68] !== p?.footnote || t[69] !== p?.source || t[70] !== wt || t[71] !== n || t[72] !== x?.footnote || t[73] !== x?.source || t[74] !== C ? (Xt = n || wt ? /* @__PURE__ */ s.jsx(mi, { styles: {
753
- footnote: x?.footnote,
754
- source: x?.source
748
+ t[68] !== u?.footnote || t[69] !== u?.source || t[70] !== bt || t[71] !== n || t[72] !== d?.footnote || t[73] !== d?.source || t[74] !== C ? (Xt = n || bt ? /* @__PURE__ */ a.jsx(mi, { styles: {
749
+ footnote: d?.footnote,
750
+ source: d?.source
755
751
  }, classNames: {
756
- footnote: p?.footnote,
757
- source: p?.source
758
- }, sources: n, footNote: wt, width: C }) : null, t[68] = p?.footnote, t[69] = p?.source, t[70] = wt, t[71] = n, t[72] = x?.footnote, t[73] = x?.source, t[74] = C, t[75] = Xt) : Xt = t[75];
752
+ footnote: u?.footnote,
753
+ source: u?.source
754
+ }, sources: n, footNote: bt, width: C }) : null, t[68] = u?.footnote, t[69] = u?.source, t[70] = bt, t[71] = n, t[72] = d?.footnote, t[73] = d?.source, t[74] = C, t[75] = Xt) : Xt = t[75];
759
755
  let Ft;
760
- return t[76] !== rt || t[77] !== q || t[78] !== xt || t[79] !== f || t[80] !== X || t[81] !== z || t[82] !== et || t[83] !== J || t[84] !== qt || t[85] !== Ut || t[86] !== Et || t[87] !== Lt || t[88] !== Wt || t[89] !== Xt || t[90] !== O || t[91] !== C ? (Ft = /* @__PURE__ */ s.jsxs(ui, { className: qt, style: Ut, id: xt, ref: Kt, "aria-label": rt, backgroundColor: q, theme: O, language: X, minHeight: z, width: C, height: f, relativeHeight: J, padding: et, children: [
756
+ return t[76] !== at || t[77] !== q || t[78] !== gt || t[79] !== c || t[80] !== X || t[81] !== z || t[82] !== ot || t[83] !== K || t[84] !== qt || t[85] !== Ut || t[86] !== Et || t[87] !== Lt || t[88] !== Wt || t[89] !== Xt || t[90] !== y || t[91] !== C ? (Ft = /* @__PURE__ */ a.jsxs(ui, { className: qt, style: Ut, id: gt, ref: Kt, "aria-label": at, backgroundColor: q, theme: y, language: X, minHeight: z, width: C, height: c, relativeHeight: K, padding: ot, children: [
761
757
  Et,
762
758
  Lt,
763
759
  Wt,
764
760
  Xt
765
- ] }), t[76] = rt, t[77] = q, t[78] = xt, t[79] = f, t[80] = X, t[81] = z, t[82] = et, t[83] = J, t[84] = qt, t[85] = Ut, t[86] = Et, t[87] = Lt, t[88] = Wt, t[89] = Xt, t[90] = O, t[91] = C, t[92] = Ft) : Ft = t[92], Ft;
761
+ ] }), t[76] = at, t[77] = q, t[78] = gt, t[79] = c, t[80] = X, t[81] = z, t[82] = ot, t[83] = K, t[84] = qt, t[85] = Ut, t[86] = Et, t[87] = Lt, t[88] = Wt, t[89] = Xt, t[90] = y, t[91] = C, t[92] = Ft) : Ft = t[92], Ft;
766
762
  }
767
763
  function be(i) {
768
764
  return i.color;