@undp/data-viz 2.0.0 → 2.0.1

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 (112) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +957 -957
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +185 -185
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +2 -4
  23. package/dist/CirclePackingGraph.js.map +1 -1
  24. package/dist/Data/barChart.json +70 -0
  25. package/dist/Data/basic.csv +20 -0
  26. package/dist/DifferenceLineChart.cjs +1 -1
  27. package/dist/DifferenceLineChart.cjs.map +1 -1
  28. package/dist/DifferenceLineChart.js +224 -223
  29. package/dist/DifferenceLineChart.js.map +1 -1
  30. package/dist/DotDensityMap.cjs +1 -1
  31. package/dist/DotDensityMap.cjs.map +1 -1
  32. package/dist/DotDensityMap.js +156 -156
  33. package/dist/DotDensityMap.js.map +1 -1
  34. package/dist/DualAxisLineChart.cjs +1 -1
  35. package/dist/DualAxisLineChart.cjs.map +1 -1
  36. package/dist/DualAxisLineChart.js +326 -325
  37. package/dist/DualAxisLineChart.js.map +1 -1
  38. package/dist/GeoHubCompareMaps.cjs +1 -1
  39. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  40. package/dist/GeoHubCompareMaps.js +183 -183
  41. package/dist/GeoHubCompareMaps.js.map +1 -1
  42. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  43. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  44. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  45. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  46. package/dist/GriddedGraphs.cjs +1 -1
  47. package/dist/GriddedGraphs.js +1 -1
  48. package/dist/Histogram.cjs +1 -1
  49. package/dist/Histogram.js +1 -1
  50. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  51. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  52. package/dist/LineChartWithConfidenceInterval.js +133 -132
  53. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  54. package/dist/MultiGraphDashboard.cjs +1 -1
  55. package/dist/MultiGraphDashboard.cjs.map +1 -1
  56. package/dist/MultiGraphDashboard.js +52 -50
  57. package/dist/MultiGraphDashboard.js.map +1 -1
  58. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  59. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  60. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  61. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  62. package/dist/MultiLineAltChart.cjs +1 -1
  63. package/dist/MultiLineAltChart.cjs.map +1 -1
  64. package/dist/MultiLineAltChart.js +149 -148
  65. package/dist/MultiLineAltChart.js.map +1 -1
  66. package/dist/MultiLineChart.cjs +1 -1
  67. package/dist/MultiLineChart.cjs.map +1 -1
  68. package/dist/MultiLineChart.js +182 -181
  69. package/dist/MultiLineChart.js.map +1 -1
  70. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  71. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  72. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  73. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  74. package/dist/SimpleLineChart.cjs +1 -1
  75. package/dist/SimpleLineChart.cjs.map +1 -1
  76. package/dist/SimpleLineChart.js +123 -122
  77. package/dist/SimpleLineChart.js.map +1 -1
  78. package/dist/SingleGraphDashboard.cjs +1 -1
  79. package/dist/SingleGraphDashboard.cjs.map +1 -1
  80. package/dist/SingleGraphDashboard.js +83 -79
  81. package/dist/SingleGraphDashboard.js.map +1 -1
  82. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  83. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  84. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  85. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  86. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  87. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  88. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  89. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  90. package/dist/StatCardFromData.cjs +1 -1
  91. package/dist/StatCardFromData.cjs.map +1 -1
  92. package/dist/StatCardFromData.js +44 -46
  93. package/dist/StatCardFromData.js.map +1 -1
  94. package/dist/ThreeDGlobe.cjs +1 -1
  95. package/dist/ThreeDGlobe.cjs.map +1 -1
  96. package/dist/ThreeDGlobe.js +134 -134
  97. package/dist/ThreeDGlobe.js.map +1 -1
  98. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  99. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  100. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  101. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  102. package/dist/index-C6LorfZ-.cjs +2 -0
  103. package/dist/index-C6LorfZ-.cjs.map +1 -0
  104. package/dist/index-Ceppbd8C.js +342 -0
  105. package/dist/index-Ceppbd8C.js.map +1 -0
  106. package/dist/index.cjs +1 -1
  107. package/dist/index.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/index-DoY3Ga3W.cjs +0 -2
  110. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  111. package/dist/index-leTnKT2q.js +0 -329
  112. package/dist/index-leTnKT2q.js.map +0 -1
