@undp/data-viz 2.0.9 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.d.ts +2 -0
  3. package/dist/AreaChart.js +4 -4
  4. package/dist/BarGraph.cjs +1 -1
  5. package/dist/BarGraph.cjs.map +1 -1
  6. package/dist/BarGraph.d.ts +2 -0
  7. package/dist/BarGraph.js +1699 -1577
  8. package/dist/BarGraph.js.map +1 -1
  9. package/dist/BasicStatCard.d.ts +2 -0
  10. package/dist/BeeSwarmChart.cjs +1 -1
  11. package/dist/BeeSwarmChart.cjs.map +1 -1
  12. package/dist/BeeSwarmChart.d.ts +2 -0
  13. package/dist/BeeSwarmChart.js +258 -267
  14. package/dist/BeeSwarmChart.js.map +1 -1
  15. package/dist/BiVariateChoroplethMap.cjs +1 -1
  16. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  17. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  18. package/dist/BiVariateChoroplethMap.js +252 -245
  19. package/dist/BiVariateChoroplethMap.js.map +1 -1
  20. package/dist/BulletChart.cjs +1 -1
  21. package/dist/BulletChart.cjs.map +1 -1
  22. package/dist/BulletChart.d.ts +2 -0
  23. package/dist/BulletChart.js +566 -536
  24. package/dist/BulletChart.js.map +1 -1
  25. package/dist/ButterflyChart.cjs +1 -1
  26. package/dist/ButterflyChart.cjs.map +1 -1
  27. package/dist/ButterflyChart.d.ts +2 -0
  28. package/dist/ButterflyChart.js +388 -378
  29. package/dist/ButterflyChart.js.map +1 -1
  30. package/dist/ChoroplethMap.cjs +1 -1
  31. package/dist/ChoroplethMap.cjs.map +1 -1
  32. package/dist/ChoroplethMap.d.ts +2 -0
  33. package/dist/ChoroplethMap.js +297 -291
  34. package/dist/ChoroplethMap.js.map +1 -1
  35. package/dist/CirclePackingGraph.cjs +1 -1
  36. package/dist/CirclePackingGraph.d.ts +2 -0
  37. package/dist/CirclePackingGraph.js +1 -1
  38. package/dist/DataCards.d.ts +2 -0
  39. package/dist/DataCards.js +1 -1
  40. package/dist/DataTable.d.ts +2 -0
  41. package/dist/DetailsModal-0Ry5nXiC.js +32 -0
  42. package/dist/DetailsModal-0Ry5nXiC.js.map +1 -0
  43. package/dist/DetailsModal-BN0HDFlV.cjs +2 -0
  44. package/dist/DetailsModal-BN0HDFlV.cjs.map +1 -0
  45. package/dist/DifferenceLineChart.cjs +1 -1
  46. package/dist/DifferenceLineChart.d.ts +2 -0
  47. package/dist/DifferenceLineChart.js +4 -4
  48. package/dist/DonutChart.cjs +1 -1
  49. package/dist/DonutChart.cjs.map +1 -1
  50. package/dist/DonutChart.d.ts +2 -0
  51. package/dist/DonutChart.js +185 -190
  52. package/dist/DonutChart.js.map +1 -1
  53. package/dist/DotDensityMap.cjs +1 -1
  54. package/dist/DotDensityMap.cjs.map +1 -1
  55. package/dist/DotDensityMap.d.ts +2 -0
  56. package/dist/DotDensityMap.js +252 -244
  57. package/dist/DotDensityMap.js.map +1 -1
  58. package/dist/DualAxisLineChart.cjs +1 -1
  59. package/dist/DualAxisLineChart.d.ts +2 -0
  60. package/dist/DualAxisLineChart.js +4 -4
  61. package/dist/DumbbellChart.cjs +1 -1
  62. package/dist/DumbbellChart.cjs.map +1 -1
  63. package/dist/DumbbellChart.d.ts +2 -0
  64. package/dist/DumbbellChart.js +563 -525
  65. package/dist/DumbbellChart.js.map +1 -1
  66. package/dist/GeoHubCompareMaps.d.ts +2 -0
  67. package/dist/GeoHubMap.d.ts +2 -0
  68. package/dist/GeoHubMapWithLayerSelection.d.ts +2 -0
  69. package/dist/{GraphEl-BcKU0bG1.cjs → GraphEl-B16EYkko.cjs} +2 -2
  70. package/dist/{GraphEl-BcKU0bG1.cjs.map → GraphEl-B16EYkko.cjs.map} +1 -1
  71. package/dist/{GraphEl-CGq1EWRn.js → GraphEl-DEzobeOM.js} +3 -3
  72. package/dist/{GraphEl-CGq1EWRn.js.map → GraphEl-DEzobeOM.js.map} +1 -1
  73. package/dist/GriddedGraphs.cjs +1 -1
  74. package/dist/GriddedGraphs.cjs.map +1 -1
  75. package/dist/GriddedGraphs.d.ts +2 -0
  76. package/dist/GriddedGraphs.js +19 -19
  77. package/dist/GriddedGraphs.js.map +1 -1
  78. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  79. package/dist/HeatMap.cjs +1 -1
  80. package/dist/HeatMap.cjs.map +1 -1
  81. package/dist/HeatMap.d.ts +2 -0
  82. package/dist/HeatMap.js +112 -117
  83. package/dist/HeatMap.js.map +1 -1
  84. package/dist/Histogram.cjs +1 -1
  85. package/dist/Histogram.d.ts +2 -0
  86. package/dist/Histogram.js +3 -3
  87. package/dist/HybridMap.cjs +1 -1
  88. package/dist/HybridMap.cjs.map +1 -1
  89. package/dist/HybridMap.d.ts +2 -0
  90. package/dist/HybridMap.js +366 -359
  91. package/dist/HybridMap.js.map +1 -1
  92. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  93. package/dist/LineChartWithConfidenceInterval.d.ts +2 -0
  94. package/dist/LineChartWithConfidenceInterval.js +4 -4
  95. package/dist/{Modal-DGcuAHyK.js → Modal-bMQA6bL_.js} +5 -5
  96. package/dist/{Modal-DGcuAHyK.js.map → Modal-bMQA6bL_.js.map} +1 -1
  97. package/dist/MultiGraphDashboard.cjs +1 -1
  98. package/dist/MultiGraphDashboard.cjs.map +1 -1
  99. package/dist/MultiGraphDashboard.d.ts +2 -0
  100. package/dist/MultiGraphDashboard.js +10 -10
  101. package/dist/MultiGraphDashboard.js.map +1 -1
  102. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  103. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +2 -0
  104. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  105. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +2 -0
  106. package/dist/MultiLineAltChart.cjs +1 -1
  107. package/dist/MultiLineAltChart.cjs.map +1 -1
  108. package/dist/MultiLineAltChart.d.ts +2 -0
  109. package/dist/MultiLineAltChart.js +453 -425
  110. package/dist/MultiLineAltChart.js.map +1 -1
  111. package/dist/MultiLineChart.cjs +1 -1
  112. package/dist/MultiLineChart.d.ts +2 -0
  113. package/dist/MultiLineChart.js +4 -4
  114. package/dist/ParetoChart.cjs +1 -1
  115. package/dist/ParetoChart.cjs.map +1 -1
  116. package/dist/ParetoChart.d.ts +2 -0
  117. package/dist/ParetoChart.js +188 -193
  118. package/dist/ParetoChart.js.map +1 -1
  119. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  120. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  121. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  122. package/dist/PerformanceIntensiveMultiGraphDashboard.js +16 -16
  123. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  124. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  125. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  126. package/dist/RadarChart.cjs +1 -1
  127. package/dist/RadarChart.cjs.map +1 -1
  128. package/dist/RadarChart.d.ts +2 -0
  129. package/dist/RadarChart.js +158 -163
  130. package/dist/RadarChart.js.map +1 -1
  131. package/dist/SankeyChart.cjs +1 -1
  132. package/dist/SankeyChart.cjs.map +1 -1
  133. package/dist/SankeyChart.d.ts +2 -0
  134. package/dist/SankeyChart.js +172 -177
  135. package/dist/SankeyChart.js.map +1 -1
  136. package/dist/ScatterPlot.cjs +1 -1
  137. package/dist/ScatterPlot.cjs.map +1 -1
  138. package/dist/ScatterPlot.d.ts +2 -0
  139. package/dist/ScatterPlot.js +494 -483
  140. package/dist/ScatterPlot.js.map +1 -1
  141. package/dist/ScrollStory.d.ts +2 -0
  142. package/dist/SimpleLineChart.cjs +1 -1
  143. package/dist/SimpleLineChart.d.ts +2 -0
  144. package/dist/SimpleLineChart.js +4 -4
  145. package/dist/SingleGraphDashboard.cjs +1 -1
  146. package/dist/SingleGraphDashboard.cjs.map +1 -1
  147. package/dist/SingleGraphDashboard.d.ts +2 -0
  148. package/dist/SingleGraphDashboard.js +24 -24
  149. package/dist/SingleGraphDashboard.js.map +1 -1
  150. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  151. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  152. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  153. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  154. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  155. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  156. package/dist/SingleGraphDashboardThreeDGraphs.js +46 -46
  157. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  158. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  159. package/dist/SlopeChart.cjs +1 -1
  160. package/dist/SlopeChart.cjs.map +1 -1
  161. package/dist/SlopeChart.d.ts +2 -0
  162. package/dist/SlopeChart.js +182 -187
  163. package/dist/SlopeChart.js.map +1 -1
  164. package/dist/SparkLine.cjs +1 -1
  165. package/dist/SparkLine.d.ts +2 -0
  166. package/dist/SparkLine.js +4 -4
  167. package/dist/StatCardFromData.d.ts +2 -0
  168. package/dist/StripChart.cjs +1 -1
  169. package/dist/StripChart.cjs.map +1 -1
  170. package/dist/StripChart.d.ts +2 -0
  171. package/dist/StripChart.js +249 -258
  172. package/dist/StripChart.js.map +1 -1
  173. package/dist/ThreeDGlobe.cjs +1 -1
  174. package/dist/ThreeDGlobe.cjs.map +1 -1
  175. package/dist/ThreeDGlobe.d.ts +2 -0
  176. package/dist/ThreeDGlobe.js +142 -147
  177. package/dist/ThreeDGlobe.js.map +1 -1
  178. package/dist/Tooltip-Dj5eVppQ.js +45 -0
  179. package/dist/Tooltip-Dj5eVppQ.js.map +1 -0
  180. package/dist/Tooltip-uUdw6wJL.cjs +2 -0
  181. package/dist/Tooltip-uUdw6wJL.cjs.map +1 -0
  182. package/dist/TreeMapGraph.cjs +1 -1
  183. package/dist/TreeMapGraph.cjs.map +1 -1
  184. package/dist/TreeMapGraph.d.ts +2 -0
  185. package/dist/TreeMapGraph.js +159 -164
  186. package/dist/TreeMapGraph.js.map +1 -1
  187. package/dist/Types.d.ts +2 -0
  188. package/dist/UnitChart.d.ts +2 -0
  189. package/dist/{band-CyHaVft5.js → band-DHUZ2X7J.js} +3 -3
  190. package/dist/{band-CyHaVft5.js.map → band-DHUZ2X7J.js.map} +1 -1
  191. package/dist/{checkIfMultiple-Y9iKaV_u.js → checkIfMultiple-CIRtG0KE.js} +2 -2
  192. package/dist/{checkIfMultiple-Y9iKaV_u.js.map → checkIfMultiple-CIRtG0KE.js.map} +1 -1
  193. package/dist/index-CF5hnGvG.cjs +2 -0
  194. package/dist/index-CF5hnGvG.cjs.map +1 -0
  195. package/dist/index-DPGq3eIL.js +330 -0
  196. package/dist/index-DPGq3eIL.js.map +1 -0
  197. package/dist/index.cjs +1 -1
  198. package/dist/index.d.ts +2 -0
  199. package/dist/index.js +1 -1
  200. package/dist/{init-BJFW6EwE.js → init-BhZylTFx.js} +3 -3
  201. package/dist/{init-BJFW6EwE.js.map → init-BhZylTFx.js.map} +1 -1
  202. package/dist/{linear-BwnDd9KF.js → linear-BqltdMeF.js} +2 -2
  203. package/dist/{linear-BwnDd9KF.js.map → linear-BqltdMeF.js.map} +1 -1
  204. package/dist/{ordinal-P77xw8aL.js → ordinal-BJ6O_LC5.js} +2 -2
  205. package/dist/{ordinal-P77xw8aL.js.map → ordinal-BJ6O_LC5.js.map} +1 -1
  206. package/dist/{pow-DE4c7dbW.js → pow-CM2aze4M.js} +3 -3
  207. package/dist/{pow-DE4c7dbW.js.map → pow-CM2aze4M.js.map} +1 -1
  208. package/dist/{threshold-Bgr20hik.js → threshold-DFfqcDMa.js} +2 -2
  209. package/dist/{threshold-Bgr20hik.js.map → threshold-DFfqcDMa.js.map} +1 -1
  210. package/dist/{time-DCCfQk3V.js → time-BUL-dwnK.js} +3 -3
  211. package/dist/{time-DCCfQk3V.js.map → time-BUL-dwnK.js.map} +1 -1
  212. package/package.json +4 -4
  213. package/dist/Tooltip-4dJo4_AF.cjs +0 -2
  214. package/dist/Tooltip-4dJo4_AF.cjs.map +0 -1
  215. package/dist/Tooltip-CwWUegPB.js +0 -43
  216. package/dist/Tooltip-CwWUegPB.js.map +0 -1
  217. package/dist/index-B2LQV7Tk.js +0 -335
  218. package/dist/index-B2LQV7Tk.js.map +0 -1
  219. package/dist/index-xRHRLDIp.cjs +0 -2
  220. package/dist/index-xRHRLDIp.cjs.map +0 -1
  221. package/dist/sort-BIvMlUH1.js +0 -34
  222. package/dist/sort-BIvMlUH1.js.map +0 -1
  223. package/dist/sort-O96oMZLb.cjs +0 -2
  224. package/dist/sort-O96oMZLb.cjs.map +0 -1
