@undp/data-viz 1.5.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (672) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.cjs.map +1 -1
  3. package/dist/AreaChart.d.ts +1 -0
  4. package/dist/AreaChart.js +420 -520
  5. package/dist/AreaChart.js.map +1 -1
  6. package/dist/Axis-CRyfcLjc.js +32 -0
  7. package/dist/Axis-CRyfcLjc.js.map +1 -0
  8. package/dist/Axis-DxRV2yMi.cjs +2 -0
  9. package/dist/Axis-DxRV2yMi.cjs.map +1 -0
  10. package/dist/AxisTitle-jeI7am8o.js +29 -0
  11. package/dist/AxisTitle-jeI7am8o.js.map +1 -0
  12. package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
  13. package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
  14. package/dist/BarGraph.cjs +1 -1
  15. package/dist/BarGraph.cjs.map +1 -1
  16. package/dist/BarGraph.d.ts +1 -0
  17. package/dist/BarGraph.js +2188 -4045
  18. package/dist/BarGraph.js.map +1 -1
  19. package/dist/BasicStatCard.cjs +1 -1
  20. package/dist/BasicStatCard.cjs.map +1 -1
  21. package/dist/BasicStatCard.d.ts +1 -0
  22. package/dist/BasicStatCard.js +120 -186
  23. package/dist/BasicStatCard.js.map +1 -1
  24. package/dist/BeeSwarmChart.cjs +1 -1
  25. package/dist/BeeSwarmChart.cjs.map +1 -1
  26. package/dist/BeeSwarmChart.d.ts +5 -0
  27. package/dist/BeeSwarmChart.js +501 -1019
  28. package/dist/BeeSwarmChart.js.map +1 -1
  29. package/dist/BiVariateChoroplethMap.cjs +1 -1
  30. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  31. package/dist/BiVariateChoroplethMap.d.ts +3 -0
  32. package/dist/BiVariateChoroplethMap.js +458 -706
  33. package/dist/BiVariateChoroplethMap.js.map +1 -1
  34. package/dist/BulletChart.cjs +1 -1
  35. package/dist/BulletChart.cjs.map +1 -1
  36. package/dist/BulletChart.d.ts +1 -0
  37. package/dist/BulletChart.js +863 -1414
  38. package/dist/BulletChart.js.map +1 -1
  39. package/dist/ButterflyChart.cjs +1 -1
  40. package/dist/ButterflyChart.cjs.map +1 -1
  41. package/dist/ButterflyChart.d.ts +1 -0
  42. package/dist/ButterflyChart.js +474 -684
  43. package/dist/ButterflyChart.js.map +1 -1
  44. package/dist/ChoroplethMap.cjs +1 -1
  45. package/dist/ChoroplethMap.cjs.map +1 -1
  46. package/dist/ChoroplethMap.d.ts +3 -0
  47. package/dist/ChoroplethMap.js +469 -731
  48. package/dist/ChoroplethMap.js.map +1 -1
  49. package/dist/CirclePackingGraph.cjs +1 -1
  50. package/dist/CirclePackingGraph.d.ts +1 -0
  51. package/dist/CirclePackingGraph.js +5 -4
  52. package/dist/CirclePackingGraph.js.map +1 -1
  53. package/dist/ColorLegend.cjs +1 -1
  54. package/dist/ColorLegend.cjs.map +1 -1
  55. package/dist/ColorLegend.js +57 -44
  56. package/dist/ColorLegend.js.map +1 -1
  57. package/dist/ColorLegendWithMouseOver.cjs +1 -1
  58. package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
  59. package/dist/ColorLegendWithMouseOver.js +60 -65
  60. package/dist/ColorLegendWithMouseOver.js.map +1 -1
  61. package/dist/Colors.cjs.map +1 -1
  62. package/dist/Colors.js +44 -430
  63. package/dist/Colors.js.map +1 -1
  64. package/dist/CopyTextButton.cjs +4 -4
  65. package/dist/CopyTextButton.cjs.map +1 -1
  66. package/dist/CopyTextButton.js +537 -455
  67. package/dist/CopyTextButton.js.map +1 -1
  68. package/dist/CsvDownloadButton.cjs +7 -7
  69. package/dist/CsvDownloadButton.cjs.map +1 -1
  70. package/dist/CsvDownloadButton.js +442 -447
  71. package/dist/CsvDownloadButton.js.map +1 -1
  72. package/dist/DataCards.cjs +5 -5
  73. package/dist/DataCards.cjs.map +1 -1
  74. package/dist/DataCards.d.ts +1 -0
  75. package/dist/DataCards.js +488 -581
  76. package/dist/DataCards.js.map +1 -1
  77. package/dist/DataTable.cjs +1 -1
  78. package/dist/DataTable.cjs.map +1 -1
  79. package/dist/DataTable.d.ts +1 -0
  80. package/dist/DataTable.js +183 -326
  81. package/dist/DataTable.js.map +1 -1
  82. package/dist/DifferenceLineChart.cjs +1 -1
  83. package/dist/DifferenceLineChart.cjs.map +1 -1
  84. package/dist/DifferenceLineChart.d.ts +1 -0
  85. package/dist/DifferenceLineChart.js +729 -794
  86. package/dist/DifferenceLineChart.js.map +1 -1
  87. package/dist/DonutChart.cjs +1 -1
  88. package/dist/DonutChart.cjs.map +1 -1
  89. package/dist/DonutChart.d.ts +1 -4
  90. package/dist/DonutChart.js +260 -444
  91. package/dist/DonutChart.js.map +1 -1
  92. package/dist/DotDensityMap.cjs +1 -1
  93. package/dist/DotDensityMap.cjs.map +1 -1
  94. package/dist/DotDensityMap.d.ts +3 -0
  95. package/dist/DotDensityMap.js +388 -582
  96. package/dist/DotDensityMap.js.map +1 -1
  97. package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
  98. package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
  99. package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
  100. package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
  101. package/dist/DualAxisLineChart.cjs +1 -1
  102. package/dist/DualAxisLineChart.cjs.map +1 -1
  103. package/dist/DualAxisLineChart.d.ts +1 -0
  104. package/dist/DualAxisLineChart.js +617 -712
  105. package/dist/DualAxisLineChart.js.map +1 -1
  106. package/dist/DumbbellChart.cjs +1 -1
  107. package/dist/DumbbellChart.cjs.map +1 -1
  108. package/dist/DumbbellChart.d.ts +1 -0
  109. package/dist/DumbbellChart.js +789 -1499
  110. package/dist/DumbbellChart.js.map +1 -1
  111. package/dist/EmptyState-BZo1BbAn.js +15 -0
  112. package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
  113. package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
  114. package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
  115. package/dist/ExcelDownloadButton.cjs +1 -1
  116. package/dist/ExcelDownloadButton.cjs.map +1 -1
  117. package/dist/ExcelDownloadButton.js +20 -24
  118. package/dist/ExcelDownloadButton.js.map +1 -1
  119. package/dist/FootNote.cjs +1 -1
  120. package/dist/FootNote.cjs.map +1 -1
  121. package/dist/FootNote.js +26 -17
  122. package/dist/FootNote.js.map +1 -1
  123. package/dist/GeoHubCompareMaps.cjs +1 -1
  124. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  125. package/dist/GeoHubCompareMaps.d.ts +1 -0
  126. package/dist/GeoHubCompareMaps.js +264 -354
  127. package/dist/GeoHubCompareMaps.js.map +1 -1
  128. package/dist/GeoHubMap.cjs +1 -1
  129. package/dist/GeoHubMap.cjs.map +1 -1
  130. package/dist/GeoHubMap.d.ts +1 -0
  131. package/dist/GeoHubMap.js +214 -409
  132. package/dist/GeoHubMap.js.map +1 -1
  133. package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
  134. package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
  135. package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
  136. package/dist/GeoHubMapWithLayerSelection.js +192 -293
  137. package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
  138. package/dist/GraphContainer-CRqzdKu2.js +78 -0
  139. package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
  140. package/dist/GraphContainer-d8A46BK2.cjs +2 -0
  141. package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
  142. package/dist/GraphDescription.cjs +1 -1
  143. package/dist/GraphDescription.cjs.map +1 -1
  144. package/dist/GraphDescription.js +23 -17
  145. package/dist/GraphDescription.js.map +1 -1
  146. package/dist/GraphEl-BkyLYXG5.cjs +2 -0
  147. package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
  148. package/dist/{GraphEl-CqWzvOyr.js → GraphEl-DzRon4cb.js} +184 -202
  149. package/dist/GraphEl-DzRon4cb.js.map +1 -0
  150. package/dist/GraphFooter.cjs +1 -1
  151. package/dist/GraphFooter.cjs.map +1 -1
  152. package/dist/GraphFooter.js +28 -18
  153. package/dist/GraphFooter.js.map +1 -1
  154. package/dist/GraphHeader.cjs +1 -1
  155. package/dist/GraphHeader.cjs.map +1 -1
  156. package/dist/GraphHeader.d.ts +2 -1
  157. package/dist/GraphHeader.js +45 -59
  158. package/dist/GraphHeader.js.map +1 -1
  159. package/dist/GraphTitle.cjs +1 -1
  160. package/dist/GraphTitle.cjs.map +1 -1
  161. package/dist/GraphTitle.js +29 -24
  162. package/dist/GraphTitle.js.map +1 -1
  163. package/dist/GriddedGraphs.cjs +1 -1
  164. package/dist/GriddedGraphs.cjs.map +1 -1
  165. package/dist/GriddedGraphs.d.ts +2 -0
  166. package/dist/GriddedGraphs.js +216 -450
  167. package/dist/GriddedGraphs.js.map +1 -1
  168. package/dist/GriddedGraphsFromConfig.cjs +1 -1
  169. package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
  170. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  171. package/dist/GriddedGraphsFromConfig.js +22 -36
  172. package/dist/GriddedGraphsFromConfig.js.map +1 -1
  173. package/dist/HeatMap.cjs +1 -1
  174. package/dist/HeatMap.cjs.map +1 -1
  175. package/dist/HeatMap.d.ts +1 -0
  176. package/dist/HeatMap.js +278 -446
  177. package/dist/HeatMap.js.map +1 -1
  178. package/dist/Histogram.cjs +1 -1
  179. package/dist/Histogram.cjs.map +1 -1
  180. package/dist/Histogram.d.ts +1 -0
  181. package/dist/Histogram.js +154 -264
  182. package/dist/Histogram.js.map +1 -1
  183. package/dist/ImageDownloadButton.cjs +1 -1
  184. package/dist/ImageDownloadButton.cjs.map +1 -1
  185. package/dist/ImageDownloadButton.d.ts +2 -1
  186. package/dist/ImageDownloadButton.js +21 -25
  187. package/dist/ImageDownloadButton.js.map +1 -1
  188. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  189. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  190. package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
  191. package/dist/LineChartWithConfidenceInterval.js +674 -825
  192. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  193. package/dist/LinearColorLegend.cjs +1 -1
  194. package/dist/LinearColorLegend.cjs.map +1 -1
  195. package/dist/LinearColorLegend.js +49 -30
  196. package/dist/LinearColorLegend.js.map +1 -1
  197. package/dist/Modal-DGcuAHyK.js +1047 -0
  198. package/dist/Modal-DGcuAHyK.js.map +1 -0
  199. package/dist/Modal-JW_IExO3.cjs +46 -0
  200. package/dist/Modal-JW_IExO3.cjs.map +1 -0
  201. package/dist/MultiGraphDashboard.cjs +1 -1
  202. package/dist/MultiGraphDashboard.cjs.map +1 -1
  203. package/dist/MultiGraphDashboard.d.ts +2 -0
  204. package/dist/MultiGraphDashboard.js +122 -290
  205. package/dist/MultiGraphDashboard.js.map +1 -1
  206. package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
  207. package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
  208. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  209. package/dist/MultiGraphDashboardFromConfig.js +22 -31
  210. package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
  211. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  212. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  213. package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
  214. package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
  215. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  216. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
  217. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
  218. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
  219. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
  220. package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
  221. package/dist/MultiLineAltChart.cjs +1 -1
  222. package/dist/MultiLineAltChart.cjs.map +1 -1
  223. package/dist/MultiLineAltChart.d.ts +1 -0
  224. package/dist/MultiLineAltChart.js +581 -659
  225. package/dist/MultiLineAltChart.js.map +1 -1
  226. package/dist/MultiLineChart.cjs +1 -1
  227. package/dist/MultiLineChart.cjs.map +1 -1
  228. package/dist/MultiLineChart.d.ts +1 -0
  229. package/dist/MultiLineChart.js +617 -725
  230. package/dist/MultiLineChart.js.map +1 -1
  231. package/dist/ParetoChart.cjs +1 -1
  232. package/dist/ParetoChart.cjs.map +1 -1
  233. package/dist/ParetoChart.d.ts +1 -0
  234. package/dist/ParetoChart.js +531 -635
  235. package/dist/ParetoChart.js.map +1 -1
  236. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  237. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  238. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  239. package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
  240. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  241. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
  242. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
  243. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  244. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
  245. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
  246. package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
  247. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
  248. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  249. package/dist/PerformanceIntensiveScrollStory.js +93 -114
  250. package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
  251. package/dist/RadarChart.cjs +1 -1
  252. package/dist/RadarChart.cjs.map +1 -1
  253. package/dist/RadarChart.d.ts +1 -0
  254. package/dist/RadarChart.js +426 -575
  255. package/dist/RadarChart.js.map +1 -1
  256. package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
  257. package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
  258. package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
  259. package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
  260. package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
  261. package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
  262. package/dist/RegressionLine-DAcY2DjT.js +87 -0
  263. package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
  264. package/dist/SVGDownloadButton.cjs +1 -1
  265. package/dist/SVGDownloadButton.cjs.map +1 -1
  266. package/dist/SVGDownloadButton.js +21 -25
  267. package/dist/SVGDownloadButton.js.map +1 -1
  268. package/dist/SankeyChart.cjs +1 -1
  269. package/dist/SankeyChart.cjs.map +1 -1
  270. package/dist/SankeyChart.d.ts +1 -0
  271. package/dist/SankeyChart.js +665 -854
  272. package/dist/SankeyChart.js.map +1 -1
  273. package/dist/ScatterPlot.cjs +1 -1
  274. package/dist/ScatterPlot.cjs.map +1 -1
  275. package/dist/ScatterPlot.d.ts +1 -0
  276. package/dist/ScatterPlot.js +675 -815
  277. package/dist/ScatterPlot.js.map +1 -1
  278. package/dist/ScrollStory.cjs +1 -1
  279. package/dist/ScrollStory.cjs.map +1 -1
  280. package/dist/ScrollStory.d.ts +2 -0
  281. package/dist/ScrollStory.js +85 -97
  282. package/dist/ScrollStory.js.map +1 -1
  283. package/dist/SimpleLineChart.cjs +1 -1
  284. package/dist/SimpleLineChart.cjs.map +1 -1
  285. package/dist/SimpleLineChart.d.ts +1 -0
  286. package/dist/SimpleLineChart.js +504 -613
  287. package/dist/SimpleLineChart.js.map +1 -1
  288. package/dist/SingleGraphDashboard.cjs +1 -1
  289. package/dist/SingleGraphDashboard.cjs.map +1 -1
  290. package/dist/SingleGraphDashboard.d.ts +3 -1
  291. package/dist/SingleGraphDashboard.js +279 -507
  292. package/dist/SingleGraphDashboard.js.map +1 -1
  293. package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
  294. package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
  295. package/dist/SingleGraphDashboardFromConfig.d.ts +3 -1
  296. package/dist/SingleGraphDashboardFromConfig.js +25 -31
  297. package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
  298. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  299. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  300. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  301. package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
  302. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  303. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
  304. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
  305. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  306. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
  307. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
  308. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  309. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  310. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  311. package/dist/SingleGraphDashboardThreeDGraphs.js +356 -589
  312. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  313. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
  314. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
  315. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  316. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
  317. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
  318. package/dist/SlopeChart.cjs +1 -1
  319. package/dist/SlopeChart.cjs.map +1 -1
  320. package/dist/SlopeChart.d.ts +1 -0
  321. package/dist/SlopeChart.js +539 -573
  322. package/dist/SlopeChart.js.map +1 -1
  323. package/dist/Source-DYMJRrsq.cjs +2 -0
  324. package/dist/Source-DYMJRrsq.cjs.map +1 -0
  325. package/dist/Source-DwTHB8fn.js +78 -0
  326. package/dist/Source-DwTHB8fn.js.map +1 -0
  327. package/dist/Source.cjs +1 -1
  328. package/dist/Source.cjs.map +1 -1
  329. package/dist/Source.js +4 -38
  330. package/dist/Source.js.map +1 -1
  331. package/dist/SparkLine.cjs +1 -1
  332. package/dist/SparkLine.cjs.map +1 -1
  333. package/dist/SparkLine.d.ts +1 -0
  334. package/dist/SparkLine.js +286 -314
  335. package/dist/SparkLine.js.map +1 -1
  336. package/dist/Spinner-D7rnnwnA.js +47 -0
  337. package/dist/Spinner-D7rnnwnA.js.map +1 -0
  338. package/dist/Spinner-DRMBUsX7.cjs +2 -0
  339. package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
  340. package/dist/StatCardFromData.cjs +1 -1
  341. package/dist/StatCardFromData.cjs.map +1 -1
  342. package/dist/StatCardFromData.d.ts +1 -0
  343. package/dist/StatCardFromData.js +163 -243
  344. package/dist/StatCardFromData.js.map +1 -1
  345. package/dist/StripChart.cjs +1 -1
  346. package/dist/StripChart.cjs.map +1 -1
  347. package/dist/StripChart.d.ts +1 -0
  348. package/dist/StripChart.js +665 -983
  349. package/dist/StripChart.js.map +1 -1
  350. package/dist/ThreeDGlobe.cjs +1 -1
  351. package/dist/ThreeDGlobe.cjs.map +1 -1
  352. package/dist/ThreeDGlobe.d.ts +3 -0
  353. package/dist/ThreeDGlobe.js +355 -526
  354. package/dist/ThreeDGlobe.js.map +1 -1
  355. package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
  356. package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
  357. package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
  358. package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
  359. package/dist/Tooltip-4dJo4_AF.cjs +2 -0
  360. package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
  361. package/dist/Tooltip-CwWUegPB.js +43 -0
  362. package/dist/Tooltip-CwWUegPB.js.map +1 -0
  363. package/dist/TreeMapGraph.cjs +1 -1
  364. package/dist/TreeMapGraph.cjs.map +1 -1
  365. package/dist/TreeMapGraph.d.ts +1 -0
  366. package/dist/TreeMapGraph.js +479 -617
  367. package/dist/TreeMapGraph.js.map +1 -1
  368. package/dist/Types.d.ts +2 -0
  369. package/dist/Typography-DX7PlgQU.cjs +2 -0
  370. package/dist/Typography-DX7PlgQU.cjs.map +1 -0
  371. package/dist/Typography-PxtFcnJb.js +142 -0
  372. package/dist/Typography-PxtFcnJb.js.map +1 -0
  373. package/dist/UnitChart.cjs +1 -1
  374. package/dist/UnitChart.cjs.map +1 -1
  375. package/dist/UnitChart.d.ts +1 -0
  376. package/dist/UnitChart.js +160 -212
  377. package/dist/UnitChart.js.map +1 -1
  378. package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
  379. package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
  380. package/dist/XAxesLabels-DNO0KmjL.js +73 -0
  381. package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
  382. package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
  383. package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
  384. package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
  385. package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
  386. package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
  387. package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
  388. package/dist/YAxesLabels-Dnnng49-.js +70 -0
  389. package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
  390. package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
  391. package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
  392. package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
  393. package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
  394. package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
  395. package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
  396. package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
  397. package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
  398. package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
  399. package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
  400. package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
  401. package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
  402. package/dist/customArea-BUhPiPT6.js +163 -0
  403. package/dist/{customArea-B-dWU0zZ.js.map → customArea-BUhPiPT6.js.map} +1 -1
  404. package/dist/customArea-CMF5g-C3.cjs +2 -0
  405. package/dist/{customArea-CK768gCn.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
  406. package/dist/delaunay-C1uAf38t.js.map +1 -1
  407. package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
  408. package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
  409. package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
  410. package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
  411. package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
  412. package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
  413. package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
  414. package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
  415. package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
  416. package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
  417. package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
  418. package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
  419. package/dist/fetchAndParseData.cjs +1 -1
  420. package/dist/fetchAndParseData.js +1 -1
  421. package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
  422. package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
  423. package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
  424. package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
  425. package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
  426. package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
  427. package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
  428. package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
  429. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
  430. package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
  431. package/dist/getGraphList-BpEWn1Tk.js +227 -0
  432. package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
  433. package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
  434. package/dist/getJenks-BbngDoBQ.js.map +1 -1
  435. package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
  436. package/dist/getSchema.cjs.map +1 -1
  437. package/dist/getSchema.js +445 -231
  438. package/dist/getSchema.js.map +1 -1
  439. package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
  440. package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
  441. package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
  442. package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
  443. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
  444. package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
  445. package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
  446. package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
  447. package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
  448. package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
  449. package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
  450. package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
  451. package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
  452. package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
  453. package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
  454. package/dist/index-B_sAFsEV.cjs +2 -0
  455. package/dist/{index-BYzIB5V6.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
  456. package/dist/index-BqfRwk1n.js +146 -0
  457. package/dist/index-BqfRwk1n.js.map +1 -0
  458. package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
  459. package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
  460. package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
  461. package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
  462. package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-Curnpaqc.js} +937 -842
  463. package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
  464. package/dist/index-Cno4Q0YE.cjs +2 -0
  465. package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
  466. package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
  467. package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
  468. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs +2 -0
  469. package/dist/index-Cw8sCyo_-BrHiWiRF.cjs.map +1 -0
  470. package/dist/index-CyZ1lmi_.cjs +2 -0
  471. package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
  472. package/dist/index-D491FEn1.js +184 -0
  473. package/dist/index-D491FEn1.js.map +1 -0
  474. package/dist/index-DG2bgAva.cjs +10 -0
  475. package/dist/index-DG2bgAva.cjs.map +1 -0
  476. package/dist/index-DRXx7m-C.cjs +2 -0
  477. package/dist/index-DRXx7m-C.cjs.map +1 -0
  478. package/dist/index-DoY3Ga3W.cjs +2 -0
  479. package/dist/index-DoY3Ga3W.cjs.map +1 -0
  480. package/dist/index-DxXnJ8Ti.cjs +2 -0
  481. package/dist/index-DxXnJ8Ti.cjs.map +1 -0
  482. package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
  483. package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
  484. package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
  485. package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
  486. package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
  487. package/dist/index-GEsywGxz.js.map +1 -0
  488. package/dist/index-SKgJALZg.js +99 -0
  489. package/dist/{index-DKCxu1Gh.js.map → index-SKgJALZg.js.map} +1 -1
  490. package/dist/index-leTnKT2q.js +329 -0
  491. package/dist/index-leTnKT2q.js.map +1 -0
  492. package/dist/index.cjs +1 -1
  493. package/dist/index.d.ts +19 -8
  494. package/dist/index.js +13 -13
  495. package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
  496. package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
  497. package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
  498. package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
  499. package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
  500. package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
  501. package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
  502. package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
  503. package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
  504. package/dist/ordinal-CrsysVE-.cjs.map +1 -0
  505. package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
  506. package/dist/ordinal-P77xw8aL.js.map +1 -0
  507. package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
  508. package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
  509. package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
  510. package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
  511. package/dist/{proxy-CkpFesk1.js → proxy-BxkFHwUw.js} +144 -134
  512. package/dist/proxy-BxkFHwUw.js.map +1 -0
  513. package/dist/proxy-BxvUI_9l.cjs +2 -0
  514. package/dist/proxy-BxvUI_9l.cjs.map +1 -0
  515. package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
  516. package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
  517. package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
  518. package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
  519. package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
  520. package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
  521. package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
  522. package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
  523. package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
  524. package/dist/string2HTML-CPGr_I5E.cjs +3 -0
  525. package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
  526. package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
  527. package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
  528. package/dist/style.css +1 -1
  529. package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
  530. package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
  531. package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
  532. package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
  533. package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
  534. package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
  535. package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
  536. package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
  537. package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
  538. package/dist/transformData.cjs +1 -1
  539. package/dist/transformData.js +3 -3
  540. package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
  541. package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
  542. package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
  543. package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
  544. package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
  545. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
  546. package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
  547. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
  548. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
  549. package/dist/uniqBy-BHy4I8PK.js.map +1 -1
  550. package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
  551. package/dist/{use-in-view-yS6jzJAp.js → use-in-view-Cxa7y1TH.js} +2 -2
  552. package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
  553. package/dist/use-in-view-QcfiW0w3.cjs +2 -0
  554. package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
  555. package/dist/utils.cjs +1 -1
  556. package/dist/utils.js +8 -8
  557. package/dist/validateSchema.cjs.map +1 -1
  558. package/dist/validateSchema.js +33 -29
  559. package/dist/validateSchema.js.map +1 -1
  560. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
  561. package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
  562. package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
  563. package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
  564. package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
  565. package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
  566. package/dist/zoom-DPw8bba-.cjs +2 -0
  567. package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
  568. package/package.json +9 -8
  569. package/dist/Axis-DE7dSn1_.cjs +0 -2
  570. package/dist/Axis-DE7dSn1_.cjs.map +0 -1
  571. package/dist/Axis-Ddg-seDi.js +0 -43
  572. package/dist/Axis-Ddg-seDi.js.map +0 -1
  573. package/dist/AxisTitle-BmHLMRJZ.js +0 -20
  574. package/dist/AxisTitle-BmHLMRJZ.js.map +0 -1
  575. package/dist/AxisTitle-CK9YeovX.cjs +0 -2
  576. package/dist/AxisTitle-CK9YeovX.cjs.map +0 -1
  577. package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
  578. package/dist/DropdownSelect-DBDM64B5.cjs +0 -29
  579. package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
  580. package/dist/EmptyState-DdTp-Mdn.js +0 -22
  581. package/dist/EmptyState-d8_8SxeW.cjs +0 -2
  582. package/dist/GraphEl-C6yjl1VM.cjs +0 -2
  583. package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
  584. package/dist/GraphEl-CqWzvOyr.js.map +0 -1
  585. package/dist/Modal-DVVwpKhP.js +0 -1019
  586. package/dist/Modal-DVVwpKhP.js.map +0 -1
  587. package/dist/Modal-tXZlLE5s.cjs +0 -46
  588. package/dist/Modal-tXZlLE5s.cjs.map +0 -1
  589. package/dist/ReferenceLine-CFVBBN__.cjs +0 -2
  590. package/dist/ReferenceLine-CFVBBN__.cjs.map +0 -1
  591. package/dist/ReferenceLine-CfAW3vKJ.js +0 -128
  592. package/dist/ReferenceLine-CfAW3vKJ.js.map +0 -1
  593. package/dist/RegressionLine-C2--oMQq.js +0 -49
  594. package/dist/RegressionLine-C2--oMQq.js.map +0 -1
  595. package/dist/RegressionLine-Dj0GSiAp.cjs +0 -2
  596. package/dist/RegressionLine-Dj0GSiAp.cjs.map +0 -1
  597. package/dist/Spinner-C85UF28E.js +0 -30
  598. package/dist/Spinner-C85UF28E.js.map +0 -1
  599. package/dist/Spinner-DA6Z5E4n.cjs +0 -2
  600. package/dist/Spinner-DA6Z5E4n.cjs.map +0 -1
  601. package/dist/Tooltip-CVCGWyzw.js +0 -46
  602. package/dist/Tooltip-CVCGWyzw.js.map +0 -1
  603. package/dist/Tooltip-De16GWhY.cjs +0 -2
  604. package/dist/Tooltip-De16GWhY.cjs.map +0 -1
  605. package/dist/Typography-Ctgfl1J5.js +0 -140
  606. package/dist/Typography-Ctgfl1J5.js.map +0 -1
  607. package/dist/Typography-k-kOjICQ.cjs +0 -2
  608. package/dist/Typography-k-kOjICQ.cjs.map +0 -1
  609. package/dist/XAxesLabels-Drf7M3YK.cjs +0 -2
  610. package/dist/XAxesLabels-Drf7M3YK.cjs.map +0 -1
  611. package/dist/XAxesLabels-loO78vUO.js +0 -57
  612. package/dist/XAxesLabels-loO78vUO.js.map +0 -1
  613. package/dist/XTicksAndGridLines-Bn9u5gOM.js +0 -56
  614. package/dist/XTicksAndGridLines-Bn9u5gOM.js.map +0 -1
  615. package/dist/XTicksAndGridLines-CCzXIV8d.cjs +0 -2
  616. package/dist/XTicksAndGridLines-CCzXIV8d.cjs.map +0 -1
  617. package/dist/YAxesLabels-DECkMgq8.js +0 -52
  618. package/dist/YAxesLabels-DECkMgq8.js.map +0 -1
  619. package/dist/YAxesLabels-yRFFdx1s.cjs +0 -2
  620. package/dist/YAxesLabels-yRFFdx1s.cjs.map +0 -1
  621. package/dist/YTicksAndGridLines-B6ah7CRf.js +0 -56
  622. package/dist/YTicksAndGridLines-B6ah7CRf.js.map +0 -1
  623. package/dist/YTicksAndGridLines-DBDuz6vb.cjs +0 -2
  624. package/dist/YTicksAndGridLines-DBDuz6vb.cjs.map +0 -1
  625. package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
  626. package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
  627. package/dist/checkIfMultiple-ChTJk2Tk.js +0 -912
  628. package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
  629. package/dist/customArea-B-dWU0zZ.js +0 -175
  630. package/dist/customArea-CK768gCn.cjs +0 -2
  631. package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
  632. package/dist/getGraphList-DuColTJM.js +0 -265
  633. package/dist/getSliderMarks-9cNoRkDx.js +0 -1023
  634. package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
  635. package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
  636. package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
  637. package/dist/index-37q0ULNQ.js +0 -430
  638. package/dist/index-37q0ULNQ.js.map +0 -1
  639. package/dist/index-9tDEUqOZ.js.map +0 -1
  640. package/dist/index-BW8iNx7E.cjs +0 -10
  641. package/dist/index-BW8iNx7E.cjs.map +0 -1
  642. package/dist/index-BW_-wD2k.cjs +0 -2
  643. package/dist/index-BW_-wD2k.cjs.map +0 -1
  644. package/dist/index-BYzIB5V6.cjs +0 -2
  645. package/dist/index-BmCqpO1B.js +0 -342
  646. package/dist/index-BmCqpO1B.js.map +0 -1
  647. package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
  648. package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
  649. package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
  650. package/dist/index-CNvov0eg.js +0 -122
  651. package/dist/index-CNvov0eg.js.map +0 -1
  652. package/dist/index-CQ3e6Ewi.cjs +0 -2
  653. package/dist/index-CVlCtJbC.cjs +0 -2
  654. package/dist/index-CVlCtJbC.cjs.map +0 -1
  655. package/dist/index-CoZbeNM9.cjs +0 -2
  656. package/dist/index-CoZbeNM9.cjs.map +0 -1
  657. package/dist/index-D72cOtq7.cjs +0 -2
  658. package/dist/index-DKCxu1Gh.js +0 -77
  659. package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
  660. package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
  661. package/dist/ordinal-BOeNbyae.cjs.map +0 -1
  662. package/dist/ordinal-w9Lu4Stb.js.map +0 -1
  663. package/dist/proxy-BHRoeZgd.cjs +0 -2
  664. package/dist/proxy-BHRoeZgd.cjs.map +0 -1
  665. package/dist/proxy-CkpFesk1.js.map +0 -1
  666. package/dist/string2HTML-z7CwHXcx.cjs +0 -3
  667. package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
  668. package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
  669. package/dist/use-in-view-sQJZ_xDO.cjs +0 -2
  670. package/dist/use-in-view-sQJZ_xDO.cjs.map +0 -1
  671. package/dist/use-in-view-yS6jzJAp.js.map +0 -1
  672. package/dist/zoom-BiMNsz72.cjs +0 -2
@@ -1,748 +1,486 @@
1
- import { j as e, m as je } from "./index-CHPV5EwG-BPSP-7Jg.js";
2
- import { useState as b, useRef as ae, useEffect as pe } from "react";
3
- import { g as we, x as $e } from "./getSliderMarks-9cNoRkDx.js";
4
- import { y as Ne } from "./Spinner-C85UF28E.js";
5
- import { p as Ce, f as Me } from "./parse-DlCRUFh_.js";
6
- import { i as De } from "./index-Bwrro8-q.js";
7
- import { z as Se, t as Oe, g as Ee, a as Pe, b as Ie, c as Le, d as ze } from "./zoom-QipiAl5W.js";
8
- import { X as We } from "./Modal-DVVwpKhP.js";
9
- import { u as ke } from "./Typography-Ctgfl1J5.js";
10
- import { t as Te } from "./index-9tDEUqOZ.js";
11
- import { n as Be } from "./numberFormattingFunction-14YCbkN2.js";
12
- import { T as Ae } from "./Tooltip-CVCGWyzw.js";
13
- import { s as Ve } from "./string2HTML-oFCROsus.js";
14
- import { c as Fe } from "./checkIfNullOrUndefined-DmfiKkNw.js";
15
- import { X as He, P as qe, f as Xe } from "./index-BmCqpO1B.js";
16
- import { o as _e } from "./ordinal-w9Lu4Stb.js";
17
- import { t as Ue } from "./threshold-DFfqcDMa.js";
18
- import { s as be } from "./select-DKy99ogv.js";
19
- import { u as Ge } from "./use-in-view-yS6jzJAp.js";
20
- import { m as de } from "./proxy-CkpFesk1.js";
21
- import { A as Re } from "./index-CNvov0eg.js";
22
- import { GraphFooter as Ye } from "./GraphFooter.js";
23
- import { GraphHeader as Je } from "./GraphHeader.js";
24
- import { Colors as me } from "./Colors.js";
25
- import { f as Ke } from "./fetchAndParseData-sapWbnYk.js";
26
- import { g as Ze } from "./getUniqValue-DiCh_MOD.js";
27
- import { g as Qe } from "./getJenks-BbngDoBQ.js";
28
- import { u as et } from "./uniqBy-BHy4I8PK.js";
29
- import { s as tt } from "./sort-DfK1b0F5.js";
30
- import { c as rt } from "./init-BhZylTFx.js";
31
- function at(he) {
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 Mt } from "./Tooltip-CwWUegPB.js";
13
+ import { s as St } 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 Ue } 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-BKHCm3zE.js";
27
+ import { g as Vt } from "./getJenks-BbngDoBQ.js";
28
+ import { u as Ht } from "./uniqBy-BHy4I8PK.js";
29
+ import { a as qt, G as Gt } from "./GraphContainer-CRqzdKu2.js";
30
+ import { s as Ut } from "./sort-BIvMlUH1.js";
31
+ import { a as Xt } from "./init-BJFW6EwE.js";
32
+ function Rt(u) {
32
33
  const {
33
- data: k,
34
- colorDomain: g,
35
- colors: c,
36
- mapData: x,
37
- colorLegendTitle: V,
38
- categorical: E,
39
- height: h,
40
- width: s,
41
- scale: oe,
42
- centerPoint: T,
43
- tooltip: ie,
44
- mapBorderWidth: P,
45
- mapBorderColor: F,
46
- mapNoDataColor: R,
47
- onSeriesMouseOver: Y,
48
- showColorScale: ge,
49
- zoomScaleExtend: ue,
50
- zoomTranslateExtend: I,
51
- highlightedIds: H,
52
- onSeriesMouseClick: f,
53
- mapProperty: q,
54
- resetSelectionOnDoubleClick: fe,
55
- detailsOnClick: C,
56
- styles: ye,
57
- classNames: xe,
58
- mapProjection: X,
59
- zoomInteraction: B,
60
- animate: j,
61
- dimmedOpacity: _,
62
- customLayers: ne
63
- } = he, [w, M] = b(void 0), J = ae(null), [K, v] = b(!(s < 680)), [D, Z] = b(void 0), [U, Q] = b(void 0), [S, $] = b(void 0), [se, ee] = b(void 0), L = ae(null), te = Ge(L, {
64
- once: j.once,
65
- amount: j.amount
66
- }), le = ae(null), y = E ? _e().domain(g).range(c) : Ue().domain(g).range(c);
67
- pe(() => {
68
- const r = be(le.current), l = be(L.current), m = (o) => {
69
- if (B === "noZoom") return !1;
70
- if (B === "button") return !o.type.includes("wheel");
71
- const n = o.type === "wheel", t = o.type.startsWith("touch"), a = o.type === "mousedown" || o.type === "mousemove";
72
- return t ? !0 : n ? B === "scroll" ? !0 : o.ctrlKey : a && !o.button && !o.ctrlKey;
73
- }, i = Se().scaleExtent(ue).translateExtent(
74
- I || [
75
- [-20, -20],
76
- [s + 20, h + 20]
77
- ]
78
- ).filter(m).on("zoom", ({ transform: o }) => {
79
- r.attr("transform", o);
34
+ data: e,
35
+ colorDomain: c,
36
+ colors: d,
37
+ mapData: $,
38
+ colorLegendTitle: E,
39
+ categorical: F,
40
+ height: j,
41
+ width: g,
42
+ scale: p,
43
+ centerPoint: V,
44
+ tooltip: re,
45
+ mapBorderWidth: H,
46
+ mapBorderColor: X,
47
+ mapNoDataColor: ae,
48
+ onSeriesMouseOver: ie,
49
+ showColorScale: ve,
50
+ zoomScaleExtend: Ee,
51
+ zoomTranslateExtend: Oe,
52
+ highlightedIds: R,
53
+ onSeriesMouseClick: ne,
54
+ mapProperty: y,
55
+ resetSelectionOnDoubleClick: be,
56
+ detailsOnClick: O,
57
+ styles: Pe,
58
+ classNames: ke,
59
+ mapProjection: z,
60
+ zoomInteraction: _,
61
+ animate: D,
62
+ dimmedOpacity: W,
63
+ customLayers: se,
64
+ collapseColorScaleByDefault: je
65
+ } = u, [P, B] = S(void 0), le = Se(null), [Ie, we] = S(je === void 0 ? !(g < 680) : !je), [q, Y] = S(void 0), [J, K] = S(void 0), [f, h] = S(void 0), [ce, de] = S(void 0), G = Se(null), me = _t(G, {
66
+ once: D.once,
67
+ amount: D.amount
68
+ }), Z = Se(null), Le = F ? Lt().domain(c).range(d) : zt().domain(c).range(d);
69
+ Re(() => {
70
+ const o = rt(Z.current), s = rt(G.current), x = (r) => {
71
+ if (_ === "noZoom") return !1;
72
+ if (_ === "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 ? _ === "scroll" ? !0 : r.ctrlKey : i && !r.button && !r.ctrlKey;
75
+ }, a = xt().scaleExtent(Ee).translateExtent(Oe || [[-20, -20], [g + 20, j + 20]]).filter(x).on("zoom", ({
76
+ transform: r
77
+ }) => {
78
+ o.attr("transform", r);
80
79
  });
81
- l.call(i), J.current = i;
82
- }, [h, s, B]);
83
- const u = Oe(x), z = Te(x), re = u[2] - u[0], ce = u[3] - u[1], A = s * 190 / 960 * 360 / re, ve = h * 190 / 678 * 180 / ce, d = oe * Math.min(A, ve), N = X === "mercator" ? Ee().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "equalEarth" ? Pe().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "naturalEarth" ? Ie().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : X === "orthographic" ? Le().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d) : ze().rotate([0, 0]).center(T || z.geometry.coordinates).translate([s / 2, h / 2]).scale(d), G = (r) => {
84
- if (!L.current || !J.current) return;
85
- be(L.current).call(J.current.scaleBy, r === "in" ? 1.2 : 1 / 1.2);
80
+ s.call(a), le.current = a;
81
+ }, [j, g, _]);
82
+ const U = vt($), w = Nt($), pe = U[2] - U[0], T = U[3] - U[1], $e = g * 190 / 960 * 360 / pe, Ce = j * 190 / 678 * 180 / T, A = p * Math.min($e, Ce), I = z === "mercator" ? bt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "equalEarth" ? kt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "naturalEarth" ? jt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : z === "orthographic" ? wt().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A) : $t().rotate([0, 0]).center(V || w.geometry.coordinates).translate([g / 2, j / 2]).scale(A), he = (o) => {
83
+ if (!G.current || !le.current) return;
84
+ rt(G.current).call(le.current.scaleBy, o === "in" ? 1.2 : 1 / 1.2);
86
85
  };
87
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
88
- /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
89
- /* @__PURE__ */ e.jsx(
90
- de.svg,
91
- {
92
- width: `${s}px`,
93
- height: `${h}px`,
94
- viewBox: `0 0 ${s} ${h}`,
95
- ref: L,
96
- direction: "ltr",
97
- children: /* @__PURE__ */ e.jsxs("g", { ref: le, children: [
98
- ne.filter((r) => r.position === "before").map((r) => r.layer),
86
+ return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
87
+ /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [
88
+ /* @__PURE__ */ t.jsx(Ue.svg, { width: `${g}px`, height: `${j}px`, viewBox: `0 0 ${g} ${j}`, ref: G, direction: "ltr", children: /* @__PURE__ */ t.jsxs("g", { ref: Z, children: [
89
+ se.filter((o) => o.position === "before").map((o) => o.layer),
90
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
91
+ $.features.map((o, s) => e.findIndex((a) => a.id === o.properties[y]) !== -1 ? null : /* @__PURE__ */ t.jsx("g", { opacity: P ? W : R.length !== 0 ? R.indexOf(o.properties[y]) !== -1 ? 1 : W : 1, children: o.geometry.type === "MultiPolygon" ? (
92
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
93
+ o.geometry.coordinates.map((a, r) => {
94
+ let n = "";
95
+ return a.forEach((l) => {
96
+ let i = " M";
97
+ l.forEach((m, M) => {
98
+ const C = I([m[0], m[1]]);
99
+ M !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
100
+ }), n += i;
101
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
102
+ stroke: X,
103
+ strokeWidth: H,
104
+ fill: ae
105
+ } }, r);
106
+ })
107
+ ) : (
108
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
109
+ o.geometry.coordinates.map((a, r) => {
110
+ let n = "M";
111
+ return a.forEach((l, i) => {
112
+ const m = I([l[0], l[1]]);
113
+ i !== a.length - 1 ? n = `${n}${m[0]} ${m[1]}L` : n = `${n}${m[0]} ${m[1]}`;
114
+ }), /* @__PURE__ */ t.jsx("path", { d: n, style: {
115
+ stroke: X,
116
+ strokeWidth: H,
117
+ fill: ae
118
+ } }, r);
119
+ })
120
+ ) }, s)),
121
+ /* @__PURE__ */ t.jsx(Wt, { children: e.map((o) => {
122
+ const s = $.features.findIndex(
99
123
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
100
- x.features.map((r, l) => k.findIndex((i) => i.id === r.properties[q]) !== -1 ? null : /* @__PURE__ */ e.jsx(
101
- "g",
102
- {
103
- opacity: w ? _ : H.length !== 0 ? H.indexOf(r.properties[q]) !== -1 ? 1 : _ : 1,
104
- children: r.geometry.type === "MultiPolygon" ? (
105
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
- r.geometry.coordinates.map((i, o) => {
107
- let n = "";
108
- return i.forEach((t) => {
109
- let a = " M";
110
- t.forEach((p, W) => {
111
- const O = N([p[0], p[1]]);
112
- W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
113
- }), n += a;
114
- }), /* @__PURE__ */ e.jsx(
115
- "path",
116
- {
117
- d: n,
118
- style: {
119
- stroke: F,
120
- strokeWidth: P,
121
- fill: R
122
- }
123
- },
124
- o
125
- );
126
- })
127
- ) : (
128
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
- r.geometry.coordinates.map((i, o) => {
130
- let n = "M";
131
- return i.forEach((t, a) => {
132
- const p = N([t[0], t[1]]);
133
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
134
- }), /* @__PURE__ */ e.jsx(
135
- "path",
136
- {
137
- d: n,
138
- style: {
139
- stroke: F,
140
- strokeWidth: P,
141
- fill: R
142
- }
143
- },
144
- o
145
- );
146
- })
147
- )
148
- },
149
- l
150
- )),
151
- /* @__PURE__ */ e.jsx(Re, { children: k.map((r) => {
152
- const l = x.features.findIndex(
153
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
- (i) => r.id === i.properties[q]
155
- ), m = Fe(r.x) ? R : (
156
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
157
- y(r.x)
158
- );
159
- return /* @__PURE__ */ e.jsx(
160
- de.g,
161
- {
162
- variants: {
163
- initial: { opacity: 0 },
164
- whileInView: {
165
- opacity: w ? w === m ? 1 : _ : H.length !== 0 ? H.indexOf(r.id) !== -1 ? 1 : _ : 1,
166
- transition: { duration: j.duration }
167
- }
168
- },
169
- initial: "initial",
170
- animate: te ? "whileInView" : "initial",
171
- exit: { opacity: 0, transition: { duration: j.duration } },
172
- onMouseEnter: (i) => {
173
- Q(r), ee(i.clientY), $(i.clientX), Y?.(r);
174
- },
175
- onMouseMove: (i) => {
176
- Q(r), ee(i.clientY), $(i.clientX);
177
- },
178
- onMouseLeave: () => {
179
- Q(void 0), $(void 0), ee(void 0), Y?.(void 0);
180
- },
181
- onClick: () => {
182
- (f || C) && (De(D, r) && fe ? (Z(void 0), f?.(void 0)) : (Z(r), f?.(r)));
183
- },
184
- children: l === -1 ? null : x.features[l].geometry.type === "MultiPolygon" ? x.features[l].geometry.coordinates.map(
185
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
- (i, o) => {
187
- let n = "";
188
- return i.forEach((t) => {
189
- let a = " M";
190
- t.forEach((p, W) => {
191
- const O = N([p[0], p[1]]);
192
- W !== t.length - 1 ? a = `${a}${O[0]} ${O[1]}L` : a = `${a}${O[0]} ${O[1]}`;
193
- }), n += a;
194
- }), /* @__PURE__ */ e.jsx(
195
- de.path,
196
- {
197
- d: n,
198
- variants: {
199
- initial: { fill: m, opacity: 0 },
200
- whileInView: {
201
- fill: m,
202
- opacity: 1,
203
- transition: { duration: j.duration }
204
- }
205
- },
206
- initial: "initial",
207
- animate: te ? "whileInView" : "initial",
208
- exit: { opacity: 0, transition: { duration: j.duration } },
209
- style: {
210
- stroke: F,
211
- strokeWidth: P
212
- }
213
- },
214
- `${r.id}-${o}`
215
- );
216
- }
217
- ) : x.features[l].geometry.coordinates.map(
218
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
219
- (i, o) => {
220
- let n = "M";
221
- return i.forEach((t, a) => {
222
- const p = N([t[0], t[1]]);
223
- a !== i.length - 1 ? n = `${n}${p[0]} ${p[1]}L` : n = `${n}${p[0]} ${p[1]}`;
224
- }), /* @__PURE__ */ e.jsx(
225
- de.path,
226
- {
227
- d: n,
228
- variants: {
229
- initial: { fill: m, opacity: 0 },
230
- whileInView: {
231
- fill: m,
232
- opacity: 1,
233
- transition: { duration: j.duration }
234
- }
235
- },
236
- initial: "initial",
237
- animate: te ? "whileInView" : "initial",
238
- exit: { opacity: 0, transition: { duration: j.duration } },
239
- style: {
240
- stroke: F,
241
- strokeWidth: P
242
- }
243
- },
244
- `${r.id}-${o}`
245
- );
246
- }
247
- )
248
- },
249
- r.id
250
- );
251
- }) }),
252
- U ? x.features.filter(
253
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
254
- (r) => r.properties[q] === U.id
255
- ).map((r, l) => /* @__PURE__ */ e.jsx("g", { children: r.geometry.type === "MultiPolygon" ? (
256
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
257
- r.geometry.coordinates.map((m, i) => {
258
- let o = "";
259
- return m.forEach((n) => {
260
- let t = " M";
261
- n.forEach((a, p) => {
262
- const W = N([a[0], a[1]]);
263
- p !== n.length - 1 ? t = `${t}${W[0]} ${W[1]}L` : t = `${t}${W[0]} ${W[1]}`;
264
- }), o += t;
265
- }), /* @__PURE__ */ e.jsx(
266
- "path",
267
- {
268
- d: o,
269
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
270
- style: {
271
- fill: "none",
272
- fillOpacity: 0,
273
- strokeWidth: "0.5"
274
- }
275
- },
276
- i
277
- );
278
- })
279
- ) : (
280
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
281
- r.geometry.coordinates.map((m, i) => {
282
- let o = "M";
283
- return m.forEach((n, t) => {
284
- const a = N([n[0], n[1]]);
285
- t !== m.length - 1 ? o = `${o}${a[0]} ${a[1]}L` : o = `${o}${a[0]} ${a[1]}`;
286
- }), /* @__PURE__ */ e.jsx(
287
- "path",
288
- {
289
- d: o,
290
- className: "stroke-primary-gray-700 dark:stroke-primary-gray-300",
291
- style: {
292
- fill: "none",
293
- fillOpacity: 0,
294
- strokeWidth: "0.5"
295
- }
296
- },
297
- i
298
- );
299
- })
300
- ) }, l)) : null,
301
- ne.filter((r) => r.position === "after").map((r) => r.layer)
302
- ] })
303
- }
304
- ),
305
- ge === !1 ? null : /* @__PURE__ */ e.jsx("div", { className: "absolute left-4 bottom-4", children: K ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
306
- /* @__PURE__ */ e.jsx(
307
- "div",
308
- {
309
- style: {
310
- backgroundColor: "rgba(240,240,240, 0.7)",
311
- border: "1px solid var(--gray-400)",
312
- borderRadius: "999px",
313
- width: "24px",
314
- height: "24px",
315
- padding: "3px",
316
- cursor: "pointer",
317
- zIndex: 10,
318
- position: "absolute",
319
- right: "-0.75rem",
320
- top: "-0.75rem"
321
- },
322
- onClick: () => {
323
- v(!1);
324
- },
325
- children: /* @__PURE__ */ e.jsx(He, {})
326
- }
327
- ),
328
- /* @__PURE__ */ e.jsxs(
329
- "div",
330
- {
331
- className: "p-2",
332
- style: {
333
- backgroundColor: "rgba(240,240,240, 0.7)",
334
- width: E ? void 0 : "340px"
124
+ (a) => o.id === a.properties[y]
125
+ ), x = Et(o.x) ? ae : (
126
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
127
+ Le(o.x)
128
+ );
129
+ return /* @__PURE__ */ t.jsx(Ue.g, { variants: {
130
+ initial: {
131
+ opacity: 0
335
132
  },
336
- children: [
337
- V && V !== "" ? /* @__PURE__ */ e.jsx(
338
- ke,
339
- {
340
- size: "xs",
341
- marginBottom: "xs",
342
- className: "p-0 leading-normal overflow-hidden text-primary-gray-700 dark:text-primary-gray-300",
343
- style: {
344
- display: "-webkit-box",
345
- WebkitLineClamp: "1",
346
- WebkitBoxOrient: "vertical"
347
- },
348
- children: V
133
+ whileInView: {
134
+ opacity: P ? P === x ? 1 : W : R.length !== 0 ? R.indexOf(o.id) !== -1 ? 1 : W : 1,
135
+ transition: {
136
+ duration: D.duration
137
+ }
138
+ }
139
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
140
+ opacity: 0,
141
+ transition: {
142
+ duration: D.duration
143
+ }
144
+ }, onMouseEnter: (a) => {
145
+ K(o), de(a.clientY), h(a.clientX), ie?.(o);
146
+ }, onMouseMove: (a) => {
147
+ K(o), de(a.clientY), h(a.clientX);
148
+ }, onMouseLeave: () => {
149
+ K(void 0), h(void 0), de(void 0), ie?.(void 0);
150
+ }, onClick: () => {
151
+ (ne || O) && (yt(q, o) && be ? (Y(void 0), ne?.(void 0)) : (Y(o), ne?.(o)));
152
+ }, children: s === -1 ? null : $.features[s].geometry.type === "MultiPolygon" ? $.features[s].geometry.coordinates.map(
153
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
154
+ (a, r) => {
155
+ let n = "";
156
+ return a.forEach((l) => {
157
+ let i = " M";
158
+ l.forEach((m, M) => {
159
+ const C = I([m[0], m[1]]);
160
+ M !== l.length - 1 ? i = `${i}${C[0]} ${C[1]}L` : i = `${i}${C[0]} ${C[1]}`;
161
+ }), n += i;
162
+ }), /* @__PURE__ */ t.jsx(Ue.path, { d: n, variants: {
163
+ initial: {
164
+ fill: x,
165
+ opacity: 0
166
+ },
167
+ whileInView: {
168
+ fill: x,
169
+ opacity: 1,
170
+ transition: {
171
+ duration: D.duration
172
+ }
173
+ }
174
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
175
+ opacity: 0,
176
+ transition: {
177
+ duration: D.duration
349
178
  }
350
- ) : null,
351
- E ? /* @__PURE__ */ e.jsx("div", { className: "flex flex-col gap-3", children: g.map((r, l) => /* @__PURE__ */ e.jsxs(
352
- "div",
353
- {
354
- className: "flex gap-2 items-center",
355
- onMouseOver: () => {
356
- M(c[l % c.length]);
357
- },
358
- onMouseLeave: () => {
359
- M(void 0);
360
- },
361
- children: [
362
- /* @__PURE__ */ e.jsx(
363
- "div",
364
- {
365
- className: "w-2 h-2 rounded-full",
366
- style: { backgroundColor: c[l % c.length] }
367
- }
368
- ),
369
- /* @__PURE__ */ e.jsx(ke, { size: "sm", marginBottom: "none", leading: "none", children: r })
370
- ]
179
+ }, style: {
180
+ stroke: X,
181
+ strokeWidth: H
182
+ } }, `${o.id}-${r}`);
183
+ }
184
+ ) : $.features[s].geometry.coordinates.map(
185
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
186
+ (a, r) => {
187
+ let n = "M";
188
+ return a.forEach((l, i) => {
189
+ const m = I([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(Ue.path, { d: n, variants: {
192
+ initial: {
193
+ fill: x,
194
+ opacity: 0
371
195
  },
372
- l
373
- )) }) : /* @__PURE__ */ e.jsx("svg", { width: "100%", viewBox: "0 0 320 30", direction: "ltr", children: /* @__PURE__ */ e.jsxs("g", { children: [
374
- g.map((r, l) => /* @__PURE__ */ e.jsxs(
375
- "g",
376
- {
377
- onMouseOver: () => {
378
- M(c[l]);
379
- },
380
- onMouseLeave: () => {
381
- M(void 0);
382
- },
383
- className: "cursor-pointer",
384
- children: [
385
- /* @__PURE__ */ e.jsx(
386
- "rect",
387
- {
388
- x: l * 320 / c.length + 1,
389
- y: 1,
390
- width: 320 / c.length - 2,
391
- height: 8,
392
- className: w === c[l] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "",
393
- style: {
394
- fill: c[l],
395
- ...w === c[l] ? {} : { stroke: c[l] }
396
- }
397
- }
398
- ),
399
- /* @__PURE__ */ e.jsx(
400
- "text",
401
- {
402
- x: (l + 1) * 320 / c.length,
403
- y: 25,
404
- className: "fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
405
- style: { textAnchor: "middle" },
406
- children: Be(r, "NA")
407
- }
408
- )
409
- ]
410
- },
411
- l
412
- )),
413
- /* @__PURE__ */ e.jsx("g", { children: /* @__PURE__ */ e.jsx(
414
- "rect",
415
- {
416
- onMouseOver: () => {
417
- M(c[g.length]);
418
- },
419
- onMouseLeave: () => {
420
- M(void 0);
421
- },
422
- x: g.length * 320 / c.length + 1,
423
- y: 1,
424
- width: 320 / c.length - 2,
425
- height: 8,
426
- className: `cursor-pointer ${w === c[g.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`,
427
- style: {
428
- fill: c[g.length],
429
- ...w === c[g.length] ? {} : { stroke: c[g.length] }
430
- }
196
+ whileInView: {
197
+ fill: x,
198
+ opacity: 1,
199
+ transition: {
200
+ duration: D.duration
431
201
  }
432
- ) })
433
- ] }) })
434
- ]
435
- }
436
- )
437
- ] }) : /* @__PURE__ */ e.jsx(
438
- "button",
439
- {
440
- type: "button",
441
- className: "mb-0 border-0 bg-transparent p-0 self-start",
442
- onClick: () => {
443
- v(!0);
444
- },
445
- children: /* @__PURE__ */ e.jsx("div", { className: "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-550 border-primary-gray-400 dark:border-primary-gray-500", children: "Show Legend" })
446
- }
447
- ) }),
448
- B === "button" && /* @__PURE__ */ e.jsxs("div", { className: "absolute left-4 top-4 flex flex-col", children: [
449
- /* @__PURE__ */ e.jsx(
450
- "button",
451
- {
452
- onClick: () => G("in"),
453
- 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-400 dark:bg-primary-gray-600 dark:text-primary-gray-100",
454
- children: "+"
455
- }
456
- ),
457
- /* @__PURE__ */ e.jsx(
458
- "button",
459
- {
460
- onClick: () => G("out"),
461
- 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-400 dark:bg-primary-gray-600 dark:text-primary-gray-100",
462
- children: "–"
463
- }
464
- )
202
+ }
203
+ }, initial: "initial", animate: me ? "whileInView" : "initial", exit: {
204
+ opacity: 0,
205
+ transition: {
206
+ duration: D.duration
207
+ }
208
+ }, style: {
209
+ stroke: X,
210
+ strokeWidth: H
211
+ } }, `${o.id}-${r}`);
212
+ }
213
+ ) }, o.id);
214
+ }) }),
215
+ J ? $.features.filter(
216
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
217
+ (o) => o.properties[y] === J.id
218
+ ).map((o, s) => /* @__PURE__ */ t.jsx("g", { children: o.geometry.type === "MultiPolygon" ? (
219
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
220
+ o.geometry.coordinates.map((x, a) => {
221
+ let r = "";
222
+ return x.forEach((n) => {
223
+ let l = " M";
224
+ n.forEach((i, m) => {
225
+ const M = I([i[0], i[1]]);
226
+ m !== n.length - 1 ? l = `${l}${M[0]} ${M[1]}L` : l = `${l}${M[0]} ${M[1]}`;
227
+ }), r += l;
228
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
229
+ fill: "none",
230
+ fillOpacity: 0,
231
+ strokeWidth: "0.5"
232
+ } }, a);
233
+ })
234
+ ) : (
235
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
236
+ o.geometry.coordinates.map((x, a) => {
237
+ let r = "M";
238
+ return x.forEach((n, l) => {
239
+ const i = I([n[0], n[1]]);
240
+ l !== x.length - 1 ? r = `${r}${i[0]} ${i[1]}L` : r = `${r}${i[0]} ${i[1]}`;
241
+ }), /* @__PURE__ */ t.jsx("path", { d: r, className: "stroke-primary-gray-700 dark:stroke-primary-gray-300", style: {
242
+ fill: "none",
243
+ fillOpacity: 0,
244
+ strokeWidth: "0.5"
245
+ } }, a);
246
+ })
247
+ ) }, s)) : null,
248
+ se.filter((o) => o.position === "after").map((o) => o.layer)
249
+ ] }) }),
250
+ ve === !1 ? null : /* @__PURE__ */ t.jsx("div", { className: ct("absolute left-4 bottom-4 map-color-legend", ke?.colorLegend), children: Ie ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
251
+ /* @__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, {}) }),
254
+ /* @__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: F ? void 0 : "340px"
256
+ }, children: [
257
+ E && E !== "" ? /* @__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: {
258
+ display: "-webkit-box",
259
+ WebkitLineClamp: "1",
260
+ WebkitBoxOrient: "vertical"
261
+ }, children: E }) : null,
262
+ F ? /* @__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
+ B(d[s % d.length]);
264
+ }, onMouseLeave: () => {
265
+ B(void 0);
266
+ }, children: [
267
+ /* @__PURE__ */ t.jsx("div", { className: "w-2 h-2 rounded-full", style: {
268
+ backgroundColor: d[s % d.length]
269
+ } }),
270
+ /* @__PURE__ */ t.jsx(it, { size: "sm", marginBottom: "none", leading: "none", children: o })
271
+ ] }, 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
+ B(d[s]);
274
+ }, onMouseLeave: () => {
275
+ B(void 0);
276
+ }, className: "cursor-pointer", children: [
277
+ /* @__PURE__ */ t.jsx("rect", { x: s * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: P === d[s] ? "stroke-primary-gray-700 dark:stroke-primary-gray-300" : "", style: {
278
+ fill: d[s],
279
+ ...P === d[s] ? {} : {
280
+ stroke: d[s]
281
+ }
282
+ } }),
283
+ /* @__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
+ textAnchor: "middle"
285
+ }, children: Dt(o, "NA") })
286
+ ] }, s)),
287
+ /* @__PURE__ */ t.jsx("g", { children: /* @__PURE__ */ t.jsx("rect", { onMouseOver: () => {
288
+ B(d[c.length]);
289
+ }, onMouseLeave: () => {
290
+ B(void 0);
291
+ }, x: c.length * 320 / d.length + 1, y: 1, width: 320 / d.length - 2, height: 8, className: `cursor-pointer ${P === d[c.length] ? "stroke-1 stroke-primary-gray-700 dark:stroke-primary-gray-300" : ""}`, style: {
292
+ fill: d[c.length],
293
+ ...P === d[c.length] ? {} : {
294
+ stroke: d[c.length]
295
+ }
296
+ } }) })
297
+ ] }) })
298
+ ] })
299
+ ] }) : /* @__PURE__ */ t.jsx("button", { type: "button", className: "mb-0 border-0 bg-transparent p-0 self-start map-legend-button", onClick: () => {
300
+ we(!0);
301
+ }, 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
+ _ === "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: "–" })
465
305
  ] })
