@undp/data-viz 2.4.1 → 2.5.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 (271) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +11 -9
  4. package/dist/AreaChart.js +320 -322
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/BarGraph.cjs +1 -1
  7. package/dist/BarGraph.cjs.map +1 -1
  8. package/dist/BarGraph.d.ts +15 -25
  9. package/dist/BarGraph.js +1694 -1694
  10. package/dist/BarGraph.js.map +1 -1
  11. package/dist/BasicStatCard.cjs +1 -1
  12. package/dist/BasicStatCard.cjs.map +1 -1
  13. package/dist/BasicStatCard.d.ts +13 -9
  14. package/dist/BasicStatCard.js +79 -81
  15. package/dist/BasicStatCard.js.map +1 -1
  16. package/dist/BeeSwarmChart.cjs +1 -1
  17. package/dist/BeeSwarmChart.cjs.map +1 -1
  18. package/dist/BeeSwarmChart.d.ts +11 -9
  19. package/dist/BeeSwarmChart.js +335 -336
  20. package/dist/BeeSwarmChart.js.map +1 -1
  21. package/dist/BiVariateChoroplethMap.cjs +1 -1
  22. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  23. package/dist/BiVariateChoroplethMap.d.ts +13 -3
  24. package/dist/BiVariateChoroplethMap.js +309 -304
  25. package/dist/BiVariateChoroplethMap.js.map +1 -1
  26. package/dist/BulletChart.cjs +1 -1
  27. package/dist/BulletChart.cjs.map +1 -1
  28. package/dist/BulletChart.d.ts +11 -5
  29. package/dist/BulletChart.js +560 -559
  30. package/dist/BulletChart.js.map +1 -1
  31. package/dist/ButterflyChart.cjs +1 -1
  32. package/dist/ButterflyChart.cjs.map +1 -1
  33. package/dist/ButterflyChart.d.ts +11 -9
  34. package/dist/ButterflyChart.js +348 -350
  35. package/dist/ButterflyChart.js.map +1 -1
  36. package/dist/ChoroplethMap.cjs +1 -1
  37. package/dist/ChoroplethMap.cjs.map +1 -1
  38. package/dist/ChoroplethMap.d.ts +11 -3
  39. package/dist/ChoroplethMap.js +314 -311
  40. package/dist/ChoroplethMap.js.map +1 -1
  41. package/dist/CirclePackingGraph.cjs +1 -1
  42. package/dist/CirclePackingGraph.d.ts +11 -9
  43. package/dist/CirclePackingGraph.js +1 -1
  44. package/dist/DataCards.cjs +1 -1
  45. package/dist/DataCards.d.ts +1 -1
  46. package/dist/DataCards.js +1 -1
  47. package/dist/DataTable.cjs +1 -1
  48. package/dist/DataTable.cjs.map +1 -1
  49. package/dist/DataTable.d.ts +4 -5
  50. package/dist/DataTable.js +114 -116
  51. package/dist/DataTable.js.map +1 -1
  52. package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
  53. package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
  54. package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
  55. package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
  56. package/dist/DifferenceLineChart.cjs +1 -1
  57. package/dist/DifferenceLineChart.cjs.map +1 -1
  58. package/dist/DifferenceLineChart.d.ts +11 -9
  59. package/dist/DifferenceLineChart.js +502 -504
  60. package/dist/DifferenceLineChart.js.map +1 -1
  61. package/dist/DonutChart.cjs +1 -1
  62. package/dist/DonutChart.cjs.map +1 -1
  63. package/dist/DonutChart.d.ts +14 -9
  64. package/dist/DonutChart.js +174 -179
  65. package/dist/DonutChart.js.map +1 -1
  66. package/dist/DotDensityMap.cjs +1 -1
  67. package/dist/DotDensityMap.cjs.map +1 -1
  68. package/dist/DotDensityMap.d.ts +1 -1
  69. package/dist/DotDensityMap.js +270 -267
  70. package/dist/DotDensityMap.js.map +1 -1
  71. package/dist/DualAxisLineChart.cjs +1 -1
  72. package/dist/DualAxisLineChart.cjs.map +1 -1
  73. package/dist/DualAxisLineChart.d.ts +13 -9
  74. package/dist/DualAxisLineChart.js +341 -351
  75. package/dist/DualAxisLineChart.js.map +1 -1
  76. package/dist/DumbbellChart.cjs +1 -1
  77. package/dist/DumbbellChart.cjs.map +1 -1
  78. package/dist/DumbbellChart.d.ts +11 -9
  79. package/dist/DumbbellChart.js +592 -593
  80. package/dist/DumbbellChart.js.map +1 -1
  81. package/dist/GeoHubCompareMaps.cjs +1 -1
  82. package/dist/GeoHubCompareMaps.d.ts +1 -1
  83. package/dist/GeoHubCompareMaps.js +1 -1
  84. package/dist/GeoHubMap.cjs +1 -1
  85. package/dist/GeoHubMap.d.ts +1 -1
  86. package/dist/GeoHubMap.js +1 -1
  87. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  88. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
  89. package/dist/GeoHubMapWithLayerSelection.js +1 -1
  90. package/dist/GraphEl-BgkDbq50.cjs +2 -0
  91. package/dist/GraphEl-BgkDbq50.cjs.map +1 -0
  92. package/dist/GraphEl-Ch0uAeZw.js +1830 -0
  93. package/dist/GraphEl-Ch0uAeZw.js.map +1 -0
  94. package/dist/GriddedGraphs.cjs +1 -1
  95. package/dist/GriddedGraphs.d.ts +29 -16
  96. package/dist/GriddedGraphs.js +1 -1
  97. package/dist/GriddedGraphsFromConfig.d.ts +29 -16
  98. package/dist/HeatMap.cjs +1 -1
  99. package/dist/HeatMap.cjs.map +1 -1
  100. package/dist/HeatMap.d.ts +11 -9
  101. package/dist/HeatMap.js +203 -205
  102. package/dist/HeatMap.js.map +1 -1
  103. package/dist/Histogram.cjs +1 -1
  104. package/dist/Histogram.cjs.map +1 -1
  105. package/dist/Histogram.d.ts +11 -5
  106. package/dist/Histogram.js +88 -89
  107. package/dist/Histogram.js.map +1 -1
  108. package/dist/HybridMap.cjs +1 -1
  109. package/dist/HybridMap.cjs.map +1 -1
  110. package/dist/HybridMap.d.ts +11 -3
  111. package/dist/HybridMap.js +339 -336
  112. package/dist/HybridMap.js.map +1 -1
  113. package/dist/ImageDownloadButton.cjs +1 -1
  114. package/dist/ImageDownloadButton.js +1 -1
  115. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  116. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  117. package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
  118. package/dist/LineChartWithConfidenceInterval.js +393 -395
  119. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  120. package/dist/LinearColorLegend.cjs +1 -1
  121. package/dist/LinearColorLegend.js +1 -1
  122. package/dist/MultiGraphDashboard.d.ts +29 -16
  123. package/dist/MultiGraphDashboardFromConfig.d.ts +29 -16
  124. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
  125. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
  126. package/dist/MultiLineAltChart.cjs +1 -1
  127. package/dist/MultiLineAltChart.cjs.map +1 -1
  128. package/dist/MultiLineAltChart.d.ts +11 -9
  129. package/dist/MultiLineAltChart.js +411 -413
  130. package/dist/MultiLineAltChart.js.map +1 -1
  131. package/dist/MultiLineChart.cjs +1 -1
  132. package/dist/MultiLineChart.cjs.map +1 -1
  133. package/dist/MultiLineChart.d.ts +11 -9
  134. package/dist/MultiLineChart.js +438 -440
  135. package/dist/MultiLineChart.js.map +1 -1
  136. package/dist/ParetoChart.cjs +1 -1
  137. package/dist/ParetoChart.cjs.map +1 -1
  138. package/dist/ParetoChart.d.ts +13 -13
  139. package/dist/ParetoChart.js +347 -355
  140. package/dist/ParetoChart.js.map +1 -1
  141. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +29 -16
  142. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +29 -16
  143. package/dist/PerformanceIntensiveScrollStory.d.ts +29 -16
  144. package/dist/RadarChart.cjs +1 -1
  145. package/dist/RadarChart.cjs.map +1 -1
  146. package/dist/RadarChart.d.ts +11 -5
  147. package/dist/RadarChart.js +213 -213
  148. package/dist/RadarChart.js.map +1 -1
  149. package/dist/SankeyChart.cjs +1 -1
  150. package/dist/SankeyChart.cjs.map +1 -1
  151. package/dist/SankeyChart.d.ts +11 -9
  152. package/dist/SankeyChart.js +448 -450
  153. package/dist/SankeyChart.js.map +1 -1
  154. package/dist/ScatterPlot.cjs +1 -1
  155. package/dist/ScatterPlot.cjs.map +1 -1
  156. package/dist/ScatterPlot.d.ts +15 -13
  157. package/dist/ScatterPlot.js +477 -483
  158. package/dist/ScatterPlot.js.map +1 -1
  159. package/dist/ScrollStory.d.ts +29 -16
  160. package/dist/SimpleLineChart.cjs +1 -1
  161. package/dist/SimpleLineChart.cjs.map +1 -1
  162. package/dist/SimpleLineChart.d.ts +11 -9
  163. package/dist/SimpleLineChart.js +362 -364
  164. package/dist/SimpleLineChart.js.map +1 -1
  165. package/dist/SingleGraphDashboard.cjs +1 -1
  166. package/dist/SingleGraphDashboard.d.ts +29 -16
  167. package/dist/SingleGraphDashboard.js +1 -1
  168. package/dist/SingleGraphDashboardFromConfig.d.ts +29 -16
  169. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +29 -16
  170. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +29 -16
  171. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  172. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  173. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +29 -16
  174. package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
  175. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  176. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +29 -16
  177. package/dist/SlopeChart.cjs +1 -1
  178. package/dist/SlopeChart.d.ts +1 -1
  179. package/dist/SlopeChart.js +2 -2
  180. package/dist/SparkLine.cjs +1 -1
  181. package/dist/SparkLine.d.ts +1 -1
  182. package/dist/SparkLine.js +1 -1
  183. package/dist/StatCardFromData.cjs +1 -1
  184. package/dist/StatCardFromData.cjs.map +1 -1
  185. package/dist/StatCardFromData.d.ts +11 -9
  186. package/dist/StatCardFromData.js +113 -116
  187. package/dist/StatCardFromData.js.map +1 -1
  188. package/dist/StripChart.cjs +1 -1
  189. package/dist/StripChart.cjs.map +1 -1
  190. package/dist/StripChart.d.ts +11 -9
  191. package/dist/StripChart.js +434 -435
  192. package/dist/StripChart.js.map +1 -1
  193. package/dist/ThreeDGlobe.cjs +1 -1
  194. package/dist/ThreeDGlobe.cjs.map +1 -1
  195. package/dist/ThreeDGlobe.d.ts +11 -3
  196. package/dist/ThreeDGlobe.js +143 -143
  197. package/dist/ThreeDGlobe.js.map +1 -1
  198. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  199. package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
  200. package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
  201. package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
  202. package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
  203. package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
  204. package/dist/TreeMapGraph.cjs +1 -1
  205. package/dist/TreeMapGraph.cjs.map +1 -1
  206. package/dist/TreeMapGraph.d.ts +11 -9
  207. package/dist/TreeMapGraph.js +369 -371
  208. package/dist/TreeMapGraph.js.map +1 -1
  209. package/dist/Types.d.ts +29 -16
  210. package/dist/UnitChart.cjs +1 -1
  211. package/dist/UnitChart.cjs.map +1 -1
  212. package/dist/UnitChart.d.ts +11 -5
  213. package/dist/UnitChart.js +118 -119
  214. package/dist/UnitChart.js.map +1 -1
  215. package/dist/WaterfallChart.cjs +1 -1
  216. package/dist/WaterfallChart.cjs.map +1 -1
  217. package/dist/WaterfallChart.d.ts +11 -9
  218. package/dist/WaterfallChart.js +306 -308
  219. package/dist/WaterfallChart.js.map +1 -1
  220. package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
  221. package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
  222. package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
  223. package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
  224. package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
  225. package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
  226. package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
  227. package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
  228. package/dist/{imageDownload-Diofs_vY.js → imageDownload-BYsNEtMS.js} +11 -11
  229. package/dist/{imageDownload-Diofs_vY.js.map → imageDownload-BYsNEtMS.js.map} +1 -1
  230. package/dist/{imageDownload-61q6jyJW.cjs → imageDownload-CkMwA7Cw.cjs} +4 -4
  231. package/dist/{imageDownload-61q6jyJW.cjs.map → imageDownload-CkMwA7Cw.cjs.map} +1 -1
  232. package/dist/index-BPyj_6hG.js +375 -0
  233. package/dist/index-BPyj_6hG.js.map +1 -0
  234. package/dist/index-DuLvdHo2.cjs +2 -0
  235. package/dist/index-DuLvdHo2.cjs.map +1 -0
  236. package/dist/index.cjs +1 -1
  237. package/dist/index.d.ts +108 -245
  238. package/dist/index.js +3 -3
  239. package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
  240. package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
  241. package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
  242. package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
  243. package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
  244. package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
  245. package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
  246. package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
  247. package/dist/style.css +1 -1
  248. package/dist/utils.cjs +1 -1
  249. package/dist/utils.d.ts +1 -1
  250. package/dist/utils.js +2 -2
  251. package/package.json +2 -2
  252. package/dist/GraphEl-B73N4RIA.js +0 -1906
  253. package/dist/GraphEl-B73N4RIA.js.map +0 -1
  254. package/dist/GraphEl-Lt1og0C-.cjs +0 -2
  255. package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
  256. package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
  257. package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
  258. package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
  259. package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
  260. package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
  261. package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
  262. package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
  263. package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
  264. package/dist/index-B0Awa_de.js +0 -377
  265. package/dist/index-B0Awa_de.js.map +0 -1
  266. package/dist/index-CP8cmNzt.cjs +0 -2
  267. package/dist/index-CP8cmNzt.cjs.map +0 -1
  268. package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
  269. package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
  270. package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
  271. package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
