@undp/data-viz 2.1.7 → 2.1.9

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.
package/dist/HybridMap.js CHANGED
@@ -1,14 +1,14 @@
1
- import { _ as Be, m as Me, b as Oe, j as a, c as We } from "./index-CHPV5EwG-Curnpaqc.js";
1
+ import { _ as Be, m as Ne, b as Oe, j as a, c as We } from "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import * as Ae from "react";
3
3
  import Fe, { useState as z, useRef as Tt, useEffect as se, useEffectEvent as Te } from "react";
4
4
  import { f as Re, p as qe } from "./parse-DlCRUFh_.js";
5
5
  import { g as Ge, N as He } from "./getSliderMarks-HIDJ0_Cd.js";
6
6
  import { w as Ue } from "./Spinner-DVBnY6Vg.js";
7
- import { i as De } from "./index-Bwrro8-q.js";
7
+ import { i as $e } from "./index-Bwrro8-q.js";
8
8
  import { z as Xe, t as Ye, g as Je, a as Ke, b as Ze, c as Qe, d as to } from "./zoom-C9MFjAaV.js";
9
- import { j as je } from "./Typography-PxtFcnJb.js";
9
+ import { j as ke } from "./Typography-PxtFcnJb.js";
10
10
  import { t as eo } from "./index-GEsywGxz.js";
11
- import { n as $e } from "./Source-DwTHB8fn.js";
11
+ import { n as Se } from "./Source-DwTHB8fn.js";
12
12
  import { w as oo } from "./index-Dzc_aaI9-Bb7gobH_.js";
13
13
  import { T as ao } from "./Tooltip-Dj5eVppQ.js";
14
14
  import { X as ro, P as io, e as no } from "./index-D491FEn1.js";
@@ -29,35 +29,35 @@ import { f as yo } from "./fetchAndParseData-BpqkBPQL.js";
29
29
  import { a as xo, G as vo } from "./GraphContainer-CRqzdKu2.js";
30
30
  import { g as bo } from "./getUniqValue-DsqSii6M.js";
31
31
  import { g as wo } from "./getJenks-BbngDoBQ.js";
32
- var ko = "Separator", Se = "horizontal", jo = ["horizontal", "vertical"], Ee = Ae.forwardRef((r, t) => {
33
- const { decorative: e, orientation: h = Se, ...w } = r, n = Co(h) ? h : Se, k = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
32
+ var jo = "Separator", Me = "horizontal", ko = ["horizontal", "vertical"], Ee = Ae.forwardRef((r, t) => {
33
+ const { decorative: e, orientation: h = Me, ...w } = r, n = Co(h) ? h : Me, j = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
34
  return /* @__PURE__ */ Oe.jsx(
35
35
  oo.div,
36
36
  {
37
37
  "data-orientation": n,
38
- ...k,
38
+ ...j,
39
39
  ...w,
40
40
  ref: t
41
41
  }
42
42
  );
43
43
  });
44
- Ee.displayName = ko;
44
+ Ee.displayName = jo;
45
45
  function Co(r) {
46
- return jo.includes(r);
46
+ return ko.includes(r);
47
47
  }
48
48
  var Ie = Ee;
49
49
  const ze = Fe.forwardRef((r, t) => {
50
50
  const e = Be.c(14);
51
- let h, w, n, k;
51
+ let h, w, n, j;
52
52
  e[0] !== r ? ({
53
53
  className: h,
54
54
  variant: n,
55
- orientation: k,
55
+ orientation: j,
56
56
  ...w
57
- } = r, e[0] = r, e[1] = h, e[2] = w, e[3] = n, e[4] = k) : (h = e[1], w = e[2], n = e[3], k = e[4]);
58
- const j = n === void 0 ? "dark" : n, d = k === void 0 ? "horizontal" : k, g = d === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = j === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
57
+ } = r, e[0] = r, e[1] = h, e[2] = w, e[3] = n, e[4] = j) : (h = e[1], w = e[2], n = e[3], j = e[4]);
58
+ const k = n === void 0 ? "dark" : n, d = j === void 0 ? "horizontal" : j, g = d === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", S = k === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
59
  let N;
60
- e[5] !== h || e[6] !== g || e[7] !== S ? (N = Me(g, S, h), e[5] = h, e[6] = g, e[7] = S, e[8] = N) : N = e[8];
60
+ e[5] !== h || e[6] !== g || e[7] !== S ? (N = Ne(g, S, h), e[5] = h, e[6] = g, e[7] = S, e[8] = N) : N = e[8];
61
61
  let L;
62
62
  return e[9] !== d || e[10] !== w || e[11] !== t || e[12] !== N ? (L = /* @__PURE__ */ Oe.jsx(Ie, { ...w, ref: t, orientation: d, className: N }), e[9] = d, e[10] = w, e[11] = t, e[12] = N, e[13] = L) : L = e[13], L;
63
63
  });