@@ -30,108 +30,108 @@ import { a as Ue } from "./init-BJFW6EwE.js";
30
30
  function Xe(d) {
31
31
  const {
32
32
  data: t,
33
- xDomain: k,
33
+ xDomain: b,
34
34
  mapData: C,
35
35
  xColorLegendTitle: It,
36
36
  yDomain: tt,
37
37
  yColorLegendTitle: et,
38
- width: w,
39
- height: f,
40
- colors: m,
38
+ width: k,
39
+ height: y,
40
+ colors: x,
41
41
  scale: zt,
42
42
  centerPoint: $,
43
43
  mapBorderWidth: S,
44
- mapNoDataColor: W,
44
+ mapNoDataColor: _,
45
45
  mapBorderColor: gt,
46
46
  tooltip: ot,
47
47
  onSeriesMouseOver: ft,
48
48
  zoomScaleExtend: yt,
49
49
  zoomTranslateExtend: xt,
50
- highlightedIds: G,
50
+ highlightedIds: H,
51
51
  onSeriesMouseClick: rt,
52
- mapProperty: R,
52
+ mapProperty: G,
53
53
  resetSelectionOnDoubleClick: _t,
54
- detailsOnClick: p,
54
+ detailsOnClick: w,
55
55
  showColorScale: vt,
56
56
  styles: Wt,
57
- classNames: U,
58
- mapProjection: B,
59
- zoomInteraction: L,
57
+ classNames: R,
58
+ mapProjection: W,
59
+ zoomInteraction: O,
60
60
  animate: D,
61
- dimmedOpacity: P,
61
+ dimmedOpacity: L,
62
62
  customLayers: at,
63
63
  collapseColorScaleByDefault: bt
64
- } = d, [Bt, kt] = N(bt === void 0 ? !(w < 680) : !bt), [X, wt] = N(void 0), [A, it] = N(void 0), [T, nt] = N(void 0), [st, h] = N(void 0), [u, Y] = N(void 0), F = Pt(null), lt = We(F, {
64
+ } = d, [Bt, kt] = N(bt === void 0 ? !(k < 680) : !bt), [U, wt] = N(void 0), [B, it] = N(void 0), [A, nt] = N(void 0), [st, m] = N(void 0), [p, X] = N(void 0), T = Pt(null), lt = We(T, {
65
65
  once: D.once,
66
66
  amount: D.amount
67
- }), jt = Pt(null), V = Pt(null);
67
+ }), jt = Pt(null), F = Pt(null);
68
68
  qt(() => {
69
- const e = re(jt.current), n = re(F.current), y = (r) => {
70
- if (L === "noZoom") return !1;
71
- if (L === "button") return !r.type.includes("wheel");
72
- const a = r.type === "wheel", c = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
73
- return c ? !0 : a ? L === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
74
- }, l = je().scaleExtent(yt).translateExtent(xt || [[-20, -20], [w + 20, f + 20]]).filter(y).on("zoom", ({
69
+ const e = re(jt.current), n = re(T.current), u = (r) => {
70
+ if (O === "noZoom") return !1;
71
+ if (O === "button") return !r.type.includes("wheel");
72
+ const a = r.type === "wheel", l = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
73
+ return l ? !0 : a ? O === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
74
+ }, s = je().scaleExtent(yt).translateExtent(xt || [[-20, -20], [k + 20, y + 20]]).filter(u).on("zoom", ({
75
75
  transform: r
76
76
  }) => {
77
77
  e.attr("transform", r);
78
78
  });
79
- n.call(l), V.current = l;
80
- }, [f, w, L]);
81
- const q = Ce(C), I = Ee(C), M = q[2] - q[0], z = q[3] - q[1], ct = w * 190 / 960 * 360 / M, Ct = f * 190 / 678 * 180 / z, _ = zt * Math.min(ct, Ct), E = B === "mercator" ? $e().rotate([0, 0]).center($ || I.geometry.coordinates).translate([w / 2, f / 2]).scale(_) : B === "equalEarth" ? De().rotate([0, 0]).center($ || I.geometry.coordinates).translate([w / 2, f / 2]).scale(_) : B === "naturalEarth" ? Ne().rotate([0, 0]).center($ || I.geometry.coordinates).translate([w / 2, f / 2]).scale(_) : B === "orthographic" ? Se().rotate([0, 0]).center($ || I.geometry.coordinates).translate([w / 2, f / 2]).scale(_) : Me().rotate([0, 0]).center($ || I.geometry.coordinates).translate([w / 2, f / 2]).scale(_), $t = Array.from({
82
- length: k.length
79
+ n.call(s), F.current = s;
80
+ }, [y, k, O]);
81
+ const Y = Ce(C), P = Ee(C), M = Y[2] - Y[0], I = Y[3] - Y[1], ct = k * 190 / 960 * 360 / M, Ct = y * 190 / 678 * 180 / I, z = zt * Math.min(ct, Ct), E = W === "mercator" ? $e().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "equalEarth" ? De().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "naturalEarth" ? Ne().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : W === "orthographic" ? Se().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z) : Me().rotate([0, 0]).center($ || P.geometry.coordinates).translate([k / 2, y / 2]).scale(z), $t = Array.from({
82
+ length: b.length
83
83
  }, (e, n) => n), Dt = Array.from({
84
84
  length: tt.length
85
- }, (e, n) => n), Nt = ce().domain(k).range($t), St = ce().domain(tt).range(Dt), J = (e) => {
86
- if (!F.current || !V.current) return;
87
- re(F.current).call(V.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
85
+ }, (e, n) => n), Nt = ce().domain(b).range($t), St = ce().domain(tt).range(Dt), q = (e) => {
86
+ if (!T.current || !F.current) return;
87
+ re(T.current).call(F.current.scaleBy, e === "in" ? 1.2 : 1 / 1.2);
88
88
  };
89
89
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
90
90
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
91
- /* @__PURE__ */ o.jsx(Lt.svg, { viewBox: `0 0 ${w} ${f}`, width: `${w}px`, height: `${f}px`, ref: F, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: jt, children: [
91
+ /* @__PURE__ */ o.jsx(Lt.svg, { viewBox: `0 0 ${k} ${y}`, width: `${k}px`, height: `${y}px`, ref: T, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: jt, children: [
92
92
  at.filter((e) => e.position === "before").map((e) => e.layer),
93
93
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
- C.features.map((e, n) => t.findIndex((l) => l.id === e.properties[R]) !== -1 ? null : /* @__PURE__ */ o.jsx(Lt.g, { opacity: X ? P : G.length !== 0 ? G.indexOf(e.properties[R]) !== -1 ? 1 : P : 1, children: e.geometry.type === "MultiPolygon" ? (
94
+ C.features.map((e, n) => t.findIndex((s) => s.id === e.properties[G]) !== -1 ? null : /* @__PURE__ */ o.jsx(Lt.g, { opacity: U ? L : H.length !== 0 ? H.indexOf(e.properties[G]) !== -1 ? 1 : L : 1, children: e.geometry.type === "MultiPolygon" ? (
95
95
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
96
- e.geometry.coordinates.map((l, r) => {
96
+ e.geometry.coordinates.map((s, r) => {
97
97
  let a = "";
98
- return l.forEach((c) => {
98
+ return s.forEach((l) => {
99
99
  let i = " M";
100
- c.forEach((g, x) => {
101
- const s = E([g[0], g[1]]);
102
- x !== c.length - 1 ? i = `${i}${s[0]} ${s[1]}L` : i = `${i}${s[0]} ${s[1]}`;
100
+ l.forEach((h, g) => {
101
+ const c = E([h[0], h[1]]);
102
+ g !== l.length - 1 ? i = `${i}${c[0]} ${c[1]}L` : i = `${i}${c[0]} ${c[1]}`;
103
103
  }), a += i;
104
104
  }), /* @__PURE__ */ o.jsx("path", { d: a, style: {
105
105
  stroke: gt,
106
106
  strokeWidth: S,
107
- fill: W
107
+ fill: _
108
108
  } }, r);
109
109
  })
110
110
  ) : (
111
111
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
112
- e.geometry.coordinates.map((l, r) => {
112
+ e.geometry.coordinates.map((s, r) => {
113
113
  let a = "M";
114
- return l.forEach((c, i) => {
115
- const g = E([c[0], c[1]]);
116
- i !== l.length - 1 ? a = `${a}${g[0]} ${g[1]}L` : a = `${a}${g[0]} ${g[1]}`;
114
+ return s.forEach((l, i) => {
115
+ const h = E([l[0], l[1]]);
116
+ i !== s.length - 1 ? a = `${a}${h[0]} ${h[1]}L` : a = `${a}${h[0]} ${h[1]}`;
117
117
  }), /* @__PURE__ */ o.jsx("path", { d: a, style: {
118
118
  stroke: gt,
119
119
  strokeWidth: S,
120
- fill: W
120
+ fill: _
121
121
  } }, r);
122
122
  })
123
123
  ) }, n)),
124
124
  /* @__PURE__ */ o.jsx(Be, { children: t.map((e) => {
125
125
  const n = C.features.findIndex(
126
126
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
- (a) => e.id === a.properties[R]
128
- ), y = le(e.x) ? void 0 : Nt(e.x), l = le(e.y) ? void 0 : St(e.y), r = y !== void 0 && l !== void 0 ? m[l][y] : W;
127
+ (a) => e.id === a.properties[G]
128
+ ), u = le(e.x) ? void 0 : Nt(e.x), s = le(e.y) ? void 0 : St(e.y), r = u !== void 0 && s !== void 0 ? x[s][u] : _;
129
129
  return /* @__PURE__ */ o.jsx(Lt.g, { variants: {
130
130
  initial: {
131
131
  opacity: 0
132
132
  },
133
133
  whileInView: {
134
- opacity: X ? X === r ? 1 : P : G.length !== 0 ? G.indexOf(e.id) !== -1 ? 1 : P : 1,
134
+ opacity: U ? U === r ? 1 : L : H.length !== 0 ? H.indexOf(e.id) !== -1 ? 1 : L : 1,
135
135
  transition: {
136
136
  duration: D.duration
137
137
  }
@@ -142,23 +142,23 @@ function Xe(d) {
142
142
  duration: D.duration
143
143
  }
144
144
  }, onMouseEnter: (a) => {
145
- nt(e), Y(a.clientY), h(a.clientX), ft?.(e);
145
+ nt(e), X(a.clientY), m(a.clientX), ft?.(e);
146
146
  }, onClick: () => {
147
- (rt || p) && (we(A, e) && _t ? (it(void 0), rt?.(void 0)) : (it(e), rt?.(e)));
147
+ (rt || w) && (we(B, e) && _t ? (it(void 0), rt?.(void 0)) : (it(e), rt?.(e)));
148
148
  }, onMouseMove: (a) => {
149
- nt(e), Y(a.clientY), h(a.clientX);
149
+ nt(e), X(a.clientY), m(a.clientX);
150
150
  }, onMouseLeave: () => {
151
- nt(void 0), h(void 0), Y(void 0), ft?.(void 0);
151
+ nt(void 0), m(void 0), X(void 0), ft?.(void 0);
152
152
  }, children: n === -1 ? null : C.features[n].geometry.type === "MultiPolygon" ? C.features[n].geometry.coordinates.map(
153
153
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
- (a, c) => {
154
+ (a, l) => {
155
155
  let i = "";
156
- return a.forEach((g) => {
157
- let x = " M";
158
- g.forEach((s, Mt) => {
159
- const H = E([s[0], s[1]]);
160
- Mt !== g.length - 1 ? x = `${x}${H[0]} ${H[1]}L` : x = `${x}${H[0]} ${H[1]}`;
161
- }), i += x;
156
+ return a.forEach((h) => {
157
+ let g = " M";
158
+ h.forEach((c, Mt) => {
159
+ const V = E([c[0], c[1]]);
160
+ Mt !== h.length - 1 ? g = `${g}${V[0]} ${V[1]}L` : g = `${g}${V[0]} ${V[1]}`;
161
+ }), i += g;
162
162
  }), /* @__PURE__ */ o.jsx(Lt.path, { variants: {
163
163
  initial: {
164
164
  fill: r,
@@ -176,17 +176,17 @@ function Xe(d) {
176
176
  transition: {
177
177
  duration: D.duration
178
178
  }
179
- }, d: i, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
179
+ }, d: i, className: `${r === _ ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
180
180
  strokeWidth: S
181
- } }, `${e.id}-${c}`);
181
+ } }, `${e.id}-${l}`);
182
182
  }
183
183
  ) : C.features[n].geometry.coordinates.map(
184
184
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
185
- (a, c) => {
185
+ (a, l) => {
186
186
  let i = "M";
187
- return a.forEach((g, x) => {
188
- const s = E([g[0], g[1]]);
189
- x !== a.length - 1 ? i = `${i}${s[0]} ${s[1]}L` : i = `${i}${s[0]} ${s[1]}`;
187
+ return a.forEach((h, g) => {
188
+ const c = E([h[0], h[1]]);
189
+ g !== a.length - 1 ? i = `${i}${c[0]} ${c[1]}L` : i = `${i}${c[0]} ${c[1]}`;
190
190
  }), /* @__PURE__ */ o.jsx(Lt.path, { d: i, variants: {
191
191
  initial: {
192
192
  fill: r,
@@ -204,48 +204,48 @@ function Xe(d) {
204
204
  transition: {
205
205
  duration: D.duration
206
206
  }
207
- }, className: `${r === W ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
207
+ }, className: `${r === _ ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
208
208
  strokeWidth: S
209
- } }, `${e.id}-${c}`);
209
+ } }, `${e.id}-${l}`);
210
210
  }
211
211
  ) }, e.id);
212
212
  }) }),
213
- T ? C.features.filter(
213
+ A ? C.features.filter(
214
214
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
215
- (e) => e.properties[R] === T.id
215
+ (e) => e.properties[G] === A.id
216
216
  ).map((e, n) => /* @__PURE__ */ o.jsx("g", { children: e.geometry.type === "MultiPolygon" ? (
217
217
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
218
- e.geometry.coordinates.map((y, l) => {
218
+ e.geometry.coordinates.map((u, s) => {
219
219
  let r = "";
220
- return y.forEach((a) => {
221
- let c = " M";
222
- a.forEach((i, g) => {
223
- const x = E([i[0], i[1]]);
224
- g !== a.length - 1 ? c = `${c}${x[0]} ${x[1]}L` : c = `${c}${x[0]} ${x[1]}`;
225
- }), r += c;
220
+ return u.forEach((a) => {
221
+ let l = " M";
222
+ a.forEach((i, h) => {
223
+ const g = E([i[0], i[1]]);
224
+ h !== a.length - 1 ? l = `${l}${g[0]} ${g[1]}L` : l = `${l}${g[0]} ${g[1]}`;
225
+ }), r += l;
226
226
  }), /* @__PURE__ */ o.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
227
227
  fill: "none",
228
228
  fillOpacity: 0,
229
229
  strokeWidth: "0.5"
230
- } }, l);
230
+ } }, s);
231
231
  })
232
232
  ) : (
233
233
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
234
- e.geometry.coordinates.map((y, l) => {
234
+ e.geometry.coordinates.map((u, s) => {
235
235
  let r = "M";
236
- return y.forEach((a, c) => {
236
+ return u.forEach((a, l) => {
237
237
  const i = E([a[0], a[1]]);
238
- c !== y.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
238
+ l !== u.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
239
239
  }), /* @__PURE__ */ o.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
240
240
  fill: "none",
241
241
  fillOpacity: 0,
242
242
  strokeWidth: "0.5"
243
- } }, l);
243
+ } }, s);
244
244
  })
245
245
  ) }, n)) : null,
246
246
  at.filter((e) => e.position === "after").map((e) => e.layer)
247
247
  ] }) }),
248
- vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend", U?.colorLegend), children: Bt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
248
+ vt === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: ue("absolute left-4 bottom-4 map-color-legend", R?.colorLegend), children: Bt ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
249
249
  /* @__PURE__ */ o.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
250
250
  kt(!1);
251
251
  }, children: /* @__PURE__ */ o.jsx(Ie, {}) }),
@@ -254,15 +254,15 @@ function Xe(d) {
254
254
  }, children: [
255
255
  /* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
256
256
  /* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
257
- m.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((y, l) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: l * 25 + 1, fill: y, width: 23, height: 23, strokeWidth: X === y ? 2 : 0.25, style: {
257
+ x.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - n * 25})`, children: e.map((u, s) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: s * 25 + 1, fill: u, width: 23, height: 23, strokeWidth: U === u ? 2 : 0.25, style: {
258
258
  cursor: "pointer"
259
259
  }, onMouseOver: () => {
260
- wt(y);
260
+ wt(u);
261
261
  }, onMouseLeave: () => {
262
262
  wt(void 0);
263
- } }, l)) }, n)),
264
- /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: k.map((e, n) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (n + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }, n)) }),
265
- tt.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(k.length + 1, 5), 4) * 25 + 10},${100 - n * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }) }, n))
263
+ } }, s)) }, n)),
264
+ /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: b.map((e, n) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (n + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }, n)) }),
265
+ tt.map((e, n) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(b.length + 1, 5), 4) * 25 + 10},${100 - n * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof e == "string" || e < 1 ? e : se(e, "NA") }) }, n))
266
266
  ] }) }),
267
267
  /* @__PURE__ */ o.jsx(ne, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
268
268
  display: "-webkit-box",
@@ -285,94 +285,94 @@ function Xe(d) {
285
285
  ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start", onClick: () => {
286
286
  kt(!0);
287
287
  }, children: /* @__PURE__ */ o.jsx("div", { className: "show-color-legend-button items-start text-sm font-medium cursor-pointer p-2 mb-0 flex text-primary-black dark:text-primary-gray-300 bg-primary-gray-300 dark:bg-primary-gray-600 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" }) }) }),
