@performant-software/geospatial 2.1.0-beta.5 → 2.1.0-beta.51

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 (1069) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs10.js.map +1 -1
  4. package/dist/index.cjs100.js +1 -1
  5. package/dist/index.cjs100.js.map +1 -1
  6. package/dist/index.cjs101.js +1 -1
  7. package/dist/index.cjs101.js.map +1 -1
  8. package/dist/index.cjs102.js +1 -1
  9. package/dist/index.cjs102.js.map +1 -1
  10. package/dist/index.cjs103.js +1 -1
  11. package/dist/index.cjs103.js.map +1 -1
  12. package/dist/index.cjs104.js +1 -1
  13. package/dist/index.cjs104.js.map +1 -1
  14. package/dist/index.cjs105.js +1 -1
  15. package/dist/index.cjs105.js.map +1 -1
  16. package/dist/index.cjs106.js +1 -1
  17. package/dist/index.cjs106.js.map +1 -1
  18. package/dist/index.cjs107.js +1 -1
  19. package/dist/index.cjs107.js.map +1 -1
  20. package/dist/index.cjs108.js +1 -1
  21. package/dist/index.cjs108.js.map +1 -1
  22. package/dist/index.cjs109.js +1 -1
  23. package/dist/index.cjs109.js.map +1 -1
  24. package/dist/index.cjs11.js +1 -1
  25. package/dist/index.cjs11.js.map +1 -1
  26. package/dist/index.cjs110.js +1 -13
  27. package/dist/index.cjs110.js.map +1 -1
  28. package/dist/index.cjs111.js +1 -1
  29. package/dist/index.cjs111.js.map +1 -1
  30. package/dist/index.cjs112.js +1 -1
  31. package/dist/index.cjs112.js.map +1 -1
  32. package/dist/index.cjs113.js +1 -1
  33. package/dist/index.cjs113.js.map +1 -1
  34. package/dist/index.cjs114.js +1 -1
  35. package/dist/index.cjs114.js.map +1 -1
  36. package/dist/index.cjs115.js +1 -1
  37. package/dist/index.cjs115.js.map +1 -1
  38. package/dist/index.cjs116.js +1 -1
  39. package/dist/index.cjs116.js.map +1 -1
  40. package/dist/index.cjs117.js +1 -1
  41. package/dist/index.cjs117.js.map +1 -1
  42. package/dist/index.cjs118.js +1 -1
  43. package/dist/index.cjs118.js.map +1 -1
  44. package/dist/index.cjs119.js +1 -1
  45. package/dist/index.cjs119.js.map +1 -1
  46. package/dist/index.cjs12.js +1 -1
  47. package/dist/index.cjs12.js.map +1 -1
  48. package/dist/index.cjs120.js +1 -1
  49. package/dist/index.cjs120.js.map +1 -1
  50. package/dist/index.cjs121.js +1 -1
  51. package/dist/index.cjs121.js.map +1 -1
  52. package/dist/index.cjs122.js +1 -1
  53. package/dist/index.cjs122.js.map +1 -1
  54. package/dist/index.cjs123.js +1 -1
  55. package/dist/index.cjs123.js.map +1 -1
  56. package/dist/index.cjs124.js +1 -1
  57. package/dist/index.cjs124.js.map +1 -1
  58. package/dist/index.cjs125.js +1 -1
  59. package/dist/index.cjs125.js.map +1 -1
  60. package/dist/index.cjs126.js +1 -1
  61. package/dist/index.cjs126.js.map +1 -1
  62. package/dist/index.cjs127.js +1 -1
  63. package/dist/index.cjs127.js.map +1 -1
  64. package/dist/index.cjs128.js +13 -1
  65. package/dist/index.cjs128.js.map +1 -1
  66. package/dist/index.cjs129.js +1 -1
  67. package/dist/index.cjs129.js.map +1 -1
  68. package/dist/index.cjs13.js +1 -1
  69. package/dist/index.cjs13.js.map +1 -1
  70. package/dist/index.cjs130.js +1 -1
  71. package/dist/index.cjs130.js.map +1 -1
  72. package/dist/index.cjs131.js +1 -1
  73. package/dist/index.cjs131.js.map +1 -1
  74. package/dist/index.cjs132.js +1 -1
  75. package/dist/index.cjs132.js.map +1 -1
  76. package/dist/index.cjs133.js +1 -1
  77. package/dist/index.cjs133.js.map +1 -1
  78. package/dist/index.cjs134.js +1 -1
  79. package/dist/index.cjs134.js.map +1 -1
  80. package/dist/index.cjs135.js +1 -1
  81. package/dist/index.cjs135.js.map +1 -1
  82. package/dist/index.cjs136.js +1 -1
  83. package/dist/index.cjs136.js.map +1 -1
  84. package/dist/index.cjs137.js +1 -1
  85. package/dist/index.cjs137.js.map +1 -1
  86. package/dist/index.cjs138.js +1 -1
  87. package/dist/index.cjs138.js.map +1 -1
  88. package/dist/index.cjs139.js +1 -1
  89. package/dist/index.cjs139.js.map +1 -1
  90. package/dist/index.cjs14.js +1 -1
  91. package/dist/index.cjs14.js.map +1 -1
  92. package/dist/index.cjs140.js +1 -1
  93. package/dist/index.cjs140.js.map +1 -1
  94. package/dist/index.cjs141.js +1 -1
  95. package/dist/index.cjs141.js.map +1 -1
  96. package/dist/index.cjs142.js +1 -1
  97. package/dist/index.cjs142.js.map +1 -1
  98. package/dist/index.cjs143.js +1 -1
  99. package/dist/index.cjs143.js.map +1 -1
  100. package/dist/index.cjs144.js +1 -1
  101. package/dist/index.cjs144.js.map +1 -1
  102. package/dist/index.cjs145.js +1 -1
  103. package/dist/index.cjs145.js.map +1 -1
  104. package/dist/index.cjs146.js +1 -1
  105. package/dist/index.cjs146.js.map +1 -1
  106. package/dist/index.cjs147.js +1 -1
  107. package/dist/index.cjs147.js.map +1 -1
  108. package/dist/index.cjs148.js +1 -1
  109. package/dist/index.cjs148.js.map +1 -1
  110. package/dist/index.cjs149.js +1 -1
  111. package/dist/index.cjs149.js.map +1 -1
  112. package/dist/index.cjs15.js +1 -1
  113. package/dist/index.cjs15.js.map +1 -1
  114. package/dist/index.cjs150.js +1 -1
  115. package/dist/index.cjs150.js.map +1 -1
  116. package/dist/index.cjs151.js +1 -1
  117. package/dist/index.cjs151.js.map +1 -1
  118. package/dist/index.cjs152.js +1 -1
  119. package/dist/index.cjs152.js.map +1 -1
  120. package/dist/index.cjs153.js +1 -1
  121. package/dist/index.cjs153.js.map +1 -1
  122. package/dist/index.cjs154.js +1 -1
  123. package/dist/index.cjs154.js.map +1 -1
  124. package/dist/index.cjs155.js +1 -1
  125. package/dist/index.cjs155.js.map +1 -1
  126. package/dist/index.cjs156.js +1 -1
  127. package/dist/index.cjs156.js.map +1 -1
  128. package/dist/index.cjs157.js +1 -1
  129. package/dist/index.cjs157.js.map +1 -1
  130. package/dist/index.cjs158.js +1 -1
  131. package/dist/index.cjs158.js.map +1 -1
  132. package/dist/index.cjs159.js +1 -1
  133. package/dist/index.cjs159.js.map +1 -1
  134. package/dist/index.cjs16.js +1 -1
  135. package/dist/index.cjs16.js.map +1 -1
  136. package/dist/index.cjs160.js +1 -1
  137. package/dist/index.cjs160.js.map +1 -1
  138. package/dist/index.cjs161.js +1 -1
  139. package/dist/index.cjs161.js.map +1 -1
  140. package/dist/index.cjs162.js +1 -1
  141. package/dist/index.cjs162.js.map +1 -1
  142. package/dist/index.cjs163.js +1 -1
  143. package/dist/index.cjs163.js.map +1 -1
  144. package/dist/index.cjs164.js +1 -1
  145. package/dist/index.cjs164.js.map +1 -1
  146. package/dist/index.cjs165.js +1 -1
  147. package/dist/index.cjs165.js.map +1 -1
  148. package/dist/index.cjs166.js +1 -1
  149. package/dist/index.cjs166.js.map +1 -1
  150. package/dist/index.cjs167.js +1 -1
  151. package/dist/index.cjs167.js.map +1 -1
  152. package/dist/index.cjs168.js +1 -1
  153. package/dist/index.cjs168.js.map +1 -1
  154. package/dist/index.cjs169.js +1 -1
  155. package/dist/index.cjs169.js.map +1 -1
  156. package/dist/index.cjs17.js +1 -1
  157. package/dist/index.cjs17.js.map +1 -1
  158. package/dist/index.cjs170.js +1 -1
  159. package/dist/index.cjs170.js.map +1 -1
  160. package/dist/index.cjs171.js +1 -1
  161. package/dist/index.cjs171.js.map +1 -1
  162. package/dist/index.cjs172.js +1 -1
  163. package/dist/index.cjs172.js.map +1 -1
  164. package/dist/index.cjs173.js +1 -1
  165. package/dist/index.cjs173.js.map +1 -1
  166. package/dist/index.cjs174.js +1 -1
  167. package/dist/index.cjs174.js.map +1 -1
  168. package/dist/index.cjs175.js +1 -1
  169. package/dist/index.cjs175.js.map +1 -1
  170. package/dist/index.cjs176.js +1 -1
  171. package/dist/index.cjs176.js.map +1 -1
  172. package/dist/index.cjs177.js +1 -1
  173. package/dist/index.cjs177.js.map +1 -1
  174. package/dist/index.cjs178.js +1 -4
  175. package/dist/index.cjs178.js.map +1 -1
  176. package/dist/index.cjs179.js +1 -1
  177. package/dist/index.cjs179.js.map +1 -1
  178. package/dist/index.cjs18.js +1 -1
  179. package/dist/index.cjs18.js.map +1 -1
  180. package/dist/index.cjs180.js +1 -1
  181. package/dist/index.cjs180.js.map +1 -1
  182. package/dist/index.cjs181.js +1 -1
  183. package/dist/index.cjs181.js.map +1 -1
  184. package/dist/index.cjs182.js +1 -1
  185. package/dist/index.cjs182.js.map +1 -1
  186. package/dist/index.cjs183.js +1 -1
  187. package/dist/index.cjs183.js.map +1 -1
  188. package/dist/index.cjs184.js +1 -1
  189. package/dist/index.cjs184.js.map +1 -1
  190. package/dist/index.cjs185.js +1 -1
  191. package/dist/index.cjs185.js.map +1 -1
  192. package/dist/index.cjs186.js +1 -1
  193. package/dist/index.cjs186.js.map +1 -1
  194. package/dist/index.cjs187.js +1 -1
  195. package/dist/index.cjs187.js.map +1 -1
  196. package/dist/index.cjs188.js +4 -1
  197. package/dist/index.cjs188.js.map +1 -1
  198. package/dist/index.cjs189.js +1 -1
  199. package/dist/index.cjs189.js.map +1 -1
  200. package/dist/index.cjs19.js +1 -1
  201. package/dist/index.cjs19.js.map +1 -1
  202. package/dist/index.cjs190.js +1 -1
  203. package/dist/index.cjs190.js.map +1 -1
  204. package/dist/index.cjs191.js +1 -1
  205. package/dist/index.cjs191.js.map +1 -1
  206. package/dist/index.cjs192.js +1 -1
  207. package/dist/index.cjs192.js.map +1 -1
  208. package/dist/index.cjs193.js +1 -1
  209. package/dist/index.cjs193.js.map +1 -1
  210. package/dist/index.cjs194.js +1 -1
  211. package/dist/index.cjs194.js.map +1 -1
  212. package/dist/index.cjs195.js +1 -1
  213. package/dist/index.cjs195.js.map +1 -1
  214. package/dist/index.cjs196.js +1 -1
  215. package/dist/index.cjs196.js.map +1 -1
  216. package/dist/index.cjs197.js +1 -1
  217. package/dist/index.cjs197.js.map +1 -1
  218. package/dist/index.cjs198.js +1 -1
  219. package/dist/index.cjs198.js.map +1 -1
  220. package/dist/index.cjs199.js +1 -1
  221. package/dist/index.cjs199.js.map +1 -1
  222. package/dist/index.cjs2.js +1 -1
  223. package/dist/index.cjs20.js +1 -1
  224. package/dist/index.cjs20.js.map +1 -1
  225. package/dist/index.cjs200.js +1 -1
  226. package/dist/index.cjs200.js.map +1 -1
  227. package/dist/index.cjs201.js +1 -1
  228. package/dist/index.cjs201.js.map +1 -1
  229. package/dist/index.cjs202.js +1 -1
  230. package/dist/index.cjs202.js.map +1 -1
  231. package/dist/index.cjs203.js +1 -1
  232. package/dist/index.cjs203.js.map +1 -1
  233. package/dist/index.cjs204.js +1 -1
  234. package/dist/index.cjs204.js.map +1 -1
  235. package/dist/index.cjs205.js +1 -1
  236. package/dist/index.cjs205.js.map +1 -1
  237. package/dist/index.cjs206.js +1 -1
  238. package/dist/index.cjs206.js.map +1 -1
  239. package/dist/index.cjs207.js +1 -1
  240. package/dist/index.cjs207.js.map +1 -1
  241. package/dist/index.cjs208.js +1 -1
  242. package/dist/index.cjs208.js.map +1 -1
  243. package/dist/index.cjs209.js +1 -1
  244. package/dist/index.cjs209.js.map +1 -1
  245. package/dist/index.cjs21.js +1 -1
  246. package/dist/index.cjs21.js.map +1 -1
  247. package/dist/index.cjs210.js +1 -1
  248. package/dist/index.cjs210.js.map +1 -1
  249. package/dist/index.cjs211.js +1 -1
  250. package/dist/index.cjs211.js.map +1 -1
  251. package/dist/index.cjs212.js +1 -1
  252. package/dist/index.cjs212.js.map +1 -1
  253. package/dist/index.cjs213.js +1 -1
  254. package/dist/index.cjs213.js.map +1 -1
  255. package/dist/index.cjs214.js +1 -1
  256. package/dist/index.cjs214.js.map +1 -1
  257. package/dist/index.cjs215.js +1 -1
  258. package/dist/index.cjs215.js.map +1 -1
  259. package/dist/index.cjs216.js +1 -1
  260. package/dist/index.cjs216.js.map +1 -1
  261. package/dist/index.cjs217.js +1 -1
  262. package/dist/index.cjs217.js.map +1 -1
  263. package/dist/index.cjs218.js +1 -1
  264. package/dist/index.cjs218.js.map +1 -1
  265. package/dist/index.cjs219.js +1 -1
  266. package/dist/index.cjs219.js.map +1 -1
  267. package/dist/index.cjs22.js +1 -1
  268. package/dist/index.cjs22.js.map +1 -1
  269. package/dist/index.cjs220.js +1 -1
  270. package/dist/index.cjs220.js.map +1 -1
  271. package/dist/index.cjs221.js +1 -1
  272. package/dist/index.cjs221.js.map +1 -1
  273. package/dist/index.cjs222.js +1 -1
  274. package/dist/index.cjs222.js.map +1 -1
  275. package/dist/index.cjs223.js +1 -1
  276. package/dist/index.cjs223.js.map +1 -1
  277. package/dist/index.cjs224.js +1 -1
  278. package/dist/index.cjs224.js.map +1 -1
  279. package/dist/index.cjs225.js +1 -1
  280. package/dist/index.cjs225.js.map +1 -1
  281. package/dist/index.cjs226.js +1 -1
  282. package/dist/index.cjs226.js.map +1 -1
  283. package/dist/index.cjs227.js +1 -1
  284. package/dist/index.cjs227.js.map +1 -1
  285. package/dist/index.cjs228.js +1 -1
  286. package/dist/index.cjs228.js.map +1 -1
  287. package/dist/index.cjs229.js +1 -1
  288. package/dist/index.cjs229.js.map +1 -1
  289. package/dist/index.cjs23.js +1 -1
  290. package/dist/index.cjs23.js.map +1 -1
  291. package/dist/index.cjs230.js +1 -1
  292. package/dist/index.cjs230.js.map +1 -1
  293. package/dist/index.cjs231.js +1 -1
  294. package/dist/index.cjs231.js.map +1 -1
  295. package/dist/index.cjs232.js +1 -1
  296. package/dist/index.cjs232.js.map +1 -1
  297. package/dist/index.cjs233.js +1 -1
  298. package/dist/index.cjs233.js.map +1 -1
  299. package/dist/index.cjs234.js +1 -1
  300. package/dist/index.cjs234.js.map +1 -1
  301. package/dist/index.cjs235.js +1 -1
  302. package/dist/index.cjs235.js.map +1 -1
  303. package/dist/index.cjs236.js +1 -1
  304. package/dist/index.cjs236.js.map +1 -1
  305. package/dist/index.cjs237.js +1 -1
  306. package/dist/index.cjs237.js.map +1 -1
  307. package/dist/index.cjs238.js +1 -1
  308. package/dist/index.cjs238.js.map +1 -1
  309. package/dist/index.cjs239.js +1 -1
  310. package/dist/index.cjs239.js.map +1 -1
  311. package/dist/index.cjs24.js +1 -1
  312. package/dist/index.cjs24.js.map +1 -1
  313. package/dist/index.cjs240.js +1 -1
  314. package/dist/index.cjs240.js.map +1 -1
  315. package/dist/index.cjs241.js +1 -1
  316. package/dist/index.cjs241.js.map +1 -1
  317. package/dist/index.cjs242.js +1 -1
  318. package/dist/index.cjs242.js.map +1 -1
  319. package/dist/index.cjs243.js +1 -1
  320. package/dist/index.cjs243.js.map +1 -1
  321. package/dist/index.cjs244.js +1 -1
  322. package/dist/index.cjs244.js.map +1 -1
  323. package/dist/index.cjs245.js +1 -1
  324. package/dist/index.cjs245.js.map +1 -1
  325. package/dist/index.cjs246.js +1 -1
  326. package/dist/index.cjs246.js.map +1 -1
  327. package/dist/index.cjs247.js +1 -1
  328. package/dist/index.cjs247.js.map +1 -1
  329. package/dist/index.cjs248.js +1 -1
  330. package/dist/index.cjs248.js.map +1 -1
  331. package/dist/index.cjs249.js +1 -1
  332. package/dist/index.cjs249.js.map +1 -1
  333. package/dist/index.cjs25.js +1 -1
  334. package/dist/index.cjs25.js.map +1 -1
  335. package/dist/index.cjs250.js +1 -1
  336. package/dist/index.cjs250.js.map +1 -1
  337. package/dist/index.cjs251.js +1 -1
  338. package/dist/index.cjs251.js.map +1 -1
  339. package/dist/index.cjs252.js +1 -1
  340. package/dist/index.cjs252.js.map +1 -1
  341. package/dist/index.cjs253.js +1 -1
  342. package/dist/index.cjs253.js.map +1 -1
  343. package/dist/index.cjs254.js +1 -1
  344. package/dist/index.cjs254.js.map +1 -1
  345. package/dist/index.cjs255.js +2 -0
  346. package/dist/index.cjs255.js.map +1 -0
  347. package/dist/index.cjs256.js +2 -0
  348. package/dist/index.cjs256.js.map +1 -0
  349. package/dist/index.cjs257.js +2 -0
  350. package/dist/index.cjs257.js.map +1 -0
  351. package/dist/index.cjs258.js +2 -0
  352. package/dist/index.cjs258.js.map +1 -0
  353. package/dist/index.cjs259.js +2 -0
  354. package/dist/index.cjs259.js.map +1 -0
  355. package/dist/index.cjs26.js +1 -1
  356. package/dist/index.cjs26.js.map +1 -1
  357. package/dist/index.cjs260.js +2 -0
  358. package/dist/index.cjs260.js.map +1 -0
  359. package/dist/index.cjs261.js +2 -0
  360. package/dist/index.cjs261.js.map +1 -0
  361. package/dist/index.cjs262.js +2 -0
  362. package/dist/index.cjs262.js.map +1 -0
  363. package/dist/index.cjs263.js +2 -0
  364. package/dist/index.cjs263.js.map +1 -0
  365. package/dist/index.cjs264.js +2 -0
  366. package/dist/index.cjs264.js.map +1 -0
  367. package/dist/index.cjs265.js +2 -0
  368. package/dist/index.cjs265.js.map +1 -0
  369. package/dist/index.cjs266.js +2 -0
  370. package/dist/index.cjs266.js.map +1 -0
  371. package/dist/index.cjs267.js +2 -0
  372. package/dist/index.cjs267.js.map +1 -0
  373. package/dist/index.cjs268.js +2 -0
  374. package/dist/index.cjs268.js.map +1 -0
  375. package/dist/index.cjs269.js +2 -0
  376. package/dist/index.cjs269.js.map +1 -0
  377. package/dist/index.cjs27.js +1 -1
  378. package/dist/index.cjs27.js.map +1 -1
  379. package/dist/index.cjs270.js +2 -0
  380. package/dist/index.cjs270.js.map +1 -0
  381. package/dist/index.cjs28.js +1 -1
  382. package/dist/index.cjs28.js.map +1 -1
  383. package/dist/index.cjs29.js +1 -1
  384. package/dist/index.cjs29.js.map +1 -1
  385. package/dist/index.cjs3.js +1 -1
  386. package/dist/index.cjs3.js.map +1 -1
  387. package/dist/index.cjs30.js +1 -1
  388. package/dist/index.cjs30.js.map +1 -1
  389. package/dist/index.cjs31.js +1 -1
  390. package/dist/index.cjs31.js.map +1 -1
  391. package/dist/index.cjs32.js +1 -1
  392. package/dist/index.cjs32.js.map +1 -1
  393. package/dist/index.cjs33.js +1 -1
  394. package/dist/index.cjs33.js.map +1 -1
  395. package/dist/index.cjs34.js +1 -1
  396. package/dist/index.cjs34.js.map +1 -1
  397. package/dist/index.cjs35.js +1 -1
  398. package/dist/index.cjs35.js.map +1 -1
  399. package/dist/index.cjs36.js +1 -1
  400. package/dist/index.cjs36.js.map +1 -1
  401. package/dist/index.cjs37.js +1 -1
  402. package/dist/index.cjs37.js.map +1 -1
  403. package/dist/index.cjs38.js +1 -1
  404. package/dist/index.cjs38.js.map +1 -1
  405. package/dist/index.cjs39.js +1 -1
  406. package/dist/index.cjs39.js.map +1 -1
  407. package/dist/index.cjs4.js +1 -1
  408. package/dist/index.cjs40.js +1 -1
  409. package/dist/index.cjs40.js.map +1 -1
  410. package/dist/index.cjs41.js +1 -1
  411. package/dist/index.cjs41.js.map +1 -1
  412. package/dist/index.cjs42.js +1 -1
  413. package/dist/index.cjs42.js.map +1 -1
  414. package/dist/index.cjs43.js +1 -1
  415. package/dist/index.cjs43.js.map +1 -1
  416. package/dist/index.cjs44.js +1 -1
  417. package/dist/index.cjs44.js.map +1 -1
  418. package/dist/index.cjs45.js +1 -1
  419. package/dist/index.cjs45.js.map +1 -1
  420. package/dist/index.cjs46.js +1 -1
  421. package/dist/index.cjs48.js +1 -1
  422. package/dist/index.cjs48.js.map +1 -1
  423. package/dist/index.cjs49.js +1 -1
  424. package/dist/index.cjs49.js.map +1 -1
  425. package/dist/index.cjs5.js +1 -1
  426. package/dist/index.cjs5.js.map +1 -1
  427. package/dist/index.cjs50.js +1 -1
  428. package/dist/index.cjs50.js.map +1 -1
  429. package/dist/index.cjs51.js +1 -1
  430. package/dist/index.cjs51.js.map +1 -1
  431. package/dist/index.cjs52.js +1 -1
  432. package/dist/index.cjs52.js.map +1 -1
  433. package/dist/index.cjs54.js +9 -1
  434. package/dist/index.cjs54.js.map +1 -1
  435. package/dist/index.cjs55.js +13 -3
  436. package/dist/index.cjs55.js.map +1 -1
  437. package/dist/index.cjs56.js +1 -19
  438. package/dist/index.cjs56.js.map +1 -1
  439. package/dist/index.cjs57.js +1 -1
  440. package/dist/index.cjs57.js.map +1 -1
  441. package/dist/index.cjs58.js +1 -1
  442. package/dist/index.cjs58.js.map +1 -1
  443. package/dist/index.cjs59.js +1 -1
  444. package/dist/index.cjs59.js.map +1 -1
  445. package/dist/index.cjs6.js +1 -1
  446. package/dist/index.cjs60.js +1 -1
  447. package/dist/index.cjs61.js +1 -1
  448. package/dist/index.cjs61.js.map +1 -1
  449. package/dist/index.cjs62.js +1 -1
  450. package/dist/index.cjs62.js.map +1 -1
  451. package/dist/index.cjs63.js +1 -1
  452. package/dist/index.cjs63.js.map +1 -1
  453. package/dist/index.cjs64.js +1 -1
  454. package/dist/index.cjs64.js.map +1 -1
  455. package/dist/index.cjs65.js +1 -1
  456. package/dist/index.cjs65.js.map +1 -1
  457. package/dist/index.cjs66.js +1 -1
  458. package/dist/index.cjs66.js.map +1 -1
  459. package/dist/index.cjs67.js +1 -1
  460. package/dist/index.cjs67.js.map +1 -1
  461. package/dist/index.cjs68.js +1 -1
  462. package/dist/index.cjs68.js.map +1 -1
  463. package/dist/index.cjs69.js +1 -1
  464. package/dist/index.cjs69.js.map +1 -1
  465. package/dist/index.cjs7.js +1 -1
  466. package/dist/index.cjs70.js +1 -1
  467. package/dist/index.cjs70.js.map +1 -1
  468. package/dist/index.cjs71.js +1 -1
  469. package/dist/index.cjs71.js.map +1 -1
  470. package/dist/index.cjs72.js +1 -1
  471. package/dist/index.cjs72.js.map +1 -1
  472. package/dist/index.cjs73.js +1 -1
  473. package/dist/index.cjs73.js.map +1 -1
  474. package/dist/index.cjs74.js +1 -1
  475. package/dist/index.cjs74.js.map +1 -1
  476. package/dist/index.cjs75.js +1 -1
  477. package/dist/index.cjs75.js.map +1 -1
  478. package/dist/index.cjs76.js +1 -1
  479. package/dist/index.cjs76.js.map +1 -1
  480. package/dist/index.cjs77.js +1 -1
  481. package/dist/index.cjs77.js.map +1 -1
  482. package/dist/index.cjs78.js +1 -1
  483. package/dist/index.cjs78.js.map +1 -1
  484. package/dist/index.cjs79.js +1 -1
  485. package/dist/index.cjs79.js.map +1 -1
  486. package/dist/index.cjs8.js +1 -1
  487. package/dist/index.cjs80.js +1 -1
  488. package/dist/index.cjs80.js.map +1 -1
  489. package/dist/index.cjs81.js +1 -1
  490. package/dist/index.cjs81.js.map +1 -1
  491. package/dist/index.cjs82.js +1 -1
  492. package/dist/index.cjs82.js.map +1 -1
  493. package/dist/index.cjs83.js +1 -1
  494. package/dist/index.cjs83.js.map +1 -1
  495. package/dist/index.cjs84.js +1 -1
  496. package/dist/index.cjs84.js.map +1 -1
  497. package/dist/index.cjs85.js +1 -1
  498. package/dist/index.cjs85.js.map +1 -1
  499. package/dist/index.cjs86.js +1 -1
  500. package/dist/index.cjs86.js.map +1 -1
  501. package/dist/index.cjs87.js +1 -1
  502. package/dist/index.cjs87.js.map +1 -1
  503. package/dist/index.cjs88.js +1 -1
  504. package/dist/index.cjs88.js.map +1 -1
  505. package/dist/index.cjs89.js +1 -1
  506. package/dist/index.cjs89.js.map +1 -1
  507. package/dist/index.cjs9.js +1 -1
  508. package/dist/index.cjs9.js.map +1 -1
  509. package/dist/index.cjs90.js +1 -1
  510. package/dist/index.cjs90.js.map +1 -1
  511. package/dist/index.cjs91.js +1 -1
  512. package/dist/index.cjs91.js.map +1 -1
  513. package/dist/index.cjs92.js +1 -1
  514. package/dist/index.cjs92.js.map +1 -1
  515. package/dist/index.cjs93.js +1 -1
  516. package/dist/index.cjs93.js.map +1 -1
  517. package/dist/index.cjs94.js +1 -1
  518. package/dist/index.cjs94.js.map +1 -1
  519. package/dist/index.cjs95.js +1 -1
  520. package/dist/index.cjs95.js.map +1 -1
  521. package/dist/index.cjs96.js +1 -1
  522. package/dist/index.cjs96.js.map +1 -1
  523. package/dist/index.cjs97.js +1 -1
  524. package/dist/index.cjs97.js.map +1 -1
  525. package/dist/index.cjs98.js +1 -1
  526. package/dist/index.cjs98.js.map +1 -1
  527. package/dist/index.cjs99.js +1 -1
  528. package/dist/index.cjs99.js.map +1 -1
  529. package/dist/index.es.js +8 -6
  530. package/dist/index.es.js.map +1 -1
  531. package/dist/index.es10.js +39 -2102
  532. package/dist/index.es10.js.map +1 -1
  533. package/dist/index.es100.js +11 -10
  534. package/dist/index.es100.js.map +1 -1
  535. package/dist/index.es101.js +12 -3
  536. package/dist/index.es101.js.map +1 -1
  537. package/dist/index.es102.js +85 -5
  538. package/dist/index.es102.js.map +1 -1
  539. package/dist/index.es103.js +3 -3
  540. package/dist/index.es103.js.map +1 -1
  541. package/dist/index.es104.js +14 -7
  542. package/dist/index.es104.js.map +1 -1
  543. package/dist/index.es105.js +11 -7
  544. package/dist/index.es105.js.map +1 -1
  545. package/dist/index.es106.js +6 -7
  546. package/dist/index.es106.js.map +1 -1
  547. package/dist/index.es107.js +6 -8
  548. package/dist/index.es107.js.map +1 -1
  549. package/dist/index.es108.js +6 -3
  550. package/dist/index.es108.js.map +1 -1
  551. package/dist/index.es109.js +8 -4
  552. package/dist/index.es109.js.map +1 -1
  553. package/dist/index.es11.js +2102 -19
  554. package/dist/index.es11.js.map +1 -1
  555. package/dist/index.es110.js +4 -58
  556. package/dist/index.es110.js.map +1 -1
  557. package/dist/index.es111.js +4 -14
  558. package/dist/index.es111.js.map +1 -1
  559. package/dist/index.es112.js +4 -6
  560. package/dist/index.es112.js.map +1 -1
  561. package/dist/index.es113.js +6 -5
  562. package/dist/index.es113.js.map +1 -1
  563. package/dist/index.es114.js +5 -7
  564. package/dist/index.es114.js.map +1 -1
  565. package/dist/index.es115.js +3 -16
  566. package/dist/index.es115.js.map +1 -1
  567. package/dist/index.es116.js +6 -12
  568. package/dist/index.es116.js.map +1 -1
  569. package/dist/index.es117.js +12 -4
  570. package/dist/index.es117.js.map +1 -1
  571. package/dist/index.es118.js +10 -5
  572. package/dist/index.es118.js.map +1 -1
  573. package/dist/index.es119.js +3 -8
  574. package/dist/index.es119.js.map +1 -1
  575. package/dist/index.es12.js +19 -12
  576. package/dist/index.es12.js.map +1 -1
  577. package/dist/index.es120.js +3 -4
  578. package/dist/index.es120.js.map +1 -1
  579. package/dist/index.es121.js +2 -6
  580. package/dist/index.es121.js.map +1 -1
  581. package/dist/index.es122.js +7 -8
  582. package/dist/index.es122.js.map +1 -1
  583. package/dist/index.es123.js +8 -3
  584. package/dist/index.es123.js.map +1 -1
  585. package/dist/index.es124.js +8 -3
  586. package/dist/index.es124.js.map +1 -1
  587. package/dist/index.es125.js +8 -10
  588. package/dist/index.es125.js.map +1 -1
  589. package/dist/index.es126.js +4 -5
  590. package/dist/index.es126.js.map +1 -1
  591. package/dist/index.es127.js +4 -4
  592. package/dist/index.es127.js.map +1 -1
  593. package/dist/index.es128.js +57 -8
  594. package/dist/index.es128.js.map +1 -1
  595. package/dist/index.es129.js +13 -5
  596. package/dist/index.es129.js.map +1 -1
  597. package/dist/index.es13.js +12 -6
  598. package/dist/index.es13.js.map +1 -1
  599. package/dist/index.es130.js +5 -16
  600. package/dist/index.es130.js.map +1 -1
  601. package/dist/index.es131.js +5 -11
  602. package/dist/index.es131.js.map +1 -1
  603. package/dist/index.es132.js +9 -3
  604. package/dist/index.es132.js.map +1 -1
  605. package/dist/index.es133.js +17 -3
  606. package/dist/index.es133.js.map +1 -1
  607. package/dist/index.es134.js +13 -8
  608. package/dist/index.es134.js.map +1 -1
  609. package/dist/index.es135.js +4 -6
  610. package/dist/index.es135.js.map +1 -1
  611. package/dist/index.es136.js +5 -12
  612. package/dist/index.es136.js.map +1 -1
  613. package/dist/index.es137.js +8 -12
  614. package/dist/index.es137.js.map +1 -1
  615. package/dist/index.es138.js +6 -6
  616. package/dist/index.es138.js.map +1 -1
  617. package/dist/index.es139.js +6 -5
  618. package/dist/index.es139.js.map +1 -1
  619. package/dist/index.es14.js +6 -5
  620. package/dist/index.es14.js.map +1 -1
  621. package/dist/index.es140.js +8 -5
  622. package/dist/index.es140.js.map +1 -1
  623. package/dist/index.es141.js +3 -17
  624. package/dist/index.es141.js.map +1 -1
  625. package/dist/index.es142.js +3 -17
  626. package/dist/index.es142.js.map +1 -1
  627. package/dist/index.es143.js +10 -4
  628. package/dist/index.es143.js.map +1 -1
  629. package/dist/index.es144.js +5 -17
  630. package/dist/index.es144.js.map +1 -1
  631. package/dist/index.es145.js +4 -23
  632. package/dist/index.es145.js.map +1 -1
  633. package/dist/index.es146.js +9 -6
  634. package/dist/index.es146.js.map +1 -1
  635. package/dist/index.es147.js +6 -5
  636. package/dist/index.es147.js.map +1 -1
  637. package/dist/index.es148.js +17 -6
  638. package/dist/index.es148.js.map +1 -1
  639. package/dist/index.es149.js +12 -5
  640. package/dist/index.es149.js.map +1 -1
  641. package/dist/index.es15.js +6 -28
  642. package/dist/index.es15.js.map +1 -1
  643. package/dist/index.es150.js +3 -12
  644. package/dist/index.es150.js.map +1 -1
  645. package/dist/index.es151.js +3 -6
  646. package/dist/index.es151.js.map +1 -1
  647. package/dist/index.es152.js +8 -4
  648. package/dist/index.es152.js.map +1 -1
  649. package/dist/index.es153.js +5 -3
  650. package/dist/index.es153.js.map +1 -1
  651. package/dist/index.es154.js +12 -4
  652. package/dist/index.es154.js.map +1 -1
  653. package/dist/index.es155.js +12 -4
  654. package/dist/index.es155.js.map +1 -1
  655. package/dist/index.es156.js +6 -4
  656. package/dist/index.es156.js.map +1 -1
  657. package/dist/index.es157.js +5 -4
  658. package/dist/index.es157.js.map +1 -1
  659. package/dist/index.es158.js +5 -12
  660. package/dist/index.es158.js.map +1 -1
  661. package/dist/index.es159.js +16 -14
  662. package/dist/index.es159.js.map +1 -1
  663. package/dist/index.es16.js +6 -8
  664. package/dist/index.es16.js.map +1 -1
  665. package/dist/index.es160.js +16 -8
  666. package/dist/index.es160.js.map +1 -1
  667. package/dist/index.es161.js +4 -6
  668. package/dist/index.es161.js.map +1 -1
  669. package/dist/index.es162.js +16 -6
  670. package/dist/index.es162.js.map +1 -1
  671. package/dist/index.es163.js +22 -8
  672. package/dist/index.es163.js.map +1 -1
  673. package/dist/index.es164.js +6 -28
  674. package/dist/index.es164.js.map +1 -1
  675. package/dist/index.es165.js +5 -55
  676. package/dist/index.es165.js.map +1 -1
  677. package/dist/index.es166.js +8 -48
  678. package/dist/index.es166.js.map +1 -1
  679. package/dist/index.es167.js +7 -39
  680. package/dist/index.es167.js.map +1 -1
  681. package/dist/index.es168.js +13 -11
  682. package/dist/index.es168.js.map +1 -1
  683. package/dist/index.es169.js +7 -11
  684. package/dist/index.es169.js.map +1 -1
  685. package/dist/index.es17.js +5 -5
  686. package/dist/index.es17.js.map +1 -1
  687. package/dist/index.es170.js +6 -29
  688. package/dist/index.es170.js.map +1 -1
  689. package/dist/index.es171.js +6 -11
  690. package/dist/index.es171.js.map +1 -1
  691. package/dist/index.es172.js +6 -13
  692. package/dist/index.es172.js.map +1 -1
  693. package/dist/index.es173.js +4 -50
  694. package/dist/index.es173.js.map +1 -1
  695. package/dist/index.es174.js +4 -64
  696. package/dist/index.es174.js.map +1 -1
  697. package/dist/index.es175.js +5 -4
  698. package/dist/index.es175.js.map +1 -1
  699. package/dist/index.es176.js +12 -7
  700. package/dist/index.es176.js.map +1 -1
  701. package/dist/index.es177.js +12 -145
  702. package/dist/index.es177.js.map +1 -1
  703. package/dist/index.es178.js +8 -12196
  704. package/dist/index.es178.js.map +1 -1
  705. package/dist/index.es179.js +9 -3
  706. package/dist/index.es179.js.map +1 -1
  707. package/dist/index.es18.js +28 -10
  708. package/dist/index.es18.js.map +1 -1
  709. package/dist/index.es180.js +9 -3
  710. package/dist/index.es180.js.map +1 -1
  711. package/dist/index.es181.js +8 -35
  712. package/dist/index.es181.js.map +1 -1
  713. package/dist/index.es182.js +10 -3
  714. package/dist/index.es182.js.map +1 -1
  715. package/dist/index.es183.js +475 -20
  716. package/dist/index.es183.js.map +1 -1
  717. package/dist/index.es184.js +36 -2
  718. package/dist/index.es184.js.map +1 -1
  719. package/dist/index.es185.js +43 -3
  720. package/dist/index.es185.js.map +1 -1
  721. package/dist/index.es186.js +74 -2
  722. package/dist/index.es186.js.map +1 -1
  723. package/dist/index.es187.js +31 -30
  724. package/dist/index.es187.js.map +1 -1
  725. package/dist/index.es188.js +12196 -12
  726. package/dist/index.es188.js.map +1 -1
  727. package/dist/index.es189.js +3 -16
  728. package/dist/index.es189.js.map +1 -1
  729. package/dist/index.es19.js +8 -17
  730. package/dist/index.es19.js.map +1 -1
  731. package/dist/index.es190.js +3 -11
  732. package/dist/index.es190.js.map +1 -1
  733. package/dist/index.es191.js +34 -319
  734. package/dist/index.es191.js.map +1 -1
  735. package/dist/index.es192.js +3 -77
  736. package/dist/index.es192.js.map +1 -1
  737. package/dist/index.es193.js +23 -3
  738. package/dist/index.es193.js.map +1 -1
  739. package/dist/index.es194.js +2 -18
  740. package/dist/index.es194.js.map +1 -1
  741. package/dist/index.es195.js +3 -13
  742. package/dist/index.es195.js.map +1 -1
  743. package/dist/index.es196.js +2 -33
  744. package/dist/index.es196.js.map +1 -1
  745. package/dist/index.es197.js +31 -4
  746. package/dist/index.es197.js.map +1 -1
  747. package/dist/index.es198.js +13 -2
  748. package/dist/index.es198.js.map +1 -1
  749. package/dist/index.es199.js +13 -7
  750. package/dist/index.es199.js.map +1 -1
  751. package/dist/index.es2.js +3 -3
  752. package/dist/index.es20.js +5 -5
  753. package/dist/index.es20.js.map +1 -1
  754. package/dist/index.es200.js +8 -4
  755. package/dist/index.es200.js.map +1 -1
  756. package/dist/index.es201.js +321 -4
  757. package/dist/index.es201.js.map +1 -1
  758. package/dist/index.es202.js +75 -3
  759. package/dist/index.es202.js.map +1 -1
  760. package/dist/index.es203.js +2 -2
  761. package/dist/index.es203.js.map +1 -1
  762. package/dist/index.es204.js +15 -8
  763. package/dist/index.es204.js.map +1 -1
  764. package/dist/index.es205.js +10 -21
  765. package/dist/index.es205.js.map +1 -1
  766. package/dist/index.es206.js +29 -20
  767. package/dist/index.es206.js.map +1 -1
  768. package/dist/index.es207.js +4 -13
  769. package/dist/index.es207.js.map +1 -1
  770. package/dist/index.es208.js +2 -17
  771. package/dist/index.es208.js.map +1 -1
  772. package/dist/index.es209.js +7 -5
  773. package/dist/index.es209.js.map +1 -1
  774. package/dist/index.es21.js +10 -5
  775. package/dist/index.es21.js.map +1 -1
  776. package/dist/index.es210.js +4 -8
  777. package/dist/index.es210.js.map +1 -1
  778. package/dist/index.es211.js +4 -7
  779. package/dist/index.es211.js.map +1 -1
  780. package/dist/index.es212.js +3 -22
  781. package/dist/index.es212.js.map +1 -1
  782. package/dist/index.es213.js +3 -10
  783. package/dist/index.es213.js.map +1 -1
  784. package/dist/index.es214.js +9 -9
  785. package/dist/index.es214.js.map +1 -1
  786. package/dist/index.es215.js +22 -4
  787. package/dist/index.es215.js.map +1 -1
  788. package/dist/index.es216.js +21 -10
  789. package/dist/index.es216.js.map +1 -1
  790. package/dist/index.es217.js +13 -8
  791. package/dist/index.es217.js.map +1 -1
  792. package/dist/index.es218.js +16 -22
  793. package/dist/index.es218.js.map +1 -1
  794. package/dist/index.es219.js +5 -11
  795. package/dist/index.es219.js.map +1 -1
  796. package/dist/index.es22.js +17 -5
  797. package/dist/index.es22.js.map +1 -1
  798. package/dist/index.es220.js +8 -18
  799. package/dist/index.es220.js.map +1 -1
  800. package/dist/index.es221.js +7 -4
  801. package/dist/index.es221.js.map +1 -1
  802. package/dist/index.es222.js +20 -16
  803. package/dist/index.es222.js.map +1 -1
  804. package/dist/index.es223.js +8 -10
  805. package/dist/index.es223.js.map +1 -1
  806. package/dist/index.es224.js +9 -4
  807. package/dist/index.es224.js.map +1 -1
  808. package/dist/index.es225.js +3 -4
  809. package/dist/index.es225.js.map +1 -1
  810. package/dist/index.es226.js +10 -45
  811. package/dist/index.es226.js.map +1 -1
  812. package/dist/index.es227.js +8 -22
  813. package/dist/index.es227.js.map +1 -1
  814. package/dist/index.es228.js +23 -3
  815. package/dist/index.es228.js.map +1 -1
  816. package/dist/index.es229.js +10 -6
  817. package/dist/index.es229.js.map +1 -1
  818. package/dist/index.es23.js +5 -7
  819. package/dist/index.es23.js.map +1 -1
  820. package/dist/index.es230.js +17 -4
  821. package/dist/index.es230.js.map +1 -1
  822. package/dist/index.es231.js +4 -25
  823. package/dist/index.es231.js.map +1 -1
  824. package/dist/index.es232.js +17 -16
  825. package/dist/index.es232.js.map +1 -1
  826. package/dist/index.es233.js +11 -30
  827. package/dist/index.es233.js.map +1 -1
  828. package/dist/index.es234.js +3 -21
  829. package/dist/index.es234.js.map +1 -1
  830. package/dist/index.es235.js +4 -75
  831. package/dist/index.es235.js.map +1 -1
  832. package/dist/index.es236.js +2 -21
  833. package/dist/index.es236.js.map +1 -1
  834. package/dist/index.es237.js +231 -45
  835. package/dist/index.es237.js.map +1 -1
  836. package/dist/index.es238.js +4 -55
  837. package/dist/index.es238.js.map +1 -1
  838. package/dist/index.es239.js +4 -9
  839. package/dist/index.es239.js.map +1 -1
  840. package/dist/index.es24.js +5 -7
  841. package/dist/index.es24.js.map +1 -1
  842. package/dist/index.es240.js +4 -21
  843. package/dist/index.es240.js.map +1 -1
  844. package/dist/index.es241.js +3 -66
  845. package/dist/index.es241.js.map +1 -1
  846. package/dist/index.es242.js +42 -39
  847. package/dist/index.es242.js.map +1 -1
  848. package/dist/index.es243.js +21 -64
  849. package/dist/index.es243.js.map +1 -1
  850. package/dist/index.es244.js +5 -8
  851. package/dist/index.es244.js.map +1 -1
  852. package/dist/index.es245.js +7 -3
  853. package/dist/index.es245.js.map +1 -1
  854. package/dist/index.es246.js +2 -13
  855. package/dist/index.es246.js.map +1 -1
  856. package/dist/index.es247.js +21 -56
  857. package/dist/index.es247.js.map +1 -1
  858. package/dist/index.es248.js +14 -54
  859. package/dist/index.es248.js.map +1 -1
  860. package/dist/index.es249.js +30 -2
  861. package/dist/index.es249.js.map +1 -1
  862. package/dist/index.es25.js +5 -4
  863. package/dist/index.es25.js.map +1 -1
  864. package/dist/index.es250.js +21 -15
  865. package/dist/index.es250.js.map +1 -1
  866. package/dist/index.es251.js +75 -4
  867. package/dist/index.es251.js.map +1 -1
  868. package/dist/index.es252.js +18 -68
  869. package/dist/index.es252.js.map +1 -1
  870. package/dist/index.es253.js +48 -3
  871. package/dist/index.es253.js.map +1 -1
  872. package/dist/index.es254.js +51 -21
  873. package/dist/index.es254.js.map +1 -1
  874. package/dist/index.es255.js +12 -0
  875. package/dist/index.es255.js.map +1 -0
  876. package/dist/index.es256.js +24 -0
  877. package/dist/index.es256.js.map +1 -0
  878. package/dist/index.es257.js +69 -0
  879. package/dist/index.es257.js.map +1 -0
  880. package/dist/index.es258.js +46 -0
  881. package/dist/index.es258.js.map +1 -0
  882. package/dist/index.es259.js +69 -0
  883. package/dist/index.es259.js.map +1 -0
  884. package/dist/index.es26.js +7 -4
  885. package/dist/index.es26.js.map +1 -1
  886. package/dist/index.es260.js +12 -0
  887. package/dist/index.es260.js.map +1 -0
  888. package/dist/index.es261.js +7 -0
  889. package/dist/index.es261.js.map +1 -0
  890. package/dist/index.es262.js +16 -0
  891. package/dist/index.es262.js.map +1 -0
  892. package/dist/index.es263.js +63 -0
  893. package/dist/index.es263.js.map +1 -0
  894. package/dist/index.es264.js +60 -0
  895. package/dist/index.es264.js.map +1 -0
  896. package/dist/index.es265.js +19 -0
  897. package/dist/index.es265.js.map +1 -0
  898. package/dist/index.es266.js +6 -0
  899. package/dist/index.es266.js.map +1 -0
  900. package/dist/index.es267.js +8 -0
  901. package/dist/index.es267.js.map +1 -0
  902. package/dist/index.es268.js +74 -0
  903. package/dist/index.es268.js.map +1 -0
  904. package/dist/index.es269.js +7 -0
  905. package/dist/index.es269.js.map +1 -0
  906. package/dist/index.es27.js +6 -6
  907. package/dist/index.es27.js.map +1 -1
  908. package/dist/index.es270.js +28 -0
  909. package/dist/index.es270.js.map +1 -0
  910. package/dist/index.es28.js +4 -15
  911. package/dist/index.es28.js.map +1 -1
  912. package/dist/index.es29.js +4 -12
  913. package/dist/index.es29.js.map +1 -1
  914. package/dist/index.es3.js +22 -63
  915. package/dist/index.es3.js.map +1 -1
  916. package/dist/index.es30.js +7 -15
  917. package/dist/index.es30.js.map +1 -1
  918. package/dist/index.es31.js +14 -6
  919. package/dist/index.es31.js.map +1 -1
  920. package/dist/index.es32.js +12 -5
  921. package/dist/index.es32.js.map +1 -1
  922. package/dist/index.es33.js +15 -4
  923. package/dist/index.es33.js.map +1 -1
  924. package/dist/index.es34.js +6 -17
  925. package/dist/index.es34.js.map +1 -1
  926. package/dist/index.es35.js +5 -18
  927. package/dist/index.es35.js.map +1 -1
  928. package/dist/index.es36.js +4 -14
  929. package/dist/index.es36.js.map +1 -1
  930. package/dist/index.es37.js +17 -5
  931. package/dist/index.es37.js.map +1 -1
  932. package/dist/index.es38.js +17 -6
  933. package/dist/index.es38.js.map +1 -1
  934. package/dist/index.es39.js +13 -9
  935. package/dist/index.es39.js.map +1 -1
  936. package/dist/index.es4.js +8 -8
  937. package/dist/index.es40.js +6 -4
  938. package/dist/index.es40.js.map +1 -1
  939. package/dist/index.es41.js +6 -18
  940. package/dist/index.es41.js.map +1 -1
  941. package/dist/index.es42.js +10 -6
  942. package/dist/index.es42.js.map +1 -1
  943. package/dist/index.es43.js +4 -6
  944. package/dist/index.es43.js.map +1 -1
  945. package/dist/index.es44.js +21 -1
  946. package/dist/index.es44.js.map +1 -1
  947. package/dist/index.es45.js +1 -39
  948. package/dist/index.es45.js.map +1 -1
  949. package/dist/index.es46.js +2 -2
  950. package/dist/index.es48.js +245 -61
  951. package/dist/index.es48.js.map +1 -1
  952. package/dist/index.es49.js +66 -9
  953. package/dist/index.es49.js.map +1 -1
  954. package/dist/index.es5.js +30 -22
  955. package/dist/index.es5.js.map +1 -1
  956. package/dist/index.es50.js +8 -9
  957. package/dist/index.es50.js.map +1 -1
  958. package/dist/index.es51.js +9 -84
  959. package/dist/index.es51.js.map +1 -1
  960. package/dist/index.es52.js +84 -5
  961. package/dist/index.es52.js.map +1 -1
  962. package/dist/index.es53.js +2 -2
  963. package/dist/index.es54.js +30 -2
  964. package/dist/index.es54.js.map +1 -1
  965. package/dist/index.es55.js +593 -21
  966. package/dist/index.es55.js.map +1 -1
  967. package/dist/index.es56.js +26 -600
  968. package/dist/index.es56.js.map +1 -1
  969. package/dist/index.es57.js +2 -107
  970. package/dist/index.es57.js.map +1 -1
  971. package/dist/index.es58.js +107 -10
  972. package/dist/index.es58.js.map +1 -1
  973. package/dist/index.es59.js +10 -2
  974. package/dist/index.es59.js.map +1 -1
  975. package/dist/index.es6.js +6 -6
  976. package/dist/index.es60.js +2 -2
  977. package/dist/index.es61.js +29 -2
  978. package/dist/index.es61.js.map +1 -1
  979. package/dist/index.es62.js +89 -273
  980. package/dist/index.es62.js.map +1 -1
  981. package/dist/index.es63.js +75 -14
  982. package/dist/index.es63.js.map +1 -1
  983. package/dist/index.es64.js +38 -18
  984. package/dist/index.es64.js.map +1 -1
  985. package/dist/index.es65.js +28 -4
  986. package/dist/index.es65.js.map +1 -1
  987. package/dist/index.es66.js +2 -4
  988. package/dist/index.es66.js.map +1 -1
  989. package/dist/index.es67.js +2 -4
  990. package/dist/index.es67.js.map +1 -1
  991. package/dist/index.es68.js +27 -4
  992. package/dist/index.es68.js.map +1 -1
  993. package/dist/index.es69.js +54 -3
  994. package/dist/index.es69.js.map +1 -1
  995. package/dist/index.es7.js +7 -7
  996. package/dist/index.es70.js +48 -5
  997. package/dist/index.es70.js.map +1 -1
  998. package/dist/index.es71.js +39 -5
  999. package/dist/index.es71.js.map +1 -1
  1000. package/dist/index.es72.js +12 -5
  1001. package/dist/index.es72.js.map +1 -1
  1002. package/dist/index.es73.js +12 -5
  1003. package/dist/index.es73.js.map +1 -1
  1004. package/dist/index.es74.js +30 -5
  1005. package/dist/index.es74.js.map +1 -1
  1006. package/dist/index.es75.js +12 -5
  1007. package/dist/index.es75.js.map +1 -1
  1008. package/dist/index.es76.js +14 -5
  1009. package/dist/index.es76.js.map +1 -1
  1010. package/dist/index.es77.js +50 -9
  1011. package/dist/index.es77.js.map +1 -1
  1012. package/dist/index.es78.js +65 -4
  1013. package/dist/index.es78.js.map +1 -1
  1014. package/dist/index.es79.js +4 -6
  1015. package/dist/index.es79.js.map +1 -1
  1016. package/dist/index.es8.js +2 -2
  1017. package/dist/index.es80.js +273 -6
  1018. package/dist/index.es80.js.map +1 -1
  1019. package/dist/index.es81.js +14 -9
  1020. package/dist/index.es81.js.map +1 -1
  1021. package/dist/index.es82.js +18 -11
  1022. package/dist/index.es82.js.map +1 -1
  1023. package/dist/index.es83.js +4 -12
  1024. package/dist/index.es83.js.map +1 -1
  1025. package/dist/index.es84.js +3 -85
  1026. package/dist/index.es84.js.map +1 -1
  1027. package/dist/index.es85.js +4 -3
  1028. package/dist/index.es85.js.map +1 -1
  1029. package/dist/index.es86.js +4 -14
  1030. package/dist/index.es86.js.map +1 -1
  1031. package/dist/index.es87.js +3 -11
  1032. package/dist/index.es87.js.map +1 -1
  1033. package/dist/index.es88.js +3 -7
  1034. package/dist/index.es88.js.map +1 -1
  1035. package/dist/index.es89.js +3 -7
  1036. package/dist/index.es89.js.map +1 -1
  1037. package/dist/index.es9.js +19 -9
  1038. package/dist/index.es9.js.map +1 -1
  1039. package/dist/index.es90.js +3 -7
  1040. package/dist/index.es90.js.map +1 -1
  1041. package/dist/index.es91.js +3 -8
  1042. package/dist/index.es91.js.map +1 -1
  1043. package/dist/index.es92.js +3 -4
  1044. package/dist/index.es92.js.map +1 -1
  1045. package/dist/index.es93.js +3 -4
  1046. package/dist/index.es93.js.map +1 -1
  1047. package/dist/index.es94.js +3 -4
  1048. package/dist/index.es94.js.map +1 -1
  1049. package/dist/index.es95.js +9 -6
  1050. package/dist/index.es95.js.map +1 -1
  1051. package/dist/index.es96.js +4 -7
  1052. package/dist/index.es96.js.map +1 -1
  1053. package/dist/index.es97.js +5 -3
  1054. package/dist/index.es97.js.map +1 -1
  1055. package/dist/index.es98.js +5 -7
  1056. package/dist/index.es98.js.map +1 -1
  1057. package/dist/index.es99.js +9 -12
  1058. package/dist/index.es99.js.map +1 -1
  1059. package/package.json +3 -2
  1060. package/src/components/GeoJsonLayer.js +10 -66
  1061. package/src/components/LocationMarkers.js +75 -10
  1062. package/src/index.js +1 -0
  1063. package/src/utils/Map.js +40 -1
  1064. package/src/utils/MapStyles.js +9 -3
  1065. package/types/components/GeoJsonLayer.js.flow +10 -66
  1066. package/types/components/LocationMarkers.js.flow +75 -10
  1067. package/types/index.js.flow +1 -0
  1068. package/types/utils/Map.js.flow +40 -1
  1069. package/types/utils/MapStyles.js.flow +9 -3
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var i=63710088e-1,l={centimeters:i*100,centimetres:i*100,degrees:i/111325,feet:i*3.28084,inches:i*39.37,kilometers:i/1e3,kilometres:i/1e3,meters:i,metres:i,miles:i/1609.344,millimeters:i*1e3,millimetres:i*1e3,nauticalmiles:i/1852,radians:1,yards:i*1.0936};function u(t,r,e){e===void 0&&(e={});var a={type:"Feature"};return(e.id===0||e.id)&&(a.id=e.id),e.bbox&&(a.bbox=e.bbox),a.properties=r||{},a.geometry=t,a}function m(t,r,e){if(e===void 0&&(e={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!f(t[0])||!f(t[1]))throw new Error("coordinates must contain numbers");var a={type:"Point",coordinates:t};return u(a,r,e)}function h(t,r,e){e===void 0&&(e={});for(var a=0,s=t;a<s.length;a++){var o=s[a];if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var n=0;n<o[o.length-1].length;n++)if(o[o.length-1][n]!==o[0][n])throw new Error("First and last Position are not equivalent.")}var d={type:"Polygon",coordinates:t};return u(d,r,e)}function v(t,r){r===void 0&&(r={});var e={type:"FeatureCollection"};return r.id&&(e.id=r.id),r.bbox&&(e.bbox=r.bbox),e.features=t,e}function b(t,r){r===void 0&&(r="kilometers");var e=l[r];if(!e)throw new Error(r+" units is invalid");return t*e}function c(t,r){r===void 0&&(r="kilometers");var e=l[r];if(!e)throw new Error(r+" units is invalid");return t/e}function f(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}exports.earthRadius=i;exports.factors=l;exports.feature=u;exports.featureCollection=v;exports.isNumber=f;exports.lengthToRadians=c;exports.point=m;exports.polygon=h;exports.radiansToLength=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=63710088e-1,c={centimeters:n*100,centimetres:n*100,degrees:n/111325,feet:n*3.28084,inches:n*39.37,kilometers:n/1e3,kilometres:n/1e3,meters:n,metres:n,miles:n/1609.344,millimeters:n*1e3,millimetres:n*1e3,nauticalmiles:n/1852,radians:1,yards:n*1.0936},T={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n,yards:1.0936133},s={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function o(t,e,r){r===void 0&&(r={});var i={type:"Feature"};return(r.id===0||r.id)&&(i.id=r.id),r.bbox&&(i.bbox=r.bbox),i.properties=e||{},i.geometry=t,i}function M(t,e,r){switch(t){case"Point":return g(e).geometry;case"LineString":return v(e).geometry;case"Polygon":return d(e).geometry;case"MultiPoint":return w(e).geometry;case"MultiLineString":return y(e).geometry;case"MultiPolygon":return b(e).geometry;default:throw new Error(t+" is invalid")}}function g(t,e,r){if(r===void 0&&(r={}),!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!f(t[0])||!f(t[1]))throw new Error("coordinates must contain numbers");var i={type:"Point",coordinates:t};return o(i,e,r)}function S(t,e,r){return r===void 0&&(r={}),m(t.map(function(i){return g(i,e)}),r)}function d(t,e,r){r===void 0&&(r={});for(var i=0,u=t;i<u.length;i++){var a=u[i];if(a.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<a[a.length-1].length;l++)if(a[a.length-1][l]!==a[0][l])throw new Error("First and last Position are not equivalent.")}var A={type:"Polygon",coordinates:t};return o(A,e,r)}function k(t,e,r){return r===void 0&&(r={}),m(t.map(function(i){return d(i,e)}),r)}function v(t,e,r){if(r===void 0&&(r={}),t.length<2)throw new Error("coordinates must be an array of two or more positions");var i={type:"LineString",coordinates:t};return o(i,e,r)}function L(t,e,r){return r===void 0&&(r={}),m(t.map(function(i){return v(i,e)}),r)}function m(t,e){e===void 0&&(e={});var r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function y(t,e,r){r===void 0&&(r={});var i={type:"MultiLineString",coordinates:t};return o(i,e,r)}function w(t,e,r){r===void 0&&(r={});var i={type:"MultiPoint",coordinates:t};return o(i,e,r)}function b(t,e,r){r===void 0&&(r={});var i={type:"MultiPolygon",coordinates:t};return o(i,e,r)}function x(t,e,r){r===void 0&&(r={});var i={type:"GeometryCollection",geometries:t};return o(i,e,r)}function F(t,e){if(e===void 0&&(e=0),e&&!(e>=0))throw new Error("precision must be a positive number");var r=Math.pow(10,e||0);return Math.round(t*r)/r}function E(t,e){e===void 0&&(e="kilometers");var r=c[e];if(!r)throw new Error(e+" units is invalid");return t*r}function h(t,e){e===void 0&&(e="kilometers");var r=c[e];if(!r)throw new Error(e+" units is invalid");return t/r}function R(t,e){return P(h(t,e))}function C(t){var e=t%360;return e<0&&(e+=360),e}function P(t){var e=t%(2*Math.PI);return e*180/Math.PI}function I(t){var e=t%360;return e*Math.PI/180}function O(t,e,r){if(e===void 0&&(e="kilometers"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("length must be a positive number");return E(h(t,e),r)}function q(t,e,r){if(e===void 0&&(e="meters"),r===void 0&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var i=s[e];if(!i)throw new Error("invalid original units");var u=s[r];if(!u)throw new Error("invalid final units");return t/i*u}function f(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function B(t){return!!t&&t.constructor===Object}function D(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(t.length!==4&&t.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(e){if(!f(e))throw new Error("bbox must only contain numbers")})}function N(t){if(!t)throw new Error("id is required");if(["string","number"].indexOf(typeof t)===-1)throw new Error("id must be a number or a string")}exports.areaFactors=s;exports.bearingToAzimuth=C;exports.convertArea=q;exports.convertLength=O;exports.degreesToRadians=I;exports.earthRadius=n;exports.factors=c;exports.feature=o;exports.featureCollection=m;exports.geometry=M;exports.geometryCollection=x;exports.isNumber=f;exports.isObject=B;exports.lengthToDegrees=R;exports.lengthToRadians=h;exports.lineString=v;exports.lineStrings=L;exports.multiLineString=y;exports.multiPoint=w;exports.multiPolygon=b;exports.point=g;exports.points=S;exports.polygon=d;exports.polygons=k;exports.radiansToDegrees=P;exports.radiansToLength=E;exports.round=F;exports.unitsFactors=T;exports.validateBBox=D;exports.validateId=N;
2
2
  //# sourceMappingURL=index.cjs48.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs48.js","sources":["../../../node_modules/@turf/helpers/dist/es/index.js"],"sourcesContent":["/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexport var earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var factors = {\n centimeters: earthRadius * 100,\n centimetres: earthRadius * 100,\n degrees: earthRadius / 111325,\n feet: earthRadius * 3.28084,\n inches: earthRadius * 39.37,\n kilometers: earthRadius / 1000,\n kilometres: earthRadius / 1000,\n meters: earthRadius,\n metres: earthRadius,\n miles: earthRadius / 1609.344,\n millimeters: earthRadius * 1000,\n millimetres: earthRadius * 1000,\n nauticalmiles: earthRadius / 1852,\n radians: 1,\n yards: earthRadius * 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.37,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / earthRadius,\n yards: 1.0936133,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n hectares: 0.0001,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nexport function feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array<any>} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nexport function geometry(type, coordinates, _options) {\n if (_options === void 0) { _options = {}; }\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array<number>} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Point>} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nexport function point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array<Array<number>>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Point>} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nexport function points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Polygon>} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nexport function polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Polygon>} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nexport function polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<LineString>} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nexport function lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<LineString>} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nexport function lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nexport function featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\n/**\n * Creates a {@link Feature<MultiLineString>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array<Array<Array<number>>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiLineString>} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nexport function multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPoint>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPoint>} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nexport function multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPolygon>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPolygon>} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nexport function multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<GeometryCollection>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array<Geometry>} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<GeometryCollection>} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nexport function geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nexport function round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nexport function radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nexport function lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nexport function lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nexport function bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nexport function radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return (degrees * 180) / Math.PI;\n}\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nexport function degreesToRadians(degrees) {\n var radians = degrees % 360;\n return (radians * Math.PI) / 180;\n}\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nexport function convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches, hectares\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted area\n */\nexport function convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nexport function isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nexport function isObject(input) {\n return !!input && input.constructor === Object;\n}\n/**\n * Validate BBox\n *\n * @private\n * @param {Array<number>} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nexport function validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nexport function validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\n"],"names":["earthRadius","factors","feature","geom","properties","options","feat","point","coordinates","isNumber","polygon","_i","coordinates_1","ring","j","featureCollection","features","fc","radiansToLength","radians","units","factor","lengthToRadians","distance","num"],"mappings":"gFASO,IAAIA,EAAc,YAOdC,EAAU,CACjB,YAAaD,EAAc,IAC3B,YAAaA,EAAc,IAC3B,QAASA,EAAc,OACvB,KAAMA,EAAc,QACpB,OAAQA,EAAc,MACtB,WAAYA,EAAc,IAC1B,WAAYA,EAAc,IAC1B,OAAQA,EACR,OAAQA,EACR,MAAOA,EAAc,SACrB,YAAaA,EAAc,IAC3B,YAAaA,EAAc,IAC3B,cAAeA,EAAc,KAC7B,QAAS,EACT,MAAOA,EAAc,MACzB,EAkEgB,SAAAE,EAAQC,EAAMC,EAAYC,EAAS,CAC3CA,IAAY,SAAUA,EAAU,CAAA,GAChC,IAAAC,EAAO,CAAE,KAAM,WACnB,OAAID,EAAQ,KAAO,GAAKA,EAAQ,MAC5BC,EAAK,GAAKD,EAAQ,IAElBA,EAAQ,OACRC,EAAK,KAAOD,EAAQ,MAEnBC,EAAA,WAAaF,GAAc,GAChCE,EAAK,SAAWH,EACTG,CACX,CAkDgB,SAAAC,EAAMC,EAAaJ,EAAYC,EAAS,CAEpD,GADIA,IAAY,SAAUA,EAAU,CAAA,GAChC,CAACG,EACK,MAAA,IAAI,MAAM,yBAAyB,EAE7C,GAAI,CAA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AmB,EAE/C,OAAOD,EAAUE,CACrB,CAWgB,SAAAC,EAAgBC,EAAUH,EAAO,CACzCA,IAAU,SAAkBA,EAAA,cAC5B,IAAAC,EAASpB,EAAQmB,CAAK,EAC1B,GAAI,CAACC,EACK,MAAA,IAAI,MAAMD,EAAQ,mBAAmB,EAE/C,OAAOG,EAAWF,CACtB,CAuGO,SAASZ,EAASe,EAAK,CACnB,MAAA,CAAC,MAAMA,CAAG,GAAKA,IAAQ,MAAQ,CAAC,MAAM,QAAQA,CAAG,CAC5D","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs48.js","sources":["../../../node_modules/@turf/helpers/dist/es/index.js"],"sourcesContent":["/**\n * @module helpers\n */\n/**\n * Earth Radius used with the Harvesine formula and approximates using a spherical (non-ellipsoid) Earth.\n *\n * @memberof helpers\n * @type {number}\n */\nexport var earthRadius = 6371008.8;\n/**\n * Unit of measurement factors using a spherical (non-ellipsoid) earth radius.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var factors = {\n centimeters: earthRadius * 100,\n centimetres: earthRadius * 100,\n degrees: earthRadius / 111325,\n feet: earthRadius * 3.28084,\n inches: earthRadius * 39.37,\n kilometers: earthRadius / 1000,\n kilometres: earthRadius / 1000,\n meters: earthRadius,\n metres: earthRadius,\n miles: earthRadius / 1609.344,\n millimeters: earthRadius * 1000,\n millimetres: earthRadius * 1000,\n nauticalmiles: earthRadius / 1852,\n radians: 1,\n yards: earthRadius * 1.0936,\n};\n/**\n * Units of measurement factors based on 1 meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var unitsFactors = {\n centimeters: 100,\n centimetres: 100,\n degrees: 1 / 111325,\n feet: 3.28084,\n inches: 39.37,\n kilometers: 1 / 1000,\n kilometres: 1 / 1000,\n meters: 1,\n metres: 1,\n miles: 1 / 1609.344,\n millimeters: 1000,\n millimetres: 1000,\n nauticalmiles: 1 / 1852,\n radians: 1 / earthRadius,\n yards: 1.0936133,\n};\n/**\n * Area of measurement factors based on 1 square meter.\n *\n * @memberof helpers\n * @type {Object}\n */\nexport var areaFactors = {\n acres: 0.000247105,\n centimeters: 10000,\n centimetres: 10000,\n feet: 10.763910417,\n hectares: 0.0001,\n inches: 1550.003100006,\n kilometers: 0.000001,\n kilometres: 0.000001,\n meters: 1,\n metres: 1,\n miles: 3.86e-7,\n millimeters: 1000000,\n millimetres: 1000000,\n yards: 1.195990046,\n};\n/**\n * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}.\n *\n * @name feature\n * @param {Geometry} geometry input geometry\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature} a GeoJSON Feature\n * @example\n * var geometry = {\n * \"type\": \"Point\",\n * \"coordinates\": [110, 50]\n * };\n *\n * var feature = turf.feature(geometry);\n *\n * //=feature\n */\nexport function feature(geom, properties, options) {\n if (options === void 0) { options = {}; }\n var feat = { type: \"Feature\" };\n if (options.id === 0 || options.id) {\n feat.id = options.id;\n }\n if (options.bbox) {\n feat.bbox = options.bbox;\n }\n feat.properties = properties || {};\n feat.geometry = geom;\n return feat;\n}\n/**\n * Creates a GeoJSON {@link Geometry} from a Geometry string type & coordinates.\n * For GeometryCollection type use `helpers.geometryCollection`\n *\n * @name geometry\n * @param {string} type Geometry Type\n * @param {Array<any>} coordinates Coordinates\n * @param {Object} [options={}] Optional Parameters\n * @returns {Geometry} a GeoJSON Geometry\n * @example\n * var type = \"Point\";\n * var coordinates = [110, 50];\n * var geometry = turf.geometry(type, coordinates);\n * // => geometry\n */\nexport function geometry(type, coordinates, _options) {\n if (_options === void 0) { _options = {}; }\n switch (type) {\n case \"Point\":\n return point(coordinates).geometry;\n case \"LineString\":\n return lineString(coordinates).geometry;\n case \"Polygon\":\n return polygon(coordinates).geometry;\n case \"MultiPoint\":\n return multiPoint(coordinates).geometry;\n case \"MultiLineString\":\n return multiLineString(coordinates).geometry;\n case \"MultiPolygon\":\n return multiPolygon(coordinates).geometry;\n default:\n throw new Error(type + \" is invalid\");\n }\n}\n/**\n * Creates a {@link Point} {@link Feature} from a Position.\n *\n * @name point\n * @param {Array<number>} coordinates longitude, latitude position (each in decimal degrees)\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Point>} a Point feature\n * @example\n * var point = turf.point([-75.343, 39.984]);\n *\n * //=point\n */\nexport function point(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (!coordinates) {\n throw new Error(\"coordinates is required\");\n }\n if (!Array.isArray(coordinates)) {\n throw new Error(\"coordinates must be an Array\");\n }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be at least 2 numbers long\");\n }\n if (!isNumber(coordinates[0]) || !isNumber(coordinates[1])) {\n throw new Error(\"coordinates must contain numbers\");\n }\n var geom = {\n type: \"Point\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Point} {@link FeatureCollection} from an Array of Point coordinates.\n *\n * @name points\n * @param {Array<Array<number>>} coordinates an array of Points\n * @param {Object} [properties={}] Translate these properties to each Feature\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Point>} Point Feature\n * @example\n * var points = turf.points([\n * [-75, 39],\n * [-80, 45],\n * [-78, 50]\n * ]);\n *\n * //=points\n */\nexport function points(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return point(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link Polygon} {@link Feature} from an Array of LinearRings.\n *\n * @name polygon\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<Polygon>} Polygon Feature\n * @example\n * var polygon = turf.polygon([[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]], { name: 'poly1' });\n *\n * //=polygon\n */\nexport function polygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n for (var _i = 0, coordinates_1 = coordinates; _i < coordinates_1.length; _i++) {\n var ring = coordinates_1[_i];\n if (ring.length < 4) {\n throw new Error(\"Each LinearRing of a Polygon must have 4 or more Positions.\");\n }\n for (var j = 0; j < ring[ring.length - 1].length; j++) {\n // Check if first point of Polygon contains two numbers\n if (ring[ring.length - 1][j] !== ring[0][j]) {\n throw new Error(\"First and last Position are not equivalent.\");\n }\n }\n }\n var geom = {\n type: \"Polygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Polygon} {@link FeatureCollection} from an Array of Polygon coordinates.\n *\n * @name polygons\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygon coordinates\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<Polygon>} Polygon FeatureCollection\n * @example\n * var polygons = turf.polygons([\n * [[[-5, 52], [-4, 56], [-2, 51], [-7, 54], [-5, 52]]],\n * [[[-15, 42], [-14, 46], [-12, 41], [-17, 44], [-15, 42]]],\n * ]);\n *\n * //=polygons\n */\nexport function polygons(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return polygon(coords, properties);\n }), options);\n}\n/**\n * Creates a {@link LineString} {@link Feature} from an Array of Positions.\n *\n * @name lineString\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<LineString>} LineString Feature\n * @example\n * var linestring1 = turf.lineString([[-24, 63], [-23, 60], [-25, 65], [-20, 69]], {name: 'line 1'});\n * var linestring2 = turf.lineString([[-14, 43], [-13, 40], [-15, 45], [-10, 49]], {name: 'line 2'});\n *\n * //=linestring1\n * //=linestring2\n */\nexport function lineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n if (coordinates.length < 2) {\n throw new Error(\"coordinates must be an array of two or more positions\");\n }\n var geom = {\n type: \"LineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link LineString} {@link FeatureCollection} from an Array of LineString coordinates.\n *\n * @name lineStrings\n * @param {Array<Array<Array<number>>>} coordinates an array of LinearRings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north]\n * associated with the FeatureCollection\n * @param {string|number} [options.id] Identifier associated with the FeatureCollection\n * @returns {FeatureCollection<LineString>} LineString FeatureCollection\n * @example\n * var linestrings = turf.lineStrings([\n * [[-24, 63], [-23, 60], [-25, 65], [-20, 69]],\n * [[-14, 43], [-13, 40], [-15, 45], [-10, 49]]\n * ]);\n *\n * //=linestrings\n */\nexport function lineStrings(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n return featureCollection(coordinates.map(function (coords) {\n return lineString(coords, properties);\n }), options);\n}\n/**\n * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}.\n *\n * @name featureCollection\n * @param {Feature[]} features input features\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {FeatureCollection} FeatureCollection of Features\n * @example\n * var locationA = turf.point([-75.343, 39.984], {name: 'Location A'});\n * var locationB = turf.point([-75.833, 39.284], {name: 'Location B'});\n * var locationC = turf.point([-75.534, 39.123], {name: 'Location C'});\n *\n * var collection = turf.featureCollection([\n * locationA,\n * locationB,\n * locationC\n * ]);\n *\n * //=collection\n */\nexport function featureCollection(features, options) {\n if (options === void 0) { options = {}; }\n var fc = { type: \"FeatureCollection\" };\n if (options.id) {\n fc.id = options.id;\n }\n if (options.bbox) {\n fc.bbox = options.bbox;\n }\n fc.features = features;\n return fc;\n}\n/**\n * Creates a {@link Feature<MultiLineString>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiLineString\n * @param {Array<Array<Array<number>>>} coordinates an array of LineStrings\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiLineString>} a MultiLineString feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiLine = turf.multiLineString([[[0,0],[10,10]]]);\n *\n * //=multiLine\n */\nexport function multiLineString(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiLineString\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPoint>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPoint\n * @param {Array<Array<number>>} coordinates an array of Positions\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPoint>} a MultiPoint feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPt = turf.multiPoint([[0,0],[10,10]]);\n *\n * //=multiPt\n */\nexport function multiPoint(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPoint\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<MultiPolygon>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name multiPolygon\n * @param {Array<Array<Array<Array<number>>>>} coordinates an array of Polygons\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<MultiPolygon>} a multipolygon feature\n * @throws {Error} if no coordinates are passed\n * @example\n * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]]);\n *\n * //=multiPoly\n *\n */\nexport function multiPolygon(coordinates, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"MultiPolygon\",\n coordinates: coordinates,\n };\n return feature(geom, properties, options);\n}\n/**\n * Creates a {@link Feature<GeometryCollection>} based on a\n * coordinate array. Properties can be added optionally.\n *\n * @name geometryCollection\n * @param {Array<Geometry>} geometries an array of GeoJSON Geometries\n * @param {Object} [properties={}] an Object of key-value pairs to add as properties\n * @param {Object} [options={}] Optional Parameters\n * @param {Array<number>} [options.bbox] Bounding Box Array [west, south, east, north] associated with the Feature\n * @param {string|number} [options.id] Identifier associated with the Feature\n * @returns {Feature<GeometryCollection>} a GeoJSON GeometryCollection Feature\n * @example\n * var pt = turf.geometry(\"Point\", [100, 0]);\n * var line = turf.geometry(\"LineString\", [[101, 0], [102, 1]]);\n * var collection = turf.geometryCollection([pt, line]);\n *\n * // => collection\n */\nexport function geometryCollection(geometries, properties, options) {\n if (options === void 0) { options = {}; }\n var geom = {\n type: \"GeometryCollection\",\n geometries: geometries,\n };\n return feature(geom, properties, options);\n}\n/**\n * Round number to precision\n *\n * @param {number} num Number\n * @param {number} [precision=0] Precision\n * @returns {number} rounded number\n * @example\n * turf.round(120.4321)\n * //=120\n *\n * turf.round(120.4321, 2)\n * //=120.43\n */\nexport function round(num, precision) {\n if (precision === void 0) { precision = 0; }\n if (precision && !(precision >= 0)) {\n throw new Error(\"precision must be a positive number\");\n }\n var multiplier = Math.pow(10, precision || 0);\n return Math.round(num * multiplier) / multiplier;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from radians to a more friendly unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name radiansToLength\n * @param {number} radians in radians across the sphere\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} distance\n */\nexport function radiansToLength(radians, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return radians * factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into radians\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @name lengthToRadians\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} radians\n */\nexport function lengthToRadians(distance, units) {\n if (units === void 0) { units = \"kilometers\"; }\n var factor = factors[units];\n if (!factor) {\n throw new Error(units + \" units is invalid\");\n }\n return distance / factor;\n}\n/**\n * Convert a distance measurement (assuming a spherical Earth) from a real-world unit into degrees\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, centimeters, kilometres, feet\n *\n * @name lengthToDegrees\n * @param {number} distance in real units\n * @param {string} [units=\"kilometers\"] can be degrees, radians, miles, inches, yards, metres,\n * meters, kilometres, kilometers.\n * @returns {number} degrees\n */\nexport function lengthToDegrees(distance, units) {\n return radiansToDegrees(lengthToRadians(distance, units));\n}\n/**\n * Converts any bearing angle from the north line direction (positive clockwise)\n * and returns an angle between 0-360 degrees (positive clockwise), 0 being the north line\n *\n * @name bearingToAzimuth\n * @param {number} bearing angle, between -180 and +180 degrees\n * @returns {number} angle between 0 and 360 degrees\n */\nexport function bearingToAzimuth(bearing) {\n var angle = bearing % 360;\n if (angle < 0) {\n angle += 360;\n }\n return angle;\n}\n/**\n * Converts an angle in radians to degrees\n *\n * @name radiansToDegrees\n * @param {number} radians angle in radians\n * @returns {number} degrees between 0 and 360 degrees\n */\nexport function radiansToDegrees(radians) {\n var degrees = radians % (2 * Math.PI);\n return (degrees * 180) / Math.PI;\n}\n/**\n * Converts an angle in degrees to radians\n *\n * @name degreesToRadians\n * @param {number} degrees angle between 0 and 360 degrees\n * @returns {number} angle in radians\n */\nexport function degreesToRadians(degrees) {\n var radians = degrees % 360;\n return (radians * Math.PI) / 180;\n}\n/**\n * Converts a length to the requested unit.\n * Valid units: miles, nauticalmiles, inches, yards, meters, metres, kilometers, centimeters, feet\n *\n * @param {number} length to be converted\n * @param {Units} [originalUnit=\"kilometers\"] of the length\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted length\n */\nexport function convertLength(length, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"kilometers\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(length >= 0)) {\n throw new Error(\"length must be a positive number\");\n }\n return radiansToLength(lengthToRadians(length, originalUnit), finalUnit);\n}\n/**\n * Converts a area to the requested unit.\n * Valid units: kilometers, kilometres, meters, metres, centimetres, millimeters, acres, miles, yards, feet, inches, hectares\n * @param {number} area to be converted\n * @param {Units} [originalUnit=\"meters\"] of the distance\n * @param {Units} [finalUnit=\"kilometers\"] returned unit\n * @returns {number} the converted area\n */\nexport function convertArea(area, originalUnit, finalUnit) {\n if (originalUnit === void 0) { originalUnit = \"meters\"; }\n if (finalUnit === void 0) { finalUnit = \"kilometers\"; }\n if (!(area >= 0)) {\n throw new Error(\"area must be a positive number\");\n }\n var startFactor = areaFactors[originalUnit];\n if (!startFactor) {\n throw new Error(\"invalid original units\");\n }\n var finalFactor = areaFactors[finalUnit];\n if (!finalFactor) {\n throw new Error(\"invalid final units\");\n }\n return (area / startFactor) * finalFactor;\n}\n/**\n * isNumber\n *\n * @param {*} num Number to validate\n * @returns {boolean} true/false\n * @example\n * turf.isNumber(123)\n * //=true\n * turf.isNumber('foo')\n * //=false\n */\nexport function isNumber(num) {\n return !isNaN(num) && num !== null && !Array.isArray(num);\n}\n/**\n * isObject\n *\n * @param {*} input variable to validate\n * @returns {boolean} true/false\n * @example\n * turf.isObject({elevation: 10})\n * //=true\n * turf.isObject('foo')\n * //=false\n */\nexport function isObject(input) {\n return !!input && input.constructor === Object;\n}\n/**\n * Validate BBox\n *\n * @private\n * @param {Array<number>} bbox BBox to validate\n * @returns {void}\n * @throws Error if BBox is not valid\n * @example\n * validateBBox([-180, -40, 110, 50])\n * //=OK\n * validateBBox([-180, -40])\n * //=Error\n * validateBBox('Foo')\n * //=Error\n * validateBBox(5)\n * //=Error\n * validateBBox(null)\n * //=Error\n * validateBBox(undefined)\n * //=Error\n */\nexport function validateBBox(bbox) {\n if (!bbox) {\n throw new Error(\"bbox is required\");\n }\n if (!Array.isArray(bbox)) {\n throw new Error(\"bbox must be an Array\");\n }\n if (bbox.length !== 4 && bbox.length !== 6) {\n throw new Error(\"bbox must be an Array of 4 or 6 numbers\");\n }\n bbox.forEach(function (num) {\n if (!isNumber(num)) {\n throw new Error(\"bbox must only contain numbers\");\n }\n });\n}\n/**\n * Validate Id\n *\n * @private\n * @param {string|number} id Id to validate\n * @returns {void}\n * @throws Error if Id is not valid\n * @example\n * validateId([-180, -40, 110, 50])\n * //=Error\n * validateId([-180, -40])\n * //=Error\n * validateId('Foo')\n * //=OK\n * validateId(5)\n * //=OK\n * validateId(null)\n * //=Error\n * validateId(undefined)\n * //=Error\n */\nexport function validateId(id) {\n if (!id) {\n throw new Error(\"id is required\");\n }\n if ([\"string\", \"number\"].indexOf(typeof id) === -1) {\n throw new Error(\"id must be a number or a string\");\n }\n}\n"],"names":["earthRadius","factors","unitsFactors","areaFactors","feature","geom","properties","options","feat","geometry","type","coordinates","_options","point","lineString","polygon","multiPoint","multiLineString","multiPolygon","isNumber","points","featureCollection","coords","_i","coordinates_1","ring","j","polygons","lineStrings","features","fc","geometryCollection","geometries","round","num","precision","multiplier","radiansToLength","radians","units","factor","lengthToRadians","distance","lengthToDegrees","radiansToDegrees","bearingToAzimuth","bearing","angle","degrees","degreesToRadians","convertLength","length","originalUnit","finalUnit","convertArea","area","startFactor","finalFactor","isObject","input","validateBBox","bbox","validateId","id"],"mappings":"gFASO,IAAIA,EAAc,YAOdC,EAAU,CACjB,YAAaD,EAAc,IAC3B,YAAaA,EAAc,IAC3B,QAASA,EAAc,OACvB,KAAMA,EAAc,QACpB,OAAQA,EAAc,MACtB,WAAYA,EAAc,IAC1B,WAAYA,EAAc,IAC1B,OAAQA,EACR,OAAQA,EACR,MAAOA,EAAc,SACrB,YAAaA,EAAc,IAC3B,YAAaA,EAAc,IAC3B,cAAeA,EAAc,KAC7B,QAAS,EACT,MAAOA,EAAc,MACzB,EAOWE,EAAe,CACtB,YAAa,IACb,YAAa,IACb,QAAS,EAAI,OACb,KAAM,QACN,OAAQ,MACR,WAAY,EAAI,IAChB,WAAY,EAAI,IAChB,OAAQ,EACR,OAAQ,EACR,MAAO,EAAI,SACX,YAAa,IACb,YAAa,IACb,cAAe,EAAI,KACnB,QAAS,EAAIF,EACb,MAAO,SACX,EAOWG,EAAc,CACrB,MAAO,UACP,YAAa,IACb,YAAa,IACb,KAAM,aACN,SAAU,KACV,OAAQ,eACR,WAAY,KACZ,WAAY,KACZ,OAAQ,EACR,OAAQ,EACR,MAAO,OACP,YAAa,IACb,YAAa,IACb,MAAO,WACX,EAqBgB,SAAAC,EAAQC,EAAMC,EAAYC,EAAS,CAC3CA,IAAY,SAAUA,EAAU,CAAA,GAChC,IAAAC,EAAO,CAAE,KAAM,WACnB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,MAAQ,CAAC,MAAM,QAAQA,CAAG,CAC5D,CAYO,SAASwB,EAASC,EAAO,CAC5B,MAAO,CAAC,CAACA,GAASA,EAAM,cAAgB,MAC5C,CAsBO,SAASC,EAAaC,EAAM,CAC/B,GAAI,CAACA,EACK,MAAA,IAAI,MAAM,kBAAkB,EAEtC,GAAI,CAAC,MAAM,QAAQA,CAAI,EACb,MAAA,IAAI,MAAM,uBAAuB,EAE3C,GAAIA,EAAK,SAAW,GAAKA,EAAK,SAAW,EAC/B,MAAA,IAAI,MAAM,yCAAyC,EAExDA,EAAA,QAAQ,SAAU3B,EAAK,CACpB,GAAA,CAACf,EAASe,CAAG,EACP,MAAA,IAAI,MAAM,gCAAgC,CACpD,CACH,CACL,CAsBO,SAAS4B,EAAWC,EAAI,CAC3B,GAAI,CAACA,EACK,MAAA,IAAI,MAAM,gBAAgB,EAEhC,GAAA,CAAC,SAAU,QAAQ,EAAE,QAAQ,OAAOA,CAAE,IAAM,GACtC,MAAA,IAAI,MAAM,iCAAiC,CAEzD","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs177.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
1
+ "use strict";const c=require("./index.cjs61.js"),l=require("./index.cjs48.js"),g=require("./index.cjs62.js"),h=require("./index.cjs63.js"),s=require("./index.cjs64.js"),v=require("./index.cjs65.js");function d(n){if(!n.type)return!1;var t=c.getGeom(n),a=t.type,r=t.coordinates;switch(a){case"Point":return r.length>1;case"MultiPoint":for(var e=0;e<r.length;e++)if(r[e].length<2)return!1;return!0;case"LineString":if(r.length<2)return!1;for(var e=0;e<r.length;e++)if(r[e].length<2)return!1;return!0;case"MultiLineString":if(r.length<2)return!1;for(var e=0;e<r.length;e++)if(r[e].length<2)return!1;return!0;case"Polygon":for(var e=0;e<t.coordinates.length;e++)if(r[e].length<4||!o(r[e])||i(r[e])||e>0&&s(l.polygon([r[0]]),l.polygon([r[e]])).features.length>1)return!1;return!0;case"MultiPolygon":for(var e=0;e<t.coordinates.length;e++)for(var u=t.coordinates[e],f=0;f<u.length;f++)if(u[f].length<4||!o(u[f])||i(u[f])||f===0&&!x(u,t.coordinates,e)||f>0&&s(l.polygon([u[0]]),l.polygon([u[f]])).features.length>1)return!1;return!0;default:return!1}}function o(n){return n[0][0]===n[n.length-1][0]||n[0][1]===n[n.length-1][1]}function i(n){for(var t=0;t<n.length-1;t++)for(var a=n[t],r=t+1;r<n.length-2;r++){var e=[n[r],n[r+1]];if(v(a,l.lineString(e)))return!0}return!1}function x(n,t,a){for(var r=l.polygon(n),e=a+1;e<t.length;e++)if(!g(r,l.polygon(t[e]))&&h(r,l.lineString(t[e][0])))return!1;return!0}module.exports=d;
2
2
  //# sourceMappingURL=index.cjs49.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs49.js","sources":["../../../node_modules/@turf/bbox/dist/es/index.js"],"sourcesContent":["import { coordEach } from \"@turf/meta\";\n/**\n * Takes a set of features, calculates the bbox of all input features, and returns a bounding box.\n *\n * @name bbox\n * @param {GeoJSON} geojson any GeoJSON object\n * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @example\n * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\n * var bbox = turf.bbox(line);\n * var bboxPolygon = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [line, bboxPolygon]\n */\nfunction bbox(geojson) {\n var result = [Infinity, Infinity, -Infinity, -Infinity];\n coordEach(geojson, function (coord) {\n if (result[0] > coord[0]) {\n result[0] = coord[0];\n }\n if (result[1] > coord[1]) {\n result[1] = coord[1];\n }\n if (result[2] < coord[0]) {\n result[2] = coord[0];\n }\n if (result[3] < coord[1]) {\n result[3] = coord[1];\n }\n });\n return result;\n}\nbbox[\"default\"] = bbox;\nexport default bbox;\n"],"names":["bbox","geojson","result","coordEach","coord"],"mappings":"kDAeA,SAASA,EAAKC,EAAS,CACnB,IAAIC,EAAS,CAAC,IAAU,IAAU,KAAW,IAAS,EAC5CC,OAAAA,YAAAF,EAAS,SAAUG,EAAO,CAC5BF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,EACvB,CACH,EACMF,CACX,CACAF,EAAK,QAAaA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs49.js","sources":["../../../node_modules/@turf/boolean-valid/dist/es/index.js"],"sourcesContent":["import { getGeom } from \"@turf/invariant\";\nimport { polygon, lineString, } from \"@turf/helpers\";\nimport booleanDisjoint from \"@turf/boolean-disjoint\";\nimport booleanCrosses from \"@turf/boolean-crosses\";\nimport lineIntersect from \"@turf/line-intersect\";\nimport isPointOnLine from \"@turf/boolean-point-on-line\";\n/**\n * booleanValid checks if the geometry is a valid according to the OGC Simple Feature Specification.\n *\n * @name booleanValid\n * @param {Geometry|Feature<any>} feature GeoJSON Feature or Geometry\n * @returns {boolean} true/false\n * @example\n * var line = turf.lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);\n *\n * turf.booleanValid(line); // => true\n * turf.booleanValid({foo: \"bar\"}); // => false\n */\nexport default function booleanValid(feature) {\n // Automatic False\n if (!feature.type)\n return false;\n // Parse GeoJSON\n var geom = getGeom(feature);\n var type = geom.type;\n var coords = geom.coordinates;\n switch (type) {\n case \"Point\":\n return coords.length > 1;\n case \"MultiPoint\":\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2)\n return false;\n }\n return true;\n case \"LineString\":\n if (coords.length < 2)\n return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2)\n return false;\n }\n return true;\n case \"MultiLineString\":\n if (coords.length < 2)\n return false;\n for (var i = 0; i < coords.length; i++) {\n if (coords[i].length < 2)\n return false;\n }\n return true;\n case \"Polygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n if (coords[i].length < 4)\n return false;\n if (!checkRingsClose(coords[i]))\n return false;\n if (checkRingsForSpikesPunctures(coords[i]))\n return false;\n if (i > 0) {\n if (lineIntersect(polygon([coords[0]]), polygon([coords[i]])).features\n .length > 1)\n return false;\n }\n }\n return true;\n case \"MultiPolygon\":\n for (var i = 0; i < geom.coordinates.length; i++) {\n var poly = geom.coordinates[i];\n for (var ii = 0; ii < poly.length; ii++) {\n if (poly[ii].length < 4)\n return false;\n if (!checkRingsClose(poly[ii]))\n return false;\n if (checkRingsForSpikesPunctures(poly[ii]))\n return false;\n if (ii === 0) {\n if (!checkPolygonAgainstOthers(poly, geom.coordinates, i))\n return false;\n }\n if (ii > 0) {\n if (lineIntersect(polygon([poly[0]]), polygon([poly[ii]])).features\n .length > 1)\n return false;\n }\n }\n }\n return true;\n default:\n return false;\n }\n}\nfunction checkRingsClose(geom) {\n return (geom[0][0] === geom[geom.length - 1][0] ||\n geom[0][1] === geom[geom.length - 1][1]);\n}\nfunction checkRingsForSpikesPunctures(geom) {\n for (var i = 0; i < geom.length - 1; i++) {\n var point = geom[i];\n for (var ii = i + 1; ii < geom.length - 2; ii++) {\n var seg = [geom[ii], geom[ii + 1]];\n if (isPointOnLine(point, lineString(seg)))\n return true;\n }\n }\n return false;\n}\nfunction checkPolygonAgainstOthers(poly, geom, index) {\n var polyToCheck = polygon(poly);\n for (var i = index + 1; i < geom.length; i++) {\n if (!booleanDisjoint(polyToCheck, polygon(geom[i]))) {\n if (booleanCrosses(polyToCheck, lineString(geom[i][0])))\n return false;\n }\n }\n return true;\n}\n"],"names":["booleanValid","feature","geom","getGeom","type","coords","i","checkRingsClose","checkRingsForSpikesPunctures","lineIntersect","polygon","poly","ii","checkPolygonAgainstOthers","point","seg","isPointOnLine","lineString","index","polyToCheck","booleanDisjoint","booleanCrosses"],"mappings":"uMAkBA,SAAwBA,EAAaC,EAAS,CAE1C,GAAI,CAACA,EAAQ,KACF,MAAA,GAEP,IAAAC,EAAOC,UAAQF,CAAO,EACtBG,EAAOF,EAAK,KACZG,EAASH,EAAK,YAClB,OAAQE,EAAM,CACV,IAAK,QACD,OAAOC,EAAO,OAAS,EAC3B,IAAK,aACD,QAASC,EAAI,EAAGA,EAAID,EAAO,OAAQC,IAC3B,GAAAD,EAAOC,CAAC,EAAE,OAAS,EACZ,MAAA,GAER,MAAA,GACX,IAAK,aACD,GAAID,EAAO,OAAS,EACT,MAAA,GACX,QAASC,EAAI,EAAGA,EAAID,EAAO,OAAQC,IAC3B,GAAAD,EAAOC,CAAC,EAAE,OAAS,EACZ,MAAA,GAER,MAAA,GACX,IAAK,kBACD,GAAID,EAAO,OAAS,EACT,MAAA,GACX,QAASC,EAAI,EAAGA,EAAID,EAAO,OAAQC,IAC3B,GAAAD,EAAOC,CAAC,EAAE,OAAS,EACZ,MAAA,GAER,MAAA,GACX,IAAK,UACD,QAASA,EAAI,EAAGA,EAAIJ,EAAK,YAAY,OAAQI,IAOzC,GANID,EAAOC,CAAC,EAAE,OAAS,GAEnB,CAACC,EAAgBF,EAAOC,CAAC,CAAC,GAE1BE,EAA6BH,EAAOC,CAAC,CAAC,GAEtCA,EAAI,GACAG,EAAcC,EAAAA,QAAQ,CAACL,EAAO,CAAC,CAAC,CAAC,EAAGK,EAAAA,QAAQ,CAACL,EAAOC,CAAC,CAAC,CAAC,CAAC,EAAE,SACzD,OAAS,EACH,MAAA,GAGZ,MAAA,GACX,IAAK,eACD,QAASA,EAAI,EAAGA,EAAIJ,EAAK,YAAY,OAAQI,IAEzC,QADIK,EAAOT,EAAK,YAAYI,CAA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,MAAA,EACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const e=require("./index.cjs13.js"),n=require("@peripleo/maplibre"),u=require("react"),i=require("./index.cjs45.js"),l=require("./index.cjs9.js"),o=2,s=t=>{const a=n.useMap();return u.useEffect(()=>{if(a&&t.data){const r=l.getBoundingBox(t.data,t.buffer);a.fitBounds(r)}},[a,t.buffer,t.data]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[t.animate&&e.jsxRuntimeExports.jsx(n.PulsingMarkerLayer,{data:t.data}),e.jsxRuntimeExports.jsx(n.MixedGeoJSONLayer,{data:t.data,fillStyle:t.fillStyle,strokeStyle:t.strokeStyle,pointStyle:t.pointStyle})]})};s.defaultProps={buffer:o,fillStyle:i.DEFAULT_FILL_STYLE,pointStyle:i.DEFAULT_POINT_STYLE,strokeStyle:i.DEFAULT_STROKE_STYLE};module.exports=s;
1
+ "use strict";const e=require("./index.cjs14.js"),a=require("@peripleo/maplibre"),l=require("react"),u=require("./index.cjs10.js"),o=require("./index.cjs9.js"),d=2,s=t=>{const i=a.useMap(),n=l.useMemo(()=>o.validateGeometry(t.data),[t.data]);return l.useEffect(()=>{if(i&&n&&t.data&&t.fitBoundingBox){const r=o.getBoundingBox(t.data,t.buffer);i.fitBounds(r,t.boundingBoxOptions,t.boundingBoxData)}},[n,i,t.buffer,t.data,t.boundingBoxData,t.boundingBoxOptions,t.fitBoundingBox]),n?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[t.animate&&e.jsxRuntimeExports.jsx(a.PulsingMarkerLayer,{data:t.data,id:t.layerId}),e.jsxRuntimeExports.jsx(a.GeoJSONLayer,{cluster:t.cluster,clusterMaxZoom:t.clusterMaxZoom,clusterMinPoints:t.clusterMinPoints,clusterProperties:t.clusterProperties,clusterRadius:t.clusterRadius,data:t.data,fillStyle:t.fillStyle,id:t.layerId,strokeStyle:t.strokeStyle,pointStyle:t.pointStyle})]}):null};s.defaultProps={buffer:d,fillStyle:u.fill,fitBoundingBox:!0,pointStyle:u.point,strokeStyle:u.stroke};module.exports=s;
2
2
  //# sourceMappingURL=index.cjs5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { MixedGeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect } from 'react';\nimport { DEFAULT_FILL_STYLE, DEFAULT_POINT_STYLE, DEFAULT_STROKE_STYLE } from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && props.data) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox);\n }\n }, [map, props.buffer, props.data]);\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n />\n )}\n <MixedGeoJSONLayer\n data={props.data}\n fillStyle={props.fillStyle}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: DEFAULT_FILL_STYLE,\n pointStyle: DEFAULT_POINT_STYLE,\n strokeStyle: DEFAULT_STROKE_STYLE\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","useEffect","boundingBox","MapUtils","jsxs","Fragment","jsx","PulsingMarkerLayer","MixedGeoJSONLayer","DEFAULT_FILL_STYLE","DEFAULT_POINT_STYLE","DEFAULT_STROKE_STYLE"],"mappings":"+JAuCMA,EAAiB,EAKjBC,EAAmBC,GAAiB,CACxC,MAAMC,EAAMC,EAAAA,SAKZC,OAAAA,EAAAA,UAAU,IAAM,CACV,GAAAF,GAAOD,EAAM,KAAM,CACrB,MAAMI,EAAcC,EAAS,eAAeL,EAAM,KAAMA,EAAM,MAAM,EACpEC,EAAI,UAAUG,CAAW,CAC3B,CAAA,EACC,CAACH,EAAKD,EAAM,OAAQA,EAAM,IAAI,CAAC,EAI5BM,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAAAP,EAAM,SACNQ,EAAA,kBAAA,IAACC,EAAA,mBAAA,CACC,KAAMT,EAAM,IAAA,CACd,EAEFQ,EAAA,kBAAA,IAACE,EAAA,kBAAA,CACC,KAAMV,EAAM,KACZ,UAAWA,EAAM,UACjB,YAAaA,EAAM,YACnB,WAAYA,EAAM,UAAA,CACpB,CACF,CAAA,CAAA,CAEJ,EAEAD,EAAgB,aAAe,CAC7B,OAAQD,EACR,UAAWa,EAAA,mBACX,WAAYC,EAAA,oBACZ,YAAaC,EAAA,oBACf"}
1
+ {"version":3,"file":"index.cjs5.js","sources":["../src/components/LocationMarkers.js"],"sourcesContent":["// @flow\n\nimport { GeoJSONLayer, PulsingMarkerLayer, useMap } from '@peripleo/maplibre';\nimport React, { useEffect, useMemo } from 'react';\nimport MapStyles from '../utils/MapStyles';\nimport MapUtils from '../utils/Map';\n\ntype Props = {\n /**\n * If `true`, the point marker will display with a pulsing animation.\n */\n animate?: boolean,\n\n /**\n * (Optional) data to pass to the fitToBounds function.\n */\n boundingBoxData?: any,\n\n /**\n * (Optional) options to pass to the fitToBounds function.\n * See [spec](https://maplibre.org/maplibre-gl-js/docs/API/types/FitBoundsOptions/).\n */\n boundingBoxOptions?: any,\n\n /**\n * The number of miles to buffer the GeoJSON data.\n */\n buffer: number,\n\n /**\n * If true, markers will be clustered before the specified zoom level.\n */\n cluster?: boolean,\n\n /**\n * Max zoom to cluster points on.\n */\n clusterMaxZoom?: number,\n\n /**\n * Minimum number of points necessary to form a cluster.\n */\n clusterMinPoints?: number,\n\n /**\n * An object defining custom properties on the generated clusters.\n */\n clusterProperties?: any,\n\n /**\n * Radius of each cluster when clustering point.\n */\n clusterRadius?: number,\n\n /**\n * The GeoJSON data representing the location.\n */\n data: { [key: string]: any },\n\n /**\n * GeoJSON layer fill style.\n */\n fillStyle?: { [key: string]: any },\n\n /**\n * If `true`, the map will fit the bounding box around the passed data.\n */\n fitBoundingBox?: boolean,\n\n /**\n * An ID value to apply to the layer.\n */\n layerId?: string,\n\n /**\n * GeoJSON layer point style.\n */\n pointStyle?: { [key: string]: any },\n\n /**\n * GeoJSON layer stroke style\n */\n strokeStyle?: { [key: string]: any }\n};\n\nconst DEFAULT_BUFFER = 2;\n\n/**\n * This component renders a location marker to be used in a Peripleo context.\n */\nconst LocationMarkers = (props: Props) => {\n const map = useMap();\n\n /**\n * Memo-izes the data validation.\n *\n * @type {boolean}\n */\n const isValid = useMemo(() => MapUtils.validateGeometry(props.data), [props.data]);\n\n /**\n * Sets the bounding box on the map.\n */\n useEffect(() => {\n if (map && isValid && props.data && props.fitBoundingBox) {\n const boundingBox = MapUtils.getBoundingBox(props.data, props.buffer);\n map.fitBounds(boundingBox, props.boundingBoxOptions, props.boundingBoxData);\n }\n }, [isValid, map, props.buffer, props.data, props.boundingBoxData, props.boundingBoxOptions, props.fitBoundingBox]);\n\n if (!isValid) {\n return null;\n }\n\n return (\n <>\n { props.animate && (\n <PulsingMarkerLayer\n data={props.data}\n id={props.layerId}\n />\n )}\n <GeoJSONLayer\n cluster={props.cluster}\n clusterMaxZoom={props.clusterMaxZoom}\n clusterMinPoints={props.clusterMinPoints}\n clusterProperties={props.clusterProperties}\n clusterRadius={props.clusterRadius}\n data={props.data}\n fillStyle={props.fillStyle}\n id={props.layerId}\n strokeStyle={props.strokeStyle}\n pointStyle={props.pointStyle}\n />\n </>\n );\n};\n\nLocationMarkers.defaultProps = {\n buffer: DEFAULT_BUFFER,\n fillStyle: MapStyles.fill,\n fitBoundingBox: true,\n pointStyle: MapStyles.point,\n strokeStyle: MapStyles.stroke\n};\n\nexport default LocationMarkers;\n"],"names":["DEFAULT_BUFFER","LocationMarkers","props","map","useMap","isValid","useMemo","MapUtils","useEffect","boundingBox","jsxs","Fragment","jsx","PulsingMarkerLayer","GeoJSONLayer","MapStyles"],"mappings":"+JAqFMA,EAAiB,EAKjBC,EAAmBC,GAAiB,CACxC,MAAMC,EAAMC,EAAAA,SAONC,EAAUC,EAAAA,QAAQ,IAAMC,EAAS,iBAAiBL,EAAM,IAAI,EAAG,CAACA,EAAM,IAAI,CAAC,EAYjF,OAPAM,EAAAA,UAAU,IAAM,CACd,GAAIL,GAAOE,GAAWH,EAAM,MAAQA,EAAM,eAAgB,CACxD,MAAMO,EAAcF,EAAS,eAAeL,EAAM,KAAMA,EAAM,MAAM,EACpEC,EAAI,UAAUM,EAAaP,EAAM,mBAAoBA,EAAM,eAAe,CAC5E,CACC,EAAA,CAACG,EAASF,EAAKD,EAAM,OAAQA,EAAM,KAAMA,EAAM,gBAAiBA,EAAM,mBAAoBA,EAAM,cAAc,CAAC,EAE7GG,EAMCK,EAAA,kBAAA,KAAAC,6BAAA,CAAA,SAAA,CAAAT,EAAM,SACNU,EAAA,kBAAA,IAACC,EAAA,mBAAA,CACC,KAAMX,EAAM,KACZ,GAAIA,EAAM,OAAA,CACZ,EAEFU,EAAA,kBAAA,IAACE,EAAA,aAAA,CACC,QAASZ,EAAM,QACf,eAAgBA,EAAM,eACtB,iBAAkBA,EAAM,iBACxB,kBAAmBA,EAAM,kBACzB,cAAeA,EAAM,cACrB,KAAMA,EAAM,KACZ,UAAWA,EAAM,UACjB,GAAIA,EAAM,QACV,YAAaA,EAAM,YACnB,WAAYA,EAAM,UAAA,CACpB,CACF,CAAA,CAAA,EAvBO,IAyBX,EAEAD,EAAgB,aAAe,CAC7B,OAAQD,EACR,UAAWe,EAAU,KACrB,eAAgB,GAChB,WAAYA,EAAU,MACtB,YAAaA,EAAU,MACzB"}
@@ -1,2 +1,2 @@
1
- "use strict";const h=require("./index.cjs48.js");function p(r,t){t===void 0&&(t={});var e=Number(r[0]),o=Number(r[1]),i=Number(r[2]),u=Number(r[3]);if(r.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var n=[e,o],a=[e,u],s=[i,u],v=[i,o];return h.polygon([[n,v,s,a,n]],t.properties,{bbox:r,id:t.id})}module.exports=p;
1
+ "use strict";const e=require("./index.cjs183.js");function t(f){var i=[1/0,1/0,-1/0,-1/0];return e.coordEach(f,function(n){i[0]>n[0]&&(i[0]=n[0]),i[1]>n[1]&&(i[1]=n[1]),i[2]<n[0]&&(i[2]=n[0]),i[3]<n[1]&&(i[3]=n[1])}),i}t.default=t;module.exports=t;
2
2
  //# sourceMappingURL=index.cjs50.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs50.js","sources":["../../../node_modules/@turf/bbox-polygon/dist/es/index.js"],"sourcesContent":["import { polygon } from \"@turf/helpers\";\n/**\n * Takes a bbox and returns an equivalent {@link Polygon|polygon}.\n *\n * @name bboxPolygon\n * @param {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @param {Object} [options={}] Optional parameters\n * @param {Properties} [options.properties={}] Translate properties to Polygon\n * @param {string|number} [options.id={}] Translate Id to Polygon\n * @returns {Feature<Polygon>} a Polygon representation of the bounding box\n * @example\n * var bbox = [0, 0, 10, 10];\n *\n * var poly = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [poly]\n */\nexport default function bboxPolygon(bbox, options) {\n if (options === void 0) { options = {}; }\n // Convert BBox positions to Numbers\n // No performance loss for including Number()\n // https://github.com/Turfjs/turf/issues/1119\n var west = Number(bbox[0]);\n var south = Number(bbox[1]);\n var east = Number(bbox[2]);\n var north = Number(bbox[3]);\n if (bbox.length === 6) {\n throw new Error(\"@turf/bbox-polygon does not support BBox with 6 positions\");\n }\n var lowLeft = [west, south];\n var topLeft = [west, north];\n var topRight = [east, north];\n var lowRight = [east, south];\n return polygon([[lowLeft, lowRight, topRight, topLeft, lowLeft]], options.properties, { bbox: bbox, id: options.id });\n}\n"],"names":["bboxPolygon","bbox","options","west","south","east","north","lowLeft","topLeft","topRight","lowRight","polygon"],"mappings":"iDAkBwB,SAAAA,EAAYC,EAAMC,EAAS,CAC3CA,IAAY,SAAUA,EAAU,CAAA,GAIpC,IAAIC,EAAO,OAAOF,EAAK,CAAC,CAAC,EACrBG,EAAQ,OAAOH,EAAK,CAAC,CAAC,EACtBI,EAAO,OAAOJ,EAAK,CAAC,CAAC,EACrBK,EAAQ,OAAOL,EAAK,CAAC,CAAC,EACtB,GAAAA,EAAK,SAAW,EACV,MAAA,IAAI,MAAM,2DAA2D,EAE3E,IAAAM,EAAU,CAACJ,EAAMC,CAAK,EACtBI,EAAU,CAACL,EAAMG,CAAK,EACtBG,EAAW,CAACJ,EAAMC,CAAK,EACvBI,EAAW,CAACL,EAAMD,CAAK,EAC3B,OAAOO,EAAAA,QAAQ,CAAC,CAACJ,EAASG,EAAUD,EAAUD,EAASD,CAAO,CAAC,EAAGL,EAAQ,WAAY,CAAE,KAAAD,EAAY,GAAIC,EAAQ,GAAI,CACxH","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs50.js","sources":["../../../node_modules/@turf/bbox/dist/es/index.js"],"sourcesContent":["import { coordEach } from \"@turf/meta\";\n/**\n * Takes a set of features, calculates the bbox of all input features, and returns a bounding box.\n *\n * @name bbox\n * @param {GeoJSON} geojson any GeoJSON object\n * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @example\n * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]);\n * var bbox = turf.bbox(line);\n * var bboxPolygon = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [line, bboxPolygon]\n */\nfunction bbox(geojson) {\n var result = [Infinity, Infinity, -Infinity, -Infinity];\n coordEach(geojson, function (coord) {\n if (result[0] > coord[0]) {\n result[0] = coord[0];\n }\n if (result[1] > coord[1]) {\n result[1] = coord[1];\n }\n if (result[2] < coord[0]) {\n result[2] = coord[0];\n }\n if (result[3] < coord[1]) {\n result[3] = coord[1];\n }\n });\n return result;\n}\nbbox[\"default\"] = bbox;\nexport default bbox;\n"],"names":["bbox","geojson","result","coordEach","coord"],"mappings":"kDAeA,SAASA,EAAKC,EAAS,CACnB,IAAIC,EAAS,CAAC,IAAU,IAAU,KAAW,IAAS,EAC5CC,OAAAA,YAAAF,EAAS,SAAUG,EAAO,CAC5BF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,GAEnBF,EAAO,CAAC,EAAIE,EAAM,CAAC,IACZF,EAAA,CAAC,EAAIE,EAAM,CAAC,EACvB,CACH,EACMF,CACX,CACAF,EAAK,QAAaA","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";const x=require("./index.cjs176.js"),v=require("./index.cjs178.js"),p=require("./index.cjs177.js");require("./index.cjs179.js");require("./index.cjs180.js");require("./index.cjs181.js");require("./index.cjs182.js");require("./index.cjs183.js");require("./index.cjs184.js");require("./index.cjs185.js");require("./index.cjs186.js");require("./index.cjs187.js");require("./index.cjs188.js");const G=require("./index.cjs189.js");require("./index.cjs190.js");const a=require("./index.cjs48.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
1
+ "use strict";const h=require("./index.cjs48.js");function p(r,t){t===void 0&&(t={});var e=Number(r[0]),o=Number(r[1]),i=Number(r[2]),u=Number(r[3]);if(r.length===6)throw new Error("@turf/bbox-polygon does not support BBox with 6 positions");var n=[e,o],a=[e,u],s=[i,u],v=[i,o];return h.polygon([[n,v,s,a,n]],t.properties,{bbox:r,id:t.id})}module.exports=p;
2
2
  //# sourceMappingURL=index.cjs51.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs51.js","sources":["../../../node_modules/@turf/buffer/dist/es/index.js"],"sourcesContent":["import center from '@turf/center';\nimport { GeoJSONReader, BufferOp, GeoJSONWriter } from 'turf-jsts';\nimport { featureEach, geomEach } from '@turf/meta';\nimport { geoAzimuthalEquidistant } from 'd3-geo';\nimport { featureCollection, earthRadius, radiansToLength, lengthToRadians, feature } from '@turf/helpers';\n\n/**\n * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees.\n *\n * When using a negative radius, the resulting geometry may be invalid if\n * it's too small compared to the radius magnitude. If the input is a\n * FeatureCollection, only valid members will be returned in the output\n * FeatureCollection - i.e., the output collection may have fewer members than\n * the input, or even be empty.\n *\n * @name buffer\n * @param {FeatureCollection|Geometry|Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer (negative values are allowed)\n * @param {Object} [options={}] Optional parameters\n * @param {string} [options.units=\"kilometers\"] any of the options supported by turf units\n * @param {number} [options.steps=8] number of steps\n * @returns {FeatureCollection|Feature<Polygon|MultiPolygon>|undefined} buffered features\n * @example\n * var point = turf.point([-90.548630, 14.616599]);\n * var buffered = turf.buffer(point, 500, {units: 'miles'});\n *\n * //addToMap\n * var addToMap = [point, buffered]\n */\nfunction buffer(geojson, radius, options) {\n // Optional params\n options = options || {};\n\n // use user supplied options or default values\n var units = options.units || \"kilometers\";\n var steps = options.steps || 8;\n\n // validation\n if (!geojson) throw new Error(\"geojson is required\");\n if (typeof options !== \"object\") throw new Error(\"options must be an object\");\n if (typeof steps !== \"number\") throw new Error(\"steps must be an number\");\n\n // Allow negative buffers (\"erosion\") or zero-sized buffers (\"repair geometry\")\n if (radius === undefined) throw new Error(\"radius is required\");\n if (steps <= 0) throw new Error(\"steps must be greater than 0\");\n\n var results = [];\n switch (geojson.type) {\n case \"GeometryCollection\":\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n case \"FeatureCollection\":\n featureEach(geojson, function (feature) {\n var multiBuffered = bufferFeature(feature, radius, units, steps);\n if (multiBuffered) {\n featureEach(multiBuffered, function (buffered) {\n if (buffered) results.push(buffered);\n });\n }\n });\n return featureCollection(results);\n }\n return bufferFeature(geojson, radius, units, steps);\n}\n\n/**\n * Buffer single Feature/Geometry\n *\n * @private\n * @param {Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer\n * @param {string} [units='kilometers'] any of the options supported by turf units\n * @param {number} [steps=8] number of steps\n * @returns {Feature<Polygon|MultiPolygon>} buffered feature\n */\nfunction bufferFeature(geojson, radius, units, steps) {\n var properties = geojson.properties || {};\n var geometry = geojson.type === \"Feature\" ? geojson.geometry : geojson;\n\n // Geometry Types faster than jsts\n if (geometry.type === \"GeometryCollection\") {\n var results = [];\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n }\n\n // Project GeoJSON to Azimuthal Equidistant projection (convert to Meters)\n var projection = defineProjection(geometry);\n var projected = {\n type: geometry.type,\n coordinates: projectCoords(geometry.coordinates, projection),\n };\n\n // JSTS buffer operation\n var reader = new GeoJSONReader();\n var geom = reader.read(projected);\n var distance = radiansToLength(lengthToRadians(radius, units), \"meters\");\n var buffered = BufferOp.bufferOp(geom, distance, steps);\n var writer = new GeoJSONWriter();\n buffered = writer.write(buffered);\n\n // Detect if empty geometries\n if (coordsIsNaN(buffered.coordinates)) return undefined;\n\n // Unproject coordinates (convert to Degrees)\n var result = {\n type: buffered.type,\n coordinates: unprojectCoords(buffered.coordinates, projection),\n };\n\n return feature(result, properties);\n}\n\n/**\n * Coordinates isNaN\n *\n * @private\n * @param {Array<any>} coords GeoJSON Coordinates\n * @returns {boolean} if NaN exists\n */\nfunction coordsIsNaN(coords) {\n if (Array.isArray(coords[0])) return coordsIsNaN(coords[0]);\n return isNaN(coords[0]);\n}\n\n/**\n * Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} projected coordinates\n */\nfunction projectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj(coords);\n return coords.map(function (coord) {\n return projectCoords(coord, proj);\n });\n}\n\n/**\n * Un-Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to un-project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} un-projected coordinates\n */\nfunction unprojectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj.invert(coords);\n return coords.map(function (coord) {\n return unprojectCoords(coord, proj);\n });\n}\n\n/**\n * Define Azimuthal Equidistant projection\n *\n * @private\n * @param {Geometry|Feature<any>} geojson Base projection on center of GeoJSON\n * @returns {GeoProjection} D3 Geo Azimuthal Equidistant Projection\n */\nfunction defineProjection(geojson) {\n var coords = center(geojson).geometry.coordinates;\n var rotation = [-coords[0], -coords[1]];\n return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius);\n}\n\nexport default buffer;\n"],"names":["buffer","geojson","radius","options","units","steps","results","geomEach","geometry","buffered","bufferFeature","featureCollection","featureEach","feature","multiBuffered","properties","projection","defineProjection","projected","projectCoords","reader","GeoJSONReader","geom","distance","radiansToLength","lengthToRadians","BufferOp","writer","GeoJSONWriter","coordsIsNaN","result","unprojectCoords","coords","proj","coord","center","rotation","geoAzimuthalEquidistant","earthRadius"],"mappings":"wfA6BA,SAASA,EAAOC,EAASC,EAAQC,EAAS,CAExCA,EAAUA,GAAW,GAGjB,IAAAC,EAAQD,EAAQ,OAAS,aACzBE,EAAQF,EAAQ,OAAS,EAG7B,GAAI,CAACF,EAAe,MAAA,IAAI,MAAM,qBAAqB,EACnD,GAAI,OAAOE,GAAY,SAAgB,MAAA,IAAI,MAAM,2BAA2B,EAC5E,GAAI,OAAOE,GAAU,SAAgB,MAAA,IAAI,MAAM,yBAAyB,EAGxE,GAAIH,IAAW,OAAiB,MAAA,IAAI,MAAM,oBAAoB,EAC9D,GAAIG,GAAS,EAAS,MAAA,IAAI,MAAM,8BAA8B,EAE9D,IAAIC,EAAU,CAAA,EACd,OAAQL,EAAQ,KAAM,CACpB,IAAK,qBACMM,OAAAA,WAA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AGpC,KAAIqB,EAAS,CACX,KAAMrB,EAAS,KACf,YAAasB,EAAgBtB,EAAS,YAAaO,CAAU,CAAA,EAGxD,OAAAH,EAAA,QAAQiB,EAAQf,CAAU,EACnC,CASA,SAASc,EAAYG,EAAQ,CAC3B,OAAI,MAAM,QAAQA,EAAO,CAAC,CAAC,EAAUH,EAAYG,EAAO,CAAC,CAAC,EACnD,MAAMA,EAAO,CAAC,CAAC,CACxB,CAUA,SAASb,EAAca,EAAQC,EAAM,CAC/B,OAAA,OAAOD,EAAO,CAAC,GAAM,SAAiBC,EAAKD,CAAM,EAC9CA,EAAO,IAAI,SAAUE,EAAO,CAC1B,OAAAf,EAAce,EAAOD,CAAI,CAAA,CACjC,CACH,CAUA,SAASF,EAAgBC,EAAQC,EAAM,CACjC,OAAA,OAAOD,EAAO,CAAC,GAAM,SAAiBC,EAAK,OAAOD,CAAM,EACrDA,EAAO,IAAI,SAAUE,EAAO,CAC1B,OAAAH,EAAgBG,EAAOD,CAAI,CAAA,CACnC,CACH,CASA,SAAShB,EAAiBhB,EAAS,CACjC,IAAI+B,EAASG,EAAOlC,CAAO,EAAE,SAAS,YAClCmC,EAAW,CAAC,CAACJ,EAAO,CAAC,EAAG,CAACA,EAAO,CAAC,CAAC,EACtC,OAAOK,EAAAA,QAA0B,EAAA,OAAOD,CAAQ,EAAE,MAAME,EAAAA,WAAW,CACrE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.cjs51.js","sources":["../../../node_modules/@turf/bbox-polygon/dist/es/index.js"],"sourcesContent":["import { polygon } from \"@turf/helpers\";\n/**\n * Takes a bbox and returns an equivalent {@link Polygon|polygon}.\n *\n * @name bboxPolygon\n * @param {BBox} bbox extent in [minX, minY, maxX, maxY] order\n * @param {Object} [options={}] Optional parameters\n * @param {Properties} [options.properties={}] Translate properties to Polygon\n * @param {string|number} [options.id={}] Translate Id to Polygon\n * @returns {Feature<Polygon>} a Polygon representation of the bounding box\n * @example\n * var bbox = [0, 0, 10, 10];\n *\n * var poly = turf.bboxPolygon(bbox);\n *\n * //addToMap\n * var addToMap = [poly]\n */\nexport default function bboxPolygon(bbox, options) {\n if (options === void 0) { options = {}; }\n // Convert BBox positions to Numbers\n // No performance loss for including Number()\n // https://github.com/Turfjs/turf/issues/1119\n var west = Number(bbox[0]);\n var south = Number(bbox[1]);\n var east = Number(bbox[2]);\n var north = Number(bbox[3]);\n if (bbox.length === 6) {\n throw new Error(\"@turf/bbox-polygon does not support BBox with 6 positions\");\n }\n var lowLeft = [west, south];\n var topLeft = [west, north];\n var topRight = [east, north];\n var lowRight = [east, south];\n return polygon([[lowLeft, lowRight, topRight, topLeft, lowLeft]], options.properties, { bbox: bbox, id: options.id });\n}\n"],"names":["bboxPolygon","bbox","options","west","south","east","north","lowLeft","topLeft","topRight","lowRight","polygon"],"mappings":"iDAkBwB,SAAAA,EAAYC,EAAMC,EAAS,CAC3CA,IAAY,SAAUA,EAAU,CAAA,GAIpC,IAAIC,EAAO,OAAOF,EAAK,CAAC,CAAC,EACrBG,EAAQ,OAAOH,EAAK,CAAC,CAAC,EACtBI,EAAO,OAAOJ,EAAK,CAAC,CAAC,EACrBK,EAAQ,OAAOL,EAAK,CAAC,CAAC,EACtB,GAAAA,EAAK,SAAW,EACV,MAAA,IAAI,MAAM,2DAA2D,EAE3E,IAAAM,EAAU,CAACJ,EAAMC,CAAK,EACtBI,EAAU,CAACL,EAAMG,CAAK,EACtBG,EAAW,CAACJ,EAAMC,CAAK,EACvBI,EAAW,CAACL,EAAMD,CAAK,EAC3B,OAAOO,EAAAA,QAAQ,CAAC,CAACJ,EAASG,EAAUD,EAAUD,EAASD,CAAO,CAAC,EAAGL,EAAQ,WAAY,CAAE,KAAAD,EAAY,GAAIC,EAAQ,GAAI,CACxH","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
1
+ "use strict";const x=require("./index.cjs182.js"),v=require("./index.cjs188.js"),p=require("./index.cjs183.js");require("./index.cjs189.js");require("./index.cjs190.js");require("./index.cjs191.js");require("./index.cjs192.js");require("./index.cjs193.js");require("./index.cjs194.js");require("./index.cjs195.js");require("./index.cjs196.js");require("./index.cjs197.js");require("./index.cjs198.js");const G=require("./index.cjs199.js");require("./index.cjs200.js");const a=require("./index.cjs48.js");function O(e,r,t){t=t||{};var o=t.units||"kilometers",n=t.steps||8;if(!e)throw new Error("geojson is required");if(typeof t!="object")throw new Error("options must be an object");if(typeof n!="number")throw new Error("steps must be an number");if(r===void 0)throw new Error("radius is required");if(n<=0)throw new Error("steps must be greater than 0");var i=[];switch(e.type){case"GeometryCollection":return p.geomEach(e,function(f){var u=d(f,r,o,n);u&&i.push(u)}),a.featureCollection(i);case"FeatureCollection":return p.featureEach(e,function(f){var u=d(f,r,o,n);u&&p.featureEach(u,function(s){s&&i.push(s)})}),a.featureCollection(i)}return d(e,r,o,n)}function d(e,r,t,o){var n=e.properties||{},i=e.type==="Feature"?e.geometry:e;if(i.type==="GeometryCollection"){var f=[];return p.geomEach(e,function(N){var l=d(N,r,t,o);l&&f.push(l)}),a.featureCollection(f)}var u=F(i),s={type:i.type,coordinates:q(i.coordinates,u)},y=new v.GeoJSONReader,w=y.read(s),b=a.radiansToLength(a.lengthToRadians(r,t),"meters"),c=v.BufferOp.bufferOp(w,b,o),E=new v.GeoJSONWriter;if(c=E.write(c),!m(c.coordinates)){var C={type:c.type,coordinates:h(c.coordinates,u)};return a.feature(C,n)}}function m(e){return Array.isArray(e[0])?m(e[0]):isNaN(e[0])}function q(e,r){return typeof e[0]!="object"?r(e):e.map(function(t){return q(t,r)})}function h(e,r){return typeof e[0]!="object"?r.invert(e):e.map(function(t){return h(t,r)})}function F(e){var r=x(e).geometry.coordinates,t=[-r[0],-r[1]];return G.default().rotate(t).scale(a.earthRadius)}module.exports=O;
2
2
  //# sourceMappingURL=index.cjs52.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs52.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs52.js","sources":["../../../node_modules/@turf/buffer/dist/es/index.js"],"sourcesContent":["import center from '@turf/center';\nimport { GeoJSONReader, BufferOp, GeoJSONWriter } from 'turf-jsts';\nimport { featureEach, geomEach } from '@turf/meta';\nimport { geoAzimuthalEquidistant } from 'd3-geo';\nimport { featureCollection, earthRadius, radiansToLength, lengthToRadians, feature } from '@turf/helpers';\n\n/**\n * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees.\n *\n * When using a negative radius, the resulting geometry may be invalid if\n * it's too small compared to the radius magnitude. If the input is a\n * FeatureCollection, only valid members will be returned in the output\n * FeatureCollection - i.e., the output collection may have fewer members than\n * the input, or even be empty.\n *\n * @name buffer\n * @param {FeatureCollection|Geometry|Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer (negative values are allowed)\n * @param {Object} [options={}] Optional parameters\n * @param {string} [options.units=\"kilometers\"] any of the options supported by turf units\n * @param {number} [options.steps=8] number of steps\n * @returns {FeatureCollection|Feature<Polygon|MultiPolygon>|undefined} buffered features\n * @example\n * var point = turf.point([-90.548630, 14.616599]);\n * var buffered = turf.buffer(point, 500, {units: 'miles'});\n *\n * //addToMap\n * var addToMap = [point, buffered]\n */\nfunction buffer(geojson, radius, options) {\n // Optional params\n options = options || {};\n\n // use user supplied options or default values\n var units = options.units || \"kilometers\";\n var steps = options.steps || 8;\n\n // validation\n if (!geojson) throw new Error(\"geojson is required\");\n if (typeof options !== \"object\") throw new Error(\"options must be an object\");\n if (typeof steps !== \"number\") throw new Error(\"steps must be an number\");\n\n // Allow negative buffers (\"erosion\") or zero-sized buffers (\"repair geometry\")\n if (radius === undefined) throw new Error(\"radius is required\");\n if (steps <= 0) throw new Error(\"steps must be greater than 0\");\n\n var results = [];\n switch (geojson.type) {\n case \"GeometryCollection\":\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n case \"FeatureCollection\":\n featureEach(geojson, function (feature) {\n var multiBuffered = bufferFeature(feature, radius, units, steps);\n if (multiBuffered) {\n featureEach(multiBuffered, function (buffered) {\n if (buffered) results.push(buffered);\n });\n }\n });\n return featureCollection(results);\n }\n return bufferFeature(geojson, radius, units, steps);\n}\n\n/**\n * Buffer single Feature/Geometry\n *\n * @private\n * @param {Feature<any>} geojson input to be buffered\n * @param {number} radius distance to draw the buffer\n * @param {string} [units='kilometers'] any of the options supported by turf units\n * @param {number} [steps=8] number of steps\n * @returns {Feature<Polygon|MultiPolygon>} buffered feature\n */\nfunction bufferFeature(geojson, radius, units, steps) {\n var properties = geojson.properties || {};\n var geometry = geojson.type === \"Feature\" ? geojson.geometry : geojson;\n\n // Geometry Types faster than jsts\n if (geometry.type === \"GeometryCollection\") {\n var results = [];\n geomEach(geojson, function (geometry) {\n var buffered = bufferFeature(geometry, radius, units, steps);\n if (buffered) results.push(buffered);\n });\n return featureCollection(results);\n }\n\n // Project GeoJSON to Azimuthal Equidistant projection (convert to Meters)\n var projection = defineProjection(geometry);\n var projected = {\n type: geometry.type,\n coordinates: projectCoords(geometry.coordinates, projection),\n };\n\n // JSTS buffer operation\n var reader = new GeoJSONReader();\n var geom = reader.read(projected);\n var distance = radiansToLength(lengthToRadians(radius, units), \"meters\");\n var buffered = BufferOp.bufferOp(geom, distance, steps);\n var writer = new GeoJSONWriter();\n buffered = writer.write(buffered);\n\n // Detect if empty geometries\n if (coordsIsNaN(buffered.coordinates)) return undefined;\n\n // Unproject coordinates (convert to Degrees)\n var result = {\n type: buffered.type,\n coordinates: unprojectCoords(buffered.coordinates, projection),\n };\n\n return feature(result, properties);\n}\n\n/**\n * Coordinates isNaN\n *\n * @private\n * @param {Array<any>} coords GeoJSON Coordinates\n * @returns {boolean} if NaN exists\n */\nfunction coordsIsNaN(coords) {\n if (Array.isArray(coords[0])) return coordsIsNaN(coords[0]);\n return isNaN(coords[0]);\n}\n\n/**\n * Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} projected coordinates\n */\nfunction projectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj(coords);\n return coords.map(function (coord) {\n return projectCoords(coord, proj);\n });\n}\n\n/**\n * Un-Project coordinates to projection\n *\n * @private\n * @param {Array<any>} coords to un-project\n * @param {GeoProjection} proj D3 Geo Projection\n * @returns {Array<any>} un-projected coordinates\n */\nfunction unprojectCoords(coords, proj) {\n if (typeof coords[0] !== \"object\") return proj.invert(coords);\n return coords.map(function (coord) {\n return unprojectCoords(coord, proj);\n });\n}\n\n/**\n * Define Azimuthal Equidistant projection\n *\n * @private\n * @param {Geometry|Feature<any>} geojson Base projection on center of GeoJSON\n * @returns {GeoProjection} D3 Geo Azimuthal Equidistant Projection\n */\nfunction defineProjection(geojson) {\n var coords = center(geojson).geometry.coordinates;\n var rotation = [-coords[0], -coords[1]];\n return geoAzimuthalEquidistant().rotate(rotation).scale(earthRadius);\n}\n\nexport default buffer;\n"],"names":["buffer","geojson","radius","options","units","steps","results","geomEach","geometry","buffered","bufferFeature","featureCollection","featureEach","feature","multiBuffered","properties","projection","defineProjection","projected","projectCoords","reader","GeoJSONReader","geom","distance","radiansToLength","lengthToRadians","BufferOp","writer","GeoJSONWriter","coordsIsNaN","result","unprojectCoords","coords","proj","coord","center","rotation","geoAzimuthalEquidistant","earthRadius"],"mappings":"wfA6BA,SAASA,EAAOC,EAASC,EAAQC,EAAS,CAExCA,EAAUA,GAAW,GAGjB,IAAAC,EAAQD,EAAQ,OAAS,aACzBE,EAAQF,EAAQ,OAAS,EAG7B,GAAI,CAACF,EAAe,MAAA,IAAI,MAAM,qBAAqB,EACnD,GAAI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:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs66.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a;
2
10
  //# sourceMappingURL=index.cjs54.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs54.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.cjs54.js","sources":["../../../node_modules/react/cjs/react-jsx-runtime.production.min.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n"],"names":["require$$0","k","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min"],"mappings":"sLAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAI,EAAEA,EAAiBC,EAAE,OAAO,IAAI,eAAe,EAAE,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,UAAU,eAAeC,EAAE,EAAE,mDAAmD,kBAAkBC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EAClP,SAASC,EAAEC,EAAEC,EAAEC,EAAE,CAAC,IAAIC,EAAEC,EAAE,CAAG,EAAAC,EAAE,KAAKC,EAAE,KAAcJ,IAAA,SAAIG,EAAE,GAAGH,GAAYD,EAAE,MAAX,SAAiBI,EAAE,GAAGJ,EAAE,KAAcA,EAAE,MAAF,SAAQK,EAAEL,EAAE,KAAK,IAAIE,KAAKF,EAAEL,EAAE,KAAKK,EAAEE,CAAC,GAAG,CAACL,EAAE,eAAeK,CAAC,IAAIC,EAAED,CAAC,EAAEF,EAAEE,CAAC,GAAG,GAAGH,GAAGA,EAAE,aAAiB,IAAAG,KAAKF,EAAED,EAAE,aAAaC,EAAWG,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEF,EAAEE,CAAC,GAAG,MAAM,CAAC,SAASR,EAAE,KAAKK,EAAE,IAAIK,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOP,EAAE,OAAO,CAAC,CAAkBU,OAAAA,EAAA,UAAA,SAAA,EAAcA,EAAA,UAAA,IAAAR,EAAEQ,EAAA,UAAA,KAAaR","x_google_ignoreList":[0]}
@@ -1,10 +1,20 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs60.js"),R=require("react");var p;function a(){if(p)return t.__exports;p=1;/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./index.cjs67.js"),tr=require("react");var he;function ar(){if(he)return R.__exports;he=1;/**
2
2
  * @license React
3
- * react-jsx-runtime.production.min.js
3
+ * react-jsx-runtime.development.js
4
4
  *
5
5
  * Copyright (c) Facebook, Inc. and its affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a;
9
+ */return process.env.NODE_ENV!=="production"&&function(){var Ee=tr,x=Symbol.for("react.element"),_e=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),B=Symbol.for("react.provider"),q=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),ye=Symbol.for("react.offscreen"),G=Symbol.iterator,Re="@@iterator";function me(e){if(e===null||typeof e!="object")return null;var r=G&&e[G]||e[Re];return typeof r=="function"?r:null}var b=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];Te("error",e,t)}}function Te(e,r,t){{var a=b.ReactDebugCurrentFrame,i=a.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(o){return String(o)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var Ce=!1,Pe=!1,Se=!1,Oe=!1,we=!1,z;z=Symbol.for("react.module.reference");function je(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===N||we||e===U||e===k||e===D||Oe||e===ye||Ce||Pe||Se||typeof e=="object"&&e!==null&&(e.$$typeof===F||e.$$typeof===C||e.$$typeof===B||e.$$typeof===q||e.$$typeof===T||e.$$typeof===z||e.getModuleId!==void 0))}function xe(e,r,t){var a=e.displayName;if(a)return a;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function J(e){return e.displayName||"Context"}function d(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case _e:return"Portal";case N:return"Profiler";case U:return"StrictMode";case k:return"Suspense";case D:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case q:var r=e;return J(r)+".Consumer";case B:var t=e;return J(t._context)+".Provider";case T:return xe(e,e.render,"ForwardRef");case C:var a=e.displayName||null;return a!==null?a:d(e.type)||"Memo";case F:{var i=e,u=i._payload,o=i._init;try{return d(o(u))}catch{return null}}}return null}var g=Object.assign,_=0,K,H,X,Z,Q,ee,re;function te(){}te.__reactDisabledLog=!0;function ke(){{if(_===0){K=console.log,H=console.info,X=console.warn,Z=console.error,Q=console.group,ee=console.groupCollapsed,re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}_++}}function De(){{if(_--,_===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:K}),info:g({},e,{value:H}),warn:g({},e,{value:X}),error:g({},e,{value:Z}),group:g({},e,{value:Q}),groupCollapsed:g({},e,{value:ee}),groupEnd:g({},e,{value:re})})}_<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var A=b.ReactCurrentDispatcher,I;function P(e,r,t){{if(I===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);I=a&&a[1]||""}return`
10
+ `+I+e}}var W=!1,S;{var Fe=typeof WeakMap=="function"?WeakMap:Map;S=new Fe}function ae(e,r){if(!e||W)return"";{var t=S.get(e);if(t!==void 0)return t}var a;W=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=A.current,A.current=null,ke();try{if(r){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(p){a=p}Reflect.construct(e,[],o)}else{try{o.call()}catch(p){a=p}e.call(o.prototype)}}else{try{throw Error()}catch(p){a=p}e()}}catch(p){if(p&&a&&typeof p.stack=="string"){for(var n=p.stack.split(`
11
+ `),c=a.stack.split(`
12
+ `),s=n.length-1,l=c.length-1;s>=1&&l>=0&&n[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(n[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||n[s]!==c[l]){var v=`
13
+ `+n[s].replace(" at new "," at ");return e.displayName&&v.includes("<anonymous>")&&(v=v.replace("<anonymous>",e.displayName)),typeof e=="function"&&S.set(e,v),v}while(s>=1&&l>=0);break}}}finally{W=!1,A.current=u,De(),Error.prepareStackTrace=i}var E=e?e.displayName||e.name:"",be=E?P(E):"";return typeof e=="function"&&S.set(e,be),be}function Ae(e,r,t){return ae(e,!1)}function Ie(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function O(e,r,t){if(e==null)return"";if(typeof e=="function")return ae(e,Ie(e));if(typeof e=="string")return P(e);switch(e){case k:return P("Suspense");case D:return P("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case T:return Ae(e.render);case C:return O(e.type,r,t);case F:{var a=e,i=a._payload,u=a._init;try{return O(u(i),r,t)}catch{}}}return""}var w=Object.prototype.hasOwnProperty,ne={},oe=b.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);oe.setExtraStackFrame(t)}else oe.setExtraStackFrame(null)}function We(e,r,t,a,i){{var u=Function.call.bind(w);for(var o in e)if(u(e,o)){var n=void 0;try{if(typeof e[o]!="function"){var c=Error((a||"React class")+": "+t+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}n=e[o](r,o,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){n=s}n&&!(n instanceof Error)&&(j(i),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,o,typeof n),j(null)),n instanceof Error&&!(n.message in ne)&&(ne[n.message]=!0,j(i),f("Failed %s type: %s",t,n.message),j(null))}}}var Ye=Array.isArray;function Y(e){return Ye(e)}function $e(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Me(e){try{return ie(e),!1}catch{return!0}}function ie(e){return""+e}function ue(e){if(Me(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(e)),ie(e)}var y=b.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0},se,le,$;$={};function Le(e){if(w.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ue(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ne(e,r){if(typeof e.ref=="string"&&y.current&&r&&y.current.stateNode!==r){var t=d(y.current.type);$[t]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',d(y.current.type),e.ref),$[t]=!0)}}function Be(e,r){{var t=function(){se||(se=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function qe(e,r){{var t=function(){le||(le=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ge=function(e,r,t,a,i,u,o){var n={$$typeof:x,type:e,key:r,ref:t,props:o,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function ze(e,r,t,a,i){{var u,o={},n=null,c=null;t!==void 0&&(ue(t),n=""+t),Ue(r)&&(ue(r.key),n=""+r.key),Le(r)&&(c=r.ref,Ne(r,i));for(u in r)w.call(r,u)&&!Ve.hasOwnProperty(u)&&(o[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)o[u]===void 0&&(o[u]=s[u])}if(n||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&Be(o,l),c&&qe(o,l)}return Ge(e,n,c,i,a,y.current,o)}}var M=b.ReactCurrentOwner,fe=b.ReactDebugCurrentFrame;function h(e){if(e){var r=e._owner,t=O(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}var V;V=!1;function L(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ce(){{if(M.current){var e=d(M.current.type);if(e)return`
14
+
15
+ Check the render method of \``+e+"`."}return""}}function Je(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
16
+
17
+ Check your code at `+r+":"+t+"."}return""}}var ve={};function Ke(e){{var r=ce();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
18
+
19
+ Check the top-level render call using <`+t+">.")}return r}}function de(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Ke(r);if(ve[t])return;ve[t]=!0;var a="";e&&e._owner&&e._owner!==M.current&&(a=" It was passed a child from "+d(e._owner.type)+"."),h(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),h(null)}}function pe(e,r){{if(typeof e!="object")return;if(Y(e))for(var t=0;t<e.length;t++){var a=e[t];L(a)&&de(a,r)}else if(L(e))e._store&&(e._store.validated=!0);else if(e){var i=me(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),o;!(o=u.next()).done;)L(o.value)&&de(o.value,r)}}}function He(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===T||r.$$typeof===C))t=r.propTypes;else return;if(t){var a=d(r);We(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!V){V=!0;var i=d(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Xe(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){h(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),h(null);break}}e.ref!==null&&(h(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),h(null))}}function ge(e,r,t,a,i,u){{var o=je(e);if(!o){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=Je(i);c?n+=c:n+=ce();var s;e===null?s="null":Y(e)?s="array":e!==void 0&&e.$$typeof===x?(s="<"+(d(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)}var l=ze(e,r,t,i,u);if(l==null)return l;if(o){var v=r.children;if(v!==void 0)if(a)if(Y(v)){for(var E=0;E<v.length;E++)pe(v[E],e);Object.freeze&&Object.freeze(v)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else pe(v,e)}return e===m?Xe(l):He(l),l}}function Ze(e,r,t){return ge(e,r,t,!0)}function Qe(e,r,t){return ge(e,r,t,!1)}var er=Qe,rr=Ze;R.__exports.Fragment=m,R.__exports.jsx=er,R.__exports.jsxs=rr}(),R.__exports}exports.__require=ar;
10
20
  //# sourceMappingURL=index.cjs55.js.map