@nasa-terra/components 0.0.203 → 0.0.205

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 (1457) hide show
  1. package/cdn/apis/harmony.api.d.ts +5 -0
  2. package/cdn/chunks/GeoTIFF.CENKOG7R.js +19979 -0
  3. package/cdn/chunks/chunk.2232XEJQ.js +29 -0
  4. package/cdn/chunks/chunk.2B2TSVNY.js +978 -0
  5. package/cdn/chunks/chunk.2NNYMNZ5.js +29 -0
  6. package/cdn/chunks/chunk.2NX4H2BN.js +19 -0
  7. package/cdn/chunks/chunk.2WBW37NH.js +19 -0
  8. package/cdn/chunks/chunk.2X7DAD43.js +29 -0
  9. package/cdn/chunks/chunk.2XT2DXDS.js +528 -0
  10. package/cdn/chunks/chunk.34A6RU6E.js +29 -0
  11. package/cdn/chunks/chunk.3A3Y63MA.js +19 -0
  12. package/cdn/chunks/chunk.3JB5ESJU.js +8969 -0
  13. package/cdn/chunks/chunk.3TH37PLU.js +1121 -0
  14. package/cdn/chunks/chunk.3XHPRPKJ.js +1009 -0
  15. package/cdn/chunks/chunk.4FAAL7CU.js +897 -0
  16. package/cdn/chunks/chunk.4JTU674G.js +48 -0
  17. package/cdn/chunks/chunk.4KBZ7BIR.js +29 -0
  18. package/cdn/chunks/chunk.4PDH3KAH.js +1945 -0
  19. package/cdn/chunks/chunk.4RS5WH4G.js +19 -0
  20. package/cdn/chunks/chunk.4W7HENDQ.js +19 -0
  21. package/cdn/chunks/chunk.5256OMFI.js +62 -0
  22. package/cdn/chunks/chunk.577EXZQP.js +19 -0
  23. package/cdn/chunks/chunk.5DIIZV4K.js +791 -0
  24. package/cdn/chunks/chunk.5DIVPJOJ.js +1653 -0
  25. package/cdn/chunks/chunk.5F22YVKZ.js +19 -0
  26. package/cdn/chunks/chunk.5GC6XXMO.js +19 -0
  27. package/cdn/chunks/chunk.5GD3GQER.js +33 -0
  28. package/cdn/chunks/chunk.5JGHWKZV.js +38 -0
  29. package/cdn/chunks/chunk.5MCRMJ7W.js +110 -0
  30. package/cdn/chunks/chunk.5MFAIDYF.js +19 -0
  31. package/cdn/chunks/chunk.5QQP4HY5.js +29 -0
  32. package/cdn/chunks/chunk.5SGSESUV.js +39 -0
  33. package/cdn/chunks/chunk.5T32ADMR.js +32 -0
  34. package/cdn/chunks/chunk.5TUINKG3.js +19 -0
  35. package/cdn/chunks/chunk.5Z5FTYHQ.js +29 -0
  36. package/cdn/chunks/chunk.64ZLB3XD.js +37 -0
  37. package/cdn/chunks/chunk.67MZVSO7.js +234 -0
  38. package/cdn/chunks/chunk.6KW23GBD.js +3035 -0
  39. package/cdn/chunks/chunk.6NU4LT46.js +189 -0
  40. package/cdn/chunks/chunk.6ONOP4ID.js +29 -0
  41. package/cdn/chunks/chunk.6RBN3R3S.js +19 -0
  42. package/cdn/chunks/chunk.6RVC4QTE.js +19 -0
  43. package/cdn/chunks/chunk.6VGVAUYK.js +256 -0
  44. package/cdn/chunks/chunk.6XBVIYCV.js +32 -0
  45. package/cdn/chunks/chunk.76VAMCFM.js +824 -0
  46. package/cdn/chunks/chunk.7FTE5V2B.js +19 -0
  47. package/cdn/chunks/chunk.7OFUJKBW.js +30 -0
  48. package/cdn/chunks/chunk.7RUFZ7VF.js +475 -0
  49. package/cdn/chunks/chunk.A4KWAYQH.js +4980 -0
  50. package/cdn/chunks/chunk.A63JCTKT.js +19 -0
  51. package/cdn/chunks/chunk.AQ5OKPLZ.js +19 -0
  52. package/cdn/chunks/chunk.AQ5T22QG.js +41 -0
  53. package/cdn/chunks/chunk.ASGNUKTS.js +1131 -0
  54. package/cdn/chunks/chunk.AUWT3HKD.js +940 -0
  55. package/cdn/chunks/chunk.BD5JLOM4.js +357 -0
  56. package/cdn/chunks/chunk.BL2T5FVE.js +10 -0
  57. package/cdn/chunks/chunk.BNIVIVSF.js +2544 -0
  58. package/cdn/chunks/chunk.BPTXUG3W.js +35 -0
  59. package/cdn/chunks/chunk.BQPBQZFS.js +360 -0
  60. package/cdn/chunks/chunk.BYBKLA6W.js +255 -0
  61. package/cdn/chunks/chunk.CHNYNA6A.js +19 -0
  62. package/cdn/chunks/chunk.CISSBK6B.js +1820 -0
  63. package/cdn/chunks/chunk.CN3HAOBC.js +83 -0
  64. package/cdn/chunks/chunk.CO3P3PQN.js +19 -0
  65. package/cdn/chunks/chunk.CSF2PMFW.js +1075 -0
  66. package/cdn/chunks/chunk.CT6JWWV2.js +93 -0
  67. package/cdn/chunks/chunk.CY2NA7DX.js +1040 -0
  68. package/cdn/chunks/chunk.D2OCF56Z.js +74 -0
  69. package/cdn/chunks/chunk.D3WDJ4SS.js +149 -0
  70. package/cdn/chunks/chunk.D52LQ4J3.js +19 -0
  71. package/cdn/chunks/chunk.D5OYZFRL.js +134 -0
  72. package/cdn/chunks/chunk.D6W64PXN.js +19 -0
  73. package/cdn/chunks/chunk.D7YRDTVS.js +134 -0
  74. package/cdn/chunks/chunk.DLBLZUXI.js +19 -0
  75. package/cdn/chunks/chunk.DMAOIRXE.js +19 -0
  76. package/cdn/chunks/chunk.E2RZP3XA.js +19 -0
  77. package/cdn/chunks/chunk.E6423VVS.js +47 -0
  78. package/cdn/chunks/chunk.EAUBUUN5.js +32 -0
  79. package/cdn/chunks/chunk.EBGQWXBG.js +19 -0
  80. package/cdn/chunks/chunk.EDPOC2S3.js +29 -0
  81. package/cdn/chunks/chunk.EH63H56Z.js +333 -0
  82. package/cdn/chunks/chunk.EIAV6I5D.js +600 -0
  83. package/cdn/chunks/chunk.EOTDTPZM.js +259 -0
  84. package/cdn/chunks/chunk.EP6PSBZE.js +100 -0
  85. package/cdn/chunks/chunk.EVAUERXR.js +431 -0
  86. package/cdn/chunks/chunk.F2DLSNNG.js +625 -0
  87. package/cdn/chunks/chunk.F6FVKFVH.js +60 -0
  88. package/cdn/chunks/chunk.FEIRWXAI.js +34 -0
  89. package/cdn/chunks/chunk.FK5JYFNX.js +29 -0
  90. package/cdn/chunks/chunk.FP2ISOJN.js +106 -0
  91. package/cdn/chunks/chunk.FRGR3SUX.js +19 -0
  92. package/cdn/chunks/chunk.G2FP3NMR.js +32 -0
  93. package/cdn/chunks/chunk.G4RHOTZM.js +19 -0
  94. package/cdn/chunks/chunk.G56LMKFK.js +190 -0
  95. package/cdn/chunks/chunk.GAYO2WF7.js +810 -0
  96. package/cdn/chunks/chunk.GGKAPJYB.js +4089 -0
  97. package/cdn/chunks/chunk.GGRHSJRY.js +278 -0
  98. package/cdn/chunks/chunk.GMXOAOYE.js +897 -0
  99. package/cdn/chunks/chunk.GPTTHV22.js +19 -0
  100. package/cdn/chunks/chunk.GSM3UO7L.js +125 -0
  101. package/cdn/chunks/chunk.GUDMVVPM.js +29 -0
  102. package/cdn/chunks/chunk.GWGONIHM.js +621 -0
  103. package/cdn/chunks/chunk.GXLMJLQN.js +19 -0
  104. package/cdn/chunks/chunk.H3M3UFJW.js +225 -0
  105. package/cdn/chunks/chunk.H4CIEYCI.js +274 -0
  106. package/cdn/chunks/chunk.HAMWPWKH.js +536 -0
  107. package/cdn/chunks/chunk.HJX5NP2U.js +49 -0
  108. package/cdn/chunks/chunk.HUS54CD5.js +152 -0
  109. package/cdn/chunks/chunk.HV7OZEJM.js +37 -0
  110. package/cdn/chunks/chunk.HVZFV4RK.js +271 -0
  111. package/cdn/chunks/chunk.I2EO4UEA.js +128 -0
  112. package/cdn/chunks/chunk.I2S4BY2H.js +19 -0
  113. package/cdn/chunks/chunk.IBOPN3BA.js +74 -0
  114. package/cdn/chunks/chunk.IIVOE5EV.js +34 -0
  115. package/cdn/chunks/chunk.ILWTJYAG.js +19 -0
  116. package/cdn/chunks/chunk.IMCWFOML.js +132 -0
  117. package/cdn/chunks/chunk.IPQAZBW5.js +33 -0
  118. package/cdn/chunks/chunk.IWKAVEX2.js +521 -0
  119. package/cdn/chunks/chunk.IXCWTH7X.js +19 -0
  120. package/cdn/chunks/chunk.J2O5J6LC.js +33 -0
  121. package/cdn/chunks/chunk.J665CST2.js +32 -0
  122. package/cdn/chunks/chunk.J7VOBHYB.js +29 -0
  123. package/cdn/chunks/chunk.JRHREVZG.js +195 -0
  124. package/cdn/chunks/chunk.JRT7GG7P.js +193 -0
  125. package/cdn/chunks/chunk.JZBAAUKG.js +37 -0
  126. package/cdn/chunks/chunk.K6JQEUEF.js +855 -0
  127. package/cdn/chunks/chunk.KBU6MR53.js +19 -0
  128. package/cdn/chunks/chunk.KH6TDNWG.js +32 -0
  129. package/cdn/chunks/chunk.KKACL6TT.js +19 -0
  130. package/cdn/chunks/chunk.KORCC6ZC.js +136 -0
  131. package/cdn/chunks/chunk.KOZYPVDG.js +29 -0
  132. package/cdn/chunks/chunk.KRVDOVGU.js +27 -0
  133. package/cdn/chunks/chunk.KVNYSD7J.js +35 -0
  134. package/cdn/chunks/chunk.KVY6HP36.js +504 -0
  135. package/cdn/chunks/chunk.KYTQLAV4.js +33 -0
  136. package/cdn/chunks/chunk.L2JTE4GG.js +29 -0
  137. package/cdn/chunks/chunk.L3IVPHBN.js +29 -0
  138. package/cdn/chunks/chunk.L3RRPSVD.js +310 -0
  139. package/cdn/chunks/chunk.LA6TV4TX.js +231 -0
  140. package/cdn/chunks/chunk.LFASDJBV.js +19 -0
  141. package/cdn/chunks/chunk.LFKTPFJU.js +19 -0
  142. package/cdn/chunks/chunk.LFL3PUXL.js +78 -0
  143. package/cdn/chunks/chunk.LI42WZVM.js +19 -0
  144. package/cdn/chunks/chunk.LNONJFUN.js +19 -0
  145. package/cdn/chunks/chunk.LUKHK72N.js +1038 -0
  146. package/cdn/chunks/chunk.M3QGLBMX.js +256 -0
  147. package/cdn/chunks/chunk.M57M7AQ5.js +19 -0
  148. package/cdn/chunks/chunk.MC7GK7JH.js +36 -0
  149. package/cdn/chunks/chunk.MC7JQJRG.js +32 -0
  150. package/cdn/chunks/chunk.ML5BEAMW.js +276 -0
  151. package/cdn/chunks/chunk.MMF6FZHE.js +19 -0
  152. package/cdn/chunks/chunk.MO4YNF4J.js +29 -0
  153. package/cdn/chunks/chunk.MUSKX3GU.js +138 -0
  154. package/cdn/chunks/chunk.N7GDICRN.js +568 -0
  155. package/cdn/chunks/chunk.NDYEK3K4.js +19 -0
  156. package/cdn/chunks/chunk.NHZJYK2Q.js +111 -0
  157. package/cdn/chunks/chunk.NRLNKN7I.js +17 -0
  158. package/cdn/chunks/chunk.NSKILA2A.js +29 -0
  159. package/cdn/chunks/chunk.NWO2MF5T.js +375 -0
  160. package/cdn/chunks/chunk.NX7VOYQH.js +610 -0
  161. package/cdn/chunks/chunk.NZA757GX.js +60 -0
  162. package/cdn/chunks/chunk.O2NOKPSY.js +169 -0
  163. package/cdn/chunks/chunk.OIOVBL5M.js +32 -0
  164. package/cdn/chunks/chunk.OSNWOWQ2.js +2337 -0
  165. package/cdn/chunks/chunk.OSRGCUJJ.js +891 -0
  166. package/cdn/chunks/chunk.OVC7EVR4.js +32 -0
  167. package/cdn/chunks/chunk.PEGHDN3D.js +32 -0
  168. package/cdn/chunks/chunk.PKU5OUHL.js +19 -0
  169. package/cdn/chunks/chunk.PVAQWFRB.js +224 -0
  170. package/cdn/chunks/chunk.PVNZZZCV.js +1307 -0
  171. package/cdn/chunks/chunk.QBDCDA3E.js +754 -0
  172. package/cdn/chunks/chunk.QDRW3JBM.js +113 -0
  173. package/cdn/chunks/chunk.QFRFT4W5.js +19 -0
  174. package/cdn/chunks/chunk.QJPYGHSA.js +29 -0
  175. package/cdn/chunks/chunk.QN4G5N5L.js +591 -0
  176. package/cdn/chunks/chunk.QQYFIC2N.js +19 -0
  177. package/cdn/chunks/chunk.QR6SCWOR.js +19 -0
  178. package/cdn/chunks/chunk.QRGGKLJQ.js +29 -0
  179. package/cdn/chunks/chunk.QSX2ASPV.js +36 -0
  180. package/cdn/chunks/chunk.QV7MGHUO.js +32 -0
  181. package/cdn/chunks/chunk.QYLVSRAZ.js +442 -0
  182. package/cdn/chunks/chunk.R6TDRJ2T.js +28 -0
  183. package/cdn/chunks/chunk.RRQO6C7V.js +208 -0
  184. package/cdn/chunks/chunk.RRT5M4B3.js +104 -0
  185. package/cdn/chunks/chunk.RZNXY5DA.js +85 -0
  186. package/cdn/chunks/chunk.S2MHJ2BL.js +529 -0
  187. package/cdn/chunks/chunk.S2P2KBX3.js +19 -0
  188. package/cdn/chunks/chunk.S5UFNVHZ.js +1768 -0
  189. package/cdn/chunks/chunk.SAMOMNBR.js +32 -0
  190. package/cdn/chunks/chunk.SPWHG3FQ.js +36 -0
  191. package/cdn/chunks/chunk.SRIL2GZR.js +19 -0
  192. package/cdn/chunks/chunk.T32DCJPK.js +33 -0
  193. package/cdn/chunks/chunk.T3YLYNOF.js +2977 -0
  194. package/cdn/chunks/chunk.T7754SP4.js +33 -0
  195. package/cdn/chunks/chunk.T7KRTL2U.js +19 -0
  196. package/cdn/chunks/chunk.TAY4BUTR.js +92 -0
  197. package/cdn/chunks/chunk.TBU3QGJR.js +29 -0
  198. package/cdn/chunks/chunk.TEEU5HFN.js +284 -0
  199. package/cdn/chunks/chunk.TFRA4ITH.js +32 -0
  200. package/cdn/chunks/chunk.TFRHDABM.js +19 -0
  201. package/cdn/chunks/chunk.THX4K42R.js +19 -0
  202. package/cdn/chunks/chunk.TKLGXW34.js +19 -0
  203. package/cdn/chunks/chunk.TMAJCFSJ.js +19 -0
  204. package/cdn/chunks/chunk.TMPSEY4M.js +876 -0
  205. package/cdn/chunks/chunk.TULXWHMT.js +19 -0
  206. package/cdn/chunks/chunk.U42UGPIF.js +34 -0
  207. package/cdn/chunks/chunk.U7RFQUL4.js +117 -0
  208. package/cdn/chunks/chunk.UHSY6WVZ.js +19 -0
  209. package/cdn/chunks/chunk.UI7YLIQD.js +19 -0
  210. package/cdn/chunks/chunk.UK5FWG26.js +621 -0
  211. package/cdn/chunks/chunk.UMPFH3IG.js +32 -0
  212. package/cdn/chunks/chunk.UW4VQ2ZT.js +29 -0
  213. package/cdn/chunks/chunk.UWQGPSGJ.js +123 -0
  214. package/cdn/chunks/chunk.UYISI6DV.js +161 -0
  215. package/cdn/chunks/chunk.VBP6ZZXJ.js +104 -0
  216. package/cdn/chunks/chunk.VNSMUAG2.js +19 -0
  217. package/cdn/chunks/chunk.VQFDZZR5.js +64743 -0
  218. package/cdn/chunks/chunk.VTJ45MEV.js +68 -0
  219. package/cdn/chunks/chunk.VXTFCFJP.js +29 -0
  220. package/cdn/chunks/chunk.VYRHCJMA.js +19 -0
  221. package/cdn/chunks/chunk.W5BKCYRV.js +19 -0
  222. package/cdn/chunks/chunk.W7NVJUQD.js +42 -0
  223. package/cdn/chunks/chunk.WAIMZWDO.js +32 -0
  224. package/cdn/chunks/chunk.WCOQW5IP.js +29 -0
  225. package/cdn/chunks/chunk.WENZIKZU.js +37 -0
  226. package/cdn/chunks/chunk.WLIBRD3E.js +36 -0
  227. package/cdn/chunks/chunk.WMGJ3MAP.js +415 -0
  228. package/cdn/chunks/chunk.WT45RB6M.js +86 -0
  229. package/cdn/chunks/chunk.WVIQ74WP.js +29 -0
  230. package/cdn/chunks/chunk.WVKE7GDV.js +82 -0
  231. package/cdn/chunks/chunk.X6V5UTEC.js +19 -0
  232. package/cdn/chunks/chunk.XE7NSCVW.js +35 -0
  233. package/cdn/chunks/chunk.XEPXVSXX.js +19 -0
  234. package/cdn/chunks/chunk.XFTU6F75.js +19 -0
  235. package/cdn/chunks/chunk.XGGJLW76.js +19 -0
  236. package/cdn/chunks/chunk.XIPDYSFN.js +32 -0
  237. package/cdn/chunks/chunk.XIY5GTZR.js +19 -0
  238. package/cdn/chunks/chunk.XLUZ67JF.js +11763 -0
  239. package/cdn/chunks/chunk.Y7SR4L5C.js +19 -0
  240. package/cdn/chunks/chunk.YJ7H7EYL.js +71 -0
  241. package/cdn/chunks/chunk.YKDCWNZE.js +17319 -0
  242. package/cdn/chunks/chunk.YMH7U2K5.js +29 -0
  243. package/cdn/chunks/chunk.YU5KVALN.js +29 -0
  244. package/cdn/chunks/chunk.Z6ZRFFCE.js +35 -0
  245. package/cdn/chunks/chunk.ZG6QTQKO.js +162 -0
  246. package/cdn/chunks/chunk.ZL4AGGZE.js +35 -0
  247. package/cdn/chunks/chunk.ZL6COYU6.js +19 -0
  248. package/cdn/chunks/chunk.ZNSSJSKK.js +158 -0
  249. package/cdn/chunks/lerc.IIII5MJ5.js +2099 -0
  250. package/cdn/components/accordion/accordion.component.js +5 -5
  251. package/cdn/components/accordion/accordion.js +6 -6
  252. package/cdn/components/alert/alert.component.js +4 -4
  253. package/cdn/components/alert/alert.js +5 -5
  254. package/cdn/components/avatar/avatar.component.js +5 -5
  255. package/cdn/components/avatar/avatar.js +6 -6
  256. package/cdn/components/badge/badge.component.js +3 -3
  257. package/cdn/components/badge/badge.js +4 -4
  258. package/cdn/components/banner/banner.component.js +3 -3
  259. package/cdn/components/banner/banner.js +4 -4
  260. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  261. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  262. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  263. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  264. package/cdn/components/browse-variables/browse-variables.component.d.ts +1 -1
  265. package/cdn/components/browse-variables/browse-variables.component.js +21 -21
  266. package/cdn/components/browse-variables/browse-variables.controller.js +2 -2
  267. package/cdn/components/browse-variables/browse-variables.js +22 -22
  268. package/cdn/components/button/button.component.js +6 -6
  269. package/cdn/components/button/button.js +7 -7
  270. package/cdn/components/button-group/button-group.component.js +2 -2
  271. package/cdn/components/button-group/button-group.js +3 -3
  272. package/cdn/components/caption/caption.component.js +2 -2
  273. package/cdn/components/caption/caption.js +3 -3
  274. package/cdn/components/card/card.component.js +2 -2
  275. package/cdn/components/card/card.js +3 -3
  276. package/cdn/components/checkbox/checkbox.component.js +5 -5
  277. package/cdn/components/checkbox/checkbox.js +6 -6
  278. package/cdn/components/chip/chip.component.js +2 -2
  279. package/cdn/components/chip/chip.js +3 -3
  280. package/cdn/components/combobox/combobox.component.js +5 -5
  281. package/cdn/components/combobox/combobox.js +6 -6
  282. package/cdn/components/data-access/data-access.component.d.ts +11 -11
  283. package/cdn/components/data-access/data-access.component.js +69 -56
  284. package/cdn/components/data-access/data-access.js +70 -57
  285. package/cdn/components/data-grid/data-grid.component.js +3 -3
  286. package/cdn/components/data-grid/data-grid.js +4 -4
  287. package/cdn/components/data-rods/data-rods.component.d.ts +7 -11
  288. package/cdn/components/data-rods/data-rods.component.js +79 -67
  289. package/cdn/components/data-rods/data-rods.js +80 -68
  290. package/cdn/components/data-subsetter/data-subsetter.component.d.ts +8 -5
  291. package/cdn/components/data-subsetter/data-subsetter.component.js +83 -72
  292. package/cdn/components/data-subsetter/data-subsetter.js +84 -73
  293. package/cdn/components/data-subsetter/data-subsetter.styles.js +1 -1
  294. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  295. package/cdn/components/data-subsetter-history/data-subsetter-history.component.d.ts +4 -7
  296. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +84 -73
  297. package/cdn/components/data-subsetter-history/data-subsetter-history.js +85 -74
  298. package/cdn/components/date-picker/date-picker.component.d.ts +3 -4
  299. package/cdn/components/date-picker/date-picker.component.js +14 -14
  300. package/cdn/components/date-picker/date-picker.js +15 -15
  301. package/cdn/components/date-range-slider/date-range-slider.component.js +3 -3
  302. package/cdn/components/date-range-slider/date-range-slider.js +4 -4
  303. package/cdn/components/dialog/dialog.component.js +8 -8
  304. package/cdn/components/dialog/dialog.js +9 -9
  305. package/cdn/components/divider/divider.component.js +2 -2
  306. package/cdn/components/divider/divider.js +3 -3
  307. package/cdn/components/dropdown/dropdown.component.js +4 -4
  308. package/cdn/components/dropdown/dropdown.js +5 -5
  309. package/cdn/components/earthdata-login/earthdata-login.component.d.ts +3 -1
  310. package/cdn/components/earthdata-login/earthdata-login.component.js +16 -17
  311. package/cdn/components/earthdata-login/earthdata-login.js +17 -18
  312. package/cdn/components/file-upload/file-upload.component.js +2 -2
  313. package/cdn/components/file-upload/file-upload.js +3 -3
  314. package/cdn/components/harmony-history/harmony-history.component.d.ts +3 -6
  315. package/cdn/components/harmony-history/harmony-history.component.js +12 -13
  316. package/cdn/components/harmony-history/harmony-history.js +13 -14
  317. package/cdn/components/icon/icon.component.js +3 -3
  318. package/cdn/components/icon/icon.js +4 -4
  319. package/cdn/components/input/input.component.js +5 -5
  320. package/cdn/components/input/input.js +6 -6
  321. package/cdn/components/loader/loader.component.js +2 -2
  322. package/cdn/components/loader/loader.js +3 -3
  323. package/cdn/components/login/login.component.d.ts +3 -1
  324. package/cdn/components/login/login.component.js +12 -13
  325. package/cdn/components/login/login.js +13 -14
  326. package/cdn/components/map/controls/draw-toolbar.control.d.ts +5 -2
  327. package/cdn/components/map/controls/draw-toolbar.control.js +18 -8
  328. package/cdn/components/map/controls/layer-picker.control.d.ts +16 -0
  329. package/cdn/components/map/controls/layer-picker.control.js +13 -0
  330. package/cdn/components/map/layers/base.layer.d.ts +10 -0
  331. package/cdn/components/map/layers/base.layer.js +25 -14
  332. package/cdn/components/map/layers/borders.layer.js +21 -13
  333. package/cdn/components/map/layers/boundary.d.ts +30 -0
  334. package/cdn/components/map/layers/boundary.js +20 -0
  335. package/cdn/components/map/layers/common.d.ts +2 -0
  336. package/cdn/components/map/layers/geotiff.layer.js +12 -7
  337. package/cdn/components/map/layers/gibs-vector.layer.js +26 -18
  338. package/cdn/components/map/layers/gibs.layer.d.ts +6 -0
  339. package/cdn/components/map/layers/gibs.layer.js +26 -18
  340. package/cdn/components/map/layers/labels.layer.js +21 -13
  341. package/cdn/components/map/layers/layer.js +28 -20
  342. package/cdn/components/map/layers/xyz.layer.js +17 -12
  343. package/cdn/components/map/map.component.d.ts +73 -21
  344. package/cdn/components/map/map.component.js +43 -29
  345. package/cdn/components/map/map.js +44 -30
  346. package/cdn/components/map/map.service.d.ts +92 -9
  347. package/cdn/components/map/map.service.js +33 -19
  348. package/cdn/components/map/map.styles.js +1 -1
  349. package/cdn/components/map/projections.js +4 -3
  350. package/cdn/components/map/type.d.ts +7 -0
  351. package/cdn/components/menu/menu.component.js +2 -2
  352. package/cdn/components/menu/menu.js +3 -3
  353. package/cdn/components/menu-item/menu-item.component.js +7 -7
  354. package/cdn/components/menu-item/menu-item.js +8 -8
  355. package/cdn/components/option/option.component.js +4 -4
  356. package/cdn/components/option/option.js +5 -5
  357. package/cdn/components/pagination/pagination.component.js +4 -4
  358. package/cdn/components/pagination/pagination.js +5 -5
  359. package/cdn/components/plot/plot.component.js +2 -2
  360. package/cdn/components/plot/plot.js +3 -3
  361. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  362. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  363. package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +4 -4
  364. package/cdn/components/plot-toolbar/plot-toolbar.component.js +54 -42
  365. package/cdn/components/plot-toolbar/plot-toolbar.js +55 -43
  366. package/cdn/components/popup/popup.component.js +2 -2
  367. package/cdn/components/popup/popup.js +3 -3
  368. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  369. package/cdn/components/progress-bar/progress-bar.js +3 -3
  370. package/cdn/components/radio/radio.component.js +3 -3
  371. package/cdn/components/radio/radio.js +4 -4
  372. package/cdn/components/radio-group/radio-group.component.js +3 -3
  373. package/cdn/components/radio-group/radio-group.js +4 -4
  374. package/cdn/components/scroll-hint/scroll-hint.component.js +4 -4
  375. package/cdn/components/scroll-hint/scroll-hint.js +5 -5
  376. package/cdn/components/select/select.component.js +8 -8
  377. package/cdn/components/select/select.js +9 -9
  378. package/cdn/components/site-header/site-header.component.js +5 -5
  379. package/cdn/components/site-header/site-header.js +5 -5
  380. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  381. package/cdn/components/site-navigation/site-navigation.js +2 -2
  382. package/cdn/components/skeleton/skeleton.component.js +2 -2
  383. package/cdn/components/skeleton/skeleton.js +3 -3
  384. package/cdn/components/slider/slider.component.js +2 -2
  385. package/cdn/components/slider/slider.js +3 -3
  386. package/cdn/components/spatial-picker/spatial-picker.component.d.ts +0 -10
  387. package/cdn/components/spatial-picker/spatial-picker.component.js +53 -39
  388. package/cdn/components/spatial-picker/spatial-picker.js +54 -40
  389. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  390. package/cdn/components/status-indicator/status-indicator.js +3 -3
  391. package/cdn/components/stepper/stepper.component.js +2 -2
  392. package/cdn/components/stepper/stepper.js +3 -3
  393. package/cdn/components/stepper-step/stepper-step.component.js +4 -4
  394. package/cdn/components/stepper-step/stepper-step.js +5 -5
  395. package/cdn/components/tab/tab.component.js +4 -4
  396. package/cdn/components/tab/tab.js +5 -5
  397. package/cdn/components/tab-panel/tab-panel.component.js +3 -3
  398. package/cdn/components/tab-panel/tab-panel.js +4 -4
  399. package/cdn/components/tabs/tabs.component.d.ts +2 -1
  400. package/cdn/components/tabs/tabs.component.js +4 -4
  401. package/cdn/components/tabs/tabs.js +5 -5
  402. package/cdn/components/tag/tag.component.js +4 -4
  403. package/cdn/components/tag/tag.js +5 -5
  404. package/cdn/components/textarea/textarea.component.js +4 -4
  405. package/cdn/components/textarea/textarea.js +5 -5
  406. package/cdn/components/time-average-map/time-average-map.component.d.ts +10 -14
  407. package/cdn/components/time-average-map/time-average-map.component.js +66 -54
  408. package/cdn/components/time-average-map/time-average-map.controller.js +7 -7
  409. package/cdn/components/time-average-map/time-average-map.js +67 -55
  410. package/cdn/components/time-series/time-series.component.d.ts +2 -10
  411. package/cdn/components/time-series/time-series.component.js +66 -54
  412. package/cdn/components/time-series/time-series.controller.js +7 -7
  413. package/cdn/components/time-series/time-series.js +67 -55
  414. package/cdn/components/toast/toast.component.js +5 -5
  415. package/cdn/components/toast/toast.js +6 -6
  416. package/cdn/components/toggle/toggle.component.js +4 -4
  417. package/cdn/components/toggle/toggle.js +5 -5
  418. package/cdn/components/tooltip/tooltip.component.js +4 -4
  419. package/cdn/components/tooltip/tooltip.js +5 -5
  420. package/cdn/components/variable-combobox/variable-combobox.component.d.ts +5 -9
  421. package/cdn/components/variable-combobox/variable-combobox.component.js +14 -12
  422. package/cdn/components/variable-combobox/variable-combobox.js +15 -13
  423. package/cdn/components/variable-keyword-search/variable-keyword-search.component.d.ts +2 -2
  424. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +10 -10
  425. package/cdn/components/variable-keyword-search/variable-keyword-search.js +11 -11
  426. package/cdn/custom-elements.json +10670 -8582
  427. package/cdn/events/events.d.ts +2 -2
  428. package/cdn/events/terra-map.d.ts +55 -0
  429. package/cdn/mixins/auth.mixin.d.ts +23 -0
  430. package/cdn/mixins/mixin.types.d.ts +1 -0
  431. package/cdn/mixins/query-client.mixin.d.ts +1 -1
  432. package/cdn/react/accordion/index.js +6 -6
  433. package/cdn/react/alert/index.js +5 -5
  434. package/cdn/react/avatar/index.js +6 -6
  435. package/cdn/react/badge/index.js +4 -4
  436. package/cdn/react/banner/index.js +4 -4
  437. package/cdn/react/breadcrumb/index.js +3 -3
  438. package/cdn/react/breadcrumbs/index.js +3 -3
  439. package/cdn/react/browse-variables/index.js +22 -22
  440. package/cdn/react/button/index.js +7 -7
  441. package/cdn/react/button-group/index.js +3 -3
  442. package/cdn/react/caption/index.js +3 -3
  443. package/cdn/react/card/index.js +3 -3
  444. package/cdn/react/checkbox/index.js +6 -6
  445. package/cdn/react/chip/index.js +3 -3
  446. package/cdn/react/combobox/index.js +6 -6
  447. package/cdn/react/data-access/index.js +70 -57
  448. package/cdn/react/data-grid/index.js +4 -4
  449. package/cdn/react/data-rods/index.d.ts +6 -1
  450. package/cdn/react/data-rods/index.js +80 -68
  451. package/cdn/react/data-subsetter/index.d.ts +3 -0
  452. package/cdn/react/data-subsetter/index.js +84 -73
  453. package/cdn/react/data-subsetter-history/index.d.ts +6 -1
  454. package/cdn/react/data-subsetter-history/index.js +85 -74
  455. package/cdn/react/date-picker/index.js +15 -15
  456. package/cdn/react/date-range-slider/index.js +4 -4
  457. package/cdn/react/dialog/index.js +9 -9
  458. package/cdn/react/divider/index.js +3 -3
  459. package/cdn/react/dropdown/index.js +5 -5
  460. package/cdn/react/earthdata-login/index.js +17 -18
  461. package/cdn/react/file-upload/index.js +3 -3
  462. package/cdn/react/harmony-history/index.d.ts +3 -0
  463. package/cdn/react/harmony-history/index.js +13 -14
  464. package/cdn/react/icon/index.js +4 -4
  465. package/cdn/react/index.d.ts +24 -24
  466. package/cdn/react/index.js +277 -265
  467. package/cdn/react/input/index.js +6 -6
  468. package/cdn/react/loader/index.js +3 -3
  469. package/cdn/react/login/index.js +13 -14
  470. package/cdn/react/map/index.d.ts +32 -1
  471. package/cdn/react/map/index.js +44 -30
  472. package/cdn/react/menu/index.js +3 -3
  473. package/cdn/react/menu-item/index.js +8 -8
  474. package/cdn/react/option/index.js +5 -5
  475. package/cdn/react/pagination/index.js +5 -5
  476. package/cdn/react/plot/index.js +3 -3
  477. package/cdn/react/plot-toolbar/index.d.ts +6 -1
  478. package/cdn/react/plot-toolbar/index.js +55 -43
  479. package/cdn/react/popup/index.js +3 -3
  480. package/cdn/react/progress-bar/index.js +3 -3
  481. package/cdn/react/radio/index.js +4 -4
  482. package/cdn/react/radio-group/index.js +4 -4
  483. package/cdn/react/scroll-hint/index.js +5 -5
  484. package/cdn/react/select/index.js +9 -9
  485. package/cdn/react/site-header/index.js +6 -6
  486. package/cdn/react/site-navigation/index.js +3 -3
  487. package/cdn/react/skeleton/index.js +3 -3
  488. package/cdn/react/slider/index.js +3 -3
  489. package/cdn/react/spatial-picker/index.js +54 -40
  490. package/cdn/react/status-indicator/index.js +3 -3
  491. package/cdn/react/stepper/index.js +3 -3
  492. package/cdn/react/stepper-step/index.js +5 -5
  493. package/cdn/react/tab/index.js +5 -5
  494. package/cdn/react/tab-panel/index.js +4 -4
  495. package/cdn/react/tabs/index.js +5 -5
  496. package/cdn/react/tag/index.js +5 -5
  497. package/cdn/react/textarea/index.js +5 -5
  498. package/cdn/react/time-average-map/index.d.ts +6 -1
  499. package/cdn/react/time-average-map/index.js +67 -55
  500. package/cdn/react/time-series/index.d.ts +3 -0
  501. package/cdn/react/time-series/index.js +67 -55
  502. package/cdn/react/toast/index.js +6 -6
  503. package/cdn/react/toggle/index.js +5 -5
  504. package/cdn/react/tooltip/index.js +5 -5
  505. package/cdn/react/variable-combobox/index.d.ts +4 -1
  506. package/cdn/react/variable-combobox/index.js +15 -13
  507. package/cdn/react/variable-keyword-search/index.d.ts +1 -1
  508. package/cdn/react/variable-keyword-search/index.js +11 -11
  509. package/cdn/terra-ui-components.js +278 -266
  510. package/cdn/types/vue/index.d.ts +1037 -870
  511. package/cdn/utilities/date.d.ts +4 -0
  512. package/cdn/utilities/date.js +3 -1
  513. package/cdn/utilities/variable-task.js +2 -2
  514. package/cdn/vscode.html-custom-data.json +692 -661
  515. package/cdn/web-types.json +2243 -2077
  516. package/dist/apis/harmony.api.d.ts +5 -0
  517. package/dist/chunks/chunk.25A7KRDN.js +19 -0
  518. package/dist/chunks/chunk.2C5HNR5L.js +4 -0
  519. package/dist/chunks/chunk.2O3IOB3J.js +1 -0
  520. package/dist/chunks/chunk.33OXTI3O.js +22 -0
  521. package/dist/chunks/chunk.345LFJWT.js +1 -0
  522. package/dist/chunks/chunk.3D65L7Z7.js +1 -0
  523. package/dist/chunks/chunk.3GAETZS7.js +12 -0
  524. package/dist/chunks/chunk.3IH7Q4YU.js +1 -0
  525. package/dist/chunks/chunk.424PTQE6.js +1 -0
  526. package/dist/chunks/chunk.43YXC3BX.js +1 -0
  527. package/dist/chunks/chunk.45H2PNH4.js +1 -0
  528. package/dist/chunks/chunk.47YM7IJH.js +1 -0
  529. package/dist/chunks/chunk.4A2YMU2A.js +1 -0
  530. package/dist/chunks/chunk.4BU5K6UJ.js +1 -0
  531. package/dist/chunks/chunk.4HQHKAPL.js +1 -0
  532. package/dist/chunks/chunk.4POG3VJI.js +148 -0
  533. package/dist/chunks/chunk.4QRZ7ROR.js +299 -0
  534. package/dist/chunks/chunk.4WJQSWQN.js +1 -0
  535. package/dist/chunks/chunk.52VRTKYJ.js +1 -0
  536. package/dist/chunks/chunk.55FJVUS6.js +43 -0
  537. package/dist/chunks/chunk.55S45QN4.js +1 -0
  538. package/dist/chunks/chunk.574Z2YXE.js +1 -0
  539. package/dist/chunks/chunk.5EE4HG2I.js +1 -0
  540. package/dist/chunks/chunk.5SZGFRLL.js +1 -0
  541. package/dist/chunks/chunk.5TJN4Z3R.js +1 -0
  542. package/dist/chunks/chunk.5TYJPHW2.js +1 -0
  543. package/dist/chunks/chunk.5UYKLBWJ.js +8 -0
  544. package/dist/chunks/chunk.5VNCJX27.js +55 -0
  545. package/dist/chunks/chunk.64725NP3.js +1 -0
  546. package/dist/chunks/chunk.6HO3MVIP.js +1 -0
  547. package/dist/chunks/chunk.6I57S7FR.js +27 -0
  548. package/dist/chunks/chunk.6XHCRR5R.js +9 -0
  549. package/dist/chunks/chunk.73HKAO6V.js +11 -0
  550. package/dist/chunks/chunk.7COB35MT.js +75 -0
  551. package/dist/chunks/chunk.7NCUNKBE.js +1 -0
  552. package/dist/chunks/chunk.7NXWYAIR.js +1 -0
  553. package/dist/chunks/chunk.7SLU543S.js +1 -0
  554. package/dist/chunks/chunk.7XQG4HG3.js +1 -0
  555. package/dist/chunks/chunk.A2ZTVI45.js +154 -0
  556. package/dist/chunks/chunk.AAUFO4KA.js +1 -0
  557. package/dist/chunks/chunk.AFNS7NIK.js +1 -0
  558. package/dist/chunks/chunk.AHL4S3IT.js +1 -0
  559. package/dist/chunks/chunk.AHS4Q35I.js +1 -0
  560. package/dist/chunks/chunk.AIWYS7YQ.js +1 -0
  561. package/dist/chunks/chunk.ALIRA2AC.js +1 -0
  562. package/dist/chunks/chunk.ATILEODB.js +18 -0
  563. package/dist/chunks/chunk.B3X6VXDL.js +1 -0
  564. package/dist/chunks/chunk.B4BXOMMQ.js +1 -0
  565. package/dist/chunks/chunk.BCGQKSR6.js +1 -0
  566. package/dist/chunks/chunk.BOZFOR5U.js +1 -0
  567. package/dist/chunks/chunk.BQB6XWSY.js +1 -0
  568. package/dist/chunks/chunk.BW5OZ5PS.js +1 -0
  569. package/dist/chunks/chunk.BXPTMVQE.js +1 -0
  570. package/dist/chunks/chunk.C6OX4NX6.js +74 -0
  571. package/dist/chunks/chunk.C7VEVA2Y.js +20 -0
  572. package/dist/chunks/chunk.CEOBCS56.js +1 -0
  573. package/dist/chunks/chunk.CGTXCYPM.js +41 -0
  574. package/dist/chunks/chunk.CH2PWIJD.js +5 -0
  575. package/dist/chunks/chunk.CLY6HMJZ.js +121 -0
  576. package/dist/chunks/chunk.CNGZOMLD.js +1 -0
  577. package/dist/chunks/chunk.CPFON5LM.js +1 -0
  578. package/dist/chunks/chunk.CQUQVS3M.js +1 -0
  579. package/dist/chunks/chunk.CRHOUQZH.js +1023 -0
  580. package/dist/chunks/chunk.CVKACFML.js +1 -0
  581. package/dist/chunks/chunk.D3JQRTEL.js +1 -0
  582. package/dist/chunks/chunk.DH5QWPH3.js +126 -0
  583. package/dist/chunks/chunk.DJ5BXB5G.js +48 -0
  584. package/dist/chunks/chunk.DKBGIHHD.js +1 -0
  585. package/dist/chunks/chunk.DOT4H7LX.js +2 -0
  586. package/dist/chunks/chunk.DTKNWAYL.js +62 -0
  587. package/dist/chunks/chunk.DWQMS6BC.js +1 -0
  588. package/dist/chunks/chunk.E477TJOR.js +1 -0
  589. package/dist/chunks/chunk.E4ELJE6I.js +35 -0
  590. package/dist/chunks/chunk.EB3ZPXT6.js +1 -0
  591. package/dist/chunks/chunk.EP2O3QZD.js +1 -0
  592. package/dist/chunks/chunk.EP5CSYKQ.js +1 -0
  593. package/dist/chunks/chunk.EQV2PFSY.js +1 -0
  594. package/dist/chunks/chunk.ER2IYY3T.js +1 -0
  595. package/dist/chunks/chunk.EV5P56DN.js +1 -0
  596. package/dist/chunks/chunk.F3NCEQ7X.js +1 -0
  597. package/dist/chunks/chunk.FSZCT7LX.js +26 -0
  598. package/dist/chunks/chunk.G3ZRWDDX.js +1 -0
  599. package/dist/chunks/chunk.G57LF47A.js +1 -0
  600. package/dist/chunks/chunk.GABTYKJH.js +1 -0
  601. package/dist/chunks/chunk.GHAZYRJA.js +1 -0
  602. package/dist/chunks/chunk.GP5SO7WB.js +43 -0
  603. package/dist/chunks/chunk.GQKEZMI5.js +64 -0
  604. package/dist/chunks/chunk.GUCJK7CQ.js +1 -0
  605. package/dist/chunks/chunk.GVVBO4QC.js +30 -0
  606. package/dist/chunks/chunk.H57KVCKB.js +4 -0
  607. package/dist/chunks/chunk.HCPPIK6X.js +1 -0
  608. package/dist/chunks/chunk.HDBWSDNO.js +1 -0
  609. package/dist/chunks/chunk.HDQVEOLO.js +1 -0
  610. package/dist/chunks/chunk.HKOYW5P7.js +1 -0
  611. package/dist/chunks/chunk.HPJUOBS5.js +1 -0
  612. package/dist/chunks/chunk.HTEGCYSS.js +2 -0
  613. package/dist/chunks/chunk.I2766Z6G.js +1 -0
  614. package/dist/chunks/chunk.I6OSLDVJ.js +1 -0
  615. package/dist/chunks/chunk.I6WZHDJR.js +1 -0
  616. package/dist/chunks/chunk.ID6GATFM.js +1 -0
  617. package/dist/chunks/chunk.IDQKGC62.js +1 -0
  618. package/dist/chunks/chunk.IRLLX53J.js +47 -0
  619. package/dist/chunks/chunk.IS2NEHYI.js +1 -0
  620. package/dist/chunks/chunk.IS4IX5PC.js +1 -0
  621. package/dist/chunks/chunk.J6W2UPV5.js +1 -0
  622. package/dist/chunks/chunk.JBNOA3A2.js +1 -0
  623. package/dist/chunks/chunk.JDM4WI4S.js +20 -0
  624. package/dist/chunks/chunk.JIF57YBB.js +1 -0
  625. package/dist/chunks/chunk.JM33IYJC.js +1 -0
  626. package/dist/chunks/chunk.JMLZNWOP.js +14 -0
  627. package/dist/chunks/chunk.JRCA2SKL.js +145 -0
  628. package/dist/chunks/chunk.JVSJPJIU.js +5 -0
  629. package/dist/chunks/chunk.JZKLCWMN.js +1 -0
  630. package/dist/chunks/chunk.JZLGMRZU.js +157 -0
  631. package/dist/chunks/chunk.K5BRJBGT.js +1 -0
  632. package/dist/chunks/chunk.KACJAQNX.js +6 -0
  633. package/dist/chunks/chunk.KEJYVX6V.js +55 -0
  634. package/dist/chunks/chunk.KF3WZUJB.js +1 -0
  635. package/dist/chunks/chunk.KGWY64U3.js +1 -0
  636. package/dist/chunks/chunk.KHUTJ2EC.js +1 -0
  637. package/dist/chunks/chunk.KOQ6WD4F.js +1 -0
  638. package/dist/chunks/chunk.KPNLEIXC.js +99 -0
  639. package/dist/chunks/chunk.KZAPYGJP.js +1 -0
  640. package/dist/chunks/chunk.L5QDGGS7.js +1 -0
  641. package/dist/chunks/chunk.LCYI63EA.js +20 -0
  642. package/dist/chunks/chunk.LEZEAL23.js +1 -0
  643. package/dist/chunks/chunk.LM6MTY2M.js +37 -0
  644. package/dist/chunks/chunk.LOLJACKL.js +1 -0
  645. package/dist/chunks/chunk.LQU34HVZ.js +1 -0
  646. package/dist/chunks/chunk.LVAET76P.js +1 -0
  647. package/dist/chunks/chunk.LXFMQAKV.js +1 -0
  648. package/dist/chunks/chunk.LYEGL5BZ.js +1 -0
  649. package/dist/chunks/chunk.LZZE65EN.js +1 -0
  650. package/dist/chunks/chunk.MCJ2GX4A.js +30 -0
  651. package/dist/chunks/chunk.MDKK4AJV.js +17 -0
  652. package/dist/chunks/chunk.MF67H5JA.js +1 -0
  653. package/dist/chunks/chunk.MGU32BIU.js +59 -0
  654. package/dist/chunks/chunk.MK3X5JIU.js +65 -0
  655. package/dist/chunks/chunk.MLR4ZKRU.js +1 -0
  656. package/dist/chunks/chunk.MQIO6BEA.js +1 -0
  657. package/dist/chunks/chunk.MU4BRZ5R.js +1 -0
  658. package/dist/chunks/chunk.MWPFFGL3.js +1 -0
  659. package/dist/chunks/chunk.MXMEA7TP.js +1 -0
  660. package/dist/chunks/chunk.N3V2FL7Q.js +1 -0
  661. package/dist/chunks/chunk.NARLVFIQ.js +33 -0
  662. package/dist/chunks/chunk.NK753QCZ.js +1 -0
  663. package/dist/chunks/chunk.NOXPOPPM.js +1 -0
  664. package/dist/chunks/chunk.NTZXYW2X.js +1 -0
  665. package/dist/chunks/chunk.NV3ZCWPP.js +1 -0
  666. package/dist/chunks/chunk.O2UN3QQG.js +1 -0
  667. package/dist/chunks/chunk.O47BMDEV.js +1 -0
  668. package/dist/chunks/chunk.OJM5RA3G.js +1 -0
  669. package/dist/chunks/chunk.OM4YQXHL.js +1 -0
  670. package/dist/chunks/chunk.OVTNI4H2.js +1 -0
  671. package/dist/chunks/chunk.OWXS5GVL.js +1 -0
  672. package/dist/chunks/chunk.OZSD4QYB.js +1 -0
  673. package/dist/chunks/chunk.PIKCG752.js +1 -0
  674. package/dist/chunks/chunk.PLSGWBX4.js +42 -0
  675. package/dist/chunks/chunk.PP6KREF2.js +5 -0
  676. package/dist/chunks/chunk.PQVZB2P2.js +67 -0
  677. package/dist/chunks/chunk.PRUHQ3VS.js +1 -0
  678. package/dist/chunks/chunk.PWFX3VPM.js +1 -0
  679. package/dist/chunks/chunk.PXVAQ2MA.js +55 -0
  680. package/dist/chunks/chunk.Q6O6LV3R.js +1 -0
  681. package/dist/chunks/chunk.QB7E6R2H.js +1 -0
  682. package/dist/chunks/chunk.QJRLPQ4M.js +1 -0
  683. package/dist/chunks/chunk.QOQWXEK5.js +1 -0
  684. package/dist/chunks/chunk.QVDEJXKO.js +1 -0
  685. package/dist/chunks/chunk.RKMR7V7J.js +1 -0
  686. package/dist/chunks/chunk.RLTSECXU.js +1 -0
  687. package/dist/chunks/chunk.RQYBMFWH.js +25 -0
  688. package/dist/chunks/chunk.S6IY5EKN.js +1 -0
  689. package/dist/chunks/chunk.SD2Q7EO2.js +23 -0
  690. package/dist/chunks/chunk.SEBIDNZM.js +1 -0
  691. package/dist/chunks/chunk.SF2OZFKQ.js +26 -0
  692. package/dist/chunks/chunk.SFK6BRQV.js +16 -0
  693. package/dist/chunks/chunk.SJTIVT6P.js +1 -0
  694. package/dist/chunks/chunk.SKK3NN5J.js +129 -0
  695. package/dist/chunks/chunk.SXGO5MEK.js +100 -0
  696. package/dist/chunks/chunk.TANXPJFE.js +1 -0
  697. package/dist/chunks/chunk.TATIBHUA.js +1 -0
  698. package/dist/chunks/chunk.TOON2INB.js +39 -0
  699. package/dist/chunks/chunk.TPUQNE3A.js +1 -0
  700. package/dist/chunks/chunk.TUGWQPTL.js +1 -0
  701. package/dist/chunks/chunk.TVERDMGY.js +113 -0
  702. package/dist/chunks/chunk.TWRNH5K5.js +1 -0
  703. package/dist/chunks/chunk.UQ6BNK6J.js +1 -0
  704. package/dist/chunks/chunk.UR7PHRDS.js +345 -0
  705. package/dist/chunks/chunk.V4XJH6YL.js +80 -0
  706. package/dist/chunks/chunk.VEPO6QAD.js +1 -0
  707. package/dist/chunks/chunk.VGN6LMHA.js +1 -0
  708. package/dist/chunks/chunk.VGQNQREB.js +1 -0
  709. package/dist/chunks/chunk.VSYDUDNW.js +1286 -0
  710. package/dist/chunks/chunk.W2E2TLSM.js +176 -0
  711. package/dist/chunks/chunk.WQ6USVYL.js +1 -0
  712. package/dist/chunks/chunk.WSBH5HTI.js +1 -0
  713. package/dist/chunks/chunk.WVBRHYTU.js +1 -0
  714. package/dist/chunks/chunk.X66E247Y.js +1 -0
  715. package/dist/chunks/chunk.XAPKFJEL.js +1 -0
  716. package/dist/chunks/chunk.XCYCEX7B.js +1 -0
  717. package/dist/chunks/chunk.XYOSJOLJ.js +1 -0
  718. package/dist/chunks/chunk.XZJS7S7T.js +280 -0
  719. package/dist/chunks/chunk.Y6ESPBDJ.js +1 -0
  720. package/dist/chunks/chunk.Y6HSCFK2.js +1 -0
  721. package/dist/chunks/chunk.YA7JZZG4.js +1 -0
  722. package/dist/chunks/chunk.YBALUVPL.js +1 -0
  723. package/dist/chunks/chunk.YFCEZZRF.js +1 -0
  724. package/dist/chunks/chunk.YLGPGQY4.js +566 -0
  725. package/dist/chunks/chunk.YLNZLECF.js +9 -0
  726. package/dist/chunks/chunk.YMDGNLGV.js +1 -0
  727. package/dist/chunks/chunk.YNN3NBWK.js +1 -0
  728. package/dist/chunks/chunk.YO67MSZK.js +780 -0
  729. package/dist/chunks/chunk.YY3G7NCY.js +35 -0
  730. package/dist/chunks/chunk.YZJEAHZH.js +1 -0
  731. package/dist/chunks/chunk.YZXEYQ6F.js +1 -0
  732. package/dist/chunks/chunk.ZBHNSZBH.js +24 -0
  733. package/dist/chunks/chunk.ZCPIP5RL.js +774 -0
  734. package/dist/chunks/chunk.ZFCVEZXM.js +11 -0
  735. package/dist/components/accordion/accordion.component.js +1 -1
  736. package/dist/components/accordion/accordion.js +1 -1
  737. package/dist/components/alert/alert.component.js +1 -1
  738. package/dist/components/alert/alert.js +1 -1
  739. package/dist/components/avatar/avatar.component.js +1 -1
  740. package/dist/components/avatar/avatar.js +1 -1
  741. package/dist/components/badge/badge.component.js +1 -1
  742. package/dist/components/badge/badge.js +1 -1
  743. package/dist/components/banner/banner.component.js +1 -1
  744. package/dist/components/banner/banner.js +1 -1
  745. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  746. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  747. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  748. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  749. package/dist/components/browse-variables/browse-variables.component.d.ts +1 -1
  750. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  751. package/dist/components/browse-variables/browse-variables.controller.js +1 -1
  752. package/dist/components/browse-variables/browse-variables.js +1 -1
  753. package/dist/components/button/button.component.js +1 -1
  754. package/dist/components/button/button.js +1 -1
  755. package/dist/components/button-group/button-group.component.js +1 -1
  756. package/dist/components/button-group/button-group.js +1 -1
  757. package/dist/components/caption/caption.component.js +1 -1
  758. package/dist/components/caption/caption.js +1 -1
  759. package/dist/components/card/card.component.js +1 -1
  760. package/dist/components/card/card.js +1 -1
  761. package/dist/components/checkbox/checkbox.component.js +1 -1
  762. package/dist/components/checkbox/checkbox.js +1 -1
  763. package/dist/components/chip/chip.component.js +1 -1
  764. package/dist/components/chip/chip.js +1 -1
  765. package/dist/components/combobox/combobox.component.js +1 -1
  766. package/dist/components/combobox/combobox.js +1 -1
  767. package/dist/components/data-access/data-access.component.d.ts +11 -11
  768. package/dist/components/data-access/data-access.component.js +1 -1
  769. package/dist/components/data-access/data-access.js +1 -1
  770. package/dist/components/data-grid/data-grid.component.js +1 -1
  771. package/dist/components/data-grid/data-grid.js +1 -1
  772. package/dist/components/data-rods/data-rods.component.d.ts +7 -11
  773. package/dist/components/data-rods/data-rods.component.js +1 -1
  774. package/dist/components/data-rods/data-rods.js +1 -1
  775. package/dist/components/data-subsetter/data-subsetter.component.d.ts +8 -5
  776. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  777. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  778. package/dist/components/data-subsetter/data-subsetter.styles.js +1 -1
  779. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  780. package/dist/components/data-subsetter-history/data-subsetter-history.component.d.ts +4 -7
  781. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  782. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  783. package/dist/components/date-picker/date-picker.component.d.ts +3 -4
  784. package/dist/components/date-picker/date-picker.component.js +1 -1
  785. package/dist/components/date-picker/date-picker.js +1 -1
  786. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  787. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  788. package/dist/components/dialog/dialog.component.js +1 -1
  789. package/dist/components/dialog/dialog.js +1 -1
  790. package/dist/components/divider/divider.component.js +1 -1
  791. package/dist/components/divider/divider.js +1 -1
  792. package/dist/components/dropdown/dropdown.component.js +1 -1
  793. package/dist/components/dropdown/dropdown.js +1 -1
  794. package/dist/components/earthdata-login/earthdata-login.component.d.ts +3 -1
  795. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  796. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  797. package/dist/components/file-upload/file-upload.component.js +1 -1
  798. package/dist/components/file-upload/file-upload.js +1 -1
  799. package/dist/components/harmony-history/harmony-history.component.d.ts +3 -6
  800. package/dist/components/harmony-history/harmony-history.component.js +1 -1
  801. package/dist/components/harmony-history/harmony-history.js +1 -1
  802. package/dist/components/icon/icon.component.js +1 -1
  803. package/dist/components/icon/icon.js +1 -1
  804. package/dist/components/input/input.component.js +1 -1
  805. package/dist/components/input/input.js +1 -1
  806. package/dist/components/loader/loader.component.js +1 -1
  807. package/dist/components/loader/loader.js +1 -1
  808. package/dist/components/login/login.component.d.ts +3 -1
  809. package/dist/components/login/login.component.js +1 -1
  810. package/dist/components/login/login.js +1 -1
  811. package/dist/components/map/controls/draw-toolbar.control.d.ts +5 -2
  812. package/dist/components/map/controls/draw-toolbar.control.js +1 -1
  813. package/dist/components/map/controls/layer-picker.control.d.ts +16 -0
  814. package/dist/components/map/controls/layer-picker.control.js +1 -0
  815. package/dist/components/map/layers/base.layer.d.ts +10 -0
  816. package/dist/components/map/layers/base.layer.js +1 -1
  817. package/dist/components/map/layers/boundary.d.ts +30 -0
  818. package/dist/components/map/layers/boundary.js +1 -0
  819. package/dist/components/map/layers/common.d.ts +2 -0
  820. package/dist/components/map/layers/gibs-vector.layer.js +1 -1
  821. package/dist/components/map/layers/gibs.layer.d.ts +6 -0
  822. package/dist/components/map/layers/gibs.layer.js +1 -1
  823. package/dist/components/map/layers/layer.js +1 -1
  824. package/dist/components/map/map.component.d.ts +73 -21
  825. package/dist/components/map/map.component.js +1 -1
  826. package/dist/components/map/map.js +1 -1
  827. package/dist/components/map/map.service.d.ts +92 -9
  828. package/dist/components/map/map.service.js +1 -1
  829. package/dist/components/map/map.styles.js +1 -1
  830. package/dist/components/map/type.d.ts +7 -0
  831. package/dist/components/map/type.js +1 -1
  832. package/dist/components/menu/menu.component.js +1 -1
  833. package/dist/components/menu/menu.js +1 -1
  834. package/dist/components/menu-item/menu-item.component.js +1 -1
  835. package/dist/components/menu-item/menu-item.js +1 -1
  836. package/dist/components/option/option.component.js +1 -1
  837. package/dist/components/option/option.js +1 -1
  838. package/dist/components/pagination/pagination.component.js +1 -1
  839. package/dist/components/pagination/pagination.js +1 -1
  840. package/dist/components/plot/plot.component.js +1 -1
  841. package/dist/components/plot/plot.js +1 -1
  842. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  843. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  844. package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +4 -4
  845. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  846. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  847. package/dist/components/popup/popup.component.js +1 -1
  848. package/dist/components/popup/popup.js +1 -1
  849. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  850. package/dist/components/progress-bar/progress-bar.js +1 -1
  851. package/dist/components/radio/radio.component.js +1 -1
  852. package/dist/components/radio/radio.js +1 -1
  853. package/dist/components/radio-group/radio-group.component.js +1 -1
  854. package/dist/components/radio-group/radio-group.js +1 -1
  855. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  856. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  857. package/dist/components/select/select.component.js +1 -1
  858. package/dist/components/select/select.js +1 -1
  859. package/dist/components/site-header/site-header.component.js +1 -1
  860. package/dist/components/site-header/site-header.js +1 -1
  861. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  862. package/dist/components/site-navigation/site-navigation.js +1 -1
  863. package/dist/components/skeleton/skeleton.component.js +1 -1
  864. package/dist/components/skeleton/skeleton.js +1 -1
  865. package/dist/components/slider/slider.component.js +1 -1
  866. package/dist/components/slider/slider.js +1 -1
  867. package/dist/components/spatial-picker/spatial-picker.component.d.ts +0 -10
  868. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  869. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  870. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  871. package/dist/components/status-indicator/status-indicator.js +1 -1
  872. package/dist/components/stepper/stepper.component.js +1 -1
  873. package/dist/components/stepper/stepper.js +1 -1
  874. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  875. package/dist/components/stepper-step/stepper-step.js +1 -1
  876. package/dist/components/tab/tab.component.js +1 -1
  877. package/dist/components/tab/tab.js +1 -1
  878. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  879. package/dist/components/tab-panel/tab-panel.js +1 -1
  880. package/dist/components/tabs/tabs.component.d.ts +2 -1
  881. package/dist/components/tabs/tabs.component.js +1 -1
  882. package/dist/components/tabs/tabs.js +1 -1
  883. package/dist/components/tag/tag.component.js +1 -1
  884. package/dist/components/tag/tag.js +1 -1
  885. package/dist/components/textarea/textarea.component.js +1 -1
  886. package/dist/components/textarea/textarea.js +1 -1
  887. package/dist/components/time-average-map/time-average-map.component.d.ts +10 -14
  888. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  889. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  890. package/dist/components/time-average-map/time-average-map.js +1 -1
  891. package/dist/components/time-series/time-series.component.d.ts +2 -10
  892. package/dist/components/time-series/time-series.component.js +1 -1
  893. package/dist/components/time-series/time-series.controller.js +1 -1
  894. package/dist/components/time-series/time-series.js +1 -1
  895. package/dist/components/toast/toast.component.js +1 -1
  896. package/dist/components/toast/toast.js +1 -1
  897. package/dist/components/toggle/toggle.component.js +1 -1
  898. package/dist/components/toggle/toggle.js +1 -1
  899. package/dist/components/tooltip/tooltip.component.js +1 -1
  900. package/dist/components/tooltip/tooltip.js +1 -1
  901. package/dist/components/variable-combobox/variable-combobox.component.d.ts +5 -9
  902. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  903. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  904. package/dist/components/variable-keyword-search/variable-keyword-search.component.d.ts +2 -2
  905. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  906. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  907. package/dist/custom-elements.json +10670 -8582
  908. package/dist/events/events.d.ts +2 -2
  909. package/dist/events/terra-map.d.ts +55 -0
  910. package/dist/mixins/auth.mixin.d.ts +23 -0
  911. package/dist/mixins/mixin.types.d.ts +1 -0
  912. package/dist/mixins/query-client.mixin.d.ts +1 -1
  913. package/dist/react/accordion/index.js +1 -1
  914. package/dist/react/alert/index.js +1 -1
  915. package/dist/react/avatar/index.js +1 -1
  916. package/dist/react/badge/index.js +1 -1
  917. package/dist/react/banner/index.js +1 -1
  918. package/dist/react/breadcrumb/index.js +1 -1
  919. package/dist/react/breadcrumbs/index.js +1 -1
  920. package/dist/react/browse-variables/index.js +1 -1
  921. package/dist/react/button/index.js +1 -1
  922. package/dist/react/button-group/index.js +1 -1
  923. package/dist/react/caption/index.js +1 -1
  924. package/dist/react/card/index.js +1 -1
  925. package/dist/react/checkbox/index.js +1 -1
  926. package/dist/react/chip/index.js +1 -1
  927. package/dist/react/combobox/index.js +1 -1
  928. package/dist/react/data-access/index.js +1 -1
  929. package/dist/react/data-grid/index.js +1 -1
  930. package/dist/react/data-rods/index.d.ts +6 -1
  931. package/dist/react/data-rods/index.js +1 -1
  932. package/dist/react/data-subsetter/index.d.ts +3 -0
  933. package/dist/react/data-subsetter/index.js +1 -1
  934. package/dist/react/data-subsetter-history/index.d.ts +6 -1
  935. package/dist/react/data-subsetter-history/index.js +1 -1
  936. package/dist/react/date-picker/index.js +1 -1
  937. package/dist/react/date-range-slider/index.js +1 -1
  938. package/dist/react/dialog/index.js +1 -1
  939. package/dist/react/divider/index.js +1 -1
  940. package/dist/react/dropdown/index.js +1 -1
  941. package/dist/react/earthdata-login/index.js +1 -1
  942. package/dist/react/file-upload/index.js +1 -1
  943. package/dist/react/harmony-history/index.d.ts +3 -0
  944. package/dist/react/harmony-history/index.js +1 -1
  945. package/dist/react/icon/index.js +1 -1
  946. package/dist/react/index.d.ts +24 -24
  947. package/dist/react/index.js +1 -1
  948. package/dist/react/input/index.js +1 -1
  949. package/dist/react/loader/index.js +1 -1
  950. package/dist/react/login/index.js +1 -1
  951. package/dist/react/map/index.d.ts +32 -1
  952. package/dist/react/map/index.js +1 -1
  953. package/dist/react/menu/index.js +1 -1
  954. package/dist/react/menu-item/index.js +1 -1
  955. package/dist/react/option/index.js +1 -1
  956. package/dist/react/pagination/index.js +1 -1
  957. package/dist/react/plot/index.js +1 -1
  958. package/dist/react/plot-toolbar/index.d.ts +6 -1
  959. package/dist/react/plot-toolbar/index.js +1 -1
  960. package/dist/react/popup/index.js +1 -1
  961. package/dist/react/progress-bar/index.js +1 -1
  962. package/dist/react/radio/index.js +1 -1
  963. package/dist/react/radio-group/index.js +1 -1
  964. package/dist/react/scroll-hint/index.js +1 -1
  965. package/dist/react/select/index.js +1 -1
  966. package/dist/react/site-header/index.js +1 -1
  967. package/dist/react/site-navigation/index.js +1 -1
  968. package/dist/react/skeleton/index.js +1 -1
  969. package/dist/react/slider/index.js +1 -1
  970. package/dist/react/spatial-picker/index.js +1 -1
  971. package/dist/react/status-indicator/index.js +1 -1
  972. package/dist/react/stepper/index.js +1 -1
  973. package/dist/react/stepper-step/index.js +1 -1
  974. package/dist/react/tab/index.js +1 -1
  975. package/dist/react/tab-panel/index.js +1 -1
  976. package/dist/react/tabs/index.js +1 -1
  977. package/dist/react/tag/index.js +1 -1
  978. package/dist/react/textarea/index.js +1 -1
  979. package/dist/react/time-average-map/index.d.ts +6 -1
  980. package/dist/react/time-average-map/index.js +1 -1
  981. package/dist/react/time-series/index.d.ts +3 -0
  982. package/dist/react/time-series/index.js +1 -1
  983. package/dist/react/toast/index.js +1 -1
  984. package/dist/react/toggle/index.js +1 -1
  985. package/dist/react/tooltip/index.js +1 -1
  986. package/dist/react/variable-combobox/index.d.ts +4 -1
  987. package/dist/react/variable-combobox/index.js +1 -1
  988. package/dist/react/variable-keyword-search/index.d.ts +1 -1
  989. package/dist/react/variable-keyword-search/index.js +1 -1
  990. package/dist/terra-ui-components.js +1 -1
  991. package/dist/terra_ui_components-0.0.205-py3-none-any.whl +0 -0
  992. package/dist/terra_ui_components-0.0.205.tar.gz +0 -0
  993. package/dist/types/vue/index.d.ts +1037 -870
  994. package/dist/utilities/date.d.ts +4 -0
  995. package/dist/utilities/date.js +1 -1
  996. package/dist/utilities/variable-task.js +1 -1
  997. package/dist/vscode.html-custom-data.json +692 -661
  998. package/dist/web-types.json +2243 -2077
  999. package/package.json +6 -4
  1000. package/cdn/auth/auth.controller.d.ts +0 -16
  1001. package/cdn/chunks/GeoTIFF.KMHPSKO6.js +0 -19975
  1002. package/cdn/chunks/chunk.27KCXEZH.js +0 -431
  1003. package/cdn/chunks/chunk.2AFX3VCL.js +0 -125
  1004. package/cdn/chunks/chunk.2DFPSVL6.js +0 -68
  1005. package/cdn/chunks/chunk.2DPXUVUW.js +0 -357
  1006. package/cdn/chunks/chunk.2EKGBKN2.js +0 -19
  1007. package/cdn/chunks/chunk.2FSYZKPK.js +0 -29
  1008. package/cdn/chunks/chunk.2HXJHNH3.js +0 -5339
  1009. package/cdn/chunks/chunk.2IA6WV7R.js +0 -19
  1010. package/cdn/chunks/chunk.2NRTTHOD.js +0 -30
  1011. package/cdn/chunks/chunk.2PJPIGBI.js +0 -1122
  1012. package/cdn/chunks/chunk.2RYJM2TF.js +0 -19
  1013. package/cdn/chunks/chunk.2UATMVXP.js +0 -261
  1014. package/cdn/chunks/chunk.2UUMIAXS.js +0 -19
  1015. package/cdn/chunks/chunk.3A3QJT7L.js +0 -29
  1016. package/cdn/chunks/chunk.3UXSNM76.js +0 -32
  1017. package/cdn/chunks/chunk.4CVCW4V3.js +0 -32
  1018. package/cdn/chunks/chunk.4HFZS2GO.js +0 -19
  1019. package/cdn/chunks/chunk.4KCMI4UU.js +0 -1036
  1020. package/cdn/chunks/chunk.4M7FMP7T.js +0 -442
  1021. package/cdn/chunks/chunk.4OETFOY2.js +0 -71
  1022. package/cdn/chunks/chunk.4UI7P3Y4.js +0 -19
  1023. package/cdn/chunks/chunk.4VE4DO4N.js +0 -19
  1024. package/cdn/chunks/chunk.4YE3LB3R.js +0 -19
  1025. package/cdn/chunks/chunk.4ZBYMDD6.js +0 -189
  1026. package/cdn/chunks/chunk.5CDWDWX5.js +0 -136
  1027. package/cdn/chunks/chunk.5CLU2XHI.js +0 -29
  1028. package/cdn/chunks/chunk.5G4MIKDW.js +0 -19
  1029. package/cdn/chunks/chunk.5KHCLX4N.js +0 -64743
  1030. package/cdn/chunks/chunk.5N76KCT4.js +0 -285
  1031. package/cdn/chunks/chunk.5OEHZWXQ.js +0 -19
  1032. package/cdn/chunks/chunk.5U22JWZL.js +0 -117
  1033. package/cdn/chunks/chunk.5USXBJV5.js +0 -35
  1034. package/cdn/chunks/chunk.5YQFC77E.js +0 -37
  1035. package/cdn/chunks/chunk.6E7Z4C4E.js +0 -19
  1036. package/cdn/chunks/chunk.6FWN6ZZC.js +0 -32
  1037. package/cdn/chunks/chunk.6J2OCJ7J.js +0 -84
  1038. package/cdn/chunks/chunk.6LOJQVYN.js +0 -36
  1039. package/cdn/chunks/chunk.6OC7H5OH.js +0 -28
  1040. package/cdn/chunks/chunk.6QEEVDUE.js +0 -427
  1041. package/cdn/chunks/chunk.6SAM6SI7.js +0 -19
  1042. package/cdn/chunks/chunk.6VTIK2C6.js +0 -19
  1043. package/cdn/chunks/chunk.75FXMQOA.js +0 -19
  1044. package/cdn/chunks/chunk.7HUACA54.js +0 -29
  1045. package/cdn/chunks/chunk.7L2TSDLJ.js +0 -2028
  1046. package/cdn/chunks/chunk.7N55EAUN.js +0 -17305
  1047. package/cdn/chunks/chunk.7VOSRG7X.js +0 -19
  1048. package/cdn/chunks/chunk.7WUVQEAR.js +0 -256
  1049. package/cdn/chunks/chunk.7Y44JBIB.js +0 -550
  1050. package/cdn/chunks/chunk.7ZI27RZO.js +0 -1136
  1051. package/cdn/chunks/chunk.ACUUMB46.js +0 -33
  1052. package/cdn/chunks/chunk.AFJMWE55.js +0 -29
  1053. package/cdn/chunks/chunk.AH535OUT.js +0 -19
  1054. package/cdn/chunks/chunk.AJTI5LZT.js +0 -60
  1055. package/cdn/chunks/chunk.AL34JKBE.js +0 -19
  1056. package/cdn/chunks/chunk.ANOS3OTE.js +0 -29
  1057. package/cdn/chunks/chunk.AP5WCU4L.js +0 -134
  1058. package/cdn/chunks/chunk.AQQD3TGI.js +0 -19
  1059. package/cdn/chunks/chunk.AWU6UL7H.js +0 -19
  1060. package/cdn/chunks/chunk.AYV43FGZ.js +0 -110
  1061. package/cdn/chunks/chunk.B6MUHPWI.js +0 -19
  1062. package/cdn/chunks/chunk.BHW5IL3I.js +0 -19
  1063. package/cdn/chunks/chunk.BPRI6OGA.js +0 -29
  1064. package/cdn/chunks/chunk.BPTWMSFM.js +0 -259
  1065. package/cdn/chunks/chunk.BTPIPKWK.js +0 -29
  1066. package/cdn/chunks/chunk.C2SRCC4M.js +0 -19
  1067. package/cdn/chunks/chunk.C3SXIMJF.js +0 -29
  1068. package/cdn/chunks/chunk.CDYBBCIE.js +0 -29
  1069. package/cdn/chunks/chunk.CHKUZKW6.js +0 -19
  1070. package/cdn/chunks/chunk.CJG6IYUQ.js +0 -699
  1071. package/cdn/chunks/chunk.COA7ZPCF.js +0 -86
  1072. package/cdn/chunks/chunk.CV4QCJYB.js +0 -29
  1073. package/cdn/chunks/chunk.CV7V62DS.js +0 -33
  1074. package/cdn/chunks/chunk.CWNNDPJR.js +0 -36
  1075. package/cdn/chunks/chunk.CWVFOCEY.js +0 -123
  1076. package/cdn/chunks/chunk.D6DZ2ABR.js +0 -19
  1077. package/cdn/chunks/chunk.DAHT4D47.js +0 -19
  1078. package/cdn/chunks/chunk.DDCWMDIC.js +0 -32
  1079. package/cdn/chunks/chunk.DNVJF7IY.js +0 -39
  1080. package/cdn/chunks/chunk.DOAEM5ON.js +0 -4083
  1081. package/cdn/chunks/chunk.DOLQGIFG.js +0 -19
  1082. package/cdn/chunks/chunk.DPKA4G53.js +0 -601
  1083. package/cdn/chunks/chunk.DTUP6KDY.js +0 -19
  1084. package/cdn/chunks/chunk.DXQUJESD.js +0 -8969
  1085. package/cdn/chunks/chunk.E52YFLSL.js +0 -32
  1086. package/cdn/chunks/chunk.E6S2GD5C.js +0 -31
  1087. package/cdn/chunks/chunk.EQDMPPT6.js +0 -1413
  1088. package/cdn/chunks/chunk.ERJEIORY.js +0 -36
  1089. package/cdn/chunks/chunk.F26CV3RM.js +0 -32
  1090. package/cdn/chunks/chunk.F5ATUIYK.js +0 -29
  1091. package/cdn/chunks/chunk.FALB73Y2.js +0 -37
  1092. package/cdn/chunks/chunk.FCQ22IGW.js +0 -104
  1093. package/cdn/chunks/chunk.FQ6BZ3IY.js +0 -234
  1094. package/cdn/chunks/chunk.FS3BAWIP.js +0 -19
  1095. package/cdn/chunks/chunk.FUANKNNM.js +0 -19
  1096. package/cdn/chunks/chunk.FVMOO5PZ.js +0 -111
  1097. package/cdn/chunks/chunk.FWA7FNBM.js +0 -29
  1098. package/cdn/chunks/chunk.FXGGRWLG.js +0 -106
  1099. package/cdn/chunks/chunk.G5C4B32K.js +0 -32
  1100. package/cdn/chunks/chunk.GAE7V6RB.js +0 -93
  1101. package/cdn/chunks/chunk.GBGE6X2T.js +0 -1018
  1102. package/cdn/chunks/chunk.GBR3XNSE.js +0 -19
  1103. package/cdn/chunks/chunk.GDXZZBNN.js +0 -29
  1104. package/cdn/chunks/chunk.GEZJ4HAT.js +0 -128
  1105. package/cdn/chunks/chunk.GHYNGNCL.js +0 -19
  1106. package/cdn/chunks/chunk.GVSCZXYP.js +0 -152
  1107. package/cdn/chunks/chunk.H4THPLKV.js +0 -375
  1108. package/cdn/chunks/chunk.H6DYN62P.js +0 -19
  1109. package/cdn/chunks/chunk.H7ILJBVJ.js +0 -29
  1110. package/cdn/chunks/chunk.HA24JYMN.js +0 -34
  1111. package/cdn/chunks/chunk.HBVD5YDA.js +0 -19
  1112. package/cdn/chunks/chunk.HDOVTS2Z.js +0 -333
  1113. package/cdn/chunks/chunk.HE3V76OH.js +0 -29
  1114. package/cdn/chunks/chunk.HSQJHXWN.js +0 -19
  1115. package/cdn/chunks/chunk.HWXTC2NL.js +0 -475
  1116. package/cdn/chunks/chunk.I3ZCGZPC.js +0 -629
  1117. package/cdn/chunks/chunk.IDRFRYGU.js +0 -19
  1118. package/cdn/chunks/chunk.IPAGICZN.js +0 -38
  1119. package/cdn/chunks/chunk.IUV6CTRY.js +0 -231
  1120. package/cdn/chunks/chunk.IW2V63Q4.js +0 -278
  1121. package/cdn/chunks/chunk.J2QE6B7T.js +0 -158
  1122. package/cdn/chunks/chunk.J5WVGYHM.js +0 -1071
  1123. package/cdn/chunks/chunk.JGXF7ZXQ.js +0 -32
  1124. package/cdn/chunks/chunk.JTDMKEVX.js +0 -19
  1125. package/cdn/chunks/chunk.JU2BT7V3.js +0 -29
  1126. package/cdn/chunks/chunk.JUAS37EG.js +0 -47
  1127. package/cdn/chunks/chunk.KCLVMBYX.js +0 -19
  1128. package/cdn/chunks/chunk.KLVTN4RA.js +0 -1780
  1129. package/cdn/chunks/chunk.KNOXZXLV.js +0 -62
  1130. package/cdn/chunks/chunk.KNWDEVCZ.js +0 -872
  1131. package/cdn/chunks/chunk.KTH7B5P7.js +0 -32
  1132. package/cdn/chunks/chunk.KVXAUKHU.js +0 -29
  1133. package/cdn/chunks/chunk.L453DWOS.js +0 -162
  1134. package/cdn/chunks/chunk.L4APEYLE.js +0 -33
  1135. package/cdn/chunks/chunk.L6RUQB6F.js +0 -113
  1136. package/cdn/chunks/chunk.LEJPCXRH.js +0 -575
  1137. package/cdn/chunks/chunk.LGHXPOGX.js +0 -19
  1138. package/cdn/chunks/chunk.LMFFT6QZ.js +0 -19
  1139. package/cdn/chunks/chunk.LV52UGIG.js +0 -19
  1140. package/cdn/chunks/chunk.LYTJDP4F.js +0 -528
  1141. package/cdn/chunks/chunk.M6TNRFZO.js +0 -32
  1142. package/cdn/chunks/chunk.MB55MNWI.js +0 -132
  1143. package/cdn/chunks/chunk.MDV3HVPR.js +0 -82
  1144. package/cdn/chunks/chunk.MKKKY7LJ.js +0 -17565
  1145. package/cdn/chunks/chunk.ML6OFHI2.js +0 -60
  1146. package/cdn/chunks/chunk.MMMP6IHT.js +0 -36
  1147. package/cdn/chunks/chunk.MR7XEWMN.js +0 -29
  1148. package/cdn/chunks/chunk.N26HWWE7.js +0 -92
  1149. package/cdn/chunks/chunk.N6YZ3GGB.js +0 -19
  1150. package/cdn/chunks/chunk.NKJ73Q6Z.js +0 -101
  1151. package/cdn/chunks/chunk.NOJRNK7A.js +0 -1303
  1152. package/cdn/chunks/chunk.O5KNCAFH.js +0 -29
  1153. package/cdn/chunks/chunk.OHLWFMUZ.js +0 -19
  1154. package/cdn/chunks/chunk.OK2PJLA4.js +0 -19
  1155. package/cdn/chunks/chunk.OMERHZ7O.js +0 -1646
  1156. package/cdn/chunks/chunk.OQR3DOIL.js +0 -29
  1157. package/cdn/chunks/chunk.OVV6CMBK.js +0 -74
  1158. package/cdn/chunks/chunk.OXFYKL76.js +0 -19
  1159. package/cdn/chunks/chunk.P5MFJJGP.js +0 -195
  1160. package/cdn/chunks/chunk.P6OHZPUZ.js +0 -2786
  1161. package/cdn/chunks/chunk.PH3LKMHS.js +0 -32
  1162. package/cdn/chunks/chunk.PIEU7GT4.js +0 -29
  1163. package/cdn/chunks/chunk.PILGSWUJ.js +0 -29
  1164. package/cdn/chunks/chunk.PLI3TNYY.js +0 -33
  1165. package/cdn/chunks/chunk.PPCOW47J.js +0 -535
  1166. package/cdn/chunks/chunk.PRI7AVJX.js +0 -19
  1167. package/cdn/chunks/chunk.PWPIV2JK.js +0 -225
  1168. package/cdn/chunks/chunk.QCEPDQ6M.js +0 -32
  1169. package/cdn/chunks/chunk.QJUVJPT6.js +0 -19
  1170. package/cdn/chunks/chunk.QP2APML5.js +0 -536
  1171. package/cdn/chunks/chunk.QS7RKQGD.js +0 -19
  1172. package/cdn/chunks/chunk.QZCCAT7W.js +0 -19
  1173. package/cdn/chunks/chunk.QZIIYAVZ.js +0 -19
  1174. package/cdn/chunks/chunk.QZQ7MTL4.js +0 -34
  1175. package/cdn/chunks/chunk.RBBPG6SO.js +0 -621
  1176. package/cdn/chunks/chunk.RL57R2DM.js +0 -37
  1177. package/cdn/chunks/chunk.RMUH4JXF.js +0 -35
  1178. package/cdn/chunks/chunk.RSH7CL7U.js +0 -310
  1179. package/cdn/chunks/chunk.RXXY2DKG.js +0 -19
  1180. package/cdn/chunks/chunk.S5BNWB7B.js +0 -185
  1181. package/cdn/chunks/chunk.SDVBNJQZ.js +0 -19
  1182. package/cdn/chunks/chunk.SIK75J6S.js +0 -35
  1183. package/cdn/chunks/chunk.SJEEWCBY.js +0 -19
  1184. package/cdn/chunks/chunk.SQWR5Y2X.js +0 -134
  1185. package/cdn/chunks/chunk.SWNYIRFX.js +0 -19
  1186. package/cdn/chunks/chunk.SZJZTSTJ.js +0 -36
  1187. package/cdn/chunks/chunk.T35HK4YD.js +0 -83
  1188. package/cdn/chunks/chunk.T4QHXOJU.js +0 -29
  1189. package/cdn/chunks/chunk.T7A4P7JA.js +0 -19
  1190. package/cdn/chunks/chunk.TA7CFXHM.js +0 -276
  1191. package/cdn/chunks/chunk.TBL6KAUU.js +0 -19
  1192. package/cdn/chunks/chunk.TDCXTEE4.js +0 -29
  1193. package/cdn/chunks/chunk.TFX7LPOA.js +0 -29
  1194. package/cdn/chunks/chunk.TTKS7OPN.js +0 -49
  1195. package/cdn/chunks/chunk.TW72W3FG.js +0 -41
  1196. package/cdn/chunks/chunk.TZ7K6LRZ.js +0 -29
  1197. package/cdn/chunks/chunk.U64UG2NF.js +0 -897
  1198. package/cdn/chunks/chunk.UCGET3OV.js +0 -610
  1199. package/cdn/chunks/chunk.UFODDLBF.js +0 -190
  1200. package/cdn/chunks/chunk.UI7I6F4E.js +0 -29
  1201. package/cdn/chunks/chunk.UL6GPUWY.js +0 -169
  1202. package/cdn/chunks/chunk.UNE5PGU3.js +0 -149
  1203. package/cdn/chunks/chunk.USSOPHIF.js +0 -161
  1204. package/cdn/chunks/chunk.UVQGTCUS.js +0 -621
  1205. package/cdn/chunks/chunk.VAS4SJTV.js +0 -893
  1206. package/cdn/chunks/chunk.VATEZWZS.js +0 -360
  1207. package/cdn/chunks/chunk.VCKHZSH2.js +0 -19
  1208. package/cdn/chunks/chunk.VHHZPEYC.js +0 -29
  1209. package/cdn/chunks/chunk.VM6WPB7T.js +0 -32
  1210. package/cdn/chunks/chunk.VNCKECHZ.js +0 -853
  1211. package/cdn/chunks/chunk.VPMAHEJA.js +0 -32
  1212. package/cdn/chunks/chunk.VQF367DL.js +0 -35
  1213. package/cdn/chunks/chunk.VUXL5UGT.js +0 -2574
  1214. package/cdn/chunks/chunk.W5FQPPPY.js +0 -19
  1215. package/cdn/chunks/chunk.WCBO7P6T.js +0 -34
  1216. package/cdn/chunks/chunk.WO24QJYS.js +0 -1005
  1217. package/cdn/chunks/chunk.WSRDV4NV.js +0 -19
  1218. package/cdn/chunks/chunk.WTGU6E45.js +0 -224
  1219. package/cdn/chunks/chunk.XDVFVONG.js +0 -1945
  1220. package/cdn/chunks/chunk.XNJGPB57.js +0 -35
  1221. package/cdn/chunks/chunk.XXLSM7RI.js +0 -138
  1222. package/cdn/chunks/chunk.Y6OCTUUR.js +0 -19
  1223. package/cdn/chunks/chunk.YAWLOXFX.js +0 -271
  1224. package/cdn/chunks/chunk.YJHDQGK3.js +0 -19
  1225. package/cdn/chunks/chunk.YN7XE2VP.js +0 -940
  1226. package/cdn/chunks/chunk.YTKNBCBF.js +0 -19
  1227. package/cdn/chunks/chunk.Z3PZC46D.js +0 -33
  1228. package/cdn/chunks/chunk.Z5U6BAQK.js +0 -292
  1229. package/cdn/chunks/chunk.ZAS2SUGL.js +0 -19
  1230. package/cdn/chunks/chunk.ZI2LY2UP.js +0 -524
  1231. package/cdn/chunks/chunk.ZRSUDLUY.js +0 -754
  1232. package/cdn/chunks/chunk.ZWUG6EZN.js +0 -544
  1233. package/cdn/chunks/chunk.ZYF3AML6.js +0 -521
  1234. package/cdn/chunks/chunk.ZYGBGEUR.js +0 -48
  1235. package/cdn/chunks/chunk.ZYYDEEKW.js +0 -19
  1236. package/cdn/chunks/lerc.OJS5YQI3.js +0 -2099
  1237. package/cdn/events/terra-map-change.d.ts +0 -14
  1238. package/dist/auth/auth.controller.d.ts +0 -16
  1239. package/dist/chunks/chunk.24QTPUF2.js +0 -6
  1240. package/dist/chunks/chunk.2A67CXHH.js +0 -5
  1241. package/dist/chunks/chunk.2PQNGBP2.js +0 -1
  1242. package/dist/chunks/chunk.2SYEDAOV.js +0 -1
  1243. package/dist/chunks/chunk.2UREYJJ6.js +0 -65
  1244. package/dist/chunks/chunk.2URJIUFD.js +0 -1
  1245. package/dist/chunks/chunk.2VLYWQGB.js +0 -1
  1246. package/dist/chunks/chunk.2XENK37L.js +0 -20
  1247. package/dist/chunks/chunk.33ZH43TV.js +0 -1
  1248. package/dist/chunks/chunk.345UCNEF.js +0 -1
  1249. package/dist/chunks/chunk.347H65MH.js +0 -1
  1250. package/dist/chunks/chunk.3BGJ2Y4W.js +0 -1
  1251. package/dist/chunks/chunk.3OSNYXIB.js +0 -37
  1252. package/dist/chunks/chunk.3SBCV5YV.js +0 -74
  1253. package/dist/chunks/chunk.4AODHTLA.js +0 -1
  1254. package/dist/chunks/chunk.4JUNRLEC.js +0 -1
  1255. package/dist/chunks/chunk.4O6EGUET.js +0 -6
  1256. package/dist/chunks/chunk.4PNNISNN.js +0 -12
  1257. package/dist/chunks/chunk.4PXK26WC.js +0 -1
  1258. package/dist/chunks/chunk.4RJ73FTA.js +0 -1
  1259. package/dist/chunks/chunk.5DG6GZR2.js +0 -1
  1260. package/dist/chunks/chunk.5OFG6SIJ.js +0 -1
  1261. package/dist/chunks/chunk.5UIZ5N7P.js +0 -345
  1262. package/dist/chunks/chunk.5WH5YKQV.js +0 -129
  1263. package/dist/chunks/chunk.5WXBL2P4.js +0 -299
  1264. package/dist/chunks/chunk.5YTPWERZ.js +0 -1
  1265. package/dist/chunks/chunk.67VTCJF4.js +0 -527
  1266. package/dist/chunks/chunk.6DD3MA2P.js +0 -1
  1267. package/dist/chunks/chunk.6J72MJEC.js +0 -1
  1268. package/dist/chunks/chunk.6OCFGLDL.js +0 -1
  1269. package/dist/chunks/chunk.6Q54KXMC.js +0 -157
  1270. package/dist/chunks/chunk.6R6NM245.js +0 -39
  1271. package/dist/chunks/chunk.6SHAP35V.js +0 -55
  1272. package/dist/chunks/chunk.6SW4NJHL.js +0 -42
  1273. package/dist/chunks/chunk.6TALLYX6.js +0 -1
  1274. package/dist/chunks/chunk.6ZIINXUV.js +0 -1
  1275. package/dist/chunks/chunk.7D3QWHPQ.js +0 -1
  1276. package/dist/chunks/chunk.7DGA6X4U.js +0 -23
  1277. package/dist/chunks/chunk.7KZSDLA2.js +0 -11
  1278. package/dist/chunks/chunk.7LR6X6Z6.js +0 -1
  1279. package/dist/chunks/chunk.7TW5XUJL.js +0 -1
  1280. package/dist/chunks/chunk.7V4HIKGV.js +0 -20
  1281. package/dist/chunks/chunk.A3VSFB3O.js +0 -1
  1282. package/dist/chunks/chunk.ADGVYX3D.js +0 -1
  1283. package/dist/chunks/chunk.ALYHNSZZ.js +0 -30
  1284. package/dist/chunks/chunk.AMKSX4J2.js +0 -1
  1285. package/dist/chunks/chunk.AVBBSQQN.js +0 -26
  1286. package/dist/chunks/chunk.BCBEL5J3.js +0 -1
  1287. package/dist/chunks/chunk.BFSQRKZP.js +0 -67
  1288. package/dist/chunks/chunk.BIMQKSIE.js +0 -1
  1289. package/dist/chunks/chunk.BJFYPKRH.js +0 -1
  1290. package/dist/chunks/chunk.BK22YUL3.js +0 -1
  1291. package/dist/chunks/chunk.BMUYWCSS.js +0 -1
  1292. package/dist/chunks/chunk.BRHNY634.js +0 -1
  1293. package/dist/chunks/chunk.BVNNUSMK.js +0 -1
  1294. package/dist/chunks/chunk.C6CZYR3X.js +0 -1
  1295. package/dist/chunks/chunk.C6YOBRFC.js +0 -1
  1296. package/dist/chunks/chunk.CO3YFDGB.js +0 -27
  1297. package/dist/chunks/chunk.CQK6QHLB.js +0 -1
  1298. package/dist/chunks/chunk.CQPFMW2K.js +0 -1
  1299. package/dist/chunks/chunk.CRDPEWYE.js +0 -1
  1300. package/dist/chunks/chunk.CS4EGLGP.js +0 -1
  1301. package/dist/chunks/chunk.CSXC6DPV.js +0 -280
  1302. package/dist/chunks/chunk.DH6S4SMY.js +0 -9
  1303. package/dist/chunks/chunk.DKS4TU3H.js +0 -1
  1304. package/dist/chunks/chunk.DTISX46U.js +0 -1
  1305. package/dist/chunks/chunk.DWB7WY2B.js +0 -1
  1306. package/dist/chunks/chunk.DYY5ZEGD.js +0 -8
  1307. package/dist/chunks/chunk.E264AGUB.js +0 -1
  1308. package/dist/chunks/chunk.E2LODYPF.js +0 -1
  1309. package/dist/chunks/chunk.E36ROOQP.js +0 -1
  1310. package/dist/chunks/chunk.E6SYKRYA.js +0 -18
  1311. package/dist/chunks/chunk.E7D32WNL.js +0 -99
  1312. package/dist/chunks/chunk.EAIG3OAM.js +0 -1
  1313. package/dist/chunks/chunk.EPJM7OIN.js +0 -1
  1314. package/dist/chunks/chunk.EYLQFCG6.js +0 -1
  1315. package/dist/chunks/chunk.F2LSSWTW.js +0 -1
  1316. package/dist/chunks/chunk.F2OOGC7E.js +0 -1
  1317. package/dist/chunks/chunk.F463ZO54.js +0 -26
  1318. package/dist/chunks/chunk.F4QJ3AAN.js +0 -1
  1319. package/dist/chunks/chunk.FCLASTZJ.js +0 -59
  1320. package/dist/chunks/chunk.FEUU6PRO.js +0 -1231
  1321. package/dist/chunks/chunk.FFJ4LVA4.js +0 -1
  1322. package/dist/chunks/chunk.FLY7SZ43.js +0 -1
  1323. package/dist/chunks/chunk.FTSUICBL.js +0 -5
  1324. package/dist/chunks/chunk.FU4VAT7K.js +0 -126
  1325. package/dist/chunks/chunk.FY5MRGO2.js +0 -4
  1326. package/dist/chunks/chunk.G2RBM77C.js +0 -80
  1327. package/dist/chunks/chunk.G5WS7EAO.js +0 -1
  1328. package/dist/chunks/chunk.GCVZMOL6.js +0 -1
  1329. package/dist/chunks/chunk.GFJZ3U6O.js +0 -1
  1330. package/dist/chunks/chunk.GVQ3ULCA.js +0 -1
  1331. package/dist/chunks/chunk.GVWKFBDB.js +0 -1
  1332. package/dist/chunks/chunk.GZC4MHZL.js +0 -1
  1333. package/dist/chunks/chunk.GZJI67IH.js +0 -1
  1334. package/dist/chunks/chunk.HBM2PGPH.js +0 -1
  1335. package/dist/chunks/chunk.HFNSDYFF.js +0 -1
  1336. package/dist/chunks/chunk.HJ7H55BL.js +0 -1
  1337. package/dist/chunks/chunk.HMGPFX2Y.js +0 -1
  1338. package/dist/chunks/chunk.IGXIZYGS.js +0 -1
  1339. package/dist/chunks/chunk.IKZERRE2.js +0 -1
  1340. package/dist/chunks/chunk.IL752DKI.js +0 -1
  1341. package/dist/chunks/chunk.ILG3LGC7.js +0 -1
  1342. package/dist/chunks/chunk.ILLKI5UT.js +0 -1
  1343. package/dist/chunks/chunk.IT5GSXLK.js +0 -1
  1344. package/dist/chunks/chunk.IX7TDXLM.js +0 -1
  1345. package/dist/chunks/chunk.J74HQDC4.js +0 -113
  1346. package/dist/chunks/chunk.JDUDVTGM.js +0 -33
  1347. package/dist/chunks/chunk.JER3EYSI.js +0 -43
  1348. package/dist/chunks/chunk.JFQVCD2G.js +0 -1
  1349. package/dist/chunks/chunk.JJDVDIMZ.js +0 -1
  1350. package/dist/chunks/chunk.JUCYMLNQ.js +0 -24
  1351. package/dist/chunks/chunk.JWV3256S.js +0 -1
  1352. package/dist/chunks/chunk.K3JWAUPW.js +0 -1
  1353. package/dist/chunks/chunk.K7EEMK7S.js +0 -1
  1354. package/dist/chunks/chunk.KQQP67QH.js +0 -1
  1355. package/dist/chunks/chunk.L7LZXSLB.js +0 -1
  1356. package/dist/chunks/chunk.L7TU4EE7.js +0 -1
  1357. package/dist/chunks/chunk.LBQFMWHH.js +0 -1
  1358. package/dist/chunks/chunk.LHS2JI5C.js +0 -1
  1359. package/dist/chunks/chunk.LRB2T4C6.js +0 -1
  1360. package/dist/chunks/chunk.LSBA65NF.js +0 -55
  1361. package/dist/chunks/chunk.LVJYASQH.js +0 -41
  1362. package/dist/chunks/chunk.M5IM24X6.js +0 -1
  1363. package/dist/chunks/chunk.M7GAVBP4.js +0 -1
  1364. package/dist/chunks/chunk.MRAFQ6FC.js +0 -1
  1365. package/dist/chunks/chunk.MSEAPM5O.js +0 -43
  1366. package/dist/chunks/chunk.MXJCFEZ4.js +0 -780
  1367. package/dist/chunks/chunk.NFGRTKHK.js +0 -35
  1368. package/dist/chunks/chunk.NM6S6YGL.js +0 -30
  1369. package/dist/chunks/chunk.NNGAFMYS.js +0 -1
  1370. package/dist/chunks/chunk.NS34WRBV.js +0 -154
  1371. package/dist/chunks/chunk.NZ4QJK47.js +0 -176
  1372. package/dist/chunks/chunk.NZERF5GE.js +0 -1
  1373. package/dist/chunks/chunk.O36CSOQK.js +0 -11
  1374. package/dist/chunks/chunk.OAFIM27Q.js +0 -1
  1375. package/dist/chunks/chunk.OBJ27374.js +0 -1
  1376. package/dist/chunks/chunk.ONZTNAIQ.js +0 -1
  1377. package/dist/chunks/chunk.OQ4IT42W.js +0 -1
  1378. package/dist/chunks/chunk.OSAQ45F4.js +0 -145
  1379. package/dist/chunks/chunk.OSDEVN34.js +0 -1001
  1380. package/dist/chunks/chunk.P23PNMO2.js +0 -1
  1381. package/dist/chunks/chunk.PGC2LCDL.js +0 -1
  1382. package/dist/chunks/chunk.PGUHY4NZ.js +0 -1
  1383. package/dist/chunks/chunk.PHWB36E5.js +0 -4
  1384. package/dist/chunks/chunk.PIP3HL2S.js +0 -1
  1385. package/dist/chunks/chunk.PM3RUTRJ.js +0 -1
  1386. package/dist/chunks/chunk.PNRCW5GH.js +0 -48
  1387. package/dist/chunks/chunk.PO5EHL4Q.js +0 -1
  1388. package/dist/chunks/chunk.PSNV3IQZ.js +0 -1
  1389. package/dist/chunks/chunk.Q6CVPPFA.js +0 -1
  1390. package/dist/chunks/chunk.QDFHF7LY.js +0 -1
  1391. package/dist/chunks/chunk.QEKPRA6B.js +0 -1
  1392. package/dist/chunks/chunk.QGXUQL5S.js +0 -1
  1393. package/dist/chunks/chunk.QGZOQXT5.js +0 -148
  1394. package/dist/chunks/chunk.QH3KZBRJ.js +0 -1
  1395. package/dist/chunks/chunk.QK5M4OHI.js +0 -1
  1396. package/dist/chunks/chunk.R6RTP7QP.js +0 -1
  1397. package/dist/chunks/chunk.RBPNA4JU.js +0 -22
  1398. package/dist/chunks/chunk.REIUDVA3.js +0 -1
  1399. package/dist/chunks/chunk.RH76C7M7.js +0 -1
  1400. package/dist/chunks/chunk.RHDTWIMS.js +0 -1
  1401. package/dist/chunks/chunk.RKLTK3FR.js +0 -1
  1402. package/dist/chunks/chunk.RLOQMCKP.js +0 -1
  1403. package/dist/chunks/chunk.S65R5GMI.js +0 -1
  1404. package/dist/chunks/chunk.S6AD3O5Y.js +0 -2
  1405. package/dist/chunks/chunk.S6UNY7TY.js +0 -1
  1406. package/dist/chunks/chunk.SAVXAZC3.js +0 -1
  1407. package/dist/chunks/chunk.SDFUXOW6.js +0 -47
  1408. package/dist/chunks/chunk.SM2LJQQZ.js +0 -1
  1409. package/dist/chunks/chunk.SN4M25TW.js +0 -1
  1410. package/dist/chunks/chunk.SP4US3KC.js +0 -1
  1411. package/dist/chunks/chunk.SP7J3EGR.js +0 -1
  1412. package/dist/chunks/chunk.ST6Y273B.js +0 -1
  1413. package/dist/chunks/chunk.SW4EXLIK.js +0 -100
  1414. package/dist/chunks/chunk.SYA4MGC4.js +0 -1
  1415. package/dist/chunks/chunk.T3RRBLSI.js +0 -1
  1416. package/dist/chunks/chunk.T5MMUQEM.js +0 -2
  1417. package/dist/chunks/chunk.T5UOTK5T.js +0 -14
  1418. package/dist/chunks/chunk.TCJYR6XR.js +0 -75
  1419. package/dist/chunks/chunk.TEJABDMI.js +0 -1
  1420. package/dist/chunks/chunk.TOUSLOQP.js +0 -19
  1421. package/dist/chunks/chunk.TWL4OKWI.js +0 -1
  1422. package/dist/chunks/chunk.TXJOFCEB.js +0 -20
  1423. package/dist/chunks/chunk.U5DWDLRH.js +0 -25
  1424. package/dist/chunks/chunk.UBXADY37.js +0 -566
  1425. package/dist/chunks/chunk.UJUBD5K6.js +0 -1
  1426. package/dist/chunks/chunk.UMIX7BEK.js +0 -1
  1427. package/dist/chunks/chunk.UNPFONVM.js +0 -121
  1428. package/dist/chunks/chunk.VM42BF4S.js +0 -1
  1429. package/dist/chunks/chunk.VO2NGMYX.js +0 -1
  1430. package/dist/chunks/chunk.VPEIRF5L.js +0 -1
  1431. package/dist/chunks/chunk.VQBTIXTR.js +0 -1
  1432. package/dist/chunks/chunk.VRGYQH3V.js +0 -1
  1433. package/dist/chunks/chunk.W22Z5NC6.js +0 -1
  1434. package/dist/chunks/chunk.W2AIXOEB.js +0 -1
  1435. package/dist/chunks/chunk.W37YFNFN.js +0 -1
  1436. package/dist/chunks/chunk.W7LK5SL4.js +0 -1
  1437. package/dist/chunks/chunk.WHM6GYCJ.js +0 -1
  1438. package/dist/chunks/chunk.WSK5WSL4.js +0 -1
  1439. package/dist/chunks/chunk.X3J4I27U.js +0 -1
  1440. package/dist/chunks/chunk.XD4664TI.js +0 -16
  1441. package/dist/chunks/chunk.XIGVC4SV.js +0 -62
  1442. package/dist/chunks/chunk.XS3KPVEZ.js +0 -1
  1443. package/dist/chunks/chunk.XX7TMK7N.js +0 -1
  1444. package/dist/chunks/chunk.Y5DJ2TIT.js +0 -1
  1445. package/dist/chunks/chunk.YH36XKHI.js +0 -1
  1446. package/dist/chunks/chunk.YJCP5H5H.js +0 -1
  1447. package/dist/chunks/chunk.YUFCED44.js +0 -64
  1448. package/dist/chunks/chunk.Z5WR5G6V.js +0 -35
  1449. package/dist/chunks/chunk.ZAO2ZNCW.js +0 -1
  1450. package/dist/chunks/chunk.ZCO5H22U.js +0 -1
  1451. package/dist/chunks/chunk.ZJRSMGBD.js +0 -1
  1452. package/dist/chunks/chunk.ZOFZPC6S.js +0 -9
  1453. package/dist/chunks/chunk.ZWQ5GUBX.js +0 -55
  1454. package/dist/chunks/chunk.ZZDDQ567.js +0 -1
  1455. package/dist/events/terra-map-change.d.ts +0 -14
  1456. package/dist/terra_ui_components-0.0.203-py3-none-any.whl +0 -0
  1457. package/dist/terra_ui_components-0.0.203.tar.gz +0 -0