@@ -1,220 +1,223 @@
1
1
  import { j as o, m as Tt, c as $t } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useMemo as St, useState as D, useRef as Le, useEffect as Ae, useEffectEvent as Mt } from "react";
2
+ import { useMemo as Nt, useState as D, useRef as Fe, useEffect as Le, useEffectEvent as St } from "react";
3
3
  import { g as Ht, N as Rt } from "./getSliderMarks-X-_goqH9.js";
4
4
  import { w as Gt } from "./Spinner-B2IIKg9r.js";
5
5
  import { f as Vt, p as Ut } from "./parse-Dv4of-PN.js";
6
6
  import { i as Xt } from "./index-Bwrro8-q.js";
7
- import { i as Nt, z as Yt, a as qt, g as Jt, b as Kt, c as Zt, d as Qt, e as eo, f as to } from "./index-CKpKc9DR.js";
7
+ import { i as Ot, z as Yt, a as qt, g as Zt, b as Jt, c as Kt, d as Qt, e as eo, f as to } from "./index-CKpKc9DR.js";
8
8
  import { i as oo } from "./index-DCsFBfJ_.js";
9
- import { _ as Ot } from "./Typography-BO0gQDIT.js";
10
- import { n as Et } from "./numberFormattingFunction-DqMf_v1m.js";
11
- import { T as ro } from "./Tooltip-Bj-s__cI.js";
12
- import { c as Bt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
+ import { _ as Mt } from "./Typography-BO0gQDIT.js";
10
+ import { n as Bt } from "./numberFormattingFunction-BUUV_luR.js";
11
+ import { T as ro } from "./Tooltip-3EYDVa3w.js";
12
+ import { c as Et } from "./checkIfNullOrUndefined-DmfiKkNw.js";
13
13
  import { X as ao, E as no, P as io, e as so } from "./index-ApTBN0kp.js";
14
- import { D as lo } from "./DetailsModal-B2XBWR7w.js";
14
+ import { D as lo } from "./DetailsModal-GqEbGHY2.js";
15
+ import { ImageDownloadButton as co } from "./ImageDownloadButton.js";
15
16
  import { s as Ct } from "./select-DKy99ogv.js";
16
17
  import { t as It } from "./threshold-DFfqcDMa.js";
17
- import { m as ct } from "./proxy-BsxtcZKa.js";
18
- import { u as co } from "./use-in-view-KOXq5Kmc.js";
19
- import { A as mo } from "./index-Cv_5q6Rb.js";
20
- import { GraphHeader as po } from "./GraphHeader.js";
21
- import { GraphFooter as ho } from "./GraphFooter.js";
18
+ import { m as dt } from "./proxy-BsxtcZKa.js";
19
+ import { u as mo } from "./use-in-view-KOXq5Kmc.js";
20
+ import { A as po } from "./index-Cv_5q6Rb.js";
21
+ import { GraphHeader as ho } from "./GraphHeader.js";
22
+ import { GraphFooter as uo } from "./GraphFooter.js";
22
23
  import { Colors as jt } from "./Colors.js";
23
24
  import { f as zt } from "./fetchAndParseData-BAXhgTDM.js";
24
25
  import { g as Wt } from "./getJenks-DTCcQSDi.js";
25
- import { a as uo, G as fo } from "./GraphContainer-B8ZqOzKI.js";
26
- function go(n) {
26
+ import { a as fo, G as go } from "./GraphContainer-B8ZqOzKI.js";
27
+ function yo(s) {
27
28
  const {
28
29
  data: e,
29
30
  xDomain: d,
30
- mapData: F,
31
- xColorLegendTitle: Fe,
32
- yDomain: K,
33
- yColorLegendTitle: Z,
34
- width: y,
35
- height: u,
36
- colors: f,
37
- scale: Te,
31
+ mapData: L,
32
+ xColorLegendTitle: Te,
33
+ yDomain: te,
34
+ yColorLegendTitle: oe,
35
+ width: f,
36
+ height: p,
37
+ colors: h,
38
+ scale: $e,
38
39
  centerPoint: k,
39
- mapBorderWidth: N,
40
- mapNoDataColor: Q,
41
- mapBorderColor: ee,
42
- tooltip: te,
43
- onSeriesMouseOver: ge,
44
- zoomScaleExtend: ye,
45
- zoomTranslateExtend: ve,
46
- highlightedIds: C,
47
- onSeriesMouseClick: oe,
40
+ mapBorderWidth: S,
41
+ mapNoDataColor: re,
42
+ mapBorderColor: ae,
43
+ tooltip: ne,
44
+ onSeriesMouseOver: xe,
45
+ zoomScaleExtend: be,
46
+ zoomTranslateExtend: De,
47
+ highlightedIds: y,
48
+ onSeriesMouseClick: ie,
48
49
  mapProperty: O,
49
- resetSelectionOnDoubleClick: $e,
50
+ resetSelectionOnDoubleClick: He,
50
51
  detailsOnClick: v,
51
- showColorScale: xe,
52
- styles: He,
53
- classNames: T,
54
- mapProjection: $,
55
- zoomInteraction: E,
52
+ showColorScale: ke,
53
+ styles: Re,
54
+ classNames: F,
55
+ mapProjection: T,
56
+ zoomInteraction: M,
56
57
  animate: B,
57
- dimmedOpacity: H,
58
- customLayers: re,
59
- collapseColorScaleByDefault: be,
60
- zoomAndCenterByHighlightedIds: De,
61
- projectionRotate: R,
62
- rewindCoordinatesInMapData: V,
63
- overlayMapData: U,
64
- overlayMapBorderColor: Re,
65
- overlayMapBorderWidth: Ge,
66
- locale: ae
67
- } = n, x = St(() => V ? Nt(F, {
58
+ dimmedOpacity: E,
59
+ customLayers: se,
60
+ collapseColorScaleByDefault: Ce,
61
+ zoomAndCenterByHighlightedIds: je,
62
+ projectionRotate: $,
63
+ rewindCoordinatesInMapData: X,
64
+ overlayMapData: Y,
65
+ overlayMapBorderColor: Ge,
66
+ overlayMapBorderWidth: Ve,
67
+ xNumberDisplayOptions: q,
68
+ yNumberDisplayOptions: le,
69
+ graphDownload: ce
70
+ } = s, a = Nt(() => X ? Ot(L, {
68
71
  reverse: !0
69
- }) : F, [F, V]), ke = St(() => !V || !U ? U : Nt(U, {
72
+ }) : L, [L, X]), m = Nt(() => !X || !Y ? Y : Ot(Y, {
70
73
  reverse: !0
71
- }), [U, V]), [m, l] = D(be === void 0 ? !(y < 680) : !be), [X, Ce] = D(void 0), [ne, ie] = D(void 0), [I, G] = D(void 0), [se, le] = D(void 0), [Y, ce] = D(void 0), c = Le(null), je = co(c, {
74
+ }), [Y, X]), [Ue, we] = D(Ce === void 0 ? !(f < 680) : !Ce), [Z, Ne] = D(void 0), [H, R] = D(void 0), [G, de] = D(void 0), [J, me] = D(void 0), [g, K] = D(void 0), I = Fe(null), C = mo(I, {
72
75
  once: B.once,
73
76
  amount: B.amount
74
- }), j = Le(null), w = Le(null);
75
- Ae(() => {
76
- const t = Ct(j.current), r = Ct(c.current), p = (g) => {
77
- if (E === "noZoom") return !1;
78
- if (E === "button") return !g.type.includes("wheel");
79
- const M = g.type === "wheel", b = g.type.startsWith("touch"), ze = g.type === "mousedown" || g.type === "mousemove";
80
- return b ? !0 : M ? E === "scroll" ? !0 : g.ctrlKey : ze && !g.button && !g.ctrlKey;
81
- }, h = Yt().scaleExtent(ye).translateExtent(ve || [[-20, -20], [y + 20, u + 20]]).filter(p).on("zoom", ({
82
- transform: g
77
+ }), w = Fe(null), V = Fe(null);
78
+ Le(() => {
79
+ const t = Ct(w.current), r = Ct(I.current), n = (u) => {
80
+ if (M === "noZoom") return !1;
81
+ if (M === "button") return !u.type.includes("wheel");
82
+ const N = u.type === "wheel", x = u.type.startsWith("touch"), he = u.type === "mousedown" || u.type === "mousemove";
83
+ return x ? !0 : N ? M === "scroll" ? !0 : u.ctrlKey : he && !u.button && !u.ctrlKey;
84
+ }, b = Yt().scaleExtent(be).translateExtent(De || [[-20, -20], [f + 20, p + 20]]).filter(n).on("zoom", ({
85
+ transform: u
83
86
  }) => {
84
- t.attr("transform", g);
87
+ t.attr("transform", u);
85
88
  });
86
- r.call(h), w.current = h;
87
- }, [u, y, E]);
88
- const z = qt({
89
- ...x,
90
- features: De ? x.features.filter(
89
+ r.call(b), V.current = b;
90
+ }, [p, f, M]);
91
+ const U = qt({
92
+ ...a,
93
+ features: je ? a.features.filter(
91
94
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
92
- (t) => (C || []).length === 0 || C?.indexOf(t.properties[O]) !== -1
93
- ) : x.features
94
- }), W = oo({
95
- ...x,
96
- features: De ? x.features.filter(
95
+ (t) => (y || []).length === 0 || y?.indexOf(t.properties[O]) !== -1
96
+ ) : a.features
97
+ }), z = oo({
98
+ ...a,
99
+ features: je ? a.features.filter(
97
100
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
- (t) => (C || []).length === 0 || C?.indexOf(t.properties[O]) !== -1
99
- ) : x.features
100
- }), we = (z[2] - z[0]) * 1.15, Se = (z[3] - z[1]) * 1.15, Me = y * 190 / 960 * 360 / we, Ne = u * 190 / 678 * 180 / Se, _ = Te * Math.min(Me, Ne), Oe = $ === "mercator" ? Jt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "equalEarth" ? Kt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "naturalEarth" ? Zt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : $ === "orthographic" ? Qt().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_) : eo().rotate(R).center(k || W.geometry.coordinates).translate([y / 2, u / 2]).scale(_), P = to().projection(Oe), de = Array.from({
101
+ (t) => (y || []).length === 0 || y?.indexOf(t.properties[O]) !== -1
102
+ ) : a.features
103
+ }), Se = (U[2] - U[0]) * 1.15, Oe = (U[3] - U[1]) * 1.15, Me = f * 190 / 960 * 360 / Se, Be = p * 190 / 678 * 180 / Oe, W = $e * Math.min(Me, Be), pe = T === "mercator" ? Zt().rotate($).center(k || z.geometry.coordinates).translate([f / 2, p / 2]).scale(W) : T === "equalEarth" ? Jt().rotate($).center(k || z.geometry.coordinates).translate([f / 2, p / 2]).scale(W) : T === "naturalEarth" ? Kt().rotate($).center(k || z.geometry.coordinates).translate([f / 2, p / 2]).scale(W) : T === "orthographic" ? Qt().rotate($).center(k || z.geometry.coordinates).translate([f / 2, p / 2]).scale(W) : eo().rotate($).center(k || z.geometry.coordinates).translate([f / 2, p / 2]).scale(W), _ = to().projection(pe), Ee = Array.from({
101
104
  length: d.length
102
- }, (t, r) => r), Ee = Array.from({
103
- length: K.length
104
- }, (t, r) => r), Be = It().domain(d).range(de), Ie = It().domain(K).range(Ee), q = (t) => {
105
- if (!c.current || !w.current) return;
106
- Ct(c.current).call(w.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
105
+ }, (t, r) => r), Ie = Array.from({
106
+ length: te.length
107
+ }, (t, r) => r), ze = It().domain(d).range(Ee), We = It().domain(te).range(Ie), Q = (t) => {
108
+ if (!I.current || !V.current) return;
109
+ Ct(I.current).call(V.current.scaleBy, t === "in" ? 1.2 : 1 / 1.2);
107
110
  };
108
111
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
109
112
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
110
- /* @__PURE__ */ o.jsx(ct.svg, { viewBox: `0 0 ${y} ${u}`, width: `${y}px`, height: `${u}px`, ref: c, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: j, children: [
111
- re.filter((t) => t.position === "before").map((t) => t.layer),
112
- x.features.map((t, r) => {
113
+ /* @__PURE__ */ o.jsx(dt.svg, { viewBox: `0 0 ${f} ${p}`, width: `${f}px`, height: `${p}px`, ref: I, direction: "ltr", children: /* @__PURE__ */ o.jsxs("g", { ref: w, children: [
114
+ se.filter((t) => t.position === "before").map((t) => t.layer),
115
+ a.features.map((t, r) => {
113
116
  if (!t.properties?.[O]) return null;
114
- const p = P(t);
115
- return p ? /* @__PURE__ */ o.jsx(ct.g, { opacity: X ? H : C ? C.indexOf(t.properties[O]) !== -1 ? 1 : H : 1, children: /* @__PURE__ */ o.jsx("path", { d: p, style: {
116
- stroke: ee,
117
- strokeWidth: N,
118
- fill: Q,
117
+ const n = _(t);
118
+ return n ? /* @__PURE__ */ o.jsx(dt.g, { opacity: Z ? E : y ? y.indexOf(t.properties[O]) !== -1 ? 1 : E : 1, children: /* @__PURE__ */ o.jsx("path", { d: n, style: {
119
+ stroke: ae,
120
+ strokeWidth: S,
121
+ fill: re,
119
122
  vectorEffect: "non-scaling-stroke"
120
123
  } }) }, r) : null;
121
124
  }),
122
- /* @__PURE__ */ o.jsx(mo, { children: e.map((t) => {
123
- const r = x.features.findIndex(
125
+ /* @__PURE__ */ o.jsx(po, { children: e.map((t) => {
126
+ const r = a.features.findIndex(
124
127
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
125
- (b) => t.id === b.properties[O]
128
+ (x) => t.id === x.properties[O]
126
129
  );
127
130
  if (r === -1) return null;
128
- const p = P(x.features[r]);
129
- if (!p) return null;
130
- const h = Bt(t.x) ? void 0 : Be(t.x), g = Bt(t.y) ? void 0 : Ie(t.y), M = h !== void 0 && g !== void 0 ? f[g][h] : Q;
131
- return /* @__PURE__ */ o.jsx(ct.g, { className: "undp-map-shapes", variants: {
131
+ const n = _(a.features[r]);
132
+ if (!n) return null;
133
+ const b = Et(t.x) ? void 0 : ze(t.x), u = Et(t.y) ? void 0 : We(t.y), N = b !== void 0 && u !== void 0 ? h[u][b] : re;
134
+ return /* @__PURE__ */ o.jsx(dt.g, { className: "undp-map-shapes", variants: {
132
135
  initial: {
133
136
  opacity: 0
134
137
  },
135
138
  whileInView: {
136
- opacity: X ? X === M ? 1 : H : C ? C.indexOf(t.id) !== -1 ? 1 : H : 1,
139
+ opacity: Z ? Z === N && (!y || y.indexOf(t.id) !== -1) ? 1 : E : y ? y.indexOf(t.id) !== -1 ? 1 : E : 1,
137
140
  transition: {
138
141
  duration: B.duration
139
142
  }
140
143
  }
141
- }, initial: "initial", animate: je ? "whileInView" : "initial", exit: {
144
+ }, initial: "initial", animate: C ? "whileInView" : "initial", exit: {
142
145
  opacity: 0,
143
146
  transition: {
144
147
  duration: B.duration
145
148
  }
146
- }, onMouseEnter: (b) => {
147
- G(t), ce(b.clientY), le(b.clientX), ge?.(t);
149
+ }, onMouseEnter: (x) => {
150
+ de(t), K(x.clientY), me(x.clientX), xe?.(t);
148
151
  }, onClick: () => {
149
- (oe || v) && (Xt(ne, t) && $e ? (ie(void 0), oe?.(void 0)) : (ie(t), oe?.(t)));
150
- }, onMouseMove: (b) => {
151
- G(t), ce(b.clientY), le(b.clientX);
152
+ (ie || v) && (Xt(H, t) && He ? (R(void 0), ie?.(void 0)) : (R(t), ie?.(t)));
153
+ }, onMouseMove: (x) => {
154
+ de(t), K(x.clientY), me(x.clientX);
152
155
  }, onMouseLeave: () => {
153
- G(void 0), le(void 0), ce(void 0), ge?.(void 0);
154
- }, children: /* @__PURE__ */ o.jsx(ct.path, { d: p, variants: {
156
+ de(void 0), me(void 0), K(void 0), xe?.(void 0);
157
+ }, children: /* @__PURE__ */ o.jsx(dt.path, { d: n, variants: {
155
158
  initial: {
156
- fill: M,
159
+ fill: N,
157
160
  opacity: 0
158
161
  },
159
162
  whileInView: {
160
- fill: M,
163
+ fill: N,
161
164
  opacity: 1,
162
165
  transition: {
163
166
  duration: B.duration
164
167
  }
165
168
  }
166
- }, initial: "initial", animate: je ? "whileInView" : "initial", exit: {
169
+ }, initial: "initial", animate: C ? "whileInView" : "initial", exit: {
167
170
  opacity: 0,
168
171
  transition: {
169
172
  duration: B.duration
170
173
  }
171
- }, className: `${M === Q ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
172
- stroke: ee,
173
- strokeWidth: N,
174
+ }, className: `${N === re ? "stroke-primary-gray-400 dark:stroke-primary-gray-500" : "stroke-primary-white dark:stroke-primary-gray-650"}`, style: {
175
+ stroke: ae,
176
+ strokeWidth: S,
174
177
  vectorEffect: "non-scaling-stroke"
175
178
  } }, `${t.id}`) }, t.id);
176
179
  }) }),
177
- I ? x.features.filter(
180
+ G ? a.features.filter(
178
181
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
179
- (t) => t.properties[O] === I.id
180
- ).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: P(t) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
182
+ (t) => t.properties[O] === G.id
183
+ ).map((t, r) => /* @__PURE__ */ o.jsx("path", { d: _(t) || "", className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
181
184
  fill: "none",
182
185
  fillOpacity: 0,
183
186
  strokeWidth: "0.5",
184
187
  vectorEffect: "non-scaling-stroke"
185
188
  } }, r)) : null,
186
- ke?.features.map((t, r) => {
187
- const p = P(t);
188
- return p ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d: p, style: {
189
- stroke: Re || ee,
190
- strokeWidth: Ge || N + 1,
189
+ m?.features.map((t, r) => {
190
+ const n = _(t);
191
+ return n ? /* @__PURE__ */ o.jsx("g", { children: /* @__PURE__ */ o.jsx("path", { d: n, style: {
192
+ stroke: Ge || ae,
193
+ strokeWidth: Ve || S + 1,
191
194
  fill: "none",
192
195
  pointerEvents: "none",
193
196
  vectorEffect: "non-scaling-stroke"
194
197
  } }) }, r) : null;
195
198
  }),
196
- re.filter((t) => t.position === "after").map((t) => t.layer)
199
+ se.filter((t) => t.position === "after").map((t) => t.layer)
197
200
  ] }) }),
198
- xe === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Tt("absolute left-4 bottom-4 map-color-legend", T?.colorLegend), children: m ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
201
+ ke === !1 ? null : /* @__PURE__ */ o.jsx("div", { className: Tt("absolute left-4 bottom-4 map-color-legend", F?.colorLegend), children: Ue ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
199
202
  /* @__PURE__ */ o.jsx("div", { className: "color-legend-close-button bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)] border border-[var(--gray-400)] rounded-full w-6 h-6 p-[3px] cursor-pointer z-10 absolute right-[-0.75rem] top-[-0.75rem]", onClick: () => {
200
- l(!1);
203
+ we(!1);
201
204
  }, children: /* @__PURE__ */ o.jsx(ao, {}) }),
202
205
  /* @__PURE__ */ o.jsxs("div", { className: "color-legend-box p-2 bg-[rgba(240,240,240,0.7)] dark:bg-[rgba(30,30,30,0.7)]", style: {
203
206
  width: "175px"
204
207
  }, children: [
205
208
  /* @__PURE__ */ o.jsxs("div", { className: "flex gap-1 items-center", children: [
206
209
  /* @__PURE__ */ o.jsx("svg", { width: "136px", viewBox: "0 0 136 136", className: "shrink-0", children: /* @__PURE__ */ o.jsxs("g", { children: [
207
- f.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((p, h) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: h * 25 + 1, fill: p, width: 23, height: 23, strokeWidth: X === p ? 2 : 0.25, style: {
210
+ h.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(0,${100 - r * 25})`, children: t.map((n, b) => /* @__PURE__ */ o.jsx("rect", { y: 1, x: b * 25 + 1, fill: n, width: 23, height: 23, strokeWidth: Z === n ? 2 : 0.25, style: {
208
211
  cursor: "pointer"
209
212
  }, onMouseOver: () => {
210
- Ce(p);
213
+ Ne(n);
211
214
  }, onMouseLeave: () => {
212
- Ce(void 0);
213
- } }, h)) }, r)),
214
- /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: d.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Et(t, void 0, void 0, void 0, void 0, ae) }, r)) }),
215
- K.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(d.length + 1, 5), 4) * 25 + 10},${100 - r * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Et(t, void 0, void 0, void 0, void 0, ae) }) }, r))
215
+ Ne(void 0);
216
+ } }, b)) }, r)),
217
+ /* @__PURE__ */ o.jsx("g", { transform: "translate(0,125)", children: d.map((t, r) => /* @__PURE__ */ o.jsx("text", { y: 10, x: (r + 1) * 25, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Bt(t, void 0, q?.precision ?? 2, void 0, void 0, q?.locale || "en", q?.padZeros || !1) }, r)) }),
218
+ te.map((t, r) => /* @__PURE__ */ o.jsx("g", { transform: `translate(${Math.max(Math.min(d.length + 1, 5), 4) * 25 + 10},${100 - r * 25})`, children: /* @__PURE__ */ o.jsx("text", { x: 0, transform: "rotate(-90)", y: 0, fontSize: 10, textAnchor: "middle", children: typeof t == "string" || t < 1 ? t : Bt(t, void 0, le?.precision ?? 2, void 0, void 0, le?.locale || "en", le?.padZeros || !1) }) }, r))
216
219
  ] }) }),
217
- /* @__PURE__ */ o.jsx(Ot, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
220
+ /* @__PURE__ */ o.jsx(Mt, { marginBottom: "none", size: "xs", className: "leading-normal text-center shrink-0", style: {
218
221
  display: "-webkit-box",
219
222
  WebkitLineClamp: "1",
220
223
  WebkitBoxOrient: "vertical",
@@ -222,237 +225,239 @@ function go(n) {
222
225
  writingMode: "vertical-rl",
223
226
  height: "8.5rem",
224
227
  transform: "rotate(180deg)"
225
- }, children: Z })
228
+ }, children: oe })
226
229
  ] }),
227
- /* @__PURE__ */ o.jsx(Ot, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
230
+ /* @__PURE__ */ o.jsx(Mt, { marginBottom: "none", size: "xs", className: "mt-1 leading-normal text-center", style: {
228
231
  display: "-webkit-box",
229
232
  WebkitLineClamp: "1",
230
233
  width: "8.5rem",
231
234
  WebkitBoxOrient: "vertical",
232
235
  overflow: "hidden"
233
- }, children: Fe })
236
+ }, children: Te })
234
237
  ] })
235
238
  ] }) : /* @__PURE__ */ o.jsx("button", { type: "button", className: "p-1 border-0 rounded-[2px] text-primary-gray-700 bg-primary-gray-300 dark:bg-primary-gray-500 map-legend-button", onClick: () => {
236
- l(!0);
239
+ we(!0);
237
240
  }, children: /* @__PURE__ */ o.jsx(no, {}) }) }),