466
306
  ] }),
467
- C && D !== void 0 ? /* @__PURE__ */ e.jsx(
468
- We,
469
- {
470
- open: D !== void 0,
471
- onClose: () => {
472
- Z(void 0);
473
- },
474
- children: /* @__PURE__ */ e.jsx(
475
- "div",
476
- {
477
- className: "graph-modal-content m-0",
478
- dangerouslySetInnerHTML: typeof C == "string" ? { __html: Ve(C, D) } : void 0,
479
- children: typeof C == "function" ? C(D) : null
480
- }
481
- )
482
- }
483
- ) : null,
484
- U && ie && S && se ? /* @__PURE__ */ e.jsx(
485
- Ae,
486
- {
487
- data: U,
488
- body: ie,
489
- xPos: S,
490
- yPos: se,
491
- backgroundStyle: ye?.tooltip,
492
- className: xe?.tooltip
493
- }
494
- ) : null
307
+ O && q !== void 0 ? /* @__PURE__ */ t.jsx(Ct, { open: q !== void 0, onClose: () => {
308
+ Y(void 0);
309
+ }, children: /* @__PURE__ */ t.jsx("div", { className: "graph-modal-content m-0", dangerouslySetInnerHTML: typeof O == "string" ? {
310
+ __html: St(O, q)
311
+ } : void 0, children: typeof O == "function" ? O(q) : null }) }) : null,
312
+ J && re && f && ce ? /* @__PURE__ */ t.jsx(Mt, { data: J, body: re, xPos: f, yPos: ce, backgroundStyle: Pe?.tooltip, className: ke?.tooltip }) : null
495
313
  ] });