288
- L === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
289
- /* @__PURE__ */ o.jsx("button", { onClick: () => J("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
290
- /* @__PURE__ */ o.jsx("button", { onClick: () => J("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
288
+ O === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
289
+ /* @__PURE__ */ o.jsx("button", { onClick: () => q("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
290
+ /* @__PURE__ */ o.jsx("button", { onClick: () => q("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
291
291
  ] })
292
292
  ] }),
293
- T && ot && st && u ? /* @__PURE__ */ o.jsx(Le, { data: T, body: ot, xPos: st, yPos: u, backgroundStyle: Wt?.tooltip, className: U?.tooltip }) : null,
294
- p && A !== void 0 ? /* @__PURE__ */ o.jsx(Oe, { open: A !== void 0, onClose: () => {
293
+ A && ot && st && p ? /* @__PURE__ */ o.jsx(Le, { data: A, body: ot, xPos: st, yPos: p, backgroundStyle: Wt?.tooltip, className: R?.tooltip }) : null,
294
+ w && B !== void 0 ? /* @__PURE__ */ o.jsx(Oe, { open: B !== void 0, onClose: () => {
295
295
  it(void 0);
296
- }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof p == "string" ? {
297
- __html: Pe(p, A)
298
- } : void 0, children: typeof p == "function" ? p(A) : null }) }) : null
296
+ }, children: /* @__PURE__ */ o.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof w == "string" ? {
297
+ __html: Pe(w, B)
298
+ } : void 0, children: typeof w == "function" ? w(B) : null }) }) : null
299
299
  ] });