@@ -0,0 +1,3035 @@
1
+ import {
2
+ DEFAULT_TILE_SIZE
3
+ } from "./chunk.NRLNKN7I.js";
4
+ import {
5
+ ImageState_default,
6
+ fromExtent
7
+ } from "./chunk.OSNWOWQ2.js";
8
+ import {
9
+ assert
10
+ } from "./chunk.WMGJ3MAP.js";
11
+ import {
12
+ easeOut,
13
+ inAndOut
14
+ } from "./chunk.34A6RU6E.js";
15
+ import {
16
+ EventType_default,
17
+ Event_default,
18
+ Object_default,
19
+ Observable_default,
20
+ VOID,
21
+ abstract,
22
+ linearFindNearest,
23
+ listen,
24
+ unlistenByKey
25
+ } from "./chunk.2B2TSVNY.js";
26
+ import {
27
+ METERS_PER_UNIT,
28
+ add,
29
+ clamp,
30
+ createProjection,
31
+ disableCoordinateWarning,
32
+ equals2 as equals,
33
+ fromUserCoordinate,
34
+ fromUserExtent,
35
+ getCenter,
36
+ getForViewAndSize,
37
+ getHeight,
38
+ getUserProjection,
39
+ getWidth,
40
+ intersects,
41
+ isEmpty,
42
+ modulo,
43
+ rotate,
44
+ toRadians,
45
+ toUserCoordinate,
46
+ toUserExtent
47
+ } from "./chunk.S5UFNVHZ.js";
48
+ import {
49
+ init_buffer,
50
+ init_dirname,
51
+ init_process
52
+ } from "./chunk.IIJBAEGD.js";
53
+
54
+ // node_modules/ol/View.js
55
+ init_dirname();
56
+ init_buffer();
57
+ init_process();
58
+
59
+ // node_modules/ol/ViewHint.js
60
+ init_dirname();
61
+ init_buffer();
62
+ init_process();
63
+ var ViewHint_default = {
64
+ ANIMATING: 0,
65
+ INTERACTING: 1
66
+ };
67
+
68
+ // node_modules/ol/ViewProperty.js
69
+ init_dirname();
70
+ init_buffer();
71
+ init_process();
72
+ var ViewProperty_default = {
73
+ CENTER: "center",
74
+ RESOLUTION: "resolution",
75
+ ROTATION: "rotation"
76
+ };
77
+
78
+ // node_modules/ol/centerconstraint.js
79
+ init_dirname();
80
+ init_buffer();
81
+ init_process();
82
+ function createExtent(extent, onlyCenter, smooth) {
83
+ return (
84
+ /**
85
+ * @param {import("./coordinate.js").Coordinate|undefined} center Center.
86
+ * @param {number|undefined} resolution Resolution.
87
+ * @param {import("./size.js").Size} size Viewport size; unused if `onlyCenter` was specified.
88
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
89
+ * @param {Array<number>} [centerShift] Shift between map center and viewport center.
90
+ * @return {import("./coordinate.js").Coordinate|undefined} Center.
91
+ */
92
+ (function(center, resolution, size, isMoving, centerShift) {
93
+ if (!center) {
94
+ return void 0;
95
+ }
96
+ if (!resolution && !onlyCenter) {
97
+ return center;
98
+ }
99
+ const viewWidth = onlyCenter ? 0 : size[0] * (resolution != null ? resolution : 0);
100
+ const viewHeight = onlyCenter ? 0 : size[1] * (resolution != null ? resolution : 0);
101
+ const shiftX = centerShift ? centerShift[0] : 0;
102
+ const shiftY = centerShift ? centerShift[1] : 0;
103
+ let minX = extent[0] + viewWidth / 2 + shiftX;
104
+ let maxX = extent[2] - viewWidth / 2 + shiftX;
105
+ let minY = extent[1] + viewHeight / 2 + shiftY;
106
+ let maxY = extent[3] - viewHeight / 2 + shiftY;
107
+ if (minX > maxX) {
108
+ minX = (maxX + minX) / 2;
109
+ maxX = minX;
110
+ }
111
+ if (minY > maxY) {
112
+ minY = (maxY + minY) / 2;
113
+ maxY = minY;
114
+ }
115
+ let x = clamp(center[0], minX, maxX);
116
+ let y = clamp(center[1], minY, maxY);
117
+ if (isMoving && smooth && resolution) {
118
+ const ratio = 30 * resolution;
119
+ x += -ratio * Math.log(1 + Math.max(0, minX - center[0]) / ratio) + ratio * Math.log(1 + Math.max(0, center[0] - maxX) / ratio);
120
+ y += -ratio * Math.log(1 + Math.max(0, minY - center[1]) / ratio) + ratio * Math.log(1 + Math.max(0, center[1] - maxY) / ratio);
121
+ }
122
+ return [x, y];
123
+ })
124
+ );
125
+ }
126
+ function none(center) {
127
+ return center;
128
+ }
129
+
130
+ // node_modules/ol/resolutionconstraint.js
131
+ init_dirname();
132
+ init_buffer();
133
+ init_process();
134
+ function getViewportClampedResolution(resolution, maxExtent, viewportSize, showFullExtent) {
135
+ const xResolution = getWidth(maxExtent) / viewportSize[0];
136
+ const yResolution = getHeight(maxExtent) / viewportSize[1];
137
+ if (showFullExtent) {
138
+ return Math.min(resolution, Math.max(xResolution, yResolution));
139
+ }
140
+ return Math.min(resolution, Math.min(xResolution, yResolution));
141
+ }
142
+ function getSmoothClampedResolution(resolution, maxResolution, minResolution) {
143
+ let result = Math.min(resolution, maxResolution);
144
+ const ratio = 50;
145
+ result *= Math.log(1 + ratio * Math.max(0, resolution / maxResolution - 1)) / ratio + 1;
146
+ if (minResolution) {
147
+ result = Math.max(result, minResolution);
148
+ result /= Math.log(1 + ratio * Math.max(0, minResolution / resolution - 1)) / ratio + 1;
149
+ }
150
+ return clamp(result, minResolution / 2, maxResolution * 2);
151
+ }
152
+ function createSnapToResolutions(resolutions, smooth, maxExtent, showFullExtent) {
153
+ smooth = smooth !== void 0 ? smooth : true;
154
+ return (
155
+ /**
156
+ * @param {number|undefined} resolution Resolution.
157
+ * @param {number} direction Direction.
158
+ * @param {import("./size.js").Size} size Viewport size.
159
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
160
+ * @return {number|undefined} Resolution.
161
+ */
162
+ (function(resolution, direction, size, isMoving) {
163
+ if (resolution !== void 0) {
164
+ const maxResolution = resolutions[0];
165
+ const minResolution = resolutions[resolutions.length - 1];
166
+ const cappedMaxRes = maxExtent ? getViewportClampedResolution(
167
+ maxResolution,
168
+ maxExtent,
169
+ size,
170
+ !!showFullExtent
171
+ ) : maxResolution;
172
+ if (isMoving) {
173
+ if (!smooth) {
174
+ return clamp(resolution, minResolution, cappedMaxRes);
175
+ }
176
+ return getSmoothClampedResolution(
177
+ resolution,
178
+ cappedMaxRes,
179
+ minResolution
180
+ );
181
+ }
182
+ const capped = Math.min(cappedMaxRes, resolution);
183
+ const z = Math.floor(linearFindNearest(resolutions, capped, direction));
184
+ if (resolutions[z] > cappedMaxRes && z < resolutions.length - 1) {
185
+ return resolutions[z + 1];
186
+ }
187
+ return resolutions[z];
188
+ }
189
+ return void 0;
190
+ })
191
+ );
192
+ }
193
+ function createSnapToPower(power, maxResolution, minResolution, smooth, maxExtent, showFullExtent) {
194
+ smooth = smooth !== void 0 ? smooth : true;
195
+ minResolution = minResolution !== void 0 ? minResolution : 0;
196
+ return (
197
+ /**
198
+ * @param {number|undefined} resolution Resolution.
199
+ * @param {number} direction Direction.
200
+ * @param {import("./size.js").Size} size Viewport size.
201
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
202
+ * @return {number|undefined} Resolution.
203
+ */
204
+ (function(resolution, direction, size, isMoving) {
205
+ if (resolution !== void 0) {
206
+ const cappedMaxRes = maxExtent ? getViewportClampedResolution(
207
+ maxResolution,
208
+ maxExtent,
209
+ size,
210
+ !!showFullExtent
211
+ ) : maxResolution;
212
+ if (isMoving) {
213
+ if (!smooth) {
214
+ return clamp(resolution, minResolution, cappedMaxRes);
215
+ }
216
+ return getSmoothClampedResolution(
217
+ resolution,
218
+ cappedMaxRes,
219
+ minResolution
220
+ );
221
+ }
222
+ const tolerance = 1e-9;
223
+ const minZoomLevel = Math.ceil(
224
+ Math.log(maxResolution / cappedMaxRes) / Math.log(power) - tolerance
225
+ );
226
+ const offset = -direction * (0.5 - tolerance) + 0.5;
227
+ const capped = Math.min(cappedMaxRes, resolution);
228
+ const cappedZoomLevel = Math.floor(
229
+ Math.log(maxResolution / capped) / Math.log(power) + offset
230
+ );
231
+ const zoomLevel = Math.max(minZoomLevel, cappedZoomLevel);
232
+ const newResolution = maxResolution / Math.pow(power, zoomLevel);
233
+ return clamp(newResolution, minResolution, cappedMaxRes);
234
+ }
235
+ return void 0;
236
+ })
237
+ );
238
+ }
239
+ function createMinMaxResolution(maxResolution, minResolution, smooth, maxExtent, showFullExtent) {
240
+ smooth = smooth !== void 0 ? smooth : true;
241
+ return (
242
+ /**
243
+ * @param {number|undefined} resolution Resolution.
244
+ * @param {number} direction Direction.
245
+ * @param {import("./size.js").Size} size Viewport size.
246
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
247
+ * @return {number|undefined} Resolution.
248
+ */
249
+ (function(resolution, direction, size, isMoving) {
250
+ if (resolution !== void 0) {
251
+ const cappedMaxRes = maxExtent ? getViewportClampedResolution(
252
+ maxResolution,
253
+ maxExtent,
254
+ size,
255
+ !!showFullExtent
256
+ ) : maxResolution;
257
+ if (!smooth || !isMoving) {
258
+ return clamp(resolution, minResolution, cappedMaxRes);
259
+ }
260
+ return getSmoothClampedResolution(
261
+ resolution,
262
+ cappedMaxRes,
263
+ minResolution
264
+ );
265
+ }
266
+ return void 0;
267
+ })
268
+ );
269
+ }
270
+
271
+ // node_modules/ol/rotationconstraint.js
272
+ init_dirname();
273
+ init_buffer();
274
+ init_process();
275
+ function disable(rotation) {
276
+ if (rotation !== void 0) {
277
+ return 0;
278
+ }
279
+ return void 0;
280
+ }
281
+ function none2(rotation) {
282
+ if (rotation !== void 0) {
283
+ return rotation;
284
+ }
285
+ return void 0;
286
+ }
287
+ function createSnapToN(n) {
288
+ const theta = 2 * Math.PI / n;
289
+ return (
290
+ /**
291
+ * @param {number|undefined} rotation Rotation.
292
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
293
+ * @return {number|undefined} Rotation.
294
+ */
295
+ (function(rotation, isMoving) {
296
+ if (isMoving) {
297
+ return rotation;
298
+ }
299
+ if (rotation !== void 0) {
300
+ rotation = Math.floor(rotation / theta + 0.5) * theta;
301
+ return rotation;
302
+ }
303
+ return void 0;
304
+ })
305
+ );
306
+ }
307
+ function createSnapToZero(tolerance) {
308
+ const t = tolerance === void 0 ? toRadians(5) : tolerance;
309
+ return (
310
+ /**
311
+ * @param {number|undefined} rotation Rotation.
312
+ * @param {boolean} [isMoving] True if an interaction or animation is in progress.
313
+ * @return {number|undefined} Rotation.
314
+ */
315
+ (function(rotation, isMoving) {
316
+ if (isMoving || rotation === void 0) {
317
+ return rotation;
318
+ }
319
+ if (Math.abs(rotation) <= t) {
320
+ return 0;
321
+ }
322
+ return rotation;
323
+ })
324
+ );
325
+ }
326
+
327
+ // node_modules/ol/View.js
328
+ var DEFAULT_MIN_ZOOM = 0;
329
+ var View = class extends Object_default {
330
+ /**
331
+ * @param {ViewOptions} [options] View options.
332
+ */
333
+ constructor(options) {
334
+ super();
335
+ this.on;
336
+ this.once;
337
+ this.un;
338
+ options = Object.assign({}, options);
339
+ this.hints_ = [0, 0];
340
+ this.animations_ = [];
341
+ this.updateAnimationKey_;
342
+ this.projection_ = createProjection(options.projection, "EPSG:3857");
343
+ this.viewportSize_ = [100, 100];
344
+ this.targetCenter_ = null;
345
+ this.targetResolution_;
346
+ this.targetRotation_;
347
+ this.nextCenter_ = null;
348
+ this.nextResolution_;
349
+ this.nextRotation_;
350
+ this.cancelAnchor_ = void 0;
351
+ if (options.projection) {
352
+ disableCoordinateWarning();
353
+ }
354
+ if (options.center) {
355
+ options.center = fromUserCoordinate(
356
+ options.center,
357
+ /** @type {import("./proj.js").ProjectionLike} */
358
+ this.projection_
359
+ );
360
+ }
361
+ if (options.extent) {
362
+ options.extent = fromUserExtent(
363
+ options.extent,
364
+ /** @type {import("./proj.js").ProjectionLike} */
365
+ this.projection_
366
+ );
367
+ }
368
+ this.applyOptions_(options);
369
+ }
370
+ /**
371
+ * Set up the view with the given options.
372
+ * @param {ViewOptions} options View options.
373
+ */
374
+ applyOptions_(options) {
375
+ const properties = (
376
+ /** @type {Object<string, *>} */
377
+ Object.assign({}, options)
378
+ );
379
+ for (const key in ViewProperty_default) {
380
+ delete properties[key];
381
+ }
382
+ this.setProperties(properties, true);
383
+ const resolutionConstraintInfo = createResolutionConstraint(options);
384
+ this.maxResolution_ = resolutionConstraintInfo.maxResolution;
385
+ this.minResolution_ = resolutionConstraintInfo.minResolution;
386
+ this.zoomFactor_ = resolutionConstraintInfo.zoomFactor;
387
+ this.resolutions_ = options.resolutions;
388
+ this.padding_ = options.padding;
389
+ this.minZoom_ = resolutionConstraintInfo.minZoom;
390
+ const centerConstraint = createCenterConstraint(options);
391
+ const resolutionConstraint = resolutionConstraintInfo.constraint;
392
+ const rotationConstraint = createRotationConstraint(options);
393
+ this.constraints_ = {
394
+ center: centerConstraint,
395
+ resolution: resolutionConstraint,
396
+ rotation: rotationConstraint
397
+ };
398
+ this.setRotation(options.rotation !== void 0 ? options.rotation : 0);
399
+ this.setCenterInternal(
400
+ options.center !== void 0 ? options.center : null
401
+ );
402
+ if (options.resolution !== void 0) {
403
+ this.setResolution(options.resolution);
404
+ } else if (options.zoom !== void 0) {
405
+ this.setZoom(options.zoom);
406
+ }
407
+ }
408
+ /**
409
+ * Padding (in css pixels).
410
+ * If the map viewport is partially covered with other content (overlays) along
411
+ * its edges, this setting allows to shift the center of the viewport away from that
412
+ * content. The order of the values in the array is top, right, bottom, left.
413
+ * The default is no padding, which is equivalent to `[0, 0, 0, 0]`.
414
+ * @type {Array<number>|undefined}
415
+ * @api
416
+ */
417
+ get padding() {
418
+ return this.padding_;
419
+ }
420
+ set padding(padding) {
421
+ let oldPadding = this.padding_;
422
+ this.padding_ = padding;
423
+ const center = this.getCenterInternal();
424
+ if (center) {
425
+ const newPadding = padding || [0, 0, 0, 0];
426
+ oldPadding = oldPadding || [0, 0, 0, 0];
427
+ const resolution = (
428
+ /** @type {number} */
429
+ this.getResolution()
430
+ );
431
+ const offsetX = resolution / 2 * (newPadding[3] - oldPadding[3] + oldPadding[1] - newPadding[1]);
432
+ const offsetY = resolution / 2 * (newPadding[0] - oldPadding[0] + oldPadding[2] - newPadding[2]);
433
+ this.setCenterInternal([center[0] + offsetX, center[1] - offsetY]);
434
+ }
435
+ }
436
+ /**
437
+ * Get an updated version of the view options used to construct the view. The
438
+ * current resolution (or zoom), center, and rotation are applied to any stored
439
+ * options. The provided options can be used to apply new min/max zoom or
440
+ * resolution limits.
441
+ * @param {ViewOptions} newOptions New options to be applied.
442
+ * @return {ViewOptions} New options updated with the current view state.
443
+ */
444
+ getUpdatedOptions_(newOptions) {
445
+ const options = this.getProperties();
446
+ if (options.resolution !== void 0) {
447
+ options.resolution = this.getResolution();
448
+ } else {
449
+ options.zoom = this.getZoom();
450
+ }
451
+ options.center = this.getCenterInternal();
452
+ options.rotation = this.getRotation();
453
+ return Object.assign({}, options, newOptions);
454
+ }
455
+ /**
456
+ * Animate the view. The view's center, zoom (or resolution), and rotation
457
+ * can be animated for smooth transitions between view states. For example,
458
+ * to animate the view to a new zoom level:
459
+ *
460
+ * view.animate({zoom: view.getZoom() + 1});
461
+ *
462
+ * By default, the animation lasts one second and uses in-and-out easing. You
463
+ * can customize this behavior by including `duration` (in milliseconds) and
464
+ * `easing` options (see {@link module:ol/easing}).
465
+ *
466
+ * To chain together multiple animations, call the method with multiple
467
+ * animation objects. For example, to first zoom and then pan:
468
+ *
469
+ * view.animate({zoom: 10}, {center: [0, 0]});
470
+ *
471
+ * If you provide a function as the last argument to the animate method, it
472
+ * will get called at the end of an animation series. The callback will be
473
+ * called with `true` if the animation series completed on its own or `false`
474
+ * if it was cancelled.
475
+ *
476
+ * Animations are cancelled by user interactions (e.g. dragging the map) or by
477
+ * calling `view.setCenter()`, `view.setResolution()`, or `view.setRotation()`
478
+ * (or another method that calls one of these).
479
+ *
480
+ * @param {...(AnimationOptions|function(boolean): void)} var_args Animation
481
+ * options. Multiple animations can be run in series by passing multiple
482
+ * options objects. To run multiple animations in parallel, call the method
483
+ * multiple times. An optional callback can be provided as a final
484
+ * argument. The callback will be called with a boolean indicating whether
485
+ * the animation completed without being cancelled.
486
+ * @api
487
+ */
488
+ animate(var_args) {
489
+ if (this.isDef() && !this.getAnimating()) {
490
+ this.resolveConstraints(0);
491
+ }
492
+ const args = new Array(arguments.length);
493
+ for (let i = 0; i < args.length; ++i) {
494
+ let options = arguments[i];
495
+ if (options.center) {
496
+ options = Object.assign({}, options);
497
+ options.center = fromUserCoordinate(
498
+ options.center,
499
+ this.getProjection()
500
+ );
501
+ }
502
+ if (options.anchor) {
503
+ options = Object.assign({}, options);
504
+ options.anchor = fromUserCoordinate(
505
+ options.anchor,
506
+ this.getProjection()
507
+ );
508
+ }
509
+ args[i] = options;
510
+ }
511
+ this.animateInternal.apply(this, args);
512
+ }
513
+ /**
514
+ * @param {...(AnimationOptions|function(boolean): void)} var_args Animation options.
515
+ */
516
+ animateInternal(var_args) {
517
+ let animationCount = arguments.length;
518
+ let callback;
519
+ if (animationCount > 1 && typeof arguments[animationCount - 1] === "function") {
520
+ callback = arguments[animationCount - 1];
521
+ --animationCount;
522
+ }
523
+ let i = 0;
524
+ for (; i < animationCount && !this.isDef(); ++i) {
525
+ const state = arguments[i];
526
+ if (state.center) {
527
+ this.setCenterInternal(state.center);
528
+ }
529
+ if (state.zoom !== void 0) {
530
+ this.setZoom(state.zoom);
531
+ } else if (state.resolution) {
532
+ this.setResolution(state.resolution);
533
+ }
534
+ if (state.rotation !== void 0) {
535
+ this.setRotation(state.rotation);
536
+ }
537
+ }
538
+ if (i === animationCount) {
539
+ if (callback) {
540
+ animationCallback(callback, true);
541
+ }
542
+ return;
543
+ }
544
+ let start = Date.now();
545
+ let center = (
546
+ /** @type {import("./coordinate.js").Coordinate} */
547
+ /** @type {import("./coordinate.js").Coordinate} */
548
+ this.targetCenter_.slice()
549
+ );
550
+ let resolution = this.targetResolution_;
551
+ let rotation = (
552
+ /** @type {number} */
553
+ this.targetRotation_
554
+ );
555
+ const series = [];
556
+ for (; i < animationCount; ++i) {
557
+ const options = (
558
+ /** @type {AnimationOptions} */
559
+ arguments[i]
560
+ );
561
+ const animation = (
562
+ /** @type {Animation} */
563
+ {
564
+ start,
565
+ complete: false,
566
+ anchor: options.anchor,
567
+ duration: options.duration !== void 0 ? options.duration : 1e3,
568
+ easing: options.easing || inAndOut,
569
+ callback
570
+ }
571
+ );
572
+ if (options.center) {
573
+ animation.sourceCenter = center;
574
+ animation.targetCenter = options.center.slice();
575
+ center = animation.targetCenter;
576
+ }
577
+ if (options.zoom !== void 0) {
578
+ animation.sourceResolution = resolution;
579
+ animation.targetResolution = this.getResolutionForZoom(options.zoom);
580
+ resolution = animation.targetResolution;
581
+ } else if (options.resolution) {
582
+ animation.sourceResolution = resolution;
583
+ animation.targetResolution = options.resolution;
584
+ resolution = animation.targetResolution;
585
+ }
586
+ if (options.rotation !== void 0) {
587
+ animation.sourceRotation = rotation;
588
+ const delta = modulo(options.rotation - rotation + Math.PI, 2 * Math.PI) - Math.PI;
589
+ animation.targetRotation = rotation + delta;
590
+ rotation = animation.targetRotation;
591
+ }
592
+ if (isNoopAnimation(animation)) {
593
+ animation.complete = true;
594
+ } else {
595
+ start += animation.duration;
596
+ }
597
+ series.push(animation);
598
+ }
599
+ this.animations_.push(series);
600
+ this.setHint(ViewHint_default.ANIMATING, 1);
601
+ this.updateAnimations_();
602
+ }
603
+ /**
604
+ * Determine if the view is being animated.
605
+ * @return {boolean} The view is being animated.
606
+ * @api
607
+ */
608
+ getAnimating() {
609
+ return this.hints_[ViewHint_default.ANIMATING] > 0;
610
+ }
611
+ /**
612
+ * Determine if the user is interacting with the view, such as panning or zooming.
613
+ * @return {boolean} The view is being interacted with.
614
+ * @api
615
+ */
616
+ getInteracting() {
617
+ return this.hints_[ViewHint_default.INTERACTING] > 0;
618
+ }
619
+ /**
620
+ * Cancel any ongoing animations.
621
+ * @api
622
+ */
623
+ cancelAnimations() {
624
+ this.setHint(ViewHint_default.ANIMATING, -this.hints_[ViewHint_default.ANIMATING]);
625
+ let anchor;
626
+ for (let i = 0, ii = this.animations_.length; i < ii; ++i) {
627
+ const series = (
628
+ /** @type {Array<Animation>} */
629
+ this.animations_[i]
630
+ );
631
+ if (
632
+ /** @type {Animation} */
633
+ series[0].callback
634
+ ) {
635
+ animationCallback(
636
+ /** @type {Animation} */
637
+ series[0].callback,
638
+ false
639
+ );
640
+ }
641
+ if (!anchor) {
642
+ for (let j = 0, jj = series.length; j < jj; ++j) {
643
+ const animation = series[j];
644
+ if (!animation.complete) {
645
+ anchor = animation.anchor;
646
+ break;
647
+ }
648
+ }
649
+ }
650
+ }
651
+ this.animations_.length = 0;
652
+ this.cancelAnchor_ = anchor;
653
+ this.nextCenter_ = null;
654
+ this.nextResolution_ = NaN;
655
+ this.nextRotation_ = NaN;
656
+ }
657
+ /**
658
+ * Update all animations.
659
+ */
660
+ updateAnimations_() {
661
+ if (this.updateAnimationKey_ !== void 0) {
662
+ cancelAnimationFrame(this.updateAnimationKey_);
663
+ this.updateAnimationKey_ = void 0;
664
+ }
665
+ if (!this.getAnimating()) {
666
+ return;
667
+ }
668
+ const now = Date.now();
669
+ let more = false;
670
+ for (let i = this.animations_.length - 1; i >= 0; --i) {
671
+ const series = (
672
+ /** @type {Array<Animation>} */
673
+ this.animations_[i]
674
+ );
675
+ let seriesComplete = true;
676
+ for (let j = 0, jj = series.length; j < jj; ++j) {
677
+ const animation = series[j];
678
+ if (animation.complete) {
679
+ continue;
680
+ }
681
+ const elapsed = now - animation.start;
682
+ let fraction = animation.duration > 0 ? elapsed / animation.duration : 1;
683
+ if (fraction >= 1) {
684
+ animation.complete = true;
685
+ fraction = 1;
686
+ } else {
687
+ seriesComplete = false;
688
+ }
689
+ const progress = animation.easing(fraction);
690
+ if (animation.sourceCenter) {
691
+ const x0 = animation.sourceCenter[0];
692
+ const y0 = animation.sourceCenter[1];
693
+ const x1 = (
694
+ /** @type {import("./coordinate.js").Coordinate} */
695
+ animation.targetCenter[0]
696
+ );
697
+ const y1 = (
698
+ /** @type {import("./coordinate.js").Coordinate} */
699
+ animation.targetCenter[1]
700
+ );
701
+ this.nextCenter_ = /** @type {import("./coordinate.js").Coordinate} */
702
+ animation.targetCenter;
703
+ const x = x0 + progress * (x1 - x0);
704
+ const y = y0 + progress * (y1 - y0);
705
+ this.targetCenter_ = [x, y];
706
+ }
707
+ if (animation.sourceResolution && animation.targetResolution) {
708
+ const resolution = progress === 1 ? animation.targetResolution : animation.sourceResolution + progress * (animation.targetResolution - animation.sourceResolution);
709
+ if (animation.anchor) {
710
+ const size = this.getViewportSize_(this.getRotation());
711
+ const constrainedResolution = (
712
+ /** @type {Constraints} */
713
+ this.constraints_.resolution(resolution, 0, size, true)
714
+ );
715
+ this.targetCenter_ = this.calculateCenterZoom(
716
+ /** @type {number} */
717
+ constrainedResolution,
718
+ /** @type {import("./coordinate.js").Coordinate} */
719
+ animation.anchor
720
+ );
721
+ }
722
+ this.nextResolution_ = animation.targetResolution;
723
+ this.targetResolution_ = resolution;
724
+ this.applyTargetState_(true);
725
+ }
726
+ if (animation.sourceRotation !== void 0 && animation.targetRotation !== void 0) {
727
+ const rotation = progress === 1 ? modulo(animation.targetRotation + Math.PI, 2 * Math.PI) - Math.PI : animation.sourceRotation + progress * (animation.targetRotation - animation.sourceRotation);
728
+ if (animation.anchor) {
729
+ const constrainedRotation = (
730
+ /** @type {Constraints} */
731
+ this.constraints_.rotation(rotation, true)
732
+ );
733
+ this.targetCenter_ = this.calculateCenterRotate(
734
+ /** @type {number} */
735
+ constrainedRotation,
736
+ /** @type {import("./coordinate.js").Coordinate} */
737
+ animation.anchor
738
+ );
739
+ }
740
+ this.nextRotation_ = animation.targetRotation;
741
+ this.targetRotation_ = rotation;
742
+ }
743
+ this.applyTargetState_(true);
744
+ more = true;
745
+ if (!animation.complete) {
746
+ break;
747
+ }
748
+ }
749
+ if (seriesComplete) {
750
+ this.animations_[i] = null;
751
+ this.setHint(ViewHint_default.ANIMATING, -1);
752
+ this.nextCenter_ = null;
753
+ this.nextResolution_ = NaN;
754
+ this.nextRotation_ = NaN;
755
+ const callback = series[0].callback;
756
+ if (callback) {
757
+ animationCallback(callback, true);
758
+ }
759
+ }
760
+ }
761
+ this.animations_ = this.animations_.filter(Boolean);
762
+ if (more && this.updateAnimationKey_ === void 0) {
763
+ this.updateAnimationKey_ = requestAnimationFrame(
764
+ this.updateAnimations_.bind(this)
765
+ );
766
+ }
767
+ }
768
+ /**
769
+ * @param {number} rotation Target rotation.
770
+ * @param {import("./coordinate.js").Coordinate} anchor Rotation anchor.
771
+ * @return {import("./coordinate.js").Coordinate|undefined} Center for rotation and anchor.
772
+ */
773
+ calculateCenterRotate(rotation, anchor) {
774
+ let center;
775
+ const currentCenter = this.getCenterInternal();
776
+ if (currentCenter !== void 0) {
777
+ center = [currentCenter[0] - anchor[0], currentCenter[1] - anchor[1]];
778
+ rotate(center, rotation - this.getRotation());
779
+ add(center, anchor);
780
+ }
781
+ return center;
782
+ }
783
+ /**
784
+ * @param {number} resolution Target resolution.
785
+ * @param {import("./coordinate.js").Coordinate} anchor Zoom anchor.
786
+ * @return {import("./coordinate.js").Coordinate|undefined} Center for resolution and anchor.
787
+ */
788
+ calculateCenterZoom(resolution, anchor) {
789
+ let center;
790
+ const currentCenter = this.getCenterInternal();
791
+ const currentResolution = this.getResolution();
792
+ if (currentCenter !== void 0 && currentResolution !== void 0) {
793
+ const x = anchor[0] - resolution * (anchor[0] - currentCenter[0]) / currentResolution;
794
+ const y = anchor[1] - resolution * (anchor[1] - currentCenter[1]) / currentResolution;
795
+ center = [x, y];
796
+ }
797
+ return center;
798
+ }
799
+ /**
800
+ * Returns the current viewport size.
801
+ * @private
802
+ * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
803
+ * @return {import("./size.js").Size} Viewport size or `[100, 100]` when no viewport is found.
804
+ */
805
+ getViewportSize_(rotation) {
806
+ const size = this.viewportSize_;
807
+ if (rotation) {
808
+ const w = size[0];
809
+ const h = size[1];
810
+ return [
811
+ Math.abs(w * Math.cos(rotation)) + Math.abs(h * Math.sin(rotation)),
812
+ Math.abs(w * Math.sin(rotation)) + Math.abs(h * Math.cos(rotation))
813
+ ];
814
+ }
815
+ return size;
816
+ }
817
+ /**
818
+ * Stores the viewport size on the view. The viewport size is not read every time from the DOM
819
+ * to avoid performance hit and layout reflow.
820
+ * This should be done on map size change.
821
+ * Note: the constraints are not resolved during an animation to avoid stopping it
822
+ * @param {import("./size.js").Size} [size] Viewport size; if undefined, [100, 100] is assumed
823
+ */
824
+ setViewportSize(size) {
825
+ this.viewportSize_ = Array.isArray(size) ? size.slice() : [100, 100];
826
+ if (!this.getAnimating()) {
827
+ this.resolveConstraints(0);
828
+ }
829
+ }
830
+ /**
831
+ * Get the view center.
832
+ * @return {import("./coordinate.js").Coordinate|undefined} The center of the view.
833
+ * @observable
834
+ * @api
835
+ */
836
+ getCenter() {
837
+ const center = this.getCenterInternal();
838
+ if (!center) {
839
+ return center;
840
+ }
841
+ return toUserCoordinate(center, this.getProjection());
842
+ }
843
+ /**
844
+ * Get the view center without transforming to user projection.
845
+ * @return {import("./coordinate.js").Coordinate|undefined} The center of the view.
846
+ */
847
+ getCenterInternal() {
848
+ return (
849
+ /** @type {import("./coordinate.js").Coordinate|undefined} */
850
+ this.get(ViewProperty_default.CENTER)
851
+ );
852
+ }
853
+ /**
854
+ * @return {Constraints} Constraints.
855
+ */
856
+ getConstraints() {
857
+ return (
858
+ /** @type {Constraints} */
859
+ this.constraints_
860
+ );
861
+ }
862
+ /**
863
+ * @return {boolean} Resolution constraint is set
864
+ */
865
+ getConstrainResolution() {
866
+ return this.get("constrainResolution");
867
+ }
868
+ /**
869
+ * @param {Array<number>} [hints] Destination array.
870
+ * @return {Array<number>} Hint.
871
+ */
872
+ getHints(hints) {
873
+ if (hints !== void 0) {
874
+ hints[0] = this.hints_[0];
875
+ hints[1] = this.hints_[1];
876
+ return hints;
877
+ }
878
+ return this.hints_.slice();
879
+ }
880
+ /**
881
+ * Calculate the extent for the current view state and the passed box size.
882
+ * @param {import("./size.js").Size} [size] The pixel dimensions of the box
883
+ * into which the calculated extent should fit. Defaults to the size of the
884
+ * map the view is associated with.
885
+ * If no map or multiple maps are connected to the view, provide the desired
886
+ * box size (e.g. `map.getSize()`).
887
+ * @return {import("./extent.js").Extent} Extent.
888
+ * @api
889
+ */
890
+ calculateExtent(size) {
891
+ const extent = this.calculateExtentInternal(size);
892
+ return toUserExtent(extent, this.getProjection());
893
+ }
894
+ /**
895
+ * @param {import("./size.js").Size} [size] Box pixel size. If not provided,
896
+ * the map's last known viewport size will be used.
897
+ * @return {import("./extent.js").Extent} Extent.
898
+ */
899
+ calculateExtentInternal(size) {
900
+ size = size || this.getViewportSizeMinusPadding_();
901
+ const center = (
902
+ /** @type {!import("./coordinate.js").Coordinate} */
903
+ this.getCenterInternal()
904
+ );
905
+ assert(center, "The view center is not defined");
906
+ const resolution = (
907
+ /** @type {!number} */
908
+ this.getResolution()
909
+ );
910
+ assert(resolution !== void 0, "The view resolution is not defined");
911
+ const rotation = (
912
+ /** @type {!number} */
913
+ this.getRotation()
914
+ );
915
+ assert(rotation !== void 0, "The view rotation is not defined");
916
+ return getForViewAndSize(center, resolution, rotation, size);
917
+ }
918
+ /**
919
+ * Get the maximum resolution of the view.
920
+ * @return {number} The maximum resolution of the view.
921
+ * @api
922
+ */
923
+ getMaxResolution() {
924
+ return (
925
+ /** @type {number} */
926
+ this.maxResolution_
927
+ );
928
+ }
929
+ /**
930
+ * Get the minimum resolution of the view.
931
+ * @return {number} The minimum resolution of the view.
932
+ * @api
933
+ */
934
+ getMinResolution() {
935
+ return (
936
+ /** @type {number} */
937
+ this.minResolution_
938
+ );
939
+ }
940
+ /**
941
+ * Get the maximum zoom level for the view.
942
+ * @return {number} The maximum zoom level.
943
+ * @api
944
+ */
945
+ getMaxZoom() {
946
+ return (
947
+ /** @type {number} */
948
+ this.getZoomForResolution(
949
+ /** @type {number} */
950
+ this.minResolution_
951
+ )
952
+ );
953
+ }
954
+ /**
955
+ * Set a new maximum zoom level for the view.
956
+ * @param {number} zoom The maximum zoom level.
957
+ * @api
958
+ */
959
+ setMaxZoom(zoom) {
960
+ this.applyOptions_(this.getUpdatedOptions_({ maxZoom: zoom }));
961
+ }
962
+ /**
963
+ * Get the minimum zoom level for the view.
964
+ * @return {number} The minimum zoom level.
965
+ * @api
966
+ */
967
+ getMinZoom() {
968
+ return (
969
+ /** @type {number} */
970
+ this.getZoomForResolution(
971
+ /** @type {number} */
972
+ this.maxResolution_
973
+ )
974
+ );
975
+ }
976
+ /**
977
+ * Set a new minimum zoom level for the view.
978
+ * @param {number} zoom The minimum zoom level.
979
+ * @api
980
+ */
981
+ setMinZoom(zoom) {
982
+ this.applyOptions_(this.getUpdatedOptions_({ minZoom: zoom }));
983
+ }
984
+ /**
985
+ * Set whether the view should allow intermediary zoom levels.
986
+ * @param {boolean} enabled Whether the resolution is constrained.
987
+ * @api
988
+ */
989
+ setConstrainResolution(enabled) {
990
+ this.applyOptions_(this.getUpdatedOptions_({ constrainResolution: enabled }));
991
+ }
992
+ /**
993
+ * Get the view projection.
994
+ * @return {import("./proj/Projection.js").default} The projection of the view.
995
+ * @api
996
+ */
997
+ getProjection() {
998
+ return (
999
+ /** @type {import("./proj/Projection.js").default} */
1000
+ this.projection_
1001
+ );
1002
+ }
1003
+ /**
1004
+ * Get the view resolution.
1005
+ * @return {number|undefined} The resolution of the view.
1006
+ * @observable
1007
+ * @api
1008
+ */
1009
+ getResolution() {
1010
+ return (
1011
+ /** @type {number|undefined} */
1012
+ this.get(ViewProperty_default.RESOLUTION)
1013
+ );
1014
+ }
1015
+ /**
1016
+ * Get the resolutions for the view. This returns the array of resolutions
1017
+ * passed to the constructor of the View, or undefined if none were given.
1018
+ * @return {Array<number>|undefined} The resolutions of the view.
1019
+ * @api
1020
+ */
1021
+ getResolutions() {
1022
+ return this.resolutions_;
1023
+ }
1024
+ /**
1025
+ * Get the resolution for a provided extent (in map units) and size (in pixels).
1026
+ * @param {import("./extent.js").Extent} extent Extent.
1027
+ * @param {import("./size.js").Size} [size] Box pixel size.
1028
+ * @return {number} The resolution at which the provided extent will render at
1029
+ * the given size.
1030
+ * @api
1031
+ */
1032
+ getResolutionForExtent(extent, size) {
1033
+ return this.getResolutionForExtentInternal(
1034
+ fromUserExtent(extent, this.getProjection()),
1035
+ size
1036
+ );
1037
+ }
1038
+ /**
1039
+ * Get the resolution for a provided extent (in map units) and size (in pixels).
1040
+ * @param {import("./extent.js").Extent} extent Extent.
1041
+ * @param {import("./size.js").Size} [size] Box pixel size.
1042
+ * @return {number} The resolution at which the provided extent will render at
1043
+ * the given size.
1044
+ */
1045
+ getResolutionForExtentInternal(extent, size) {
1046
+ size = size || this.getViewportSizeMinusPadding_();
1047
+ const xResolution = getWidth(extent) / size[0];
1048
+ const yResolution = getHeight(extent) / size[1];
1049
+ return Math.max(xResolution, yResolution);
1050
+ }
1051
+ /**
1052
+ * Return a function that returns a value between 0 and 1 for a
1053
+ * resolution. Exponential scaling is assumed.
1054
+ * @param {number} [power] Power.
1055
+ * @return {function(number): number} Resolution for value function.
1056
+ */
1057
+ getResolutionForValueFunction(power) {
1058
+ power = power || 2;
1059
+ const maxResolution = (
1060
+ /** @type {number} */
1061
+ this.getConstrainedResolution(
1062
+ /** @type {number} */
1063
+ this.maxResolution_
1064
+ )
1065
+ );
1066
+ const minResolution = (
1067
+ /** @type {number} */
1068
+ this.minResolution_
1069
+ );
1070
+ const max = Math.log(maxResolution / minResolution) / Math.log(power);
1071
+ return (
1072
+ /**
1073
+ * @param {number} value Value.
1074
+ * @return {number} Resolution.
1075
+ */
1076
+ (function(value) {
1077
+ const resolution = maxResolution / Math.pow(power, value * max);
1078
+ return resolution;
1079
+ })
1080
+ );
1081
+ }
1082
+ /**
1083
+ * Get the view rotation.
1084
+ * @return {number} The rotation of the view in radians.
1085
+ * @observable
1086
+ * @api
1087
+ */
1088
+ getRotation() {
1089
+ return (
1090
+ /** @type {number} */
1091
+ this.get(ViewProperty_default.ROTATION)
1092
+ );
1093
+ }
1094
+ /**
1095
+ * Return a function that returns a resolution for a value between
1096
+ * 0 and 1. Exponential scaling is assumed.
1097
+ * @param {number} [power] Power.
1098
+ * @return {function(number): number} Value for resolution function.
1099
+ */
1100
+ getValueForResolutionFunction(power) {
1101
+ const logPower = Math.log(power || 2);
1102
+ const maxResolution = (
1103
+ /** @type {number} */
1104
+ this.getConstrainedResolution(
1105
+ /** @type {number} */
1106
+ this.maxResolution_
1107
+ )
1108
+ );
1109
+ const minResolution = (
1110
+ /** @type {number} */
1111
+ this.minResolution_
1112
+ );
1113
+ const max = Math.log(maxResolution / minResolution) / logPower;
1114
+ return (
1115
+ /**
1116
+ * @param {number} resolution Resolution.
1117
+ * @return {number} Value.
1118
+ */
1119
+ (function(resolution) {
1120
+ const value = Math.log(maxResolution / resolution) / logPower / max;
1121
+ return value;
1122
+ })
1123
+ );
1124
+ }
1125
+ /**
1126
+ * Returns the size of the viewport minus padding.
1127
+ * @private
1128
+ * @param {number} [rotation] Take into account the rotation of the viewport when giving the size
1129
+ * @return {import("./size.js").Size} Viewport size reduced by the padding.
1130
+ */
1131
+ getViewportSizeMinusPadding_(rotation) {
1132
+ let size = this.getViewportSize_(rotation);
1133
+ const padding = this.padding_;
1134
+ if (padding) {
1135
+ size = [
1136
+ size[0] - padding[1] - padding[3],
1137
+ size[1] - padding[0] - padding[2]
1138
+ ];
1139
+ }
1140
+ return size;
1141
+ }
1142
+ /**
1143
+ * @return {State} View state.
1144
+ */
1145
+ getState() {
1146
+ const projection = this.getProjection();
1147
+ const resolution = this.getResolution();
1148
+ const rotation = this.getRotation();
1149
+ let center = (
1150
+ /** @type {import("./coordinate.js").Coordinate} */
1151
+ this.getCenterInternal()
1152
+ );
1153
+ const padding = this.padding_;
1154
+ if (padding) {
1155
+ const reducedSize = this.getViewportSizeMinusPadding_();
1156
+ center = calculateCenterOn(
1157
+ center,
1158
+ this.getViewportSize_(),
1159
+ [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],
1160
+ /** @type {number} */
1161
+ resolution,
1162
+ rotation
1163
+ );
1164
+ }
1165
+ return {
1166
+ center: center.slice(0),
1167
+ projection: (
1168
+ /** @type {import("./proj/Projection.js").default} */
1169
+ projection !== void 0 ? projection : null
1170
+ ),
1171
+ resolution: (
1172
+ /** @type {number} */
1173
+ resolution
1174
+ ),
1175
+ nextCenter: (
1176
+ /** @type {import("./coordinate.js").Coordinate|undefined} */
1177
+ /** @type {unknown} */
1178
+ this.nextCenter_
1179
+ ),
1180
+ nextResolution: this.nextResolution_,
1181
+ nextRotation: this.nextRotation_,
1182
+ rotation,
1183
+ zoom: (
1184
+ /** @type {number} */
1185
+ this.getZoom()
1186
+ )
1187
+ };
1188
+ }
1189
+ /**
1190
+ * @return {ViewStateLayerStateExtent} Like `FrameState`, but just `viewState` and `extent`.
1191
+ */
1192
+ getViewStateAndExtent() {
1193
+ return {
1194
+ viewState: this.getState(),
1195
+ extent: this.calculateExtent()
1196
+ };
1197
+ }
1198
+ /**
1199
+ * Get the current zoom level. This method may return non-integer zoom levels
1200
+ * if the view does not constrain the resolution, or if an interaction or
1201
+ * animation is underway.
1202
+ * @return {number|undefined} Zoom.
1203
+ * @api
1204
+ */
1205
+ getZoom() {
1206
+ let zoom;
1207
+ const resolution = this.getResolution();
1208
+ if (resolution !== void 0) {
1209
+ zoom = this.getZoomForResolution(resolution);
1210
+ }
1211
+ return zoom;
1212
+ }
1213
+ /**
1214
+ * Get the zoom level for a resolution.
1215
+ * @param {number} resolution The resolution.
1216
+ * @return {number|undefined} The zoom level for the provided resolution.
1217
+ * @api
1218
+ */
1219
+ getZoomForResolution(resolution) {
1220
+ let offset = this.minZoom_ || 0;
1221
+ let max, zoomFactor;
1222
+ if (this.resolutions_) {
1223
+ const nearest = linearFindNearest(this.resolutions_, resolution, 1);
1224
+ offset = nearest;
1225
+ max = this.resolutions_[nearest];
1226
+ if (nearest == this.resolutions_.length - 1) {
1227
+ zoomFactor = 2;
1228
+ } else {
1229
+ zoomFactor = max / this.resolutions_[nearest + 1];
1230
+ }
1231
+ } else {
1232
+ max = /** @type {number} */
1233
+ this.maxResolution_;
1234
+ zoomFactor = /** @type {number} */
1235
+ this.zoomFactor_;
1236
+ }
1237
+ return offset + Math.log(
1238
+ /** @type {number} */
1239
+ max / resolution
1240
+ ) / Math.log(
1241
+ /** @type {number} */
1242
+ zoomFactor
1243
+ );
1244
+ }
1245
+ /**
1246
+ * Get the resolution for a zoom level.
1247
+ * @param {number} zoom Zoom level.
1248
+ * @return {number} The view resolution for the provided zoom level.
1249
+ * @api
1250
+ */
1251
+ getResolutionForZoom(zoom) {
1252
+ var _a;
1253
+ if ((_a = this.resolutions_) == null ? void 0 : _a.length) {
1254
+ if (this.resolutions_.length === 1) {
1255
+ return this.resolutions_[0];
1256
+ }
1257
+ const baseLevel = clamp(
1258
+ Math.floor(zoom),
1259
+ 0,
1260
+ this.resolutions_.length - 2
1261
+ );
1262
+ const zoomFactor = this.resolutions_[baseLevel] / this.resolutions_[baseLevel + 1];
1263
+ return this.resolutions_[baseLevel] / Math.pow(zoomFactor, clamp(zoom - baseLevel, 0, 1));
1264
+ }
1265
+ return (
1266
+ /** @type {number} */
1267
+ this.maxResolution_ / Math.pow(
1268
+ /** @type {number} */
1269
+ this.zoomFactor_,
1270
+ zoom - /** @type {number} */
1271
+ this.minZoom_
1272
+ )
1273
+ );
1274
+ }
1275
+ /**
1276
+ * Fit the given geometry or extent based on the given map size and border.
1277
+ * The size is pixel dimensions of the box to fit the extent into.
1278
+ * In most cases you will want to use the map size, that is `map.getSize()`.
1279
+ * Takes care of the map angle.
1280
+ * @param {import("./geom/SimpleGeometry.js").default|import("./extent.js").Extent} geometryOrExtent The geometry or
1281
+ * extent to fit the view to.
1282
+ * @param {FitOptions} [options] Options.
1283
+ * @api
1284
+ */
1285
+ fit(geometryOrExtent, options) {
1286
+ let geometry;
1287
+ assert(
1288
+ Array.isArray(geometryOrExtent) || typeof /** @type {?} */
1289
+ geometryOrExtent.getSimplifiedGeometry === "function",
1290
+ "Invalid extent or geometry provided as `geometry`"
1291
+ );
1292
+ if (Array.isArray(geometryOrExtent)) {
1293
+ assert(
1294
+ !isEmpty(geometryOrExtent),
1295
+ "Cannot fit empty extent provided as `geometry`"
1296
+ );
1297
+ const extent = fromUserExtent(geometryOrExtent, this.getProjection());
1298
+ geometry = fromExtent(extent);
1299
+ } else if (geometryOrExtent.getType() === "Circle") {
1300
+ const extent = fromUserExtent(
1301
+ geometryOrExtent.getExtent(),
1302
+ this.getProjection()
1303
+ );
1304
+ geometry = fromExtent(extent);
1305
+ geometry.rotate(this.getRotation(), getCenter(extent));
1306
+ } else {
1307
+ const userProjection = getUserProjection();
1308
+ if (userProjection) {
1309
+ geometry = /** @type {import("./geom/SimpleGeometry.js").default} */
1310
+ geometryOrExtent.clone().transform(userProjection, this.getProjection());
1311
+ } else {
1312
+ geometry = geometryOrExtent;
1313
+ }
1314
+ }
1315
+ this.fitInternal(geometry, options);
1316
+ }
1317
+ /**
1318
+ * Calculate rotated extent
1319
+ * @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
1320
+ * @return {import("./extent.js").Extent} The rotated extent for the geometry.
1321
+ */
1322
+ rotatedExtentForGeometry(geometry) {
1323
+ const rotation = this.getRotation();
1324
+ const cosAngle = Math.cos(rotation);
1325
+ const sinAngle = Math.sin(-rotation);
1326
+ const coords = geometry.getFlatCoordinates();
1327
+ const stride = geometry.getStride();
1328
+ let minRotX = Infinity;
1329
+ let minRotY = Infinity;
1330
+ let maxRotX = -Infinity;
1331
+ let maxRotY = -Infinity;
1332
+ for (let i = 0, ii = coords.length; i < ii; i += stride) {
1333
+ const rotX = coords[i] * cosAngle - coords[i + 1] * sinAngle;
1334
+ const rotY = coords[i] * sinAngle + coords[i + 1] * cosAngle;
1335
+ minRotX = Math.min(minRotX, rotX);
1336
+ minRotY = Math.min(minRotY, rotY);
1337
+ maxRotX = Math.max(maxRotX, rotX);
1338
+ maxRotY = Math.max(maxRotY, rotY);
1339
+ }
1340
+ return [minRotX, minRotY, maxRotX, maxRotY];
1341
+ }
1342
+ /**
1343
+ * @param {import("./geom/SimpleGeometry.js").default} geometry The geometry.
1344
+ * @param {FitOptions} [options] Options.
1345
+ */
1346
+ fitInternal(geometry, options) {
1347
+ options = options || {};
1348
+ let size = options.size;
1349
+ if (!size) {
1350
+ size = this.getViewportSizeMinusPadding_();
1351
+ }
1352
+ const padding = options.padding !== void 0 ? options.padding : [0, 0, 0, 0];
1353
+ const nearest = options.nearest !== void 0 ? options.nearest : false;
1354
+ let minResolution;
1355
+ if (options.minResolution !== void 0) {
1356
+ minResolution = options.minResolution;
1357
+ } else if (options.maxZoom !== void 0) {
1358
+ minResolution = this.getResolutionForZoom(options.maxZoom);
1359
+ } else {
1360
+ minResolution = 0;
1361
+ }
1362
+ const rotatedExtent = this.rotatedExtentForGeometry(geometry);
1363
+ let resolution = this.getResolutionForExtentInternal(rotatedExtent, [
1364
+ size[0] - padding[1] - padding[3],
1365
+ size[1] - padding[0] - padding[2]
1366
+ ]);
1367
+ resolution = isNaN(resolution) ? minResolution : Math.max(resolution, minResolution);
1368
+ resolution = /** @type {number} */
1369
+ this.getConstrainedResolution(resolution, nearest ? 0 : 1);
1370
+ const rotation = this.getRotation();
1371
+ const sinAngle = Math.sin(rotation);
1372
+ const cosAngle = Math.cos(rotation);
1373
+ const centerRot = getCenter(rotatedExtent);
1374
+ centerRot[0] += (padding[1] - padding[3]) / 2 * resolution;
1375
+ centerRot[1] += (padding[0] - padding[2]) / 2 * resolution;
1376
+ const centerX = centerRot[0] * cosAngle - centerRot[1] * sinAngle;
1377
+ const centerY = centerRot[1] * cosAngle + centerRot[0] * sinAngle;
1378
+ const center = this.getConstrainedCenter([centerX, centerY], resolution);
1379
+ const callback = options.callback ? options.callback : VOID;
1380
+ if (options.duration !== void 0) {
1381
+ this.animateInternal(
1382
+ {
1383
+ resolution,
1384
+ center,
1385
+ duration: options.duration,
1386
+ easing: options.easing
1387
+ },
1388
+ callback
1389
+ );
1390
+ } else {
1391
+ this.targetResolution_ = resolution;
1392
+ this.targetCenter_ = center;
1393
+ this.applyTargetState_(false, true);
1394
+ animationCallback(callback, true);
1395
+ }
1396
+ }
1397
+ /**
1398
+ * Center on coordinate and view position.
1399
+ * @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
1400
+ * @param {import("./size.js").Size} size Box pixel size.
1401
+ * @param {import("./pixel.js").Pixel} position Position on the view to center on.
1402
+ * @api
1403
+ */
1404
+ centerOn(coordinate, size, position) {
1405
+ this.centerOnInternal(
1406
+ fromUserCoordinate(coordinate, this.getProjection()),
1407
+ size,
1408
+ position
1409
+ );
1410
+ }
1411
+ /**
1412
+ * @param {import("./coordinate.js").Coordinate} coordinate Coordinate.
1413
+ * @param {import("./size.js").Size} size Box pixel size.
1414
+ * @param {import("./pixel.js").Pixel} position Position on the view to center on.
1415
+ */
1416
+ centerOnInternal(coordinate, size, position) {
1417
+ this.setCenterInternal(
1418
+ calculateCenterOn(
1419
+ coordinate,
1420
+ size,
1421
+ position,
1422
+ /** @type {number} */
1423
+ this.getResolution(),
1424
+ this.getRotation()
1425
+ )
1426
+ );
1427
+ }
1428
+ /**
1429
+ * Calculates the shift between map and viewport center.
1430
+ * @param {import("./coordinate.js").Coordinate} center Center.
1431
+ * @param {number} resolution Resolution.
1432
+ * @param {number} rotation Rotation.
1433
+ * @param {import("./size.js").Size} size Size.
1434
+ * @return {Array<number>|undefined} Center shift.
1435
+ */
1436
+ calculateCenterShift(center, resolution, rotation, size) {
1437
+ let centerShift;
1438
+ const padding = this.padding_;
1439
+ if (padding && center) {
1440
+ const reducedSize = this.getViewportSizeMinusPadding_(-rotation);
1441
+ const shiftedCenter = calculateCenterOn(
1442
+ center,
1443
+ size,
1444
+ [reducedSize[0] / 2 + padding[3], reducedSize[1] / 2 + padding[0]],
1445
+ resolution,
1446
+ rotation
1447
+ );
1448
+ centerShift = [
1449
+ center[0] - shiftedCenter[0],
1450
+ center[1] - shiftedCenter[1]
1451
+ ];
1452
+ }
1453
+ return centerShift;
1454
+ }
1455
+ /**
1456
+ * @return {boolean} Is defined.
1457
+ */
1458
+ isDef() {
1459
+ return !!this.getCenterInternal() && this.getResolution() !== void 0;
1460
+ }
1461
+ /**
1462
+ * Adds relative coordinates to the center of the view. Any extent constraint will apply.
1463
+ * @param {import("./coordinate.js").Coordinate} deltaCoordinates Relative value to add.
1464
+ * @api
1465
+ */
1466
+ adjustCenter(deltaCoordinates) {
1467
+ const center = toUserCoordinate(
1468
+ /** @type {import("./coordinate.js").Coordinate} */
1469
+ this.targetCenter_,
1470
+ this.getProjection()
1471
+ );
1472
+ this.setCenter([
1473
+ center[0] + deltaCoordinates[0],
1474
+ center[1] + deltaCoordinates[1]
1475
+ ]);
1476
+ }
1477
+ /**
1478
+ * Adds relative coordinates to the center of the view. Any extent constraint will apply.
1479
+ * @param {import("./coordinate.js").Coordinate} deltaCoordinates Relative value to add.
1480
+ */
1481
+ adjustCenterInternal(deltaCoordinates) {
1482
+ const center = (
1483
+ /** @type {import("./coordinate.js").Coordinate} */
1484
+ this.targetCenter_
1485
+ );
1486
+ this.setCenterInternal([
1487
+ center[0] + deltaCoordinates[0],
1488
+ center[1] + deltaCoordinates[1]
1489
+ ]);
1490
+ }
1491
+ /**
1492
+ * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
1493
+ * constraint will apply.
1494
+ * @param {number} ratio The ratio to apply on the view resolution.
1495
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1496
+ * @api
1497
+ */
1498
+ adjustResolution(ratio, anchor) {
1499
+ anchor = anchor && fromUserCoordinate(anchor, this.getProjection());
1500
+ this.adjustResolutionInternal(ratio, anchor);
1501
+ }
1502
+ /**
1503
+ * Multiply the view resolution by a ratio, optionally using an anchor. Any resolution
1504
+ * constraint will apply.
1505
+ * @param {number} ratio The ratio to apply on the view resolution.
1506
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1507
+ */
1508
+ adjustResolutionInternal(ratio, anchor) {
1509
+ const isMoving = this.getAnimating() || this.getInteracting();
1510
+ const size = this.getViewportSize_(this.getRotation());
1511
+ const newResolution = (
1512
+ /** @type {Constraints} */
1513
+ this.constraints_.resolution(
1514
+ /** @type {number} */
1515
+ this.targetResolution_ * ratio,
1516
+ 0,
1517
+ size,
1518
+ isMoving
1519
+ )
1520
+ );
1521
+ if (anchor) {
1522
+ this.targetCenter_ = this.calculateCenterZoom(
1523
+ /** @type {number} */
1524
+ newResolution,
1525
+ anchor
1526
+ );
1527
+ }
1528
+ this.targetResolution_ = /** @type {number} */
1529
+ this.targetResolution_ * ratio;
1530
+ this.applyTargetState_();
1531
+ }
1532
+ /**
1533
+ * Adds a value to the view zoom level, optionally using an anchor. Any resolution
1534
+ * constraint will apply.
1535
+ * @param {number} delta Relative value to add to the zoom level.
1536
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1537
+ * @api
1538
+ */
1539
+ adjustZoom(delta, anchor) {
1540
+ this.adjustResolution(
1541
+ Math.pow(
1542
+ /** @type {number} */
1543
+ this.zoomFactor_,
1544
+ -delta
1545
+ ),
1546
+ anchor
1547
+ );
1548
+ }
1549
+ /**
1550
+ * Adds a value to the view rotation, optionally using an anchor. Any rotation
1551
+ * constraint will apply.
1552
+ * @param {number} delta Relative value to add to the zoom rotation, in radians.
1553
+ * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
1554
+ * @api
1555
+ */
1556
+ adjustRotation(delta, anchor) {
1557
+ if (anchor) {
1558
+ anchor = fromUserCoordinate(anchor, this.getProjection());
1559
+ }
1560
+ this.adjustRotationInternal(delta, anchor);
1561
+ }
1562
+ /**
1563
+ * @param {number} delta Relative value to add to the zoom rotation, in radians.
1564
+ * @param {import("./coordinate.js").Coordinate} [anchor] The rotation center.
1565
+ */
1566
+ adjustRotationInternal(delta, anchor) {
1567
+ const isMoving = this.getAnimating() || this.getInteracting();
1568
+ const newRotation = (
1569
+ /** @type {Constraints} */
1570
+ this.constraints_.rotation(
1571
+ /** @type {number} */
1572
+ this.targetRotation_ + delta,
1573
+ isMoving
1574
+ )
1575
+ );
1576
+ if (anchor) {
1577
+ this.targetCenter_ = this.calculateCenterRotate(
1578
+ /** @type {number} */
1579
+ newRotation,
1580
+ anchor
1581
+ );
1582
+ }
1583
+ this.targetRotation_ = /** @type {number} */
1584
+ this.targetRotation_ + delta;
1585
+ this.applyTargetState_();
1586
+ }
1587
+ /**
1588
+ * Set the center of the current view. Any extent constraint will apply.
1589
+ * @param {import("./coordinate.js").Coordinate|undefined} center The center of the view.
1590
+ * @observable
1591
+ * @api
1592
+ */
1593
+ setCenter(center) {
1594
+ this.setCenterInternal(
1595
+ center ? fromUserCoordinate(center, this.getProjection()) : center
1596
+ );
1597
+ }
1598
+ /**
1599
+ * Set the center using the view projection (not the user projection).
1600
+ * @param {import("./coordinate.js").Coordinate|null|undefined} center The center of the view.
1601
+ */
1602
+ setCenterInternal(center) {
1603
+ this.targetCenter_ = center;
1604
+ this.applyTargetState_();
1605
+ }
1606
+ /**
1607
+ * @param {import("./ViewHint.js").default} hint Hint.
1608
+ * @param {number} delta Delta.
1609
+ * @return {number} New value.
1610
+ */
1611
+ setHint(hint, delta) {
1612
+ this.hints_[hint] += delta;
1613
+ this.changed();
1614
+ return this.hints_[hint];
1615
+ }
1616
+ /**
1617
+ * Set the resolution for this view. Any resolution constraint will apply.
1618
+ * @param {number|undefined} resolution The resolution of the view.
1619
+ * @observable
1620
+ * @api
1621
+ */
1622
+ setResolution(resolution) {
1623
+ this.targetResolution_ = resolution;
1624
+ this.applyTargetState_();
1625
+ }
1626
+ /**
1627
+ * Set the rotation for this view. Any rotation constraint will apply.
1628
+ * @param {number} rotation The rotation of the view in radians.
1629
+ * @observable
1630
+ * @api
1631
+ */
1632
+ setRotation(rotation) {
1633
+ this.targetRotation_ = rotation;
1634
+ this.applyTargetState_();
1635
+ }
1636
+ /**
1637
+ * Zoom to a specific zoom level. Any resolution constrain will apply.
1638
+ * @param {number} zoom Zoom level.
1639
+ * @api
1640
+ */
1641
+ setZoom(zoom) {
1642
+ this.setResolution(this.getResolutionForZoom(zoom));
1643
+ }
1644
+ /**
1645
+ * Recompute rotation/resolution/center based on target values.
1646
+ * Note: we have to compute rotation first, then resolution and center considering that
1647
+ * parameters can influence one another in case a view extent constraint is present.
1648
+ * @param {boolean} [doNotCancelAnims] Do not cancel animations.
1649
+ * @param {boolean} [forceMoving] Apply constraints as if the view is moving.
1650
+ * @private
1651
+ */
1652
+ applyTargetState_(doNotCancelAnims, forceMoving) {
1653
+ const isMoving = this.getAnimating() || this.getInteracting() || forceMoving;
1654
+ const newRotation = (
1655
+ /** @type {Constraints} */
1656
+ this.constraints_.rotation(
1657
+ /** @type {number} */
1658
+ this.targetRotation_,
1659
+ isMoving
1660
+ )
1661
+ );
1662
+ const size = this.getViewportSize_(newRotation);
1663
+ const newResolution = (
1664
+ /** @type {Constraints} */
1665
+ this.constraints_.resolution(
1666
+ /** @type {number} */
1667
+ this.targetResolution_,
1668
+ 0,
1669
+ size,
1670
+ isMoving
1671
+ )
1672
+ );
1673
+ const newCenter = (
1674
+ /** @type {Constraints} */
1675
+ this.constraints_.center(
1676
+ /** @type {import("./coordinate.js").Coordinate|undefined} */
1677
+ this.targetCenter_,
1678
+ /** @type {number} */
1679
+ newResolution,
1680
+ size,
1681
+ isMoving,
1682
+ /** @type {import("./coordinate.js").Coordinate} */
1683
+ this.calculateCenterShift(
1684
+ /** @type {import("./coordinate.js").Coordinate} */
1685
+ this.targetCenter_,
1686
+ /** @type {number} */
1687
+ newResolution,
1688
+ /** @type {number} */
1689
+ newRotation,
1690
+ size
1691
+ )
1692
+ )
1693
+ );
1694
+ if (this.get(ViewProperty_default.ROTATION) !== newRotation) {
1695
+ this.set(ViewProperty_default.ROTATION, newRotation);
1696
+ }
1697
+ if (this.get(ViewProperty_default.RESOLUTION) !== newResolution) {
1698
+ this.set(ViewProperty_default.RESOLUTION, newResolution);
1699
+ this.set("zoom", this.getZoom(), true);
1700
+ }
1701
+ if (!newCenter || !this.get(ViewProperty_default.CENTER) || !equals(this.get(ViewProperty_default.CENTER), newCenter)) {
1702
+ this.set(ViewProperty_default.CENTER, newCenter);
1703
+ }
1704
+ if (this.getAnimating() && !doNotCancelAnims) {
1705
+ this.cancelAnimations();
1706
+ }
1707
+ this.cancelAnchor_ = void 0;
1708
+ }
1709
+ /**
1710
+ * If any constraints need to be applied, an animation will be triggered.
1711
+ * This is typically done on interaction end.
1712
+ * Note: calling this with a duration of 0 will apply the constrained values straight away,
1713
+ * without animation.
1714
+ * @param {number} [duration] The animation duration in ms.
1715
+ * @param {number} [resolutionDirection] Which direction to zoom.
1716
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1717
+ */
1718
+ resolveConstraints(duration, resolutionDirection, anchor) {
1719
+ duration = duration !== void 0 ? duration : 200;
1720
+ const direction = resolutionDirection || 0;
1721
+ const newRotation = (
1722
+ /** @type {Constraints} */
1723
+ this.constraints_.rotation(
1724
+ /** @type {number} */
1725
+ this.targetRotation_
1726
+ )
1727
+ );
1728
+ const size = this.getViewportSize_(newRotation);
1729
+ const newResolution = (
1730
+ /** @type {Constraints} */
1731
+ this.constraints_.resolution(
1732
+ /** @type {number} */
1733
+ this.targetResolution_,
1734
+ direction,
1735
+ size
1736
+ )
1737
+ );
1738
+ const newCenter = (
1739
+ /** @type {Constraints} */
1740
+ this.constraints_.center(
1741
+ /** @type {import("./coordinate.js").Coordinate|undefined} */
1742
+ this.targetCenter_,
1743
+ /** @type {number} */
1744
+ newResolution,
1745
+ size,
1746
+ false,
1747
+ /** @type {import("./coordinate.js").Coordinate} */
1748
+ this.calculateCenterShift(
1749
+ /** @type {import("./coordinate.js").Coordinate} */
1750
+ this.targetCenter_,
1751
+ /** @type {number} */
1752
+ newResolution,
1753
+ /** @type {number} */
1754
+ newRotation,
1755
+ size
1756
+ )
1757
+ )
1758
+ );
1759
+ if (duration === 0 && !this.cancelAnchor_) {
1760
+ this.targetResolution_ = newResolution;
1761
+ this.targetRotation_ = newRotation;
1762
+ this.targetCenter_ = newCenter;
1763
+ this.applyTargetState_();
1764
+ return;
1765
+ }
1766
+ anchor = anchor || (duration === 0 ? this.cancelAnchor_ : void 0);
1767
+ this.cancelAnchor_ = void 0;
1768
+ if (this.getResolution() !== newResolution || this.getRotation() !== newRotation || !this.getCenterInternal() || !equals(
1769
+ /** @type {import("./coordinate.js").Coordinate} */
1770
+ this.getCenterInternal(),
1771
+ /** @type {import("./coordinate.js").Coordinate} */
1772
+ newCenter
1773
+ )) {
1774
+ if (this.getAnimating()) {
1775
+ this.cancelAnimations();
1776
+ }
1777
+ this.animateInternal({
1778
+ rotation: newRotation,
1779
+ center: newCenter,
1780
+ resolution: newResolution,
1781
+ duration,
1782
+ easing: easeOut,
1783
+ anchor
1784
+ });
1785
+ }
1786
+ }
1787
+ /**
1788
+ * Notify the View that an interaction has started.
1789
+ * The view state will be resolved to a stable one if needed
1790
+ * (depending on its constraints).
1791
+ * @api
1792
+ */
1793
+ beginInteraction() {
1794
+ this.resolveConstraints(0);
1795
+ this.setHint(ViewHint_default.INTERACTING, 1);
1796
+ }
1797
+ /**
1798
+ * Notify the View that an interaction has ended. The view state will be resolved
1799
+ * to a stable one if needed (depending on its constraints).
1800
+ * @param {number} [duration] Animation duration in ms.
1801
+ * @param {number} [resolutionDirection] Which direction to zoom.
1802
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1803
+ * @api
1804
+ */
1805
+ endInteraction(duration, resolutionDirection, anchor) {
1806
+ anchor = anchor && fromUserCoordinate(anchor, this.getProjection());
1807
+ this.endInteractionInternal(duration, resolutionDirection, anchor);
1808
+ }
1809
+ /**
1810
+ * Notify the View that an interaction has ended. The view state will be resolved
1811
+ * to a stable one if needed (depending on its constraints).
1812
+ * @param {number} [duration] Animation duration in ms.
1813
+ * @param {number} [resolutionDirection] Which direction to zoom.
1814
+ * @param {import("./coordinate.js").Coordinate} [anchor] The origin of the transformation.
1815
+ */
1816
+ endInteractionInternal(duration, resolutionDirection, anchor) {
1817
+ if (!this.getInteracting()) {
1818
+ return;
1819
+ }
1820
+ this.setHint(ViewHint_default.INTERACTING, -1);
1821
+ this.resolveConstraints(duration, resolutionDirection, anchor);
1822
+ }
1823
+ /**
1824
+ * Get a valid position for the view center according to the current constraints.
1825
+ * @param {import("./coordinate.js").Coordinate|undefined} targetCenter Target center position.
1826
+ * @param {number} [targetResolution] Target resolution. If not supplied, the current one will be used.
1827
+ * This is useful to guess a valid center position at a different zoom level.
1828
+ * @return {import("./coordinate.js").Coordinate|undefined} Valid center position.
1829
+ */
1830
+ getConstrainedCenter(targetCenter, targetResolution) {
1831
+ const size = this.getViewportSize_(this.getRotation());
1832
+ return (
1833
+ /** @type {Constraints} */
1834
+ this.constraints_.center(
1835
+ targetCenter,
1836
+ targetResolution || /** @type {number} */
1837
+ this.getResolution(),
1838
+ size
1839
+ )
1840
+ );
1841
+ }
1842
+ /**
1843
+ * Get a valid zoom level according to the current view constraints.
1844
+ * @param {number|undefined} targetZoom Target zoom.
1845
+ * @param {number} [direction] Indicate which resolution should be used
1846
+ * by a renderer if the view resolution does not match any resolution of the tile source.
1847
+ * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1848
+ * will be used. If -1, the nearest higher resolution will be used.
1849
+ * @return {number|undefined} Valid zoom level.
1850
+ */
1851
+ getConstrainedZoom(targetZoom, direction) {
1852
+ const targetRes = this.getResolutionForZoom(
1853
+ /** @type {number} */
1854
+ targetZoom
1855
+ );
1856
+ return this.getZoomForResolution(
1857
+ /** @type {number} */
1858
+ this.getConstrainedResolution(targetRes, direction)
1859
+ );
1860
+ }
1861
+ /**
1862
+ * Get a valid resolution according to the current view constraints.
1863
+ * @param {number|undefined} targetResolution Target resolution.
1864
+ * @param {number} [direction] Indicate which resolution should be used
1865
+ * by a renderer if the view resolution does not match any resolution of the tile source.
1866
+ * If 0, the nearest resolution will be used. If 1, the nearest lower resolution
1867
+ * will be used. If -1, the nearest higher resolution will be used.
1868
+ * @return {number|undefined} Valid resolution.
1869
+ */
1870
+ getConstrainedResolution(targetResolution, direction) {
1871
+ direction = direction || 0;
1872
+ const size = this.getViewportSize_(this.getRotation());
1873
+ return (
1874
+ /** @type {Constraints} */
1875
+ this.constraints_.resolution(
1876
+ targetResolution,
1877
+ direction,
1878
+ size
1879
+ )
1880
+ );
1881
+ }
1882
+ };
1883
+ function animationCallback(callback, returnValue) {
1884
+ setTimeout(function() {
1885
+ callback(returnValue);
1886
+ }, 0);
1887
+ }
1888
+ function createCenterConstraint(options) {
1889
+ if (options.extent !== void 0) {
1890
+ const smooth = options.smoothExtentConstraint !== void 0 ? options.smoothExtentConstraint : true;
1891
+ return createExtent(
1892
+ options.extent,
1893
+ /** @type {boolean} */
1894
+ options.constrainOnlyCenter,
1895
+ smooth
1896
+ );
1897
+ }
1898
+ const projection = (
1899
+ /** @type {import("./proj/Projection.js").default} */
1900
+ createProjection(options.projection, "EPSG:3857")
1901
+ );
1902
+ if (options.multiWorld !== true && projection.isGlobal()) {
1903
+ const extent = projection.getExtent().slice();
1904
+ extent[0] = -Infinity;
1905
+ extent[2] = Infinity;
1906
+ return createExtent(extent, false, false);
1907
+ }
1908
+ return none;
1909
+ }
1910
+ function createResolutionConstraint(options) {
1911
+ let resolutionConstraint;
1912
+ let maxResolution;
1913
+ let minResolution;
1914
+ const defaultMaxZoom = 28;
1915
+ const defaultZoomFactor = 2;
1916
+ let minZoom = options.minZoom !== void 0 ? options.minZoom : DEFAULT_MIN_ZOOM;
1917
+ let maxZoom = options.maxZoom !== void 0 ? options.maxZoom : defaultMaxZoom;
1918
+ const zoomFactor = options.zoomFactor !== void 0 ? options.zoomFactor : defaultZoomFactor;
1919
+ const multiWorld = options.multiWorld !== void 0 ? options.multiWorld : false;
1920
+ const smooth = options.smoothResolutionConstraint !== void 0 ? options.smoothResolutionConstraint : true;
1921
+ const showFullExtent = options.showFullExtent !== void 0 ? options.showFullExtent : false;
1922
+ const projection = (
1923
+ /** @type {import("./proj/Projection.js").default} */
1924
+ createProjection(options.projection, "EPSG:3857")
1925
+ );
1926
+ const projExtent = projection.getExtent();
1927
+ let constrainOnlyCenter = options.constrainOnlyCenter;
1928
+ let extent = options.extent;
1929
+ if (!multiWorld && !extent && projection.isGlobal()) {
1930
+ constrainOnlyCenter = false;
1931
+ extent = projExtent;
1932
+ }
1933
+ if (options.resolutions !== void 0) {
1934
+ const resolutions = options.resolutions;
1935
+ maxResolution = resolutions[minZoom];
1936
+ minResolution = resolutions[maxZoom] !== void 0 ? resolutions[maxZoom] : resolutions[resolutions.length - 1];
1937
+ if (options.constrainResolution) {
1938
+ resolutionConstraint = createSnapToResolutions(
1939
+ resolutions,
1940
+ smooth,
1941
+ /** @type {import("./extent.js").Extent|undefined} */
1942
+ !constrainOnlyCenter && extent,
1943
+ showFullExtent
1944
+ );
1945
+ } else {
1946
+ resolutionConstraint = createMinMaxResolution(
1947
+ maxResolution,
1948
+ minResolution,
1949
+ smooth,
1950
+ /** @type {import("./extent.js").Extent|undefined} */
1951
+ !constrainOnlyCenter && extent,
1952
+ showFullExtent
1953
+ );
1954
+ }
1955
+ } else {
1956
+ const size = !projExtent ? (
1957
+ // use an extent that can fit the whole world if need be
1958
+ 360 * /** @type {number} */
1959
+ METERS_PER_UNIT.degrees / /** @type {number} */
1960
+ projection.getMetersPerUnit()
1961
+ ) : Math.max(getWidth(projExtent), getHeight(projExtent));
1962
+ const defaultMaxResolution = size / DEFAULT_TILE_SIZE / Math.pow(defaultZoomFactor, DEFAULT_MIN_ZOOM);
1963
+ const defaultMinResolution = defaultMaxResolution / Math.pow(defaultZoomFactor, defaultMaxZoom - DEFAULT_MIN_ZOOM);
1964
+ maxResolution = options.maxResolution;
1965
+ if (maxResolution !== void 0) {
1966
+ minZoom = 0;
1967
+ } else {
1968
+ maxResolution = defaultMaxResolution / Math.pow(zoomFactor, minZoom);
1969
+ }
1970
+ minResolution = options.minResolution;
1971
+ if (minResolution === void 0) {
1972
+ if (options.maxZoom !== void 0) {
1973
+ if (options.maxResolution !== void 0) {
1974
+ minResolution = maxResolution / Math.pow(zoomFactor, maxZoom);
1975
+ } else {
1976
+ minResolution = defaultMaxResolution / Math.pow(zoomFactor, maxZoom);
1977
+ }
1978
+ } else {
1979
+ minResolution = defaultMinResolution;
1980
+ }
1981
+ }
1982
+ maxZoom = minZoom + Math.floor(
1983
+ Math.log(maxResolution / minResolution) / Math.log(zoomFactor)
1984
+ );
1985
+ minResolution = maxResolution / Math.pow(zoomFactor, maxZoom - minZoom);
1986
+ if (options.constrainResolution) {
1987
+ resolutionConstraint = createSnapToPower(
1988
+ zoomFactor,
1989
+ maxResolution,
1990
+ minResolution,
1991
+ smooth,
1992
+ /** @type {import("./extent.js").Extent|undefined} */
1993
+ !constrainOnlyCenter && extent,
1994
+ showFullExtent
1995
+ );
1996
+ } else {
1997
+ resolutionConstraint = createMinMaxResolution(
1998
+ maxResolution,
1999
+ minResolution,
2000
+ smooth,
2001
+ /** @type {import("./extent.js").Extent|undefined} */
2002
+ !constrainOnlyCenter && extent,
2003
+ showFullExtent
2004
+ );
2005
+ }
2006
+ }
2007
+ return {
2008
+ constraint: resolutionConstraint,
2009
+ maxResolution,
2010
+ minResolution,
2011
+ minZoom,
2012
+ zoomFactor
2013
+ };
2014
+ }
2015
+ function createRotationConstraint(options) {
2016
+ const enableRotation = options.enableRotation !== void 0 ? options.enableRotation : true;
2017
+ if (enableRotation) {
2018
+ const constrainRotation = options.constrainRotation;
2019
+ if (constrainRotation === void 0 || constrainRotation === true) {
2020
+ return createSnapToZero();
2021
+ }
2022
+ if (constrainRotation === false) {
2023
+ return none2;
2024
+ }
2025
+ if (typeof constrainRotation === "number") {
2026
+ return createSnapToN(constrainRotation);
2027
+ }
2028
+ return none2;
2029
+ }
2030
+ return disable;
2031
+ }
2032
+ function isNoopAnimation(animation) {
2033
+ if (animation.sourceCenter && animation.targetCenter) {
2034
+ if (!equals(animation.sourceCenter, animation.targetCenter)) {
2035
+ return false;
2036
+ }
2037
+ }
2038
+ if (animation.sourceResolution !== animation.targetResolution) {
2039
+ return false;
2040
+ }
2041
+ if (animation.sourceRotation !== animation.targetRotation) {
2042
+ return false;
2043
+ }
2044
+ return true;
2045
+ }
2046
+ function calculateCenterOn(coordinate, size, position, resolution, rotation) {
2047
+ const cosAngle = Math.cos(-rotation);
2048
+ let sinAngle = Math.sin(-rotation);
2049
+ let rotX = coordinate[0] * cosAngle - coordinate[1] * sinAngle;
2050
+ let rotY = coordinate[1] * cosAngle + coordinate[0] * sinAngle;
2051
+ rotX += (size[0] / 2 - position[0]) * resolution;
2052
+ rotY += (position[1] - size[1] / 2) * resolution;
2053
+ sinAngle = -sinAngle;
2054
+ const centerX = rotX * cosAngle - rotY * sinAngle;
2055
+ const centerY = rotY * cosAngle + rotX * sinAngle;
2056
+ return [centerX, centerY];
2057
+ }
2058
+ var View_default = View;
2059
+
2060
+ // node_modules/ol/render/EventType.js
2061
+ init_dirname();
2062
+ init_buffer();
2063
+ init_process();
2064
+ var EventType_default2 = {
2065
+ /**
2066
+ * Triggered before a layer is rendered.
2067
+ * @event module:ol/render/Event~RenderEvent#prerender
2068
+ * @api
2069
+ */
2070
+ PRERENDER: "prerender",
2071
+ /**
2072
+ * Triggered after a layer is rendered.
2073
+ * @event module:ol/render/Event~RenderEvent#postrender
2074
+ * @api
2075
+ */
2076
+ POSTRENDER: "postrender",
2077
+ /**
2078
+ * Triggered before layers are composed. When dispatched by the map, the event object will not have
2079
+ * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only
2080
+ * WebGL layers currently dispatch this event.
2081
+ * @event module:ol/render/Event~RenderEvent#precompose
2082
+ * @api
2083
+ */
2084
+ PRECOMPOSE: "precompose",
2085
+ /**
2086
+ * Triggered after layers are composed. When dispatched by the map, the event object will not have
2087
+ * a `context` set. When dispatched by a layer, the event object will have a `context` set. Only
2088
+ * WebGL layers currently dispatch this event.
2089
+ * @event module:ol/render/Event~RenderEvent#postcompose
2090
+ * @api
2091
+ */
2092
+ POSTCOMPOSE: "postcompose",
2093
+ /**
2094
+ * Triggered when rendering is complete, i.e. all sources and tiles have
2095
+ * finished loading for the current viewport, and all tiles are faded in.
2096
+ * The event object will not have a `context` set.
2097
+ * @event module:ol/render/Event~RenderEvent#rendercomplete
2098
+ * @api
2099
+ */
2100
+ RENDERCOMPLETE: "rendercomplete"
2101
+ };
2102
+
2103
+ // node_modules/ol/layer/Property.js
2104
+ init_dirname();
2105
+ init_buffer();
2106
+ init_process();
2107
+ var Property_default = {
2108
+ OPACITY: "opacity",
2109
+ VISIBLE: "visible",
2110
+ EXTENT: "extent",
2111
+ Z_INDEX: "zIndex",
2112
+ MAX_RESOLUTION: "maxResolution",
2113
+ MIN_RESOLUTION: "minResolution",
2114
+ MAX_ZOOM: "maxZoom",
2115
+ MIN_ZOOM: "minZoom",
2116
+ SOURCE: "source",
2117
+ MAP: "map"
2118
+ };
2119
+
2120
+ // node_modules/ol/layer/Layer.js
2121
+ init_dirname();
2122
+ init_buffer();
2123
+ init_process();
2124
+
2125
+ // node_modules/ol/layer/Base.js
2126
+ init_dirname();
2127
+ init_buffer();
2128
+ init_process();
2129
+ var BaseLayer = class extends Object_default {
2130
+ /**
2131
+ * @param {Options<NoInfer<Properties>>} options Layer options.
2132
+ */
2133
+ constructor(options) {
2134
+ super();
2135
+ this.on;
2136
+ this.once;
2137
+ this.un;
2138
+ this.background_ = options.background;
2139
+ const properties = Object.assign({}, options);
2140
+ if (typeof options.properties === "object") {
2141
+ delete properties.properties;
2142
+ Object.assign(properties, options.properties);
2143
+ }
2144
+ properties[Property_default.OPACITY] = options.opacity !== void 0 ? options.opacity : 1;
2145
+ assert(
2146
+ typeof properties[Property_default.OPACITY] === "number",
2147
+ "Layer opacity must be a number"
2148
+ );
2149
+ properties[Property_default.VISIBLE] = options.visible !== void 0 ? options.visible : true;
2150
+ properties[Property_default.Z_INDEX] = options.zIndex;
2151
+ properties[Property_default.MAX_RESOLUTION] = options.maxResolution !== void 0 ? options.maxResolution : Infinity;
2152
+ properties[Property_default.MIN_RESOLUTION] = options.minResolution !== void 0 ? options.minResolution : 0;
2153
+ properties[Property_default.MIN_ZOOM] = options.minZoom !== void 0 ? options.minZoom : -Infinity;
2154
+ properties[Property_default.MAX_ZOOM] = options.maxZoom !== void 0 ? options.maxZoom : Infinity;
2155
+ this.className_ = properties.className !== void 0 ? properties.className : "ol-layer";
2156
+ delete properties.className;
2157
+ this.setProperties(properties);
2158
+ this.state_ = null;
2159
+ }
2160
+ /**
2161
+ * Get the background for this layer.
2162
+ * @return {BackgroundColor|false|undefined} Layer background.
2163
+ */
2164
+ getBackground() {
2165
+ return this.background_;
2166
+ }
2167
+ /**
2168
+ * @return {string} CSS class name.
2169
+ */
2170
+ getClassName() {
2171
+ return this.className_;
2172
+ }
2173
+ /**
2174
+ * This method is not meant to be called by layers or layer renderers because the state
2175
+ * is incorrect if the layer is included in a layer group.
2176
+ *
2177
+ * @param {boolean} [managed] Layer is managed.
2178
+ * @return {import("./Layer.js").State} Layer state.
2179
+ */
2180
+ getLayerState(managed) {
2181
+ const state = this.state_ || /** @type {?} */
2182
+ {
2183
+ layer: this,
2184
+ managed: managed === void 0 ? true : managed
2185
+ };
2186
+ const zIndex = this.getZIndex();
2187
+ state.opacity = clamp(Math.round(this.getOpacity() * 100) / 100, 0, 1);
2188
+ state.visible = this.getVisible();
2189
+ state.extent = this.getExtent();
2190
+ state.zIndex = zIndex === void 0 && !state.managed ? Infinity : zIndex;
2191
+ state.maxResolution = this.getMaxResolution();
2192
+ state.minResolution = Math.max(this.getMinResolution(), 0);
2193
+ state.minZoom = this.getMinZoom();
2194
+ state.maxZoom = this.getMaxZoom();
2195
+ this.state_ = state;
2196
+ return state;
2197
+ }
2198
+ /**
2199
+ * @abstract
2200
+ * @param {Array<import("./Layer.js").default>} [array] Array of layers (to be
2201
+ * modified in place).
2202
+ * @return {Array<import("./Layer.js").default>} Array of layers.
2203
+ */
2204
+ getLayersArray(array) {
2205
+ return abstract();
2206
+ }
2207
+ /**
2208
+ * @abstract
2209
+ * @param {Array<import("./Layer.js").State>} [states] Optional list of layer
2210
+ * states (to be modified in place).
2211
+ * @return {Array<import("./Layer.js").State>} List of layer states.
2212
+ */
2213
+ getLayerStatesArray(states) {
2214
+ return abstract();
2215
+ }
2216
+ /**
2217
+ * Return the {@link module:ol/extent~Extent extent} of the layer or `undefined` if it
2218
+ * will be visible regardless of extent.
2219
+ * @return {import("../extent.js").Extent|undefined} The layer extent.
2220
+ * @observable
2221
+ * @api
2222
+ */
2223
+ getExtent() {
2224
+ return (
2225
+ /** @type {import("../extent.js").Extent|undefined} */
2226
+ this.get(Property_default.EXTENT)
2227
+ );
2228
+ }
2229
+ /**
2230
+ * Return the maximum resolution of the layer. Returns Infinity if
2231
+ * the layer has no maximum resolution set.
2232
+ * @return {number} The maximum resolution of the layer.
2233
+ * @observable
2234
+ * @api
2235
+ */
2236
+ getMaxResolution() {
2237
+ return (
2238
+ /** @type {number} */
2239
+ this.get(Property_default.MAX_RESOLUTION)
2240
+ );
2241
+ }
2242
+ /**
2243
+ * Return the minimum resolution of the layer. Returns 0 if
2244
+ * the layer has no minimum resolution set.
2245
+ * @return {number} The minimum resolution of the layer.
2246
+ * @observable
2247
+ * @api
2248
+ */
2249
+ getMinResolution() {
2250
+ return (
2251
+ /** @type {number} */
2252
+ this.get(Property_default.MIN_RESOLUTION)
2253
+ );
2254
+ }
2255
+ /**
2256
+ * Return the minimum zoom level of the layer. Returns -Infinity if
2257
+ * the layer has no minimum zoom set.
2258
+ * @return {number} The minimum zoom level of the layer.
2259
+ * @observable
2260
+ * @api
2261
+ */
2262
+ getMinZoom() {
2263
+ return (
2264
+ /** @type {number} */
2265
+ this.get(Property_default.MIN_ZOOM)
2266
+ );
2267
+ }
2268
+ /**
2269
+ * Return the maximum zoom level of the layer. Returns Infinity if
2270
+ * the layer has no maximum zoom set.
2271
+ * @return {number} The maximum zoom level of the layer.
2272
+ * @observable
2273
+ * @api
2274
+ */
2275
+ getMaxZoom() {
2276
+ return (
2277
+ /** @type {number} */
2278
+ this.get(Property_default.MAX_ZOOM)
2279
+ );
2280
+ }
2281
+ /**
2282
+ * Return the opacity of the layer (between 0 and 1).
2283
+ * @return {number} The opacity of the layer.
2284
+ * @observable
2285
+ * @api
2286
+ */
2287
+ getOpacity() {
2288
+ return (
2289
+ /** @type {number} */
2290
+ this.get(Property_default.OPACITY)
2291
+ );
2292
+ }
2293
+ /**
2294
+ * @abstract
2295
+ * @return {import("../source/Source.js").State} Source state.
2296
+ */
2297
+ getSourceState() {
2298
+ return abstract();
2299
+ }
2300
+ /**
2301
+ * Return the value of this layer's `visible` property. To find out whether the layer
2302
+ * is visible on a map, use `isVisible()` instead.
2303
+ * @return {boolean} The value of the `visible` property of the layer.
2304
+ * @observable
2305
+ * @api
2306
+ */
2307
+ getVisible() {
2308
+ return (
2309
+ /** @type {boolean} */
2310
+ this.get(Property_default.VISIBLE)
2311
+ );
2312
+ }
2313
+ /**
2314
+ * Return the Z-index of the layer, which is used to order layers before
2315
+ * rendering. Returns undefined if the layer is unmanaged.
2316
+ * @return {number|undefined} The Z-index of the layer.
2317
+ * @observable
2318
+ * @api
2319
+ */
2320
+ getZIndex() {
2321
+ return (
2322
+ /** @type {number|undefined} */
2323
+ this.get(Property_default.Z_INDEX)
2324
+ );
2325
+ }
2326
+ /**
2327
+ * Sets the background color.
2328
+ * @param {BackgroundColor|undefined} [background] Background color.
2329
+ */
2330
+ setBackground(background) {
2331
+ this.background_ = background;
2332
+ this.changed();
2333
+ }
2334
+ /**
2335
+ * Set the extent at which the layer is visible. If `undefined`, the layer
2336
+ * will be visible at all extents.
2337
+ * @param {import("../extent.js").Extent|undefined} extent The extent of the layer.
2338
+ * @observable
2339
+ * @api
2340
+ */
2341
+ setExtent(extent) {
2342
+ this.set(Property_default.EXTENT, extent);
2343
+ }
2344
+ /**
2345
+ * Set the maximum resolution at which the layer is visible.
2346
+ * @param {number} maxResolution The maximum resolution of the layer.
2347
+ * @observable
2348
+ * @api
2349
+ */
2350
+ setMaxResolution(maxResolution) {
2351
+ this.set(Property_default.MAX_RESOLUTION, maxResolution);
2352
+ }
2353
+ /**
2354
+ * Set the minimum resolution at which the layer is visible.
2355
+ * @param {number} minResolution The minimum resolution of the layer.
2356
+ * @observable
2357
+ * @api
2358
+ */
2359
+ setMinResolution(minResolution) {
2360
+ this.set(Property_default.MIN_RESOLUTION, minResolution);
2361
+ }
2362
+ /**
2363
+ * Set the maximum zoom (exclusive) at which the layer is visible.
2364
+ * Note that the zoom levels for layer visibility are based on the
2365
+ * view zoom level, which may be different from a tile source zoom level.
2366
+ * @param {number} maxZoom The maximum zoom of the layer.
2367
+ * @observable
2368
+ * @api
2369
+ */
2370
+ setMaxZoom(maxZoom) {
2371
+ this.set(Property_default.MAX_ZOOM, maxZoom);
2372
+ }
2373
+ /**
2374
+ * Set the minimum zoom (inclusive) at which the layer is visible.
2375
+ * Note that the zoom levels for layer visibility are based on the
2376
+ * view zoom level, which may be different from a tile source zoom level.
2377
+ * @param {number} minZoom The minimum zoom of the layer.
2378
+ * @observable
2379
+ * @api
2380
+ */
2381
+ setMinZoom(minZoom) {
2382
+ this.set(Property_default.MIN_ZOOM, minZoom);
2383
+ }
2384
+ /**
2385
+ * Set the opacity of the layer, allowed values range from 0 to 1.
2386
+ * @param {number} opacity The opacity of the layer.
2387
+ * @observable
2388
+ * @api
2389
+ */
2390
+ setOpacity(opacity) {
2391
+ assert(typeof opacity === "number", "Layer opacity must be a number");
2392
+ this.set(Property_default.OPACITY, opacity);
2393
+ }
2394
+ /**
2395
+ * Set the visibility of the layer (`true` or `false`).
2396
+ * @param {boolean} visible The visibility of the layer.
2397
+ * @observable
2398
+ * @api
2399
+ */
2400
+ setVisible(visible) {
2401
+ this.set(Property_default.VISIBLE, visible);
2402
+ }
2403
+ /**
2404
+ * Set Z-index of the layer, which is used to order layers before rendering.
2405
+ * The default Z-index is 0.
2406
+ * @param {number} zindex The z-index of the layer.
2407
+ * @observable
2408
+ * @api
2409
+ */
2410
+ setZIndex(zindex) {
2411
+ this.set(Property_default.Z_INDEX, zindex);
2412
+ }
2413
+ /**
2414
+ * Clean up.
2415
+ * @override
2416
+ */
2417
+ disposeInternal() {
2418
+ if (this.state_) {
2419
+ this.state_.layer = /** @type {?} */
2420
+ null;
2421
+ this.state_ = null;
2422
+ }
2423
+ super.disposeInternal();
2424
+ }
2425
+ };
2426
+ var Base_default = BaseLayer;
2427
+
2428
+ // node_modules/ol/layer/Layer.js
2429
+ var Layer = class extends Base_default {
2430
+ /**
2431
+ * @param {Options<SourceType, NoInfer<Properties>>} options Layer options.
2432
+ */
2433
+ constructor(options) {
2434
+ const baseOptions = Object.assign({}, options);
2435
+ delete baseOptions.source;
2436
+ super(baseOptions);
2437
+ this.on;
2438
+ this.once;
2439
+ this.un;
2440
+ this.mapPrecomposeKey_ = null;
2441
+ this.mapRenderKey_ = null;
2442
+ this.sourceChangeKey_ = null;
2443
+ this.renderer_ = null;
2444
+ this.sourceReady_ = false;
2445
+ this.rendered = false;
2446
+ if (options.render) {
2447
+ this.render = options.render;
2448
+ }
2449
+ if (options.map) {
2450
+ this.setMap(options.map);
2451
+ }
2452
+ this.addChangeListener(
2453
+ Property_default.SOURCE,
2454
+ this.handleSourcePropertyChange_
2455
+ );
2456
+ const source = options.source ? (
2457
+ /** @type {SourceType} */
2458
+ options.source
2459
+ ) : null;
2460
+ this.setSource(source);
2461
+ }
2462
+ /**
2463
+ * @param {Array<import("./Layer.js").default>} [array] Array of layers (to be modified in place).
2464
+ * @return {Array<import("./Layer.js").default>} Array of layers.
2465
+ * @override
2466
+ */
2467
+ getLayersArray(array) {
2468
+ array = array ? array : [];
2469
+ array.push(this);
2470
+ return array;
2471
+ }
2472
+ /**
2473
+ * @param {Array<import("./Layer.js").State>} [states] Optional list of layer states (to be modified in place).
2474
+ * @return {Array<import("./Layer.js").State>} List of layer states.
2475
+ * @override
2476
+ */
2477
+ getLayerStatesArray(states) {
2478
+ states = states ? states : [];
2479
+ states.push(this.getLayerState());
2480
+ return states;
2481
+ }
2482
+ /**
2483
+ * Get the layer source.
2484
+ * @return {SourceType|null} The layer source (or `null` if not yet set).
2485
+ * @observable
2486
+ * @api
2487
+ */
2488
+ getSource() {
2489
+ return (
2490
+ /** @type {SourceType} */
2491
+ this.get(Property_default.SOURCE) || null
2492
+ );
2493
+ }
2494
+ /**
2495
+ * @return {SourceType|null} The source being rendered.
2496
+ */
2497
+ getRenderSource() {
2498
+ return this.getSource();
2499
+ }
2500
+ /**
2501
+ * @return {import("../source/Source.js").State} Source state.
2502
+ * @override
2503
+ */
2504
+ getSourceState() {
2505
+ const source = this.getSource();
2506
+ return !source ? "undefined" : source.getState();
2507
+ }
2508
+ /**
2509
+ * @private
2510
+ */
2511
+ handleSourceChange_() {
2512
+ this.changed();
2513
+ const source = this.getSource();
2514
+ if (!source || this.sourceReady_ || source.getState() !== "ready") {
2515
+ return;
2516
+ }
2517
+ this.sourceReady_ = true;
2518
+ this.dispatchEvent("sourceready");
2519
+ }
2520
+ /**
2521
+ * @private
2522
+ */
2523
+ handleSourcePropertyChange_() {
2524
+ if (this.sourceChangeKey_) {
2525
+ unlistenByKey(this.sourceChangeKey_);
2526
+ this.sourceChangeKey_ = null;
2527
+ }
2528
+ this.sourceReady_ = false;
2529
+ const source = this.getSource();
2530
+ if (source) {
2531
+ this.sourceChangeKey_ = listen(
2532
+ source,
2533
+ EventType_default.CHANGE,
2534
+ this.handleSourceChange_,
2535
+ this
2536
+ );
2537
+ if (source.getState() === "ready") {
2538
+ this.sourceReady_ = true;
2539
+ setTimeout(() => {
2540
+ this.dispatchEvent("sourceready");
2541
+ }, 0);
2542
+ }
2543
+ }
2544
+ this.changed();
2545
+ }
2546
+ /**
2547
+ * @param {import("../pixel.js").Pixel} pixel Pixel.
2548
+ * @return {Promise<Array<import("../Feature.js").FeatureLike>>} Promise that resolves with
2549
+ * an array of features.
2550
+ */
2551
+ getFeatures(pixel) {
2552
+ if (!this.renderer_) {
2553
+ return Promise.resolve([]);
2554
+ }
2555
+ return this.renderer_.getFeatures(pixel);
2556
+ }
2557
+ /**
2558
+ * @param {import("../pixel.js").Pixel} pixel Pixel.
2559
+ * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.
2560
+ */
2561
+ getData(pixel) {
2562
+ if (!this.renderer_ || !this.rendered) {
2563
+ return null;
2564
+ }
2565
+ return this.renderer_.getData(pixel);
2566
+ }
2567
+ /**
2568
+ * The layer is visible on the map view, i.e. within its min/max resolution or zoom and
2569
+ * extent, not set to `visible: false`, and not inside a layer group that is set
2570
+ * to `visible: false`.
2571
+ * @param {View|import("../View.js").ViewStateLayerStateExtent} [view] View or {@link import("../Map.js").FrameState}.
2572
+ * Only required when the layer is not added to a map.
2573
+ * @return {boolean} The layer is visible in the map view.
2574
+ * @api
2575
+ */
2576
+ isVisible(view) {
2577
+ let frameState;
2578
+ const map = this.getMapInternal();
2579
+ if (!view && map) {
2580
+ view = map.getView();
2581
+ }
2582
+ if (view instanceof View_default) {
2583
+ frameState = {
2584
+ viewState: view.getState(),
2585
+ extent: view.calculateExtent()
2586
+ };
2587
+ } else {
2588
+ frameState = view;
2589
+ }
2590
+ const state = (
2591
+ /** @type {import("../View.js").ViewStateLayerStateExtent} */
2592
+ frameState
2593
+ );
2594
+ if (!state.layerStatesArray && map) {
2595
+ state.layerStatesArray = map.getLayerGroup().getLayerStatesArray();
2596
+ }
2597
+ let layerState;
2598
+ if (state.layerStatesArray) {
2599
+ layerState = state.layerStatesArray.find(
2600
+ (layerState2) => layerState2.layer === this
2601
+ );
2602
+ if (!layerState) {
2603
+ return false;
2604
+ }
2605
+ } else {
2606
+ layerState = this.getLayerState();
2607
+ }
2608
+ const layerExtent = this.getExtent();
2609
+ return inView(layerState, state.viewState) && (!layerExtent || intersects(layerExtent, state.extent));
2610
+ }
2611
+ /**
2612
+ * Get the attributions of the source of this layer for the given view.
2613
+ * @param {View|import("../View.js").ViewStateLayerStateExtent} [view] View or {@link import("../Map.js").FrameState}.
2614
+ * Only required when the layer is not added to a map.
2615
+ * @return {Array<string>} Attributions for this layer at the given view.
2616
+ * @api
2617
+ */
2618
+ getAttributions(view) {
2619
+ var _a;
2620
+ if (!this.isVisible(view)) {
2621
+ return [];
2622
+ }
2623
+ const getAttributions = (_a = this.getSource()) == null ? void 0 : _a.getAttributions();
2624
+ if (!getAttributions) {
2625
+ return [];
2626
+ }
2627
+ const frameState = view instanceof View_default ? view.getViewStateAndExtent() : view;
2628
+ let attributions = getAttributions(
2629
+ /** @type {import("../View.js").ViewStateLayerStateExtent} */
2630
+ frameState
2631
+ );
2632
+ if (!Array.isArray(attributions)) {
2633
+ attributions = [attributions];
2634
+ }
2635
+ return attributions;
2636
+ }
2637
+ /**
2638
+ * In charge to manage the rendering of the layer. One layer type is
2639
+ * bounded with one layer renderer.
2640
+ * @param {?import("../Map.js").FrameState} frameState Frame state.
2641
+ * @param {HTMLElement} target Target which the renderer may (but need not) use
2642
+ * for rendering its content.
2643
+ * @return {HTMLElement|null} The rendered element.
2644
+ */
2645
+ render(frameState, target) {
2646
+ const layerRenderer = (
2647
+ /** @type {RendererType} */
2648
+ this.getRenderer()
2649
+ );
2650
+ if (layerRenderer.prepareFrame(
2651
+ /** @type {import("../Map.js").FrameState} */
2652
+ frameState
2653
+ )) {
2654
+ this.rendered = true;
2655
+ return layerRenderer.renderFrame(
2656
+ /** @type {import("../Map.js").FrameState} */
2657
+ frameState,
2658
+ target
2659
+ );
2660
+ }
2661
+ return null;
2662
+ }
2663
+ /**
2664
+ * Called when a layer is not visible during a map render.
2665
+ */
2666
+ unrender() {
2667
+ this.rendered = false;
2668
+ }
2669
+ /** @return {string|undefined} Declutter */
2670
+ getDeclutter() {
2671
+ return void 0;
2672
+ }
2673
+ /**
2674
+ * @param {import("../Map.js").FrameState} frameState Frame state.
2675
+ * @param {import("../layer/Layer.js").State} layerState Layer state.
2676
+ */
2677
+ renderDeclutter(frameState, layerState) {
2678
+ }
2679
+ /**
2680
+ * When the renderer follows a layout -> render approach, do the final rendering here.
2681
+ * @param {import('../Map.js').FrameState} frameState Frame state
2682
+ */
2683
+ renderDeferred(frameState) {
2684
+ const layerRenderer = this.getRenderer();
2685
+ if (!layerRenderer) {
2686
+ return;
2687
+ }
2688
+ layerRenderer.renderDeferred(frameState);
2689
+ }
2690
+ /**
2691
+ * For use inside the library only.
2692
+ * @param {import("../Map.js").default|null} map Map.
2693
+ */
2694
+ setMapInternal(map) {
2695
+ if (!map) {
2696
+ this.unrender();
2697
+ }
2698
+ this.set(Property_default.MAP, map);
2699
+ }
2700
+ /**
2701
+ * For use inside the library only.
2702
+ * @return {import("../Map.js").default|null} Map.
2703
+ */
2704
+ getMapInternal() {
2705
+ return this.get(Property_default.MAP);
2706
+ }
2707
+ /**
2708
+ * Sets the layer to be rendered on top of other layers on a map. The map will
2709
+ * not manage this layer in its layers collection. This
2710
+ * is useful for temporary layers. To remove an unmanaged layer from the map,
2711
+ * use `#setMap(null)`.
2712
+ *
2713
+ * To add the layer to a map and have it managed by the map, use
2714
+ * {@link module:ol/Map~Map#addLayer} instead.
2715
+ * @param {import("../Map.js").default|null} map Map.
2716
+ * @api
2717
+ */
2718
+ setMap(map) {
2719
+ if (this.mapPrecomposeKey_) {
2720
+ unlistenByKey(this.mapPrecomposeKey_);
2721
+ this.mapPrecomposeKey_ = null;
2722
+ }
2723
+ if (!map) {
2724
+ this.changed();
2725
+ }
2726
+ if (this.mapRenderKey_) {
2727
+ unlistenByKey(this.mapRenderKey_);
2728
+ this.mapRenderKey_ = null;
2729
+ }
2730
+ if (map) {
2731
+ this.mapPrecomposeKey_ = listen(
2732
+ map,
2733
+ EventType_default2.PRECOMPOSE,
2734
+ /** @type {import("../events.js").ListenerFunction} */
2735
+ this.handlePrecompose_,
2736
+ this
2737
+ );
2738
+ this.mapRenderKey_ = listen(this, EventType_default.CHANGE, map.render, map);
2739
+ this.changed();
2740
+ }
2741
+ }
2742
+ /**
2743
+ * @param {import("../events/Event.js").default} renderEvent Render event
2744
+ * @private
2745
+ */
2746
+ handlePrecompose_(renderEvent) {
2747
+ var _a;
2748
+ const layerStatesArray = (
2749
+ /** @type {import("../render/Event.js").default} */
2750
+ (_a = renderEvent.frameState) == null ? void 0 : _a.layerStatesArray
2751
+ );
2752
+ if (!layerStatesArray) {
2753
+ return;
2754
+ }
2755
+ const layerState = this.getLayerState(false);
2756
+ assert(
2757
+ !layerStatesArray.some(
2758
+ (arrayLayerState) => arrayLayerState.layer === layerState.layer
2759
+ ),
2760
+ "A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."
2761
+ );
2762
+ layerStatesArray.push(layerState);
2763
+ }
2764
+ /**
2765
+ * Set the layer source.
2766
+ * @param {SourceType|null} source The layer source.
2767
+ * @observable
2768
+ * @api
2769
+ */
2770
+ setSource(source) {
2771
+ this.set(Property_default.SOURCE, source);
2772
+ }
2773
+ /**
2774
+ * Get the renderer for this layer.
2775
+ * @return {RendererType|null} The layer renderer.
2776
+ */
2777
+ getRenderer() {
2778
+ if (!this.renderer_) {
2779
+ this.renderer_ = this.createRenderer();
2780
+ }
2781
+ return this.renderer_;
2782
+ }
2783
+ /**
2784
+ * @return {boolean} The layer has a renderer.
2785
+ */
2786
+ hasRenderer() {
2787
+ return !!this.renderer_;
2788
+ }
2789
+ /**
2790
+ * Create a renderer for this layer.
2791
+ * @return {RendererType} A layer renderer.
2792
+ * @protected
2793
+ */
2794
+ createRenderer() {
2795
+ return (
2796
+ /** @type {RendererType} */
2797
+ /** @type {unknown} */
2798
+ null
2799
+ );
2800
+ }
2801
+ /**
2802
+ * This will clear the renderer so that a new one can be created next time it is needed
2803
+ */
2804
+ clearRenderer() {
2805
+ if (this.renderer_) {
2806
+ this.renderer_.dispose();
2807
+ delete this.renderer_;
2808
+ }
2809
+ }
2810
+ /**
2811
+ * Clean up.
2812
+ * @override
2813
+ */
2814
+ disposeInternal() {
2815
+ this.clearRenderer();
2816
+ this.setSource(null);
2817
+ super.disposeInternal();
2818
+ }
2819
+ };
2820
+ function inView(layerState, viewState) {
2821
+ if (!layerState.visible) {
2822
+ return false;
2823
+ }
2824
+ const resolution = viewState.resolution;
2825
+ if (resolution < layerState.minResolution || resolution >= layerState.maxResolution) {
2826
+ return false;
2827
+ }
2828
+ const zoom = viewState.zoom;
2829
+ return zoom > layerState.minZoom && zoom <= layerState.maxZoom;
2830
+ }
2831
+ var Layer_default = Layer;
2832
+
2833
+ // node_modules/ol/render/Event.js
2834
+ init_dirname();
2835
+ init_buffer();
2836
+ init_process();
2837
+ var RenderEvent = class extends Event_default {
2838
+ /**
2839
+ * @param {import("./EventType.js").default} type Type.
2840
+ * @param {import("../transform.js").Transform} [inversePixelTransform] Transform for
2841
+ * CSS pixels to rendered pixels.
2842
+ * @param {import("../Map.js").FrameState} [frameState] Frame state.
2843
+ * @param {?(CanvasRenderingContext2D|OffscreenCanvasRenderingContext2D|WebGLRenderingContext)} [context] Context.
2844
+ */
2845
+ constructor(type, inversePixelTransform, frameState, context) {
2846
+ super(type);
2847
+ this.inversePixelTransform = inversePixelTransform;
2848
+ this.frameState = frameState;
2849
+ this.context = context != null ? context : void 0;
2850
+ }
2851
+ };
2852
+ var Event_default2 = RenderEvent;
2853
+
2854
+ // node_modules/ol/renderer/Layer.js
2855
+ init_dirname();
2856
+ init_buffer();
2857
+ init_process();
2858
+ var maxStaleKeys = 5;
2859
+ var LayerRenderer = class extends Observable_default {
2860
+ /**
2861
+ * @param {LayerType} layer Layer.
2862
+ */
2863
+ constructor(layer) {
2864
+ super();
2865
+ this.ready = true;
2866
+ this.boundHandleImageChange_ = this.handleImageChange_.bind(this);
2867
+ this.layer_ = layer;
2868
+ this.staleKeys_ = new Array();
2869
+ this.maxStaleKeys = maxStaleKeys;
2870
+ this.renderedSourceKey_;
2871
+ }
2872
+ /**
2873
+ * @return {Array<string>} Get the list of stale keys.
2874
+ */
2875
+ getStaleKeys() {
2876
+ return this.staleKeys_;
2877
+ }
2878
+ /**
2879
+ * @param {string} key The new stale key.
2880
+ */
2881
+ prependStaleKey(key) {
2882
+ this.staleKeys_.unshift(key);
2883
+ if (this.staleKeys_.length > this.maxStaleKeys) {
2884
+ this.staleKeys_.length = this.maxStaleKeys;
2885
+ }
2886
+ }
2887
+ /**
2888
+ * Remember the previous source key as stale when the key changes.
2889
+ * @param {string} sourceKey The current source key.
2890
+ * @protected
2891
+ */
2892
+ updateStaleKeys(sourceKey) {
2893
+ if (!this.renderedSourceKey_) {
2894
+ this.renderedSourceKey_ = sourceKey;
2895
+ } else if (this.renderedSourceKey_ !== sourceKey) {
2896
+ this.prependStaleKey(this.renderedSourceKey_);
2897
+ this.renderedSourceKey_ = sourceKey;
2898
+ }
2899
+ }
2900
+ /**
2901
+ * Asynchronous layer level hit detection.
2902
+ * @param {import("../pixel.js").Pixel} pixel Pixel.
2903
+ * @return {Promise<Array<import("../Feature.js").FeatureLike>>} Promise that resolves with
2904
+ * an array of features.
2905
+ */
2906
+ getFeatures(pixel) {
2907
+ return abstract();
2908
+ }
2909
+ /**
2910
+ * @param {import("../pixel.js").Pixel} pixel Pixel.
2911
+ * @return {Uint8ClampedArray|Uint8Array|Float32Array|DataView|null} Pixel data.
2912
+ */
2913
+ getData(pixel) {
2914
+ return null;
2915
+ }
2916
+ /**
2917
+ * Determine whether render should be called.
2918
+ * @abstract
2919
+ * @param {import("../Map.js").FrameState} frameState Frame state.
2920
+ * @return {boolean} Layer is ready to be rendered.
2921
+ */
2922
+ prepareFrame(frameState) {
2923
+ return abstract();
2924
+ }
2925
+ /**
2926
+ * Render the layer.
2927
+ * @abstract
2928
+ * @param {import("../Map.js").FrameState} frameState Frame state.
2929
+ * @param {HTMLElement|null} target Target that may be used to render content to.
2930
+ * @return {HTMLElement} The rendered element.
2931
+ */
2932
+ renderFrame(frameState, target) {
2933
+ return abstract();
2934
+ }
2935
+ /**
2936
+ * @abstract
2937
+ * @param {import("../coordinate.js").Coordinate} coordinate Coordinate.
2938
+ * @param {import("../Map.js").FrameState} frameState Frame state.
2939
+ * @param {number} hitTolerance Hit tolerance in pixels.
2940
+ * @param {import("./vector.js").FeatureCallback<T>} callback Feature callback.
2941
+ * @param {Array<import("./Map.js").HitMatch<T>>} matches The hit detected matches with tolerance.
2942
+ * @return {T|undefined} Callback result.
2943
+ * @template T
2944
+ */
2945
+ forEachFeatureAtCoordinate(coordinate, frameState, hitTolerance, callback, matches) {
2946
+ return void 0;
2947
+ }
2948
+ /**
2949
+ * @return {LayerType} Layer.
2950
+ */
2951
+ getLayer() {
2952
+ return (
2953
+ /** @type {LayerType} */
2954
+ this.layer_
2955
+ );
2956
+ }
2957
+ /**
2958
+ * Perform action necessary to get the layer rendered after new fonts have loaded
2959
+ * @abstract
2960
+ */
2961
+ handleFontsChanged() {
2962
+ }
2963
+ /**
2964
+ * Handle changes in image state.
2965
+ * @param {import("../events/Event.js").default} event Image change event.
2966
+ * @private
2967
+ */
2968
+ handleImageChange_(event) {
2969
+ const image = (
2970
+ /** @type {import("../Image.js").default} */
2971
+ event.target
2972
+ );
2973
+ if (image.getState() === ImageState_default.LOADED || image.getState() === ImageState_default.ERROR) {
2974
+ this.renderIfReadyAndVisible();
2975
+ }
2976
+ }
2977
+ /**
2978
+ * Load the image if not already loaded, and register the image change
2979
+ * listener if needed.
2980
+ * @param {import("../Image.js").default} image Image.
2981
+ * @return {boolean} `true` if the image is already loaded, `false` otherwise.
2982
+ * @protected
2983
+ */
2984
+ loadImage(image) {
2985
+ let imageState = image.getState();
2986
+ if (imageState != ImageState_default.LOADED && imageState != ImageState_default.ERROR) {
2987
+ image.addEventListener(
2988
+ EventType_default.CHANGE,
2989
+ /** @type {import("../events.js").ListenerFunction} */
2990
+ this.boundHandleImageChange_
2991
+ );
2992
+ }
2993
+ if (imageState == ImageState_default.IDLE) {
2994
+ image.load();
2995
+ imageState = image.getState();
2996
+ }
2997
+ return imageState == ImageState_default.LOADED;
2998
+ }
2999
+ /**
3000
+ * @protected
3001
+ */
3002
+ renderIfReadyAndVisible() {
3003
+ const layer = this.getLayer();
3004
+ if (layer && layer.getVisible() && layer.getSourceState() === "ready") {
3005
+ layer.changed();
3006
+ }
3007
+ }
3008
+ /**
3009
+ * @param {import("../Map.js").FrameState} frameState Frame state.
3010
+ */
3011
+ renderDeferred(frameState) {
3012
+ }
3013
+ /**
3014
+ * Clean up.
3015
+ * @override
3016
+ */
3017
+ disposeInternal() {
3018
+ this.layer_ = void 0;
3019
+ super.disposeInternal();
3020
+ }
3021
+ };
3022
+ var Layer_default2 = LayerRenderer;
3023
+
3024
+ export {
3025
+ Event_default2 as Event_default,
3026
+ EventType_default2 as EventType_default,
3027
+ Layer_default2 as Layer_default,
3028
+ ViewHint_default,
3029
+ disable,
3030
+ View_default,
3031
+ Property_default,
3032
+ Base_default,
3033
+ inView,
3034
+ Layer_default as Layer_default2
3035
+ };