496
314
  }
497
- function Lt(he) {
498
- const {
499
- data: k,
500
- mapData: g = "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json",
501
- graphTitle: c,
502
- colors: x,
503
- sources: V,
504
- graphDescription: E,
505
- height: h,
506
- width: s,
507
- footNote: oe = "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.",
508
- colorDomain: T,
509
- colorLegendTitle: ie,
510
- scaleType: P = "threshold",
511
- scale: F = 0.95,
512
- centerPoint: R,
513
- padding: Y,
514
- mapBorderWidth: ge = 0.5,
515
- mapNoDataColor: ue = me.light.graphNoData,
516
- backgroundColor: I = !1,
517
- mapBorderColor: H = me.light.grays["gray-500"],
518
- relativeHeight: f,
519
- tooltip: q,
520
- onSeriesMouseOver: fe,
521
- isWorldMap: C = !0,
522
- showColorScale: ye = !0,
523
- zoomScaleExtend: xe = [0.8, 6],
524
- zoomTranslateExtend: X,
525
- graphID: B,
526
- highlightedIds: j = [],
527
- onSeriesMouseClick: _,
528
- mapProperty: ne = "ISO3",
529
- graphDownload: w = !1,
530
- dataDownload: M = !1,
531
- showAntarctica: J = !1,
532
- language: K = "en",
533
- minHeight: v = 0,
534
- theme: D = "light",
535
- ariaLabel: Z,
536
- resetSelectionOnDoubleClick: U = !0,
537
- detailsOnClick: Q,
538
- styles: S,
539
- classNames: $,
540
- mapProjection: se,
541
- zoomInteraction: ee = "button",
542
- animate: L = !1,
543
- dimmedOpacity: te = 0.3,
544
- customLayers: le = [],
545
- timeline: y = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 }
546
- } = he, [u, z] = b(0), [re, ce] = b(0), [A, ve] = b(y.autoplay), d = tt(
547
- et(k, "date", !0).map(
548
- (t) => Ce(`${t}`, y.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()
549
- ),
550
- (t, a) => rt(t, a)
551
- ), [N, G] = b(y.autoplay ? 0 : d.length - 1), [r, l] = b(void 0), m = ae(null), i = ae(null);
552
- pe(() => {
553
- const t = new ResizeObserver((a) => {
554
- z(s || a[0].target.clientWidth || 760), ce(h || a[0].target.clientHeight || 480);
315
+ function zo(u) {
316
+ const e = dt.c(106), {
317
+ data: c,
318
+ mapData: d,
319
+ graphTitle: $,
320
+ colors: E,
321
+ sources: F,
322
+ graphDescription: j,
323
+ height: g,
324
+ width: p,
325
+ footNote: V,
326
+ colorDomain: re,
327
+ colorLegendTitle: H,
328
+ scaleType: X,
329
+ scale: ae,
330
+ centerPoint: ie,
331
+ padding: ve,
332
+ mapBorderWidth: Ee,
333
+ mapNoDataColor: Oe,
334
+ backgroundColor: R,
335
+ mapBorderColor: ne,
336
+ relativeHeight: y,
337
+ tooltip: be,
338
+ onSeriesMouseOver: O,
339
+ isWorldMap: Pe,
340
+ showColorScale: ke,
341
+ zoomScaleExtend: z,
342
+ zoomTranslateExtend: _,
343
+ graphID: D,
344
+ highlightedIds: W,
345
+ onSeriesMouseClick: se,
346
+ mapProperty: je,
347
+ graphDownload: P,
348
+ dataDownload: B,
349
+ showAntarctica: le,
350
+ language: Ie,
351
+ minHeight: we,
352
+ theme: q,
353
+ ariaLabel: Y,
354
+ resetSelectionOnDoubleClick: J,
355
+ detailsOnClick: K,
356
+ styles: f,
357
+ classNames: h,
358
+ mapProjection: ce,
359
+ zoomInteraction: de,
360
+ animate: G,
361
+ dimmedOpacity: me,
362
+ customLayers: Z,
363
+ timeline: Le,
364
+ collapseColorScaleByDefault: U
365
+ } = u, w = d === void 0 ? "https://raw.githubusercontent.com/UNDP-Data/dv-country-geojson/refs/heads/main/worldMap.json" : d, pe = V === 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." : V, T = X === void 0 ? "threshold" : X, $e = ae === void 0 ? 0.95 : ae, Ce = Ee === void 0 ? 0.5 : Ee, A = Oe === void 0 ? Xe.light.graphNoData : Oe, I = R === void 0 ? !1 : R, he = ne === void 0 ? Xe.light.grays["gray-500"] : ne, o = Pe === void 0 ? !0 : Pe, s = ke === void 0 ? !0 : ke;
366
+ let x;
367
+ e[0] !== z ? (x = z === void 0 ? [0.8, 6] : z, e[0] = z, e[1] = x) : x = e[1];
368
+ const a = x;
369
+ let r;
370
+ e[2] !== W ? (r = W === void 0 ? [] : W, e[2] = W, e[3] = r) : r = e[3];
371
+ const n = r, l = je === void 0 ? "ISO3" : je, i = P === void 0 ? !1 : P, m = B === void 0 ? !1 : B, M = le === void 0 ? !1 : le, C = Ie === void 0 ? "en" : Ie, N = we === void 0 ? 0 : we, Q = q === void 0 ? "light" : q, Ye = J === void 0 ? !0 : J, Je = de === void 0 ? "button" : de, ze = G === void 0 ? !1 : G, Ke = me === void 0 ? 0.3 : me;
372
+ let _e;
373
+ e[4] !== Z ? (_e = Z === void 0 ? [] : Z, e[4] = Z, e[5] = _e) : _e = e[5];
374
+ const Ze = _e, k = Le === void 0 ? {
375
+ enabled: !1,
376
+ autoplay: !1,
377
+ showOnlyActiveDate: !0
378
+ } : Le, [L, nt] = S(0), [Ne, st] = S(0), [ee, Qe] = S(k.autoplay), v = Ut(Ht(c, "date", !0).map((b) => gt(`${b}`, k.dateFormat || "yyyy", /* @__PURE__ */ new Date()).getTime()), oo), [te, De] = S(k.autoplay ? 0 : v.length - 1), [ue, lt] = S(void 0), et = Se(null), at = Se(null);
379
+ let We, Be;
380
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (We = () => {
381
+ const b = new ResizeObserver((oe) => {
382
+ nt(oe[0].target.clientWidth || 620), st(oe[0].target.clientHeight || 480);
555
383
  });
556
- return m.current && (ce(m.current.clientHeight || 480), z(m.current.clientWidth || 760), s || t.observe(m.current)), () => t.disconnect();
557
- }, [s, h]), pe(() => {
558
- typeof g == "string" ? Ke(g).then((a) => {
559
- l(a);
560
- }) : l(g);
561
- }, [g]);
562
- const o = T || (P === "categorical" ? Ze(k, "x") : Qe(
563
- k.map((t) => t.x),
564
- x?.length || 4
565
- ));
566
- pe(() => {
567
- const t = setInterval(
568
- () => {
569
- G((a) => a < d.length - 1 ? a + 1 : 0);
570
- },
571
- (y.speed || 2) * 1e3
572
- );
573
- return A || clearInterval(t), () => clearInterval(t);
574
- }, [d, A, y.speed]);
575
- const n = we(
576
- d,
577
- N,
578
- y.showOnlyActiveDate,
579
- y.dateFormat || "yyyy"
580
- );
581
- return /* @__PURE__ */ e.jsx(
582
- "div",
583
- {
584
- className: `${D || "light"} flex ${s ? "w-fit grow-0" : "w-full grow"}`,
585
- dir: K === "he" || K === "ar" ? "rtl" : void 0,
586
- children: /* @__PURE__ */ e.jsx(
587
- "div",
588
- {
589
- className: je(
590
- `${I ? I === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${K || "en"}`,
591
- s ? "w-fit" : "w-full",
592
- $?.graphContainer
593
- ),
594
- style: {
595
- ...S?.graphContainer || {},
596
- ...I && I !== !0 ? { backgroundColor: I } : {}
597
- },
598
- id: B,
599
- ref: i,
600
- "aria-label": Z || `${c ? `The graph shows ${c}. ` : ""}This is a choropleth map where geographic areas are colored in proportion to a specific variable.${E ? ` ${E}` : ""}`,
601
- children: /* @__PURE__ */ e.jsx(
602
- "div",
603
- {
604
- className: "flex grow",
605
- style: { padding: I ? Y || "1rem" : Y || 0 },
606
- children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
607
- c || E || w || M ? /* @__PURE__ */ e.jsx(
608
- Je,
609
- {
610
- styles: {
611
- title: S?.title,
612
- description: S?.description
613
- },
614
- classNames: {
615
- title: $?.title,
616
- description: $?.description
617
- },
618
- graphTitle: c,
619
- graphDescription: E,
620
- width: s,
621
- graphDownload: w ? i.current : void 0,
622
- dataDownload: M ? k.map((t) => t.data).filter((t) => t !== void 0).length > 0 ? k.map((t) => t.data).filter((t) => t !== void 0) : k.filter((t) => t !== void 0) : null
623
- }
624
- ) : null,
625
- y.enabled && d.length > 0 && n ? /* @__PURE__ */ e.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
626
- /* @__PURE__ */ e.jsx(
627
- "button",
628
- {
629
- type: "button",
630
- onClick: () => {
631
- ve(!A);
632
- },
633
- className: "p-0 border-0 cursor-pointer bg-transparent",
634
- "aria-label": A ? "Click to pause animation" : "Click to play animation",
635
- children: A ? /* @__PURE__ */ e.jsx(qe, {}) : /* @__PURE__ */ e.jsx(Xe, {})
636
- }
637
- ),
638
- /* @__PURE__ */ e.jsx(
639
- $e,
640
- {
641
- min: d[0],
642
- max: d[d.length - 1],
643
- marks: n,
644
- step: null,
645
- defaultValue: d[d.length - 1],
646
- value: d[N],
647
- onChangeComplete: (t) => {
648
- G(d.indexOf(t));
649
- },
650
- onChange: (t) => {
651
- G(d.indexOf(t));
652
- },
653
- "aria-label": "Time slider. Use arrow keys to adjust selected time period."
654
- }
655
- )
656
- ] }) : null,
657
- /* @__PURE__ */ e.jsx(
658
- "div",
659
- {
660
- className: "flex flex-col grow justify-center leading-0",
661
- ref: m,
662
- "aria-label": "Map area",
663
- children: (s || u) && (h || re) && r ? /* @__PURE__ */ e.jsx(
664
- at,
665
- {
666
- data: k.filter(
667
- (t) => y.enabled ? t.date === Me(new Date(d[N]), y.dateFormat || "yyyy") : t
668
- ),
669
- mapData: J ? r : {
670
- ...r,
671
- features: r.features.filter(
672
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
673
- (t) => t.properties.NAME !== "Antarctica"
674
- )
675
- },
676
- colorDomain: o,
677
- width: s || u,
678
- height: Math.max(
679
- v,
680
- h || (f ? v ? (s || u) * f > v ? (s || u) * f : v : (s || u) * f : re)
681
- ),
682
- scale: F,
683
- centerPoint: R,
684
- colors: x || (P === "categorical" ? me[D].sequentialColors[`neutralColorsx0${o.length}`] : me[D].sequentialColors[`neutralColorsx0${o.length + 1}`]),
685
- colorLegendTitle: ie,
686
- mapBorderWidth: ge,
687
- mapNoDataColor: ue,
688
- categorical: P === "categorical",
689
- mapBorderColor: H,
690
- tooltip: q,
691
- onSeriesMouseOver: fe,
692
- isWorldMap: C,
693
- showColorScale: ye,
694
- zoomScaleExtend: xe,
695
- zoomTranslateExtend: X,
696
- onSeriesMouseClick: _,
697
- mapProperty: ne,
698
- highlightedIds: j,
699
- resetSelectionOnDoubleClick: U,
700
- styles: S,
701
- classNames: $,
702
- detailsOnClick: Q,
703
- mapProjection: se || (C ? "naturalEarth" : "mercator"),
704
- zoomInteraction: ee,
705
- dimmedOpacity: te,
706
- animate: L === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : L || { duration: 0, once: !0, amount: 0 },
707
- customLayers: le
708
- }
709
- ) : /* @__PURE__ */ e.jsx(
710
- "div",
711
- {
712
- style: {
713
- height: `${Math.max(
714
- v,
715
- h || (f ? v ? (s || u) * f > v ? (s || u) * f : v : (s || u) * f : re)
716
- )}px`
717
- },
718
- className: "flex items-center justify-center",
719
- children: /* @__PURE__ */ e.jsx(Ne, { "aria-label": "Loading graph" })
720
- }
721
- )
722
- }
723
- ),
724
- V || oe ? /* @__PURE__ */ e.jsx(
725
- Ye,
726
- {
727
- styles: { footnote: S?.footnote, source: S?.source },
728
- classNames: {
729
- footnote: $?.footnote,
730
- source: $?.source
731
- },
732
- sources: V,
733
- footNote: oe,
734
- width: s
735
- }
736
- ) : null
737
- ] })
738
- }
739
- )
740
- }
741
- )
742
- }
743
- );
384
+ return et.current && b.observe(et.current), () => b.disconnect();
385
+ }, Be = [], e[6] = We, e[7] = Be) : (We = e[6], Be = e[7]), Re(We, Be);
386
+ let Te;
387
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (Te = (b) => {
388
+ lt(b);
389
+ }, e[8] = Te) : Te = e[8];
390
+ const Ae = mt(Te);
391
+ let Fe;
392
+ e[9] !== w || e[10] !== Ae ? (Fe = () => {
393
+ typeof w == "string" ? At(w).then((oe) => {
394
+ Ae(oe);
395
+ }) : Ae(w);
396
+ }, e[9] = w, e[10] = Ae, e[11] = Fe) : Fe = e[11];
397
+ let Ve;
398
+ e[12] !== w ? (Ve = [w], e[12] = w, e[13] = Ve) : Ve = e[13], Re(Fe, Ve);
399
+ let He;
400
+ e[14] !== re || e[15] !== E?.length || e[16] !== c || e[17] !== T ? (He = re || (T === "categorical" ? Ft(c, "x") : Vt(c.map(to), E?.length || 4)), e[14] = re, e[15] = E?.length, e[16] = c, e[17] = T, e[18] = He) : He = e[18];
401
+ const Me = He;
402
+ Re(() => {
403
+ const b = setInterval(() => {
404
+ De((oe) => oe < v.length - 1 ? oe + 1 : 0);
405
+ }, (k.speed || 2) * 1e3);
406
+ return ee || clearInterval(b), () => clearInterval(b);
407
+ }, [v, ee, k.speed]);
408
+ const qe = pt(v, te, k.showOnlyActiveDate, k.dateFormat || "yyyy"), tt = h?.graphContainer, ot = f?.graphContainer;
409
+ let ge;
410
+ e[19] !== h?.description || e[20] !== h?.title || e[21] !== c || e[22] !== m || e[23] !== j || e[24] !== i || e[25] !== $ || e[26] !== f?.description || e[27] !== f?.title || e[28] !== p ? (ge = $ || j || i || m ? /* @__PURE__ */ t.jsx(Tt, { styles: {
411
+ title: f?.title,
412
+ description: f?.description
413
+ }, classNames: {
414
+ title: h?.title,
415
+ description: h?.description
416
+ }, graphTitle: $, graphDescription: j, width: p, 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] = h?.description, e[20] = h?.title, e[21] = c, e[22] = m, e[23] = j, e[24] = i, e[25] = $, e[26] = f?.description, e[27] = f?.title, e[28] = p, e[29] = ge) : ge = e[29];
417
+ let fe;
418
+ e[30] !== te || e[31] !== qe || e[32] !== ee || e[33] !== De || e[34] !== Qe || e[35] !== k.enabled || e[36] !== v ? (fe = k.enabled && v.length > 0 && qe ? /* @__PURE__ */ t.jsxs("div", { className: "flex gap-6 items-center", dir: "ltr", children: [
419
+ /* @__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: v[0], max: v[v.length - 1], marks: qe, step: null, defaultValue: v[v.length - 1], value: v[te], onChangeComplete: (b) => {
423
+ De(v.indexOf(b));
424
+ }, onChange: (b) => {
425
+ De(v.indexOf(b));
426
+ }, "aria-label": "Time slider. Use arrow keys to adjust selected time period." })
427
+ ] }) : null, e[30] = te, e[31] = qe, e[32] = ee, e[33] = De, e[34] = Qe, e[35] = k.enabled, e[36] = v, e[37] = fe) : fe = e[37];
428
+ let ye;
429
+ e[38] !== ze || e[39] !== ie || e[40] !== h || e[41] !== U || e[42] !== H || e[43] !== E || e[44] !== Ze || e[45] !== c || e[46] !== K || e[47] !== Ke || e[48] !== Me || e[49] !== g || e[50] !== n || e[51] !== te || e[52] !== o || e[53] !== he || e[54] !== Ce || e[55] !== A || e[56] !== ce || e[57] !== l || e[58] !== ue || e[59] !== N || e[60] !== se || e[61] !== O || e[62] !== y || e[63] !== Ye || e[64] !== $e || e[65] !== T || e[66] !== M || e[67] !== s || e[68] !== f || e[69] !== Ne || e[70] !== L || e[71] !== Q || e[72] !== k.dateFormat || e[73] !== k.enabled || e[74] !== be || e[75] !== v || e[76] !== p || e[77] !== Je || e[78] !== a || e[79] !== _ ? (ye = /* @__PURE__ */ t.jsx(qt, { ref: et, children: L && Ne && ue ? /* @__PURE__ */ t.jsx(Rt, { data: c.filter((b) => k.enabled ? b.date === ft(new Date(v[te]), k.dateFormat || "yyyy") : b), mapData: M ? ue : {
430
+ ...ue,
431
+ features: ue.features.filter(Yt)
432
+ }, colorDomain: Me, width: p || L, height: Math.max(N, g || (y ? N ? (p || L) * y > N ? (p || L) * y : N : (p || L) * y : Ne)), scale: $e, centerPoint: ie, colors: E || (T === "categorical" ? Xe[Q].sequentialColors[`neutralColorsx0${Me.length}`] : Xe[Q].sequentialColors[`neutralColorsx0${Me.length + 1}`]), colorLegendTitle: H, mapBorderWidth: Ce, mapNoDataColor: A, categorical: T === "categorical", mapBorderColor: he, tooltip: be, onSeriesMouseOver: O, isWorldMap: o, showColorScale: s, zoomScaleExtend: a, zoomTranslateExtend: _, onSeriesMouseClick: se, mapProperty: l, highlightedIds: n, resetSelectionOnDoubleClick: Ye, styles: f, classNames: h, detailsOnClick: K, mapProjection: ce || (o ? "naturalEarth" : "mercator"), zoomInteraction: Je, dimmedOpacity: Ke, animate: ze === !0 ? {
433
+ duration: 0.5,
434
+ once: !0,
435
+ amount: 0.5
436
+ } : ze || {
437
+ duration: 0,
438
+ once: !0,
439
+ amount: 0
440
+ }, customLayers: Ze, collapseColorScaleByDefault: U }) : /* @__PURE__ */ t.jsx("div", { style: {
441
+ height: `${Math.max(N, g || (y ? N ? (p || L) * y > N ? (p || L) * y : N : (p || L) * y : Ne))}px`
442
+ }, className: "flex items-center justify-center", children: /* @__PURE__ */ t.jsx(ut, { "aria-label": "Loading graph" }) }) }), e[38] = ze, e[39] = ie, e[40] = h, e[41] = U, e[42] = H, e[43] = E, e[44] = Ze, e[45] = c, e[46] = K, e[47] = Ke, e[48] = Me, e[49] = g, e[50] = n, e[51] = te, e[52] = o, e[53] = he, e[54] = Ce, e[55] = A, e[56] = ce, e[57] = l, e[58] = ue, e[59] = N, e[60] = se, e[61] = O, e[62] = y, e[63] = Ye, e[64] = $e, e[65] = T, e[66] = M, e[67] = s, e[68] = f, e[69] = Ne, e[70] = L, e[71] = Q, e[72] = k.dateFormat, e[73] = k.enabled, e[74] = be, e[75] = v, e[76] = p, e[77] = Je, e[78] = a, e[79] = _, e[80] = ye) : ye = e[80];
443
+ let xe;
444
+ e[81] !== h?.footnote || e[82] !== h?.source || e[83] !== pe || e[84] !== F || e[85] !== f?.footnote || e[86] !== f?.source || e[87] !== p ? (xe = F || pe ? /* @__PURE__ */ t.jsx(Bt, { styles: {
445
+ footnote: f?.footnote,
446
+ source: f?.source
447
+ }, classNames: {
448
+ footnote: h?.footnote,
449
+ source: h?.source
450
+ }, sources: F, footNote: pe, width: p }) : null, e[81] = h?.footnote, e[82] = h?.source, e[83] = pe, e[84] = F, e[85] = f?.footnote, e[86] = f?.source, e[87] = p, e[88] = xe) : xe = e[88];
451
+ let Ge;
452
+ return e[89] !== Y || e[90] !== I || e[91] !== D || e[92] !== g || e[93] !== C || e[94] !== N || e[95] !== ve || e[96] !== y || e[97] !== tt || e[98] !== ot || e[99] !== ge || e[100] !== fe || e[101] !== ye || e[102] !== xe || e[103] !== Q || e[104] !== p ? (Ge = /* @__PURE__ */ t.jsxs(Gt, { className: tt, style: ot, id: D, ref: at, "aria-label": Y, backgroundColor: I, theme: Q, language: C, minHeight: N, width: p, height: g, relativeHeight: y, padding: ve, children: [
453
+ ge,
454
+ fe,
455
+ ye,
456
+ xe
457
+ ] }), e[89] = Y, e[90] = I, e[91] = D, e[92] = g, e[93] = C, e[94] = N, e[95] = ve, e[96] = y, e[97] = tt, e[98] = ot, e[99] = ge, e[100] = fe, e[101] = ye, e[102] = xe, e[103] = Q, e[104] = p, e[105] = Ge) : Ge = e[105], Ge;
458
+ }
459
+ function Yt(u) {
460
+ return u.properties.NAME !== "Antarctica";
461
+ }
462
+ function Jt(u) {
463
+ return u !== void 0;
464
+ }
465
+ function Kt(u) {
466
+ return u !== void 0;
467
+ }
468
+ function Zt(u) {
469
+ return u.data;
470
+ }
471
+ function Qt(u) {
472
+ return u !== void 0;
473
+ }
474
+ function eo(u) {
475
+ return u.data;
476
+ }
477
+ function to(u) {
478
+ return u.x;
479
+ }
480
+ function oo(u, e) {
481
+ return Xt(u, e);
744
482
  }
745
483
  export {
746
- Lt as ChoroplethMap
484
+ zo as ChoroplethMap
747
485
  };
748
486
  //# sourceMappingURL=ChoroplethMap.js.map