@undp/data-viz 2.2.2 → 2.3.0

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 (123) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/Axis-D56Gy0se.js +31 -0
  4. package/dist/Axis-D56Gy0se.js.map +1 -0
  5. package/dist/Axis-Jt_tmhxS.cjs +2 -0
  6. package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
  7. package/dist/BarGraph.cjs +1 -1
  8. package/dist/BarGraph.cjs.map +1 -1
  9. package/dist/BarGraph.d.ts +6 -0
  10. package/dist/BarGraph.js +1759 -1750
  11. package/dist/BarGraph.js.map +1 -1
  12. package/dist/BeeSwarmChart.cjs +1 -1
  13. package/dist/BeeSwarmChart.cjs.map +1 -1
  14. package/dist/BeeSwarmChart.d.ts +2 -0
  15. package/dist/BeeSwarmChart.js +270 -267
  16. package/dist/BeeSwarmChart.js.map +1 -1
  17. package/dist/BiVariateChoroplethMap.cjs +1 -1
  18. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  19. package/dist/BiVariateChoroplethMap.d.ts +4 -0
  20. package/dist/BiVariateChoroplethMap.js +328 -401
  21. package/dist/BiVariateChoroplethMap.js.map +1 -1
  22. package/dist/BulletChart.cjs +1 -1
  23. package/dist/BulletChart.cjs.map +1 -1
  24. package/dist/BulletChart.d.ts +2 -0
  25. package/dist/BulletChart.js +544 -542
  26. package/dist/BulletChart.js.map +1 -1
  27. package/dist/ButterflyChart.cjs +1 -1
  28. package/dist/ButterflyChart.cjs.map +1 -1
  29. package/dist/ButterflyChart.d.ts +2 -0
  30. package/dist/ButterflyChart.js +332 -330
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +4 -0
  35. package/dist/ChoroplethMap.js +341 -416
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/Data/01.json +4042 -0
  38. package/dist/Data/mapData.json +4543 -0
  39. package/dist/Data/testMap.json +361 -0
  40. package/dist/DifferenceLineChart.cjs +1 -1
  41. package/dist/DifferenceLineChart.js +1 -1
  42. package/dist/DotDensityMap.cjs +1 -1
  43. package/dist/DotDensityMap.cjs.map +1 -1
  44. package/dist/DotDensityMap.d.ts +4 -0
  45. package/dist/DotDensityMap.js +297 -311
  46. package/dist/DotDensityMap.js.map +1 -1
  47. package/dist/DualAxisLineChart.cjs +1 -1
  48. package/dist/DualAxisLineChart.js +1 -1
  49. package/dist/DumbbellChart.cjs +1 -1
  50. package/dist/DumbbellChart.cjs.map +1 -1
  51. package/dist/DumbbellChart.d.ts +2 -0
  52. package/dist/DumbbellChart.js +537 -536
  53. package/dist/DumbbellChart.js.map +1 -1
  54. package/dist/{GraphEl-DcNr5JzH.js → GraphEl-L5hNe7wJ.js} +84 -67
  55. package/dist/GraphEl-L5hNe7wJ.js.map +1 -0
  56. package/dist/GraphEl-ic8C5Ksc.cjs +2 -0
  57. package/dist/GraphEl-ic8C5Ksc.cjs.map +1 -0
  58. package/dist/GriddedGraphs.cjs +1 -1
  59. package/dist/GriddedGraphs.d.ts +3 -0
  60. package/dist/GriddedGraphs.js +1 -1
  61. package/dist/GriddedGraphsFromConfig.d.ts +3 -0
  62. package/dist/Histogram.cjs +1 -1
  63. package/dist/Histogram.cjs.map +1 -1
  64. package/dist/Histogram.d.ts +2 -0
  65. package/dist/Histogram.js +50 -49
  66. package/dist/Histogram.js.map +1 -1
  67. package/dist/HybridMap.cjs +1 -1
  68. package/dist/HybridMap.cjs.map +1 -1
  69. package/dist/HybridMap.d.ts +4 -0
  70. package/dist/HybridMap.js +368 -418
  71. package/dist/HybridMap.js.map +1 -1
  72. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  73. package/dist/LineChartWithConfidenceInterval.js +1 -1
  74. package/dist/MultiGraphDashboard.d.ts +3 -0
  75. package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
  76. package/dist/MultiLineAltChart.cjs +1 -1
  77. package/dist/MultiLineAltChart.js +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.js +1 -1
  80. package/dist/ParetoChart.cjs +1 -1
  81. package/dist/ParetoChart.js +1 -1
  82. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
  83. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
  84. package/dist/PerformanceIntensiveScrollStory.d.ts +3 -0
  85. package/dist/ScatterPlot.cjs +1 -1
  86. package/dist/ScatterPlot.js +1 -1
  87. package/dist/ScrollStory.d.ts +3 -0
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.js +1 -1
  90. package/dist/SingleGraphDashboard.cjs +1 -1
  91. package/dist/SingleGraphDashboard.d.ts +3 -0
  92. package/dist/SingleGraphDashboard.js +1 -1
  93. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
  94. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +3 -0
  95. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +3 -0
  96. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
  97. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
  98. package/dist/SlopeChart.cjs +1 -1
  99. package/dist/SlopeChart.js +1 -1
  100. package/dist/Types.d.ts +3 -0
  101. package/dist/WaterfallChart.cjs +1 -1
  102. package/dist/WaterfallChart.cjs.map +1 -1
  103. package/dist/WaterfallChart.d.ts +2 -0
  104. package/dist/WaterfallChart.js +263 -261
  105. package/dist/WaterfallChart.js.map +1 -1
  106. package/dist/index-DLFt97gy.cjs +2 -0
  107. package/dist/index-DLFt97gy.cjs.map +1 -0
  108. package/dist/index-Dp_SfsUA.js +2344 -0
  109. package/dist/index-Dp_SfsUA.js.map +1 -0
  110. package/dist/index.d.ts +37 -0
  111. package/package.json +2 -1
  112. package/readme.md +0 -7
  113. package/dist/Axis-DoOqnt6g.js +0 -32
  114. package/dist/Axis-DoOqnt6g.js.map +0 -1
  115. package/dist/Axis-Dtjn-EgM.cjs +0 -2
  116. package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
  117. package/dist/GraphEl-CAjJLOGk.cjs +0 -2
  118. package/dist/GraphEl-CAjJLOGk.cjs.map +0 -1
  119. package/dist/GraphEl-DcNr5JzH.js.map +0 -1
  120. package/dist/zoom-5AkJSuWO.js +0 -1864
  121. package/dist/zoom-5AkJSuWO.js.map +0 -1
  122. package/dist/zoom-ChcvXFIz.cjs +0 -2
  123. package/dist/zoom-ChcvXFIz.cjs.map +0 -1