300
300
  }
301
301
  function Po(d) {
302
302
  const t = ge.c(101), {
303
- data: k,
303
+ data: b,
304
304
  graphTitle: C,
305
305
  mapData: It,
306
306
  colors: tt,
307
307
  sources: et,
308
- graphDescription: w,
309
- height: f,
310
- width: m,
308
+ graphDescription: k,
309
+ height: y,
310
+ width: x,
311
311
  footNote: zt,
312
312
  xDomain: $,
313
313
  yDomain: S,
314
- xColorLegendTitle: W,
314
+ xColorLegendTitle: _,
315
315
  yColorLegendTitle: gt,
316
316
  tooltip: ot,
317
317
  scale: ft,
318
318
  centerPoint: yt,
319
319
  padding: xt,
320
- mapBorderWidth: G,
320
+ mapBorderWidth: H,
321
321
  mapNoDataColor: rt,
322
- backgroundColor: R,
322
+ backgroundColor: G,
323
323
  mapBorderColor: _t,
324
- relativeHeight: p,
324
+ relativeHeight: w,
325
325
  onSeriesMouseOver: vt,
326
326
  isWorldMap: Wt,
327
- zoomScaleExtend: U,
328
- zoomTranslateExtend: B,
329
- graphID: L,
327
+ zoomScaleExtend: R,
328
+ zoomTranslateExtend: W,
329
+ graphID: O,
330
330
  showColorScale: D,
331
- highlightedIds: P,
331
+ highlightedIds: L,
332
332
  onSeriesMouseClick: at,
333
333
  mapProperty: bt,
334
334
  graphDownload: Bt,
335
335
  dataDownload: kt,
336
- showAntarctica: X,
336
+ showAntarctica: U,
337
337
  language: wt,
338
- minHeight: A,
338
+ minHeight: B,
339
339
  theme: it,
340
- ariaLabel: T,
340
+ ariaLabel: A,
341
341
  resetSelectionOnDoubleClick: nt,
342
342
  detailsOnClick: st,
343
- styles: h,
344
- classNames: u,
345
- mapProjection: Y,
346
- zoomInteraction: F,
343
+ styles: m,
344
+ classNames: p,
345
+ mapProjection: X,
346
+ zoomInteraction: T,
347
347
  animate: lt,
348
348
  dimmedOpacity: jt,
349
- customLayers: V,
350
- timeline: q,
351
- collapseColorScaleByDefault: I
352
- } = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, z = tt === void 0 ? ae.light.bivariateColors.colors05x05 : tt, ct = zt === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : zt, Ct = W === void 0 ? "X Color key" : W, _ = gt === void 0 ? "Y Color key" : gt, E = ft === void 0 ? 0.95 : ft, $t = G === void 0 ? 0.5 : G, Dt = rt === void 0 ? ae.light.graphNoData : rt, Nt = R === void 0 ? !1 : R, St = _t === void 0 ? ae.light.grays["gray-500"] : _t, J = Wt === void 0 ? !0 : Wt;
349
+ customLayers: F,
350
+ timeline: Y,
351
+ collapseColorScaleByDefault: P
352
+ } = d, M = It === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : It, I = tt === void 0 ? ae.light.bivariateColors.colors05x05 : tt, ct = zt === void 0 ? "The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the Secretariat of the United Nations or UNDP concerning the legal status of any country, territory, city or area or its authorities, or concerning the delimitation of its frontiers or boundaries." : zt, Ct = _ === void 0 ? "X Color key" : _, z = gt === void 0 ? "Y Color key" : gt, E = ft === void 0 ? 0.95 : ft, $t = H === void 0 ? 0.5 : H, Dt = rt === void 0 ? ae.light.graphNoData : rt, Nt = G === void 0 ? !1 : G, St = _t === void 0 ? ae.light.grays["gray-500"] : _t, q = Wt === void 0 ? !0 : Wt;
353
353
  let e;