@@ -69,15 +69,15 @@ function No(r) {
69
69
  mapData: h,
70
70
  mapColorLegendTitle: w,
71
71
  colorDomain: n,
72
- radius: k,
73
- height: j,
72
+ radius: j,
73
+ height: k,
74
74
  width: d,
75
75
  scale: g,
76
76
  centerPoint: S,
77
77
  tooltip: N,
78
78
  showLabels: L,
79
- mapBorderWidth: ot,
80
- mapBorderColor: at,
79
+ mapBorderWidth: at,
80
+ mapBorderColor: rt,
81
81
  mapNoDataColor: gt,
82
82
  onSeriesMouseOver: K,
83
83
  showColorScale: Mt,
@@ -87,46 +87,46 @@ function No(r) {
87
87
  onSeriesMouseClick: F,
88
88
  resetSelectionOnDoubleClick: Et,
89
89
  detailsOnClick: Z,
90
- styles: O,
91
- classNames: rt,
90
+ styles: M,
91
+ classNames: Q,
92
92
  mapProjection: it,
93
- zoomInteraction: Q,
93
+ zoomInteraction: tt,
94
94
  animate: x,
95
95
  dimmedOpacity: T,
96
96
  customLayers: ft,
97
97
  maxRadiusValue: yt,
98
98
  categorical: nt,
99
- dotColor: tt,
99
+ dotColor: et,
100
100
  collapseColorScaleByDefault: It,
101
101
  highlightedIds: lt,
102
102
  mapProperty: xt,
103
103
  dotLegendTitle: vt,
104
104
  dotBorderColor: zt,
105
105
  labelColor: Lt
106
- } = r, [P, _] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, et] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), V = Tt(null), q = uo(V, {
106
+ } = r, [P, V] = z(void 0), [b, v] = z(It === void 0 ? !(d < 680) : !It), st = Tt(null), [ct, ot] = z(void 0), [Pt, E] = z(void 0), [dt, I] = z(void 0), [bt, R] = z(void 0), _ = Tt(null), q = uo(_, {
107
107
  once: x.once,
108
108
  amount: x.amount
109
- }), wt = Tt(null), B = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? so().domain([0, yt]).range([0.25, k]).nice() : void 0, Gt = nt ? co().domain(n).range(e) : mo().domain(n).range(e);
109
+ }), wt = Tt(null), B = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? so().domain([0, yt]).range([0.25, j]).nice() : void 0, Gt = nt ? co().domain(n).range(e) : mo().domain(n).range(e);
110
110
  se(() => {
111
- const o = Ce(wt.current), i = Ce(V.current), M = (m) => {
112
- if (Q === "noZoom") return !1;
113
- if (Q === "button") return !m.type.includes("wheel");
111
+ const o = Ce(wt.current), i = Ce(_.current), O = (m) => {
112
+ if (tt === "noZoom") return !1;
113
+ if (tt === "button") return !m.type.includes("wheel");
114
114
  const s = m.type === "wheel", C = m.type.startsWith("touch"), p = m.type === "mousedown" || m.type === "mousemove";
115
- return C ? !0 : s ? Q === "scroll" ? !0 : m.ctrlKey : p && !m.button && !m.ctrlKey;
116
- }, l = Xe().scaleExtent(Rt).translateExtent(qt || [[-20, -20], [d + 20, j + 20]]).filter(M).on("zoom", ({
115
+ return C ? !0 : s ? tt === "scroll" ? !0 : m.ctrlKey : p && !m.button && !m.ctrlKey;
116
+ }, l = Xe().scaleExtent(Rt).translateExtent(qt || [[-20, -20], [d + 20, k + 20]]).filter(O).on("zoom", ({
117
117
  transform: m
118
118
  }) => {
119
119
  o.attr("transform", m);
120
120
  });
121
121
  i.call(l), st.current = l;
122
- }, [j, d, Q]);
123
- const D = Ye(h), W = eo(h), G = D[2] - D[0], _t = D[3] - D[1], Vt = d * 190 / 960 * 360 / G, Bt = j * 190 / 678 * 180 / _t, H = g * Math.min(Vt, Bt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H) : to().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, j / 2]).scale(H), kt = (o) => {
124
- if (!V.current || !st.current) return;
125
- Ce(V.current).call(st.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
122
+ }, [k, d, tt]);
123
+ const D = Ye(h), W = eo(h), G = D[2] - D[0], Vt = D[3] - D[1], _t = d * 190 / 960 * 360 / G, Bt = k * 190 / 678 * 180 / Vt, H = g * Math.min(_t, Bt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : to().rotate([0, 0]).center(S || W.geometry.coordinates).translate([d / 2, k / 2]).scale(H), jt = (o) => {
124
+ if (!_.current || !st.current) return;
125
+ Ce(_.current).call(st.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
126
126
  };
127
127
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
128
128
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
129
- /* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${j}px`, viewBox: `0 0 ${d} ${j}`, ref: V, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
129
+ /* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${k}px`, viewBox: `0 0 ${d} ${k}`, ref: _, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
130
130
  ft.filter((o) => o.position === "before").map((o) => o.layer),
131
131
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
132
  h.features.map((o, i) => t.findIndex((l) => l.id === o.properties[xt]) !== -1 ? null : /* @__PURE__ */ a.jsx("g", { opacity: P ? T : lt.length !== 0 ? lt.indexOf(o.properties[xt]) !== -1 ? 1 : T : 1, children: o.geometry.type === "MultiPolygon" ? (
@@ -140,8 +140,8 @@ function No(r) {
140
140
  mt !== C.length - 1 ? p = `${p}${$[0]} ${$[1]}L` : p = `${p}${$[0]} ${$[1]}`;
141
141
  }), s += p;
142
142
  }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
143
- stroke: at,
144
- strokeWidth: ot,
143
+ stroke: rt,
144
+ strokeWidth: at,
145
145
  fill: gt
146
146
  } }, m);
147
147
  })