package/dist/HybridMap.js CHANGED
@@ -1,298 +1,243 @@
1
- import { _ as We, m as Ne, b as Oe, j as a, c as _e } from "./index-CHPV5EwG-DecW7_qr.js";
2
- import * as Ae from "react";
3
- import Fe, { useState as z, useRef as Tt, useEffect as se, useEffectEvent as Te } from "react";
4
- import { f as Re, p as qe } from "./parse-Dv4of-PN.js";
5
- import { g as Ge, N as He } from "./getSliderMarks-Cvg8zHBU.js";
6
- import { w as Ue } from "./Spinner--r2RrJV8.js";
7
- import { i as $e } from "./index-Bwrro8-q.js";
8
- import { z as Xe, i as Ye, g as Je, a as Ke, b as Ze, c as Qe, d as to } from "./zoom-5AkJSuWO.js";
9
- import { j as ke } from "./Typography-hWfh3H0J.js";
10
- import { i as eo } from "./index-DCsFBfJ_.js";
11
- import { n as Se } from "./Source-F8EYCYkV.js";
12
- import { w as oo } from "./index-Dzc_aaI9-CG2Ar7l1.js";
13
- import { T as ao } from "./Tooltip-BRnAz2Gv.js";
14
- import { X as ro, P as io, e as no } from "./index-BQYOuXdl.js";
15
- import { D as lo } from "./DetailsModal-BMCTgVsk.js";
16
- import { s as so } from "./pow-CaIrlM4J.js";
17
- import { o as co } from "./ordinal-CHaxGJ_l.js";
18
- import { t as mo } from "./threshold-DFfqcDMa.js";
19
- import { s as Ce } from "./select-DKy99ogv.js";
20
- import { m as ht } from "./proxy-DRuSUlPL.js";
21
- import { c as ce } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
- import { n as po } from "./numberFormattingFunction-14YCbkN2.js";
23
- import { u as uo } from "./use-in-view-Dl5L8LtP.js";
24
- import { A as ho } from "./index-CtMBjvtq.js";
25
- import { GraphFooter as go } from "./GraphFooter.js";
26
- import { GraphHeader as fo } from "./GraphHeader.js";
27
- import { Colors as St } from "./Colors.js";
28
- import { f as yo } from "./fetchAndParseData-BAXhgTDM.js";
29
- import { a as xo, G as vo } from "./GraphContainer-CF6ws3pd.js";
30
- import { g as bo } from "./getUniqValue-DsqSii6M.js";
31
- import { g as wo } from "./getJenks-DTCcQSDi.js";
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
- return /* @__PURE__ */ Oe.jsx(
35
- oo.div,
1
+ import { _ as Ge, m as ze, b as Be, j as a, c as qe } from "./index-CHPV5EwG-DecW7_qr.js";
2
+ import * as He from "react";
3
+ import Ue, { useMemo as Xe, useState as S, useRef as Rt, useEffect as de, useEffectEvent as Ye } from "react";
4
+ import { f as Je, p as Ke } from "./parse-Dv4of-PN.js";
5
+ import { g as Ze, N as Qe } from "./getSliderMarks-Cvg8zHBU.js";
6
+ import { w as to } from "./Spinner--r2RrJV8.js";
7
+ import { i as Pe } from "./index-Bwrro8-q.js";
8
+ import { i as eo, z as oo, a as ao, g as ro, b as io, c as no, d as lo, e as so, f as co } from "./index-Dp_SfsUA.js";
9
+ import { j as Oe } from "./Typography-hWfh3H0J.js";
10
+ import { i as mo } from "./index-DCsFBfJ_.js";
11
+ import { n as Le } from "./Source-F8EYCYkV.js";
12
+ import { w as po } from "./index-Dzc_aaI9-CG2Ar7l1.js";
13
+ import { T as uo } from "./Tooltip-BRnAz2Gv.js";
14
+ import { X as ho, P as go, e as fo } from "./index-BQYOuXdl.js";
15
+ import { D as yo } from "./DetailsModal-BMCTgVsk.js";
16
+ import { s as xo } from "./pow-CaIrlM4J.js";
17
+ import { o as vo } from "./ordinal-CHaxGJ_l.js";
18
+ import { t as bo } from "./threshold-DFfqcDMa.js";
19
+ import { s as Ie } from "./select-DKy99ogv.js";
20
+ import { m as lt } from "./proxy-DRuSUlPL.js";
21
+ import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
22
+ import { n as wo } from "./numberFormattingFunction-14YCbkN2.js";
23
+ import { u as jo } from "./use-in-view-Dl5L8LtP.js";
24
+ import { A as ko } from "./index-CtMBjvtq.js";
25
+ import { GraphFooter as Co } from "./GraphFooter.js";
26
+ import { GraphHeader as Do } from "./GraphHeader.js";
27
+ import { Colors as jt } from "./Colors.js";
28
+ import { f as No } from "./fetchAndParseData-BAXhgTDM.js";
29
+ import { a as So, G as Mo } from "./GraphContainer-CF6ws3pd.js";
30
+ import { g as Oo } from "./getUniqValue-DsqSii6M.js";
31
+ import { g as Io } from "./getJenks-DTCcQSDi.js";
32
+ var zo = "Separator", Ve = "horizontal", Eo = ["horizontal", "vertical"], _e = He.forwardRef((r, t) => {
33
+ const { decorative: e, orientation: v = Ve, ...g } = r, n = Po(v) ? v : Ve, f = e ? { role: "none" } : { "aria-orientation": n === "vertical" ? n : void 0, role: "separator" };
34
+ return /* @__PURE__ */ Be.jsx(
35
+ po.div,
36
36
  {
37
37
  "data-orientation": n,
38
- ...j,
39
- ...w,
38
+ ...f,
39
+ ...g,
40
40
  ref: t
41
41
  }
42
42
  );
43
43
  });
44
- Ee.displayName = jo;
45
- function Co(r) {
46
- return ko.includes(r);
44
+ _e.displayName = zo;
45
+ function Po(r) {
46
+ return Eo.includes(r);
47
47
  }
48
- var Ie = Ee;
49
- const ze = Fe.forwardRef((r, t) => {
50
- const e = We.c(14);
51
- let h, w, n, j;
48
+ var $e = _e;
49
+ const Ae = Ue.forwardRef((r, t) => {
50
+ const e = Ge.c(14);
51
+ let v, g, n, f;
52
52
  e[0] !== r ? ({
53
- className: h,
53
+ className: v,
54
54
  variant: n,
55
- orientation: j,
56
- ...w
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
- let N;
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
- let L;
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;
55
+ orientation: f,
56
+ ...g
57
+ } = r, e[0] = r, e[1] = v, e[2] = g, e[3] = n, e[4] = f) : (v = e[1], g = e[2], n = e[3], f = e[4]);
58
+ const y = n === void 0 ? "dark" : n, c = f === void 0 ? "horizontal" : f, u = c === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", j = y === "dark" ? "bg-primary-gray-600 dark:bg-primary-gray-200" : "bg-primary-gray-400 dark:bg-primary-gray-550";
59
+ let b;
60
+ e[5] !== v || e[6] !== u || e[7] !== j ? (b = ze(u, j, v), e[5] = v, e[6] = u, e[7] = j, e[8] = b) : b = e[8];
61
+ let M;
62
+ return e[9] !== c || e[10] !== g || e[11] !== t || e[12] !== b ? (M = /* @__PURE__ */ Be.jsx($e, { ...g, ref: t, orientation: c, className: b }), e[9] = c, e[10] = g, e[11] = t, e[12] = b, e[13] = M) : M = e[13], M;
63
63
  });
64
- ze.displayName = Ie.displayName;
65
- function No(r) {
64
+ Ae.displayName = $e.displayName;
65
+ function Lo(r) {
66
66
  const {
67
67
  data: t,
68
68
  colors: e,
69
- mapData: h,
70
- mapColorLegendTitle: w,
69
+ mapData: v,
70
+ mapColorLegendTitle: g,
71
71
  colorDomain: n,
72
- radius: j,
73
- height: k,
74
- width: d,
75
- scale: g,
76
- centerPoint: S,
77
- tooltip: N,
78
- showLabels: L,
79
- mapBorderWidth: at,
80
- mapBorderColor: rt,
81
- mapNoDataColor: gt,
82
- onSeriesMouseOver: K,
83
- showColorScale: Mt,
84
- zoomScaleExtend: Rt,
72
+ radius: f,
73
+ height: y,
74
+ width: c,
75
+ scale: u,
76
+ centerPoint: j,
77
+ tooltip: b,
78
+ showLabels: M,
79
+ mapBorderWidth: kt,
80
+ mapBorderColor: Ct,
81
+ mapNoDataColor: Dt,
82
+ onSeriesMouseOver: q,
83
+ showColorScale: Nt,
84
+ zoomScaleExtend: Gt,
85
85
  zoomTranslateExtend: qt,
86
- highlightedDataPoints: Ot,
87
- onSeriesMouseClick: F,
88
- resetSelectionOnDoubleClick: Et,
89
- detailsOnClick: Z,
90
- styles: M,
91
- classNames: Q,
92
- mapProjection: it,
93
- zoomInteraction: tt,
86
+ highlightedDataPoints: St,
87
+ onSeriesMouseClick: P,
88
+ resetSelectionOnDoubleClick: Mt,
89
+ detailsOnClick: H,
90
+ styles: k,
91
+ classNames: U,
92
+ mapProjection: Z,
93
+ zoomInteraction: X,
94
94
  animate: x,
95
- dimmedOpacity: T,
96
- customLayers: ft,
97
- maxRadiusValue: yt,
98
- categorical: nt,
99
- dotColor: et,
100
- collapseColorScaleByDefault: It,
101
- highlightedIds: lt,
102
- mapProperty: xt,
103
- dotLegendTitle: vt,
104
- dotBorderColor: zt,
105
- labelColor: Lt
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), B = Tt(null), q = uo(B, {
95
+ dimmedOpacity: L,
96
+ customLayers: st,
97
+ maxRadiusValue: ct,
98
+ categorical: Q,
99
+ dotColor: Y,
100
+ collapseColorScaleByDefault: Ot,
101
+ highlightedIds: tt,
102
+ mapProperty: dt,
103
+ dotLegendTitle: mt,
104
+ dotBorderColor: It,
105
+ labelColor: zt,
106
+ projectionRotate: J,
107
+ rewindCoordinatesInMapData: pt
108
+ } = r, d = Xe(() => pt ? eo(v, {
109
+ reverse: !0
110
+ }) : v, [v, pt]), [l, V] = S(void 0), [Ht, Et] = S(Ot === void 0 ? !(c < 680) : !Ot), ut = Rt(null), [B, O] = S(void 0), [et, I] = S(void 0), [Pt, C] = S(void 0), [Lt, z] = S(void 0), _ = Rt(null), K = jo(_, {
107
111
  once: x.once,
108
112
  amount: x.amount
109
- }), wt = Tt(null), W = 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
- se(() => {
111
- const o = Ce(wt.current), i = Ce(B.current), O = (m) => {
112
- if (tt === "noZoom") return !1;
113
- if (tt === "button") return !m.type.includes("wheel");
114
- const s = m.type === "wheel", C = m.type.startsWith("touch"), p = m.type === "mousedown" || m.type === "mousemove";
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", ({
113
+ }), ot = Rt(null), $ = t.filter((o) => o.radius === void 0 || o.radius === null).length !== t.length ? xo().domain([0, ct]).range([0.25, f]).nice() : void 0, E = Q ? vo().domain(n).range(e) : bo().domain(n).range(e);
114
+ de(() => {
115
+ const o = Ie(ot.current), i = Ie(_.current), D = (m) => {
116
+ if (X === "noZoom") return !1;
117
+ if (X === "button") return !m.type.includes("wheel");
118
+ const gt = m.type === "wheel", ft = m.type.startsWith("touch"), At = m.type === "mousedown" || m.type === "mousemove";
119
+ return ft ? !0 : gt ? X === "scroll" ? !0 : m.ctrlKey : At && !m.button && !m.ctrlKey;
120
+ }, N = oo().scaleExtent(Gt).translateExtent(qt || [[-20, -20], [c + 20, y + 20]]).filter(D).on("zoom", ({
117
121
  transform: m
118
122
  }) => {
119
123
  o.attr("transform", m);
120
124
  });
121
- i.call(l), st.current = l;
122
- }, [k, d, tt]);
123
- const D = Ye(h), _ = eo(h), G = D[2] - D[0], Vt = D[3] - D[1], Bt = d * 190 / 960 * 360 / G, Wt = k * 190 / 678 * 180 / Vt, H = g * Math.min(Bt, Wt), A = it === "mercator" ? Je().rotate([0, 0]).center(S || _.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "equalEarth" ? Ke().rotate([0, 0]).center(S || _.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "naturalEarth" ? Ze().rotate([0, 0]).center(S || _.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : it === "orthographic" ? Qe().rotate([0, 0]).center(S || _.geometry.coordinates).translate([d / 2, k / 2]).scale(H) : to().rotate([0, 0]).center(S || _.geometry.coordinates).translate([d / 2, k / 2]).scale(H), jt = (o) => {
124
- if (!B.current || !st.current) return;
125
- Ce(B.current).call(st.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
125
+ i.call(N), ut.current = N;
126
+ }, [y, c, X]);
127
+ const A = ao(d), w = mo(d), Vt = A[2] - A[0], Bt = A[3] - A[1], _t = c * 190 / 960 * 360 / Vt, $t = y * 190 / 678 * 180 / Bt, F = u * Math.min(_t, $t), at = Z === "mercator" ? ro().rotate(J).center(j || w.geometry.coordinates).translate([c / 2, y / 2]).scale(F) : Z === "equalEarth" ? io().rotate(J).center(j || w.geometry.coordinates).translate([c / 2, y / 2]).scale(F) : Z === "naturalEarth" ? no().rotate(J).center(j || w.geometry.coordinates).translate([c / 2, y / 2]).scale(F) : Z === "orthographic" ? lo().rotate(J).center(j || w.geometry.coordinates).translate([c / 2, y / 2]).scale(F) : so().rotate(J).center(j || w.geometry.coordinates).translate([c / 2, y / 2]).scale(F), ht = co().projection(at), rt = (o) => {
128
+ if (!_.current || !ut.current) return;
129
+ Ie(_.current).call(ut.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
126
130
  };
127
131
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
128
132
  /* @__PURE__ */ a.jsxs("div", { className: "relative", children: [
129
- /* @__PURE__ */ a.jsx(ht.svg, { width: `${d}px`, height: `${k}px`, viewBox: `0 0 ${d} ${k}`, ref: B, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: wt, children: [
130
- ft.filter((o) => o.position === "before").map((o) => o.layer),
131
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
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" ? (
133
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
134
- o.geometry.coordinates.map((l, m) => {
135
- let s = "";
136
- return l.forEach((C) => {
137
- let p = " M";
138
- C.forEach((f, mt) => {
139
- const $ = A([f[0], f[1]]);
140
- mt !== C.length - 1 ? p = `${p}${$[0]} ${$[1]}L` : p = `${p}${$[0]} ${$[1]}`;
141
- }), s += p;
142
- }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
143
- stroke: rt,
144
- strokeWidth: at,
145
- fill: gt
146
- } }, m);
147
- })
148
- ) : (
149
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
150
- o.geometry.coordinates.map((l, m) => {
151
- let s = "M";
152
- return l.forEach((C, p) => {
153
- const f = A([C[0], C[1]]);
154
- p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
155
- }), /* @__PURE__ */ a.jsx("path", { d: s, style: {
156
- stroke: rt,
157
- strokeWidth: at,
158
- fill: gt
159
- } }, m);
160
- })
161
- ) }, i)),
162
- /* @__PURE__ */ a.jsxs(ho, { children: [
133
+ /* @__PURE__ */ a.jsx(lt.svg, { width: `${c}px`, height: `${y}px`, viewBox: `0 0 ${c} ${y}`, ref: _, direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { ref: ot, children: [
134
+ st.filter((o) => o.position === "before").map((o) => o.layer),
135
+ d.features.map((o, i) => {
136
+ if (!o.properties?.[dt]) return null;
137
+ const D = ht(o);
138
+ return D ? /* @__PURE__ */ a.jsx(lt.g, { opacity: l ? L : tt.length !== 0 ? tt.indexOf(o.properties[dt]) !== -1 ? 1 : L : 1, children: /* @__PURE__ */ a.jsx("path", { d: D, style: {
139
+ stroke: Ct,
140
+ strokeWidth: kt,
141
+ fill: Dt
142
+ } }) }, i) : null;
143
+ }),
144
+ /* @__PURE__ */ a.jsxs(ko, { children: [
163
145
  t.filter((o) => o.id).map((o) => {
164
- const i = h.features.findIndex(
146
+ const i = d.features.findIndex(
165
147
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
166
- (l) => o.id === l.properties[xt]
167
- ), O = ce(o.x) ? gt : (
148
+ (m) => o.id === m.properties[dt]
149
+ );
150
+ if (i === -1) return null;
151
+ const D = ht(d.features[i]);
152
+ if (!D) return null;
153
+ const N = me(o.x) ? Dt : (
168
154
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
169
- Gt(o.x)
155
+ E(o.x)
170
156
  );
171
- return /* @__PURE__ */ a.jsx(ht.g, { variants: {
157
+ return /* @__PURE__ */ a.jsx(lt.g, { variants: {
172
158
  initial: {
173
159
  opacity: 0
174
160
  },
175
161
  whileInView: {
176
- opacity: P ? P === O ? 1 : T : lt.length !== 0 ? lt.indexOf(o.id) !== -1 ? 1 : T : 1,
162
+ opacity: l ? l === N ? 1 : L : tt.length !== 0 ? tt.indexOf(o.id) !== -1 ? 1 : L : 1,
177
163
  transition: {
178
164
  duration: x.duration
179
165
  }
180
166
  }
181
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
167
+ }, initial: "initial", animate: K ? "whileInView" : "initial", exit: {
182
168
  opacity: 0,
183
169
  transition: {
184
170
  duration: x.duration
185
171
  }
186
- }, onMouseEnter: (l) => {
187
- E(o), R(l.clientY), I(l.clientX), K?.(o);
188
- }, onMouseMove: (l) => {
189
- E(o), R(l.clientY), I(l.clientX);
172
+ }, onMouseEnter: (m) => {
173
+ I(o), z(m.clientY), C(m.clientX), q?.(o);
174
+ }, onMouseMove: (m) => {
175
+ I(o), z(m.clientY), C(m.clientX);
190
176
  }, onMouseLeave: () => {
191
- E(void 0), I(void 0), R(void 0), K?.(void 0);
177
+ I(void 0), C(void 0), z(void 0), q?.(void 0);
192
178
  }, onClick: () => {
193
- (F || Z) && ($e(ct, o) && Et ? (ot(void 0), F?.(void 0)) : (ot(o), F?.(o)));
194
- }, children: i === -1 ? null : h.features[i].geometry.type === "MultiPolygon" ? h.features[i].geometry.coordinates.map(
195
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
196
- (l, m) => {
197
- let s = "";
198
- return l.forEach((C) => {
199
- let p = " M";
200
- C.forEach((f, mt) => {
201
- const $ = A([f[0], f[1]]);
202
- mt !== C.length - 1 ? p = `${p}${$[0]} ${$[1]}L` : p = `${p}${$[0]} ${$[1]}`;
203
- }), s += p;
204
- }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
205
- initial: {
206
- fill: O,
207
- opacity: 0
208
- },
209
- whileInView: {
210
- fill: O,
211
- opacity: 1,
212
- transition: {
213
- duration: x.duration
214
- }
215
- }
216
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
217
- opacity: 0,
218
- transition: {
219
- duration: x.duration
220
- }
221
- }, style: {
222
- stroke: rt,
223
- strokeWidth: at
224
- } }, `${o.id}-${m}`);
179
+ (P || H) && (Pe(B, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
180
+ }, children: /* @__PURE__ */ a.jsx(lt.path, { d: D, variants: {
181
+ initial: {
182
+ fill: N,
183
+ opacity: 0
184
+ },
185
+ whileInView: {
186
+ fill: N,
187
+ opacity: 1,
188
+ transition: {
189
+ duration: x.duration
190
+ }
225
191
  }
226
- ) : h.features[i].geometry.coordinates.map(
227
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
228
- (l, m) => {
229
- let s = "M";
230
- return l.forEach((C, p) => {
231
- const f = A([C[0], C[1]]);
232
- p !== l.length - 1 ? s = `${s}${f[0]} ${f[1]}L` : s = `${s}${f[0]} ${f[1]}`;
233
- }), /* @__PURE__ */ a.jsx(ht.path, { d: s, variants: {
234
- initial: {
235
- fill: O,
236
- opacity: 0
237
- },
238
- whileInView: {
239
- fill: O,
240
- opacity: 1,
241
- transition: {
242
- duration: x.duration
243
- }
244
- }
245
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
246
- opacity: 0,
247
- transition: {
248
- duration: x.duration
249
- }
250
- }, style: {
251
- stroke: rt,
252
- strokeWidth: at
253
- } }, `${o.id}-${m}`);
192
+ }, initial: "initial", animate: K ? "whileInView" : "initial", exit: {
193
+ opacity: 0,
194
+ transition: {
195
+ duration: x.duration
254
196
  }
255
- ) }, o.id);
197
+ }, style: {
198
+ stroke: Ct,
199
+ strokeWidth: kt
200
+ } }, `${o.id}`) }, o.id);
256
201
  }),
257
- t.filter((o) => !ce(o.lat) && !ce(o.long)).map((o) => /* @__PURE__ */ a.jsxs(ht.g, { variants: {
202
+ t.filter((o) => !me(o.lat) && !me(o.long)).map((o) => /* @__PURE__ */ a.jsxs(lt.g, { variants: {
258
203
  initial: {
259
204
  opacity: 0
260
205
  },
261
206
  whileInView: {
262
- opacity: Ot.length !== 0 ? Ot.indexOf(o.label || "") !== -1 ? 1 : T : 1,
207
+ opacity: St.length !== 0 ? St.indexOf(o.label || "") !== -1 ? 1 : L : 1,
263
208
  transition: {
264
209
  duration: x.duration
265
210
  }
266
211
  }
267
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
212
+ }, initial: "initial", animate: K ? "whileInView" : "initial", exit: {
268
213
  opacity: 0,
269
214
  transition: {
270
215
  duration: x.duration
271
216
  }
272
217
  }, onMouseEnter: (i) => {
273
- E(o), R(i.clientY), I(i.clientX), K?.(o);
218
+ I(o), z(i.clientY), C(i.clientX), q?.(o);
274
219
  }, onMouseMove: (i) => {
275
- E(o), R(i.clientY), I(i.clientX);
220
+ I(o), z(i.clientY), C(i.clientX);
276
221
  }, onMouseLeave: () => {
277
- E(void 0), I(void 0), R(void 0), K?.(void 0);
222
+ I(void 0), C(void 0), z(void 0), q?.(void 0);
278
223
  }, onClick: () => {
279
- (F || Z) && ($e(ct, o) && Et ? (ot(void 0), F?.(void 0)) : (ot(o), F?.(o)));
280
- }, transform: `translate(${A([o.long, o.lat])[0]},${A([o.long, o.lat])[1]})`, children: [
281
- /* @__PURE__ */ a.jsx(ht.circle, { cx: 0, cy: 0, variants: {
224
+ (P || H) && (Pe(B, o) && Mt ? (O(void 0), P?.(void 0)) : (O(o), P?.(o)));
225
+ }, transform: `translate(${at([o.long, o.lat])[0]},${at([o.long, o.lat])[1]})`, children: [
226
+ /* @__PURE__ */ a.jsx(lt.circle, { cx: 0, cy: 0, variants: {
282
227
  initial: {
283
228
  r: 0,
284
- fill: et,
285
- stroke: zt || et
229
+ fill: Y,
230
+ stroke: It || Y
286
231
  },
287
232
  whileInView: {
288
- r: W ? W(o.radius || 0) : j,
289
- fill: et,
290
- stroke: zt || et,
233
+ r: $ ? $(o.radius || 0) : f,
234
+ fill: Y,
235
+ stroke: It || Y,
291
236
  transition: {
292
237
  duration: x.duration
293
238
  }
294
239
  }
295
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
240
+ }, initial: "initial", animate: K ? "whileInView" : "initial", exit: {
296
241
  r: 0,
297
242
  transition: {
298
243
  duration: x.duration
@@ -300,60 +245,60 @@ function No(r) {
300
245
  }, style: {
301
246
  fillOpacity: 0.8
302
247
  } }),
303
- L && o.label ? /* @__PURE__ */ a.jsx(ht.text, { variants: {
248
+ M && o.label ? /* @__PURE__ */ a.jsx(lt.text, { variants: {
304
249
  initial: {
305
250
  opacity: 0,
306
- x: W ? W(o.radius || 0) : j
251
+ x: $ ? $(o.radius || 0) : f
307
252
  },
308
253
  whileInView: {
309
254
  opacity: 1,
310
- x: W ? W(o.radius || 0) : j,
255
+ x: $ ? $(o.radius || 0) : f,
311
256
  transition: {
312
257
  duration: x.duration
313
258
  }
314
259
  }
315
- }, initial: "initial", animate: q ? "whileInView" : "initial", exit: {
260
+ }, initial: "initial", animate: K ? "whileInView" : "initial", exit: {
316
261
  opacity: 0,
317
262
  transition: {
318
263
  duration: x.duration
319
264
  }
320
- }, y: 0, className: Ne("text-sm", Q?.graphObjectValues), style: {
265
+ }, y: 0, className: ze("text-sm", U?.graphObjectValues), style: {
321
266
  textAnchor: "start",
322
- fill: Lt || "#000",
323
- ...M?.graphObjectValues || {}
267
+ fill: zt || "#000",
268
+ ...k?.graphObjectValues || {}
324
269
  }, dx: 4, dy: 5, children: o.label }) : null
325
270
  ] }, o.label || `${o.lat}-${o.long}`))
326
271
  ] }),
327
- ft.filter((o) => o.position === "after").map((o) => o.layer)
272
+ st.filter((o) => o.position === "after").map((o) => o.layer)
328
273
  ] }) }),
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: [
274
+ Nt === !1 ? null : /* @__PURE__ */ a.jsx("div", { className: ze("absolute left-4 bottom-4 map-color-legend", U?.colorLegend), children: Ht ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
330
275
  /* @__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: () => {
331
- v(!1);
332
- }, children: /* @__PURE__ */ a.jsx(ro, {}) }),
276
+ Et(!1);
277
+ }, children: /* @__PURE__ */ a.jsx(ho, {}) }),
333
278
  /* @__PURE__ */ a.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
334
- width: nt ? void 0 : "340px"
279
+ width: Q ? void 0 : "340px"
335
280
  }, children: [
336
- vt && vt !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
281
+ mt && mt !== "" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
337
282
  /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2", children: [
338
283
  /* @__PURE__ */ a.jsx("div", { className: "w-3 h-3 rounded-full", style: {
339
- backgroundColor: et
284
+ backgroundColor: Y
340
285
  } }),
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: {
286
+ /* @__PURE__ */ a.jsx(Oe, { size: "xs", marginBottom: "none", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
342
287
  display: "-webkit-box",
343
288
  WebkitLineClamp: "1",
344
289
  WebkitBoxOrient: "vertical"
345
- }, children: vt })
290
+ }, children: mt })
346
291
  ] }),
347
- /* @__PURE__ */ a.jsx(Se, { size: "xl" }),
348
- /* @__PURE__ */ a.jsx(ze, {}),
349
- /* @__PURE__ */ a.jsx(Se, { size: "xl" })
292
+ /* @__PURE__ */ a.jsx(Le, { size: "xl" }),
293
+ /* @__PURE__ */ a.jsx(Ae, {}),
294
+ /* @__PURE__ */ a.jsx(Le, { size: "xl" })
350
295
  ] }) : null,
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: {
296
+ g && g !== "" ? /* @__PURE__ */ a.jsx(Oe, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
352
297
  display: "-webkit-box",
353
298
  WebkitLineClamp: "1",
354
299
  WebkitBoxOrient: "vertical"
355
- }, children: w }) : null,
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: () => {
300
+ }, children: g }) : null,
301
+ Q ? /* @__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: () => {
357
302
  V(e[i % e.length]);
358
303
  }, onMouseLeave: () => {
359
304
  V(void 0);
@@ -361,250 +306,255 @@ function No(r) {
361
306
  /* @__PURE__ */ a.jsx("div", { className: "w-2 h-2 rounded-full", style: {
362
307
  backgroundColor: e[i % e.length]
363
308
  } }),
364
- /* @__PURE__ */ a.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: o })
309
+ /* @__PURE__ */ a.jsx(Oe, { size: "sm", marginBottom: "none", leading: "none", children: o })
365
310
  ] }, i)) }) : /* @__PURE__ */ a.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ a.jsxs("g", { children: [
366
311
  n.map((o, i) => /* @__PURE__ */ a.jsxs("g", { onMouseOver: () => {
367
312
  V(e[i]);
368
313
  }, onMouseLeave: () => {
369
314
  V(void 0);
370
315
  }, className: "cursor-pointer", children: [
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: {
316
+ /* @__PURE__ */ a.jsx("rect", { x: i * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: l === e[i] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
372
317
  fill: e[i],
373
- ...P === e[i] ? {} : {
318
+ ...l === e[i] ? {} : {
374
319
  stroke: e[i]
375
320
  }
376
321
  } }),
377
322
  /* @__PURE__ */ a.jsx("text", { x: (i + 1) * 320 / e.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
378
323
  textAnchor: "middle"
379
- }, children: po(o, "NA") })
324
+ }, children: wo(o, "NA") })
380
325
  ] }, i)),
381
326
  /* @__PURE__ */ a.jsx("g", { children: /* @__PURE__ */ a.jsx("rect", { onMouseOver: () => {
382
327
  V(e[n.length]);
383
328
  }, onMouseLeave: () => {
384
329
  V(void 0);
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: {
330
+ }, x: n.length * 320 / e.length + 1, y: 1, width: 320 / e.length - 2, height: 8, className: `cursor-pointer ${l === e[n.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
386
331
  fill: e[n.length],
387
- ...P === e[n.length] ? {} : {
332
+ ...l === e[n.length] ? {} : {
388
333
  stroke: e[n.length]
389
334
  }
390
335
  } }) })
391
336
  ] }) })
392
337
  ] })
393
338
  ] }) : /* @__PURE__ */ a.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
394
- v(!0);
339
+ Et(!0);
395
340
  }, 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" }) }) }),
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: "–" })
341
+ X === "button" && /* @__PURE__ */ a.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
342
+ /* @__PURE__ */ a.jsx("button", { onClick: () => rt("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: "+" }),
343
+ /* @__PURE__ */ a.jsx("button", { onClick: () => rt("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: "–" })
399
344
  ] })
400
345
  ] }),
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
346
+ H && B !== void 0 ? /* @__PURE__ */ a.jsx(yo, { body: H, data: B, setData: O, className: U?.modal }) : null,
347
+ et && b && Pt && Lt ? /* @__PURE__ */ a.jsx(uo, { data: et, body: b, xPos: Pt, yPos: Lt, backgroundStyle: k?.tooltip, className: U?.tooltip }) : null
403
348
  ] });
404
349
  }
405
- function ua(r) {
406
- const t = _e.c(131), {
350
+ function ja(r) {
351
+ const t = qe.c(135), {
407
352
  data: e,
408
- mapData: h,
409
- graphTitle: w,
353
+ mapData: v,
354
+ graphTitle: g,
410
355
  colors: n,
411
- sources: j,
412
- graphDescription: k,
413
- height: d,
414
- width: g,
415
- footNote: S,
416
- mapColorLegendTitle: N,
417
- colorDomain: L,
418
- choroplethScaleType: at,
419
- radius: rt,
420
- scale: gt,
421
- centerPoint: K,
422
- padding: Mt,
423
- mapBorderWidth: Rt,
356
+ sources: f,
357
+ graphDescription: y,
358
+ height: c,
359
+ width: u,
360
+ footNote: j,
361
+ mapColorLegendTitle: b,
362
+ colorDomain: M,
363
+ choroplethScaleType: kt,
364
+ radius: Ct,
365
+ scale: Dt,
366
+ centerPoint: q,
367
+ padding: Nt,
368
+ mapBorderWidth: Gt,
424
369
  mapNoDataColor: qt,
425
- backgroundColor: Ot,
426
- showLabels: F,
427
- mapBorderColor: Et,
428
- tooltip: Z,
429
- relativeHeight: M,
430
- onSeriesMouseOver: Q,
431
- isWorldMap: it,
432
- showColorScale: tt,
370
+ backgroundColor: St,
371
+ showLabels: P,
372
+ mapBorderColor: Mt,
373
+ tooltip: H,
374
+ relativeHeight: k,
375
+ onSeriesMouseOver: U,
376
+ isWorldMap: Z,
377
+ showColorScale: X,
433
378
  zoomScaleExtend: x,
434
- zoomTranslateExtend: T,
435
- graphID: ft,
436
- highlightedDataPoints: yt,
437
- onSeriesMouseClick: nt,
438
- graphDownload: et,
439
- dataDownload: It,
440
- showAntarctica: lt,
441
- language: xt,
442
- minHeight: vt,
443
- theme: zt,
444
- ariaLabel: Lt,
445
- resetSelectionOnDoubleClick: P,
446
- detailsOnClick: V,
447
- styles: b,
448
- classNames: v,
449
- mapProjection: st,
450
- zoomInteraction: ct,
451
- animate: ot,
452
- dimmedOpacity: Pt,
453
- customLayers: E,
454
- maxRadiusValue: dt,
455
- timeline: I,
456
- collapseColorScaleByDefault: bt,
457
- dotColor: R,
458
- highlightedIds: B,
459
- mapProperty: q,
460
- dotLegendTitle: wt,
461
- dotBorderColor: W,
462
- labelColor: Gt
463
- } = r, D = h === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : h, _ = 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, Bt = gt === void 0 ? 0.95 : gt, Wt = 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;
464
- let l;
465
- t[0] !== x ? (l = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = l) : l = t[1];
466
- const m = l;
467
- let s;
468
- t[2] !== yt ? (s = yt === void 0 ? [] : yt, t[2] = yt, t[3] = s) : s = t[3];
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;
470
- let Ut;
471
- t[4] !== E ? (Ut = E === void 0 ? [] : E, t[4] = E, t[5] = Ut) : Ut = t[5];
472
- const ue = Ut;
379
+ zoomTranslateExtend: L,
380
+ graphID: st,
381
+ highlightedDataPoints: ct,
382
+ onSeriesMouseClick: Q,
383
+ graphDownload: Y,
384
+ dataDownload: Ot,
385
+ showAntarctica: tt,
386
+ language: dt,
387
+ minHeight: mt,
388
+ theme: It,
389
+ ariaLabel: zt,
390
+ resetSelectionOnDoubleClick: J,
391
+ detailsOnClick: pt,
392
+ styles: d,
393
+ classNames: l,
394
+ mapProjection: V,
395
+ zoomInteraction: Ht,
396
+ animate: Et,
397
+ dimmedOpacity: ut,
398
+ customLayers: B,
399
+ maxRadiusValue: O,
400
+ timeline: et,
401
+ collapseColorScaleByDefault: I,
402
+ dotColor: Pt,
403
+ highlightedIds: C,
404
+ mapProperty: Lt,
405
+ dotLegendTitle: z,
406
+ dotBorderColor: _,
407
+ labelColor: K,
408
+ projectionRotate: ot,
409
+ rewindCoordinatesInMapData: $
410
+ } = r, E = v === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : v, A = j === 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." : j, w = kt === void 0 ? "threshold" : kt, Vt = Ct === void 0 ? 5 : Ct, Bt = Dt === void 0 ? 0.95 : Dt, _t = Gt === void 0 ? 0.5 : Gt, $t = qt === void 0 ? jt.light.graphNoData : qt, F = St === void 0 ? !1 : St, at = P === void 0 ? !1 : P, ht = Mt === void 0 ? jt.light.grays["gray-500"] : Mt, rt = Z === void 0 ? !0 : Z, o = X === void 0 ? !0 : X;
411
+ let i;
412
+ t[0] !== x ? (i = x === void 0 ? [0.8, 6] : x, t[0] = x, t[1] = i) : i = t[1];
413
+ const D = i;
414
+ let N;
415
+ t[2] !== ct ? (N = ct === void 0 ? [] : ct, t[2] = ct, t[3] = N) : N = t[3];
416
+ const m = N, gt = Y === void 0 ? !1 : Y, ft = Ot === void 0 ? !1 : Ot, At = tt === void 0 ? !1 : tt, pe = dt === void 0 ? "en" : dt, T = mt === void 0 ? 0 : mt, it = It === void 0 ? "light" : It, ue = J === void 0 ? !0 : J, he = V === void 0 ? "naturalEarth" : V, ge = Ht === void 0 ? "button" : Ht, Ut = Et === void 0 ? !1 : Et, fe = ut === void 0 ? 0.3 : ut;
473
417
  let Xt;
474
- t[6] !== I ? (Xt = I === void 0 ? {
418
+ t[4] !== B ? (Xt = B === void 0 ? [] : B, t[4] = B, t[5] = Xt) : Xt = t[5];
419
+ const ye = Xt;
420
+ let Yt;
421
+ t[6] !== et ? (Yt = et === void 0 ? {
475
422
  enabled: !1,
476
423
  autoplay: !1,
477
424
  showOnlyActiveDate: !0
478
- } : I, t[6] = I, t[7] = Xt) : Xt = t[7];
479
- const c = Xt, he = R === void 0 ? St.primaryColors["blue-600"] : R;
480
- let Yt;
481
- t[8] !== B ? (Yt = B === void 0 ? [] : B, t[8] = B, 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), [_t, Pe] = z(0), [X, Ve] = z(c.autoplay);
483
- let At;
484
- if (t[10] !== e || t[11] !== c.dateFormat) {
485
- let y;
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;
487
- } else
488
- At = t[12];
489
- const u = At, [Y, xe] = z(c.autoplay ? 0 : u.length - 1), [kt, Be] = z(void 0), ve = Tt(null), De = Tt(null);
425
+ } : et, t[6] = et, t[7] = Yt) : Yt = t[7];
426
+ const s = Yt, xe = Pt === void 0 ? jt.primaryColors["blue-600"] : Pt;
490
427
  let Jt;
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];
492
- const Ft = Jt;
493
- let Kt, Zt;
494
- t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Kt = () => {
495
- const y = new ResizeObserver((J) => {
496
- Le(J[0].target.clientWidth || 620), Pe(J[0].target.clientHeight || 480);
428
+ t[8] !== C ? (Jt = C === void 0 ? [] : C, t[8] = C, t[9] = Jt) : Jt = t[9];
429
+ const ve = Jt, be = Lt === void 0 ? "ISO3" : Lt, we = K === void 0 ? jt.primaryColors["blue-600"] : K;
430
+ let Kt;
431
+ t[10] !== ot ? (Kt = ot === void 0 ? [0, 0] : ot, t[10] = ot, t[11] = Kt) : Kt = t[11];
432
+ const je = Kt, ke = $ === void 0 ? !0 : $, [nt, Fe] = S(0), [Ft, Te] = S(0), [W, We] = S(s.autoplay);
433
+ let Tt;
434
+ if (t[12] !== e || t[13] !== s.dateFormat) {
435
+ let h;
436
+ t[15] !== s.dateFormat ? (h = (G) => Ke(`${G.date}`, s.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), t[15] = s.dateFormat, t[16] = h) : h = t[16], Tt = [...new Set(e.filter(qo).map(h))], Tt.sort(Go), t[12] = e, t[13] = s.dateFormat, t[14] = Tt;
437
+ } else
438
+ Tt = t[14];
439
+ const p = Tt, [R, Ce] = S(s.autoplay ? 0 : p.length - 1), [yt, Re] = S(void 0), De = Rt(null), Ee = Rt(null);
440
+ let Zt;
441
+ t[17] !== w || t[18] !== M || t[19] !== n?.length || t[20] !== e ? (Zt = M || (w === "categorical" ? Oo(e, "x") : Io(e.map(Ro), n?.length || 4)), t[17] = w, t[18] = M, t[19] = n?.length, t[20] = e, t[21] = Zt) : Zt = t[21];
442
+ const Wt = Zt;
443
+ let Qt, te;
444
+ t[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qt = () => {
445
+ const h = new ResizeObserver((G) => {
446
+ Fe(G[0].target.clientWidth || 620), Te(G[0].target.clientHeight || 480);
497
447
  });
498
- return ve.current && y.observe(ve.current), () => y.disconnect();
499
- }, Zt = [], t[20] = Kt, t[21] = Zt) : (Kt = t[20], Zt = t[21]), se(Kt, Zt);
500
- let Qt;
501
- t[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qt = (y) => {
502
- Be(y);
503
- }, t[22] = Qt) : Qt = t[22];
504
- const te = Te(Qt);
448
+ return De.current && h.observe(De.current), () => h.disconnect();
449
+ }, te = [], t[22] = Qt, t[23] = te) : (Qt = t[22], te = t[23]), de(Qt, te);
505
450
  let ee;
506
- t[23] !== D || t[24] !== te ? (ee = () => {
507
- typeof D == "string" ? yo(D).then((J) => {
508
- te(J);
509
- }) : te(D);
510
- }, t[23] = D, t[24] = te, t[25] = ee) : ee = t[25];
511
- let oe;
512
- t[26] !== D ? (oe = [D], t[26] = D, t[27] = oe) : oe = t[27], se(ee, oe);
513
- let ae, re;
514
- t[28] !== X || t[29] !== c.speed || t[30] !== u ? (ae = () => {
515
- const y = setInterval(() => {
516
- xe((J) => J < u.length - 1 ? J + 1 : 0);
517
- }, (c.speed || 2) * 1e3);
518
- return X || clearInterval(y), () => clearInterval(y);
519
- }, re = [u, X, c.speed], t[28] = X, t[29] = c.speed, t[30] = u, t[31] = ae, t[32] = re) : (ae = t[31], re = t[32]), se(ae, re);
520
- const be = c.dateFormat || "yyyy";
521
- let ie;
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];
523
- const ne = ie, we = v?.graphContainer, je = b?.graphContainer;
524
- let Ct;
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: {
526
- title: b?.title,
527
- description: b?.description
451
+ t[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = (h) => {
452
+ Re(h);
453
+ }, t[24] = ee) : ee = t[24];
454
+ const oe = Ye(ee);
455
+ let ae;
456
+ t[25] !== E || t[26] !== oe ? (ae = () => {
457
+ typeof E == "string" ? No(E).then((G) => {
458
+ oe(G);
459
+ }) : oe(E);
460
+ }, t[25] = E, t[26] = oe, t[27] = ae) : ae = t[27];
461
+ let re;
462
+ t[28] !== E ? (re = [E], t[28] = E, t[29] = re) : re = t[29], de(ae, re);
463
+ let ie, ne;
464
+ t[30] !== W || t[31] !== s.speed || t[32] !== p ? (ie = () => {
465
+ const h = setInterval(() => {
466
+ Ce((G) => G < p.length - 1 ? G + 1 : 0);
467
+ }, (s.speed || 2) * 1e3);
468
+ return W || clearInterval(h), () => clearInterval(h);
469
+ }, ne = [p, W, s.speed], t[30] = W, t[31] = s.speed, t[32] = p, t[33] = ie, t[34] = ne) : (ie = t[33], ne = t[34]), de(ie, ne);
470
+ const Ne = s.dateFormat || "yyyy";
471
+ let le;
472
+ t[35] !== R || t[36] !== Ne || t[37] !== s.showOnlyActiveDate || t[38] !== p ? (le = Ze(p, R, s.showOnlyActiveDate, Ne), t[35] = R, t[36] = Ne, t[37] = s.showOnlyActiveDate, t[38] = p, t[39] = le) : le = t[39];
473
+ const se = le, Se = l?.graphContainer, Me = d?.graphContainer;
474
+ let xt;
475
+ t[40] !== l?.description || t[41] !== l?.title || t[42] !== e || t[43] !== ft || t[44] !== y || t[45] !== gt || t[46] !== g || t[47] !== d?.description || t[48] !== d?.title || t[49] !== u ? (xt = g || y || gt || ft ? /* @__PURE__ */ a.jsx(Do, { styles: {
476
+ title: d?.title,
477
+ description: d?.description
528
478
  }, classNames: {
529
- title: v?.title,
530
- description: v?.description
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];
532
- let Nt;
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: [
479
+ title: l?.title,
480
+ description: l?.description
481
+ }, graphTitle: g, graphDescription: y, width: u, graphDownload: gt ? Ee : void 0, dataDownload: ft ? e.map(Wo).filter(To).length > 0 ? e.map(Fo).filter(Ao) : e.filter($o) : null }) : null, t[40] = l?.description, t[41] = l?.title, t[42] = e, t[43] = ft, t[44] = y, t[45] = gt, t[46] = g, t[47] = d?.description, t[48] = d?.title, t[49] = u, t[50] = xt) : xt = t[50];
482
+ let vt;
483
+ t[51] !== R || t[52] !== se || t[53] !== W || t[54] !== s.enabled || t[55] !== p ? (vt = s.enabled && p.length > 0 && se ? /* @__PURE__ */ a.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
534
484
  /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
535
- Ve(!X);
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, {}) }),
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) => {
538
- xe(u.indexOf(y));
539
- }, onChange: (y) => {
540
- xe(u.indexOf(y));
485
+ We(!W);
486
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": W ? "Click to pause animation" : "Click to play animation", children: W ? /* @__PURE__ */ a.jsx(go, {}) : /* @__PURE__ */ a.jsx(fo, {}) }),
487
+ /* @__PURE__ */ a.jsx(Qe, { min: p[0], max: p[p.length - 1], marks: se, step: null, defaultValue: p[p.length - 1], value: p[R], onChangeComplete: (h) => {
488
+ Ce(p.indexOf(h));
489
+ }, onChange: (h) => {
490
+ Ce(p.indexOf(h));
541
491
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
542
- ] }) : null, t[49] = Y, t[50] = ne, t[51] = X, t[52] = c.enabled, t[53] = u, t[54] = Nt) : Nt = t[54];
543
- let Dt;
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] !== W || 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] !== Wt || 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] !== Bt || t[90] !== mt || t[91] !== O || t[92] !== jt || t[93] !== b || t[94] !== _t || 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 && _t && 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: _t, scale: Bt, 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: Wt, 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 ? {
492
+ ] }) : null, t[51] = R, t[52] = se, t[53] = W, t[54] = s.enabled, t[55] = p, t[56] = vt) : vt = t[56];
493
+ let bt;
494
+ t[57] !== Ut || t[58] !== q || t[59] !== w || t[60] !== l || t[61] !== I || t[62] !== n || t[63] !== ye || t[64] !== e || t[65] !== pt || t[66] !== fe || t[67] !== Wt || t[68] !== _ || t[69] !== xe || t[70] !== z || t[71] !== c || t[72] !== m || t[73] !== ve || t[74] !== R || t[75] !== rt || t[76] !== we || t[77] !== ht || t[78] !== _t || t[79] !== b || t[80] !== $t || t[81] !== he || t[82] !== be || t[83] !== yt || t[84] !== O || t[85] !== T || t[86] !== Q || t[87] !== U || t[88] !== je || t[89] !== Vt || t[90] !== k || t[91] !== ue || t[92] !== ke || t[93] !== Bt || t[94] !== At || t[95] !== o || t[96] !== at || t[97] !== d || t[98] !== Ft || t[99] !== nt || t[100] !== it || t[101] !== s.dateFormat || t[102] !== s.enabled || t[103] !== H || t[104] !== p || t[105] !== u || t[106] !== ge || t[107] !== D || t[108] !== L ? (bt = /* @__PURE__ */ a.jsx(So, { ref: De, children: nt && Ft && yt ? /* @__PURE__ */ a.jsx(Lo, { dotColor: xe, data: e.filter((h) => s.enabled ? h.date === Je(new Date(p[R]), s.dateFormat || "yyyy") : h), mapData: At ? yt : {
495
+ ...yt,
496
+ features: yt.features.filter(_o)
497
+ }, colorDomain: Wt, width: nt, height: Ft, scale: Bt, centerPoint: q, colors: n || (w === "categorical" ? jt[it].sequentialColors[`neutralColorsx0${Wt.length}`] : jt[it].sequentialColors[`neutralColorsx0${Wt.length + 1}`]), mapColorLegendTitle: b, radius: Vt, categorical: w === "categorical", mapBorderWidth: _t, mapNoDataColor: $t, mapBorderColor: ht, tooltip: H, onSeriesMouseOver: U, showLabels: at, isWorldMap: rt, showColorScale: o, zoomScaleExtend: D, zoomTranslateExtend: L, onSeriesMouseClick: Q, highlightedDataPoints: m, resetSelectionOnDoubleClick: ue, styles: d, classNames: l, zoomInteraction: ge, detailsOnClick: pt, mapProjection: he || (rt ? "naturalEarth" : "mercator"), animate: Ut === !0 ? {
548
498
  duration: 0.5,
549
499
  once: !0,
550
500
  amount: 0.5
551
- } : Ht || {
501
+ } : Ut || {
552
502
  duration: 0,
553
503
  once: !0,
554
504
  amount: 0
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: W, labelColor: ye }) : /* @__PURE__ */ a.jsx("div", { style: {
556
- height: `${Math.max(U, d || (M ? U ? (g || ut) * M > U ? (g || ut) * M : U : (g || ut) * M : _t))}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] = W, 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] = Wt, 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] = Bt, t[90] = mt, t[91] = O, t[92] = jt, t[93] = b, t[94] = _t, 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];
558
- let $t;
559
- t[106] !== v?.footnote || t[107] !== v?.source || t[108] !== _ || t[109] !== j || t[110] !== b?.footnote || t[111] !== b?.source || t[112] !== g ? ($t = j || _ ? /* @__PURE__ */ a.jsx(go, { styles: {
560
- footnote: b?.footnote,
561
- source: b?.source
505
+ }, dimmedOpacity: fe, customLayers: ye, maxRadiusValue: me(O) ? Math.max(...e.map(Bo).filter(Vo)) : O, collapseColorScaleByDefault: I, highlightedIds: ve, mapProperty: be, dotLegendTitle: z, dotBorderColor: _, labelColor: we, projectionRotate: je, rewindCoordinatesInMapData: ke }) : /* @__PURE__ */ a.jsx("div", { style: {
506
+ height: `${Math.max(T, c || (k ? T ? (u || nt) * k > T ? (u || nt) * k : T : (u || nt) * k : Ft))}px`
507
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ a.jsx(to, { "aria-label": "Loading graph" }) }) }), t[57] = Ut, t[58] = q, t[59] = w, t[60] = l, t[61] = I, t[62] = n, t[63] = ye, t[64] = e, t[65] = pt, t[66] = fe, t[67] = Wt, t[68] = _, t[69] = xe, t[70] = z, t[71] = c, t[72] = m, t[73] = ve, t[74] = R, t[75] = rt, t[76] = we, t[77] = ht, t[78] = _t, t[79] = b, t[80] = $t, t[81] = he, t[82] = be, t[83] = yt, t[84] = O, t[85] = T, t[86] = Q, t[87] = U, t[88] = je, t[89] = Vt, t[90] = k, t[91] = ue, t[92] = ke, t[93] = Bt, t[94] = At, t[95] = o, t[96] = at, t[97] = d, t[98] = Ft, t[99] = nt, t[100] = it, t[101] = s.dateFormat, t[102] = s.enabled, t[103] = H, t[104] = p, t[105] = u, t[106] = ge, t[107] = D, t[108] = L, t[109] = bt) : bt = t[109];
508
+ let wt;
509
+ t[110] !== l?.footnote || t[111] !== l?.source || t[112] !== A || t[113] !== f || t[114] !== d?.footnote || t[115] !== d?.source || t[116] !== u ? (wt = f || A ? /* @__PURE__ */ a.jsx(Co, { styles: {
510
+ footnote: d?.footnote,
511
+ source: d?.source
562
512
  }, classNames: {
563
- footnote: v?.footnote,
564
- source: v?.source
565
- }, sources: j, footNote: _, width: g }) : null, t[106] = v?.footnote, t[107] = v?.source, t[108] = _, t[109] = j, t[110] = b?.footnote, t[111] = b?.source, t[112] = g, t[113] = $t) : $t = t[113];
566
- let le;
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: [
568
- Ct,
569
- Nt,
570
- Dt,
571
- $t
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;
513
+ footnote: l?.footnote,
514
+ source: l?.source
515
+ }, sources: f, footNote: A, width: u }) : null, t[110] = l?.footnote, t[111] = l?.source, t[112] = A, t[113] = f, t[114] = d?.footnote, t[115] = d?.source, t[116] = u, t[117] = wt) : wt = t[117];
516
+ let ce;
517
+ return t[118] !== zt || t[119] !== F || t[120] !== st || t[121] !== c || t[122] !== pe || t[123] !== T || t[124] !== Nt || t[125] !== k || t[126] !== Se || t[127] !== Me || t[128] !== xt || t[129] !== vt || t[130] !== bt || t[131] !== wt || t[132] !== it || t[133] !== u ? (ce = /* @__PURE__ */ a.jsxs(Mo, { className: Se, style: Me, id: st, ref: Ee, "aria-label": zt, backgroundColor: F, theme: it, language: pe, minHeight: T, width: u, height: c, relativeHeight: k, padding: Nt, children: [
518
+ xt,
519
+ vt,
520
+ bt,
521
+ wt
522
+ ] }), t[118] = zt, t[119] = F, t[120] = st, t[121] = c, t[122] = pe, t[123] = T, t[124] = Nt, t[125] = k, t[126] = Se, t[127] = Me, t[128] = xt, t[129] = vt, t[130] = bt, t[131] = wt, t[132] = it, t[133] = u, t[134] = ce) : ce = t[134], ce;
573
523
  }
574
- function Do(r) {
524
+ function Vo(r) {
575
525
  return r != null;
576
526
  }
577
- function $o(r) {
527
+ function Bo(r) {
578
528
  return r.radius;
579
529
  }
580
- function So(r) {
530
+ function _o(r) {
581
531
  return r.properties.NAME !== "Antarctica";
582
532
  }
583
- function Mo(r) {
533
+ function $o(r) {
584
534
  return r !== void 0;
585
535
  }
586
- function Oo(r) {
536
+ function Ao(r) {
587
537
  return r !== void 0;
588
538
  }
589
- function Eo(r) {
539
+ function Fo(r) {
590
540
  return r.data;
591
541
  }
592
- function Io(r) {
542
+ function To(r) {
593
543
  return r !== void 0;
594
544
  }
595
- function zo(r) {
545
+ function Wo(r) {
596
546
  return r.data;
597
547
  }
598
- function Lo(r) {
548
+ function Ro(r) {
599
549
  return r.x;
600
550
  }
601
- function Po(r, t) {
551
+ function Go(r, t) {
602
552
  return r - t;
603
553
  }
604
- function Vo(r) {
554
+ function qo(r) {
605
555
  return r.date;
606
556
  }
607
557
  export {
608
- ua as HybridMap
558
+ ja as HybridMap
609
559
  };
610
560
  //# sourceMappingURL=HybridMap.js.map