354
- t[0] !== U ? (e = U === void 0 ? [0.8, 6] : U, t[0] = U, t[1] = e) : e = t[1];
355
- const n = e, y = D === void 0 ? !0 : D;
356
- let l;
357
- t[2] !== P ? (l = P === void 0 ? [] : P, t[2] = P, t[3] = l) : l = t[3];
358
- const r = l, a = bt === void 0 ? "ISO3" : bt, c = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, g = X === void 0 ? !1 : X, x = wt === void 0 ? "en" : wt, s = A === void 0 ? 0 : A, Mt = it === void 0 ? "light" : it, H = nt === void 0 ? !0 : nt, Jt = F === void 0 ? "button" : F, At = lt === void 0 ? !1 : lt, Kt = jt === void 0 ? 0.3 : jt;
354
+ t[0] !== R ? (e = R === void 0 ? [0.8, 6] : R, t[0] = R, t[1] = e) : e = t[1];
355
+ const n = e, u = D === void 0 ? !0 : D;
356
+ let s;
357
+ t[2] !== L ? (s = L === void 0 ? [] : L, t[2] = L, t[3] = s) : s = t[3];
358
+ const r = s, a = bt === void 0 ? "ISO3" : bt, l = Bt === void 0 ? !1 : Bt, i = kt === void 0 ? !1 : kt, h = U === void 0 ? !1 : U, g = wt === void 0 ? "en" : wt, c = B === void 0 ? 0 : B, Mt = it === void 0 ? "light" : it, V = nt === void 0 ? !0 : nt, Jt = T === void 0 ? "button" : T, At = lt === void 0 ? !1 : lt, Kt = jt === void 0 ? 0.3 : jt;
359
359
  let Tt;