@@ -153,8 +153,8 @@ function No(r) {
153
153
  const f = A([C[0], C[1]]);
154
154
  p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
155
155
  }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
156
- stroke: at,
157
- strokeWidth: ot,
156
+ stroke: rt,
157
+ strokeWidth: at,
158
158
  fill: gt
159
159
  } }, m);
160
160
  })
@@ -164,7 +164,7 @@ function No(r) {
164
164
  const i = h.features.findIndex(
165
165
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
166
  (l) => o.id === l.properties[xt]
167
- ), M = ce(o.x) ? gt : (
167
+ ), O = ce(o.x) ? gt : (
168
168
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
169
169
  Gt(o.x)
170
170
  );
@@ -173,7 +173,7 @@ function No(r) {
173
173
  opacity: 0
174
174
  },
175
175
  whileInView: {
176
- opacity: P ? P === M ? 1 : T : lt.length !== 0 ? lt.indexOf(o.id) !== -1 ? 1 : T : 1,
176
+ opacity: P ? P === O ? 1 : T : lt.length !== 0 ? lt.indexOf(o.id) !== -1 ? 1 : T : 1,
177
177
  transition: {
178
178
  duration: x.duration
179
179
  }
@@ -190,7 +190,7 @@ function No(r) {
190
190
  }, onMouseLeave: () => {
191
191
  E(void 0), I(void 0), R(void 0), K?.(void 0);
192
192
  }, onClick: () => {
193
- (F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
193
+ (F || Z) && ($e(ct, o) && Et ? (ot(void 0), F?.(void 0)) : (ot(o), F?.(o)));
194
194
  }, children: i === -1 ? null : h.features[i].geometry.type === "MultiPolygon" ? h.features[i].geometry.coordinates.map(
195
195
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
196
196
  (l, m) => {
@@ -203,11 +203,11 @@ function No(r) {
203
203
  }), s += p;
204
204
  }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
205
205
  initial: {
206
- fill: M,
206
+ fill: O,
207
207
  opacity: 0
208
208
  },
209
209
  whileInView: {
210
- fill: M,
210
+ fill: O,
211
211
  opacity: 1,
212
212
  transition: {
213
213
  duration: x.duration
@@ -219,8 +219,8 @@ function No(r) {
219
219
  duration: x.duration
220
220
  }
221
221
  }, style: {
222
- stroke: at,
223
- strokeWidth: ot
222
+ stroke: rt,
223
+ strokeWidth: at
224
224
  } }, `${o.id}-${m}`);
225
225
  }
226
226
  ) : h.features[i].geometry.coordinates.map(
@@ -232,11 +232,11 @@ function No(r) {
232
232
  p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
233
233
  }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
234
234
  initial: {
235
- fill: M,
235
+ fill: O,
236
236
  opacity: 0
237
237
  },
238
238
  whileInView: {
239
- fill: M,
239
+ fill: O,
240
240
  opacity: 1,
241
241
  transition: {
242
242
  duration: x.duration
@@ -248,8 +248,8 @@ function No(r) {
248
248
  duration: x.duration
249
249
  }
250
250
  }, style: {
251
- stroke: at,
252
- strokeWidth: ot
251
+ stroke: rt,
252
+ strokeWidth: at
253
253
  } }, `${o.id}-${m}`);
254
254
  }
255
255
  ) }, o.id);
@@ -276,18 +276,18 @@ function No(r) {
276
276
  }, onMouseLeave: () => {
277
277
  E(void 0), I(void 0), R(void 0), K?.(void 0);
278
278
  }, onClick: () => {
279
- (F || Z) && (De(ct, o) && Et ? (et(void 0), F?.(void 0)) : (et(o), F?.(o)));
279
+ (F || Z) && ($e(ct, o) && Et ? (ot(void 0), F?.(void 0)) : (ot(o), F?.(o)));
280
280
  }, transform: `translate(${A([o.long, o.lat])[0]},${A([o.long, o.lat])[1]})`, children: [
281
281
  /* @__PURE__ */ a.jsx(ht.circle, { cx: 0, cy: 0, variants: {
282
282
  initial: {
283
283
  r: 0,
284
- fill: tt,
285
- stroke: zt || tt
284
+ fill: et,
285
+ stroke: zt || et
286
286
  },
287
287
  whileInView: {
288
- r: B ? B(o.radius || 0) : k,
289
- fill: tt,
290
- stroke: zt || tt,
288
+ r: B ? B(o.radius || 0) : j,
289
+ fill: et,
290
+ stroke: zt || et,
291
291
  transition: {
292
292
  duration: x.duration
293
293
  }
@@ -303,11 +303,11 @@ function No(r) {
303
303
  L && o.label ? /* @__PURE__ */ a.jsx(ht.text, { variants: {
304
304
  initial: {
305
305
  opacity: 0,
306
- x: B ? B(o.radius || 0) : k
306
+ x: B ? B(o.radius || 0) : j
307
307
  },
308
308
  whileInView: {
309
309
  opacity: 1,
310
- x: B ? B(o.radius || 0) : k,
310
+ x: B ? B(o.radius || 0) : j,
311
311
  transition: {
312
312
  duration: x.duration
313
313
  }
@@ -317,15 +317,16 @@ function No(r) {
317
317
  transition: {
318
318
  duration: x.duration
319
319
  }
320
- }, y: 0, className: "text-sm", style: {
320
+ }, y: 0, className: Ne("text-sm", Q?.graphObjectValues), style: {
321
321
  textAnchor: "start",
322
- fill: Lt || "#000"
322
+ fill: Lt || "#000",
323
+ ...M?.graphObjectValues || {}
323
324
  }, dx: 4, dy: 5, children: o.label }) : null
324
325
  ] }, o.label || `${o.lat}-${o.long}`))
325
326
  ] }),
326
327
  ft.filter((o) => o.position === "after").map((o) => o.layer)
327
328
  ] }) }),