238
- E === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col zoom-buttons", children: [
239
- /* @__PURE__ */ o.jsx("button", { onClick: () => q("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
240
- /* @__PURE__ */ o.jsx("button", { onClick: () => q("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
241
- ] })
241
+ M === "button" && /* @__PURE__ */ o.jsxs("div", { className: "absolute left-4 top-4 flex flex-col undp-viz-zoom-buttons", children: [
242
+ /* @__PURE__ */ o.jsx("button", { onClick: () => Q("in"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "+" }),
243
+ /* @__PURE__ */ o.jsx("button", { onClick: () => Q("out"), className: "leading-0 px-2 py-3.5 border text-primary-gray-700 border-t-0 border-primary-gray-400 bg-primary-gray-200 dark:border-primary-gray-550 dark:bg-primary-gray-600 dark:text-primary-gray-100", children: "–" })
244
+ ] }),
245
+ ce && /* @__PURE__ */ o.jsx("div", { className: "absolute right-4 top-4 flex flex-col image-download-button", children: /* @__PURE__ */ o.jsx(co, { nodeID: ce, buttonSmall: !0 }) })
242
246
  ] }),
243
- I && te && se && Y ? /* @__PURE__ */ o.jsx(ro, { data: I, body: te, xPos: se, yPos: Y, backgroundStyle: He?.tooltip, className: T?.tooltip }) : null,
244
- v && ne !== void 0 ? /* @__PURE__ */ o.jsx(lo, { body: v, data: ne, setData: ie, className: T?.modal }) : null
247
+ G && ne && J && g ? /* @__PURE__ */ o.jsx(ro, { data: G, body: ne, xPos: J, yPos: g, backgroundStyle: Re?.tooltip, className: F?.tooltip }) : null,
248
+ v && H !== void 0 ? /* @__PURE__ */ o.jsx(lo, { body: v, data: H, setData: R, className: F?.modal }) : null
245
249
  ] });