360
- t[4] !== V ? (Tt = V === void 0 ? [] : V, t[4] = V, t[5] = Tt) : Tt = t[5];
361
- const Zt = Tt, j = q === void 0 ? {
360
+ t[4] !== F ? (Tt = F === void 0 ? [] : F, t[4] = F, t[5] = Tt) : Tt = t[5];
361
+ const Zt = Tt, j = Y === void 0 ? {
362
362
  enabled: !1,
363
363
  autoplay: !1,
364
364
  showOnlyActiveDate: !0
365
- } : q, [O, me] = N(0), [Et, pe] = N(0), [K, Qt] = N(j.autoplay), v = Re(Ve(k, "date", !0).map((b) => be(`${b}`, j.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [Z, Ot] = N(j.autoplay ? 0 : v.length - 1), [dt, he] = N(void 0), te = Pt(null), ie = Pt(null);
365
+ } : Y, [J, me] = N(0), [Et, pe] = N(0), [K, Qt] = N(j.autoplay), f = Re(Ve(b, "date", !0).map((v) => be(`${v}`, j.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [Z, Ot] = N(j.autoplay ? 0 : f.length - 1), [dt, he] = N(void 0), te = Pt(null), ie = Pt(null);
366
366
  let Ft, Vt;
367
367
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (Ft = () => {
368
- const b = new ResizeObserver((Q) => {
368
+ const v = new ResizeObserver((Q) => {
369
369
  me(Q[0].target.clientWidth || 620), pe(Q[0].target.clientHeight || 480);
370
370
  });
371
- return te.current && b.observe(te.current), () => b.disconnect();
371
+ return te.current && v.observe(te.current), () => v.disconnect();
372
372
  }, Vt = [], t[6] = Ft, t[7] = Vt) : (Ft = t[6], Vt = t[7]), qt(Ft, Vt);
373
373
  let Ht;
374
- t[8] === Symbol.for("react.memo_cache_sentinel") ? (Ht = (b) => {
375
- he(b);
374
+ t[8] === Symbol.for("react.memo_cache_sentinel") ? (Ht = (v) => {
375
+ he(v);
376
376
  }, t[8] = Ht) : Ht = t[8];
377
377
  const Gt = fe(Ht);
378
378
  let Rt;
@@ -383,39 +383,39 @@ function Po(d) {
383
383
  }, t[9] = M, t[10] = Gt, t[11] = Rt) : Rt = t[11];
384
384
  let Ut;
385
385
  t[12] !== M ? (Ut = [M], t[12] = M, t[13] = Ut) : Ut = t[13], qt(Rt, Ut), qt(() => {
386
- const b = setInterval(() => {
387
- Ot((Q) => Q < v.length - 1 ? Q + 1 : 0);
386
+ const v = setInterval(() => {
387
+ Ot((Q) => Q < f.length - 1 ? Q + 1 : 0);
388
388
  }, (j.speed || 2) * 1e3);
389
- return K || clearInterval(b), () => clearInterval(b);
390
- }, [v, K, j.speed]);
391
- const Xt = ye(v, Z, j.showOnlyActiveDate, j.dateFormat || "yyyy");
392
- if ($ && S && ($.length !== z[0].length - 1 || S.length !== z.length - 1))
389
+ return K || clearInterval(v), () => clearInterval(v);
390
+ }, [f, K, j.speed]);
391
+ const Xt = ye(f, Z, j.showOnlyActiveDate, j.dateFormat || "yyyy");
392
+ if ($ && S && ($.length !== I[0].length - 1 || S.length !== I.length - 1))
393
393
  return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
394
- const ee = u?.graphContainer, oe = h?.graphContainer;
394
+ const ee = p?.graphContainer, oe = m?.graphContainer;
395
395
  let mt;
396
- t[14] !== u?.description || t[15] !== u?.title || t[16] !== k || t[17] !== i || t[18] !== w || t[19] !== c || t[20] !== C || t[21] !== h?.description || t[22] !== h?.title || t[23] !== m ? (mt = C || w || c || i ? /* @__PURE__ */ o.jsx(Ae, { styles: {
397
- title: h?.title,
398
- description: h?.description
396
+ t[14] !== p?.description || t[15] !== p?.title || t[16] !== b || t[17] !== i || t[18] !== k || t[19] !== l || t[20] !== C || t[21] !== m?.description || t[22] !== m?.title || t[23] !== x ? (mt = C || k || l || i ? /* @__PURE__ */ o.jsx(Ae, { styles: {
397
+ title: m?.title,
398
+ description: m?.description
399
399
  }, classNames: {
400
- title: u?.title,
401
- description: u?.description
402
- }, graphTitle: C, graphDescription: w, width: m, graphDownload: c ? ie : void 0, dataDownload: i ? k.map(eo).filter(to).length > 0 ? k.map(Qe).filter(Ze) : k.filter(Ke) : null }) : null, t[14] = u?.description, t[15] = u?.title, t[16] = k, t[17] = i, t[18] = w, t[19] = c, t[20] = C, t[21] = h?.description, t[22] = h?.title, t[23] = m, t[24] = mt) : mt = t[24];
400
+ title: p?.title,
401
+ description: p?.description
402
+ }, graphTitle: C, graphDescription: k, width: x, graphDownload: l ? ie : void 0, dataDownload: i ? b.map(eo).filter(to).length > 0 ? b.map(Qe).filter(Ze) : b.filter(Ke) : null }) : null, t[14] = p?.description, t[15] = p?.title, t[16] = b, t[17] = i, t[18] = k, t[19] = l, t[20] = C, t[21] = m?.description, t[22] = m?.title, t[23] = x, t[24] = mt) : mt = t[24];
403
403
  let pt;
404
- t[25] !== Z || t[26] !== Xt || t[27] !== K || t[28] !== Ot || t[29] !== Qt || t[30] !== j.enabled || t[31] !== v ? (pt = j.enabled && v.length > 0 && Xt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
404
+ t[25] !== Z || t[26] !== Xt || t[27] !== K || t[28] !== Ot || t[29] !== Qt || t[30] !== j.enabled || t[31] !== f ? (pt = j.enabled && f.length > 0 && Xt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
405
405
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
406
406
  Qt(!K);
407
407
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": K ? "Click to pause animation" : "Click to play animation", children: K ? /* @__PURE__ */ o.jsx(ze, {}) : /* @__PURE__ */ o.jsx(_e, {}) }),
408
- /* @__PURE__ */ o.jsx(xe, { min: v[0], max: v[v.length - 1], marks: Xt, step: null, defaultValue: v[v.length - 1], value: v[Z], onChangeComplete: (b) => {
409
- Ot(v.indexOf(b));
410
- }, onChange: (b) => {
411
- Ot(v.indexOf(b));
408
+ /* @__PURE__ */ o.jsx(xe, { min: f[0], max: f[f.length - 1], marks: Xt, step: null, defaultValue: f[f.length - 1], value: f[Z], onChangeComplete: (v) => {
409
+ Ot(f.indexOf(v));
410
+ }, onChange: (v) => {
411
+ Ot(f.indexOf(v));
412
412
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
413
- ] }) : null, t[25] = Z, t[26] = Xt, t[27] = K, t[28] = Ot, t[29] = Qt, t[30] = j.enabled, t[31] = v, t[32] = pt) : pt = t[32];
413
+ ] }) : null, t[25] = Z, t[26] = Xt, t[27] = K, t[28] = Ot, t[29] = Qt, t[30] = j.enabled, t[31] = f, t[32] = pt) : pt = t[32];
414
414
  let ht;
415
- t[33] !== At || t[34] !== yt || t[35] !== u || t[36] !== I || t[37] !== z || t[38] !== Zt || t[39] !== k || t[40] !== st || t[41] !== Kt || t[42] !== f || t[43] !== r || t[44] !== Z || t[45] !== J || t[46] !== St || t[47] !== $t || t[48] !== Dt || t[49] !== Y || t[50] !== a || t[51] !== dt || t[52] !== s || t[53] !== at || t[54] !== vt || t[55] !== p || t[56] !== H || t[57] !== E || t[58] !== g || t[59] !== y || t[60] !== h || t[61] !== Et || t[62] !== O || t[63] !== j.dateFormat || t[64] !== j.enabled || t[65] !== ot || t[66] !== v || t[67] !== m || t[68] !== Ct || t[69] !== $ || t[70] !== _ || t[71] !== S || t[72] !== Jt || t[73] !== n || t[74] !== B ? (ht = /* @__PURE__ */ o.jsx(He, { ref: te, children: O && Et && dt ? /* @__PURE__ */ o.jsx(Xe, { data: k.filter((b) => j.enabled ? b.date === ke(new Date(v[Z]), j.dateFormat || "yyyy") : b), mapData: g ? dt : {
415
+ t[33] !== At || t[34] !== yt || t[35] !== p || t[36] !== P || t[37] !== I || t[38] !== Zt || t[39] !== b || t[40] !== st || t[41] !== Kt || t[42] !== y || t[43] !== r || t[44] !== Z || t[45] !== q || t[46] !== St || t[47] !== $t || t[48] !== Dt || t[49] !== X || t[50] !== a || t[51] !== dt || t[52] !== c || t[53] !== at || t[54] !== vt || t[55] !== w || t[56] !== V || t[57] !== E || t[58] !== h || t[59] !== u || t[60] !== m || t[61] !== Et || t[62] !== J || t[63] !== j.dateFormat || t[64] !== j.enabled || t[65] !== ot || t[66] !== f || t[67] !== x || t[68] !== Ct || t[69] !== $ || t[70] !== z || t[71] !== S || t[72] !== Jt || t[73] !== n || t[74] !== W ? (ht = /* @__PURE__ */ o.jsx(He, { ref: te, children: J && Et && dt ? /* @__PURE__ */ o.jsx(Xe, { data: b.filter((v) => j.enabled ? v.date === ke(new Date(f[Z]), j.dateFormat || "yyyy") : v), mapData: h ? dt : {
416
416
  ...dt,
417
417
  features: dt.features.filter(Je)
418
- }, xDomain: $ || de(k.map(qe), z[0].length), yDomain: S || de(k.map(Ye), z.length), width: m || O, height: Math.max(s, f || (p ? s ? (m || O) * p > s ? (m || O) * p : s : (m || O) * p : Et)), scale: E, centerPoint: yt, colors: z, xColorLegendTitle: Ct, yColorLegendTitle: _, mapBorderWidth: $t, mapNoDataColor: Dt, mapBorderColor: St, tooltip: ot, onSeriesMouseOver: vt, isWorldMap: J, zoomScaleExtend: n, zoomTranslateExtend: B, onSeriesMouseClick: at, mapProperty: a, highlightedIds: r, resetSelectionOnDoubleClick: H, styles: h, showColorScale: y, classNames: u, mapProjection: Y || (J ? "naturalEarth" : "mercator"), detailsOnClick: st, zoomInteraction: Jt, animate: At === !0 ? {
418
+ }, xDomain: $ || de(b.map(qe), I[0].length), yDomain: S || de(b.map(Ye), I.length), width: J, height: Et, scale: E, centerPoint: yt, colors: I, xColorLegendTitle: Ct, yColorLegendTitle: z, mapBorderWidth: $t, mapNoDataColor: Dt, mapBorderColor: St, tooltip: ot, onSeriesMouseOver: vt, isWorldMap: q, zoomScaleExtend: n, zoomTranslateExtend: W, onSeriesMouseClick: at, mapProperty: a, highlightedIds: r, resetSelectionOnDoubleClick: V, styles: m, showColorScale: u, classNames: p, mapProjection: X || (q ? "naturalEarth" : "mercator"), detailsOnClick: st, zoomInteraction: Jt, animate: At === !0 ? {
419
419
  duration: 0.5,
420
420
  once: !0,
421
421
  amount: 0.5
@@ -423,24 +423,24 @@ function Po(d) {
423
423
  duration: 0,
424
424
  once: !0,
425
425
  amount: 0
426
- }, dimmedOpacity: Kt, customLayers: Zt, collapseColorScaleByDefault: I }) : /* @__PURE__ */ o.jsx("div", { style: {
427
- height: `${Math.max(s, f || (p ? s ? (m || O) * p > s ? (m || O) * p : s : (m || O) * p : Et))}px`
428
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = u, t[36] = I, t[37] = z, t[38] = Zt, t[39] = k, t[40] = st, t[41] = Kt, t[42] = f, t[43] = r, t[44] = Z, t[45] = J, t[46] = St, t[47] = $t, t[48] = Dt, t[49] = Y, t[50] = a, t[51] = dt, t[52] = s, t[53] = at, t[54] = vt, t[55] = p, t[56] = H, t[57] = E, t[58] = g, t[59] = y, t[60] = h, t[61] = Et, t[62] = O, t[63] = j.dateFormat, t[64] = j.enabled, t[65] = ot, t[66] = v, t[67] = m, t[68] = Ct, t[69] = $, t[70] = _, t[71] = S, t[72] = Jt, t[73] = n, t[74] = B, t[75] = ht) : ht = t[75];
426
+ }, dimmedOpacity: Kt, customLayers: Zt, collapseColorScaleByDefault: P }) : /* @__PURE__ */ o.jsx("div", { style: {
427
+ height: `${Math.max(c, y || (w ? c ? (x || J) * w > c ? (x || J) * w : c : (x || J) * w : Et))}px`
428
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(ve, { "aria-label": "Loading graph" }) }) }), t[33] = At, t[34] = yt, t[35] = p, t[36] = P, t[37] = I, t[38] = Zt, t[39] = b, t[40] = st, t[41] = Kt, t[42] = y, t[43] = r, t[44] = Z, t[45] = q, t[46] = St, t[47] = $t, t[48] = Dt, t[49] = X, t[50] = a, t[51] = dt, t[52] = c, t[53] = at, t[54] = vt, t[55] = w, t[56] = V, t[57] = E, t[58] = h, t[59] = u, t[60] = m, t[61] = Et, t[62] = J, t[63] = j.dateFormat, t[64] = j.enabled, t[65] = ot, t[66] = f, t[67] = x, t[68] = Ct, t[69] = $, t[70] = z, t[71] = S, t[72] = Jt, t[73] = n, t[74] = W, t[75] = ht) : ht = t[75];
429
429
  let ut;
430
- t[76] !== u?.footnote || t[77] !== u?.source || t[78] !== ct || t[79] !== et || t[80] !== h?.footnote || t[81] !== h?.source || t[82] !== m ? (ut = et || ct ? /* @__PURE__ */ o.jsx(Te, { styles: {
431
- footnote: h?.footnote,
432
- source: h?.source
430
+ t[76] !== p?.footnote || t[77] !== p?.source || t[78] !== ct || t[79] !== et || t[80] !== m?.footnote || t[81] !== m?.source || t[82] !== x ? (ut = et || ct ? /* @__PURE__ */ o.jsx(Te, { styles: {
431
+ footnote: m?.footnote,
432
+ source: m?.source
433
433
  }, classNames: {
434
- footnote: u?.footnote,
435
- source: u?.source
436
- }, sources: et, footNote: ct, width: m }) : null, t[76] = u?.footnote, t[77] = u?.source, t[78] = ct, t[79] = et, t[80] = h?.footnote, t[81] = h?.source, t[82] = m, t[83] = ut) : ut = t[83];
434
+ footnote: p?.footnote,
435
+ source: p?.source
436
+ }, sources: et, footNote: ct, width: x }) : null, t[76] = p?.footnote, t[77] = p?.source, t[78] = ct, t[79] = et, t[80] = m?.footnote, t[81] = m?.source, t[82] = x, t[83] = ut) : ut = t[83];
437
437
  let Yt;
438
- return t[84] !== T || t[85] !== Nt || t[86] !== L || t[87] !== f || t[88] !== x || t[89] !== s || t[90] !== xt || t[91] !== p || t[92] !== ee || t[93] !== oe || t[94] !== mt || t[95] !== pt || t[96] !== ht || t[97] !== ut || t[98] !== Mt || t[99] !== m ? (Yt = /* @__PURE__ */ o.jsxs(Ge, { className: ee, style: oe, id: L, ref: ie, "aria-label": T, backgroundColor: Nt, theme: Mt, language: x, minHeight: s, width: m, height: f, relativeHeight: p, padding: xt, children: [
438
+ return t[84] !== A || t[85] !== Nt || t[86] !== O || t[87] !== y || t[88] !== g || t[89] !== c || t[90] !== xt || t[91] !== w || t[92] !== ee || t[93] !== oe || t[94] !== mt || t[95] !== pt || t[96] !== ht || t[97] !== ut || t[98] !== Mt || t[99] !== x ? (Yt = /* @__PURE__ */ o.jsxs(Ge, { className: ee, style: oe, id: O, ref: ie, "aria-label": A, backgroundColor: Nt, theme: Mt, language: g, minHeight: c, width: x, height: y, relativeHeight: w, padding: xt, children: [
439
439
  mt,
440
440
  pt,
441
441
  ht,
442
442
  ut
443
- ] }), t[84] = T, t[85] = Nt, t[86] = L, t[87] = f, t[88] = x, t[89] = s, t[90] = xt, t[91] = p, t[92] = ee, t[93] = oe, t[94] = mt, t[95] = pt, t[96] = ht, t[97] = ut, t[98] = Mt, t[99] = m, t[100] = Yt) : Yt = t[100], Yt;
443
+ ] }), t[84] = A, t[85] = Nt, t[86] = O, t[87] = y, t[88] = g, t[89] = c, t[90] = xt, t[91] = w, t[92] = ee, t[93] = oe, t[94] = mt, t[95] = pt, t[96] = ht, t[97] = ut, t[98] = Mt, t[99] = x, t[100] = Yt) : Yt = t[100], Yt;
444
444
  }
445
445
  function Ye(d) {
446
446
  return d.y;