328
- Mt === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Me("absolute left-4 bottom-4 map-color-legend", rt?.colorLegend), children: b ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
329
+ Mt === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: Ne("absolute left-4 bottom-4 map-color-legend", Q?.colorLegend), children: b ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
329
330
  /* @__PURE__ */ a.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: () => {
330
331
  v(!1);
331
332
  }, children: /* @__PURE__ */ a.jsx(ro, {}) }),
@@ -335,37 +336,37 @@ function No(r) {
335
336
  vt && vt !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
336
337
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
337
338
  /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
338
- backgroundColor: tt
339
+ backgroundColor: et
339
340
  } }),
340
- /* @__PURE__ */ a.jsx(je, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
341
+ /* @__PURE__ */ a.jsx(ke, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
341
342
  display: "-webkit-box",
342
343
  WebkitLineClamp: "1",
343
344
  WebkitBoxOrient: "vertical"
344
345
  }, children: vt })
345
346
  ] }),
346
- /* @__PURE__ */ a.jsx($e, { size: "xl" }),
347
+ /* @__PURE__ */ a.jsx(Se, { size: "xl" }),
347
348
  /* @__PURE__ */ a.jsx(ze, {}),
348
- /* @__PURE__ */ a.jsx($e, { size: "xl" })
349
+ /* @__PURE__ */ a.jsx(Se, { size: "xl" })
349
350
  ] }) : null,
350
- w && w !== "" ? /* @__PURE__ */ a.jsx(je, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
351
+ w && w !== "" ? /* @__PURE__ */ a.jsx(ke, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
351
352
  display: "-webkit-box",
352
353
  WebkitLineClamp: "1",
353
354
  WebkitBoxOrient: "vertical"
354
355
  }, children: w }) : null,
355
356
  nt ? /* @__PURE__ */ a.jsx("div", { className: "flex flex-col gap-3", children: n.map((o, i) => /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
356
- _(e[i % e.length]);
357
+ V(e[i % e.length]);
357
358
  }, onMouseLeave: () => {
358
- _(void 0);
359
+ V(void 0);
359
360
  }, children: [
360
361
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
361
362
  backgroundColor: e[i % e.length]
362
363
  } }),
363
- /* @__PURE__ */ a.jsx(je, { size: "sm", marginBottom: "none", leading: "none", children: o })
364
+ /* @__PURE__ */ a.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: o })
364
365
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
365
366
  n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