246
250
  }
247
- function Zo(n) {
248
- const e = $t.c(129), {
251
+ function er(s) {
252
+ const e = $t.c(130), {
249
253
  data: d,
250
- graphTitle: F,
251
- mapData: Fe,
252
- colors: K,
253
- sources: Z,
254
- graphDescription: y,
255
- height: u,
256
- width: f,
257
- footNote: Te,
254
+ graphTitle: L,
255
+ mapData: Te,
256
+ colors: te,
257
+ sources: oe,
258
+ graphDescription: f,
259
+ height: p,
260
+ width: h,
261
+ footNote: $e,
258
262
  xDomain: k,
259
- yDomain: N,
260
- xColorLegendTitle: Q,
261
- yColorLegendTitle: ee,
262
- tooltip: te,
263
- scale: ge,
264
- centerPoint: ye,
265
- padding: ve,
266
- mapBorderWidth: C,
267
- mapNoDataColor: oe,
263
+ yDomain: S,
264
+ xColorLegendTitle: re,
265
+ yColorLegendTitle: ae,
266
+ tooltip: ne,
267
+ scale: xe,
268
+ centerPoint: be,
269
+ padding: De,
270
+ mapBorderWidth: y,
271
+ mapNoDataColor: ie,
268
272
  backgroundColor: O,
269
- mapBorderColor: $e,
273
+ mapBorderColor: He,
270
274
  relativeHeight: v,
271
- onSeriesMouseOver: xe,
272
- isWorldMap: He,
273
- zoomScaleExtend: T,
274
- zoomTranslateExtend: $,
275
- graphID: E,
275
+ onSeriesMouseOver: ke,
276
+ isWorldMap: Re,
277
+ zoomScaleExtend: F,
278
+ zoomTranslateExtend: T,
279
+ graphID: M,
276
280
  showColorScale: B,
277
- highlightedIds: H,
278
- onSeriesMouseClick: re,
279
- mapProperty: be,
280
- graphDownload: De,
281
- dataDownload: R,
282
- showAntarctica: V,
283
- language: U,
284
- minHeight: Re,
285
- theme: Ge,
286
- ariaLabel: ae,
287
- resetSelectionOnDoubleClick: x,
288
- detailsOnClick: ke,
289
- styles: m,
290
- classNames: l,
291
- mapProjection: X,
292
- zoomInteraction: Ce,
293
- animate: ne,
294
- dimmedOpacity: ie,
295
- customLayers: I,
296
- timeline: G,
297
- collapseColorScaleByDefault: se,
298
- zoomAndCenterByHighlightedIds: le,
299
- projectionRotate: Y,
300
- rewindCoordinatesInMapData: ce,
301
- mapOverlay: c,
302
- locale: je
303
- } = n, j = Fe === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Fe, w = K === void 0 ? jt.light.bivariateColors.colors05x05 : K, z = Te === 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." : Te, W = Q === void 0 ? "X Color key" : Q, we = ee === void 0 ? "Y Color key" : ee, Se = ge === void 0 ? 0.95 : ge, Me = C === void 0 ? 0.5 : C, Ne = oe === void 0 ? jt.light.graphNoData : oe, _ = O === void 0 ? !1 : O, Oe = $e === void 0 ? jt.light.grays["gray-500"] : $e, P = He === void 0 ? !0 : He;
304
- let de;
305
- e[0] !== T ? (de = T === void 0 ? [0.8, 6] : T, e[0] = T, e[1] = de) : de = e[1];
306
- const Ee = de, Be = B === void 0 ? !0 : B, Ie = be === void 0 ? "ISO3" : be, q = De === void 0 ? !1 : De, t = R === void 0 ? !1 : R, r = V === void 0 ? !1 : V, p = U === void 0 ? "en" : U, h = Re === void 0 ? 0 : Re, g = Ge === void 0 ? "light" : Ge, M = x === void 0 ? !0 : x, b = X === void 0 ? "naturalEarth" : X, ze = Ce === void 0 ? "button" : Ce, Ve = ne === void 0 ? !1 : ne, dt = ie === void 0 ? 0.3 : ie;
307
- let Ue;
308
- e[2] !== I ? (Ue = I === void 0 ? [] : I, e[2] = I, e[3] = Ue) : Ue = e[3];
309
- const mt = Ue;
281
+ highlightedIds: E,
282
+ onSeriesMouseClick: se,
283
+ mapProperty: Ce,
284
+ graphDownload: je,
285
+ dataDownload: $,
286
+ showAntarctica: X,
287
+ language: Y,
288
+ minHeight: Ge,
289
+ theme: Ve,
290
+ ariaLabel: q,
291
+ resetSelectionOnDoubleClick: le,
292
+ detailsOnClick: ce,
293
+ styles: a,
294
+ classNames: m,
295
+ mapProjection: Ue,
296
+ zoomInteraction: we,
297
+ animate: Z,
298
+ dimmedOpacity: Ne,
299
+ customLayers: H,
300
+ timeline: R,
301
+ collapseColorScaleByDefault: G,
302
+ zoomAndCenterByHighlightedIds: de,
303
+ projectionRotate: J,
304
+ rewindCoordinatesInMapData: me,
305
+ mapOverlay: g,
306
+ xNumberDisplayOptions: K,
307
+ yNumberDisplayOptions: I
308
+ } = s, C = Te === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap-v2.json" : Te, w = te === void 0 ? jt.light.bivariateColors.colors05x05 : te, V = $e === 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." : $e, U = re === void 0 ? "X Color key" : re, z = ae === void 0 ? "Y Color key" : ae, Se = xe === void 0 ? 0.95 : xe, Oe = y === void 0 ? 0.5 : y, Me = ie === void 0 ? jt.light.graphNoData : ie, Be = O === void 0 ? !1 : O, W = He === void 0 ? jt.light.grays["gray-500"] : He, pe = Re === void 0 ? !0 : Re;
309
+ let _;
310
+ e[0] !== F ? (_ = F === void 0 ? [0.8, 6] : F, e[0] = F, e[1] = _) : _ = e[1];
311
+ const Ee = _, Ie = B === void 0 ? !0 : B, ze = Ce === void 0 ? "ISO3" : Ce, We = je === void 0 ? !1 : je, Q = $ === void 0 ? !1 : $, t = X === void 0 ? !1 : X, r = Y === void 0 ? "en" : Y, n = Ge === void 0 ? 0 : Ge, b = Ve === void 0 ? "light" : Ve, u = le === void 0 ? !0 : le, N = Ue === void 0 ? "naturalEarth" : Ue, x = we === void 0 ? "button" : we, he = Z === void 0 ? !1 : Z, mt = Ne === void 0 ? 0.3 : Ne;
310
312
  let Xe;
311
- e[4] !== G ? (Xe = G === void 0 ? {
313
+ e[2] !== H ? (Xe = H === void 0 ? [] : H, e[2] = H, e[3] = Xe) : Xe = e[3];
314
+ const pt = Xe;
315
+ let Ye;
316
+ e[4] !== R ? (Ye = R === void 0 ? {
312
317
  enabled: !1,
313
318
  autoplay: !1,
314
319
  showOnlyActiveDate: !0
315
- } : G, e[4] = G, e[5] = Xe) : Xe = e[5];
316
- const a = Xe, pt = le === void 0 ? !1 : le;
317
- let Ye;
318
- e[6] !== Y ? (Ye = Y === void 0 ? [0, 0] : Y, e[6] = Y, e[7] = Ye) : Ye = e[7];
319
- const ht = Ye, ut = ce === void 0 ? !0 : ce, ft = je === void 0 ? "en" : je, [J, _t] = D(0), [We, Pt] = D(0), [A, At] = D(a.autoplay);
320
- let _e;
321
- if (e[8] !== d || e[9] !== a.dateFormat) {
322
- let i;
323
- e[11] !== a.dateFormat ? (i = (S) => Ut(`${S.date}`, a.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = a.dateFormat, e[12] = i) : i = e[12], _e = [...new Set(d.filter(So).map(i))], _e.sort(wo), e[8] = d, e[9] = a.dateFormat, e[10] = _e;
320
+ } : R, e[4] = R, e[5] = Ye) : Ye = e[5];
321
+ const i = Ye, ht = de === void 0 ? !1 : de;
322
+ let qe;
323
+ e[6] !== J ? (qe = J === void 0 ? [0, 0] : J, e[6] = J, e[7] = qe) : qe = e[7];
324
+ const ut = qe, ft = me === void 0 ? !0 : me, [ee, _t] = D(0), [_e, Pt] = D(0), [P, At] = D(i.autoplay);
325
+ let Pe;
326
+ if (e[8] !== d || e[9] !== i.dateFormat) {
327
+ let l;
328
+ e[11] !== i.dateFormat ? (l = (j) => Ut(`${j.date}`, i.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime(), e[11] = i.dateFormat, e[12] = l) : l = e[12], Pe = [...new Set(d.filter(So).map(l))], Pe.sort(No), e[8] = d, e[9] = i.dateFormat, e[10] = Pe;
324
329
  } else
325
- _e = e[10];
326
- const s = _e, [L, gt] = D(a.autoplay ? 0 : s.length - 1), [me, Lt] = D(void 0), [yt, Ft] = D(void 0), vt = Le(null), wt = Le(null);
327
- let qe, Je;
328
- e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (qe = () => {
329
- const i = new ResizeObserver((S) => {
330
- _t(S[0].target.clientWidth || 620), Pt(S[0].target.clientHeight || 480);
330
+ Pe = e[10];
331
+ const c = Pe, [A, gt] = D(i.autoplay ? 0 : c.length - 1), [ue, Lt] = D(void 0), [yt, Ft] = D(void 0), vt = Fe(null), wt = Fe(null);
332
+ let Ze, Je;
333
+ e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ze = () => {
334
+ const l = new ResizeObserver((j) => {
335
+ _t(j[0].target.clientWidth || 620), Pt(j[0].target.clientHeight || 480);
331
336
  });
332
- return vt.current && i.observe(vt.current), () => i.disconnect();
333
- }, Je = [], e[13] = qe, e[14] = Je) : (qe = e[13], Je = e[14]), Ae(qe, Je);
337
+ return vt.current && l.observe(vt.current), () => l.disconnect();
338
+ }, Je = [], e[13] = Ze, e[14] = Je) : (Ze = e[13], Je = e[14]), Le(Ze, Je);
334
339
  let Ke;
335
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (i) => {
336
- Lt(i);
340
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ke = (l) => {
341
+ Lt(l);
337
342
  }, e[15] = Ke) : Ke = e[15];
338
- const Ze = Mt(Ke);
339
- let Qe;
340
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Qe = (i) => {
341
- Ft(i);
342
- }, e[16] = Qe) : Qe = e[16];
343
- const Pe = Mt(Qe);
343
+ const Qe = St(Ke);
344
344
  let et;
345
- e[17] !== j || e[18] !== Ze ? (et = () => {
346
- typeof j == "string" ? zt(j).then((S) => {
347
- Ze(S);
348
- }) : Ze(j);
349
- }, e[17] = j, e[18] = Ze, e[19] = et) : et = e[19];
345
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (et = (l) => {
346
+ Ft(l);
347
+ }, e[16] = et) : et = e[16];
348
+ const Ae = St(et);
350
349
  let tt;
351
- e[20] !== j ? (tt = [j], e[20] = j, e[21] = tt) : tt = e[21], Ae(et, tt);
350
+ e[17] !== C || e[18] !== Qe ? (tt = () => {
351
+ typeof C == "string" ? zt(C).then((j) => {
352
+ Qe(j);
353
+ }) : Qe(C);
354
+ }, e[17] = C, e[18] = Qe, e[19] = tt) : tt = e[19];
352
355
  let ot;
353
- e[22] !== c?.mapData || e[23] !== Pe ? (ot = () => {
354
- c?.mapData || Pe(void 0), typeof c?.mapData == "string" ? zt(c?.mapData).then((S) => {
355
- Pe(S);
356
- }) : Pe(c?.mapData);
357
- }, e[22] = c?.mapData, e[23] = Pe, e[24] = ot) : ot = e[24];
358
- const xt = c?.mapData;
356
+ e[20] !== C ? (ot = [C], e[20] = C, e[21] = ot) : ot = e[21], Le(tt, ot);
359
357
  let rt;
360
- e[25] !== xt ? (rt = [xt], e[25] = xt, e[26] = rt) : rt = e[26], Ae(ot, rt);
361
- let at, nt;
362
- e[27] !== A || e[28] !== a.speed || e[29] !== s ? (at = () => {
363
- const i = setInterval(() => {
364
- gt((S) => S < s.length - 1 ? S + 1 : 0);
365
- }, (a.speed || 2) * 1e3);
366
- return A || clearInterval(i), () => clearInterval(i);
367
- }, nt = [s, A, a.speed], e[27] = A, e[28] = a.speed, e[29] = s, e[30] = at, e[31] = nt) : (at = e[30], nt = e[31]), Ae(at, nt);
368
- const bt = a.dateFormat || "yyyy";
369
- let it;
370
- e[32] !== L || e[33] !== bt || e[34] !== a.showOnlyActiveDate || e[35] !== s ? (it = Ht(s, L, a.showOnlyActiveDate, bt), e[32] = L, e[33] = bt, e[34] = a.showOnlyActiveDate, e[35] = s, e[36] = it) : it = e[36];
371
- const st = it;
372
- if (k && N && (k.length !== w[0].length - 1 || N.length !== w.length - 1))
358
+ e[22] !== g?.mapData || e[23] !== Ae ? (rt = () => {
359
+ g?.mapData || Ae(void 0), typeof g?.mapData == "string" ? zt(g?.mapData).then((j) => {
360
+ Ae(j);
361
+ }) : Ae(g?.mapData);
362
+ }, e[22] = g?.mapData, e[23] = Ae, e[24] = rt) : rt = e[24];
363
+ const xt = g?.mapData;
364
+ let at;
365
+ e[25] !== xt ? (at = [xt], e[25] = xt, e[26] = at) : at = e[26], Le(rt, at);
366
+ let nt, it;
367
+ e[27] !== P || e[28] !== i.speed || e[29] !== c ? (nt = () => {
368
+ const l = setInterval(() => {
369
+ gt((j) => j < c.length - 1 ? j + 1 : 0);
370
+ }, (i.speed || 2) * 1e3);
371
+ return P || clearInterval(l), () => clearInterval(l);
372
+ }, it = [c, P, i.speed], e[27] = P, e[28] = i.speed, e[29] = c, e[30] = nt, e[31] = it) : (nt = e[30], it = e[31]), Le(nt, it);
373
+ const bt = i.dateFormat || "yyyy";
374
+ let st;
375
+ e[32] !== A || e[33] !== bt || e[34] !== i.showOnlyActiveDate || e[35] !== c ? (st = Ht(c, A, i.showOnlyActiveDate, bt), e[32] = A, e[33] = bt, e[34] = i.showOnlyActiveDate, e[35] = c, e[36] = st) : st = e[36];
376
+ const lt = st;
377
+ if (k && S && (k.length !== w[0].length - 1 || S.length !== w.length - 1))
373
378
  return console.error("the xDomain and yDomain array length don't match to the color array length"), null;
374
- const Dt = l?.graphContainer, kt = m?.graphContainer;
375
- let pe;
376
- e[37] !== l?.description || e[38] !== l?.title || e[39] !== d || e[40] !== t || e[41] !== y || e[42] !== q || e[43] !== F || e[44] !== m?.description || e[45] !== m?.title || e[46] !== f ? (pe = F || y || q || t ? /* @__PURE__ */ o.jsx(po, { styles: {
379
+ const Dt = m?.graphContainer, kt = a?.graphContainer;
380
+ let fe;
381
+ e[37] !== m?.description || e[38] !== m?.title || e[39] !== d || e[40] !== Q || e[41] !== f || e[42] !== L || e[43] !== a?.description || e[44] !== a?.title || e[45] !== h ? (fe = L || f || Q ? /* @__PURE__ */ o.jsx(ho, { styles: {
382
+ title: a?.title,
383
+ description: a?.description
384
+ }, classNames: {
377
385
  title: m?.title,
378
386
  description: m?.description
379
- }, classNames: {
380
- title: l?.title,
381
- description: l?.description
382
- }, graphTitle: F, graphDescription: y, width: f, graphDownload: q ? wt : void 0, dataDownload: t ? d.map(jo).filter(Co).length > 0 ? d.map(ko).filter(Do) : d.filter(bo) : null }) : null, e[37] = l?.description, e[38] = l?.title, e[39] = d, e[40] = t, e[41] = y, e[42] = q, e[43] = F, e[44] = m?.description, e[45] = m?.title, e[46] = f, e[47] = pe) : pe = e[47];
383
- let he;
384
- e[48] !== L || e[49] !== st || e[50] !== A || e[51] !== a.enabled || e[52] !== s ? (he = a.enabled && s.length > 0 && st ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
387
+ }, graphTitle: L, graphDescription: f, width: h, dataDownload: Q ? d.map(wo).filter(jo).length > 0 ? d.map(Co).filter(ko) : d.filter(Do) : null }) : null, e[37] = m?.description, e[38] = m?.title, e[39] = d, e[40] = Q, e[41] = f, e[42] = L, e[43] = a?.description, e[44] = a?.title, e[45] = h, e[46] = fe) : fe = e[46];
388
+ let ge;
389
+ e[47] !== A || e[48] !== lt || e[49] !== P || e[50] !== i.enabled || e[51] !== c ? (ge = i.enabled && c.length > 0 && lt ? /* @__PURE__ */ o.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
385
390
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: () => {
386
- At(!A);
387
- }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": A ? "Click to pause animation" : "Click to play animation", children: A ? /* @__PURE__ */ o.jsx(io, {}) : /* @__PURE__ */ o.jsx(so, {}) }),
388
- /* @__PURE__ */ o.jsx(Rt, { min: s[0], max: s[s.length - 1], marks: st, step: null, defaultValue: s[s.length - 1], value: s[L], onChangeComplete: (i) => {
389
- gt(s.indexOf(i));
390
- }, onChange: (i) => {
391
- gt(s.indexOf(i));
391
+ At(!P);
392
+ }, className: "p-0 border-0 cursor-pointer bg-transparent", "aria-label": P ? "Click to pause animation" : "Click to play animation", children: P ? /* @__PURE__ */ o.jsx(io, {}) : /* @__PURE__ */ o.jsx(so, {}) }),
393
+ /* @__PURE__ */ o.jsx(Rt, { min: c[0], max: c[c.length - 1], marks: lt, step: null, defaultValue: c[c.length - 1], value: c[A], onChangeComplete: (l) => {
394
+ gt(c.indexOf(l));
395
+ }, onChange: (l) => {
396
+ gt(c.indexOf(l));
392
397
  }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
393
- ] }) : null, e[48] = L, e[49] = st, e[50] = A, e[51] = a.enabled, e[52] = s, e[53] = he) : he = e[53];
394
- let ue;
395
- e[54] !== Ve || e[55] !== ye || e[56] !== l || e[57] !== se || e[58] !== w || e[59] !== mt || e[60] !== d || e[61] !== ke || e[62] !== dt || e[63] !== u || e[64] !== H || e[65] !== L || e[66] !== P || e[67] !== ft || e[68] !== Oe || e[69] !== Me || e[70] !== Ne || e[71] !== c?.mapBorderColor || e[72] !== c?.mapBorderWidth || e[73] !== b || e[74] !== Ie || e[75] !== me || e[76] !== h || e[77] !== re || e[78] !== xe || e[79] !== yt || e[80] !== ht || e[81] !== v || e[82] !== M || e[83] !== ut || e[84] !== Se || e[85] !== r || e[86] !== Be || e[87] !== m || e[88] !== We || e[89] !== J || e[90] !== a.dateFormat || e[91] !== a.enabled || e[92] !== te || e[93] !== s || e[94] !== f || e[95] !== W || e[96] !== k || e[97] !== we || e[98] !== N || e[99] !== pt || e[100] !== ze || e[101] !== Ee || e[102] !== $ ? (ue = /* @__PURE__ */ o.jsx(uo, { ref: vt, children: J && We && me ? /* @__PURE__ */ o.jsx(go, { data: d.filter((i) => a.enabled ? `${i.date}` === Vt(new Date(s[L]), a.dateFormat || "yyyy") : i), mapData: r ? me : {
396
- ...me,
397
- features: me.features.filter(xo)
398
- }, xDomain: k || Wt(d.map(vo), w[0].length), yDomain: N || Wt(d.map(yo), w.length), width: J, height: We, scale: Se, centerPoint: ye, colors: w, xColorLegendTitle: W, yColorLegendTitle: we, mapBorderWidth: Me, mapNoDataColor: Ne, mapBorderColor: Oe, tooltip: te, onSeriesMouseOver: xe, isWorldMap: P, zoomScaleExtend: Ee, zoomTranslateExtend: $, onSeriesMouseClick: re, mapProperty: Ie, highlightedIds: H, resetSelectionOnDoubleClick: M, styles: m, showColorScale: Be, classNames: l, mapProjection: b || (P ? "naturalEarth" : "mercator"), detailsOnClick: ke, zoomInteraction: ze, overlayMapData: yt, overlayMapBorderColor: c?.mapBorderColor, overlayMapBorderWidth: c?.mapBorderWidth, animate: Ve === !0 ? {
398
+ ] }) : null, e[47] = A, e[48] = lt, e[49] = P, e[50] = i.enabled, e[51] = c, e[52] = ge) : ge = e[52];
399
+ let ye;
400
+ e[53] !== he || e[54] !== be || e[55] !== m || e[56] !== G || e[57] !== w || e[58] !== pt || e[59] !== d || e[60] !== ce || e[61] !== mt || e[62] !== We || e[63] !== p || e[64] !== E || e[65] !== A || e[66] !== pe || e[67] !== W || e[68] !== Oe || e[69] !== Me || e[70] !== g?.mapBorderColor || e[71] !== g?.mapBorderWidth || e[72] !== N || e[73] !== ze || e[74] !== ue || e[75] !== n || e[76] !== se || e[77] !== ke || e[78] !== yt || e[79] !== ut || e[80] !== v || e[81] !== u || e[82] !== ft || e[83] !== Se || e[84] !== t || e[85] !== Ie || e[86] !== a || e[87] !== _e || e[88] !== ee || e[89] !== i.dateFormat || e[90] !== i.enabled || e[91] !== ne || e[92] !== c || e[93] !== h || e[94] !== U || e[95] !== k || e[96] !== K || e[97] !== z || e[98] !== S || e[99] !== I || e[100] !== ht || e[101] !== x || e[102] !== Ee || e[103] !== T ? (ye = /* @__PURE__ */ o.jsx(fo, { ref: vt, children: ee && _e && ue ? /* @__PURE__ */ o.jsx(yo, { data: d.filter((l) => i.enabled ? `${l.date}` === Vt(new Date(c[A]), i.dateFormat || "yyyy") : l), mapData: t ? ue : {
401
+ ...ue,
402
+ features: ue.features.filter(bo)
403
+ }, xDomain: k || Wt(d.map(xo), w[0].length), yDomain: S || Wt(d.map(vo), w.length), width: ee, height: _e, scale: Se, centerPoint: be, colors: w, xColorLegendTitle: U, yColorLegendTitle: z, mapBorderWidth: Oe, mapNoDataColor: Me, mapBorderColor: W, tooltip: ne, onSeriesMouseOver: ke, isWorldMap: pe, zoomScaleExtend: Ee, zoomTranslateExtend: T, onSeriesMouseClick: se, mapProperty: ze, highlightedIds: E, resetSelectionOnDoubleClick: u, styles: a, showColorScale: Ie, classNames: m, mapProjection: N || (pe ? "naturalEarth" : "mercator"), detailsOnClick: ce, zoomInteraction: x, overlayMapData: yt, overlayMapBorderColor: g?.mapBorderColor, overlayMapBorderWidth: g?.mapBorderWidth, animate: he === !0 ? {
399
404
  duration: 0.5,
400
405
  once: !0,
401
406
  amount: 0.5
402
- } : Ve || {
407
+ } : he || {
403
408
  duration: 0,
404
409
  once: !0,
405
410
  amount: 0
406
- }, dimmedOpacity: dt, customLayers: mt, collapseColorScaleByDefault: se, zoomAndCenterByHighlightedIds: pt, projectionRotate: ht, rewindCoordinatesInMapData: ut, locale: ft }) : /* @__PURE__ */ o.jsx("div", { style: {
407
- height: `${Math.max(h, u || (v ? h ? (f || J) * v > h ? (f || J) * v : h : (f || J) * v : We))}px`
408
- }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Gt, { "aria-label": "Loading graph" }) }) }), e[54] = Ve, e[55] = ye, e[56] = l, e[57] = se, e[58] = w, e[59] = mt, e[60] = d, e[61] = ke, e[62] = dt, e[63] = u, e[64] = H, e[65] = L, e[66] = P, e[67] = ft, e[68] = Oe, e[69] = Me, e[70] = Ne, e[71] = c?.mapBorderColor, e[72] = c?.mapBorderWidth, e[73] = b, e[74] = Ie, e[75] = me, e[76] = h, e[77] = re, e[78] = xe, e[79] = yt, e[80] = ht, e[81] = v, e[82] = M, e[83] = ut, e[84] = Se, e[85] = r, e[86] = Be, e[87] = m, e[88] = We, e[89] = J, e[90] = a.dateFormat, e[91] = a.enabled, e[92] = te, e[93] = s, e[94] = f, e[95] = W, e[96] = k, e[97] = we, e[98] = N, e[99] = pt, e[100] = ze, e[101] = Ee, e[102] = $, e[103] = ue) : ue = e[103];
409
- let fe;
410
- e[104] !== l?.footnote || e[105] !== l?.source || e[106] !== z || e[107] !== Z || e[108] !== m?.footnote || e[109] !== m?.source || e[110] !== f ? (fe = Z || z ? /* @__PURE__ */ o.jsx(ho, { styles: {
411
+ }, dimmedOpacity: mt, customLayers: pt, collapseColorScaleByDefault: G, zoomAndCenterByHighlightedIds: ht, projectionRotate: ut, rewindCoordinatesInMapData: ft, xNumberDisplayOptions: K, yNumberDisplayOptions: I, graphDownload: We ? wt : void 0 }) : /* @__PURE__ */ o.jsx("div", { style: {
412
+ height: `${Math.max(n, p || (v ? n ? (h || ee) * v > n ? (h || ee) * v : n : (h || ee) * v : _e))}px`
413
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ o.jsx(Gt, { "aria-label": "Loading graph" }) }) }), e[53] = he, e[54] = be, e[55] = m, e[56] = G, e[57] = w, e[58] = pt, e[59] = d, e[60] = ce, e[61] = mt, e[62] = We, e[63] = p, e[64] = E, e[65] = A, e[66] = pe, e[67] = W, e[68] = Oe, e[69] = Me, e[70] = g?.mapBorderColor, e[71] = g?.mapBorderWidth, e[72] = N, e[73] = ze, e[74] = ue, e[75] = n, e[76] = se, e[77] = ke, e[78] = yt, e[79] = ut, e[80] = v, e[81] = u, e[82] = ft, e[83] = Se, e[84] = t, e[85] = Ie, e[86] = a, e[87] = _e, e[88] = ee, e[89] = i.dateFormat, e[90] = i.enabled, e[91] = ne, e[92] = c, e[93] = h, e[94] = U, e[95] = k, e[96] = K, e[97] = z, e[98] = S, e[99] = I, e[100] = ht, e[101] = x, e[102] = Ee, e[103] = T, e[104] = ye) : ye = e[104];
414
+ let ve;
415
+ e[105] !== m?.footnote || e[106] !== m?.source || e[107] !== V || e[108] !== oe || e[109] !== a?.footnote || e[110] !== a?.source || e[111] !== h ? (ve = oe || V ? /* @__PURE__ */ o.jsx(uo, { styles: {
416
+ footnote: a?.footnote,
417
+ source: a?.source
418
+ }, classNames: {
411
419
  footnote: m?.footnote,
412
420
  source: m?.source
413
- }, classNames: {
414
- footnote: l?.footnote,
415
- source: l?.source
416
- }, sources: Z, footNote: z, width: f }) : null, e[104] = l?.footnote, e[105] = l?.source, e[106] = z, e[107] = Z, e[108] = m?.footnote, e[109] = m?.source, e[110] = f, e[111] = fe) : fe = e[111];
417
- let lt;
418
- return e[112] !== ae || e[113] !== _ || e[114] !== E || e[115] !== u || e[116] !== p || e[117] !== h || e[118] !== ve || e[119] !== v || e[120] !== Dt || e[121] !== kt || e[122] !== pe || e[123] !== he || e[124] !== ue || e[125] !== fe || e[126] !== g || e[127] !== f ? (lt = /* @__PURE__ */ o.jsxs(fo, { className: Dt, style: kt, id: E, ref: wt, "aria-label": ae, backgroundColor: _, theme: g, language: p, minHeight: h, width: f, height: u, relativeHeight: v, padding: ve, children: [
419
- pe,
420
- he,
421
- ue,
422
- fe
423
- ] }), e[112] = ae, e[113] = _, e[114] = E, e[115] = u, e[116] = p, e[117] = h, e[118] = ve, e[119] = v, e[120] = Dt, e[121] = kt, e[122] = pe, e[123] = he, e[124] = ue, e[125] = fe, e[126] = g, e[127] = f, e[128] = lt) : lt = e[128], lt;
421
+ }, sources: oe, footNote: V, width: h }) : null, e[105] = m?.footnote, e[106] = m?.source, e[107] = V, e[108] = oe, e[109] = a?.footnote, e[110] = a?.source, e[111] = h, e[112] = ve) : ve = e[112];
422
+ let ct;
423
+ return e[113] !== q || e[114] !== Be || e[115] !== M || e[116] !== p || e[117] !== r || e[118] !== n || e[119] !== De || e[120] !== v || e[121] !== Dt || e[122] !== kt || e[123] !== fe || e[124] !== ge || e[125] !== ye || e[126] !== ve || e[127] !== b || e[128] !== h ? (ct = /* @__PURE__ */ o.jsxs(go, { className: Dt, style: kt, id: M, ref: wt, "aria-label": q, backgroundColor: Be, theme: b, language: r, minHeight: n, width: h, height: p, relativeHeight: v, padding: De, children: [
424
+ fe,
425
+ ge,
426
+ ye,
427
+ ve
428
+ ] }), e[113] = q, e[114] = Be, e[115] = M, e[116] = p, e[117] = r, e[118] = n, e[119] = De, e[120] = v, e[121] = Dt, e[122] = kt, e[123] = fe, e[124] = ge, e[125] = ye, e[126] = ve, e[127] = b, e[128] = h, e[129] = ct) : ct = e[129], ct;
424
429
  }