@@ -1,230 +1,226 @@
1
- import { j as t, m as ct, c as dt } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { useState as S, useRef as Se, useEffect as Re, useEffectEvent as mt } from "react";
3
- import { g as pt, N as ht } from "./getSliderMarks-HIDJ0_Cd.js";
4
- import { w as ut } from "./Spinner-D7rnnwnA.js";
5
- import { p as gt, f as ft } from "./parse-DlCRUFh_.js";
6
- import { i as yt } from "./index-Bwrro8-q.js";
7
- import { z as xt, t as vt, g as bt, a as kt, b as jt, c as wt, d as $t } from "./zoom-C9MFjAaV.js";
8
- import { l as Ct } from "./Modal-DGcuAHyK.js";
9
- import { j as it } from "./Typography-PxtFcnJb.js";
10
- import { t as Nt } from "./index-GEsywGxz.js";
11
- import { n as Dt } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as St } from "./Tooltip-CwWUegPB.js";
13
- import { s as Mt } from "./string2HTML-DhG75NqA.js";
14
- import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as Ot, P as Pt, e as It } from "./index-D491FEn1.js";
16
- import { o as Lt } from "./ordinal-P77xw8aL.js";
17
- import { t as zt } from "./threshold-Bgr20hik.js";
18
- import { s as rt } from "./select-DKy99ogv.js";
19
- import { u as _t } from "./use-in-view-Cxa7y1TH.js";
20
- import { m as qe } from "./proxy-BxkFHwUw.js";
21
- import { A as Wt } from "./index-BqfRwk1n.js";
22
- import { GraphFooter as Bt } from "./GraphFooter.js";
23
- import { GraphHeader as Tt } from "./GraphHeader.js";
24
- import { Colors as Xe } from "./Colors.js";
25
- import { f as At } from "./fetchAndParseData-BpqkBPQL.js";
26
- import { g as Ft } from "./getUniqValue-DsqSii6M.js";
27
- import { g as Vt } from "./getJenks-BbngDoBQ.js";
28
- import { u as Ht } from "./uniqBy-BHy4I8PK.js";
29
- import { a as Gt, G as Ut } from "./GraphContainer-CRqzdKu2.js";
30
- import { s as qt } from "./sort-BIvMlUH1.js";
31
- import { a as Xt } from "./init-BJFW6EwE.js";
32
- function Rt(h) {
1
+ import { j as t, m as gt, c as ft } from "./index-CHPV5EwG-Curnpaqc.js";
2
+ import { useState as S, useRef as Me, useEffect as Ze, useEffectEvent as yt } from "react";
3
+ import { g as xt, N as vt } from "./getSliderMarks-HIDJ0_Cd.js";
4
+ import { w as bt } from "./Spinner-D7rnnwnA.js";
5
+ import { f as kt, p as jt } from "./parse-DlCRUFh_.js";
6
+ import { i as wt } from "./index-Bwrro8-q.js";
7
+ import { z as $t, t as Dt, g as Ct, a as Nt, b as St, c as Mt, d as Ot } from "./zoom-C9MFjAaV.js";
8
+ import { j as dt } from "./Typography-PxtFcnJb.js";
9
+ import { t as Et } from "./index-GEsywGxz.js";
10
+ import { n as Pt } from "./numberFormattingFunction-14YCbkN2.js";
11
+ import { T as It } from "./Tooltip-Dj5eVppQ.js";
12
+ import { c as Lt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
+ import { X as zt, P as Wt, e as _t } from "./index-D491FEn1.js";
14
+ import { D as At } from "./DetailsModal-0Ry5nXiC.js";
15
+ import { o as Bt } from "./ordinal-BJ6O_LC5.js";
16
+ import { t as Ft } from "./threshold-DFfqcDMa.js";
17
+ import { s as lt } from "./select-DKy99ogv.js";
18
+ import { u as Tt } from "./use-in-view-Cxa7y1TH.js";
19
+ import { m as Je } from "./proxy-BxkFHwUw.js";
20
+ import { A as Vt } from "./index-BqfRwk1n.js";
21
+ import { GraphFooter as Gt } from "./GraphFooter.js";
22
+ import { GraphHeader as Ut } from "./GraphHeader.js";
23
+ import { Colors as Ke } from "./Colors.js";
24
+ import { f as Ht } from "./fetchAndParseData-BpqkBPQL.js";
25
+ import { g as qt } from "./getUniqValue-DsqSii6M.js";
26
+ import { g as Xt } from "./getJenks-BbngDoBQ.js";
27
+ import { a as Rt, G as Yt } from "./GraphContainer-CRqzdKu2.js";
28
+ function Jt(f) {
33
29
  const {
34
30
  data: e,
35
- colorDomain: c,
31
+ colorDomain: l,
36
32
  colors: d,
37
33
  mapData: $,
38
34
  colorLegendTitle: M,
39
- categorical: A,
35
+ categorical: V,
40
36
  height: k,
41
- width: g,
42
- scale: v,
43
- centerPoint: F,
44
- tooltip: re,
45
- mapBorderWidth: V,
46
- mapBorderColor: q,
47
- mapNoDataColor: ae,
48
- onSeriesMouseOver: ie,
49
- showColorScale: ve,
50
- zoomScaleExtend: Me,
37
+ width: x,
38
+ scale: b,
39
+ centerPoint: G,
40
+ tooltip: oe,
41
+ mapBorderWidth: U,
42
+ mapBorderColor: X,
43
+ mapNoDataColor: re,
44
+ onSeriesMouseOver: ae,
45
+ showColorScale: ke,
46
+ zoomScaleExtend: Oe,
51
47
  zoomTranslateExtend: Ee,
52
- highlightedIds: X,
53
- onSeriesMouseClick: ne,
48
+ highlightedIds: R,
49
+ onSeriesMouseClick: ie,
54
50
  mapProperty: j,
55
- resetSelectionOnDoubleClick: be,
56
- detailsOnClick: E,
57
- styles: Oe,
58
- classNames: ke,
59
- mapProjection: I,
60
- zoomInteraction: L,
61
- animate: N,
62
- dimmedOpacity: z,
51
+ resetSelectionOnDoubleClick: je,
52
+ detailsOnClick: Y,
53
+ styles: Pe,
54
+ classNames: ne,
55
+ mapProjection: P,
56
+ zoomInteraction: I,
57
+ animate: C,
58
+ dimmedOpacity: L,
63
59
  customLayers: se,
64
- collapseColorScaleByDefault: je
65
- } = h, [O, _] = S(void 0), le = Se(null), [Pe, we] = S(je === void 0 ? !(g < 680) : !je), [H, R] = S(void 0), [Y, J] = S(void 0), [u, p] = S(void 0), [ce, de] = S(void 0), G = Se(null), me = _t(G, {
66
- once: N.once,
67
- amount: N.amount
68
- }), K = Se(null), Ie = A ? Lt().domain(c).range(d) : zt().domain(c).range(d);
69
- Re(() => {
70
- const o = rt(K.current), s = rt(G.current), f = (r) => {
71
- if (L === "noZoom") return !1;
72
- if (L === "button") return !r.type.includes("wheel");
73
- const n = r.type === "wheel", l = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
74
- return l ? !0 : n ? L === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
75
- }, a = xt().scaleExtent(Me).translateExtent(Ee || [[-20, -20], [g + 20, k + 20]]).filter(f).on("zoom", ({
60
+ collapseColorScaleByDefault: we
61
+ } = f, [O, z] = S(void 0), le = Me(null), [Ie, $e] = S(we === void 0 ? !(x < 680) : !we), [ce, J] = S(void 0), [K, Z] = S(void 0), [y, u] = S(void 0), [de, me] = S(void 0), H = Me(null), pe = Tt(H, {
62
+ once: C.once,
63
+ amount: C.amount
64
+ }), Q = Me(null), he = V ? Bt().domain(l).range(d) : Ft().domain(l).range(d);
65
+ Ze(() => {
66
+ const o = lt(Q.current), s = lt(H.current), v = (r) => {
67
+ if (I === "noZoom") return !1;
68
+ if (I === "button") return !r.type.includes("wheel");
69
+ const n = r.type === "wheel", c = r.type.startsWith("touch"), i = r.type === "mousedown" || r.type === "mousemove";
70
+ return c ? !0 : n ? I === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
71
+ }, a = $t().scaleExtent(Oe).translateExtent(Ee || [[-20, -20], [x + 20, k + 20]]).filter(v).on("zoom", ({
76
72
  transform: r
77
73
  }) => {
78
74
  o.attr("transform", r);
79
75
  });
80
76
  s.call(a), le.current = a;
81
- }, [k, g, L]);
82
- const U = vt($), w = Nt($), pe = U[2] - U[0], W = U[3] - U[1], $e = g * 190 / 960 * 360 / pe, Ce = k * 190 / 678 * 180 / W, B = v * Math.min($e, Ce), P = I === "mercator" ? bt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "equalEarth" ? kt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "naturalEarth" ? jt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : I === "orthographic" ? wt().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B) : $t().rotate([0, 0]).center(F || w.geometry.coordinates).translate([g / 2, k / 2]).scale(B), he = (o) => {
83
- if (!G.current || !le.current) return;
84
- rt(G.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
77
+ }, [k, x, I]);
78
+ const q = Dt($), w = Et($), ue = q[2] - q[0], W = q[3] - q[1], De = x * 190 / 960 * 360 / ue, Ce = k * 190 / 678 * 180 / W, _ = b * Math.min(De, Ce), E = P === "mercator" ? Ct().rotate([0, 0]).center(G || w.geometry.coordinates).translate([x / 2, k / 2]).scale(_) : P === "equalEarth" ? Nt().rotate([0, 0]).center(G || w.geometry.coordinates).translate([x / 2, k / 2]).scale(_) : P === "naturalEarth" ? St().rotate([0, 0]).center(G || w.geometry.coordinates).translate([x / 2, k / 2]).scale(_) : P === "orthographic" ? Mt().rotate([0, 0]).center(G || w.geometry.coordinates).translate([x / 2, k / 2]).scale(_) : Ot().rotate([0, 0]).center(G || w.geometry.coordinates).translate([x / 2, k / 2]).scale(_), ge = (o) => {
79
+ if (!H.current || !le.current) return;
80
+ lt(H.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
85
81
  };
86
82
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
83
  /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
88
- /* @__PURE__ */ t.jsx(qe.svg, { width: `${g}px`, height: `${k}px`, viewBox: `0 0 ${g} ${k}`, ref: G, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: K, children: [
84
+ /* @__PURE__ */ t.jsx(Je.svg, { width: `${x}px`, height: `${k}px`, viewBox: `0 0 ${x} ${k}`, ref: H, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: Q, children: [
89
85
  se.filter((o) => o.position === "before").map((o) => o.layer),
90
86
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
91
- $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[j]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: O ? z : X.length !== 0 ? X.indexOf(o.properties[j]) !== -1 ? 1 : z : 1, children: o.geometry.type === "MultiPolygon" ? (
87
+ $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[j]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: O ? L : R.length !== 0 ? R.indexOf(o.properties[j]) !== -1 ? 1 : L : 1, children: o.geometry.type === "MultiPolygon" ? (
92
88
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
93
89
  o.geometry.coordinates.map((a, r) => {
94
90
  let n = "";
95
- return a.forEach((l) => {
91
+ return a.forEach((c) => {
96
92
  let i = " M";
97
- l.forEach((m, D) => {
98
- const C = P([m[0], m[1]]);
99
- D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
93
+ c.forEach((p, N) => {
94
+ const D = E([p[0], p[1]]);
95
+ N !== c.length - 1 ? i = `${i}${D[0]} ${D[1]}L` : i = `${i}${D[0]} ${D[1]}`;
100
96
  }), n += i;
101
97
  }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
102
- stroke: q,
103
- strokeWidth: V,
104
- fill: ae
98
+ stroke: X,
99
+ strokeWidth: U,
100
+ fill: re
105
101
  } }, r);
106
102
  })
107
103
  ) : (
108
104
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
105
  o.geometry.coordinates.map((a, r) => {
110
106
  let n = "M";
111
- return a.forEach((l, i) => {
112
- const m = P([l[0], l[1]]);
113
- i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
107
+ return a.forEach((c, i) => {
108
+ const p = E([c[0], c[1]]);
109
+ i !== a.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
114
110
  }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
115
- stroke: q,
116
- strokeWidth: V,
117
- fill: ae
111
+ stroke: X,
112
+ strokeWidth: U,
113
+ fill: re
118
114
  } }, r);
119
115
  })
120
116
  ) }, s)),
121
- /* @__PURE__ */ t.jsx(Wt, { children: e.map((o) => {
117
+ /* @__PURE__ */ t.jsx(Vt, { children: e.map((o) => {
122
118
  const s = $.features.findIndex(
123
119
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
124
120
  (a) => o.id === a.properties[j]
125
- ), f = Et(o.x) ? ae : (
121
+ ), v = Lt(o.x) ? re : (
126
122
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
- Ie(o.x)
123
+ he(o.x)
128
124
  );
129
- return /* @__PURE__ */ t.jsx(qe.g, { variants: {
125
+ return /* @__PURE__ */ t.jsx(Je.g, { variants: {
130
126
  initial: {
131
127
  opacity: 0
132
128
  },
133
129
  whileInView: {
134
- opacity: O ? O === f ? 1 : z : X.length !== 0 ? X.indexOf(o.id) !== -1 ? 1 : z : 1,
130
+ opacity: O ? O === v ? 1 : L : R.length !== 0 ? R.indexOf(o.id) !== -1 ? 1 : L : 1,
135
131
  transition: {
136
- duration: N.duration
132
+ duration: C.duration
137
133
  }
138
134
  }
139
- }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
135
+ }, initial: "initial", animate: pe ? "whileInView" : "initial", exit: {
140
136
  opacity: 0,
141
137
  transition: {
142
- duration: N.duration
138
+ duration: C.duration
143
139
  }
144
140
  }, onMouseEnter: (a) => {
145
- J(o), de(a.clientY), p(a.clientX), ie?.(o);
141
+ Z(o), me(a.clientY), u(a.clientX), ae?.(o);
146
142
  }, onMouseMove: (a) => {
147
- J(o), de(a.clientY), p(a.clientX);
143
+ Z(o), me(a.clientY), u(a.clientX);
148
144
  }, onMouseLeave: () => {
149
- J(void 0), p(void 0), de(void 0), ie?.(void 0);
145
+ Z(void 0), u(void 0), me(void 0), ae?.(void 0);
150
146
  }, onClick: () => {
151
- (ne || E) && (yt(H, o) && be ? (R(void 0), ne?.(void 0)) : (R(o), ne?.(o)));
147
+ (ie || Y) && (wt(ce, o) && je ? (J(void 0), ie?.(void 0)) : (J(o), ie?.(o)));
152
148
  }, children: s === -1 ? null : $.features[s].geometry.type === "MultiPolygon" ? $.features[s].geometry.coordinates.map(
153
149
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
150
  (a, r) => {
155
151
  let n = "";
156
- return a.forEach((l) => {
152
+ return a.forEach((c) => {
157
153
  let i = " M";
158
- l.forEach((m, D) => {
159
- const C = P([m[0], m[1]]);
160
- D !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
154
+ c.forEach((p, N) => {
155
+ const D = E([p[0], p[1]]);
156
+ N !== c.length - 1 ? i = `${i}${D[0]} ${D[1]}L` : i = `${i}${D[0]} ${D[1]}`;
161
157
  }), n += i;
162
- }), /* @__PURE__ */ t.jsx(qe.path, { d: n, variants: {
158
+ }), /* @__PURE__ */ t.jsx(Je.path, { d: n, variants: {
163
159
  initial: {
164
- fill: f,
160
+ fill: v,
165
161
  opacity: 0
166
162
  },
167
163
  whileInView: {
168
- fill: f,
164
+ fill: v,
169
165
  opacity: 1,
170
166
  transition: {
171
- duration: N.duration
167
+ duration: C.duration
172
168
  }
173
169
  }
174
- }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
170
+ }, initial: "initial", animate: pe ? "whileInView" : "initial", exit: {
175
171
  opacity: 0,
176
172
  transition: {
177
- duration: N.duration
173
+ duration: C.duration
178
174
  }
179
175
  }, style: {
180
- stroke: q,
181
- strokeWidth: V
176
+ stroke: X,
177
+ strokeWidth: U
182
178
  } }, `${o.id}-${r}`);
183
179
  }
184
180
  ) : $.features[s].geometry.coordinates.map(
185
181
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
182
  (a, r) => {
187
183
  let n = "M";
188
- return a.forEach((l, i) => {
189
- const m = P([l[0], l[1]]);
190
- i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
191
- }), /* @__PURE__ */ t.jsx(qe.path, { d: n, variants: {
184
+ return a.forEach((c, i) => {
185
+ const p = E([c[0], c[1]]);
186
+ i !== a.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
187
+ }), /* @__PURE__ */ t.jsx(Je.path, { d: n, variants: {
192
188
  initial: {
193
- fill: f,
189
+ fill: v,
194
190
  opacity: 0
195
191
  },
196
192
  whileInView: {
197
- fill: f,
193
+ fill: v,
198
194
  opacity: 1,
199
195
  transition: {
200
- duration: N.duration
196
+ duration: C.duration
201
197
  }
202
198
  }
203
- }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
199
+ }, initial: "initial", animate: pe ? "whileInView" : "initial", exit: {
204
200
  opacity: 0,
205
201
  transition: {
206
- duration: N.duration
202
+ duration: C.duration
207
203
  }
208
204
  }, style: {
209
- stroke: q,
210
- strokeWidth: V
205
+ stroke: X,
206
+ strokeWidth: U
211
207
  } }, `${o.id}-${r}`);
212
208
  }
213
209
  ) }, o.id);
214
210
  }) }),
215
- Y ? $.features.filter(
211
+ K ? $.features.filter(
216
212
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
217
- (o) => o.properties[j] === Y.id
213
+ (o) => o.properties[j] === K.id
218
214
  ).map((o, s) => /* @__PURE__ */ t.jsx("g", { children: o.geometry.type === "MultiPolygon" ? (
219
215
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
- o.geometry.coordinates.map((f, a) => {
216
+ o.geometry.coordinates.map((v, a) => {
221
217
  let r = "";
222
- return f.forEach((n) => {
223
- let l = " M";
224
- n.forEach((i, m) => {
225
- const D = P([i[0], i[1]]);
226
- m !== n.length - 1 ? l = `${l}${D[0]} ${D[1]}L` : l = `${l}${D[0]} ${D[1]}`;
227
- }), r += l;
218
+ return v.forEach((n) => {
219
+ let c = " M";
220
+ n.forEach((i, p) => {
221
+ const N = E([i[0], i[1]]);
222
+ p !== n.length - 1 ? c = `${c}${N[0]} ${N[1]}L` : c = `${c}${N[0]} ${N[1]}`;
223
+ }), r += c;
228
224
  }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
229
225
  fill: "none",
230
226
  fillOpacity: 0,
@@ -233,11 +229,11 @@ function Rt(h) {
233
229
  })
234
230
  ) : (
235
231
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
- o.geometry.coordinates.map((f, a) => {
232
+ o.geometry.coordinates.map((v, a) => {
237
233
  let r = "M";
238
- return f.forEach((n, l) => {
239
- const i = P([n[0], n[1]]);
240
- l !== f.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
234
+ return v.forEach((n, c) => {
235
+ const i = E([n[0], n[1]]);
236
+ c !== v.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
241
237
  }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
242
238
  fill: "none",
243
239
  fillOpacity: 0,
@@ -247,32 +243,32 @@ function Rt(h) {
247
243
  ) }, s)) : null,
248
244
  se.filter((o) => o.position === "after").map((o) => o.layer)
249
245
  ] }) }),
250
- ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: ct("absolute left-4 bottom-4 map-color-legend", ke?.colorLegend), children: Pe ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
246
+ ke === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: gt("absolute left-4 bottom-4 map-color-legend", ne?.colorLegend), children: Ie ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
251
247
  /* @__PURE__ */ t.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: () => {
252
- we(!1);
253
- }, children: /* @__PURE__ */ t.jsx(Ot, {}) }),
248
+ $e(!1);
249
+ }, children: /* @__PURE__ */ t.jsx(zt, {}) }),
254
250
  /* @__PURE__ */ t.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
255
- width: A ? void 0 : "340px"
251
+ width: V ? void 0 : "340px"
256
252
  }, children: [
257
- M && M !== "" ? /* @__PURE__ */ t.jsx(it, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
253
+ M && M !== "" ? /* @__PURE__ */ t.jsx(dt, { size: "xs", marginBottom: "xs", className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300", style: {
258
254
  display: "-webkit-box",
259
255
  WebkitLineClamp: "1",
260
256
  WebkitBoxOrient: "vertical"
261
257
  }, children: M }) : null,
262
- A ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: c.map((o, s) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
263
- _(d[s % d.length]);
258
+ V ? /* @__PURE__ */ t.jsx("div", { className: "flex flex-col gap-3", children: l.map((o, s) => /* @__PURE__ */ t.jsxs("div", { className: "flex gap-2 items-center", onMouseOver: () => {
259
+ z(d[s % d.length]);
264
260
  }, onMouseLeave: () => {
265
- _(void 0);
261
+ z(void 0);
266
262
  }, children: [
267
263
  /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
264
  backgroundColor: d[s % d.length]
269
265
  } }),
270
- /* @__PURE__ */ t.jsx(it, { size: "sm", marginBottom: "none", leading: "none", children: o })
266
+ /* @__PURE__ */ t.jsx(dt, { size: "sm", marginBottom: "none", leading: "none", children: o })
271
267
  ] }, s)) }) : /* @__PURE__ */ t.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { children: [
272
- c.map((o, s) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
273
- _(d[s]);
268
+ l.map((o, s) => /* @__PURE__ */ t.jsxs("g", { onMouseOver: () => {
269
+ z(d[s]);
274
270
  }, onMouseLeave: () => {
275
- _(void 0);
271
+ z(void 0);
276
272
  }, className: "cursor-pointer", children: [
277
273
  /* @__PURE__ */ t.jsx("rect", { x: s * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: O === d[s] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
278
274
  fill: d[s],
@@ -282,154 +278,164 @@ function Rt(h) {
282
278
  } }),
283
279
  /* @__PURE__ */ t.jsx("text", { x: (s + 1) * 320 / d.length, y: 25, className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs", style: {
284
280
  textAnchor: "middle"
285
- }, children: Dt(o, "NA") })
281
+ }, children: Pt(o, "NA") })
286
282
  ] }, s)),
287
283
  /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
288
- _(d[c.length]);
284
+ z(d[l.length]);
289
285
  }, onMouseLeave: () => {
290
- _(void 0);
291
- }, x: c.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${O === d[c.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
292
- fill: d[c.length],
293
- ...O === d[c.length] ? {} : {
294
- stroke: d[c.length]
286
+ z(void 0);
287
+ }, x: l.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${O === d[l.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
288
+ fill: d[l.length],
289
+ ...O === d[l.length] ? {} : {
290
+ stroke: d[l.length]
295
291
  }
296
292
  } }) })
297
293
  ] }) })
298
294
  ] })
299
295
  ] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
300
- we(!0);
296
+ $e(!0);
301
297
  }, children: /* @__PURE__ */ t.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" }) }) }),
302
- L === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
303
- /* @__PURE__ */ t.jsx("button", { onClick: () => he("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: "+" }),
304
- /* @__PURE__ */ t.jsx("button", { onClick: () => he("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: "–" })
298
+ I === "button" && /* @__PURE__ */ t.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
299
+ /* @__PURE__ */ t.jsx("button", { onClick: () => ge("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: "+" }),
300
+ /* @__PURE__ */ t.jsx("button", { onClick: () => ge("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: "–" })
305
301
  ] })
306
302
  ] }),
307
- E && H !== void 0 ? /* @__PURE__ */ t.jsx(Ct, { open: H !== void 0, onClose: () => {
308
- R(void 0);
309
- }, children: /* @__PURE__ */ t.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof E == "string" ? {
310
- __html: Mt(E, H)
311
- } : void 0, children: typeof E == "function" ? E(H) : null }) }) : null,
312
- Y && re && u && ce ? /* @__PURE__ */ t.jsx(St, { data: Y, body: re, xPos: u, yPos: ce, backgroundStyle: Oe?.tooltip, className: ke?.tooltip }) : null
303
+ Y && ce !== void 0 ? /* @__PURE__ */ t.jsx(At, { body: Y, data: ce, setData: J, className: ne?.modal }) : null,
304
+ K && oe && y && de ? /* @__PURE__ */ t.jsx(It, { data: K, body: oe, xPos: y, yPos: de, backgroundStyle: Pe?.tooltip, className: ne?.tooltip }) : null
313
305
  ] });
314
306
  }
315
- function zo(h) {
316
- const e = dt.c(106), {
317
- data: c,
307
+ function Io(f) {
308
+ const e = ft.c(121), {
309
+ data: l,
318
310
  mapData: d,
319
311
  graphTitle: $,
320
312
  colors: M,
321
- sources: A,
313
+ sources: V,
322
314
  graphDescription: k,
323
- height: g,
324
- width: v,
325
- footNote: F,
326
- colorDomain: re,
327
- colorLegendTitle: V,
328
- scaleType: q,
329
- scale: ae,
330
- centerPoint: ie,
331
- padding: ve,
332
- mapBorderWidth: Me,
315
+ height: x,
316
+ width: b,
317
+ footNote: G,
318
+ colorDomain: oe,
319
+ colorLegendTitle: U,
320
+ scaleType: X,
321
+ scale: re,
322
+ centerPoint: ae,
323
+ padding: ke,
324
+ mapBorderWidth: Oe,
333
325
  mapNoDataColor: Ee,
334
- backgroundColor: X,
335
- mapBorderColor: ne,
326
+ backgroundColor: R,
327
+ mapBorderColor: ie,
336
328
  relativeHeight: j,
337
- tooltip: be,
338
- onSeriesMouseOver: E,
339
- isWorldMap: Oe,
340
- showColorScale: ke,
341
- zoomScaleExtend: I,
342
- zoomTranslateExtend: L,
343
- graphID: N,
344
- highlightedIds: z,
329
+ tooltip: je,
330
+ onSeriesMouseOver: Y,
331
+ isWorldMap: Pe,
332
+ showColorScale: ne,
333
+ zoomScaleExtend: P,
334
+ zoomTranslateExtend: I,
335
+ graphID: C,
336
+ highlightedIds: L,
345
337
  onSeriesMouseClick: se,
346
- mapProperty: je,
338
+ mapProperty: we,
347
339
  graphDownload: O,
348
- dataDownload: _,
340
+ dataDownload: z,
349
341
  showAntarctica: le,
350
- language: Pe,
351
- minHeight: we,
352
- theme: H,
353
- ariaLabel: R,
354
- resetSelectionOnDoubleClick: Y,
355
- detailsOnClick: J,
356
- styles: u,
357
- classNames: p,
358
- mapProjection: ce,
359
- zoomInteraction: de,
360
- animate: G,
361
- dimmedOpacity: me,
362
- customLayers: K,
363
- timeline: Ie,
364
- collapseColorScaleByDefault: U
365
- } = h, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, pe = F === 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." : F, W = q === void 0 ? "threshold" : q, $e = ae === void 0 ? 0.95 : ae, Ce = Me === void 0 ? 0.5 : Me, B = Ee === void 0 ? Xe.light.graphNoData : Ee, P = X === void 0 ? !1 : X, he = ne === void 0 ? Xe.light.grays["gray-500"] : ne, o = Oe === void 0 ? !0 : Oe, s = ke === void 0 ? !0 : ke;
366
- let f;
367
- e[0] !== I ? (f = I === void 0 ? [0.8, 6] : I, e[0] = I, e[1] = f) : f = e[1];
368
- const a = f;
342
+ language: Ie,
343
+ minHeight: $e,
344
+ theme: ce,
345
+ ariaLabel: J,
346
+ resetSelectionOnDoubleClick: K,
347
+ detailsOnClick: Z,
348
+ styles: y,
349
+ classNames: u,
350
+ mapProjection: de,
351
+ zoomInteraction: me,
352
+ animate: H,
353
+ dimmedOpacity: pe,
354
+ customLayers: Q,
355
+ timeline: he,
356
+ collapseColorScaleByDefault: q
357
+ } = f, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, ue = G === 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." : G, W = X === void 0 ? "threshold" : X, De = re === void 0 ? 0.95 : re, Ce = Oe === void 0 ? 0.5 : Oe, _ = Ee === void 0 ? Ke.light.graphNoData : Ee, E = R === void 0 ? !1 : R, ge = ie === void 0 ? Ke.light.grays["gray-500"] : ie, o = Pe === void 0 ? !0 : Pe, s = ne === void 0 ? !0 : ne;
358
+ let v;
359
+ e[0] !== P ? (v = P === void 0 ? [0.8, 6] : P, e[0] = P, e[1] = v) : v = e[1];
360
+ const a = v;
369
361
  let r;
370
- e[2] !== z ? (r = z === void 0 ? [] : z, e[2] = z, e[3] = r) : r = e[3];
371
- const n = r, l = je === void 0 ? "ISO3" : je, i = O === void 0 ? !1 : O, m = _ === void 0 ? !1 : _, D = le === void 0 ? !1 : le, C = Pe === void 0 ? "en" : Pe, T = we === void 0 ? 0 : we, Z = H === void 0 ? "light" : H, Ye = Y === void 0 ? !0 : Y, Je = de === void 0 ? "button" : de, Le = G === void 0 ? !1 : G, Ke = me === void 0 ? 0.3 : me;
362
+ e[2] !== L ? (r = L === void 0 ? [] : L, e[2] = L, e[3] = r) : r = e[3];
363
+ const n = r, c = we === void 0 ? "ISO3" : we, i = O === void 0 ? !1 : O, p = z === void 0 ? !1 : z, N = le === void 0 ? !1 : le, D = Ie === void 0 ? "en" : Ie, A = $e === void 0 ? 0 : $e, ee = ce === void 0 ? "light" : ce, Qe = K === void 0 ? !0 : K, et = me === void 0 ? "button" : me, Le = H === void 0 ? !1 : H, tt = pe === void 0 ? 0.3 : pe;
372
364
  let ze;
373
- e[4] !== K ? (ze = K === void 0 ? [] : K, e[4] = K, e[5] = ze) : ze = e[5];
374
- const Ze = ze, b = Ie === void 0 ? {
365
+ e[4] !== Q ? (ze = Q === void 0 ? [] : Q, e[4] = Q, e[5] = ze) : ze = e[5];
366
+ const ot = ze;
367
+ let We;
368
+ e[6] !== he ? (We = he === void 0 ? {
375
369
  enabled: !1,
376
370
  autoplay: !1,
377
371
  showOnlyActiveDate: !0
378
- } : Ie, [Q, nt] = S(0), [Ne, st] = S(0), [ee, Qe] = S(b.autoplay), y = qt(Ht(c, "date", !0).map((x) => gt(`${x}`, b.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [te, De] = S(b.autoplay ? 0 : y.length - 1), [ue, lt] = S(void 0), et = Se(null), at = Se(null);
379
- let _e, We;
380
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (_e = () => {
381
- const x = new ResizeObserver((oe) => {
382
- nt(oe[0].target.clientWidth || 620), st(oe[0].target.clientHeight || 480);
372
+ } : he, e[6] = he, e[7] = We) : We = e[7];
373
+ const m = We, [te, mt] = S(0), [Ne, pt] = S(0), [B, ht] = S(m.autoplay);
374
+ let Se;
375
+ if (e[8] !== l || e[9] !== m.dateFormat) {
376
+ let g;
377
+ e[11] !== m.dateFormat ? (g = (T) => jt(`${T}`, m.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = m.dateFormat, e[12] = g) : g = e[12], Se = [...new Set(l.map(g))], Se.sort(ao), e[8] = l, e[9] = m.dateFormat, e[10] = Se;
378
+ } else
379
+ Se = e[10];
380
+ const h = Se, [F, rt] = S(m.autoplay ? 0 : h.length - 1), [fe, ut] = S(void 0), at = Me(null), ct = Me(null);
381
+ let _e, Ae;
382
+ e[13] === Symbol.for("react.memo_cache_sentinel") ? (_e = () => {
383
+ const g = new ResizeObserver((T) => {
384
+ mt(T[0].target.clientWidth || 620), pt(T[0].target.clientHeight || 480);
383
385
  });
384
- return et.current && x.observe(et.current), () => x.disconnect();
385
- }, We = [], e[6] = _e, e[7] = We) : (_e = e[6], We = e[7]), Re(_e, We);
386
+ return at.current && g.observe(at.current), () => g.disconnect();
387
+ }, Ae = [], e[13] = _e, e[14] = Ae) : (_e = e[13], Ae = e[14]), Ze(_e, Ae);
386
388
  let Be;
387
- e[8] === Symbol.for("react.memo_cache_sentinel") ? (Be = (x) => {
388
- lt(x);
389
- }, e[8] = Be) : Be = e[8];
390
- const Te = mt(Be);
391
- let Ae;
392
- e[9] !== w || e[10] !== Te ? (Ae = () => {
393
- typeof w == "string" ? At(w).then((oe) => {
394
- Te(oe);
395
- }) : Te(w);
396
- }, e[9] = w, e[10] = Te, e[11] = Ae) : Ae = e[11];
397
- let Fe;
398
- e[12] !== w ? (Fe = [w], e[12] = w, e[13] = Fe) : Fe = e[13], Re(Ae, Fe);
389
+ e[15] === Symbol.for("react.memo_cache_sentinel") ? (Be = (g) => {
390
+ ut(g);
391
+ }, e[15] = Be) : Be = e[15];
392
+ const Fe = yt(Be);
393
+ let Te;
394
+ e[16] !== w || e[17] !== Fe ? (Te = () => {
395
+ typeof w == "string" ? Ht(w).then((T) => {
396
+ Fe(T);
397
+ }) : Fe(w);
398
+ }, e[16] = w, e[17] = Fe, e[18] = Te) : Te = e[18];
399
399
  let Ve;
400
- e[14] !== re || e[15] !== M?.length || e[16] !== c || e[17] !== W ? (Ve = re || (W === "categorical" ? Ft(c, "x") : Vt(c.map(to), M?.length || 4)), e[14] = re, e[15] = M?.length, e[16] = c, e[17] = W, e[18] = Ve) : Ve = e[18];
401
- const He = Ve;
402
- Re(() => {
403
- const x = setInterval(() => {
404
- De((oe) => oe < y.length - 1 ? oe + 1 : 0);
405
- }, (b.speed || 2) * 1e3);
406
- return ee || clearInterval(x), () => clearInterval(x);
407
- }, [y, ee, b.speed]);
408
- const Ge = pt(y, te, b.showOnlyActiveDate, b.dateFormat || "yyyy"), tt = p?.graphContainer, ot = u?.graphContainer;
409
- let ge;
410
- e[19] !== p?.description || e[20] !== p?.title || e[21] !== c || e[22] !== m || e[23] !== k || e[24] !== i || e[25] !== $ || e[26] !== u?.description || e[27] !== u?.title || e[28] !== v ? (ge = $ || k || i || m ? /* @__PURE__ */ t.jsx(Tt, { styles: {
400
+ e[19] !== w ? (Ve = [w], e[19] = w, e[20] = Ve) : Ve = e[20], Ze(Te, Ve);
401
+ let Ge;
402
+ e[21] !== oe || e[22] !== M?.length || e[23] !== l || e[24] !== W ? (Ge = oe || (W === "categorical" ? qt(l, "x") : Xt(l.map(ro), M?.length || 4)), e[21] = oe, e[22] = M?.length, e[23] = l, e[24] = W, e[25] = Ge) : Ge = e[25];
403
+ const Ue = Ge;
404
+ let He, qe;
405
+ e[26] !== B || e[27] !== m.speed || e[28] !== h ? (He = () => {
406
+ const g = setInterval(() => {
407
+ rt((T) => T < h.length - 1 ? T + 1 : 0);
408
+ }, (m.speed || 2) * 1e3);
409
+ return B || clearInterval(g), () => clearInterval(g);
410
+ }, qe = [h, B, m.speed], e[26] = B, e[27] = m.speed, e[28] = h, e[29] = He, e[30] = qe) : (He = e[29], qe = e[30]), Ze(He, qe);
411
+ const it = m.dateFormat || "yyyy";
412
+ let Xe;
413
+ e[31] !== F || e[32] !== it || e[33] !== m.showOnlyActiveDate || e[34] !== h ? (Xe = xt(h, F, m.showOnlyActiveDate, it), e[31] = F, e[32] = it, e[33] = m.showOnlyActiveDate, e[34] = h, e[35] = Xe) : Xe = e[35];
414
+ const Re = Xe, nt = u?.graphContainer, st = y?.graphContainer;
415
+ let ye;
416
+ e[36] !== u?.description || e[37] !== u?.title || e[38] !== l || e[39] !== p || e[40] !== k || e[41] !== i || e[42] !== $ || e[43] !== y?.description || e[44] !== y?.title || e[45] !== b ? (ye = $ || k || i || p ? /* @__PURE__ */ t.jsx(Ut, { styles: {
417
+ title: y?.title,
418
+ description: y?.description
419
+ }, classNames: {
411
420
  title: u?.title,
412
421
  description: u?.description
413
- }, classNames: {
414
- title: p?.title,
415
- description: p?.description
416
- }, graphTitle: $, graphDescription: k, width: v, graphDownload: i ? at : void 0, dataDownload: m ? c.map(eo).filter(Qt).length > 0 ? c.map(Zt).filter(Kt) : c.filter(Jt) : null }) : null, e[19] = p?.description, e[20] = p?.title, e[21] = c, e[22] = m, e[23] = k, e[24] = i, e[25] = $, e[26] = u?.description, e[27] = u?.title, e[28] = v, e[29] = ge) : ge = e[29];
417
- let fe;
418
- e[30] !== te || e[31] !== Ge || e[32] !== ee || e[33] !== De || e[34] !== Qe || e[35] !== b.enabled || e[36] !== y ? (fe = b.enabled && y.length > 0 && Ge ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
422
+ }, graphTitle: $, graphDescription: k, width: b, graphDownload: i ? ct : void 0, dataDownload: p ? l.map(oo).filter(to).length > 0 ? l.map(eo).filter(Qt) : l.filter(Zt) : null }) : null, e[36] = u?.description, e[37] = u?.title, e[38] = l, e[39] = p, e[40] = k, e[41] = i, e[42] = $, e[43] = y?.description, e[44] = y?.title, e[45] = b, e[46] = ye) : ye = e[46];
423
+ let xe;
424
+ e[47] !== F || e[48] !== Re || e[49] !== B || e[50] !== m.enabled || e[51] !== h ? (xe = m.enabled && h.length > 0 && Re ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
419
425
  /* @__PURE__ */ t.jsx("button", { type: "button", onClick: () => {
420
- Qe(!ee);
421
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": ee ? "Click to pause animation" : "Click to play animation", children: ee ? /* @__PURE__ */ t.jsx(Pt, {}) : /* @__PURE__ */ t.jsx(It, {}) }),
422
- /* @__PURE__ */ t.jsx(ht, { min: y[0], max: y[y.length - 1], marks: Ge, step: null, defaultValue: y[y.length - 1], value: y[te], onChangeComplete: (x) => {
423
- De(y.indexOf(x));
424
- }, onChange: (x) => {
425
- De(y.indexOf(x));
426
+ ht(!B);
427
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": B ? "Click to pause animation" : "Click to play animation", children: B ? /* @__PURE__ */ t.jsx(Wt, {}) : /* @__PURE__ */ t.jsx(_t, {}) }),
428
+ /* @__PURE__ */ t.jsx(vt, { min: h[0], max: h[h.length - 1], marks: Re, step: null, defaultValue: h[h.length - 1], value: h[F], onChangeComplete: (g) => {
429
+ rt(h.indexOf(g));
430
+ }, onChange: (g) => {
431
+ rt(h.indexOf(g));
426
432
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
427
- ] }) : null, e[30] = te, e[31] = Ge, e[32] = ee, e[33] = De, e[34] = Qe, e[35] = b.enabled, e[36] = y, e[37] = fe) : fe = e[37];
428
- let ye;
429
- e[38] !== Le || e[39] !== ie || e[40] !== p || e[41] !== U || e[42] !== V || e[43] !== M || e[44] !== Ze || e[45] !== c || e[46] !== J || e[47] !== Ke || e[48] !== He || e[49] !== g || e[50] !== n || e[51] !== te || e[52] !== o || e[53] !== he || e[54] !== Ce || e[55] !== B || e[56] !== ce || e[57] !== l || e[58] !== ue || e[59] !== T || e[60] !== se || e[61] !== E || e[62] !== j || e[63] !== Ye || e[64] !== $e || e[65] !== W || e[66] !== D || e[67] !== s || e[68] !== u || e[69] !== Ne || e[70] !== Q || e[71] !== Z || e[72] !== b.dateFormat || e[73] !== b.enabled || e[74] !== be || e[75] !== y || e[76] !== v || e[77] !== Je || e[78] !== a || e[79] !== L ? (ye = /* @__PURE__ */ t.jsx(Gt, { ref: et, children: Q && Ne && ue ? /* @__PURE__ */ t.jsx(Rt, { data: c.filter((x) => b.enabled ? x.date === ft(new Date(y[te]), b.dateFormat || "yyyy") : x), mapData: D ? ue : {
430
- ...ue,
431
- features: ue.features.filter(Yt)
432
- }, colorDomain: He, width: Q, height: Ne, scale: $e, centerPoint: ie, colors: M || (W === "categorical" ? Xe[Z].categoricalColors.colors : Xe[Z].sequentialColors[`neutralColorsx0${He.length + 1}`]), colorLegendTitle: V, mapBorderWidth: Ce, mapNoDataColor: B, categorical: W === "categorical", mapBorderColor: he, tooltip: be, onSeriesMouseOver: E, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: L, onSeriesMouseClick: se, mapProperty: l, highlightedIds: n, resetSelectionOnDoubleClick: Ye, styles: u, classNames: p, detailsOnClick: J, mapProjection: ce || (o ? "naturalEarth" : "mercator"), zoomInteraction: Je, dimmedOpacity: Ke, animate: Le === !0 ? {
433
+ ] }) : null, e[47] = F, e[48] = Re, e[49] = B, e[50] = m.enabled, e[51] = h, e[52] = xe) : xe = e[52];
434
+ let ve;
435
+ e[53] !== Le || e[54] !== ae || e[55] !== u || e[56] !== q || e[57] !== U || e[58] !== M || e[59] !== ot || e[60] !== l || e[61] !== Z || e[62] !== tt || e[63] !== Ue || e[64] !== x || e[65] !== n || e[66] !== F || e[67] !== o || e[68] !== ge || e[69] !== Ce || e[70] !== _ || e[71] !== de || e[72] !== c || e[73] !== fe || e[74] !== A || e[75] !== se || e[76] !== Y || e[77] !== j || e[78] !== Qe || e[79] !== De || e[80] !== W || e[81] !== N || e[82] !== s || e[83] !== y || e[84] !== Ne || e[85] !== te || e[86] !== ee || e[87] !== m.dateFormat || e[88] !== m.enabled || e[89] !== je || e[90] !== h || e[91] !== b || e[92] !== et || e[93] !== a || e[94] !== I ? (ve = /* @__PURE__ */ t.jsx(Rt, { ref: at, children: te && Ne && fe ? /* @__PURE__ */ t.jsx(Jt, { data: l.filter((g) => m.enabled ? g.date === kt(new Date(h[F]), m.dateFormat || "yyyy") : g), mapData: N ? fe : {
436
+ ...fe,
437
+ features: fe.features.filter(Kt)
438
+ }, colorDomain: Ue, width: te, height: Ne, scale: De, centerPoint: ae, colors: M || (W === "categorical" ? Ke[ee].categoricalColors.colors : Ke[ee].sequentialColors[`neutralColorsx0${Ue.length + 1}`]), colorLegendTitle: U, mapBorderWidth: Ce, mapNoDataColor: _, categorical: W === "categorical", mapBorderColor: ge, tooltip: je, onSeriesMouseOver: Y, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: I, onSeriesMouseClick: se, mapProperty: c, highlightedIds: n, resetSelectionOnDoubleClick: Qe, styles: y, classNames: u, detailsOnClick: Z, mapProjection: de || (o ? "naturalEarth" : "mercator"), zoomInteraction: et, dimmedOpacity: tt, animate: Le === !0 ? {
433
439
  duration: 0.5,
434
440
  once: !0,
435
441
  amount: 0.5
@@ -437,50 +443,50 @@ function zo(h) {
437
443
  duration: 0,
438
444
  once: !0,
439
445
  amount: 0
440
- }, customLayers: Ze, collapseColorScaleByDefault: U }) : /* @__PURE__ */ t.jsx("div", { style: {
441
- height: `${Math.max(T, g || (j ? T ? (v || Q) * j > T ? (v || Q) * j : T : (v || Q) * j : Ne))}px`
442
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(ut, { "aria-label": "Loading graph" }) }) }), e[38] = Le, e[39] = ie, e[40] = p, e[41] = U, e[42] = V, e[43] = M, e[44] = Ze, e[45] = c, e[46] = J, e[47] = Ke, e[48] = He, e[49] = g, e[50] = n, e[51] = te, e[52] = o, e[53] = he, e[54] = Ce, e[55] = B, e[56] = ce, e[57] = l, e[58] = ue, e[59] = T, e[60] = se, e[61] = E, e[62] = j, e[63] = Ye, e[64] = $e, e[65] = W, e[66] = D, e[67] = s, e[68] = u, e[69] = Ne, e[70] = Q, e[71] = Z, e[72] = b.dateFormat, e[73] = b.enabled, e[74] = be, e[75] = y, e[76] = v, e[77] = Je, e[78] = a, e[79] = L, e[80] = ye) : ye = e[80];
443
- let xe;
444
- e[81] !== p?.footnote || e[82] !== p?.source || e[83] !== pe || e[84] !== A || e[85] !== u?.footnote || e[86] !== u?.source || e[87] !== v ? (xe = A || pe ? /* @__PURE__ */ t.jsx(Bt, { styles: {
446
+ }, customLayers: ot, collapseColorScaleByDefault: q }) : /* @__PURE__ */ t.jsx("div", { style: {
447
+ height: `${Math.max(A, x || (j ? A ? (b || te) * j > A ? (b || te) * j : A : (b || te) * j : Ne))}px`
448
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(bt, { "aria-label": "Loading graph" }) }) }), e[53] = Le, e[54] = ae, e[55] = u, e[56] = q, e[57] = U, e[58] = M, e[59] = ot, e[60] = l, e[61] = Z, e[62] = tt, e[63] = Ue, e[64] = x, e[65] = n, e[66] = F, e[67] = o, e[68] = ge, e[69] = Ce, e[70] = _, e[71] = de, e[72] = c, e[73] = fe, e[74] = A, e[75] = se, e[76] = Y, e[77] = j, e[78] = Qe, e[79] = De, e[80] = W, e[81] = N, e[82] = s, e[83] = y, e[84] = Ne, e[85] = te, e[86] = ee, e[87] = m.dateFormat, e[88] = m.enabled, e[89] = je, e[90] = h, e[91] = b, e[92] = et, e[93] = a, e[94] = I, e[95] = ve) : ve = e[95];
449
+ let be;
450
+ e[96] !== u?.footnote || e[97] !== u?.source || e[98] !== ue || e[99] !== V || e[100] !== y?.footnote || e[101] !== y?.source || e[102] !== b ? (be = V || ue ? /* @__PURE__ */ t.jsx(Gt, { styles: {
451
+ footnote: y?.footnote,
452
+ source: y?.source
453
+ }, classNames: {
445
454
  footnote: u?.footnote,
446
455
  source: u?.source
447
- }, classNames: {
448
- footnote: p?.footnote,
449
- source: p?.source
450
- }, sources: A, footNote: pe, width: v }) : null, e[81] = p?.footnote, e[82] = p?.source, e[83] = pe, e[84] = A, e[85] = u?.footnote, e[86] = u?.source, e[87] = v, e[88] = xe) : xe = e[88];
451
- let Ue;
452
- return e[89] !== R || e[90] !== P || e[91] !== N || e[92] !== g || e[93] !== C || e[94] !== T || e[95] !== ve || e[96] !== j || e[97] !== tt || e[98] !== ot || e[99] !== ge || e[100] !== fe || e[101] !== ye || e[102] !== xe || e[103] !== Z || e[104] !== v ? (Ue = /* @__PURE__ */ t.jsxs(Ut, { className: tt, style: ot, id: N, ref: at, "aria-label": R, backgroundColor: P, theme: Z, language: C, minHeight: T, width: v, height: g, relativeHeight: j, padding: ve, children: [
453
- ge,
454
- fe,
456
+ }, sources: V, footNote: ue, width: b }) : null, e[96] = u?.footnote, e[97] = u?.source, e[98] = ue, e[99] = V, e[100] = y?.footnote, e[101] = y?.source, e[102] = b, e[103] = be) : be = e[103];
457
+ let Ye;
458
+ return e[104] !== J || e[105] !== E || e[106] !== C || e[107] !== x || e[108] !== D || e[109] !== A || e[110] !== ke || e[111] !== j || e[112] !== nt || e[113] !== st || e[114] !== ye || e[115] !== xe || e[116] !== ve || e[117] !== be || e[118] !== ee || e[119] !== b ? (Ye = /* @__PURE__ */ t.jsxs(Yt, { className: nt, style: st, id: C, ref: ct, "aria-label": J, backgroundColor: E, theme: ee, language: D, minHeight: A, width: b, height: x, relativeHeight: j, padding: ke, children: [
455
459
  ye,
456
- xe
457
- ] }), e[89] = R, e[90] = P, e[91] = N, e[92] = g, e[93] = C, e[94] = T, e[95] = ve, e[96] = j, e[97] = tt, e[98] = ot, e[99] = ge, e[100] = fe, e[101] = ye, e[102] = xe, e[103] = Z, e[104] = v, e[105] = Ue) : Ue = e[105], Ue;
460
+ xe,
461
+ ve,
462
+ be
463
+ ] }), e[104] = J, e[105] = E, e[106] = C, e[107] = x, e[108] = D, e[109] = A, e[110] = ke, e[111] = j, e[112] = nt, e[113] = st, e[114] = ye, e[115] = xe, e[116] = ve, e[117] = be, e[118] = ee, e[119] = b, e[120] = Ye) : Ye = e[120], Ye;
458
464
  }
459
- function Yt(h) {
460
- return h.properties.NAME !== "Antarctica";
465
+ function Kt(f) {
466
+ return f.properties.NAME !== "Antarctica";
461
467
  }
462
- function Jt(h) {
463
- return h !== void 0;
468
+ function Zt(f) {
469
+ return f !== void 0;
464
470
  }
465
- function Kt(h) {
466
- return h !== void 0;
471
+ function Qt(f) {
472
+ return f !== void 0;
467
473
  }
468
- function Zt(h) {
469
- return h.data;
474
+ function eo(f) {
475
+ return f.data;
470
476
  }
471
- function Qt(h) {
472
- return h !== void 0;
477
+ function to(f) {
478
+ return f !== void 0;
473
479
  }
474
- function eo(h) {
475
- return h.data;
480
+ function oo(f) {
481
+ return f.data;
476
482
  }
477
- function to(h) {
478
- return h.x;
483
+ function ro(f) {
484
+ return f.x;
479
485
  }
480
- function oo(h, e) {
481
- return Xt(h, e);
486
+ function ao(f, e) {
487
+ return f - e;
482
488
  }
483
489
  export {
484
- zo as ChoroplethMap
490
+ Io as ChoroplethMap
485
491
  };
486
492
  //# sourceMappingURL=ChoroplethMap.js.map