366
- _(e[i]);
367
+ V(e[i]);
367
368
  }, onMouseLeave: () => {
368
- _(void 0);
369
+ V(void 0);
369
370
  }, className: "cursor-pointer", children: [
370
371
  /* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: P === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
371
372
  fill: e[i],
@@ -378,9 +379,9 @@ function No(r) {
378
379
  }, children: po(o, "NA") })
379
380
  ] }, i)),
380
381
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
381
- _(e[n.length]);
382
+ V(e[n.length]);
382
383
  }, onMouseLeave: () => {
383
- _(void 0);
384
+ V(void 0);
384
385
  }, x: n.length * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: `cursor-pointer ${P === e[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
385
386
  fill: e[n.length],
386
387
  ...P === e[n.length] ? {} : {
@@ -392,13 +393,13 @@ function No(r) {
392
393
  ] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
393
394
  v(!0);
394
395
  }, children: /* @__PURE__ */ a.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" }) }) }),
395
- Q === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
396
- /* @__PURE__ */ a.jsx("button", { onClick: () => kt("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
397
- /* @__PURE__ */ a.jsx("button", { onClick: () => kt("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border 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: "–" })
396
+ tt === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
397
+ /* @__PURE__ */ a.jsx("button", { onClick: () => jt("in"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
398
+ /* @__PURE__ */ a.jsx("button", { onClick: () => jt("out"), className: "leading-0 px-2 py-3.5 text-primary-gray-700 border 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: "–" })
398
399
  ] })
399
400
  ] }),
400
- Z && ct !== void 0 ? /* @__PURE__ */ a.jsx(lo, { body: Z, data: ct, setData: et, className: rt?.modal }) : null,
401
- Pt && N && dt && bt ? /* @__PURE__ */ a.jsx(ao, { data: Pt, body: N, xPos: dt, yPos: bt, backgroundStyle: O?.tooltip, className: rt?.tooltip }) : null
401
+ Z && ct !== void 0 ? /* @__PURE__ */ a.jsx(lo, { body: Z, data: ct, setData: ot, className: Q?.modal }) : null,
402
+ Pt && N && dt && bt ? /* @__PURE__ */ a.jsx(ao, { data: Pt, body: N, xPos: dt, yPos: bt, backgroundStyle: M?.tooltip, className: Q?.tooltip }) : null
402
403
  ] });
403
404
  }
404
405
  function ua(r) {
@@ -407,15 +408,15 @@ function ua(r) {
407
408
  mapData: h,
408
409
  graphTitle: w,
409
410
  colors: n,
410
- sources: k,
411
- graphDescription: j,
411
+ sources: j,
412
+ graphDescription: k,
412
413
  height: d,
413
414
  width: g,
414
415
  footNote: S,
415
416
  mapColorLegendTitle: N,
416
417
  colorDomain: L,
417
- choroplethScaleType: ot,
418
- radius: at,
418
+ choroplethScaleType: at,
419
+ radius: rt,
419
420
  scale: gt,
420
421
  centerPoint: K,
421
422
  padding: Mt,
@@ -425,16 +426,16 @@ function ua(r) {
425
426
  showLabels: F,
426
427
  mapBorderColor: Et,
427
428
  tooltip: Z,
428
- relativeHeight: O,
429
- onSeriesMouseOver: rt,
429
+ relativeHeight: M,
430
+ onSeriesMouseOver: Q,
430
431
  isWorldMap: it,
431
- showColorScale: Q,
432
+ showColorScale: tt,
432
433
  zoomScaleExtend: x,
433
434
  zoomTranslateExtend: T,
434
435
  graphID: ft,
435
436
  highlightedDataPoints: yt,
436
437
  onSeriesMouseClick: nt,
437
- graphDownload: tt,
438
+ graphDownload: et,
438
439
  dataDownload: It,
439
440
  showAntarctica: lt,
440
441
  language: xt,
@@ -442,30 +443,30 @@ function ua(r) {
442
443
  theme: zt,
443
444
  ariaLabel: Lt,
444
445
  resetSelectionOnDoubleClick: P,
445
- detailsOnClick: _,
446
+ detailsOnClick: V,
446
447
  styles: b,
447
448
  classNames: v,
448
449
  mapProjection: st,
449
450
  zoomInteraction: ct,
450
- animate: et,
451
+ animate: ot,
451
452
  dimmedOpacity: Pt,
452
453
  customLayers: E,
453
454
  maxRadiusValue: dt,
454
455
  timeline: I,
455
456
  collapseColorScaleByDefault: bt,
456
457
  dotColor: R,
457
- highlightedIds: V,
458
+ highlightedIds: _,
458
459
  mapProperty: q,
459
460
  dotLegendTitle: wt,
460
461
  dotBorderColor: B,
461
462
  labelColor: Gt
462
- } = r, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === 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." : S, G = ot === void 0 ? "threshold" : ot, _t = at === void 0 ? 5 : at, Vt = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, kt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, i = it === void 0 ? !0 : it, M = Q === void 0 ? !0 : Q;
463
+ } = r, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, W = S === 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." : S, G = at === void 0 ? "threshold" : at, Vt = rt === void 0 ? 5 : rt, _t = gt === void 0 ? 0.95 : gt, Bt = Rt === void 0 ? 0.5 : Rt, H = qt === void 0 ? St.light.graphNoData : qt, A = Ot === void 0 ? !1 : Ot, jt = F === void 0 ? !1 : F, o = Et === void 0 ? St.light.grays["gray-500"] : Et, i = it === void 0 ? !0 : it, O = tt === void 0 ? !0 : tt;
463
464
  let l;
464
465
  t[0] !== x ? (l = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = l) : l = t[1];
465
466
  const m = l;
466
467
  let s;
467
468
  t[2] !== yt ? (s = yt === void 0 ? [] : yt, t[2] = yt, t[3] = s) : s = t[3];
468
- const C = s, p = tt === void 0 ? !1 : tt, f = It === void 0 ? !1 : It, mt = lt === void 0 ? !1 : lt, $ = xt === void 0 ? "en" : xt, U = vt === void 0 ? 0 : vt, pt = zt === void 0 ? "light" : zt, de = P === void 0 ? !0 : P, me = ct === void 0 ? "button" : ct, Ht = et === void 0 ? !1 : et, pe = Pt === void 0 ? 0.3 : Pt;
469
+ const C = s, p = et === void 0 ? !1 : et, f = It === void 0 ? !1 : It, mt = lt === void 0 ? !1 : lt, $ = xt === void 0 ? "en" : xt, U = vt === void 0 ? 0 : vt, pt = zt === void 0 ? "light" : zt, de = P === void 0 ? !0 : P, me = ct === void 0 ? "button" : ct, Ht = ot === void 0 ? !1 : ot, pe = Pt === void 0 ? 0.3 : Pt;
469
470
  let Ut;
470
471
  t[4] !== E ? (Ut = E === void 0 ? [] : E, t[4] = E, t[5] = Ut) : Ut = t[5];
471
472
  const ue = Ut;
@@ -477,15 +478,15 @@ function ua(r) {
477
478
  } : I, t[6] = I, t[7] = Xt) : Xt = t[7];
478
479
  const c = Xt, he = R === void 0 ? St.primaryColors["blue-600"] : R;
479
480
  let Yt;
480
- t[8] !== V ? (Yt = V === void 0 ? [] : V, t[8] = V, t[9] = Yt) : Yt = t[9];
481
- const ge = Yt, fe = q === void 0 ? "ISO3" : q, ye = Gt === void 0 ? St.primaryColors["blue-600"] : Gt, [ut, Le] = z(0), [Wt, Pe] = z(0), [X, _e] = z(c.autoplay);
481
+ t[8] !== _ ? (Yt = _ === void 0 ? [] : _, t[8] = _, t[9] = Yt) : Yt = t[9];
482
+ const ge = Yt, fe = q === void 0 ? "ISO3" : q, ye = Gt === void 0 ? St.primaryColors["blue-600"] : Gt, [ut, Le] = z(0), [Wt, Pe] = z(0), [X, Ve] = z(c.autoplay);
482
483
  let At;
483
484
  if (t[10] !== e || t[11] !== c.dateFormat) {
484
485
  let y;
485
- t[13] !== c.dateFormat ? (y = (J) => qe(`${J.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.filter(_o).map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
486
+ t[13] !== c.dateFormat ? (y = (J) => qe(`${J.date}`, c.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[13] = c.dateFormat, t[14] = y) : y = t[14], At = [...new Set(e.filter(Vo).map(y))], At.sort(Po), t[10] = e, t[11] = c.dateFormat, t[12] = At;
486
487
  } else
487
488
  At = t[12];
488
- const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [jt, Ve] = z(void 0), ve = Tt(null), Ne = Tt(null);
489
+ const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [kt, _e] = z(void 0), ve = Tt(null), De = Tt(null);
489
490
  let Jt;
490
491
  t[15] !== G || t[16] !== L || t[17] !== n?.length || t[18] !== e ? (Jt = L || (G === "categorical" ? bo(e, "x") : wo(e.map(Lo), n?.length || 4)), t[15] = G, t[16] = L, t[17] = n?.length, t[18] = e, t[19] = Jt) : Jt = t[19];
491
492
  const Ft = Jt;
@@ -498,7 +499,7 @@ function ua(r) {
498
499
  }, Zt = [], t[20] = Kt, t[21] = Zt) : (Kt = t[20], Zt = t[21]), se(Kt, Zt);
499
500
  let Qt;
500
501
  t[22] === Symbol.for("react.memo_cache_sentinel") ? (Qt = (y) => {
501
- Ve(y);
502
+ _e(y);
502
503
  }, t[22] = Qt) : Qt = t[22];
503
504
  const te = Te(Qt);
504
505
  let ee;
@@ -519,19 +520,19 @@ function ua(r) {
519
520
  const be = c.dateFormat || "yyyy";
520
521
  let ie;
521
522
  t[33] !== Y || t[34] !== be || t[35] !== c.showOnlyActiveDate || t[36] !== u ? (ie = Ge(u, Y, c.showOnlyActiveDate, be), t[33] = Y, t[34] = be, t[35] = c.showOnlyActiveDate, t[36] = u, t[37] = ie) : ie = t[37];
522
- const ne = ie, we = v?.graphContainer, ke = b?.graphContainer;
523
+ const ne = ie, we = v?.graphContainer, je = b?.graphContainer;
523
524
  let Ct;
524
- t[38] !== v?.description || t[39] !== v?.title || t[40] !== e || t[41] !== f || t[42] !== j || t[43] !== p || t[44] !== w || t[45] !== b?.description || t[46] !== b?.title || t[47] !== g ? (Ct = w || j || p || f ? /* @__PURE__ */ a.jsx(fo, { styles: {
525
+ t[38] !== v?.description || t[39] !== v?.title || t[40] !== e || t[41] !== f || t[42] !== k || t[43] !== p || t[44] !== w || t[45] !== b?.description || t[46] !== b?.title || t[47] !== g ? (Ct = w || k || p || f ? /* @__PURE__ */ a.jsx(fo, { styles: {
525
526
  title: b?.title,
526
527
  description: b?.description
527
528
  }, classNames: {
528
529
  title: v?.title,
529
530
  description: v?.description
530
- }, graphTitle: w, graphDescription: j, width: g, graphDownload: p ? Ne : void 0, dataDownload: f ? e.map(zo).filter(Io).length > 0 ? e.map(Eo).filter(Oo) : e.filter(Mo) : null }) : null, t[38] = v?.description, t[39] = v?.title, t[40] = e, t[41] = f, t[42] = j, t[43] = p, t[44] = w, t[45] = b?.description, t[46] = b?.title, t[47] = g, t[48] = Ct) : Ct = t[48];
531
+ }, graphTitle: w, graphDescription: k, width: g, graphDownload: p ? De : void 0, dataDownload: f ? e.map(zo).filter(Io).length > 0 ? e.map(Eo).filter(Oo) : e.filter(Mo) : null }) : null, t[38] = v?.description, t[39] = v?.title, t[40] = e, t[41] = f, t[42] = k, t[43] = p, t[44] = w, t[45] = b?.description, t[46] = b?.title, t[47] = g, t[48] = Ct) : Ct = t[48];
531
532
  let Nt;
532
533
  t[49] !== Y || t[50] !== ne || t[51] !== X || t[52] !== c.enabled || t[53] !== u ? (Nt = c.enabled && u.length > 0 && ne ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
533
534
  /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
534
- _e(!X);
535
+ Ve(!X);
535
536
  }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": X ? "Click to pause animation" : "Click to play animation", children: X ? /* @__PURE__ */ a.jsx(io, {}) : /* @__PURE__ */ a.jsx(no, {}) }),
536
537
  /* @__PURE__ */ a.jsx(He, { min: u[0], max: u[u.length - 1], marks: ne, step: null, defaultValue: u[u.length - 1], value: u[Y], onChangeComplete: (y) => {
537
538
  xe(u.indexOf(y));
@@ -540,10 +541,10 @@ function ua(r) {
540
541
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
541
542
  ] }) : null, t[49] = Y, t[50] = ne, t[51] = X, t[52] = c.enabled, t[53] = u, t[54] = Nt) : Nt = t[54];
542
543
  let Dt;
543
- t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== _ || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== i || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== jt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== rt || t[86] !== _t || t[87] !== O || t[88] !== de || t[89] !== Vt || t[90] !== mt || t[91] !== M || t[92] !== kt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && jt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? jt : {
544
- ...jt,
545
- features: jt.features.filter(So)
546
- }, colorDomain: Ft, width: ut, height: Wt, scale: Vt, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: _t, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: rt, showLabels: kt, isWorldMap: i, showColorScale: M, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: _, mapProjection: st || (i ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
544
+ t[55] !== Ht || t[56] !== K || t[57] !== G || t[58] !== v || t[59] !== bt || t[60] !== n || t[61] !== ue || t[62] !== e || t[63] !== V || t[64] !== pe || t[65] !== Ft || t[66] !== B || t[67] !== he || t[68] !== wt || t[69] !== d || t[70] !== C || t[71] !== ge || t[72] !== Y || t[73] !== i || t[74] !== ye || t[75] !== o || t[76] !== Bt || t[77] !== N || t[78] !== H || t[79] !== st || t[80] !== fe || t[81] !== kt || t[82] !== dt || t[83] !== U || t[84] !== nt || t[85] !== Q || t[86] !== Vt || t[87] !== M || t[88] !== de || t[89] !== _t || t[90] !== mt || t[91] !== O || t[92] !== jt || t[93] !== b || t[94] !== Wt || t[95] !== ut || t[96] !== pt || t[97] !== c.dateFormat || t[98] !== c.enabled || t[99] !== Z || t[100] !== u || t[101] !== g || t[102] !== me || t[103] !== m || t[104] !== T ? (Dt = /* @__PURE__ */ a.jsx(xo, { ref: ve, children: ut && Wt && kt ? /* @__PURE__ */ a.jsx(No, { dotColor: he, data: e.filter((y) => c.enabled ? y.date === Re(new Date(u[Y]), c.dateFormat || "yyyy") : y), mapData: mt ? kt : {
545
+ ...kt,
546
+ features: kt.features.filter(So)
547
+ }, colorDomain: Ft, width: ut, height: Wt, scale: _t, centerPoint: K, colors: n || (G === "categorical" ? St[pt].sequentialColors[`neutralColorsx0${Ft.length}`] : St[pt].sequentialColors[`neutralColorsx0${Ft.length + 1}`]), mapColorLegendTitle: N, radius: Vt, categorical: G === "categorical", mapBorderWidth: Bt, mapNoDataColor: H, mapBorderColor: o, tooltip: Z, onSeriesMouseOver: Q, showLabels: jt, isWorldMap: i, showColorScale: O, zoomScaleExtend: m, zoomTranslateExtend: T, onSeriesMouseClick: nt, highlightedDataPoints: C, resetSelectionOnDoubleClick: de, styles: b, classNames: v, zoomInteraction: me, detailsOnClick: V, mapProjection: st || (i ? "naturalEarth" : "mercator"), animate: Ht === !0 ? {
547
548
  duration: 0.5,
548
549
  once: !0,
549
550
  amount: 0.5
@@ -552,23 +553,23 @@ function ua(r) {
552
553
  once: !0,
553
554
  amount: 0
554
555
  }, dimmedOpacity: pe, customLayers: ue, maxRadiusValue: ce(dt) ? Math.max(...e.map($o).filter(Do)) : dt, collapseColorScaleByDefault: bt, highlightedIds: ge, mapProperty: fe, dotLegendTitle: wt, dotBorderColor: B, labelColor: ye }) : /* @__PURE__ */ a.jsx("div", { style: {
555
- height: `${Math.max(U, d || (O ? U ? (g || ut) * O > U ? (g || ut) * O : U : (g || ut) * O : Wt))}px`
556
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = _, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = i, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = jt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = rt, t[86] = _t, t[87] = O, t[88] = de, t[89] = Vt, t[90] = mt, t[91] = M, t[92] = kt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
556
+ height: `${Math.max(U, d || (M ? U ? (g || ut) * M > U ? (g || ut) * M : U : (g || ut) * M : Wt))}px`
557
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(Ue, { "aria-label": "Loading graph" }) }) }), t[55] = Ht, t[56] = K, t[57] = G, t[58] = v, t[59] = bt, t[60] = n, t[61] = ue, t[62] = e, t[63] = V, t[64] = pe, t[65] = Ft, t[66] = B, t[67] = he, t[68] = wt, t[69] = d, t[70] = C, t[71] = ge, t[72] = Y, t[73] = i, t[74] = ye, t[75] = o, t[76] = Bt, t[77] = N, t[78] = H, t[79] = st, t[80] = fe, t[81] = kt, t[82] = dt, t[83] = U, t[84] = nt, t[85] = Q, t[86] = Vt, t[87] = M, t[88] = de, t[89] = _t, t[90] = mt, t[91] = O, t[92] = jt, t[93] = b, t[94] = Wt, t[95] = ut, t[96] = pt, t[97] = c.dateFormat, t[98] = c.enabled, t[99] = Z, t[100] = u, t[101] = g, t[102] = me, t[103] = m, t[104] = T, t[105] = Dt) : Dt = t[105];
557
558
  let $t;
558
- t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== W || t[109] !== k || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = k || W ? /* @__PURE__ */ a.jsx(go, { styles: {
559
+ t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== W || t[109] !== j || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = j || W ? /* @__PURE__ */ a.jsx(go, { styles: {
559
560
  footnote: b?.footnote,
560
561
  source: b?.source
561
562
  }, classNames: {
562
563
  footnote: v?.footnote,
563
564
  source: v?.source
564
- }, sources: k, footNote: W, width: g }) : null, t[106] = v?.footnote, t[107] = v?.source, t[108] = W, t[109] = k, t[110] = b?.footnote, t[111] = b?.source, t[112] = g, t[113] = $t) : $t = t[113];
565
+ }, sources: j, footNote: W, width: g }) : null, t[106] = v?.footnote, t[107] = v?.source, t[108] = W, t[109] = j, t[110] = b?.footnote, t[111] = b?.source, t[112] = g, t[113] = $t) : $t = t[113];
565
566
  let le;
566
- return t[114] !== Lt || t[115] !== A || t[116] !== ft || t[117] !== d || t[118] !== $ || t[119] !== U || t[120] !== Mt || t[121] !== O || t[122] !== we || t[123] !== ke || t[124] !== Ct || t[125] !== Nt || t[126] !== Dt || t[127] !== $t || t[128] !== pt || t[129] !== g ? (le = /* @__PURE__ */ a.jsxs(vo, { className: we, style: ke, id: ft, ref: Ne, "aria-label": Lt, backgroundColor: A, theme: pt, language: $, minHeight: U, width: g, height: d, relativeHeight: O, padding: Mt, children: [
567
+ return t[114] !== Lt || t[115] !== A || t[116] !== ft || t[117] !== d || t[118] !== $ || t[119] !== U || t[120] !== Mt || t[121] !== M || t[122] !== we || t[123] !== je || t[124] !== Ct || t[125] !== Nt || t[126] !== Dt || t[127] !== $t || t[128] !== pt || t[129] !== g ? (le = /* @__PURE__ */ a.jsxs(vo, { className: we, style: je, id: ft, ref: De, "aria-label": Lt, backgroundColor: A, theme: pt, language: $, minHeight: U, width: g, height: d, relativeHeight: M, padding: Mt, children: [
567
568
  Ct,
568
569
  Nt,
569
570
  Dt,
570
571
  $t
571
- ] }), t[114] = Lt, t[115] = A, t[116] = ft, t[117] = d, t[118] = $, t[119] = U, t[120] = Mt, t[121] = O, t[122] = we, t[123] = ke, t[124] = Ct, t[125] = Nt, t[126] = Dt, t[127] = $t, t[128] = pt, t[129] = g, t[130] = le) : le = t[130], le;
572
+ ] }), t[114] = Lt, t[115] = A, t[116] = ft, t[117] = d, t[118] = $, t[119] = U, t[120] = Mt, t[121] = M, t[122] = we, t[123] = je, t[124] = Ct, t[125] = Nt, t[126] = Dt, t[127] = $t, t[128] = pt, t[129] = g, t[130] = le) : le = t[130], le;
572
573
  }
573
574
  function Do(r) {
574
575
  return r != null;
@@ -600,7 +601,7 @@ function Lo(r) {
600
601
  function Po(r, t) {
601
602
  return r - t;
602
603
  }
603
- function _o(r) {
604
+ function Vo(r) {
604
605
  return r.date;
605
606
  }
606
607
  export {