425
- function yo(n) {
426
- return n.y;
430
+ function vo(s) {
431
+ return s.y;
427
432
  }
428
- function vo(n) {
429
- return n.x;
433
+ function xo(s) {
434
+ return s.x;
430
435
  }
431
- function xo(n) {
432
- return n.properties?.NAME !== "Antarctica";
436
+ function bo(s) {
437
+ return s.properties?.NAME !== "Antarctica";
433
438
  }
434
- function bo(n) {
435
- return n !== void 0;
439
+ function Do(s) {
440
+ return s !== void 0;
436
441
  }
437
- function Do(n) {
438
- return n !== void 0;
442
+ function ko(s) {
443
+ return s !== void 0;
439
444
  }
440
- function ko(n) {
441
- return n.data;
445
+ function Co(s) {
446
+ return s.data;
442
447
  }
443
- function Co(n) {
444
- return n !== void 0;
448
+ function jo(s) {
449
+ return s !== void 0;
445
450
  }
446
- function jo(n) {
447
- return n.data;
451
+ function wo(s) {
452
+ return s.data;
448
453
  }
449
- function wo(n, e) {
450
- return n - e;
454
+ function No(s, e) {
455
+ return s - e;
451
456
  }
452
- function So(n) {
453
- return n.date;
457
+ function So(s) {
458
+ return s.date;
454
459
  }
455
460
  export {
456
- Zo as BiVariateChoroplethMap
461
+ er as BiVariateChoroplethMap
457
462
  };
458
463
  //# sourceMappingURL=BiVariateChoroplethMap.js.map