@rr0/ufoathome 0.199.0 → 0.201.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (576) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BRmuWrAg.js +1 -0
  2. package/dist-embed-interview/InterviewMessages_es-BTotimwY.js +1 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DBCdGB0r.js +1 -0
  4. package/dist-embed-interview/InterviewMessages_it-B5EyMD-k.js +1 -0
  5. package/dist-embed-interview/rr0-interview.mjs +1 -1
  6. package/dist-embed-scene/{AdsbLolArchiveProvider-BtF4baVw.js → AdsbLolArchiveProvider-C6FJmrLQ.js} +1 -1
  7. package/dist-embed-scene/AirshipEditor-BnRmKeVs.js +16 -0
  8. package/dist-embed-scene/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  9. package/dist-embed-scene/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  10. package/dist-embed-scene/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  11. package/dist-embed-scene/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  12. package/dist-embed-scene/AirshipFlight-C9DSPGwk.js +1 -0
  13. package/dist-embed-scene/AirshipKindMessages_en-DzGapVTV.js +1 -0
  14. package/dist-embed-scene/AirshipKindMessages_es-TE93uMSC.js +1 -0
  15. package/dist-embed-scene/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  16. package/dist-embed-scene/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  17. package/dist-embed-scene/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  18. package/dist-embed-scene/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  19. package/dist-embed-scene/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  20. package/dist-embed-scene/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  21. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  22. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  23. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  24. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  25. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  26. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  27. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  28. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  29. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  30. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  31. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  32. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  33. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  34. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  35. package/dist-embed-scene/AuroraSimulation-BZpjImM0.js +152 -0
  36. package/dist-embed-scene/BalloonEditor-BehJs6H-.js +24 -0
  37. package/dist-embed-scene/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  38. package/dist-embed-scene/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  39. package/dist-embed-scene/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  40. package/dist-embed-scene/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  41. package/dist-embed-scene/BalloonFlight-BYn4diw1.js +1 -0
  42. package/dist-embed-scene/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  43. package/dist-embed-scene/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  44. package/dist-embed-scene/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  45. package/dist-embed-scene/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  46. package/dist-embed-scene/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  47. package/dist-embed-scene/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  48. package/dist-embed-scene/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  49. package/dist-embed-scene/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  50. package/dist-embed-scene/{BeamEditor-Dj1Wt50v.js → BeamEditor-BbbtyCOw.js} +1 -1
  51. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  52. package/dist-embed-scene/{BirdEditor-CKpe681e.js → BirdEditor-dOp1sGsz.js} +1 -1
  53. package/dist-embed-scene/{BirdFlock-B2SbkMme.js → BirdFlock-CfJeXvWu.js} +1 -1
  54. package/dist-embed-scene/DroneEditor-CBoR4fJ_.js +16 -0
  55. package/dist-embed-scene/{DroneFlight-BTFHGVWd.js → DroneFlight-DSE1OXqh.js} +1 -1
  56. package/dist-embed-scene/DroneParameters-D3EOg4oe.js +1 -0
  57. package/dist-embed-scene/{Flightradar24Provider-BBj_wixV.js → Flightradar24Provider-BZDUU8WC.js} +1 -1
  58. package/dist-embed-scene/{GLTFLoader-CKDxld-A.js → GLTFLoader-Dwb-fLT2.js} +1 -1
  59. package/dist-embed-scene/{LanternEditor-iByq1q3j.js → LanternEditor-CbcA7K8y.js} +1 -1
  60. package/dist-embed-scene/{LaserBeam-BQWS_xWa.js → LaserBeam-AjgGxDIq.js} +1 -1
  61. package/dist-embed-scene/{LaunchEditor-CjpESdIe.js → LaunchEditor-tMadX67W.js} +1 -1
  62. package/dist-embed-scene/{LaunchPlume-DVsshxQE.js → LaunchPlume-C7lTPaXd.js} +1 -1
  63. package/dist-embed-scene/{LaunchSimulation-BU7X_C8t.js → LaunchSimulation-ByGBMtSW.js} +1 -1
  64. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  65. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  66. package/dist-embed-scene/{ParameterForm-BHRESNZ4.js → ParameterForm-CRC9iA-m.js} +1 -1
  67. package/dist-embed-scene/{ReentryEditor-DpNPIxOG.js → ReentryEditor-Bjh0q9Ii.js} +1 -1
  68. package/dist-embed-scene/{ReentrySimulation-m-TICP2i.js → ReentrySimulation-Bgnppel8.js} +1 -1
  69. package/dist-embed-scene/ReferenceSystem-D1BkjwT7.js +1 -0
  70. package/dist-embed-scene/{SceneNames_en-Dn90NisJ.js → SceneNames_en-BFJsR6Cc.js} +1 -1
  71. package/dist-embed-scene/{SceneNames_es-DH6GZWja.js → SceneNames_es-BHBTwcJ3.js} +1 -1
  72. package/dist-embed-scene/{SceneNames_fr-rltu5c_j.js → SceneNames_fr-CFsA4XeK.js} +1 -1
  73. package/dist-embed-scene/{SceneNames_it-DsNshdIp.js → SceneNames_it-DkIgwviv.js} +1 -1
  74. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  75. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  76. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  77. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  78. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  79. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  80. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  81. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  82. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  83. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  84. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  85. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  86. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  87. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  88. package/dist-embed-scene/{SkyLantern-BKxwl7Po.js → SkyLantern-Dp_B40X0.js} +1 -1
  89. package/dist-embed-scene/{TimelineTracks-Cjt0OHJS.js → TimelineTracks-iym9uOfD.js} +1 -1
  90. package/dist-embed-scene/{UfoMessages_en-A8Ku1B0Y.js → UfoMessages_en-CqQ-VdQJ.js} +1 -1
  91. package/dist-embed-scene/rr0-scene.mjs +401 -326
  92. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  93. package/dist-embed-sighting/{AdsbLolArchiveProvider-BfWrS1jn.js → AdsbLolArchiveProvider-CsuxO9wl.js} +1 -1
  94. package/dist-embed-sighting/AirshipEditor-DkDCkwGG.js +16 -0
  95. package/dist-embed-sighting/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  96. package/dist-embed-sighting/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  97. package/dist-embed-sighting/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  98. package/dist-embed-sighting/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  99. package/dist-embed-sighting/AirshipFlight-D8fH97A1.js +1 -0
  100. package/dist-embed-sighting/AirshipKindMessages_en-DzGapVTV.js +1 -0
  101. package/dist-embed-sighting/AirshipKindMessages_es-TE93uMSC.js +1 -0
  102. package/dist-embed-sighting/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  103. package/dist-embed-sighting/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  104. package/dist-embed-sighting/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  105. package/dist-embed-sighting/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  106. package/dist-embed-sighting/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  107. package/dist-embed-sighting/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  108. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  109. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  110. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  111. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  112. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  113. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  114. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  115. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  116. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  117. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  118. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  119. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  120. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  121. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  122. package/dist-embed-sighting/AuroraSimulation-C9hvCV0W.js +152 -0
  123. package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +24 -0
  124. package/dist-embed-sighting/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  125. package/dist-embed-sighting/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  126. package/dist-embed-sighting/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  127. package/dist-embed-sighting/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  128. package/dist-embed-sighting/BalloonFlight-MN_clHSJ.js +1 -0
  129. package/dist-embed-sighting/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  130. package/dist-embed-sighting/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  131. package/dist-embed-sighting/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  132. package/dist-embed-sighting/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  133. package/dist-embed-sighting/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  134. package/dist-embed-sighting/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  135. package/dist-embed-sighting/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  136. package/dist-embed-sighting/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  137. package/dist-embed-sighting/{BeamEditor--mMu1zwv.js → BeamEditor-DDzw-fB_.js} +2 -2
  138. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  139. package/dist-embed-sighting/{BirdEditor-DZ1Ybqeu.js → BirdEditor-BgNNcdhv.js} +1 -1
  140. package/dist-embed-sighting/{BirdFlock-BZScQXfR.js → BirdFlock-DBgkxsxp.js} +1 -1
  141. package/dist-embed-sighting/{CaseReportExport-CAuwP-Ec.js → CaseReportExport-DVVsc8gA.js} +1 -1
  142. package/dist-embed-sighting/DroneEditor-5nuq52EG.js +16 -0
  143. package/dist-embed-sighting/{DroneFlight-WxqILFs6.js → DroneFlight-sMbiog9j.js} +1 -1
  144. package/dist-embed-sighting/DroneParameters-DHeJ7KyU.js +1 -0
  145. package/dist-embed-sighting/{Flightradar24Provider-DJmvd2AL.js → Flightradar24Provider-p4a3_chL.js} +1 -1
  146. package/dist-embed-sighting/{GLTFLoader-FWVFviG5.js → GLTFLoader-fbsNsHlp.js} +1 -1
  147. package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +1 -0
  148. package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +1 -0
  149. package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +1 -0
  150. package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +1 -0
  151. package/dist-embed-sighting/{LanternEditor-Do0kggi8.js → LanternEditor-Be5Io1J-.js} +1 -1
  152. package/dist-embed-sighting/{LaserBeam-CMO6tMze.js → LaserBeam-BRdhNOMZ.js} +1 -1
  153. package/dist-embed-sighting/{LaunchEditor-CZri7DN4.js → LaunchEditor-BGyLgkGS.js} +1 -1
  154. package/dist-embed-sighting/{LaunchPlume-DxDfUSlS.js → LaunchPlume-iiiayJ8I.js} +1 -1
  155. package/dist-embed-sighting/{LaunchSimulation-CTxbrEJw.js → LaunchSimulation-DvexI06i.js} +1 -1
  156. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  157. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  158. package/dist-embed-sighting/{ParameterForm-B8nX9qW-.js → ParameterForm-DFHcolwG.js} +1 -1
  159. package/dist-embed-sighting/{ReentryEditor-BbhQfIPi.js → ReentryEditor-C6EJJf4l.js} +1 -1
  160. package/dist-embed-sighting/{ReentrySimulation-BHbW9YNO.js → ReentrySimulation-BFVBOWrm.js} +1 -1
  161. package/dist-embed-sighting/ReferenceSystem-zTvTqp5y.js +1 -0
  162. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  163. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  164. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  165. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  166. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  167. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  168. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  169. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  170. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  171. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  172. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  173. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  174. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  175. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  176. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  177. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  178. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  179. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  180. package/dist-embed-sighting/{SkyLantern-COmog7pF.js → SkyLantern-yYihsrun.js} +1 -1
  181. package/dist-embed-sighting/{TimelineTracks-CYIJdyPF.js → TimelineTracks-Cw7W2uiK.js} +1 -1
  182. package/dist-embed-sighting/rr0-sighting.mjs +417 -342
  183. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  184. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-CWpyBqG3.js} +1 -1
  185. package/dist-embed-sighting-editor/AirshipEditor-BvnVNcF4.js +16 -0
  186. package/dist-embed-sighting-editor/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  187. package/dist-embed-sighting-editor/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  188. package/dist-embed-sighting-editor/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  189. package/dist-embed-sighting-editor/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  190. package/dist-embed-sighting-editor/AirshipFlight-CB1Quf68.js +1 -0
  191. package/dist-embed-sighting-editor/AirshipKindMessages_en-DzGapVTV.js +1 -0
  192. package/dist-embed-sighting-editor/AirshipKindMessages_es-TE93uMSC.js +1 -0
  193. package/dist-embed-sighting-editor/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  194. package/dist-embed-sighting-editor/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  195. package/dist-embed-sighting-editor/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  196. package/dist-embed-sighting-editor/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  197. package/dist-embed-sighting-editor/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  198. package/dist-embed-sighting-editor/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  199. package/dist-embed-sighting-editor/Aurora-BRXvgyRM.js +1 -0
  200. package/dist-embed-sighting-editor/AuroraEditor-JQ3kRqrq.js +8 -0
  201. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  202. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  203. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  204. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  205. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  206. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  207. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  208. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  209. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  210. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  211. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  212. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  213. package/dist-embed-sighting-editor/AuroraSimulation-i64MFW2z.js +152 -0
  214. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BL_yzudf.js → BallesterGuaspAssessor-BaKKAdY3.js} +1 -1
  215. package/dist-embed-sighting-editor/BalloonEditor-C2oHClW7.js +24 -0
  216. package/dist-embed-sighting-editor/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  217. package/dist-embed-sighting-editor/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  218. package/dist-embed-sighting-editor/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  219. package/dist-embed-sighting-editor/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  220. package/dist-embed-sighting-editor/BalloonFlight-B9A6MoCj.js +1 -0
  221. package/dist-embed-sighting-editor/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  222. package/dist-embed-sighting-editor/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  223. package/dist-embed-sighting-editor/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  224. package/dist-embed-sighting-editor/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  225. package/dist-embed-sighting-editor/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  226. package/dist-embed-sighting-editor/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  227. package/dist-embed-sighting-editor/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  228. package/dist-embed-sighting-editor/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  229. package/dist-embed-sighting-editor/{BeamEditor-DA29mfqm.js → BeamEditor-CW7mTQjS.js} +1 -1
  230. package/dist-embed-sighting-editor/BeamSystem-CSfJjLCb.js +1 -0
  231. package/dist-embed-sighting-editor/BirdEditor-BdxhCoW9.js +16 -0
  232. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-DCbrukNp.js} +1 -1
  233. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-DE8ZQrqe.js} +1 -1
  234. package/dist-embed-sighting-editor/{CaseElement--JmpOsUW.js → CaseElement-C46wM-nU.js} +3 -3
  235. package/dist-embed-sighting-editor/{CaseReportExport-nFM_7lq4.js → CaseReportExport-UVrInf6H.js} +3 -3
  236. package/dist-embed-sighting-editor/{ContrailSystem-B0cQbaHc.js → ContrailSystem-CDSSxouG.js} +1 -1
  237. package/dist-embed-sighting-editor/{ControlPasses-BvS8haeS.js → ControlPasses-CsOVa-jq.js} +1 -1
  238. package/dist-embed-sighting-editor/{CoverageAssessor-DD1kSvun.js → CoverageAssessor-DWY_gJJX.js} +1 -1
  239. package/dist-embed-sighting-editor/DroneEditor-DgeuaHdb.js +16 -0
  240. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-CFztr-9j.js} +1 -1
  241. package/dist-embed-sighting-editor/DroneParameters-CHmDmRoC.js +1 -0
  242. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-e6_3o9Jf.js} +1 -1
  243. package/dist-embed-sighting-editor/{GLTFLoader-DuqJVU4y.js → GLTFLoader-Df-r7_lf.js} +1 -1
  244. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-CmqG-T2c.js} +1 -1
  245. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Wjc5YKlM.js} +1 -1
  246. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-BSPGzTbG.js} +1 -1
  247. package/dist-embed-sighting-editor/GeographicFigures-D_TfLkj9.js +1 -0
  248. package/dist-embed-sighting-editor/{HeadlightSystem-BejdfHqe.js → HeadlightSystem-DljWmzj5.js} +1 -1
  249. package/dist-embed-sighting-editor/{HynekAssessor-CwzpS7YP.js → HynekAssessor-BCDwoOI9.js} +1 -1
  250. package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +277 -0
  251. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-DDa53uMq.js} +1 -1
  252. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  253. package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +1 -0
  254. package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +1 -0
  255. package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +1 -0
  256. package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +1 -0
  257. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-B46AfaoJ.js} +1 -1
  258. package/dist-embed-sighting-editor/LanternEditor-CkbeitJh.js +24 -0
  259. package/dist-embed-sighting-editor/{LaserBeam-tqM2fwHf.js → LaserBeam-Ber-PT8j.js} +1 -1
  260. package/dist-embed-sighting-editor/LaunchEditor-BsvHahqK.js +22 -0
  261. package/dist-embed-sighting-editor/{LaunchPlume-DWyU0YyJ.js → LaunchPlume-BmPMeGMN.js} +1 -1
  262. package/dist-embed-sighting-editor/{LaunchSimulation-C_OJQoKC.js → LaunchSimulation-g-ETWhEH.js} +1 -1
  263. package/dist-embed-sighting-editor/ModelSource-DOUnBBhu.js +1 -0
  264. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-TwG1snwZ.js} +1 -1
  265. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-Y_B6eM4z.js} +1 -1
  266. package/dist-embed-sighting-editor/ModuleConformance-CO1S9pa3.js +2 -0
  267. package/dist-embed-sighting-editor/ModuleSession-VLS0tjAb.js +3 -0
  268. package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +1 -0
  269. package/dist-embed-sighting-editor/{ModulesPanelElement-hDjGLhRa.js → ModulesPanelElement--YQ0QtcW.js} +3 -3
  270. package/dist-embed-sighting-editor/{NearestApproach-D6tQo7dk.js → NearestApproach-C_8Uvp6i.js} +1 -1
  271. package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +1 -0
  272. package/dist-embed-sighting-editor/{PoherAssessor-BTYpHucH.js → PoherAssessor-DtDcuhWK.js} +1 -1
  273. package/dist-embed-sighting-editor/QuestionnaireFeed-CvLtuLIH.js +1 -0
  274. package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +1 -0
  275. package/dist-embed-sighting-editor/QuestionnaireImport-BYj5QoJS.js +5 -0
  276. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  277. package/dist-embed-sighting-editor/{RailwaySystem-D_8D64Bu.js → RailwaySystem-eT-ZKfZl.js} +1 -1
  278. package/dist-embed-sighting-editor/ReentryEditor-CW8H7KaA.js +28 -0
  279. package/dist-embed-sighting-editor/{ReentrySimulation-Bom073AV.js → ReentrySimulation-DVl__RjO.js} +1 -1
  280. package/dist-embed-sighting-editor/ReferenceSystem-DxVYO7g9.js +1 -0
  281. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-DJraHdS6.js} +1 -1
  282. package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +1 -0
  283. package/dist-embed-sighting-editor/ScenarioSweep-Ddtuo_Af.js +1 -0
  284. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  285. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  286. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  287. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  288. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-p5YNYZhA.js} +1 -1
  289. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-DlMqYLL9.js} +1 -1
  290. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-lFA7hY3x.js} +1 -1
  291. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CDwvX1Nw.js} +1 -1
  292. package/dist-embed-sighting-editor/SearchlightEditor-BSI8hB1V.js +8 -0
  293. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  294. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  295. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  296. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  297. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  298. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  299. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  300. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  301. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  302. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  303. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  304. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  305. package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +1 -0
  306. package/{dist-embed-ufoathome/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  307. package/dist-embed-sighting-editor/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  308. package/{dist-embed-ufoathome/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  309. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  310. package/dist-embed-sighting-editor/{SightingElement-DsR4mBCh.js → SightingElement-T0x4j9Zt.js} +4 -4
  311. package/dist-embed-sighting-editor/{SightingFileEditor-0VZmtiOX.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  312. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  313. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  314. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  315. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  316. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-Dl4yl-lc.js} +1 -1
  317. package/dist-embed-sighting-editor/{TraceSystem-B1mmypS3.js → TraceSystem-Dbu_bgfE.js} +2 -2
  318. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-BAuHAGgq.js} +1 -1
  319. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-C8eRmv7A.js} +1 -1
  320. package/dist-embed-sighting-editor/{WaterSystem-mZ-f2CcD.js → WaterSystem-DpJCe_2Q.js} +2 -2
  321. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  322. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  323. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  324. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  325. package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +7 -0
  326. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-zzDGCbXd.js} +1 -1
  327. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-DngUPqK8.js} +1 -1
  328. package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +1 -0
  329. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  330. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +543 -443
  331. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  332. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-lvh4Rw5C.js} +1 -1
  333. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Drx7CE9H.js} +1 -1
  334. package/dist-embed-ufoathome/AdsbLolArchiveProvider-CqedGYi5.js +1 -0
  335. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  336. package/dist-embed-ufoathome/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  337. package/dist-embed-ufoathome/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  338. package/dist-embed-ufoathome/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  339. package/dist-embed-ufoathome/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  340. package/dist-embed-ufoathome/AirshipFlight-Dzpw8HRM.js +1 -0
  341. package/dist-embed-ufoathome/AirshipKindMessages_en-DzGapVTV.js +1 -0
  342. package/dist-embed-ufoathome/AirshipKindMessages_es-TE93uMSC.js +1 -0
  343. package/dist-embed-ufoathome/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  344. package/dist-embed-ufoathome/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  345. package/dist-embed-ufoathome/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  346. package/dist-embed-ufoathome/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  347. package/dist-embed-ufoathome/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  348. package/dist-embed-ufoathome/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  349. package/dist-embed-ufoathome/Aurora-CpZx9hQ3.js +1 -0
  350. package/dist-embed-ufoathome/AuroraEditor-D2v8sWVE.js +8 -0
  351. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  352. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  353. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  354. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  355. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  356. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  357. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  358. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  359. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  360. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  361. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  362. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  363. package/dist-embed-ufoathome/AuroraSimulation-DdSP66LD.js +152 -0
  364. package/dist-embed-ufoathome/BallesterGuaspAssessor-C4IktJ1l.js +1 -0
  365. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  366. package/dist-embed-ufoathome/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  367. package/dist-embed-ufoathome/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  368. package/dist-embed-ufoathome/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  369. package/dist-embed-ufoathome/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  370. package/dist-embed-ufoathome/BalloonFlight-CztT6ddg.js +1 -0
  371. package/dist-embed-ufoathome/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  372. package/dist-embed-ufoathome/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  373. package/dist-embed-ufoathome/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  374. package/dist-embed-ufoathome/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  375. package/dist-embed-ufoathome/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  376. package/dist-embed-ufoathome/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  377. package/dist-embed-ufoathome/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  378. package/dist-embed-ufoathome/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  379. package/dist-embed-ufoathome/{BeamEditor-CFYAfywp.js → BeamEditor-CuW3LVO-.js} +2 -2
  380. package/dist-embed-ufoathome/BeamSystem-BPEYuCF4.js +1 -0
  381. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  382. package/dist-embed-ufoathome/{BodyEditor-B96fap0d.js → BodyEditor-COMX-T65.js} +1 -1
  383. package/dist-embed-ufoathome/CaseEditorElement-C5BHP8jT.js +3173 -0
  384. package/dist-embed-ufoathome/{CaseElement-BFDRYL5v.js → CaseElement-CIZvyRVi.js} +3 -3
  385. package/dist-embed-ufoathome/{CaseReportExport-VrulN0VG.js → CaseReportExport-BFbswUIB.js} +3 -3
  386. package/dist-embed-ufoathome/{ColumnResize-DD0wwlp2.js → ColumnResize-Dh6Xyspd.js} +6 -6
  387. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  388. package/dist-embed-ufoathome/ControlPasses-CnL1GmT-.js +29 -0
  389. package/dist-embed-ufoathome/CoverageAssessor-CiqUEJkN.js +1 -0
  390. package/dist-embed-ufoathome/DroneEditor-D60uhSHO.js +16 -0
  391. package/dist-embed-ufoathome/DroneParameters-CfTAaLCT.js +1 -0
  392. package/dist-embed-ufoathome/Flightradar24Provider-_tNmWf11.js +1 -0
  393. package/dist-embed-ufoathome/GLTFLoader-BLk8prLt.js +1 -0
  394. package/dist-embed-ufoathome/GeoJsonExport-DkPKk-7q.js +2 -0
  395. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  396. package/dist-embed-ufoathome/{GeographicFigures-Ds8kfyn7.js → GeographicFigures-l-PfHdSR.js} +1 -1
  397. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  398. package/dist-embed-ufoathome/HynekAssessor-BhnvqsYz.js +1 -0
  399. package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +277 -0
  400. package/dist-embed-ufoathome/{InterviewElement-BrlawcDm.js → InterviewElement-CuRmQ0d3.js} +2 -2
  401. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  402. package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +1 -0
  403. package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +1 -0
  404. package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +1 -0
  405. package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +1 -0
  406. package/dist-embed-ufoathome/KmlExport-BUl3gOrw.js +19 -0
  407. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  408. package/dist-embed-ufoathome/{LaserBeam-Ced8VujI.js → LaserBeam-C7glTvQN.js} +1 -1
  409. package/dist-embed-ufoathome/LaunchEditor-DvudtAzp.js +22 -0
  410. package/dist-embed-ufoathome/{LaunchPlume-DdeLDyDg.js → LaunchPlume-CrDBzsQe.js} +1 -1
  411. package/dist-embed-ufoathome/LaunchSimulation-DyOA4lPb.js +1 -0
  412. package/dist-embed-ufoathome/ModelSource-CoT4mxTx.js +1 -0
  413. package/dist-embed-ufoathome/ModelThumbnails-t59SZ3Vn.js +1 -0
  414. package/dist-embed-ufoathome/ModelViewer-DEdruEtl.js +1 -0
  415. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  416. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  417. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  418. package/dist-embed-ufoathome/{ModulesPanelElement-Bio6lzC6.js → ModulesPanelElement-N-ccpGxl.js} +3 -3
  419. package/dist-embed-ufoathome/{NearestApproach-DAiByBN2.js → NearestApproach-Do15yfeg.js} +1 -1
  420. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  421. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  422. package/dist-embed-ufoathome/PoherAssessor-Cs8-ZBge.js +1 -0
  423. package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +1 -0
  424. package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +1 -0
  425. package/dist-embed-ufoathome/QuestionnaireImport-Cx1dQiha.js +5 -0
  426. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  427. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  428. package/dist-embed-ufoathome/ReentryEditor-CJUFkVFO.js +28 -0
  429. package/dist-embed-ufoathome/ReentrySimulation-B5QcdOTq.js +1 -0
  430. package/dist-embed-ufoathome/ReferenceSystem-DyzOUClN.js +1 -0
  431. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  432. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  433. package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +1 -0
  434. package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +1 -0
  435. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  436. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  437. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  438. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  439. package/dist-embed-ufoathome/SearchlightEditor-CPDNpfNC.js +8 -0
  440. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  441. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  442. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  443. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  444. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  445. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  446. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  447. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  448. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  449. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  450. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  451. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  452. package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +1 -0
  453. package/dist-embed-ufoathome/ShareDialogElement-CBeU9ChH.js +5182 -0
  454. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  455. package/{dist-embed-sighting-editor/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  456. package/dist-embed-ufoathome/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  457. package/{dist-embed-sighting-editor/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  458. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  459. package/dist-embed-ufoathome/{SightingElement-DTADTDwh.js → SightingElement-BveOM4nF.js} +4 -4
  460. package/dist-embed-ufoathome/{SightingFileEditor-Cllslp2u.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  461. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  462. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  463. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  464. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  465. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  466. package/dist-embed-ufoathome/{TraceSystem-BcWYbjQM.js → TraceSystem-CoHX04R3.js} +2 -2
  467. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  468. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  469. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  470. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  471. package/dist-embed-ufoathome/VideoButton-DNQmWtfv.js +1 -0
  472. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  473. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  474. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  475. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  476. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  477. package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +7 -0
  478. package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +1 -0
  479. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  480. package/dist-embed-ufoathome/rr0-ufoathome.mjs +27 -17
  481. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  482. package/dist-embed-ufoathome/surroundingsSources-C823p3dG.js +1 -0
  483. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  484. package/dist-embed-ufoathome/trafficRuntime-DtXb9B2f.js +2 -0
  485. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  486. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  487. package/package.json +4 -2
  488. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  489. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  490. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  491. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  492. package/dist-embed-scene/BeamSystem-CaNus1WN.js +0 -1
  493. package/dist-embed-scene/DroneEditor-BDDLiZPp.js +0 -16
  494. package/dist-embed-scene/ModuleSession-Hj3QwLuw.js +0 -3
  495. package/dist-embed-scene/ModuleThree-D1uz5JiH.js +0 -1
  496. package/dist-embed-scene/ReferenceSystem-B6FHr1Pb.js +0 -1
  497. package/dist-embed-scene/sightingSchema-CgwoRMl-.js +0 -1
  498. package/dist-embed-sighting/BeamSystem-Cqe7QaN4.js +0 -1
  499. package/dist-embed-sighting/DroneEditor-Bo19kUte.js +0 -16
  500. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  501. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  502. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  503. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  504. package/dist-embed-sighting/ModuleSession-BCtFMDJY.js +0 -3
  505. package/dist-embed-sighting/ModuleThree-DPVHqcup.js +0 -1
  506. package/dist-embed-sighting/ReferenceSystem-DCSdp9Bq.js +0 -1
  507. package/dist-embed-sighting/sightingSchema-CgwoRMl-.js +0 -1
  508. package/dist-embed-sighting-editor/BeamSystem-DYohqXlF.js +0 -1
  509. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  510. package/dist-embed-sighting-editor/DroneEditor-BRB2-dAw.js +0 -16
  511. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  512. package/dist-embed-sighting-editor/InterviewEditorElement-DbVrB3-g.js +0 -242
  513. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  514. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  515. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  516. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  517. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  518. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  519. package/dist-embed-sighting-editor/LaunchEditor-vwecAGwH.js +0 -22
  520. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  521. package/dist-embed-sighting-editor/ModuleConformance-DYi4XZdB.js +0 -2
  522. package/dist-embed-sighting-editor/ModuleSession-BDbaoiCf.js +0 -3
  523. package/dist-embed-sighting-editor/ModuleThree-DRf9SEr_.js +0 -1
  524. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  525. package/dist-embed-sighting-editor/ReentryEditor-D7HxkvKP.js +0 -28
  526. package/dist-embed-sighting-editor/ReferenceSystem-D_eueNAb.js +0 -1
  527. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  528. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  529. package/dist-embed-sighting-editor/sightingSchema-CgwoRMl-.js +0 -1
  530. package/dist-embed-ufoathome/AdsbLolArchiveProvider-B9MGq-iQ.js +0 -1
  531. package/dist-embed-ufoathome/BallesterGuaspAssessor-BehuINgj.js +0 -1
  532. package/dist-embed-ufoathome/BeamSystem-Bt5Dnpzy.js +0 -1
  533. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  534. package/dist-embed-ufoathome/CaseEditorElement-D-RKShTH.js +0 -3148
  535. package/dist-embed-ufoathome/ContrailSystem-BKeTHlcZ.js +0 -1
  536. package/dist-embed-ufoathome/ControlPasses-D3vc-NmG.js +0 -29
  537. package/dist-embed-ufoathome/CoverageAssessor-Be38W7Im.js +0 -1
  538. package/dist-embed-ufoathome/DroneEditor-ByVlCauS.js +0 -16
  539. package/dist-embed-ufoathome/Flightradar24Provider-DdPjGVJg.js +0 -1
  540. package/dist-embed-ufoathome/GLTFLoader-D1_vI_Fe.js +0 -1
  541. package/dist-embed-ufoathome/GeoJsonExport-B2qogWLj.js +0 -2
  542. package/dist-embed-ufoathome/HeadlightSystem-BdhHphIq.js +0 -34
  543. package/dist-embed-ufoathome/HynekAssessor-MqnQfg3F.js +0 -1
  544. package/dist-embed-ufoathome/InterviewEditorElement-DjQuGytO.js +0 -242
  545. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  546. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  547. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  548. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  549. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  550. package/dist-embed-ufoathome/KmlExport-AzofE76s.js +0 -19
  551. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  552. package/dist-embed-ufoathome/LaunchEditor-D-5OJi90.js +0 -22
  553. package/dist-embed-ufoathome/LaunchSimulation-BeCHjgE5.js +0 -1
  554. package/dist-embed-ufoathome/ModelSource-LY5T91ay.js +0 -1
  555. package/dist-embed-ufoathome/ModelThumbnails-C25E4WMl.js +0 -1
  556. package/dist-embed-ufoathome/ModelViewer-D6JaOQS7.js +0 -1
  557. package/dist-embed-ufoathome/ModuleConformance-DGjaEwAM.js +0 -2
  558. package/dist-embed-ufoathome/ModuleSession-pXE1aOJF.js +0 -3
  559. package/dist-embed-ufoathome/ModuleThree-xQDeVLs0.js +0 -1
  560. package/dist-embed-ufoathome/PictureRegistration-Dbr0O7NF.js +0 -1
  561. package/dist-embed-ufoathome/PoherAssessor-C7NN73NP.js +0 -1
  562. package/dist-embed-ufoathome/RailwaySystem-D3u3j_tw.js +0 -41
  563. package/dist-embed-ufoathome/ReentryEditor-s-AkSgbU.js +0 -28
  564. package/dist-embed-ufoathome/ReentrySimulation-2UWwXU7K.js +0 -1
  565. package/dist-embed-ufoathome/ReferenceSystem-BhEFpIis.js +0 -1
  566. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  567. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  568. package/dist-embed-ufoathome/ShareDialogElement-C9Uiwt0F.js +0 -9222
  569. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  570. package/dist-embed-ufoathome/VideoButton-CgfBskVu.js +0 -1
  571. package/dist-embed-ufoathome/WaterSystem-BsGtTimO.js +0 -19
  572. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  573. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  574. package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +0 -1
  575. package/dist-embed-ufoathome/surroundingsSources-B--F7TR5.js +0 -1
  576. package/dist-embed-ufoathome/trafficRuntime-B97u9ZY_.js +0 -2
@@ -0,0 +1 @@
1
+ import{g as B}from"./rr0-ufoathome.mjs";import{x as V,bs as tt,bt as q,y as j,bu as C,bv as X,bw as et}from"./ShareDialogElement-CBeU9ChH.js";import{l as ot}from"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class I{constructor(t){this.survey=t}static CACHE_NAME="rr0-surroundings";static MAX_AGE_MS=720*3600*1e3;static FORMAT=8;static MAX_STORED=400;static asked=new Map;get id(){return this.survey.id}get name(){return this.survey.name}get attribution(){return this.survey.attribution}get creditUrl(){return this.survey.creditUrl}get contemporary(){return this.survey.contemporary}covers(t,e){return this.survey.covers(t,e)}async getSurroundings(t,e){const s=I.key(this.survey.id,t,e);let o=I.asked.get(s);return o===void 0&&(o=this.recalled(s,t,e),I.asked.set(s,o),o.catch(()=>I.asked.delete(s))),structuredClone(await o)}later(t,e){const s=this.survey.later?.(t,e);if(!s)return;const o=I.key(this.survey.id,t,e);return s.then(n=>{const a=I.partial.get(o);if(a){I.partial.delete(o);const{incomplete:r,...i}=a,h=[...a.credits??[],...n.credits??[]].filter((l,f,M)=>M.findIndex(d=>d.url===l.url)===f),c={...i,...n,dates:{...a.dates,...n.dates},...h.length>0?{credits:h}:{}};I.asked.set(o,Promise.resolve(c)),I.openCache().then(l=>l&&I.store(l,I.request(o),c))}return structuredClone(n)})}static partial=new Map;static forget(){I.partial.clear(),I.asked.clear()}static key(t,e,s){return`${t}/v${I.FORMAT}/${e.lat.toFixed(5)}/${e.lng.toFixed(5)}/${Math.round(s)}`}async recalled(t,e,s){const o=await I.openCache(),n=I.request(t);if(o)try{const r=await o.match(n);if(r){const{savedAt:i,surroundings:h}=await r.json();if(Date.now()-i<I.MAX_AGE_MS)return h;await o.delete(n)}}catch{}const a=await this.survey.getSurroundings(e,s);return a.incomplete?(I.asked.delete(t),I.partial.set(t,structuredClone(a)),a):(o&&I.store(o,n,a),a)}static async store(t,e,s){try{const o={savedAt:Date.now(),surroundings:s};await t.put(e,new Response(JSON.stringify(o),{headers:{"Content-Type":"application/json"}}));const n=await t.keys();for(const a of n.slice(0,Math.max(0,n.length-I.MAX_STORED)))await t.delete(a)}catch{}}static async openCache(){try{return typeof caches>"u"?void 0:await caches.open(I.CACHE_NAME)}catch{return}}static request(t){const e=typeof location>"u"?"http://localhost":location.origin;return new Request(`${e}/__surroundings__/${encodeURIComponent(t)}`)}}class st{constructor(t){if(this.candidates=t,t.length===0)throw new Error("A survey needs at least one candidate");this.current=t[0]}current;get id(){return this.current.id}get name(){return this.current.name}get attribution(){return this.current.attribution}get creditUrl(){return this.current.creditUrl}get contemporary(){return this.current.contemporary}covers(t,e){return this.candidates.some(s=>s.covers(t,e))}async getSurroundings(t,e){let s;for(const o of this.candidates)if(o.covers(t.lat,t.lng))try{const n=await o.getSurroundings(t,e);return this.current=o,n}catch(n){if(s??=n,!(n instanceof V))throw n}throw s??new V("no-coverage","No survey reaches this place")}later(t,e){return this.current.later?.(t,e)}}class D{constructor(t,e,s,o){this.heights=t,this.building=e,this.width=s,this.height=o}static ROOF_PERCENTILE=.9;static STEP_M=.9;static RECTANGLE_FILL=.72;static MIN_DEPTH_M=2.5;static MAX_PARTS=24;static MAX_CELLS=640;buildings(t){const e=t.metresPerPixel,s=t.minAreaM2??12,o=new Uint8Array(this.width*this.height),n=[];for(let a=0;a<this.building.length;a++){if(!this.building[a]||o[a])continue;const r=this.patchFrom(a,o);if(!(r.length*e*e<s))for(const i of this.buildingsOf(r,e,s))Math.hypot(i.eastM,i.northM)<=t.radiusM&&n.push(i)}return n.sort((a,r)=>Math.hypot(a.eastM,a.northM)-Math.hypot(r.eastM,r.northM)),n.slice(0,t.maxBuildings??60)}patchFrom(t,e){const s=[],o=[t];for(e[t]=1;o.length>0;){const n=o.pop();s.push(n);const a=n%this.width,r=Math.floor(n/this.width);for(const[i,h]of[[1,0],[-1,0],[0,1],[0,-1]]){const c=a+i,l=r+h;if(c<0||l<0||c>=this.width||l>=this.height)continue;const f=l*this.width+c;this.building[f]&&!e[f]&&Math.abs(this.heights[f]-this.heights[n])<=D.STEP_M&&(e[f]=1,o.push(f))}}return s}buildingsOf(t,e,s){const o=this.width/2,n=this.height/2,a=[],r=[],i=[];for(const h of t){const c=h%this.width,l=Math.floor(h/this.width);a.push((c+.5-o)*e),r.push((n-l-.5)*e),i.push(this.heights[h])}return D.ofPoints(a,r,i,e,s)}static ofPoints(t,e,s,o,n,a=D.RECTANGLE_FILL,r=[]){const i=[];for(let m=0;m<t.length;m++)for(const[E,v]of[[-.5,-.5],[.5,-.5],[-.5,.5],[.5,.5]])i.push([t[m]+E*o,e[m]+v*o]);const h=D.hull(i),{angle:c,rectangle:l}=D.smallestRectangle(h),f=t.length*o*o,M=(l.maxU-l.minU)*(l.maxV-l.minV);if(f/M>=a||f<4*n)return[D.building(l,c,D.roof(s))];const d=h.map((m,E)=>({from:{east:m[0],north:m[1]},to:{east:h[(E+1)%h.length][0],north:h[(E+1)%h.length][1]}})),g=D.dominantAngles([...r,...d]);return D.parts(t,e,s,g.length>0?g:[c],o,n)}static dominantAngles(t,e=3){const s=new Map;for(const o of t){const n=Math.hypot(o.to.east-o.from.east,o.to.north-o.from.north);if(n<1e-6)continue;const a=(Math.atan2(o.to.north-o.from.north,o.to.east-o.from.east)%(Math.PI/2)+Math.PI/2)%(Math.PI/2),r=Math.round(a/(Math.PI/60));s.set(r,(s.get(r)??0)+n)}return[...s.entries()].sort((o,n)=>n[1]-o[1]).slice(0,e).map(([o])=>o*Math.PI/60)}static parts(t,e,s,o,n,a){let r=t.map((h,c)=>c);const i=[];for(let h=0;h<D.MAX_PARTS&&r.length>0;h++){let c;for(const M of o){const d=D.largestIn(t,e,r,M,n);d&&(c===void 0||d.area>c.area)&&(c=d)}if(c===void 0||c.area<a)break;const l=c.covered;Math.min(c.rectangle.maxU-c.rectangle.minU,c.rectangle.maxV-c.rectangle.minV)>=D.MIN_DEPTH_M&&i.push(D.building(c.rectangle,c.angle,D.roof([...l].map(M=>s[M])))),r=r.filter(M=>!l.has(M))}return i}static largestIn(t,e,s,o,n){const a=Math.cos(o),r=Math.sin(o);let i=1/0,h=-1/0,c=1/0,l=-1/0;const f=[],M=[];for(const A of s){const y=t[A]*a+e[A]*r,R=-t[A]*r+e[A]*a;f.push(y),M.push(R),i=Math.min(i,y),h=Math.max(h,y),c=Math.min(c,R),l=Math.max(l,R)}const d=Math.max(n*Math.SQRT2,Math.max(h-i,l-c)/D.MAX_CELLS),g=Math.max(1,Math.ceil((h-i)/d+1e-9)),m=Math.max(1,Math.ceil((l-c)/d+1e-9)),E=new Uint8Array(g*m),v=s.map((A,y)=>{const R=Math.min(g-1,Math.max(0,Math.floor((f[y]-i)/d))),x=Math.min(m-1,Math.max(0,Math.floor((M[y]-c)/d)));return E[x*g+R]=1,x*g+R}),w=D.largestRectangle(E,g,m);if(w===void 0)return;const p=new Set;return s.forEach((A,y)=>{const R=v[y]%g,x=Math.floor(v[y]/g);R>=w.column&&R<w.column+w.columns&&x>=w.row&&x<w.row+w.rows&&p.add(A)}),{area:w.area*d*d,angle:o,covered:p,rectangle:{minU:i+w.column*d,maxU:i+(w.column+w.columns)*d,minV:c+w.row*d,maxV:c+(w.row+w.rows)*d}}}static largestRectangle(t,e,s){const o=new Array(e).fill(0);let n;for(let a=0;a<s;a++){for(let i=0;i<e;i++)o[i]=t[a*e+i]?o[i]+1:0;const r=[];for(let i=0;i<=e;i++){const h=i===e?0:o[i];for(;r.length>0&&o[r[r.length-1]]>=h;){const c=r.pop(),l=r.length===0?i:i-r[r.length-1]-1,f=o[c]*l;(n===void 0||f>n.area)&&(n={column:i-l,row:a-o[c]+1,columns:l,rows:o[c],area:f})}r.push(i)}}return n}static roof(t){const e=[...t].sort((s,o)=>s-o);return Math.max(2,e[Math.min(e.length-1,Math.floor(e.length*D.ROOF_PERCENTILE))])}static building(t,e,s){const o=Math.cos(e),n=Math.sin(e),a=t.maxU-t.minU,r=t.maxV-t.minV,i=(t.minU+t.maxU)/2,h=(t.minV+t.maxV)/2,l=((90-(a<r?e:e+Math.PI/2)*180/Math.PI)%180+180)%180;return{eastM:D.tenth(i*o-h*n),northM:D.tenth(i*n+h*o),widthM:D.tenth(Math.max(a,r)),lengthM:D.tenth(Math.min(a,r)),heightM:D.tenth(s),headingDeg:Math.round(l*10)/10}}static smallestRectangle(t){let e={area:1/0,angle:0,rectangle:{minU:0,maxU:0,minV:0,maxV:0}};for(let s=0;s<Math.max(1,t.length);s++){const[o,n]=t[s]??[0,0],[a,r]=t[(s+1)%t.length]??[1,0],i=Math.atan2(r-n,a-o),h=Math.cos(i),c=Math.sin(i);let l=1/0,f=-1/0,M=1/0,d=-1/0;for(const[m,E]of t){const v=m*h+E*c,w=-m*c+E*h;l=Math.min(l,v),f=Math.max(f,v),M=Math.min(M,w),d=Math.max(d,w)}const g=(f-l)*(d-M);g<e.area&&(e={area:g,angle:i,rectangle:{minU:l,maxU:f,minV:M,maxV:d}})}return e}static hull(t){const e=[...t].sort((r,i)=>r[0]-i[0]||r[1]-i[1]),s=e.filter((r,i)=>i===0||r[0]!==e[i-1][0]||r[1]!==e[i-1][1]);if(s.length<3)return s;const o=(r,i,h)=>(i[0]-r[0])*(h[1]-r[1])-(i[1]-r[1])*(h[0]-r[0]),n=[];for(const r of s){for(;n.length>=2&&o(n[n.length-2],n[n.length-1],r)<=0;)n.pop();n.push(r)}const a=[];for(const r of[...s].reverse()){for(;a.length>=2&&o(a[a.length-2],a[a.length-1],r)<=0;)a.pop();a.push(r)}return[...n.slice(0,-1),...a.slice(0,-1)]}static tenth(t){return Math.round(t*10)/10}}class H{constructor(t,e,s,o){this.heights=t,this.vegetation=e,this.width=s,this.height=o}static SUMMIT_RADIUS_M=2.5;static CROWN_REACH_M=8;static MAX_WIDTH_M=16;static MIN_WIDTH_M=2;static tenth(t){return Math.round(t*10)/10}trees(t){const e=t.metresPerPixel,s=t.minHeightM??4,o=t.eyeM??1.6,n=t.minElevationDeg??2,a=Math.max(1,Math.round(H.SUMMIT_RADIUS_M/e)),r=Math.round(H.CROWN_REACH_M/e),i=this.width/2,h=this.height/2,c=[];for(let l=0;l<this.height;l++)for(let f=0;f<this.width;f++){const M=this.canopy(f,l);if(M<s)continue;const d=(f+.5-i)*e,g=(h-l-.5)*e,m=Math.hypot(d,g);if(m>t.radiusM||!this.isSummit(f,l,M,a))continue;const E=Math.atan2(M-o,Math.max(m,1))*180/Math.PI;E<n||c.push({tree:{eastM:H.tenth(d),northM:H.tenth(g),heightM:H.tenth(M),widthM:H.tenth(this.crownWidth(f,l,M,e,r))},elevation:E})}return c.sort((l,f)=>f.elevation-l.elevation),c.slice(0,t.maxTrees??150).map(l=>l.tree)}canopy(t,e){if(t<0||e<0||t>=this.width||e>=this.height)return 0;const s=e*this.width+t;return this.vegetation[s]?this.heights[s]:0}isSummit(t,e,s,o){for(let n=-o;n<=o;n++)for(let a=-o;a<=o;a++){if(a===0&&n===0)continue;const r=this.canopy(t+a,e+n);if(r>s||r===s&&(n<0||n===0&&a<0))return!1}return!0}crownWidth(t,e,s,o,n){let a=0;for(let i=-n;i<=n;i++)for(let h=-n;h<=n;h++)Math.hypot(h,i)*o<=H.CROWN_REACH_M&&this.canopy(t+h,e+i)>=s*.5&&a++;const r=2*Math.sqrt(a*o*o/Math.PI);return Math.max(H.MIN_WIDTH_M,Math.min(r,H.MAX_WIDTH_M))}}class _{static WALLS={1:"stone",2:"meuliere",3:"concrete",4:"brick",5:"block",6:"wood",9:"other"};static ROOFS={1:"tile",2:"slate",3:"zinc",4:"concrete",9:"other"};static WALL_COLOURS={stone:"#b9ae9b",meuliere:"#b8a78a",concrete:"#b4b2ac",brick:"#a65f48",block:"#d0c6b2",wood:"#7d5c3e",other:"#c9c0ae"};static PLASTER="#d3cab8";static ROOF_COLOURS={tile:"#a0583f",slate:"#4a5059",zinc:"#8d969c",concrete:"#8f8e8a",other:"#7a7872"};static VARIATION=.12;static OLD_ROOF="#7d858c";static OLD_STOREY_M=3.6;static GRAND_STOREY_M=4.5;static MIN_STOREY_M=2.4;static MAX_STOREY_M=6;static of(t,e){const s=String(t??"").trim();if(!/^\d{1,2}$/.test(s))return;const o=Number(s),n=o%10!==0?o%10:Math.floor(o/10);return(e==="wall"?_.WALLS:_.ROOFS)[String(n)]}static roofColor(t){return t?_.ROOF_COLOURS[t]:void 0}static fit(t){return t.map(e=>{const s=e.style,o={...e.facade,color:e.facade?.color??_.wallColor(e)};s==="church"?o.openings="lancet":s==="monument"||s==="works"?o.openings="plain":(s==="old"||s==="grand")&&(o.openings="tall"),e.closedAtNight&&o.openings!=="plain"&&(o.closedAtNight=!0);const n=_.storeyOf(e);n!==void 0&&s!=="church"&&s!=="monument"&&(o.storeyM=n);const a=s==="old"&&e.roof?.color===void 0?{shape:"flat",riseM:0,...e.roof,color:_.OLD_ROOF}:e.roof;return{...e,facade:o,...a?{roof:a}:{}}})}static storeyOf(t){const e=t.heightM-(t.roof?.riseM??0);if(t.floors&&t.floors>0){const s=e/t.floors;if(s>=_.MIN_STOREY_M&&s<=_.MAX_STOREY_M)return Math.round(s*100)/100}return t.style==="old"?_.OLD_STOREY_M:t.style==="grand"?_.GRAND_STOREY_M:void 0}static wallColor(t){const e=t.style==="church"||t.style==="monument"||t.style==="old",s=t.wallMaterial?_.WALL_COLOURS[t.wallMaterial]:e?_.WALL_COLOURS.stone:_.PLASTER,o=Math.sin(t.eastM*12.9898+t.northM*78.233)*43758.5453,n=1+(o-Math.floor(o)-.5)*2*_.VARIATION,a=r=>Math.max(0,Math.min(255,Math.round(parseInt(s.slice(r,r+2),16)*n))).toString(16).padStart(2,"0");return`#${a(1)}${a(3)}${a(5)}`}}class N{static MIN_RISE_M=1.2;static MIN_EAVES_M=2.5;static MIN_SEEN=.35;static NO_DATA=-9999;static BANDS=7;static INSET_M=.9;static LIFT=1.18;static PEAK=.3;static LEVEL=.45;static fit(t,e,s){return!e&&!s&&!t.some(o=>o.roofMaterial)?t:t.map(o=>{const n=e?N.shapeOf(o,e):void 0,a=(s?N.colorOf(o,s):void 0)??_.roofColor(o.roofMaterial);if(!n&&!a)return o;const r={shape:n?.shape??"flat",...n?.ridge==="depth"?{ridge:"depth"}:{},riseM:n?.riseM??0,...a?{color:a}:{}},i=n&&n.shape!=="flat"?n.topM:o.heightM;return{...o,heightM:i,roof:r}})}static world(t,e,s){const o=t.headingDeg*Math.PI/180;return{east:t.eastM+e*Math.cos(o)+s*Math.sin(o),north:t.northM-e*Math.sin(o)+s*Math.cos(o)}}static shapeOf(t,e){const s=N.BANDS,o=Math.max(e.metresPerPixel,.5),n=t.widthM/2-N.INSET_M,a=t.lengthM/2-N.INSET_M;if(n<=0||a<=0)return;const r=[],i=Array.from({length:s},()=>({sum:0,n:0})),h=Array.from({length:s},()=>({sum:0,n:0}));let c=0;for(let y=-n;y<=n;y+=o)for(let R=-a;R<=a;R+=o){c++;const{east:x,north:$}=N.world(t,y,R),z=Math.floor(x/e.metresPerPixel+e.size/2),Y=Math.floor(e.size/2-$/e.metresPerPixel);if(z<0||Y<0||z>=e.size||Y>=e.size)continue;const k=Y*e.size+z,P=e.heights[k];if(e.vegetation[k]||P===N.NO_DATA||!(P>0))continue;r.push(P);const J=i[Math.min(s-1,Math.floor((y+n)/(2*n)*s))],Q=h[Math.min(s-1,Math.floor((R+a)/(2*a)*s))];J.sum+=P,J.n++,Q.sum+=P,Q.n++}if(c===0||r.length/c<N.MIN_SEEN)return;r.sort((y,R)=>y-R);const l=N.percentile(r,.08),f=N.percentile(r,.92),M=f-l;if(l<N.MIN_EAVES_M||M>Math.min(t.widthM,t.lengthM))return;if(M<N.MIN_RISE_M)return{shape:"flat",riseM:0,topM:f};const d=N.profile(i),g=N.profile(h);if(!d||!g)return;const m=N.peak(g)/M,E=N.peak(d)/M,v=N.spread(d)/M,w=N.spread(g)/M,p=m>=N.PEAK&&v<=N.LEVEL,A=E>=N.PEAK&&w<=N.LEVEL;if(p&&(!A||m>=E))return{shape:"gable",ridge:"width",riseM:M,topM:f};if(A)return{shape:"gable",ridge:"depth",riseM:M,topM:f};if(m>=N.PEAK&&E>=N.PEAK/2)return{shape:"hip",ridge:"width",riseM:M,topM:f}}static profile(t){const e=t.map(s=>s.n>0?s.sum/s.n:NaN);return e.filter(Number.isFinite).length>=t.length-1?e.map((s,o)=>Number.isFinite(s)?s:N.neighbour(e,o)):void 0}static neighbour(t,e){return Number.isFinite(t[e-1])?t[e-1]:t[e+1]}static peak(t){const e=Math.max(1,Math.floor(t.length/3)),s=n=>n.reduce((a,r)=>a+r,0)/n.length,o=[...t.slice(0,e),...t.slice(t.length-e)];return s(t.slice(e,t.length-e))-s(o)}static spread(t){return Math.max(...t)-Math.min(...t)}static percentile(t,e){return t[Math.min(t.length-1,Math.floor(t.length*e))]}static colorOf(t,e){const s=Math.max(e.metresPerPixel,.5),o=Math.max(t.widthM/2-N.INSET_M,s),n=Math.max(t.lengthM/2-N.INSET_M,s),a=[],r=[],i=[];for(let l=-o;l<=o;l+=s)for(let f=-n;f<=n;f+=s){const{east:M,north:d}=N.world(t,l,f),g=Math.floor(M/e.metresPerPixel+e.size/2),m=Math.floor(e.size/2-d/e.metresPerPixel);if(g<0||m<0||g>=e.size||m>=e.size)continue;const E=(m*e.size+g)*e.samples,v=e.values[E],w=e.values[E+1],p=e.values[E+2];w>v&&w>p||(a.push(v),r.push(w),i.push(p))}if(a.length===0)return;const h=l=>l.sort((f,M)=>f-M)[Math.floor(l.length/2)],c=l=>Math.min(255,Math.round(l*N.LIFT)).toString(16).padStart(2,"0");return`#${c(h(a))}${c(h(r))}${c(h(i))}`}}class G{static DEFAULT_HEIGHT_M=6;static METRES_PER_DEGREE=111320;static STREET_SPACING_M=35;static KERB_OFFSET_M=1;static DEFAULT_WIDTH_M=5.5;static PATIENCE_MS=15e3;static MAX=150;static lampsFrom(t,e,s){const o=[],n=new Set;for(const r of t.elements??[]){if(r.id!==void 0){const l=`${r.type}/${r.id}`;if(n.has(l))continue;n.add(l)}if(r.type==="way"){r.tags?.lit==="yes"&&G.alongStreet(r,e,o);continue}if(r.tags?.highway!=="street_lamp"||typeof r.lat!="number"||typeof r.lon!="number")continue;const i=(r.lon-e.lng)*G.METRES_PER_DEGREE*Math.cos(e.lat*Math.PI/180),h=(r.lat-e.lat)*G.METRES_PER_DEGREE;if(Math.hypot(i,h)>s)continue;const c=Number.parseFloat(r.tags?.height??"");o.push({eastM:Math.round(i*10)/10,northM:Math.round(h*10)/10,...Number.isFinite(c)&&c>=2&&c<=20?{heightM:c}:{}})}const a=o.filter(r=>Math.hypot(r.eastM,r.northM)<=s);return o.length=0,o.push(...a),o.sort((r,i)=>Math.hypot(r.eastM,r.northM)-Math.hypot(i.eastM,i.northM)),o.slice(0,G.MAX)}static alongStreet(t,e,s){const o=t.geometry;if(!o||o.length<2)return;const n=d=>[(d.lon-e.lng)*G.METRES_PER_DEGREE*Math.cos(e.lat*Math.PI/180),(d.lat-e.lat)*G.METRES_PER_DEGREE],a=o.map(n),r=Number.parseFloat(t.tags?.width??""),i=Number.parseInt(t.tags?.lanes??"",10),c=(Number.isFinite(r)&&r>0?r:Number.isFinite(i)&&i>0?i*3.5:G.DEFAULT_WIDTH_M)/2+G.KERB_OFFSET_M;let l=1,f=G.STREET_SPACING_M/2,M=0;for(let d=1;d<a.length;d++){const[g,m]=a[d-1],[E,v]=a[d],w=Math.hypot(E-g,v-m);if(w===0)continue;const p=(E-g)/w,A=(v-m)/w;for(;f<=M+w;f+=G.STREET_SPACING_M){const y=f-M;s.push({eastM:Math.round((g+p*y+A*c*l)*10)/10,northM:Math.round((m+A*y-p*c*l)*10)/10,supposed:!0}),l=-l}M+=w}}}class u{constructor(t={},e=[],s=[]){this.lampSources=e,this.signalSources=s,this.client=new tt(t)}static METRES_PER_DEGREE=111320;static KERB_OFFSET_M=.6;static SETBACK_M=.5;static MIN_CROSSING_M=3;static MAX_CROSSING_M=30;static SAME_CROSSING_M=5;static SAME_HEAD_M=2.5;static SAME_HEAD_DEG=45;static MAX_SIGNALS=160;static MAX_CROSSINGS=150;static MAX_SIGNS=100;static ROADS=new Set([...q.DRIVABLE,"living_street","busway","road"]);static ON_ROAD="^(traffic_signals|crossing|stop|give_way)$";static CREDIT={name:"OpenStreetMap",url:"https://www.openstreetmap.org/copyright",licence:"ODbL"};client;local(t,e){const s=u.boxOf(t,e),o=(r,i)=>{if(!r)return Promise.resolve(void 0);const h=`${r.credit.url} ${s}`;let c=u.localPending.get(h);return c||(c=i().then(l=>({credit:r.credit,found:l}),()=>{u.localPending.delete(h)}),u.localPending.set(h,c)),c},n=this.lampSources.find(r=>r.covers(t.lat,t.lng)),a=this.signalSources.find(r=>r.covers(t.lat,t.lng));return Promise.all([o(n,()=>n.lampsNear(t,e)),o(a,()=>a.signalsNear(t,e))]).then(([r,i])=>({lamps:r,signals:i}))}static localPending=new Map;static withLocal(t,e){const s=e?.lamps?e.lamps.found:t.lamps,o=e?.signals?e.signals.found:t.signals,a=[...u.found({crossings:t.crossings,signs:t.signs,...e?.lamps?{}:{lamps:s},...e?.signals?{}:{signals:o}})?[u.CREDIT]:[],...e?.lamps&&e.lamps.found.length>0?[e.lamps.credit]:[],...e?.signals&&e.signals.found.length>0?[e.signals.credit]:[]],{lamps:r,signals:i,credits:h,...c}=t;return{...c,...s?.length?{lamps:s}:{},...o?.length?{signals:o}:{},...a.length>0?{credits:a}:{}}}static today(){return new Date().toISOString().slice(0,10)}static later(t,e,s){return t?.answered(e,s).then(o=>({...o,...u.found(o)?{dates:{lamps:u.today()}}:{}}))}static found(t){return!!(t?.lamps?.length||t?.signals?.length||t?.crossings?.length||t?.signs?.length)}static query(t){const e=u.ON_ROAD;return`[out:json][timeout:25];(node["highway"="street_lamp"](${t});way["highway"]["lit"="yes"](${t});node["highway"~"${e}"](${t});node["traffic_sign"](${t});way["footway"="crossing"](${t}););out geom;(node._["highway"~"${e}"];node._["traffic_sign"];)->.kerb;way(bn.kerb)["highway"];out geom;`}static pending=new Map;async near(t,e){const s=this.ask(u.boxOf(t,e)),o=this.local(t,e);let n;const a=Symbol("late"),r=new Promise(i=>{n=setTimeout(()=>i(a),G.PATIENCE_MS)});try{const[i,h]=await Promise.all([Promise.race([s,r]),Promise.race([o,r])]),c=h===a?void 0:h;return i===a||i===void 0?{...u.withLocal({},c),incomplete:!0}:u.withLocal(u.from(i,t,e),c)}finally{clearTimeout(n)}}static RETRY_DELAYS_MS=[15e3,6e4,18e4,6e5];async answered(t,e){const s=u.boxOf(t,e);for(let o=0;;o++){const n=await this.ask(s);if(n)return u.withLocal(u.from(n,t,e),await this.local(t,e));if(o>=u.RETRY_DELAYS_MS.length)throw new Error("Overpass did not answer");await new Promise(a=>setTimeout(a,u.RETRY_DELAYS_MS[o]))}}ask(t){let e=u.pending.get(t);return e||(e=this.client.query(u.query(t)).catch(()=>{u.pending.delete(t)}),u.pending.set(t,e)),e}static boxOf(t,e){const s=e/u.METRES_PER_DEGREE,o=e/(u.METRES_PER_DEGREE*Math.cos(t.lat*Math.PI/180));return[t.lat-s,t.lng-o,t.lat+s,t.lng+o].map(n=>n.toFixed(6)).join(",")}static forget(){u.pending.clear(),u.localPending.clear()}static from(t,e,s){const o=G.lampsFrom(t,e,s),n=Math.cos(e.lat*Math.PI/180),a=(p,A)=>[(A-e.lng)*u.METRES_PER_DEGREE*n,(p-e.lat)*u.METRES_PER_DEGREE],r=(p,A)=>`${p.toFixed(7)},${A.toFixed(7)}`,i=new Map,h=new Set,c=[],l=[];for(const p of t.elements??[]){if(p.type==="node"){typeof p.lat=="number"&&typeof p.lon=="number"&&l.push(p);continue}if(p.type!=="way"||!p.geometry||p.geometry.length<2)continue;if(p.id!==void 0){if(h.has(p.id))continue;h.add(p.id)}const A=p.tags??{};if(A.footway==="crossing"&&c.push(p),!u.ROADS.has(A.highway??""))continue;const y=p.geometry.map(R=>a(R.lat,R.lon));p.geometry.forEach((R,x)=>{const $=r(R.lat,R.lon);i.set($,[...i.get($)??[],{way:p,points:y,index:x}])})}const f=[],M=[],d=[],g=new Set;for(const p of l){if(p.id!==void 0){if(g.has(p.id))continue;g.add(p.id)}const A=p.tags??{},y=a(p.lat,p.lon),R=i.get(r(p.lat,p.lon))??[],x=A.highway;if(x==="traffic_signals")for(const k of u.approaches(R,u.directionOf(A),!1))f.push(u.head(y,k,"vehicles"));if(x==="crossing"||x==="traffic_signals"&&A.crossing!==void 0){const k=R[0];if(k&&u.marked(A)){const P=u.directionAt(k);P&&M.push({eastM:u.round(y[0]),northM:u.round(y[1]),headingDeg:u.heading(P),widthM:q.widthOf(k.way.tags??{})}),P&&(A.crossing==="traffic_signals"||A["crossing:signals"]==="yes")&&f.push(...u.pedestrianHeads(y,P,k))}}if(x==="traffic_signals")continue;const $=x==="stop"?{face:"stop"}:x==="give_way"?{face:"give-way"}:u.faceOf(A);if(!$)continue;const z=A.traffic_sign?{code:A.traffic_sign}:{};if(R.length>0){const k=u.approaches(R,u.directionOf(A),!0)[0];if(k){const P=u.head(y,k,"vehicles");d.push({eastM:P.eastM,northM:P.northM,headingDeg:P.headingDeg,...$,...z})}continue}const Y=u.compassOf(A.direction);Y!==void 0&&d.push({eastM:u.round(y[0]),northM:u.round(y[1]),headingDeg:(Y+180)%360,...$,...z})}for(const p of c){const A=u.crossingAlong(p,a);A&&!M.some(y=>Math.hypot(y.eastM-A.eastM,y.northM-A.northM)<u.SAME_CROSSING_M)&&M.push(A)}const m=f.filter((p,A)=>!f.slice(0,A).some(y=>y.for===p.for&&Math.hypot(y.eastM-p.eastM,y.northM-p.northM)<u.SAME_HEAD_M&&Math.abs((y.headingDeg-p.headingDeg+540)%360-180)<u.SAME_HEAD_DEG)),E=(p,A)=>p.filter(y=>Math.hypot(y.eastM,y.northM)<=s).sort((y,R)=>Math.hypot(y.eastM,y.northM)-Math.hypot(R.eastM,R.northM)).slice(0,A),v={};o.length>0&&(v.lamps=o);const w={signals:E(m,u.MAX_SIGNALS),crossings:E(M,u.MAX_CROSSINGS),signs:E(d,u.MAX_SIGNS)};return w.signals.length>0&&(v.signals=w.signals),w.crossings.length>0&&(v.crossings=w.crossings),w.signs.length>0&&(v.signs=w.signs),v}static approaches(t,e,s){const o=[];for(const a of t){const r=a.way.tags??{},i=r.oneway==="yes"||r.oneway==="true"||r.oneway==="1"||r.junction==="roundabout"||r.highway==="motorway",h=r.oneway==="-1",{points:c,index:l}=a,f=(d,g)=>{let m=0;for(let E=Math.min(d,g);E<Math.max(d,g);E++)m+=Math.hypot(c[E+1][0]-c[E][0],c[E+1][1]-c[E][1]);return m},M=d=>{const g=c[l][0]-c[d][0],m=c[l][1]-c[d][1],E=Math.hypot(g,m);return E>0?[g/E,m/E]:void 0};if(l>0&&!h){const d=M(l-1);d&&o.push({approach:{unit:d,road:a},toEndM:f(l,c.length-1),forward:!0})}if(l<c.length-1&&!i){const d=M(l+1);d&&o.push({approach:{unit:d,road:a},toEndM:f(0,l),forward:!1})}}const n=e!==void 0&&t.length===1?o.filter(a=>a.forward===(e==="forward")):o;return!s||n.length<=1?n.map(a=>a.approach):[n.reduce((a,r)=>r.toEndM<a.toEndM?r:a).approach]}static head(t,e,s){const[o,n]=e.unit,a=q.widthOf(e.road.way.tags??{})/2+u.KERB_OFFSET_M,r=u.SETBACK_M,i=u.heading(e.unit);return{eastM:u.round(t[0]-o*r+n*a),northM:u.round(t[1]-n*r-o*a),headingDeg:(i+180)%360,for:s,phase:j.phaseOf(i)}}static pedestrianHeads(t,e,s){const o=q.widthOf(s.way.tags??{})/2+u.KERB_OFFSET_M,n=u.heading(e),a=j.phaseOf(n);return[1,-1].map(r=>({eastM:u.round(t[0]+e[1]*o*r),northM:u.round(t[1]-e[0]*o*r),headingDeg:(n+(r===1?270:90))%360,for:"pedestrians",phase:a}))}static crossingAlong(t,e){if(!u.marked(t.tags??{}))return;const s=t.geometry.map(h=>e(h.lat,h.lon)),[o,n]=s[0],[a,r]=s[s.length-1],i=Math.hypot(a-o,r-n);if(!(i<u.MIN_CROSSING_M))return{eastM:u.round((o+a)/2),northM:u.round((n+r)/2),headingDeg:(u.heading([(a-o)/i,(r-n)/i])+90)%360,widthM:Math.round(Math.min(i,u.MAX_CROSSING_M)*10)/10}}static marked(t){const e=t.crossing;return e!=="unmarked"&&e!=="no"&&e!=="informal"&&t["crossing:markings"]!=="no"}static directionAt(t){const{points:e,index:s}=t,[o,n]=s<e.length-1?[e[s],e[s+1]]:[e[s-1],e[s]],a=Math.hypot(n[0]-o[0],n[1]-o[1]);return a>0?[(n[0]-o[0])/a,(n[1]-o[1])/a]:void 0}static directionOf(t){const e=t["traffic_signals:direction"]??t["traffic_sign:direction"]??t.direction;return e==="forward"||e==="backward"?e:void 0}static compassOf(t){if(t===void 0)return;const e=Number.parseFloat(t);if(Number.isFinite(e)&&/^\s*-?\d/.test(t))return(e%360+360)%360;const o=["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"].indexOf(t.trim().toUpperCase());return o<0?void 0:o*22.5}static faceOf(t){const e=t.traffic_sign;if(!e||e==="no"||e==="none")return;const s=e.split(/[;,]/).map(o=>o.trim());if(s.some(o=>/stop|:AB4\b|:206\b|:R1-1\b|:B2\b/i.test(o)))return{face:"stop"};if(s.some(o=>/give_way|yield|:AB3a\b|:205\b|:R1-2\b|:B1\b/i.test(o)))return{face:"give-way"};for(const o of s){const n=/maxspeed|:B14\b|:274\b|:C14\b|:R2-1\b/i.test(o)?Number.parseInt(/\[(\d+)\]/.exec(o)?.[1]??t.maxspeed??"",10):Number.NaN;if(Number.isFinite(n)&&n>0)return{face:"speed-limit",value:n}}return{face:"other"}}static heading([t,e]){return Math.round((Math.atan2(t,e)*180/Math.PI+360)%360*10)/10}static round(t){return Math.round(t*10)/10}}class nt{id="ign-lidar-hd";name="IGN LiDAR HD";attribution="Canopy and roofs © IGN, LiDAR HD (Licence Ouverte 2.0), as surveyed on a day the service does not give";creditUrl="https://geoservices.ign.fr/lidarhd";contemporary=!0;platform;furniture;constructor(t={},e){this.platform=new C(t),this.furniture=e}covers(t,e){return C.covers(t,e)}later(t,e){return u.later(this.furniture,t,e)}async getSurroundings(t,e){if(!this.covers(t.lat,t.lng))throw new V("no-coverage","The LiDAR HD survey covers France only");const s=C.lidarRadius(e),[o,n,a,r,i]=await Promise.all([this.platform.lidar(t,s),this.platform.photo(t,s).catch(()=>{}),this.furniture?.near(t,e),this.platform.laserDate(t),this.platform.photoDate(t)]);return{trees:new H(o.heights,o.vegetation,o.size,o.size).trees({metresPerPixel:o.metresPerPixel,radiusM:s}),buildings:_.fit(N.fit(new D(o.heights,o.building,o.size,o.size).buildings({metresPerPixel:o.metresPerPixel,radiusM:s,maxBuildings:300}),o,n)),bridges:[],lines:[],...a,dates:{...r?{laser:r}:{},...n&&i?{photo:i}:{},...u.found(a)?{lamps:u.today()}:{}}}}}class b{static MAP_NATURES={Eglise:"church",Chapelle:"church",Monument:"monument","Tour, donjon":"monument","Fort, blockhaus, casemate":"monument","Arc de triomphe":"monument","Arène ou théâtre antique":"monument",Château:"old","Industriel, agricole ou commercial":"works",Serre:"works",Silo:"works"};static MAP_WORKS=new Set(["Industriel","Agricole","Annexe"]);static MAP_CLOSED_AT_NIGHT=new Set(["Commercial et services","Sportif"]);static OSM_CLOSED_AT_NIGHT=new Set(["retail","commercial","office","supermarket","kiosk","sports_hall","sports_centre","stadium","school","university","college","kindergarten","public","civic","government","train_station","transportation"]);static OSM_BUILDINGS={cathedral:"church",church:"church",chapel:"church",basilica:"church",temple:"church",mosque:"church",synagogue:"church",shrine:"church",religious:"church",castle:"old",palace:"old",fortress:"monument",bunker:"monument",triumphal_arch:"monument",industrial:"works",warehouse:"works",barn:"works",farm_auxiliary:"works",shed:"works",hangar:"works",garage:"works",garages:"works",greenhouse:"works",silo:"works",storage_tank:"works",cowshed:"works",stable:"works",sty:"works",manufacture:"works"};static OSM_HISTORIC={church:"church",chapel:"church",monastery:"old",castle:"old",manor:"old",fort:"monument",tower:"monument",monument:"monument",memorial:"monument",city_gate:"monument"};static OLD_BEFORE=1900;static GRAND_FROM_M=15;static GRAND_UP_TO_M=40;static TOWER_SLENDERNESS=2;static CHURCH_PITCH=.7;static CHURCH_ROOF_OF_WALLS=.35;static CHURCH_ROOF_COLOUR="#5a6068";static ofMap(t){const e=b.year(t.date_d_apparition),o=b.MAP_NATURES[String(t.nature??"")]??(t.usage_1==="Religieux"?"church":void 0)??(b.MAP_WORKS.has(String(t.usage_1??""))?"works":void 0)??b.ofYear(e)??b.grand(t),n=b.MAP_CLOSED_AT_NIGHT.has(String(t.usage_1??""));return{...o?{style:o}:{},...e!==void 0?{builtYear:e}:{},...n?{closedAtNight:!0}:{}}}static ofOsm(t){const e=b.year(t.start_date),s=t.historic&&t.historic!=="no"?b.OSM_HISTORIC[t.historic]??"old":void 0,o=t.amenity==="place_of_worship"?"church":void 0,n=b.OSM_BUILDINGS[t.building??""]??s??o??b.ofYear(e),a=b.OSM_CLOSED_AT_NIGHT.has(t.building??"")||t.shop!==void 0&&t.shop!=="no";return{...n?{style:n}:{},...e!==void 0?{builtYear:e}:{},...a?{closedAtNight:!0}:{}}}static year(t){const e=Number(/\b(\d{4})\b/.exec(String(t??""))?.[1]);return Number.isFinite(e)&&e>=1e3&&e<=2100?e:void 0}static fit(t){return t.map(e=>e.style==="church"?b.church(e):e)}static isTower(t){return t.heightM>=b.TOWER_SLENDERNESS*Math.max(t.widthM,t.lengthM)}static church(t){const e=t.roof?.color??b.CHURCH_ROOF_COLOUR;if(b.isTower(t))return{...t,roof:{shape:"flat",riseM:0,color:e}};if(t.roof&&t.roof.shape!=="flat")return t;const s=Math.round(Math.min(b.CHURCH_PITCH*t.lengthM,b.CHURCH_ROOF_OF_WALLS*t.heightM)*10)/10,o={shape:"gable",riseM:s,color:e};return{...t,heightM:Math.round((t.heightM+s)*10)/10,roof:o}}static ofYear(t){return t!==void 0&&t<b.OLD_BEFORE?"old":void 0}static grand(t){const e=Number(t.hauteur),s=Number(t.nombre_d_etages);if(!(Number.isFinite(s)&&s>0)&&!(t.usage_1==="Résidentiel"||t.date_d_apparition))return e>=b.GRAND_FROM_M&&e<=b.GRAND_UP_TO_M?"grand":void 0}}class O{static METRES_PER_DEGREE=111320;static NAMED_NATURES={Silo:"Silo"};static DEFAULT_HEIGHT_M=6;static FLOOR_HEIGHT_M=3;static FINE_M=.5;static COARSE_M=1;static MAX_CELLS=4e4;static RECTANGLE_FILL=.9;static buildings(t,e,s,o=12,n=300,a=[]){const r=[];for(const h of O.reached(t,a,e,s)){const c=h.feature,l=Number(c.properties.nombre_d_etages),f=Number(c.properties.hauteur),M=Number.isFinite(f)&&f>0?f:Number.isFinite(l)&&l>0?l*O.FLOOR_HEIGHT_M:O.DEFAULT_HEIGHT_M,{style:d,builtYear:g,closedAtNight:m}=b.ofMap(c.properties);for(const E of O.rectanglesOf(h.rings,M,o)){const v=_.of(c.properties.materiaux_des_murs,"wall"),w=_.of(c.properties.materiaux_de_la_toiture,"roof"),p=O.NAMED_NATURES[String(c.properties.nature??"")];r.push({...E,...p?{name:p}:{},...Number.isFinite(l)&&l>0?{floors:l}:{},...v?{wallMaterial:v}:{},...w?{roofMaterial:w}:{},...d?{style:d}:{},...g!==void 0?{builtYear:g}:{},...m?{closedAtNight:m}:{}})}}const i=h=>Math.hypot(h.eastM,h.northM);if(r.length>n){const h=c=>(c.heightM+6)*Math.sqrt(c.widthM*c.lengthM)/Math.max(i(c),50);r.sort((c,l)=>h(l)-h(c)),r.length=n}return r.sort((h,c)=>i(h)-i(c)),r}static named(t,e,s){const o=e.map(n=>({name:typeof n.properties.toponyme=="string"?n.properties.toponyme:"",rings:O.rings(n,s)})).filter(n=>n.name.length>0&&n.rings.length>0);return o.length===0?t:t.map(n=>{const a=o.find(r=>O.inside(n.eastM,n.northM,r.rings));return a?{...n,name:a.name}:n})}static reached(t,e,s,o){const n=t.map(i=>({feature:i,rings:O.rings(i,s)})).filter(i=>i.rings.length>0),a=n.map(i=>O.reach(i.rings)<=o),r=e.filter(i=>typeof i.properties.toponyme=="string"&&i.properties.toponyme.length>0).map(i=>O.rings(i,s)).filter(i=>i.length>0);if(r.length>0){const i=n.map(c=>{const l=c.rings[0],f=l.reduce((d,g)=>d+g.east,0)/l.length,M=l.reduce((d,g)=>d+g.north,0)/l.length;return r.findIndex(d=>O.inside(f,M,d))}),h=new Set(i.filter((c,l)=>c>=0&&a[l]));i.forEach((c,l)=>{h.has(c)&&(a[l]=!0)})}return n.filter((i,h)=>a[h])}static reach(t){if(O.inside(0,0,t))return 0;let e=1/0;for(const s of t)for(let o=0;o+1<s.length;o++){const n=s[o],a=s[o+1],r=a.east-n.east,i=a.north-n.north,h=r*r+i*i>0?Math.max(0,Math.min(1,-(n.east*r+n.north*i)/(r*r+i*i))):0;e=Math.min(e,Math.hypot(n.east+h*r,n.north+h*i))}return e}static inside(t,e,s){let o=0;for(const n of s)for(let a=0;a+1<n.length;a++){const r=n[a],i=n[a+1];r.north<=e!=i.north<=e&&r.east+(e-r.north)/(i.north-r.north)*(i.east-r.east)>t&&o++}return o%2===1}static rings(t,e){const s=t.geometry,o=s.type==="Polygon"?[s.coordinates]:s.type==="MultiPolygon"?s.coordinates:[],n=Math.cos(e.lat*Math.PI/180),a=[];for(const r of o)for(const i of r)a.push(i.map(([h,c])=>({east:(h-e.lng)*O.METRES_PER_DEGREE*n,north:(c-e.lat)*O.METRES_PER_DEGREE})));return a}static rectanglesOf(t,e,s){let o=1/0,n=-1/0,a=1/0,r=-1/0;for(const f of t)for(const M of f)o=Math.min(o,M.east),n=Math.max(n,M.east),a=Math.min(a,M.north),r=Math.max(r,M.north);let i=O.FINE_M;(n-o)*(r-a)/(i*i)>O.MAX_CELLS&&(i=O.COARSE_M);const h=[],c=[];for(let f=a+i/2;f<r;f+=i){const M=[];for(const d of t)for(let g=0;g+1<d.length;g++){const m=d[g],E=d[g+1];m.north<=f!=E.north<=f&&M.push(m.east+(f-m.north)/(E.north-m.north)*(E.east-m.east))}M.sort((d,g)=>d-g);for(let d=0;d+1<M.length;d+=2)for(let g=Math.ceil((M[d]-i/2)/i)*i+i/2;g<M[d+1];g+=i)h.push(g),c.push(f)}if(h.length*i*i<s)return[];const l=t.flatMap(f=>f.slice(0,-1).map((M,d)=>({from:M,to:f[d+1]})));return D.ofPoints(h,c,new Array(h.length).fill(e),i,s,O.RECTANGLE_FILL,l)}}class F{id="ign-lidar-topo";name="IGN LiDAR HD + BD TOPO";attribution="Canopy © IGN, LiDAR HD; buildings, bridges and lines © IGN, BD TOPO (Licence Ouverte 2.0), as surveyed on days the services do not give";creditUrl="https://geoservices.ign.fr/lidarhd";contemporary=!0;static BRIDGE_MARGIN_M=30;static MAX_BRIDGE_WINDOWS=8;platform;furniture;constructor(t={},e){this.platform=new C(t),this.furniture=e}covers(t,e){return C.covers(t,e)}later(t,e){return u.later(this.furniture,t,e)}async getSurroundings(t,e){if(!this.covers(t.lat,t.lng))throw new V("no-coverage","The IGN's surveys cover France only");const s=C.radius(e),[o,n,a,r,i,h]=await Promise.allSettled([this.platform.lidar(t,s),this.platform.vectors(t,s,!0),this.platform.photo(t,s),this.furniture?.near(t,e)??Promise.resolve(void 0),this.platform.laserDate(t),this.platform.photoDate(t)]),c=C.lidarRadius(s);if(o.status==="rejected"&&n.status==="rejected")throw o.reason;const l=o.status==="fulfilled"?o.value:void 0,f=n.status==="fulfilled"?n.value:void 0,M=f!==void 0&&f.buildings.length===0&&f.bridges.length===0&&f.lines.length===0;if(o.status==="rejected"&&o.reason instanceof V&&o.reason.reason==="no-coverage"&&M)throw o.reason;return{trees:l?new H(l.heights,l.vegetation,l.size,l.size).trees({metresPerPixel:l.metresPerPixel,radiusM:c}):[],buildings:this.roofed(this.buildings(l,f,t,s),l,a.status==="fulfilled"?a.value:void 0),bridges:f?await this.bridges(f,t,s,l?.structures,c):[],lines:f?X.lines(f,t,s,l?.structures):[],...r.status==="fulfilled"?r.value:{},dates:{...o.status==="fulfilled"&&i.status==="fulfilled"&&i.value?{laser:i.value}:{},...a.status==="fulfilled"&&h.status==="fulfilled"&&h.value?{photo:h.value}:{},...f?.mapDate?{map:f.mapDate}:{},...r.status==="fulfilled"&&u.found(r.value)?{lamps:u.today()}:{}}}}async bridges(t,e,s,o,n){const a=X.bridges(t,e,s,o);let r=0;return Promise.all(a.map(async i=>{if(o!==void 0&&Math.hypot(i.eastM,i.northM)+i.lengthM/2<=n)return i;const h=i.lengthM/2+F.BRIDGE_MARGIN_M;if(r++>=F.MAX_BRIDGE_WINDOWS)return i;const c=ot(i.eastM,-i.northM,e.lat,e.lng);try{const l=await this.platform.lidar(c,h),f=X.bridges(t,c,h,l.structures).sort((M,d)=>Math.hypot(M.eastM,M.northM)-Math.hypot(d.eastM,d.northM))[0];return!f||Math.hypot(f.eastM,f.northM)>i.lengthM/2?i:{...f,eastM:X.tenth(f.eastM+i.eastM),northM:X.tenth(f.northM+i.northM)}}catch{return i}}))}roofed(t,e,s){return _.fit(b.fit(N.fit(t,e,s)))}buildings(t,e,s,o){const n=e?O.buildings(e.buildings,s,o,void 0,void 0,e.zones):[],a=n.length>0||t===void 0?n:new D(t.heights,t.building,t.size,t.size).buildings({metresPerPixel:t.metresPerPixel,radiusM:C.lidarRadius(o),maxBuildings:300});return e?O.named(a,e.zones,s):a}}class at{id="ign-bd-topo";name="IGN BD TOPO";attribution="Buildings, bridges and lines © IGN, BD TOPO (Licence Ouverte 2.0), as drawn on a day the service does not give";creditUrl="https://geoservices.ign.fr/bdtopo";contemporary=!0;platform;furniture;constructor(t={},e){this.platform=new C(t),this.furniture=e}covers(t,e){return C.covers(t,e)}later(t,e){return u.later(this.furniture,t,e)}async getSurroundings(t,e){if(!this.covers(t.lat,t.lng))throw new V("no-coverage","BD TOPO covers France only");const s=C.radius(e),[o,n,a,r]=await Promise.all([this.platform.vectors(t,s,!0),this.platform.photo(t,s).catch(()=>{}),this.furniture?.near(t,e),this.platform.photoDate(t)]);return{trees:[],buildings:_.fit(b.fit(N.fit(O.named(O.buildings(o.buildings,t,s,void 0,void 0,o.zones),o.zones,t),void 0,n))),bridges:X.bridges(o,t,s,void 0),lines:X.lines(o,t,s,void 0),...a,dates:{...o.mapDate?{map:o.mapDate}:{},...n&&r?{photo:r}:{},...u.found(a)?{lamps:u.today()}:{}}}}}class S{static ROOF_SHAPES={flat:"flat",gabled:"gable",gambrel:"gable",saltbox:"gable","half-hipped":"hip",hipped:"hip",pyramidal:"hip",mansard:"hip",round:"gable",dome:"dome",onion:"dome"};static WALL_MATERIALS={brick:"brick",stone:"stone",granite:"stone",sandstone:"stone",limestone:"stone",concrete:"concrete",cement_block:"block",block:"block",wood:"wood",timber_framing:"wood"};static ROOF_MATERIALS={roof_tiles:"tile",tiles:"tile",tile:"tile",slate:"slate",metal:"zinc",zinc:"zinc",tin:"zinc",copper:"zinc",concrete:"concrete",eternit:"other"};static COLOURS={white:"#e8e6e0",grey:"#8c8c8a",gray:"#8c8c8a",black:"#3a3a3a",red:"#a8483a",brown:"#6e4f38",beige:"#d6c9a8",yellow:"#d8c070",orange:"#c9773a",green:"#5f7a52",blue:"#506a8a",tan:"#c0a37a",cream:"#e6dcc0",pink:"#c99a96",silver:"#b4b6b6"};static height(t){const e=Number.parseFloat((t??"").replace(",","."));return Number.isFinite(e)&&e>=2&&e<=500?e:void 0}static levels(t){const e=Number.parseInt(t??"",10);return Number.isFinite(e)&&e>=1&&e<=150?e:void 0}static roofShape(t){return S.ROOF_SHAPES[(t??"").trim().toLowerCase()]}static wallMaterial(t){return S.WALL_MATERIALS[(t??"").trim().toLowerCase()]}static roofMaterial(t){return S.ROOF_MATERIALS[(t??"").trim().toLowerCase()]}static colour(t){const e=(t??"").trim().toLowerCase();return/^#[0-9a-f]{6}$/.test(e)?e:/^#[0-9a-f]{3}$/.test(e)?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:S.COLOURS[e]}}class W{id="osm-buildings";name="OpenStreetMap buildings";attribution="Buildings © OpenStreetMap contributors (ODbL), as drawn on the day of the data, which a recording is not";creditUrl="https://www.openstreetmap.org/copyright";contemporary=!0;static MAX_RADIUS_M=1500;static MIN_AREA_M2=12;static MAX_BUILDINGS=300;client;furniture;constructor(t={},e){this.client=new tt(t),this.furniture=e}covers(){return!0}later(t,e){return u.later(this.furniture,t,e)}async getSurroundings(t,e){const s=Math.min(e,W.MAX_RADIUS_M);let o;try{o=await this.client.query(`[out:json][timeout:30];(way["building"](around:${s},${t.lat},${t.lng});relation["building"]["type"="multipolygon"](around:${s},${t.lat},${t.lng}););out geom;`)}catch(r){throw new V("unreachable",r instanceof Error?r.message:String(r))}const n=await this.furniture?.near(t,e),a=(o.osm3s?.timestamp_osm_base??"").slice(0,10);return{trees:[],buildings:_.fit(b.fit(W.buildings(o,t,s))),bridges:[],lines:[],...n,dates:{.../^\d{4}-\d{2}-\d{2}$/.test(a)?{map:a}:{},...u.found(n)?{lamps:u.today()}:{}}}}static buildings(t,e,s){const o=[];for(const n of t.elements??[]){const a=W.ringsOf(n);if(a.length===0)continue;const r=n.tags??{},i=S.levels(r["building:levels"]),h=S.height(r.height),c={geometry:{type:"Polygon",coordinates:a},properties:{...h?{hauteur:h}:{},...i?{nombre_d_etages:i}:{}}};for(const l of O.buildings([c],e,s,W.MIN_AREA_M2,50))o.push(W.described(l,r,h!==void 0))}return o.sort((n,a)=>Math.hypot(n.eastM,n.northM)-Math.hypot(a.eastM,a.northM)),o.slice(0,W.MAX_BUILDINGS)}static ringsOf(t){const e=o=>{if(!o||o.length<4)return;const n=o.map(i=>[i.lon,i.lat]),a=n[0],r=n[n.length-1];return a[0]===r[0]&&a[1]===r[1]?n:void 0};if(t.type==="way"){const o=e(t.geometry);return o?[o]:[]}return(t.members??[]).filter(o=>o.role==="outer").map(o=>e(o.geometry)).filter(o=>o!==void 0).slice(0,1)}static described(t,e,s){const o=S.wallMaterial(e["building:material"]),n=S.roofMaterial(e["roof:material"]),a=S.colour(e["building:colour"]),r=S.colour(e["roof:colour"])??_.roofColor(n),i=S.roofShape(e["roof:shape"]),h=a?{color:a}:void 0;let c,l=t.heightM;if(i==="gable"||i==="hip"||i==="dome"){const g=S.height(e["roof:height"]),m=Math.round((g??Math.min(5,Math.max(1.5,.29*Math.min(t.widthM,t.lengthM))))*10)/10;s||(l=Math.round((t.heightM+m)*10)/10),c={shape:i,riseM:m,...e["roof:orientation"]==="across"?{ridge:"depth"}:{},...r?{color:r}:{}}}else(i==="flat"||r)&&(c={shape:"flat",riseM:0,...r?{color:r}:{}});const{style:f,builtYear:M,closedAtNight:d}=b.ofOsm(e);return{...t,heightM:l,...f?{style:f}:{},...M!==void 0?{builtYear:M}:{},...d?{closedAtNight:d}:{},...e.name?{name:e.name}:{},...o?{wallMaterial:o}:{},...n?{roofMaterial:n}:{},...h?{facade:h}:{},...c?{roof:c}:{}}}}class L{credit={name:"Ville de Paris, Éclairage public",url:"https://opendata.paris.fr/explore/dataset/eclairage-public/",licence:"ODbL",of:"lamps"};static BOUNDS={south:48.8156,north:48.9022,west:2.2241,east:2.4698};static ENDPOINT="https://opendata.paris.fr/api/explore/v2.1/catalog/datasets/eclairage-public/records";static PAGE=100;static MAX=150;static MAX_PAGES=4;static METRES_PER_DEGREE=111320;static SAME_COLUMN_M=.5;static MIN_HEIGHT_M=2;fetchImpl;constructor(t){this.fetchImpl=t??fetch.bind(globalThis)}covers(t,e){const s=L.BOUNDS;return t>=s.south&&t<=s.north&&e>=s.west&&e<=s.east}async lampsNear(t,e){const s=[];let o=[];for(let n=0;n<L.MAX_PAGES&&o.length<L.MAX;n++){const a=await this.fetchImpl(L.query(t,e,L.PAGE,n*L.PAGE));if(!a.ok)throw new Error(`opendata.paris.fr refused (${a.status})`);const r=(await a.json()).results??[];if(s.push(...r),o=L.lampsFrom(s,t),r.length<L.PAGE)break}return o.slice(0,L.MAX)}static query(t,e,s,o){const n=`geom'POINT(${t.lng.toFixed(6)} ${t.lat.toFixed(6)})'`,a=new URLSearchParams({select:"geo_point_2d,lib_ouvrag,lampe_temperature_couleur,lampe_flux,support_hauteur",where:`within_distance(geo_point_2d,${n},${Math.round(e)}m)`,order_by:`distance(geo_point_2d,${n})`,limit:String(s),offset:String(o)});return`${L.ENDPOINT}?${a}`}static lampsFrom(t,e){const s=Math.cos(e.lat*Math.PI/180),o=a=>{const r=typeof a=="number"?a:Number.parseFloat(a??"");return Number.isFinite(r)&&r>0?r:void 0},n=[];for(const a of t){const r=a.geo_point_2d;if(!r||a.lib_ouvrag==="Projecteur")continue;const i=Math.round((r.lon-e.lng)*L.METRES_PER_DEGREE*s*10)/10,h=Math.round((r.lat-e.lat)*L.METRES_PER_DEGREE*10)/10,c=o(a.lampe_flux),l=n.find(d=>Math.hypot(d.eastM-i,d.northM-h)<L.SAME_COLUMN_M);if(l){c!==void 0&&(l.lumens=(l.lumens??0)+c);continue}const f=o(a.lampe_temperature_couleur),M=o(a.support_hauteur);n.push({eastM:i,northM:h,...M!==void 0&&M>=L.MIN_HEIGHT_M?{heightM:M}:{},...f!==void 0?{colorTemperatureK:f}:{},...c!==void 0?{lumens:c}:{},...a.lib_ouvrag==="Console"?{mount:"wall"}:{}})}return n}}class T{constructor(t,e){this.roads=t,this.fetchImpl=e??fetch.bind(globalThis)}credit={name:"Ville de Paris, Signalisation lumineuse tricolore",url:"https://opendata.paris.fr/explore/dataset/signalisation-tricolore/",licence:"ODbL",of:"signals"};static BOUNDS={south:48.8156,north:48.9022,west:2.2241,east:2.4698};static ENDPOINT="https://opendata.paris.fr/api/explore/v2.1/catalog/datasets/signalisation-tricolore/records";static PAGE=100;static MAX_PAGES=5;static MAX=160;static METRES_PER_DEGREE=111320;static SAME_POST_M=.8;static SEARCH_M=15;static PEDESTRIAN_ALONG_M=.4;fetchImpl;covers(t,e){const s=T.BOUNDS;return t>=s.south&&t<=s.north&&e>=s.west&&e<=s.east}async signalsNear(t,e){const s=(e+T.SEARCH_M)/T.METRES_PER_DEGREE,o=s/Math.cos(t.lat*Math.PI/180),[n,a]=await Promise.all([this.lenses(t,e),this.roads.getRoads({south:t.lat-s,north:t.lat+s,west:t.lng-o,east:t.lng+o})]);return T.signalsFrom(n,a,t)}async lenses(t,e){const s=[];for(let o=0;o<T.MAX_PAGES;o++){const n=await this.fetchImpl(T.query(t,e,T.PAGE,o*T.PAGE));if(!n.ok)throw new Error(`opendata.paris.fr refused (${n.status})`);const a=(await n.json()).results??[];if(s.push(...a),a.length<T.PAGE)break}return s}static query(t,e,s,o){const n=`geom'POINT(${t.lng.toFixed(6)} ${t.lat.toFixed(6)})'`,a=new URLSearchParams({select:"geo_point_2d,lib_regime",where:`within_distance(geo_point_2d,${n},${Math.round(e)}m)`,order_by:`distance(geo_point_2d,${n})`,limit:String(s),offset:String(o)});return`${T.ENDPOINT}?${a}`}static signalsFrom(t,e,s){const o=Math.cos(s.lat*Math.PI/180),n=(h,c)=>[(c-s.lng)*T.METRES_PER_DEGREE*o,(h-s.lat)*T.METRES_PER_DEGREE],a=[];for(const h of t){if(!h.geo_point_2d)continue;const c=n(h.geo_point_2d.lat,h.geo_point_2d.lon),l=(h.lib_regime??"").toUpperCase(),f=/ROUGE|JAUNE|VERT/.test(l),M=/PASSEZ|ATTENDEZ/.test(l);if(!f&&!M)continue;let d=a.find(g=>Math.hypot(g.at[0]-c[0],g.at[1]-c[1])<T.SAME_POST_M);d||a.push(d={at:c,vehicles:0,pedestrians:0}),f&&d.vehicles++,M&&d.pedestrians++}const r=e.map(h=>({way:h,points:h.points.map(c=>n(c.lat,c.lng))})),i=[];for(const h of a){const c=T.nearestRoad(h.at,r);if(!c)continue;const[l,f]=c.unit,M=T.heading(c.unit),d=(h.at[0]-c.foot[0])*f-(h.at[1]-c.foot[1])*l>=0,g=c.way.direction,m=g==="forward"?M:g==="backward"?(M+180)%360:d?M:(M+180)%360,E=w=>Math.round(w*10)/10,v=w=>E((w%360+360)%360);if(h.vehicles>0&&i.push({eastM:E(h.at[0]),northM:E(h.at[1]),headingDeg:v(m+180),for:"vehicles",phase:j.phaseOf(m)}),h.pedestrians>0){const w=T.heading([c.foot[0]-h.at[0],c.foot[1]-h.at[1]]),p=h.vehicles>0?T.PEDESTRIAN_ALONG_M:0;i.push({eastM:E(h.at[0]+l*p),northM:E(h.at[1]+f*p),headingDeg:v(Number.isNaN(w)?M+90:w),for:"pedestrians",phase:j.phaseOf(M)})}}return i.sort((h,c)=>Math.hypot(h.eastM,h.northM)-Math.hypot(c.eastM,c.northM)).slice(0,T.MAX)}static nearestRoad(t,e){let s;for(const{way:o,points:n}of e)for(let a=1;a<n.length;a++){const[r,i]=n[a-1],[h,c]=n[a],l=Math.hypot(h-r,c-i);if(l===0)continue;const f=[(h-r)/l,(c-i)/l],M=Math.max(0,Math.min(l,(t[0]-r)*f[0]+(t[1]-i)*f[1])),d=[r+f[0]*M,i+f[1]*M],g=Math.hypot(t[0]-d[0],t[1]-d[1]);g<=T.SEARCH_M&&(!s||g<s.distance)&&(s={way:o,unit:f,foot:d,distance:g})}return s}static heading([t,e]){return t===0&&e===0?Number.NaN:Math.round((Math.atan2(t,e)*180/Math.PI+360)%360*10)/10}}const K=B.point("surroundings").provide(B.BUILT_IN,[{id:"ign-lidar-topo",name:"IGN LiDAR HD + BD TOPO",credit:"© IGN, LiDAR HD and BD TOPO, Licence Ouverte 2.0; street lamps © OpenStreetMap contributors",creditUrl:"https://geoservices.ign.fr/lidarhd",create:()=>new I(new F({},new u({},U.TOWN_LAMPS,U.TOWN_SIGNALS)))},{id:"ign-lidar-hd",name:"IGN LiDAR HD",credit:"© IGN, LiDAR HD, Licence Ouverte 2.0; street lamps © OpenStreetMap contributors",creditUrl:"https://geoservices.ign.fr/lidarhd",create:()=>new I(new nt({},new u({},U.TOWN_LAMPS,U.TOWN_SIGNALS)))},{id:"ign-bd-topo",name:"IGN BD TOPO",credit:"© IGN, BD TOPO, Licence Ouverte 2.0; street lamps © OpenStreetMap contributors",creditUrl:"https://geoservices.ign.fr/bdtopo",create:()=>new I(new at({},new u({},U.TOWN_LAMPS,U.TOWN_SIGNALS)))},{id:"osm-buildings",name:"OpenStreetMap buildings",credit:"Buildings and street lamps © OpenStreetMap contributors (ODbL)",creditUrl:"https://www.openstreetmap.org/copyright",create:()=>new I(new W({},new u({},U.TOWN_LAMPS,U.TOWN_SIGNALS)))}]);class U{static DEFAULT_ID=K[0].id;static WORLD_ID="osm-buildings";static TOWN_LAMPS=[new L];static TOWN_SIGNALS=[new T(new et)];static NONE="none";static byId(t){return t===U.NONE?void 0:K.find(e=>e.id===t)??K[0]}static providerFor(t,e,s){const o=U.byId(t)?.create();if(t!==void 0&&t!==U.DEFAULT_ID)return o?.covers(e,s)?o:void 0;const n=K.find(r=>r.id===U.WORLD_ID).create(),a=[o,n].filter(r=>r!==void 0&&r.covers(e,s));return a.length>1?new st(a):a[0]}}export{K as SURROUNDINGS_SOURCES,U as SurroundingsSources};