@rr0/ufoathome 0.200.0 → 0.202.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 (441) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +3 -0
  2. package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +3 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +3 -0
  4. package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +3 -0
  5. package/dist-embed-interview/rr0-interview.mjs +10 -6
  6. package/dist-embed-scene/{AirshipEditor-B0RloPOv.js → AirshipEditor-BnRmKeVs.js} +1 -1
  7. package/dist-embed-scene/{AirshipFlight-D6tC26P5.js → AirshipFlight-C9DSPGwk.js} +1 -1
  8. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  9. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  10. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  11. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  12. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  13. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  14. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  15. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  16. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  17. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  18. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  19. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  20. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  21. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  22. package/dist-embed-scene/AuroraSimulation-Dh4kZW1x.js +157 -0
  23. package/dist-embed-scene/{BalloonEditor-D1b8pmSn.js → BalloonEditor-BehJs6H-.js} +2 -2
  24. package/dist-embed-scene/{BalloonFlight-D015vbBe.js → BalloonFlight-BYn4diw1.js} +1 -1
  25. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  26. package/dist-embed-scene/{BirdEditor-CxGMe4UD.js → BirdEditor-dOp1sGsz.js} +1 -1
  27. package/dist-embed-scene/{BirdFlock-D2mckZ_l.js → BirdFlock-CfJeXvWu.js} +1 -1
  28. package/dist-embed-scene/{DroneEditor-BNGmR5II.js → DroneEditor-CBoR4fJ_.js} +1 -1
  29. package/dist-embed-scene/{DroneFlight-DKHsNqDw.js → DroneFlight-DSE1OXqh.js} +1 -1
  30. package/dist-embed-scene/{DroneParameters-Bq6XBchK.js → DroneParameters-D3EOg4oe.js} +1 -1
  31. package/dist-embed-scene/{LanternEditor-FU0WHV3j.js → LanternEditor-CbcA7K8y.js} +2 -2
  32. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  33. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  34. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  35. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  36. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  37. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  38. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  39. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  40. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  41. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  42. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  43. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  44. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  45. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  46. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  47. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  48. package/dist-embed-scene/{SkyLantern-a9qLkbZo.js → SkyLantern-Dp_B40X0.js} +1 -1
  49. package/dist-embed-scene/rr0-scene.mjs +416 -337
  50. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  51. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  52. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  53. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  54. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  55. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  56. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  57. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  58. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  59. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  60. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  61. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  62. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  63. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  64. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  65. package/dist-embed-sighting/AuroraSimulation-C7LAHgWM.js +157 -0
  66. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  67. package/dist-embed-sighting/{CaseReportExport-B13vvVvn.js → CaseReportExport-CkWf0HNx.js} +1 -1
  68. package/dist-embed-sighting/{InterviewElement-BduwyUn5.js → InterviewElement-B_ULRy5z.js} +9 -5
  69. package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +3 -0
  70. package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +3 -0
  71. package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +3 -0
  72. package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +3 -0
  73. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  74. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  75. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  76. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  77. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  78. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  79. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  80. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  81. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  82. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  83. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  84. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  85. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  86. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  87. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  88. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  89. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  90. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  91. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  92. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  93. package/dist-embed-sighting/rr0-sighting.mjs +431 -352
  94. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  95. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-Bz1OjSjY.js} +1 -1
  96. package/dist-embed-sighting-editor/AirshipEditor-BlJXyxlr.js +16 -0
  97. package/dist-embed-sighting-editor/{AirshipFlight-Bh7J0sWg.js → AirshipFlight-Cx40Y8JT.js} +1 -1
  98. package/dist-embed-sighting-editor/Aurora-Ldk66p1A.js +1 -0
  99. package/dist-embed-sighting-editor/AuroraEditor-CGSomAFk.js +8 -0
  100. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  101. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  102. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  103. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  104. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  105. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  106. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  107. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  108. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  109. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  110. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  111. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  112. package/dist-embed-sighting-editor/AuroraSimulation-vKcv2Hue.js +157 -0
  113. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BNfSwq_l.js → BallesterGuaspAssessor-Bylahnc2.js} +1 -1
  114. package/dist-embed-sighting-editor/BalloonEditor-CgO4LaWn.js +24 -0
  115. package/dist-embed-sighting-editor/{BalloonFlight-DqwGZzum.js → BalloonFlight-hLr_4TFU.js} +1 -1
  116. package/dist-embed-sighting-editor/{BeamEditor-C9VQ2YBN.js → BeamEditor-B8qreA3j.js} +1 -1
  117. package/dist-embed-sighting-editor/BeamSystem-D0hrju5J.js +1 -0
  118. package/dist-embed-sighting-editor/BirdEditor-BNzrfSqX.js +16 -0
  119. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-iSovVEZd.js} +1 -1
  120. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-Bd_pKafG.js} +2 -2
  121. package/dist-embed-sighting-editor/{CaseElement-D_ItKhFD.js → CaseElement-DPlro-7S.js} +3 -3
  122. package/dist-embed-sighting-editor/{CaseReportExport-BSLhYJJA.js → CaseReportExport-C1g5C8hi.js} +3 -3
  123. package/dist-embed-sighting-editor/{ContrailSystem-C8K88Cwo.js → ContrailSystem-D3tXAg2r.js} +1 -1
  124. package/dist-embed-sighting-editor/{ControlPasses-DNMyuRwb.js → ControlPasses-BMEmppip.js} +1 -1
  125. package/dist-embed-sighting-editor/{CoverageAssessor-p-LX-eEi.js → CoverageAssessor-uzQnTEH8.js} +1 -1
  126. package/dist-embed-sighting-editor/{DroneEditor-v0oaeAUh.js → DroneEditor-BFsArPKi.js} +1 -1
  127. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-B96pVrY1.js} +1 -1
  128. package/dist-embed-sighting-editor/{DroneParameters-B1oTz3dZ.js → DroneParameters-DW-enQUo.js} +1 -1
  129. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-CBGkjw03.js} +1 -1
  130. package/dist-embed-sighting-editor/GLTFLoader-2Zbfb3kh.js +1 -0
  131. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-DmeZ_YZO.js} +1 -1
  132. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Cp95Dg-h.js} +1 -1
  133. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-CdadOwd2.js} +1 -1
  134. package/dist-embed-sighting-editor/GeographicFigures-Bo9rsT_L.js +1 -0
  135. package/dist-embed-sighting-editor/{HeadlightSystem-DHoSdTng.js → HeadlightSystem-CBmEcC9f.js} +1 -1
  136. package/dist-embed-sighting-editor/{HynekAssessor-ByXW15nZ.js → HynekAssessor-uub2VxTi.js} +1 -1
  137. package/dist-embed-sighting-editor/InterviewEditorElement-_1fa2bG7.js +294 -0
  138. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-Ala811KB.js} +6 -2
  139. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  140. package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +3 -0
  141. package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +3 -0
  142. package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +3 -0
  143. package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +3 -0
  144. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-DIxM5Hpx.js} +1 -1
  145. package/dist-embed-sighting-editor/LanternEditor-CjQVFowY.js +24 -0
  146. package/dist-embed-sighting-editor/{LaserBeam-iHLKAi5q.js → LaserBeam-BVc8Mvhr.js} +1 -1
  147. package/dist-embed-sighting-editor/LaunchEditor-Cz8Mzo4a.js +22 -0
  148. package/dist-embed-sighting-editor/{LaunchPlume-BJwW1kU1.js → LaunchPlume-CvBhTPgN.js} +1 -1
  149. package/dist-embed-sighting-editor/LaunchSimulation-CkZIG-3P.js +1 -0
  150. package/dist-embed-sighting-editor/ModelSource-B153oeTu.js +1 -0
  151. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-BUL_OLFv.js} +1 -1
  152. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-BzBLcY9s.js} +1 -1
  153. package/dist-embed-sighting-editor/ModuleConformance-Cr6fM28A.js +2 -0
  154. package/dist-embed-sighting-editor/ModuleSession-WA6lqfV6.js +3 -0
  155. package/dist-embed-sighting-editor/ModuleThree-CB_EjTOI.js +1 -0
  156. package/dist-embed-sighting-editor/{ModulesPanelElement-B9R5rI0T.js → ModulesPanelElement-BsRg3mzl.js} +3 -3
  157. package/dist-embed-sighting-editor/{NearestApproach-pefE2Svz.js → NearestApproach-Bnx9Ld5_.js} +1 -1
  158. package/dist-embed-sighting-editor/PictureRegistration-D8fDZm4v.js +1 -0
  159. package/dist-embed-sighting-editor/{PoherAssessor-BEiAV-7m.js → PoherAssessor-CNj_Nyci.js} +1 -1
  160. package/dist-embed-sighting-editor/QuestionnaireFeed-B0j8W4JM.js +1 -0
  161. package/dist-embed-sighting-editor/QuestionnaireForm-lzn9MPr2.js +1 -0
  162. package/dist-embed-sighting-editor/QuestionnaireImport-BmcxlQBq.js +5 -0
  163. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  164. package/dist-embed-sighting-editor/RailwaySystem-6bwbv8UB.js +41 -0
  165. package/dist-embed-sighting-editor/ReentryEditor-BWCK2g_s.js +28 -0
  166. package/dist-embed-sighting-editor/{ReentrySimulation-PK2Z7Smw.js → ReentrySimulation-B09JXMu5.js} +1 -1
  167. package/dist-embed-sighting-editor/ReferenceSystem-8QgwbbAG.js +1 -0
  168. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-Dl6zVQIx.js} +1 -1
  169. package/dist-embed-sighting-editor/ScenarioReadings-DyMshXS4.js +1 -0
  170. package/dist-embed-sighting-editor/ScenarioSweep-ByqOTfs2.js +1 -0
  171. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  172. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  173. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  174. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  175. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-c5zNw0Hi.js} +1 -1
  176. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-CDjoBwy_.js} +1 -1
  177. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-CoZNmFu3.js} +1 -1
  178. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CVEahBpq.js} +1 -1
  179. package/dist-embed-sighting-editor/SearchlightEditor-BpwPOhJ6.js +8 -0
  180. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  181. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  182. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  183. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  184. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  185. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  186. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  187. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  188. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  189. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  190. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  191. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  192. package/dist-embed-sighting-editor/SearchlightSystem-CEG52QDx.js +1 -0
  193. package/dist-embed-sighting-editor/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  194. package/{dist-embed-ufoathome/SightingEditorMessages_es-CKXlDIja.js → dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  195. package/dist-embed-sighting-editor/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  196. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  197. package/dist-embed-sighting-editor/{SightingElement-BpRRhJzS.js → SightingElement-BQdiez39.js} +4 -4
  198. package/dist-embed-sighting-editor/{SightingFileEditor-B7GimING.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  199. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  200. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  201. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  202. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  203. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-D6bru_e_.js} +1 -1
  204. package/dist-embed-sighting-editor/{TraceSystem-JWQpvSdA.js → TraceSystem-DZMUxSn-.js} +2 -2
  205. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-DdCKc-Ez.js} +1 -1
  206. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-CzJg9lBG.js} +1 -1
  207. package/dist-embed-sighting-editor/{WaterSystem-DwGepfDm.js → WaterSystem-CB5jE7qB.js} +2 -2
  208. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  209. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  210. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  211. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  212. package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +7 -0
  213. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-D4P6e28u.js} +1 -1
  214. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-BJF9C-Rb.js} +1 -1
  215. package/dist-embed-sighting-editor/interviewSchema-r5bW7skq.js +1 -0
  216. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  217. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +573 -467
  218. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  219. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-CqL7lcmF.js} +1 -1
  220. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Bu3my6S4.js} +2 -2
  221. package/dist-embed-ufoathome/AdsbLolArchiveProvider-KbJPyJ97.js +1 -0
  222. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  223. package/dist-embed-ufoathome/{AirshipFlight-CX32XrkA.js → AirshipFlight-Dzpw8HRM.js} +1 -1
  224. package/dist-embed-ufoathome/Aurora-C_mCH4JM.js +1 -0
  225. package/dist-embed-ufoathome/AuroraEditor-Dzvgh6e0.js +8 -0
  226. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  227. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  228. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  229. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  230. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  231. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  232. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  233. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  234. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  235. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  236. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  237. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  238. package/dist-embed-ufoathome/AuroraSimulation-BRUnHmlp.js +157 -0
  239. package/dist-embed-ufoathome/BallesterGuaspAssessor-DurdUgbG.js +1 -0
  240. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  241. package/dist-embed-ufoathome/{BalloonFlight-DC31tnhH.js → BalloonFlight-CztT6ddg.js} +1 -1
  242. package/dist-embed-ufoathome/{BeamEditor-WKZhN3Hp.js → BeamEditor-Ccvx7l7x.js} +2 -2
  243. package/dist-embed-ufoathome/BeamSystem-CPM8m17q.js +1 -0
  244. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  245. package/dist-embed-ufoathome/{BodyEditor-uxbNOCFJ.js → BodyEditor-BG--NjnZ.js} +1 -1
  246. package/dist-embed-ufoathome/CaseEditorElement-0J_TCeiq.js +3175 -0
  247. package/dist-embed-ufoathome/{CaseElement-Lil-kZRm.js → CaseElement-CRXPyMMR.js} +3 -3
  248. package/dist-embed-ufoathome/{CaseReportExport-DX7PQi1u.js → CaseReportExport-DKrBXPgZ.js} +3 -3
  249. package/dist-embed-ufoathome/{ColumnResize-DXi_g6cq.js → ColumnResize-DV-byvDt.js} +7 -7
  250. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  251. package/dist-embed-ufoathome/ControlPasses-CKvTCqTI.js +29 -0
  252. package/dist-embed-ufoathome/CoverageAssessor-MeOMUjkZ.js +1 -0
  253. package/dist-embed-ufoathome/{DroneEditor-BSYPs6jg.js → DroneEditor-D60uhSHO.js} +1 -1
  254. package/dist-embed-ufoathome/{DroneParameters-O6pYnfX7.js → DroneParameters-CfTAaLCT.js} +1 -1
  255. package/dist-embed-ufoathome/Flightradar24Provider-DxTfswSh.js +1 -0
  256. package/dist-embed-ufoathome/GLTFLoader-pi-JKaNa.js +1 -0
  257. package/dist-embed-ufoathome/GeoJsonExport-iyhoKOUU.js +2 -0
  258. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  259. package/dist-embed-ufoathome/{GeographicFigures-D9njFJso.js → GeographicFigures-DBmuFlvH.js} +1 -1
  260. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  261. package/dist-embed-ufoathome/HynekAssessor-Bda6csgM.js +1 -0
  262. package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +1 -0
  263. package/dist-embed-ufoathome/InterviewEditorElement-BA060rqJ.js +294 -0
  264. package/dist-embed-ufoathome/{InterviewElement-kdRloxH-.js → InterviewElement-DvqsCA3I.js} +6 -2
  265. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  266. package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +3 -0
  267. package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +3 -0
  268. package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +3 -0
  269. package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +3 -0
  270. package/dist-embed-ufoathome/KmlExport-DEPgRRWe.js +19 -0
  271. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  272. package/dist-embed-ufoathome/{LaserBeam-6xHkBslk.js → LaserBeam--dquPX_h.js} +1 -1
  273. package/dist-embed-ufoathome/LaunchEditor-D3P0GkLr.js +22 -0
  274. package/dist-embed-ufoathome/{LaunchPlume-BRYgiI9s.js → LaunchPlume-w4l4TR4A.js} +1 -1
  275. package/dist-embed-ufoathome/LaunchSimulation-BpZd-Nov.js +1 -0
  276. package/dist-embed-ufoathome/ModelSource-Csnm3RH_.js +1 -0
  277. package/dist-embed-ufoathome/ModelThumbnails-Cnt2GxTb.js +1 -0
  278. package/dist-embed-ufoathome/ModelViewer-DOfAkPgK.js +1 -0
  279. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  280. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  281. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  282. package/dist-embed-ufoathome/{ModulesPanelElement-fUfO3DeN.js → ModulesPanelElement-DH1oroWm.js} +3 -3
  283. package/dist-embed-ufoathome/{NearestApproach-MxAHwcUE.js → NearestApproach-DJ98M81-.js} +1 -1
  284. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  285. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  286. package/dist-embed-ufoathome/PoherAssessor-4zSdFnFp.js +1 -0
  287. package/dist-embed-ufoathome/QuestionnaireFeed-W69udpmT.js +1 -0
  288. package/dist-embed-ufoathome/QuestionnaireForm-U78nFPn5.js +1 -0
  289. package/dist-embed-ufoathome/QuestionnaireImport-Q5uHxQwU.js +5 -0
  290. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  291. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  292. package/dist-embed-ufoathome/ReentryEditor-DEi9nT0z.js +28 -0
  293. package/dist-embed-ufoathome/ReentrySimulation-CSO1vgro.js +1 -0
  294. package/dist-embed-ufoathome/ReferenceSystem--tiMGm4e.js +1 -0
  295. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  296. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  297. package/dist-embed-ufoathome/ScenarioReadings-Dzdgopl3.js +1 -0
  298. package/dist-embed-ufoathome/ScenarioSweep-CMcleprC.js +1 -0
  299. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  300. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  301. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  302. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  303. package/dist-embed-ufoathome/SearchlightEditor--1uL8bTa.js +8 -0
  304. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  305. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  306. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  307. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  308. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  309. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  310. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  311. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  312. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  313. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  314. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  315. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  316. package/dist-embed-ufoathome/SearchlightSystem-7bntVtp_.js +1 -0
  317. package/dist-embed-ufoathome/ShareDialogElement-Dlfy9NCE.js +5186 -0
  318. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  319. package/dist-embed-ufoathome/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  320. package/{dist-embed-sighting-editor/SightingEditorMessages_es-CKXlDIja.js → dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  321. package/dist-embed-ufoathome/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  322. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  323. package/dist-embed-ufoathome/{SightingElement-Ct3sIryk.js → SightingElement-BJSNmFM6.js} +4 -4
  324. package/dist-embed-ufoathome/{SightingFileEditor-D1s9Dv6G.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  325. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  326. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  327. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  328. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  329. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  330. package/dist-embed-ufoathome/{TraceSystem-Bop2Zoa_.js → TraceSystem-Cq2TgP-u.js} +2 -2
  331. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  332. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  333. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  334. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  335. package/dist-embed-ufoathome/VideoButton-MRJlVNm_.js +1 -0
  336. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  337. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  338. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  339. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  340. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  341. package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +7 -0
  342. package/dist-embed-ufoathome/interviewSchema-r5bW7skq.js +1 -0
  343. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  344. package/dist-embed-ufoathome/rr0-ufoathome.mjs +41 -31
  345. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  346. package/dist-embed-ufoathome/surroundingsSources--qffL_nJ.js +1 -0
  347. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  348. package/dist-embed-ufoathome/trafficRuntime-CTCGr90P.js +2 -0
  349. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  350. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  351. package/package.json +4 -2
  352. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  353. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  354. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  355. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  356. package/dist-embed-scene/BeamSystem-BtLpnMXz.js +0 -1
  357. package/dist-embed-scene/ModuleSession-BodXzA3g.js +0 -3
  358. package/dist-embed-scene/ModuleThree-D7qc50Hj.js +0 -1
  359. package/dist-embed-scene/sightingSchema-BDxKVE3v.js +0 -1
  360. package/dist-embed-sighting/BeamSystem-DJZTpG0z.js +0 -1
  361. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  362. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  363. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  364. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  365. package/dist-embed-sighting/ModuleSession-BZbes53G.js +0 -3
  366. package/dist-embed-sighting/ModuleThree-CPPPDBO4.js +0 -1
  367. package/dist-embed-sighting/sightingSchema-BDxKVE3v.js +0 -1
  368. package/dist-embed-sighting-editor/AirshipEditor-rA-Sr4D1.js +0 -16
  369. package/dist-embed-sighting-editor/BalloonEditor-CPZoayzz.js +0 -24
  370. package/dist-embed-sighting-editor/BeamSystem-Br0h-uSI.js +0 -1
  371. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  372. package/dist-embed-sighting-editor/GLTFLoader-DT3hr416.js +0 -1
  373. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  374. package/dist-embed-sighting-editor/InterviewEditorElement-CcXO_w9X.js +0 -242
  375. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  376. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  377. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  378. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  379. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  380. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  381. package/dist-embed-sighting-editor/LaunchEditor-f4kJ5pWG.js +0 -22
  382. package/dist-embed-sighting-editor/LaunchSimulation-B3vlOUUu.js +0 -1
  383. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  384. package/dist-embed-sighting-editor/ModuleConformance-DF6CNBvD.js +0 -2
  385. package/dist-embed-sighting-editor/ModuleSession-BgxzArtm.js +0 -3
  386. package/dist-embed-sighting-editor/ModuleThree-DXFS5Pjb.js +0 -1
  387. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  388. package/dist-embed-sighting-editor/RailwaySystem-7A12KSnk.js +0 -41
  389. package/dist-embed-sighting-editor/ReentryEditor-Ch9_6pS8.js +0 -28
  390. package/dist-embed-sighting-editor/ReferenceSystem-Bt7l5nHl.js +0 -1
  391. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  392. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  393. package/dist-embed-sighting-editor/sightingSchema-C1S-Kr9w.js +0 -1
  394. package/dist-embed-ufoathome/AdsbLolArchiveProvider-DzC2OwjF.js +0 -1
  395. package/dist-embed-ufoathome/AirshipEditor-DDmu9JT8.js +0 -16
  396. package/dist-embed-ufoathome/BallesterGuaspAssessor-Bn5TGAvJ.js +0 -1
  397. package/dist-embed-ufoathome/BalloonEditor-CGrzszk1.js +0 -24
  398. package/dist-embed-ufoathome/BeamSystem-CWJkeTmf.js +0 -1
  399. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  400. package/dist-embed-ufoathome/CaseEditorElement-DNZt-oc7.js +0 -3148
  401. package/dist-embed-ufoathome/ContrailSystem-DBPA_rNt.js +0 -1
  402. package/dist-embed-ufoathome/ControlPasses-BgvVicQS.js +0 -29
  403. package/dist-embed-ufoathome/CoverageAssessor-BiDfEPse.js +0 -1
  404. package/dist-embed-ufoathome/Flightradar24Provider-DJtlvu72.js +0 -1
  405. package/dist-embed-ufoathome/GLTFLoader-2tuw29HP.js +0 -1
  406. package/dist-embed-ufoathome/GeoJsonExport-DHZOlC4h.js +0 -2
  407. package/dist-embed-ufoathome/HeadlightSystem-h2F6DzUW.js +0 -34
  408. package/dist-embed-ufoathome/HynekAssessor-C1TFQQNc.js +0 -1
  409. package/dist-embed-ufoathome/InterviewEditorElement-BythuoeV.js +0 -242
  410. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  411. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  412. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  413. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  414. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  415. package/dist-embed-ufoathome/KmlExport-Qih5jB1R.js +0 -19
  416. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  417. package/dist-embed-ufoathome/LaunchEditor-D5FlWL04.js +0 -22
  418. package/dist-embed-ufoathome/LaunchSimulation-DS7JtdJz.js +0 -1
  419. package/dist-embed-ufoathome/ModelSource-DQDWsfAb.js +0 -1
  420. package/dist-embed-ufoathome/ModelThumbnails-DovTOA0Y.js +0 -1
  421. package/dist-embed-ufoathome/ModelViewer-DIvwFZDg.js +0 -1
  422. package/dist-embed-ufoathome/ModuleConformance-VMgvNBlc.js +0 -2
  423. package/dist-embed-ufoathome/ModuleSession-D6wg8SbE.js +0 -3
  424. package/dist-embed-ufoathome/ModuleThree-CLkMHq_q.js +0 -1
  425. package/dist-embed-ufoathome/PictureRegistration-Dnh3w7Ph.js +0 -1
  426. package/dist-embed-ufoathome/PoherAssessor-h8_-WKIK.js +0 -1
  427. package/dist-embed-ufoathome/RailwaySystem-DZ2hctVL.js +0 -41
  428. package/dist-embed-ufoathome/ReentryEditor-DxyGO7_Z.js +0 -28
  429. package/dist-embed-ufoathome/ReentrySimulation-B55Uq-6-.js +0 -1
  430. package/dist-embed-ufoathome/ReferenceSystem-DJosChqB.js +0 -1
  431. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  432. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  433. package/dist-embed-ufoathome/ShareDialogElement--Mjaublp.js +0 -9222
  434. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  435. package/dist-embed-ufoathome/VideoButton-DzEuUvRs.js +0 -1
  436. package/dist-embed-ufoathome/WaterSystem-KQAAtpYS.js +0 -19
  437. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  438. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  439. package/dist-embed-ufoathome/sightingSchema-C1S-Kr9w.js +0 -1
  440. package/dist-embed-ufoathome/surroundingsSources-LtEaPPRc.js +0 -1
  441. package/dist-embed-ufoathome/trafficRuntime-uPEasExE.js +0 -2
@@ -1 +0,0 @@
1
- import{b2 as d,cZ as p,az as l,bb as f,c_ as m,bi as u,bp as w,bq as b,c$ as g,d0 as y,c4 as M,b6 as S,b7 as v}from"./ShareDialogElement--Mjaublp.js";class c{static key(e){return"url"in e?`url:${e.url}|${e.headingOffsetDeg??0}`:"shape"in e?`shape:${e.shape}`:`decor:${e.decorKind}`}static async build(e){const s=new d;if("url"in e){const a=await p(e.url);a.rotation.y=-(e.headingOffsetDeg??0)*Math.PI/180,s.add(a)}else"shape"in e?s.add(c.shapeOf(e.shape)):s.add(l.build({id:"preview",kind:e.decorKind,eastM:0,northM:0},!1));return s}static shapeOf(e){if(e==="figure")return l.build({id:"preview",kind:"entity",eastM:0,northM:0},!1);const s=new f(m.unitGeometry(e),new u({color:13158608,roughness:.5,metalness:0}));return e==="ellipsoid"&&s.scale.set(1,.55,1),s}static dispose(e){e.traverse(s=>{const a=s;if(a.isMesh){a.geometry?.dispose();for(const t of[a.material].flat())t.dispose()}})}static stage(e,s){const a=new w().setFromObject(e);if(a.isEmpty())return;const t=a.getBoundingSphere(new b),r=new d;e.position.sub(t.center),r.add(e);const n=new g;n.add(r),n.add(new y(16777215,6715272,1.6));const o=new M(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new S(30,s,t.radius*.05,t.radius*20),h=t.radius/Math.sin(i.fov*Math.PI/360)*1.05;return i.position.copy(new v(.55,.3,-.78).normalize().multiplyScalar(h)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{c as M};
@@ -1 +0,0 @@
1
- import{cY as o}from"./ShareDialogElement--Mjaublp.js";import{M as s}from"./ModelSource-DQDWsfAb.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class y{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=s.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await s.build(r);try{const{width:e,height:n}=this.SIZE_PX,a=s.stage(t,e/n);if(!a)return;const i=this.renderer??=new o({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return i.setSize(e,n,!1),i.setClearColor(0,0),i.render(a.scene,a.camera),i.domElement.toDataURL("image/png")}finally{s.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{y as ModelThumbnails};
@@ -1 +0,0 @@
1
- import{cY as h}from"./ShareDialogElement--Mjaublp.js";import{M as c}from"./ModelSource-DQDWsfAb.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class a{constructor(t,i){this.container=t,this.source=i,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,i){a.current?.stop();const s=new a(t,i);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:i,height:s}=this.container.getBoundingClientRect(),e=i>0&&s>0?i/s:4/3;if(this.stage=c.stage(t,e),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),i=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*i);const s=a.renderer,{width:e,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(e*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(e,n,!1),this.canvas.width=Math.round(e*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=e/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const i=this.dragging;if(!i||!this.stage)return;const s=t.clientX-i.x,e=t.clientY-i.y;!i.moved&&Math.hypot(s,e)<a.CLICK_TOLERANCE_PX||(i.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-e*a.DRAG_RAD_PER_PX)),i.x=t.clientX,i.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-CLkMHq_q.js","./ShareDialogElement--Mjaublp.js","./rr0-ufoathome.mjs","./SaidPosition-CXZLm-ck.js","./Sighting-Ch4eiBNK.js","./VisualAids-DI-hEL46.js","./Decor-Dn-cvniW.js","./RecordingIssue-BlWT8Xsu.js","./Obstacles-v9SkfBD7.js"])))=>i.map(i=>d[i]);
2
- import{_ as w}from"./rr0-ufoathome.mjs";class n{static MEMBERS={weather:["getWeather"],place:["attribution","search","reverse"],timeZone:["zoneAt"],narrative:["settings","draft"],assessment:["assess"],lightPollution:["year","citation","lookUp"],aircraft:["citation","between"],upperAir:["between"],elevation:["getElevationGrid"],imagery:["attribution","getImageryTexture"],surroundings:["id","name","attribution","creditUrl","contemporary","covers","getSurroundings"],decorModels:["attribution","entries","entry"],skyEvents:["key","messages","simulation"],interpretations:["key","messages","compute"],perception:["id","messages","sources","settings","perceive"],transcription:["sendsAudio","engine","transcribe"],reentryTypes:["key","nature","messages","template"]};static WEATHER_SHARES=["cloudCover","cloudDarkness","precipitationIntensity","highCloudCover","lowerCloudCover","iceCrystalAlignment","rareIceCrystals","relativeHumidity"];static WEATHER_REQUIRED=["cloudCover","cloudDarkness","precipitationIntensity"];static PRECIPITATIONS=["none","rain","snow","hail"];static HIGH_WIND_MS=60;static TIMEOUT_MS=3e4;static async check(i,a={}){const r=[];i.hasScript&&!i.scriptRun&&r.push({level:"note",code:"scriptNotRun"});for(const[t,s]of Object.entries(i.module.contributes))Object.hasOwn(n.MEMBERS,t)?Array.isArray(s)?await n.checkPoint(t,s,a,r):r.push({level:"failed",code:"notAList",point:t}):r.push({level:"failed",code:"unknownPoint",point:t});return r}static async checkPoint(i,a,r,t){const s=new Set;for(const e of a){const c=(l,d,g="failed")=>{t.push({level:g,code:l,point:i,source:typeof e?.id=="string"?e.id:void 0,detail:d})};if(s.has(e?.id)&&c("duplicateId"),s.add(e?.id),n.checkEntry(e,c),typeof e?.create!="function"){c("createMissing");continue}const o=n.build(e,c);if(o===void 0)continue;const h=n.MEMBERS[i].filter(l=>o[l]===void 0);for(const l of h)c("missingMember",l);h.length>0||(i==="weather"&&await n.checkWeather(e.id,o,r,c),i==="skyEvents"&&await n.checkSkyEventKind(e.id,o,r,c),i==="interpretations"&&await n.checkInterpretationKind(e.id,o,r,c))}}static checkEntry(i,a){for(const r of["id","name","credit","creditUrl"]){const t=i?.[r];(typeof t!="string"||t.trim()==="")&&a("entryField",r)}typeof i?.creditUrl=="string"&&i.creditUrl!==""&&!URL.canParse(i.creditUrl)&&a("entryField","creditUrl")}static build(i,a){let r=!1;const t=(async()=>(r=!0,new Response("",{status:503}))),s=globalThis.fetch;globalThis.fetch=t;try{const e=i.create(t);if(r&&a("createAsked"),e==null){a("createEmpty");return}return e}catch(e){a("createThrew",n.told(e));return}finally{globalThis.fetch=s}}static async checkWeather(i,a,r,t){const s=r.weatherQuery;if(!s){t("weatherNotAsked",void 0,"note");return}let e;try{e=await n.within(a.getWeather(s),r)}catch(l){t("weatherThrew",n.told(l));return}if(e===void 0){t("weatherNoRecord",void 0,"note");return}const c=e?.samples;if(!Array.isArray(c)||c.length!==s.points.length){t("weatherSamples",`${Array.isArray(c)?c.length:0}/${s.points.length}`);return}c.some((l,d)=>l?.time?.getTime?.()!==s.points[d].time.getTime())&&t("weatherOrder");const o=new Set;let h=!1;for(const l of c){const d=l?.weather??{};for(const g of n.WEATHER_SHARES){const u=d[g],p=n.WEATHER_REQUIRED.includes(g);(u!==void 0||p)&&!n.between(u,0,1)&&o.add(`${g} = ${String(u)}`)}n.between(d.windDirectionDeg,0,360)||o.add(`windDirectionDeg = ${String(d.windDirectionDeg)}`),n.between(d.windSpeed,0,1/0)?d.windSpeed>n.HIGH_WIND_MS&&(h=!0):o.add(`windSpeed = ${String(d.windSpeed)}`),n.PRECIPITATIONS.includes(d.precipitationType)||o.add(`precipitationType = ${String(d.precipitationType)}`),typeof d.storm!="boolean"&&o.add(`storm = ${String(d.storm)}`)}for(const l of o)t("weatherValue",l);h&&t("weatherWindHigh",void 0,"note"),e.source?.id!==i&&t("weatherSource","id"),(typeof e.source?.name!="string"||e.source.name==="")&&t("weatherSource","name"),(typeof e.source?.url!="string"||e.source.url==="")&&t("weatherSource","url")}static async checkSkyEventKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title","name"],r,t);let s;try{s=(await n.within(a.simulation(),r))()}catch(o){t("simulationFailed",n.told(o));return}const{MODULE_THREE:e}=await w(async()=>{const{MODULE_THREE:o}=await import("./ModuleThree-CLkMHq_q.js");return{MODULE_THREE:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);if(!(s?.object instanceof e.Object3D)){t("secondThree");return}try{s.update([],0,n.frame(new e.Vector3)),s.drawnCount!==0&&t("drawnWithoutEvents",String(s.drawnCount))}catch(o){t("updateThrew",n.told(o))}const c=new e.Group;c.add(s.object);try{s.dispose(),s.object.parent===c&&t("disposeLeft")}catch(o){t("disposeThrew",n.told(o))}}static async checkInterpretationKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title"],r,t);const s=r.interpretation?.[a.key];if(!Array.isArray(s)||s.length===0){t("readingNotTried",void 0,"note");return}let e;try{if(e=await n.within(a.compute(),r),typeof e!="function"){t("readingThrew","compute");return}}catch(c){t("readingThrew",n.told(c));return}for(const c of s)try{const o=e(c);Array.isArray(o)||t("readingNotAList")}catch(o){t("readingThrew",n.told(o))}}static async checkTexts(i,a,r,t){for(const s of["en","fr"])try{const e=await n.within(i.load(s),r);for(const c of a)(typeof e?.[c]!="string"||e[c]==="")&&t("kindMessages",`${s}: ${c}`)}catch(e){t("kindMessages",`${s}: ${n.told(e)}`)}}static frame(i){return{reference:{lat:0,lng:0},origin:{x:0,z:0},eastScale:1,siteElevationM:0,eye:i,pixelRad:.001,relativeScale:1,air:{},transmittanceTo:()=>[1,1,1],groundYAt:()=>0,wind:{eastMS:0,northMS:0},observer:{lat:0,lng:0,heightM:0},date:new Date(0),magnitudeLimit:6,cloudTransmission:()=>1,arrivingIlluminance:()=>[0,0,0],transmittanceFromSpace:()=>[1,1,1],lightFrom:()=>{},glareFrom:()=>{}}}static between(i,a,r){return typeof i=="number"&&!Number.isNaN(i)&&i>=a&&i<=r}static told(i){return i instanceof Error?i.message:String(i)}static within(i,a){const r=a.timeoutMs??n.TIMEOUT_MS;let t;const s=new Promise((e,c)=>{t=setTimeout(()=>c(new Error(`> ${r/1e3} s`)),r)});return Promise.race([i,s]).finally(()=>clearTimeout(t))}}export{n as ModuleConformance};
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-CLkMHq_q.js","./ShareDialogElement--Mjaublp.js","./rr0-ufoathome.mjs","./SaidPosition-CXZLm-ck.js","./Sighting-Ch4eiBNK.js","./VisualAids-DI-hEL46.js","./Decor-Dn-cvniW.js","./RecordingIssue-BlWT8Xsu.js","./Obstacles-v9SkfBD7.js"])))=>i.map(i=>d[i]);
2
- import{_ as g,e as p}from"./rr0-ufoathome.mjs";import{a$ as w,b0 as b}from"./ShareDialogElement--Mjaublp.js";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class n{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=n.storage()){try{const e=t?.getItem(n.STORAGE_KEY);return e?n.parse(e):n.empty()}catch{return n.empty()}}static write(t,e=n.storage()){try{return e?(t.modules.length===0?e.removeItem(n.STORAGE_KEY):e.setItem(n.STORAGE_KEY,n.text(t)),!0):!1}catch{return!1}}static parse(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||!Array.isArray(e.modules))throw new Error("not a UFO@home module list");if(typeof e.format=="number"&&e.format>n.FORMAT)throw new Error(`format ${e.format} is newer than ${n.FORMAT}`);const i=new Set,r=[];for(const s of e.modules)typeof s?.url!="string"||i.has(s.url)||(i.add(s.url),r.push({url:s.url,enabled:s.enabled!==!1}));return{format:1,modules:r}}static text(t){return JSON.stringify({format:n.FORMAT,modules:t.modules},null,2)+`
3
- `}static storage(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}}class E{constructor(t,e){this.attribution=t,this.models=e}async entries(t){return t?this.models.filter(e=>[e.kind].flat().includes(t)):[...this.models]}async entry(t){return this.models.find(e=>e.id===t)}}class f{attribution;fetchImpl;tileUrlTemplate;constructor(t){this.attribution=t.attribution,this.tileUrlTemplate=t.tileUrlTemplate,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis)}getImageryTexture(t,e){return w(t,e,i=>f.tileUrl(this.tileUrlTemplate,i),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class v extends Error{constructor(t,e){super(`${t}: ${e}`),this.url=t,this.reason=e,this.name="ModuleManifestError"}}class d{static FORMAT=1;static check(t,e){const i=o=>{throw new v(e,o)};(t===null||typeof t!="object"||Array.isArray(t))&&i("not a JSON object");const r=t;typeof r.format!="number"&&i('no "format"'),r.format>d.FORMAT&&i(`format ${r.format} is newer than ${d.FORMAT}, which this version reads`),(typeof r.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(r.id))&&i(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof r.name!="string"||r.name.trim()==="")&&i('no "name"'),r.script!==void 0&&typeof r.script!="string"&&i('"script" must be an address');const s=r.contributes??{};for(const o of["imagery","elevation"]){const c=s[o];c!==void 0&&(Array.isArray(c)||i(`"contributes.${o}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&i(`"contributes.${o}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||i(`"contributes.${o}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=s.models;return a!==void 0&&(Array.isArray(a)||i('"contributes.models" must be a list'),a.forEach((o,c)=>{for(const l of["id","name","file"])(typeof o?.[l]!="string"||o[l]==="")&&i(`"contributes.models[${c}].${l}" is missing`);o.kind===void 0&&i(`"contributes.models[${c}].kind" is missing`),(!o.credit||typeof o.credit!="object")&&i(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),r}static contributions(t,e){const i=t.contributes??{},r={};if(i.imagery?.length&&(r.imagery=i.imagery.map(s=>({id:s.id,name:s.name,credit:s.credit,creditUrl:s.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(s.tiles,e),attribution:s.credit,fetchImpl:a})}))),i.elevation?.length&&(r.elevation=i.elevation.map(s=>({id:s.id,name:s.name,credit:s.credit,creditUrl:s.creditUrl,create:a=>new b({tileUrlTemplate:d.absoluteTemplate(s.tiles,e),fetchImpl:a})}))),i.models?.length){const s=i.models.map(({file:o,...c})=>({...c,url:new URL(o,e).href})),a=t.credit??t.name;r.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,s)}]}return r}static module(t,e,i={}){const r=d.contributions(t,e);for(const[s,a]of Object.entries(i))Array.isArray(a)&&(r[s]=[...r[s]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:r}}static absoluteTemplate(t,e){const i=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(i,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class T{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const i=await this.fetchImpl(t);if(!i.ok)throw new Error(`${t}: HTTP ${i.status}`);const r=d.check(await i.json(),t),s=r.script!==void 0;let a={};if(s&&e.runScript){const o=new URL(r.script,t).href,c=await this.importImpl(o);if(typeof c.default!="function")throw new Error(`${o}: its default export is not a function`);const{MODULE_THREE:l}=await g(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-CLkMHq_q.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:r,module:d.module(r,t,a),hasScript:s,scriptRun:s&&e.runScript}}}class y{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=n.empty();started;list(){const t=[...this.states.values()];return[...t.filter(e=>e.addedByPerson),...t.filter(e=>!e.addedByPerson)]}state(t){return this.states.get(t)}start(){return this.started??=this.applyConfig(n.read(this.storage)),this.started}async add(t){await this.start();const e=new URL(t,typeof location>"u"?void 0:location.href).href;return this.config.modules.some(i=>i.url===e)||(this.config={...this.config,modules:[...this.config.modules,{url:e,enabled:!0}]},this.save()),this.reload(e)}async remove(t){this.config={...this.config,modules:this.config.modules.filter(e=>e.url!==t)},this.save(),await this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(i=>i.url===t?{...i,enabled:e}:i)},this.save(),await this.reload(t)}exportText(){return n.text(this.config)}async importText(t){const e=n.parse(t);await this.start();const i=this.config.modules.map(r=>r.url);this.config=e,this.save(),await Promise.all([...new Set([...i,...e.modules.map(r=>r.url)])].map(r=>this.reload(r)))}async require(t,e){t?.length&&(await this.start(),await Promise.all(t.map(async i=>{let r;try{r=new URL(i,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const s=this.states.get(r);if(s&&s.status!=="off")return s.status==="loading"?this.pending.get(r):void 0;this.named.add(r),await this.reload(r)})))}named=new Set;pending=new Map;async applyConfig(t){this.config=t,await Promise.all(t.modules.map(e=>this.reload(e.url)))}reload(t){const e=this.reloadNow(t);return this.pending.set(t,e),e}async reloadNow(t){const e=this.config.modules.find(a=>a.url===t),i=this.states.get(t);i?.loaded&&p.uninstall(i.loaded.module.id);const r=e!==void 0,s=e?.enabled??!0;if(!r&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:r,enabled:s,status:"off"};if(r&&!s&&!this.named.has(t))return this.set({url:t,addedByPerson:r,enabled:s,status:"off"});this.set({url:t,addedByPerson:r,enabled:s,status:"loading"});try{const a=await this.loader.load(t,{runScript:r&&s});return p.install(a.module),this.set({url:t,addedByPerson:r,enabled:s,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:r,enabled:s,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){n.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
@@ -1 +0,0 @@
1
- import{b7 as a,ba as e,d1 as t,bA as r,bC as s,bS as i,br as o,bN as b,by as n,bz as m,c3 as d,bT as l,bU as c,d2 as p,bi as u,bD as M,bb as B,b5 as S,cl as y,ci as G,cm as f,b2 as h,cz as g,bh as x,cV as C,bE as D,d3 as E,d4 as L,d5 as T,b4 as A,bB as P,bg as V,bj as j,d6 as v,bR as z,bG as F}from"./ShareDialogElement--Mjaublp.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";const q={AdditiveBlending:F,BackSide:z,BoxGeometry:v,BufferAttribute:j,BufferGeometry:V,CanvasTexture:P,Color:A,ConeGeometry:T,CylinderGeometry:L,DataTexture:E,DoubleSide:D,Euler:C,Float32BufferAttribute:x,FrontSide:g,Group:h,Line:f,LineBasicMaterial:G,LineSegments:y,Matrix4:S,Mesh:B,MeshBasicMaterial:M,MeshStandardMaterial:u,NormalBlending:p,Object3D:c,PlaneGeometry:l,PointLight:d,Points:m,PointsMaterial:n,Quaternion:b,ShaderMaterial:o,SphereGeometry:i,Sprite:s,SpriteMaterial:r,TorusGeometry:t,Vector2:e,Vector3:a};export{q as MODULE_THREE};
@@ -1 +0,0 @@
1
- import{b7 as m,bU as b,cV as A,bN as M,b5 as O,cW as w}from"./ShareDialogElement--Mjaublp.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";const D=Math.PI/180,z=180/Math.PI;class C{static localDirection(t,e,i,o=new m){const n=Math.tan(e/2*D);return o.set((t.u*2-1)*n*i,(1-t.v*2)*n,-1).normalize()}static picturePoint(t,e,i){if(t.z>=0)return;const o=Math.tan(e/2*D),n=t.x/-t.z/(o*i),r=t.y/-t.z/o;return{u:(n+1)/2,v:(1-r)/2}}static worldDirection(t,e=new m){const i=t.azimuthDeg*D,o=t.altitudeDeg*D;return e.set(Math.sin(i)*Math.cos(o),Math.sin(o),-Math.cos(i)*Math.cos(o))}static aimOf(t){const e=Math.hypot(t.x,t.z);return{azimuthDeg:(Math.atan2(t.x,-t.z)*z+360)%360,altitudeDeg:Math.atan2(t.y,e)*z}}static rotationOf(t){const e=new b;return e.rotation.set(t.pitchDeg*D,-t.headingDeg*D,-(t.rollDeg??0)*D,"YXZ"),e.quaternion.clone()}static anglesOf(t){const e=new A().setFromQuaternion(t,"YXZ"),i=(-e.y*z%360+360)%360,o=-e.z*z;return{headingDeg:i,pitchDeg:e.x*z,rollDeg:Math.abs(o)<1e-9?0:o}}static worldDirectionOf(t,e,i,o=new m){return this.localDirection(t,e.fovDeg,i,o).applyQuaternion(this.rotationOf(e))}static picturePointOf(t,e,i){const o=t.clone().applyQuaternion(this.rotationOf(e).invert()),n=this.picturePoint(o,e.fovDeg,i);if(!(!n||n.u<0||n.u>1||n.v<0||n.v>1))return n}static solve(t,e,i,o=t.length>=3){if(t.length<2)return;if(!o)return this.solveAtField(t,e,i);let n=1,r=179;const h=(Math.sqrt(5)-1)/2;let f=r-h*(r-n),c=n+h*(r-n),s=this.solveAtField(t,e,f),a=this.solveAtField(t,e,c);for(let l=0;l<60&&r-n>1e-4;l++){if(!s||!a)return;s.residualDeg<a.residualDeg?(r=c,c=f,a=s,f=r-h*(r-n),s=this.solveAtField(t,e,f)):(n=f,f=c,s=a,c=n+h*(r-n),a=this.solveAtField(t,e,c))}return s&&a?s.residualDeg<a.residualDeg?s:a:s??a}static solveAtField(t,e,i){const o=t.map(c=>this.localDirection(c.picture,i,e)),n=t.map(c=>this.worldDirection(c.scene)),r=this.triad(o,n);if(!r)return;const h=this.refine(r,o,n);return{registration:{...this.anglesOf(h),fovDeg:i},residualDeg:this.residualDeg(h,o,n)}}static triad(t,e){let i=0,o=1,n=-1;for(let s=0;s<t.length;s++)for(let a=s+1;a<t.length;a++){const g=t[s].clone().cross(t[a]).lengthSq();g>n&&(n=g,i=s,o=a)}if(n<1e-12)return;const r=(s,a)=>{const g=s.clone().normalize(),l=s.clone().cross(a).normalize(),u=l.clone().cross(g);return new w().set(g.x,u.x,l.x,g.y,u.y,l.y,g.z,u.z,l.z)},h=r(t[i],t[o]),c=r(e[i],e[o]).multiply(h.transpose());return new M().setFromRotationMatrix(new O().setFromMatrix3(c))}static refine(t,e,i){const o=t.clone(),n=new m;for(let r=0;r<20;r++){const h=new w().set(0,0,0,0,0,0,0,0,0),f=h.elements,c=new m;for(let l=0;l<e.length;l++){n.copy(e[l]).applyQuaternion(o);const u=n,y=[[0,u.z,-u.y],[-u.z,0,u.x],[u.y,-u.x,0]],x=[i[l].x-u.x,i[l].y-u.y,i[l].z-u.z];for(let p=0;p<3;p++){for(let d=0;d<3;d++)for(let v=0;v<3;v++)f[d*3+p]+=y[v][p]*y[v][d];c.setComponent(p,c.getComponent(p)+y[0][p]*x[0]+y[1][p]*x[1]+y[2][p]*x[2])}}for(let l=0;l<3;l++)f[l*3+l]+=1e-9;const s=c.applyMatrix3(h.invert()),a=s.length();if(a<1e-12)break;const g=new M().setFromAxisAngle(s.normalize(),a);if(o.premultiply(g).normalize(),a<1e-10)break}return o}static residualDeg(t,e,i){let o=0;const n=new m;for(let r=0;r<e.length;r++){n.copy(e[r]).applyQuaternion(t);const h=n.angleTo(i[r])*z;o+=h*h}return Math.sqrt(o/e.length)}}export{C as PictureRegistration};
@@ -1 +0,0 @@
1
- import{w as u}from"./ShareDialogElement--Mjaublp.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class o{about="shape";static STEP_DEG=2;static TURN_DEG=60;static ERRATIC_TURNS=3;static OSCILLATIONS=["vibrate","spiral","roll"];async assess(n){const t=this.trajectory(n),s=this.vanish(n),e=this.oscillation(n),i=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=i.shown&&r.shown?5:i.shown&&c.shown?4:i.shown||t.value==="erratic"||s.shown||e.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,a=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",e),{...this.criterion("poher-landing",i),unsupported:i.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:a}}static TRAJECTORIES=["unknown","still","straight","abnormal","erratic"];criterion(n,t){return{id:n,value:t.shown?1:0,basis:t.basis,paths:t.basis===void 0?[]:t.paths}}trajectory(n){let t="unknown";for(const s of n.timeline.sourceIds){const e=this.seen(n,s).filter(a=>a.aim!==void 0).map(a=>a.aim);if(e.length<2)continue;const i=[o.unit(e[0])];for(const a of e.slice(1)){const l=o.unit(a);o.angleDeg(i[i.length-1],l)>=o.STEP_DEG&&i.push(l)}const c=i.length-1;let r=0;for(let a=1;a<i.length-1;a++){const l=o.cross(i[a-1],i[a]),d=o.cross(i[a],i[a+1]);o.angleDeg(l,d)>=o.TURN_DEG&&r++}const h=c===0?"still":r>=o.ERRATIC_TURNS?"erratic":r>0?"abnormal":"straight";o.TRAJECTORIES.indexOf(h)>o.TRAJECTORIES.indexOf(t)&&(t=h)}return t==="unknown"?{value:t,paths:[]}:{value:t,basis:"derived",paths:["timeline"]}}vanish(n){const t=(n.events??[]).findIndex(s=>s.eventType==="vanish"&&u.isPhenomenon(n,s));return t>=0?{shown:!0,basis:"stated",paths:[`events.${t}`]}:{shown:!1,paths:[]}}oscillation(n){const t=new Set((n.interpretation?.bodies??[]).map(e=>e.id)),s=(n.events??[]).findIndex(e=>o.OSCILLATIONS.includes(e.eventType)&&(u.isPhenomenon(n,e)||t.has(e.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=e=>!e.onGround&&((e.altitudeAboveGroundM??0)>0||(e.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(e=>Array.isArray(e.track)&&e.track.some(i=>i.onGround)&&e.track.some(t));return s>=0?{shown:!0,basis:"assumed",paths:[`interpretation.bodies.${s}`]}:{shown:!1,paths:[]}}occupants(n){const t=n.decor.findIndex(s=>s.kind==="entity");return t>=0?{shown:!0,basis:"stated",paths:[`decor.${t}`]}:this.judged(n,"beings")}judged(n,t){const s=n.account?.strangeness?.[t];return s===void 0?{shown:!1,paths:[]}:{shown:s,basis:"stated",paths:[`account.strangeness.${t}`]}}instants(n,t){return n.timeline.allKeyframes.map(s=>({t:s.t,shape:s.shapes.find(e=>e.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:e})=>({t:s,aim:e.aim,visible:e.transparency<1})).sort((s,e)=>s.t-e.t)}seen(n,t){return this.instants(n,t).filter(s=>s.visible)}static unit(n){const[t,s]=[n.azimuthDeg*Math.PI/180,n.altitudeDeg*Math.PI/180];return[Math.cos(s)*Math.sin(t),Math.cos(s)*Math.cos(t),Math.sin(s)]}static cross(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}static angleDeg(n,t){const s=Math.hypot(...n)*Math.hypot(...t);if(s===0)return 0;const e=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,e)))*180/Math.PI}}export{o as PoherAssessor};
@@ -1,41 +0,0 @@
1
- import{b2 as F,bi as P,b4 as H,bg as K,bj as N,bb as w,bk as k}from"./ShareDialogElement--Mjaublp.js";import{g as U}from"./SaidPosition-CXZLm-ck.js";import"./rr0-ufoathome.mjs";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class D{static HOLLOW_M=1;static COVERED_M=3;static WINDOW_M=30;static SAMPLE_M=4;static MAX_GRADE={rail:.025,highSpeed:.035,subway:.04,light_rail:.06,tram:.08,funicular:1/0};static heights(t,s,e){const n=t.map(a=>a.level===0),o=t.map((a,i)=>n[i]?D.targets(a,s,e):[]),c=t.map((a,i)=>n[i]?D.samples(a,o[i]):[]),r=new Map;t.forEach((a,i)=>{if(n[i])for(const h of D.ends(a)){const p=D.key(h),M=r.get(p);M?M.push(i):r.set(p,[i])}});const u=a=>{const i=r.get(D.key(a));if(i)return D.median(i.flatMap(h=>c[h]),a)};return t.map((a,i)=>{if(n[i]){const h=[...new Set([i,...D.ends(a).flatMap(d=>r.get(D.key(d))??[])])].flatMap(d=>c[d]),p=a.centre.map((d,O)=>D.median(h,d)??o[i][O]),[M,A]=D.ends(a);return p[0]=u(M)??p[0],p[p.length-1]=u(A)??p[p.length-1],D.graded(p,a.along,a.highSpeed?D.MAX_GRADE.highSpeed:D.MAX_GRADE[a.kind])}return D.carried(a,s,e,u)})}static targets(t,s,e){return t.centre.map(n=>{const o=s(n.x,n.z);if(e===void 0||n.altitudeM===void 0)return o;const c=n.altitudeM+e;return c-o>D.HOLLOW_M||o-c>D.COVERED_M?c:o})}static samples(t,s){const e=[];let n=0;return t.centre.forEach((o,c)=>{t.along[c]+1e-6<n&&c<t.centre.length-1||(e.push({x:o.x,z:o.z,y:s[c]}),n=t.along[c]+D.SAMPLE_M)}),e}static median(t,s){const e=[];for(const o of t)Math.hypot(o.x-s.x,o.z-s.z)<=D.WINDOW_M&&e.push(o.y);if(e.length===0)return;e.sort((o,c)=>o-c);const n=e.length>>1;return e.length%2===1?e[n]:(e[n-1]+e[n])/2}static graded(t,s,e){if(!Number.isFinite(e)||t.length<3)return t;const n=[...t],o=n.length-1,c=s[o];if(Math.abs(n[o]-n[0])>e*c)return s.map(r=>n[0]+(n[o]-n[0])*r/c);for(let r=1;r<o;r++){const u=e*(s[r]-s[r-1]);n[r]=Math.min(n[r-1]+u,Math.max(n[r-1]-u,n[r]))}for(let r=o-1;r>0;r--){const u=e*(s[r+1]-s[r]);n[r]=Math.min(n[r+1]+u,Math.max(n[r+1]-u,n[r]))}return n}static carried(t,s,e,n){const[o,c]=D.ends(t),r=t.along[t.along.length-1],u=n(o),a=n(c);if(e!==void 0&&t.centre.every(p=>p.altitudeM!==void 0)){const p=t.centre.map(d=>d.altitudeM+e),M=u!==void 0?u-p[0]:0,A=a!==void 0?a-p[p.length-1]:0;return p.map((d,O)=>d+M+(A-M)*t.along[O]/r)}const i=u??s(o.x,o.z),h=a??s(c.x,c.z);return t.along.map(p=>i+(h-i)*p/r)}static ends(t){return[t.centre[0],t.centre[t.centre.length-1]]}static key(t){return`${Math.round(t.x*2)},${Math.round(t.z*2)}`}}class B{positions=[];indices=[];along=[];get vertexCount(){return this.positions.length/3}strip(t,s,e){const n=this.vertexCount;for(let o=0;o<t.length;o++)this.positions.push(t[o].x,t[o].y,t[o].z,s[o].x,s[o].y,s[o].z),e&&this.along.push(e[o],e[o]);for(let o=0;o<t.length-1;o++){const c=n+o*2;this.indices.push(c,c+2,c+1,c+1,c+2,c+3)}}beam(t,s,e,n=!0){const o=s.x-t.x,c=s.y-t.y,r=s.z-t.z,u=Math.hypot(o,c,r);if(u<1e-6)return;const a={x:o/u,y:c/u,z:r/u},i=Math.abs(a.y)>.9?{x:1,y:0,z:0}:{x:0,y:1,z:0},h=a.y*i.z-a.z*i.y,p=a.z*i.x-a.x*i.z,M=a.x*i.y-a.y*i.x,A=Math.hypot(h,p,M),d={x:h/A*e/2,y:p/A*e/2,z:M/A*e/2},O={x:a.y*d.z-a.z*d.y,y:a.z*d.x-a.x*d.z,z:a.x*d.y-a.y*d.x},g=(f,x,E)=>({x:f.x+d.x*x+O.x*E,y:f.y+d.y*x+O.y*E,z:f.z+d.z*x+O.z*E}),_=[[1,1],[-1,1],[-1,-1],[1,-1]];for(let f=0;f<4;f++){const[x,E]=_[f],[z,v]=_[(f+1)%4];this.quad(g(t,x,E),g(t,z,v),g(s,z,v),g(s,x,E))}n&&(this.quad(...[..._].reverse().map(([f,x])=>g(t,f,x))),this.quad(..._.map(([f,x])=>g(s,f,x))))}quad(t,s,e,n){const o=this.vertexCount;this.positions.push(t.x,t.y,t.z,s.x,s.y,s.z,e.x,e.y,e.z,n.x,n.y,n.z),this.indices.push(o,o+1,o+2,o,o+2,o+3)}}class l{static STEP_M=6;static BALLAST_HEIGHT_M=.5;static BALLAST_SLOPE=1.5;static BALLAST_SHOULDER_M=.45;static DECK_DEPTH_M=.8;static BANK_SLOPE=1.5;static SLEEPER_LENGTH_M=2.4;static SLEEPER_WIDTH_M=.29;static SLEEPER_SPACING_M=.6;static RAIL_HEAD_M=.072;static RAIL_HEIGHT_M=.18;static TRAM_RAIL_HEIGHT_M=.03;static LIFT_M=.06;static CATENARY={rail:{contactM:5.5,systemM:1.4,spanM:54,staggerM:.2},highSpeed:{contactM:5.08,systemM:1.4,spanM:63,staggerM:.2},service:{contactM:5.5,systemM:1.2,spanM:45,staggerM:.2},tram:{contactM:6,systemM:0,spanM:30,staggerM:.2}};static MESSENGER_SAG_M=.55;static MAST_SIDE_M=.26;static MAST_OFFSET_M=3.1;static MAST_ABOVE_M=.6;static CONTACT_DIAMETER_M=.012;static MESSENGER_DIAMETER_M=.011;static ARM_SIDE_M=.06;static TRACK_SPACING_M={rail:3.7,highSpeed:4.5,tram:3.1,subway:3.4,light_rail:3.4,funicular:3.2};static BALLAST_ALBEDO=[.17,.16,.15];static BANK_ALBEDO=[.085,.09,.05];static DECK_ALBEDO=[.26,.255,.24];static CONCRETE_ALBEDO=[.36,.35,.33];static WOOD_ALBEDO=[.07,.055,.045];static RUST_ALBEDO=[.085,.068,.058];static STEEL_ALBEDO=[.3,.31,.32];static COPPER_ALBEDO=[.09,.085,.07];static LINE_REACH_M=20;group=new F;stepM=l.STEP_M;drawn=0;laid=[];ballastMaterial=l.pebbled(l.lambert(l.BALLAST_ALBEDO,!0));earthMaterial=l.lambert(l.BANK_ALBEDO,!0);deckMaterial=l.lambert(l.DECK_ALBEDO,!1);concreteSleepers=l.sleeperMaterial(l.CONCRETE_ALBEDO);woodSleepers=l.sleeperMaterial(l.WOOD_ALBEDO);rustMaterial=l.lambert(l.RUST_ALBEDO,!0);headMaterial=new P({color:new H(.62,.62,.62),metalness:1,roughness:.28,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});steelMaterial=l.lambert(l.STEEL_ALBEDO,!1);wireMaterial=l.lambert(l.COPPER_ALBEDO,!1);constructor(){this.group.name="railways"}get count(){return this.drawn}setGroundSpacing(t){this.stepM=Number.isFinite(t)&&t>0?Math.min(l.STEP_M,Math.max(1.5,t/2)):l.STEP_M}set(t,s,e,n,o=1/0){this.clear();const r=t.map(M=>({line:M,path:M.points.map(A=>({...U(A.lat,A.lng,s,e),altitudeM:A.altitudeM}))})).filter(({line:M,path:A})=>M.level>=0&&l.within(A,o)),u=l.altitudeOffset(r,n),a=r.flatMap(({line:M,path:A})=>{const d=this.layoutOf(M,A);return d?[{line:M,layout:d}]:[]}),i=D.heights(a.map(({layout:M})=>M),n,u),h={ballast:new B,earth:new B,deck:new B,concrete:new B,wood:new B,rust:new B,head:new B,steel:new B,wire:new B};a.forEach(({line:M,layout:A},d)=>{this.lay(M,{...A,y:i[d]},n,h),this.laid.push({line:M,centre:A.centre}),this.drawn++});const p=[[h.ballast,this.ballastMaterial,"ballast",!1],[h.earth,this.earthMaterial,"embankments",!1],[h.deck,this.deckMaterial,"decks",!0],[h.concrete,this.concreteSleepers,"sleepers",!1],[h.wood,this.woodSleepers,"sleepers wood",!1],[h.rust,this.rustMaterial,"rails",!1],[h.head,this.headMaterial,"rail heads",!1],[h.steel,this.steelMaterial,"catenary masts",!0],[h.wire,this.wireMaterial,"catenary wires",!1]];for(const[M,A,d,O]of p){const g=l.meshOf(M,A);g&&(g.name=`railways ${d}`,g.castShadow=O,g.receiveShadow=!0,this.group.add(g))}}clear(){for(const t of[...this.group.children])this.group.remove(t),t.geometry?.dispose();this.drawn=0,this.laid=[]}lineAt(t,s){let e;for(const{line:n,centre:o}of this.laid)for(let c=0;c<o.length-1;c++){const r=o[c],u=o[c+1],a=u.x-r.x,i=u.z-r.z,h=a*a+i*i,p=h===0?0:Math.max(0,Math.min(1,((t-r.x)*a+(s-r.z)*i)/h)),M=Math.hypot(t-(r.x+a*p),s-(r.z+i*p));M<=l.LINE_REACH_M&&(!e||M<e.distance)&&(e={line:n,distance:M})}return e?.line}mayMeet(t,s,e,n){const o=Math.hypot(s.x,s.z);if(o<1e-6)return this.lineAt(t.x,t.z)!==void 0;const c=s.x/o,r=s.z/o,u=l.LINE_REACH_M;for(const{centre:a}of this.laid)for(let i=0;i<a.length-1;i++){const h=a[i],p=a[i+1];for(const M of[0,.5,1]){const A=h.x+(p.x-h.x)*M,d=h.z+(p.z-h.z)*M,O=(A-t.x)*c+(d-t.z)*r;if(O<0)continue;const g=Math.abs((A-t.x)*r-(d-t.z)*c),_=Math.hypot(p.x-h.x,p.z-h.z)/2;if(g>u+_)continue;if(t.y+s.y*(O/o)<=e(A,d)+n)return!0}}return!1}contactHeightM(t){if(!(t.electrification!=="overhead"||t.kind==="subway"||t.kind==="funicular"))return l.catenaryOf(t).contactM}static catenaryOf(t){return t.kind==="tram"?l.CATENARY.tram:t.highSpeed?l.CATENARY.highSpeed:t.service?l.CATENARY.service:l.CATENARY.rail}dispose(){this.clear();for(const t of[this.ballastMaterial,this.earthMaterial,this.deckMaterial,this.concreteSleepers,this.woodSleepers,this.rustMaterial,this.headMaterial,this.steelMaterial,this.wireMaterial])t.dispose()}static within(t,s){if(!Number.isFinite(s))return!0;const e=s*1.1+100;return t.some((n,o)=>Math.hypot(n.x,n.z)<=e||o>0&&Math.hypot((n.x+t[o-1].x)/2,(n.z+t[o-1].z)/2)<=e)}static altitudeOffset(t,s){const e=[];for(const{line:n,path:o}of t)if(n.level===0)for(const c of o)c.altitudeM!==void 0&&e.push(s(c.x,c.z)-c.altitudeM);if(!(e.length<5))return e.sort((n,o)=>n-o),e[Math.floor(e.length/2)]}layoutOf(t,s){const e=[];for(let c=0;c<s.length-1;c++){const r=s[c],u=s[c+1],a=Math.max(1,Math.ceil(Math.hypot(u.x-r.x,u.z-r.z)/this.stepM));for(let i=0;i<a;i++){const h=i/a,p=r.altitudeM!==void 0&&u.altitudeM!==void 0?r.altitudeM+(u.altitudeM-r.altitudeM)*h:void 0;e.push({x:r.x+(u.x-r.x)*h,z:r.z+(u.z-r.z)*h,altitudeM:p})}}if(e.push(s[s.length-1]),e.length<2)return;const n=[0];for(let c=1;c<e.length;c++)n.push(n[c-1]+Math.hypot(e[c].x-e[c-1].x,e[c].z-e[c-1].z));if(n[n.length-1]<.5)return;const o=e.map((c,r)=>{const u=e[Math.max(0,r-1)],a=e[Math.min(e.length-1,r+1)],i=a.x-u.x,h=a.z-u.z,p=Math.hypot(i,h);return p<1e-6?{x:1,z:0}:{x:i/p,z:h/p}});return{kind:t.kind,...t.highSpeed?{highSpeed:!0}:{},level:t.level,centre:e,along:n,dir:o}}lay(t,s,e,n){const o=t.highSpeed?l.TRACK_SPACING_M.highSpeed:l.TRACK_SPACING_M[t.kind],c=Math.min(8,Math.max(1,t.tracks)),r=Array.from({length:c},(g,_)=>(_-(c-1)/2)*o),u=t.kind==="tram",a=u?0:l.BALLAST_HEIGHT_M,i=l.LIFT_M,h=(g,_,f)=>({x:s.centre[g].x-s.dir[g].z*_,y:s.y[g]+f,z:s.centre[g].z+s.dir[g].x*_}),p=s.centre.map((g,_)=>_);if(!u){const g=l.SLEEPER_LENGTH_M/2+l.BALLAST_SHOULDER_M+(r[r.length-1]??0),_=p.map(x=>h(x,g,a+i)),f=p.map(x=>h(x,-g,a+i));if(n.ballast.strip(_,f),t.level===0){const x=g+a*l.BALLAST_SLOPE;for(const E of[1,-1]){const z=[],v=[];let m=!1;for(const L of p){const C=h(L,E*x,i),S=e(C.x,C.z)+i,T=C.y-S;T<0&&(C.y=Math.min(S,s.y[L]+a-.05+i)),z.push(C);const I=h(L,E*(x+Math.max(0,T)*l.BANK_SLOPE),i);I.y=Math.min(e(I.x,I.z)+i,C.y),C.y-I.y>.02&&(m=!0),v.push(I)}const b=E>0?_:f;E>0?n.ballast.strip(z,b):n.ballast.strip(b,z),m&&(E>0?n.earth.strip(v,z):n.earth.strip(z,v))}}else{const x=-l.DECK_DEPTH_M,E=g+.15,z=p.map(L=>h(L,E,a+i+.1)),v=p.map(L=>h(L,-E,a+i+.1)),m=p.map(L=>h(L,E,x)),b=p.map(L=>h(L,-E,x));n.deck.strip(m,z),n.deck.strip(v,b),n.deck.strip(b,m),n.deck.strip(z,p.map(L=>h(L,g,a+i+.1))),n.deck.strip(p.map(L=>h(L,-g,a+i+.1)),v)}}const M=t.service?n.wood:n.concrete,A=t.gaugeMm/2e3+l.RAIL_HEAD_M/2,d=u?l.TRAM_RAIL_HEIGHT_M:l.RAIL_HEIGHT_M,O=a+i;for(const g of r){if(!u){const _=l.SLEEPER_LENGTH_M/2;M.strip(p.map(f=>h(f,g+_,O+.004)),p.map(f=>h(f,g-_,O+.004)),s.along)}for(const _ of[1,-1]){const f=g+_*A,x=l.RAIL_HEAD_M/2,E=p.map(v=>h(v,f+x,O+d)),z=p.map(v=>h(v,f-x,O+d));n.head.strip(E,z),n.rust.strip(p.map(v=>h(v,f+x,O)),E),n.rust.strip(z,p.map(v=>h(v,f-x,O)))}}t.electrification==="overhead"&&t.kind!=="subway"&&t.kind!=="funicular"&&this.catenary(t,s,r,O+d,h,e,n)}catenary(t,s,e,n,o,c,r){const u=l.catenaryOf(t),a=s.along[s.along.length-1],i=Math.max(1,Math.round(a/u.spanM)),h=a/i,p=Array.from({length:i},(E,z)=>(z+.5)*h),M=n+u.contactM,A=M+u.systemM,d=(u.systemM>0?A:M)+l.MAST_ABOVE_M,O=e[e.length-1],g=e.length>2,_=e.length===1?[1]:[1,-1],f=(E,z,v)=>{let m=0,b=s.along.length-2;for(;m<b;){const T=m+b+1>>1;s.along[T]<=E?m=T:b=T-1}const L=Math.min(1,Math.max(0,(E-s.along[m])/Math.max(1e-6,s.along[m+1]-s.along[m]))),C=o(m,z,v),S=o(m+1,z,v);return{x:C.x+(S.x-C.x)*L,y:C.y+(S.y-C.y)*L,z:C.z+(S.z-C.z)*L}};for(const E of p){const z=f(E,0,M);if(!(t.level===0&&c(z.x,z.z)>z.y)){for(const v of _){const m=v*(O+l.MAST_OFFSET_M),b=f(E,m,0);t.level===0&&(b.y=Math.min(b.y,c(b.x,b.z)));const L=f(E,m,d);if(r.steel.beam(b,L,l.MAST_SIDE_M),g)continue;const S=(_.length===1?e[0]:v*O)-v*.6,T=u.systemM>0?A:M+.3;r.steel.beam(f(E,m,T),f(E,S,T),l.ARM_SIDE_M),r.steel.beam(f(E,m,M-.4),f(E,S,T),l.ARM_SIDE_M)}if(g){const v=O+l.MAST_OFFSET_M;r.steel.beam(f(E,v,d-.2),f(E,-v,d-.2),l.MAST_SIDE_M*.8)}}}const x=[0,...p,a];for(const[E,z]of e.entries()){const v=m=>m===0||m===x.length-1?0:((m+E)%2===0?1:-1)*u.staggerM;for(let m=0;m<x.length-1;m++){const b=x[m],L=x[m+1];if(L-b<.1||(r.wire.beam(f(b,z+v(m),M),f(L,z+v(m+1),M),l.CONTACT_DIAMETER_M,!1),u.systemM<=0))continue;const C=4,S=T=>{const I=m===0?.5+T/2:m===x.length-2?T/2:T;return A-l.MESSENGER_SAG_M*4*I*(1-I)};for(let T=0;T<C;T++){const I=T/C,G=(T+1)/C;r.wire.beam(f(b+(L-b)*I,z,S(I)),f(b+(L-b)*G,z,S(G)),l.MESSENGER_DIAMETER_M,!1)}}}}static meshOf(t,s){if(t.indices.length===0)return;const e=new K;return e.setAttribute("position",new N(new Float32Array(t.positions),3)),t.along.length>0&&e.setAttribute("aAlong",new N(new Float32Array(t.along),1)),e.setIndex(new N(new Uint32Array(t.indices),1)),e.computeVertexNormals(),new w(e,s)}static lambert(t,s){return new k({color:new H(...t),...s?{polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2}:{}})}static pebbled(t){return t.onBeforeCompile=s=>{s.vertexShader=s.vertexShader.replace("#include <common>",`#include <common>
2
- varying vec3 vBallast;`).replace("#include <begin_vertex>",`#include <begin_vertex>
3
- vBallast = position;`),s.fragmentShader=s.fragmentShader.replace("#include <common>",`#include <common>
4
- varying vec3 vBallast;
5
- float ballastHash(vec2 p) {
6
- p = fract(p * vec2(127.1, 311.7));
7
- p += dot(p, p + 34.5);
8
- return fract(p.x * p.y);
9
- }
10
- float ballastNoise(vec2 p) {
11
- vec2 i = floor(p);
12
- vec2 f = fract(p);
13
- f = f * f * (3.0 - 2.0 * f);
14
- return mix(mix(ballastHash(i), ballastHash(i + vec2(1.0, 0.0)), f.x), mix(ballastHash(i + vec2(0.0, 1.0)), ballastHash(i + vec2(1.0, 1.0)), f.x), f.y);
15
- }`).replace("#include <map_fragment>",`#include <map_fragment>
16
- {
17
- float eye = length(vViewPosition);
18
- vec2 at = vBallast.xz + vec2(0.0, vBallast.y);
19
- float stones = (ballastHash(floor(at * 22.0)) - 0.5) * 0.9 * (1.0 - smoothstep(4.0, 18.0, eye))
20
- + (ballastNoise(at * 6.0) - 0.5) * 0.5 * (1.0 - smoothstep(15.0, 60.0, eye))
21
- + (ballastNoise(at * 0.7) - 0.5) * 0.35 * (1.0 - smoothstep(80.0, 300.0, eye));
22
- diffuseColor.rgb *= 1.0 + stones;
23
- }`)},t.customProgramCacheKey=()=>"rr0-railway-ballast",t}static sleeperMaterial(t){const s=new k({color:new H(1,1,1),polygonOffset:!0,polygonOffsetFactor:-3,polygonOffsetUnits:-3}),e=new H(...t),n=new H(...l.BALLAST_ALBEDO);return s.onBeforeCompile=o=>{o.uniforms.uSleeper={value:e},o.uniforms.uCrib={value:n},o.uniforms.uSpacing={value:l.SLEEPER_SPACING_M},o.uniforms.uDuty={value:l.SLEEPER_WIDTH_M/l.SLEEPER_SPACING_M},o.vertexShader=o.vertexShader.replace("#include <common>",`#include <common>
24
- attribute float aAlong;
25
- varying float vAlong;`).replace("#include <begin_vertex>",`#include <begin_vertex>
26
- vAlong = aAlong;`),o.fragmentShader=o.fragmentShader.replace("#include <common>",`#include <common>
27
- varying float vAlong;
28
- uniform vec3 uSleeper;
29
- uniform vec3 uCrib;
30
- uniform float uSpacing;
31
- uniform float uDuty;
32
- // How much of [0, x] periods is sleeper: the integral of a pulse of width uDuty at the start of each period.
33
- float sleeperIntegral(float x) {
34
- return floor(x) * uDuty + min(fract(x), uDuty);
35
- }`).replace("#include <map_fragment>",`#include <map_fragment>
36
- {
37
- float u = vAlong / uSpacing;
38
- float w = max(fwidth(u), 1e-4);
39
- float cover = (sleeperIntegral(u + 0.5 * w) - sleeperIntegral(u - 0.5 * w)) / w;
40
- diffuseColor.rgb *= mix(uCrib, uSleeper, clamp(cover, 0.0, 1.0));
41
- }`)},s.customProgramCacheKey=()=>"rr0-railway-sleepers",s}}export{l as RailwaySystem};
@@ -1,28 +0,0 @@
1
- import{M as w,_ as I,c as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-CXZLm-ck.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{p as b,cP as M,aK as E,aE as C,m as _,s as P,cD as L}from"./ShareDialogElement--Mjaublp.js";import{c as G}from"./Sighting-Ch4eiBNK.js";import{P as D,a as k,E as H}from"./ParameterForm-DcVFxrcO.js";import{T as K}from"./TimelineTracks-BgZmkKhn.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)return;const d=t.track[0],c=t.track[t.track.length-1],l=d?.t??0,h=d?.altitudeKm??100,m=c?.altitudeKm??h;return[{t:l,...g.placeSeen(e,i,r,h),altitudeKm:h},{t:l+Math.round(s*1e3),...g.placeSeen(e,o,a,m),altitudeKm:m}]}static placeAt(t,e){const n=b.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.altitudeKm)*a)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(b.absoluteMagnitudeAt(t,e)*10)/10}}static instantsOf(t){return[...t.track.map(e=>e.t),...t.fragments.flatMap(e=>[...e.fromT===void 0?[]:[e.fromT],...e.untilT===void 0?[]:[e.untilT],...(e.lightCurve??[]).map(n=>n.t)])]}static instant(t,e,n,i={}){return{type:"number",key:t,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:e,hint:n,...i}}static mayBeCatalogued(t){return M.of(t.type)?.nature!=="natural"}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:g.NAME},{type:"choice",key:"type",label:"type",hint:"whatCameInNaturalOrPut",empty:"notKnown",choices:[],optionsOf:t=>{const e=t.type,n=M.all().map(i=>({value:i.key,label:M.nameOf(i.key)}));return e===void 0||n.some(i=>i.value===e)?n:[...n,{value:e,label:e}]}},{type:"text",key:"object.name",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"noradNumber"},{type:"number",key:"seen.fromAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"appearedAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.fromAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"appearedHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.toAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"wentOutAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.toAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"wentOutHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.durationS",min:.1,max:3600,step:.1,unit:"s",group:g.SEEN,label:"seenFor",hint:"allSaidThePathIsWorkedOut"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[g.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(t,e){const n=t?.track;if(n?.length)return e==="first"?n[0].t:n[n.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(t,e,n)=>!n?.fragments.some(i=>i!==e&&i.id===t)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:g.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:g.LIGHT,fallback:b.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>b.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:g.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},g.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"first")}),g.instant("untilT","outAt","whenItHasBurnedUpOr",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[g.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const $=w.catalog({en:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)});class u{static TIME_MARGIN_MIN=6;static HEADING_MARGIN_DEG=45;static ELEVATION_LOW_FACTOR=.3;static ELEVATION_SLACK_DEG=5;static DURATION_FACTOR=3;static ARCHIVED_MAGNITUDE=-3;static WATCHED_KM=600;static WATCHED_COUNT=5;static NIGHT_SUN_DEG=-12;static SHOWER_MARGIN_DEG=20;static RADIANT_BELOW_DEG=-10;static FIRST_ORBIT_MS=Date.UTC(1957,9,4);static shared={fireballs:new E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=m=>b.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),d=a?.fromAzimuthDeg!==void 0&&a.fromAltitudeDeg!==void 0?{azimuthDeg:a.fromAzimuthDeg,altitudeDeg:a.fromAltitudeDeg}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.t,durationS:l,from:{azimuthDeg:d.azimuthDeg,altitudeDeg:d.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:h}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>u.TIME_MARGIN_MIN*6e4)return;const o=b.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),a=b.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&a.altitudeDeg<0)return;const s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,a.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+r)/6e4),headingOffDeg:Math.round(s),altitudeOffDeg:Math.round(Math.abs(a.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),r=u.angleDeg(n,i);if(r<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],a=Math.hypot(o[0],o[1],o[2]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{lat:e.lat,lng:e.lng,elevationM:e.heightM});if(m.altitudeDeg<u.RADIANT_BELOW_DEG)continue;const f=u.vectorOf(m.azimuthDeg,m.altitudeDeg),p=Math.asin(Math.min(1,Math.abs((f[0]*o[0]+f[1]*o[1]+f[2]*o[2])/a)))*180/Math.PI,y=u.angleDeg(f,n),A=u.angleDeg(f,i);y>=A||A<=r||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:l.id,offDeg:Math.round(p),zhr:Math.round(h)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:d.length}}static async checkFireballs(t,e,n,i){const r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const a=o.map(m=>u.matchFireball(t,m,e)).filter(m=>m!==void 0).sort((m,f)=>m.offsetMinutes-f.offsetMinutes||m.headingOffDeg-f.headingOffDeg);if(a.length>0)return[{verdict:"known",source:"gmn",match:a[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(_("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return h<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:h}]}static async checkCatalogue(t,e,n,i,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(a===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.norad);if(d)return[{verdict:"known",source:"catalogue",candidate:d,by:"object"}];const c=a.find(l=>l.record.precision==="minute"&&l.seenKm!==void 0&&(l.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:a.length>0?a.slice(0,3).map(l=>({verdict:"possible",source:"catalogue",candidate:l})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class T{constructor(t,e,n){this.container=t,this.host=e,N.attach(t,"reentry-editor-part",T.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(M.all().map(n=>({value:n.key,label:M.nameOf(n.key)}))),this.syncAddState();const e=this.current;this.element("reentry-fields").hidden=e===void 0,e&&(this.syncPlace(!0),this.syncFragments(e,!0),this.syncEvidence(),this.form??=new D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>this.current,n=>this.editReentry(i=>{i.object&&(i.object={...i.object}),i.seen&&(i.seen={...i.seen}),n(i),i.object&&Object.values(i.object).every(a=>a===void 0||a==="")&&delete i.object;const r=this.origin(),o=r&&g.trackFromSeen(i,r);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return S.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.evidenceFor=void 0,this.container.innerHTML=`<div class="launch-editor">
2
- <p class="launch-intro">${t.intro}</p>
3
- <div id="reentry-list"></div>
4
- <div id="reentry-fields" class="launch-fields">
5
- <div id="reentry-parameters" class="launch-parameters"></div>
6
- <div id="reentry-evidence" class="launch-intro reentry-evidence" aria-live="polite"></div>
7
- <div id="reentry-timeline"></div>
8
- <button id="reentry-fragment-add" type="button" title="${t.addFragment}">${x.PLUS} ${t.fragment}</button>
9
- <p class="launch-intro">${t.timelineNote}</p>
10
- <fieldset id="reentry-path" class="launch-path">
11
- <legend>${t.path}</legend>
12
- <div id="reentry-place-parameters" class="launch-parameters"></div>
13
- <button id="reentry-place-delete" class="icon-btn" type="button" title="${t.deletePlace}" aria-label="${t.deletePlace}">${x.TRASH}</button>
14
- </fieldset>
15
- <fieldset id="reentry-fragments" class="launch-path">
16
- <legend id="reentry-fragment-legend">${t.fragment}</legend>
17
- <div id="reentry-fragment-parameters" class="launch-parameters"></div>
18
- <button id="reentry-fragment-delete" class="icon-btn" type="button" title="${t.deleteFragment}" aria-label="${t.deleteFragment}">${x.TRASH}</button>
19
- <fieldset id="reentry-curve" class="launch-path">
20
- <legend>${t.curve}</legend>
21
- <p id="reentry-curve-empty" class="launch-intro">${t.noCurve}</p>
22
- <div id="reentry-curve-parameters" class="launch-parameters"></div>
23
- <button id="reentry-curve-delete" class="icon-btn" type="button" title="${t.deleteCurvePoint}" aria-label="${t.deleteCurvePoint}">${x.TRASH}</button>
24
- </fieldset>
25
- </fieldset>
26
- <p class="launch-intro">${t.derivedNote}</p>
27
- </div>
28
- </div>`,this.list=new H({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:e=>`reentry-add-${e}`},onSelect:e=>this.show(e),onAdd:e=>{e&&this.addReentry(e)},onRemove:()=>this.deleteCurrent(),actions:this.host.pointAt?[{id:"reentry-point",glyph:"🎯",onClick:()=>this.pointAtCurrent()}]:[]}),this.list.setLabels({list:t.reentry,remove:t.deleteReentry,add:t.addReentry,empty:t.none,actions:{"reentry-point":t.pointAtReentry}}),this.timeline=new K(this.element("reentry-timeline"),e=>this.host.seekTo(e),{addKeyframeHere:t.addPointHere,keyframeHere:t.pointHere,zoomHint:t.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const t=this.current;t&&this.list?.rename(t.id,this.labelOf(t)),t?.seen&&this.syncPlace(!0),this.syncEvidence()}sceneNames;evidenceTimer;evidenceFor;syncEvidence(){const t=this.current,e=this.element("reentry-evidence");if(clearTimeout(this.evidenceTimer),!t)return;const n=this.host.sighting(),i=n.event?.place?.[0],r=i?.lng!==void 0&&n.event?.time?P(n.event.time,i.lng,n.event.utcOffsetHours):void 0,o=i?.lat!==void 0&&i.lng!==void 0?{lat:i.lat,lng:i.lng,heightM:0}:void 0,a={reentry:t,at:r?.getTime(),lat:o?.lat,lng:o?.lng},s=this.evidenceFor;s&&s.reentry===a.reentry&&s.at===a.at&&s.lat===a.lat&&s.lng===a.lng||(this.evidenceFor=a,e.textContent=`${this.messages.evidence} — ${this.messages.evidenceChecking}`,this.evidenceTimer=setTimeout(()=>{u.check(t,r,o).then(d=>{if(this.evidenceFor!==a)return;const c=this.messages,l=c.margins.replace("{minutes}",String(u.TIME_MARGIN_MIN)).replace("{heading}",String(u.HEADING_MARGIN_DEG)).replace("{factor}",String(u.DURATION_FACTOR)),h=document.createElement("strong");h.textContent=c.evidence;const m=d.map(p=>{const y=document.createElement("span");return y.className=`evidence-${p.verdict}`,y.textContent=this.findingText(p),y}),f=document.createElement("small");f.textContent=l,e.replaceChildren(h,...m.flatMap(p=>[document.createElement("br"),p]),document.createElement("br"),f)},()=>{this.evidenceFor===a&&(e.textContent="")})},400))}findingText(t){const e=this.messages,n=this.language,i=s=>new Intl.DateTimeFormat(n,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(s)+" UTC",r=s=>new Intl.DateTimeFormat(n,{dateStyle:"long",timeZone:"UTC"}).format(s),o=s=>s.toLocaleString(n,{maximumFractionDigits:1}),a=(s,d)=>Object.entries(d).reduce((c,[l,h])=>c.replaceAll(`{${l}}`,h===void 0?"?":String(h)),s);switch(t.verdict){case"known":if(t.source==="gmn"){const{record:s,offsetMinutes:d,headingOffDeg:c}=t.match;return a(e.knownFireball,{id:s.id,time:i(s.t),offset:d,stations:s.stations,mag:o(s.peakMagnitude),heading:c})}else{const{record:s,timeMs:d,seenKm:c}=t.candidate,l={name:s.name,cospar:s.cosparId??s.norad,time:i(d),when:s.precision==="day"?r(d):i(d),place:s.seenFrom,km:c===void 0?void 0:Math.round(c)};return a(t.by==="object"?e.knownObject:e.knownSeen,l)}case"possible":{const{record:s,timeMs:d,seenKm:c,offsetMinutes:l}=t.candidate,h={name:s.name,cospar:s.cosparId??s.norad,time:i(d),day:r(d),hours:s.uncertaintyHours,place:s.seenFrom,km:c===void 0?void 0:Math.round(c),offset:l};return a(s.precision==="minute"?e.possibleSeen:s.precision==="hours"?e.possibleWindow:e.possibleDay,h)}case"expectedAbsent":return t.source==="gmn"?a(e.expectedFireball,{mag:o(t.absoluteMagnitude),count:t.watchedCount,km:u.WATCHED_KM}):e.expectedCatalogue;case"impossible":return e.impossibleOrbit;case"uninformative":return t.source==="none"?e.typeUnknown:t.reason==="faint"?e.faintFireball:t.reason==="beforeArchive"?e.beforeGmn:t.reason==="daylight"?e.daylightGmn:a(e.unwatchedGmn,{km:u.WATCHED_KM});case"compatible":return a(e.compatibleShower,{shower:this.sceneNames?.showers[t.showerId]??t.showerId,off:t.offDeg,zhr:t.zhr,margin:u.SHOWER_MARGIN_DEG});case"sporadic":return t.active===0?e.sporadicNoShower:a(e.sporadicShower,{count:t.active});case"unchecked":return t.reason==="noDateOrPlace"?e.noDateOrPlace:t.source==="gmn"?e.unreachableGmn:e.unreachableCatalogue}}syncTimeline(){const t=this.current;if(!this.timeline||!t)return;const e=this.messages,n=t.track[0]?.t??0,i=t.track[t.track.length-1]?.t??0,r={id:"path",label:e.path,color:T.PATH_COLOR,times:t.track.map(l=>l.t),active:this.row==="path",selectedTime:this.row==="path"?t.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(l,h)=>{const m=h===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===h);this.selectPlace(m>=0?m:this.placeIndex)},move:(l,h)=>this.movePlace(l,h),add:()=>this.addPlaceAt(this.host.currentTime())},o=t.fragments.map((l,h)=>{const m=l.lightCurve??[];return{id:`fragment-${h}`,label:this.fragmentLabel(l,h),color:T.PIECE_COLOR,times:m.map(f=>f.t),spans:[{t:l.fromT??n,until:l.untilT??i,label:""}],active:this.row==="fragment"&&h===this.fragmentIndex,selectedTime:this.row==="fragment"&&h===this.fragmentIndex?m[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(h),pressed:(f,p)=>{const y=p===void 0?-1:(this.current?.fragments[h]?.lightCurve??[]).findIndex(A=>A.t===p);this.selectFragment(h,y>=0?y:void 0)},move:(f,p)=>this.moveCurvePoint(h,f,p),add:()=>this.addCurvePointAt(h,this.host.currentTime())}}),a=g.instantsOf(t),s=Math.min(...a),d=Math.max(...a),c=Math.max(500,(d-s)/10);this.timeline.show([r,...o],this.host.duration(),this.host.currentTime(),{from:s-c,to:d+c})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";static MIN_PLACES=2;syncPlace(t=!1){const e=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,e.length-1)),this.element("reentry-place-delete").disabled=e.length<=T.MIN_PLACES,this.placeForm?this.placeForm.sync(t):(this.placeForm=new D(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(g.PLACE),new k(()=>this.current?.track[this.placeIndex],n=>this.editPlace(this.placeIndex,n),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(t){this.row="path",this.placeIndex=t,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const t=this.currentFragment;this.element("reentry-fragment-legend").textContent=t?`${this.messages.fragment} ${this.fragmentLabel(t,this.fragmentIndex)}`:this.messages.fragment}editPlace(t,e){let n;this.editReentry(i=>{n={...i.track[t]},e(n),i.track=i.track.map((r,o)=>o===t?n:r).sort((r,o)=>r.t-o.t)}),n&&(this.placeIndex=this.current?.track.indexOf(n)??0),this.syncPlace()}movePlace(t,e){const n=this.current?.track.findIndex(i=>i.t===t)??-1;n<0||(this.editPlace(n,i=>{i.t=e}),this.syncPlace(!0))}addPlaceAt(t){const e=this.current;if(!e)return;const n=e.track.findIndex(r=>Math.abs(r.t-t)<1);if(n>=0){this.selectPlace(n);return}const i=g.placeAt(e,t);this.editReentry(r=>{r.track=[...r.track,i].sort((o,a)=>o.t-a.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=T.MIN_PLACES)return;const t=this.placeIndex;this.editReentry(e=>{e.track=e.track.filter((n,i)=>i!==t)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(t,e){return t.id??String(e+1)}syncFragments(t,e=!1){const n=t.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,n.length-1)),this.element("reentry-fragment-delete").disabled=n.length<=T.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(e):(this.fragmentForm=new D(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(g.FRAGMENT),new k(()=>this.currentFragment,i=>this.editFragment(r=>i(r)),()=>this.current),()=>{})),this.syncCurve(e)}selectFragment(t,e){const n=t!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=t,e!==void 0?this.curveIndex=e:n&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(t,e=this.fragmentIndex){this.editReentry(n=>{const i={...n.fragments[e]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),t(i),n.fragments=n.fragments.map((r,o)=>o===e?i:r)}),this.syncDetail(),this.syncTimeline()}addFragment(){const t=this.current;if(!t)return;const e=t.fragments[t.fragments.length-1];let n=t.fragments.length+1;for(;t.fragments.some(r=>r.id===`piece-${n}`);)n++;const i={id:`piece-${n}`,lagS:(e?.lagS??0)+1,absoluteMagnitude:(e?.absoluteMagnitude??-4)+1};this.editReentry(r=>{r.fragments=[...r.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=T.MIN_FRAGMENTS)return;const t=this.fragmentIndex;this.editReentry(e=>{e.fragments=e.fragments.filter((n,i)=>i!==t)}),this.curveIndex=0,this.selectFragment(Math.min(t,(this.current?.fragments.length??1)-1))}syncCurve(t=!1){const e=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,e.length-1)),this.element("reentry-curve-empty").hidden=e.length>0,this.element("reentry-curve-parameters").hidden=e.length===0,this.element("reentry-curve-delete").hidden=e.length===0,this.curveForm?this.curveForm.sync(t):(this.curveForm=new D(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(g.CURVE_POINT),new k(()=>this.currentFragment?.lightCurve?.[this.curveIndex],n=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,n)),()=>{})),this.syncTimeline()}editCurvePoint(t,e,n){let i;this.editFragment(r=>{const o=r.lightCurve??[];i={...o[e]},n(i),r.lightCurve=o.map((a,s)=>s===e?i:a).sort((a,s)=>a.t-s.t)},t),i&&(this.curveIndex=this.current?.fragments[t]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(t,e,n){const i=this.current?.fragments[t]?.lightCurve?.findIndex(r=>r.t===e)??-1;i<0||(this.fragmentIndex=t,this.editCurvePoint(t,i,r=>{r.t=n}),this.syncFragments(this.current,!0))}addCurvePointAt(t,e){const n=this.current?.fragments[t];if(!n)return;const i=(n.lightCurve??[]).findIndex(o=>Math.abs(o.t-e)<1);if(i>=0){this.selectFragment(t,i);return}const r=g.curvePointAt(n,e);this.editFragment(o=>{o.lightCurve=[...o.lightCurve??[],r].sort((a,s)=>a.t-s.t)},t),this.selectFragment(t,this.current?.fragments[t]?.lightCurve?.indexOf(r)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const t=this.curveIndex;this.editFragment(e=>{const n=(e.lightCurve??[]).filter((i,r)=>r!==t);n.length?e.lightCurve=n:delete e.lightCurve}),this.syncCurve(!0)}editReentry(t){const e=this.current;if(!e)return;const n={...e,track:[...e.track],fragments:[...e.fragments]};t(n),this.writeReentries(this.reentries.map(i=>i===e?n:i)),this.host.changed()}pointAtCurrent(){const t=this.current,e=t?.track;if(!t||!e||e.length<2||!this.host.pointAt)return;const n=e[0].t,i=e[e.length-1].t;let r=this.host.currentTime();(r<n||r>i)&&(r=Math.round(n+Math.min(1e3,(i-n)/2)),this.host.seekTo(r));const o=this.host.sighting(),a=G(o,r),s=o.event?.place?.[0],d=a?.lat??s?.lat,c=a?.lng??s?.lng,l=b.leadAt(t,r);if(d===void 0||c===void 0||!l)return;const h=b.seenFrom({lat:d,lng:c,heightM:a?.elevationM??0},l);this.host.pointAt(h.azimuthDeg,h.altitudeDeg)}origin(){const t=this.host.sighting(),e=t.event?.place?.[0];if(!(e?.lat===void 0||e.lng===void 0))return{lat:e.lat,lng:e.lng,headingRad:(t.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(t){const e=this.origin(),n=M.of(t);if(!e||!n)return;const{distanceKm:i,speedKmS:r,durationS:o,fromAltitudeKm:a,toAltitudeKm:s,fragments:d}=n.template,c=Math.round(this.host.currentTime()),l=Math.max(.05,Math.cos(e.lat*Math.PI/180)),h=(f,p)=>{const y=f*Math.cos(e.headingRad)-p*Math.sin(e.headingRad),A=f*Math.sin(e.headingRad)+p*Math.cos(e.headingRad);return{lat:e.lat+y/111.32,lng:e.lng+A/(111.32*l)}},m=r*o/2;return{type:t,track:[{t:c,...h(i,-m),altitudeKm:a},{t:c+o*1e3,...h(i,m),altitudeKm:s}],fragments:d.map(f=>({...f,...f.sheds?{sheds:[...f.sheds]}:{}}))}}addReentry(t){const e=this.newOf(t);if(!e)return;let n=this.reentries.length+1;for(;this.reentries.some(r=>r.id===`${t}-${n}`);)n++;const i={id:`${t}-${n}`,...e};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const t=this.current;t&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(e=>e!==t)),this.host.changed(),this.sync())}writeReentries(t){const e=this.host.sighting();e.skyEvents=L.written({...e.skyEvents,reentries:t})}labelOf(t){const e=this.host.said().read(t.title)||t.object?.name||(t.type===void 0?"":M.nameOf(t.type));return e?`${e} (${t.id})`:t.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(t){return this.container.querySelector(`#${t}`)}}export{T as ReentryEditor};
@@ -1 +0,0 @@
1
- import{b2 as S,cK as F,bz as G,bg as M,cL as f,bj as b,bb as _,cE as R,cF as w,b7 as N,b4 as y,cM as H,cN as C,cO as L,p as j}from"./ShareDialogElement--Mjaublp.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CXZLm-ck.js";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new S;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=F.map(i=>{const o=new G(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new b(this.positions,3)),t.setAttribute("color",new b(this.colors,3)),t.setDrawRange(0,0),this.trains=new _(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=w(s.altitudeDeg,s.azimuthDeg,1);return new N(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,E=0;const r=new y;this.drawn=[];for(const a of s){const u=i(a.head);if(u<=0)continue;const c=a.magnitude-2.5*Math.log10(u);if(c>t)continue;E++,this.drawn.push({direction:h.directionOf(a.head),view:a,magnitude:c}),r.set(a.color);const d=H(c,t)*a.fade,{x:A,y:m,z:g}=w(a.head.altitudeDeg,a.head.azimuthDeg,h.RADIUS),[p,I,T]=o(a.head,c),z=a.fade,D=Math.max(r.r,r.g,r.b)||1;e[C(d)].push({x:A,y:m,z:g,r:p*r.r*z/D,g:I*r.g*z/D,b:T*r.b*z/D}),n=this.pushTrain(n,a.train,d,r)}this.shown=E,this.tiers.forEach((a,u)=>{const c=e[u],d=new Float32Array(c.length*3),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),a.geometry.dispose();const m=new M;m.setAttribute("position",new b(d,3)),m.setAttribute("color",new b(A,3)),a.geometry=m});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const E=1-n/e,r=1-(n+1)/e,l=w(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),a=w(t[n+1].altitudeDeg,t[n+1].azimuthDeg,h.RADIUS),u=d=>h.RADIUS*((h.MIN_HALF_WIDTH_DEG+h.BRIGHT_HALF_WIDTH_DEG*i*d)*Math.PI/180),c=d=>h.TRAIN_SHARE*i*d**h.TRAIN_FALLOFF;s=this.pushRibbon(s,l,a,u(E),u(r),c(E),c(r),o)}return s}pushRibbon(s,t,i,o,e,n,E,r){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const a=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,a,o,u),A=this.across(i,a,e,u),m=this.across(t,a,o,c),g=this.across(i,a,e,c),p=(I,T)=>I===0?T:0;s=this.push(s,d,p(u,n),r),s=this.push(s,A,p(u,E),r),s=this.push(s,m,p(c,n),r),s=this.push(s,A,p(u,E),r),s=this.push(s,g,p(c,E),r),s=this.push(s,m,p(c,n),r)}return s}across(s,t,i,o){return{x:s.x+t.x*i*o,y:s.y+t.y*i*o,z:s.z+t.z*i*o}}push(s,t,i,o){const e=s*3;this.positions[e]=t.x,this.positions[e+1]=t.y,this.positions[e+2]=t.z;const n=L.relativeOfResponse(Math.max(0,Math.min(1,i)));return this.colors[e]=n*o.r,this.colors[e+1]=n*o.g,this.colors[e+2]=n*o.b,s+1}cross(s,t){return{x:s.y*t.z-s.z*t.y,y:s.z*t.x-s.x*t.z,z:s.x*t.y-s.y*t.x}}normalise(s){const t=Math.hypot(s.x,s.y,s.z)||1;return{x:s.x/t,y:s.y/t,z:s.z/t}}dispose(){for(const s of this.tiers)s.geometry.dispose(),s.material.dispose();this.trains.geometry.dispose(),this.trains.material.dispose(),this.object.removeFromParent()}}class ${inSky=!0;hiddenFromEye=!0;pieces=new h;get object(){return this.pieces.object}get drawnCount(){return this.pieces.count}update(s,t,i){const o=s.length===0?[]:j.viewsAt(s,t,i.observer);o.length===0&&this.pieces.count===0||(this.pieces.set(o,i.magnitudeLimit,e=>i.cloudTransmission(e),(e,n)=>i.arrivingIlluminance(e,n,1)),i.lightFrom(o.map(e=>({position:e.head,magnitude:e.magnitude}))),i.glareFrom(o.map(e=>({key:`${e.reentryId}:${e.fragmentId}`,position:e.head,magnitude:e.magnitude,fade:e.fade}))))}pick(s,t,i){const o=this.pieces.nearest(t,i.nearestCos);return o&&{id:o.view.reentryId,detail:o}}dispose(){this.pieces.dispose()}}export{$ as ReentrySimulation};
@@ -1 +0,0 @@
1
- import{bM as w,bN as M,bO as b,bP as g,be as c,bQ as y,bb as k,bD as O,bR as T,bS as E,bT as D,bU as I}from"./ShareDialogElement--Mjaublp.js";import{R as d}from"./ReferenceTimeline-2kBldQeG.js";import{g as x}from"./SaidPosition-CXZLm-ck.js";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";import"./rr0-ufoathome.mjs";import"./Sighting-Ch4eiBNK.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";const v=w.reference,u=800,l=Math.PI/180;class r{constructor(t,i,s=r.fetchImage,e=r.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=e}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=x(i.lat,i.lng,t.from.lat,t.from.lng),a=(Math.hypot(s.x,s.z)-r.PRESENT_WITHIN_M)/(r.GONE_BEYOND_M-r.PRESENT_WITHIN_M),o=Math.min(Math.max(a,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const e=new Set(t.map(a=>a.id));for(const[a,o]of this.meshes)e.has(a)||(this.dispose(o),this.meshes.delete(a),this.signatures.delete(a));for(const[a,o]of this.images){const n=t.find(p=>p.id===a);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;r.release(o),this.images.delete(a);const h=this.meshes.get(a);h&&(this.dispose(h),this.meshes.delete(a),this.signatures.delete(a))}for(const a of t){const o=this.images.get(a.id);if(!o){this.load(a);continue}this.build(a,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=v;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const e=i?.get(s);e&&s.quaternion.copy(this.cameraTurn).multiply(e),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new M;get furthestM(){return this.meshes.size>0?u:0}directionOfPixel(t,i,s,e){const a=this.images.get(t.id),o=a?a.width/a.height:1,n=d.registrationAt(t,this.clock.t),h=Math.tan(n.fovDeg/2*l),p=h*o;return e.set((i*2-1)*p,(1-s*2)*h,-1).normalize(),e.applyQuaternion(r.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&r.point(i,t,d.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const e=d.command(i.currentTime,s,this.clock.playing,d.rateOf(t));i.playbackRate=e.rate,e.seekS!==void 0&&!i.seeking&&(i.currentTime=e.seekS),e.play&&i.paused&&i.play().catch(()=>{}),!e.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",a=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(h=>h.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){r.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,m.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,a)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,e)=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.playsInline=!0,a.preload="auto",a.addEventListener("loadeddata",()=>{const o=new b(a);o.colorSpace=g,o.minFilter=c,o.magFilter=c,o.generateMipmaps=!1,a.addEventListener("seeked",i);const n=()=>{a.paused&&i(),a.src&&a.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in a&&a.requestVideoFrameCallback(n),s({texture:o,width:a.videoWidth,height:a.videoHeight,video:a})},{once:!0}),a.addEventListener("error",()=>{m.whyVideoUnread(t).then(o=>e(new f(t,o)))},{once:!0}),a.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await m.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new f(t,{kind:"notPicture"})}),e=new y(s);return e.flipY=!1,e.colorSpace=g,e.minFilter=c,e.magFilter=c,e.generateMipmaps=!1,e.needsUpdate=!0,{texture:e,width:s.width,height:s.height}}build(t,i){const s=r.signatureOf(t,i);let e=this.meshes.get(t.id);if(e&&this.signatures.get(t.id)===s){this.applyOpacity(e,t.id);return}e&&(this.dispose(e),this.meshes.delete(t.id)),e=new k(r.geometryOf(t,i),new O({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=T),e.frustumCulled=!1,e.layers.set(v),e.userData.id=t.id,r.point(e,t,d.registrationAt(t,this.clock.t)),this.scene.add(e),this.meshes.set(t.id,e),this.signatures.set(t.id,s),this.applyOpacity(e,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new E(u,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let h=0;h<n.count;h++)n.setX(h,1-n.getX(h));return n.needsUpdate=!0,o}const s=2*u*Math.tan(t.registration.fovDeg/2*l),e=s*(i.width/Math.max(i.height,1)),a=new D(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new I;return e.rotation.set(i*l,-t*l,-(s??0)*l,"YXZ"),e.quaternion}static point(t,i,s){if(t.quaternion.copy(r.orientation(s)),i.kind==="panorama")return;const e=Math.tan(s.fovDeg/2*l)/Math.tan(i.registration.fovDeg/2*l);t.scale.set(e,e,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(a=>a.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),e=i?r.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*e}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:e,rollDeg:a,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,e,a??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())r.release(t);this.images.clear()}}export{v as REFERENCE_LAYER,r as ReferenceSystem};
@@ -1 +0,0 @@
1
- import{g as D}from"./SaidPosition-CXZLm-ck.js";class M{static MIN_ROAD_M=5.5;static WIDE_ROAD_M=9;static LINE_WIDTH_M=.12;static DASH_M=3;static GAP_M=10;static RIVE_DASH_M=2.5;static RIVE_GAP_M=3.5;static MIN_DASH_M=.5;static LANE_M=3.5;static SHOULDER_MIN_M=1.5;static SOLID_EDGE_FROM_M=7;static SOLID_EDGE_FROM_KMH=80;static BEND_RADIUS_M=300;static EDGE_SETBACK_M=.4;static PAINT_RADIUS_M=450;static LIFT_M=.015;static BARRIER_MAX_AXES_M=40;static BARRIER_MIN_AXES_M=5;static BARRIER_HEIGHT_M=.8;static BARRIER_HALF_WIDTH_M=.2;static BARRIER_STEP_M=4;static painted(t){return t.surface==="paved"&&t.widthM>=M.MIN_ROAD_M&&t.kind!=="roundabout"}static plan(t){if(!M.painted(t))return[];const u=t.widthM,l=u/2,i=M.EDGE_SETBACK_M;if(!(t.direction!==void 0&&t.lanes!==void 0)){const I=[{offsetM:l-i,pattern:"solid"},{offsetM:-(l-i),pattern:"solid"}],A=u>=M.WIDE_ROAD_M?[-u/4,u/4]:[0];for(const x of A)I.push({offsetM:x,pattern:"dashed"});return I}const s=t.lanes,n=u>=M.SOLID_EDGE_FROM_M||(t.speedKmh??0)>=M.SOLID_EDGE_FROM_KMH?"solid":"rive";if(t.direction==="both"){if(s<2)return[];const I=[{offsetM:l-i,pattern:n},{offsetM:-(l-i),pattern:n}];if(s>=4){I.push({offsetM:.1,pattern:"solid"},{offsetM:-.1,pattern:"solid"});const A=Math.floor(s/2),x=u/s;for(let z=1;z<A;z++)I.push({offsetM:z*x,pattern:"dashed"},{offsetM:-z*x,pattern:"dashed"})}else I.push({offsetM:0,pattern:"dashed",solidInBends:!0});return I}const r=t.direction==="backward"?-1:1,o=I=>r*(l-I),c=Math.min(M.LANE_M,u/Math.max(s,1)),h=s*c,d=u-h,_=(t.kind==="motorway"||t.kind==="dual")&&d>=M.SHOULDER_MIN_M,E=[{offsetM:o(i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n}];E.push({offsetM:o(_?h:u-i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n});for(let I=1;I<s;I++)E.push({offsetM:o(I*c),pattern:"dashed"});return E}static lay(t,u,l,i){let e=0;const s=(f,n)=>{i(f,M.LINE_WIDTH_M,{offsetM:n,liftM:M.LIFT_M,minHalfM:M.LINE_WIDTH_M/2}),e++};for(const f of t){const n=M.plan(f);if(n.length===0)continue;const r=f.points.map(o=>D(o.lat,o.lng,u,l));for(const o of M.near(r,M.PAINT_RADIUS_M))for(const c of n){if(c.pattern==="solid"){s(o,c.offsetM);continue}const[h,d]=c.pattern==="dashed"?[M.DASH_M,M.GAP_M]:[M.RIVE_DASH_M,M.RIVE_GAP_M];for(const _ of c.solidInBends?M.byBends(o):[{path:o,bend:!1}])if(_.bend)s(_.path,c.offsetM);else for(const E of M.dashes(_.path,h,d))s(E,c.offsetM)}}return e}static byBends(t){if(t.length<3)return[{path:t,bend:!1}];const u=(e,s)=>Math.atan2(s.x-e.x,-(s.z-e.z)),l=new Array(t.length-1).fill(!1);for(let e=1;e<t.length-1;e++){const s=Math.hypot(t[e].x-t[e-1].x,t[e].z-t[e-1].z),f=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6||f<1e-6)continue;let n=Math.abs(u(t[e],t[e+1])-u(t[e-1],t[e]));n>Math.PI&&(n=2*Math.PI-n),(s+f)/2/Math.max(n,1e-6)<M.BEND_RADIUS_M&&(l[e-1]=!0,l[e]=!0)}const i=[];for(let e=0;e<l.length;e++){const s=i.at(-1);s&&s.bend===l[e]?s.path.push(t[e+1]):i.push({path:[t[e],t[e+1]],bend:l[e]})}return i}static barriers(t,u,l){const i=t.filter(n=>(n.kind==="motorway"||n.kind==="dual")&&(n.direction==="forward"||n.direction==="backward")),e=i.map(n=>{const r=n.points.map(o=>D(o.lat,o.lng,u,l));return n.direction==="backward"?[...r].reverse():r}),s=[],f=M.BARRIER_STEP_M;return i.forEach((n,r)=>{for(const o of M.near(e[r],M.PAINT_RADIUS_M)){let c=[];for(const h of M.resample(o,f)){const d=M.midwayToOpposite(h,r,i,e);d?c.push(d):c.length>0&&(c.length>=2&&s.push(c),c=[])}c.length>=2&&s.push(c)}}),s}static midwayToOpposite(t,u,l,i){let e;for(let s=0;s<i.length;s++){if(s===u||l[s].id<l[u].id)continue;const f=i[s];for(let n=0;n<f.length-1;n++){const r=f[n+1].x-f[n].x,o=f[n+1].z-f[n].z,c=r*r+o*o;if(c<1e-9||(r*t.dx+o*t.dz)/Math.sqrt(c)>-.9)continue;const h=Math.max(0,Math.min(1,((t.x-f[n].x)*r+(t.z-f[n].z)*o)/c)),d={x:f[n].x+r*h,z:f[n].z+o*h},_=Math.hypot(t.x-d.x,t.z-d.z);_<M.BARRIER_MIN_AXES_M||_>M.BARRIER_MAX_AXES_M||(!e||_<e.distance)&&(e={distance:_,point:d})}}return e?{x:(t.x+e.point.x)/2,z:(t.z+e.point.z)/2}:void 0}static resample(t,u){const l=[];for(let e=0;e<t.length-1;e++){const s=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6)continue;const f=(t[e+1].x-t[e].x)/s,n=(t[e+1].z-t[e].z)/s;for(let r=0;r<s;r+=u)l.push({x:t[e].x+f*r,z:t[e].z+n*r,dx:f,dz:n})}const i=l.at(-1);return i&&l.push({...t[t.length-1],dx:i.dx,dz:i.dz}),l}static barrierGeometry(t,u){const l=[],i=[],e=M.BARRIER_HALF_WIDTH_M;for(const s of t){if(s.length<2)continue;const f=l.length/3;for(let n=0;n<s.length;n++){const r=s[Math.max(0,n-1)],o=s[Math.min(s.length-1,n+1)],c=Math.hypot(o.x-r.x,o.z-r.z)||1,h=-(o.z-r.z)/c*e,d=(o.x-r.x)/c*e,_=u(s[n].x,s[n].z);l.push(s[n].x+h,_,s[n].z+d,s[n].x+h,_+M.BARRIER_HEIGHT_M,s[n].z+d,s[n].x-h,_+M.BARRIER_HEIGHT_M,s[n].z-d,s[n].x-h,_,s[n].z-d)}for(let n=0;n<s.length-1;n++){const r=f+n*4,o=r+4;for(let c=0;c<3;c++)i.push(r+c,o+c,r+c+1,r+c+1,o+c,o+c+1)}}return{positions:l,indices:i}}static near(t,u){const l=[];let i;for(let e=0;e<t.length-1;e++)Math.min(Math.hypot(t[e].x,t[e].z),Math.hypot(t[e+1].x,t[e+1].z))<=u||Math.hypot((t[e].x+t[e+1].x)/2,(t[e].z+t[e+1].z)/2)<=u?(i||(i=[t[e]]),i.push(t[e+1])):i&&(l.push(i),i=void 0);return i&&l.push(i),l}static dashes(t,u,l){const i=[],e=u+l;let s=0,f;const n=(o,c)=>({x:t[o].x+(t[o+1].x-t[o].x)*c,z:t[o].z+(t[o+1].z-t[o].z)*c});for(let o=0;o<t.length-1;o++){const c=Math.hypot(t[o+1].x-t[o].x,t[o+1].z-t[o].z);if(c<1e-6)continue;let h=0;for(;h<c;){const d=(s+h)%e,_=d<u,E=_?u-d:e-d,I=Math.min(c,h+E);_&&(f||(f=[n(o,h/c)]),f.push(n(o,I/c)),I-h>=E-1e-9&&(i.push(f),f=void 0)),h=I}s+=c}f&&f.length>=2&&i.push(f);const r=o=>o.slice(1).reduce((c,h,d)=>c+Math.hypot(h.x-o[d].x,h.z-o[d].z),0);return i.filter(o=>o.length>=2&&r(o)>=M.MIN_DASH_M)}}export{M as RoadMarkings};
@@ -1,4 +0,0 @@
1
- class Nt{static read(t,e){let r=t;for(const a of e.split(".")){if(r=Nt.bare(r),r===null||typeof r!="object")return;r=r[a]}return Nt.bare(r)}static write(t,e,r){const a=e.split("."),i=[];let o=t;for(let p=0;p<a.length-1;p++){let m=Nt.bare(o[a[p]]);if(m===null||typeof m!="object"||Array.isArray(m)){if(r===void 0)return;m={}}o[a[p]]=m,i.push({owner:o,part:a[p]}),o=m}const u=a[a.length-1];r===void 0?delete o[u]:o[u]=r;for(let p=i.length-1;p>=0;p--){const m=i[p].owner[i[p].part];if(Object.keys(m).length>0)break;delete i[p].owner[i[p].part]}}static stated(t,e){return Nt.read(t,e)!==void 0}static bare(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"value"in t&&"basis"in t?t.value:t}}class Kt{static sets=new Map;static publish(t){Kt.sets.set(t.kind,t)}static of(t){return Kt.sets.get(t)}static kinds(){return[...Kt.sets.keys()]}}class de{static resolved=new WeakMap;static resolve(t,e){let r=de.resolved.get(t);r||de.resolved.set(t,r=new WeakMap);let a=r.get(e);if(!a){const i=e,o=p=>{if(typeof p!="string")return p;if(typeof i[p]=="string")return i[p];const m=p.split(" ");return m.length>1&&m.every(w=>typeof i[w]=="string")?m.map(w=>i[w]).join(" "):p},u=p=>p.map(m=>({...m,label:o(m.label)}));a={...t,title:o(t.title),parameters:t.parameters.map(p=>{const m={...p,label:o(p.label),hint:o(p.hint),summary:o(p.summary),group:o(p.group),..."placeholder"in p?{placeholder:o(p.placeholder)}:{},..."empty"in p?{empty:o(p.empty)}:{}};if(m.type==="choice"){const w=m.optionsOf;return{...m,choices:u(m.choices),...w?{optionsOf:(f,b)=>u(w(f,b))}:{}}}if(m.type==="set"){const w=m.options;return{...m,options:(f,b)=>u(w(f,b))}}return m})},r.set(e,a)}return a}static missing(t,e){const r=e,a=new Set,i=o=>{if(typeof o=="string")for(const u of o.split(" "))/^[a-z][A-Za-z0-9]*$/.test(u)&&r[u]===void 0&&a.add(u)};i(t.title);for(const o of t.parameters)if(i(o.label),i(o.hint),i(o.summary),i(o.group),"placeholder"in o&&i(o.placeholder),"empty"in o&&i(o.empty),o.type==="choice")for(const u of o.choices)i(u.label);return[...a]}}class j extends Error{}class Pt{constructor(t){this.name=t}validate(t){return!0}}class wr extends Pt{min;max;constructor(t,e,r){super(t),this.min=e,this.max=r}validate(t){if(typeof t!="number")throw new j(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new j(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class M{name;min;max;duration;subUnit;validator;constructor(t,e,r,a,i=new wr(t,e,r)){this.name=t,this.min=e,this.max=r,this.subUnit=a,this.duration=a?(a.max-a.min+1)*a.duration:1,this.validator=i}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class fe{millisecond;second;minute;hour;day;month;year}class Ar extends fe{}class Sr extends Ar{millisecond=new M("millisecond",0,999,void 0);second=new M("second",0,59,this.millisecond);minute=new M("minute",0,59,this.second);hour=new M("hour",0,23,this.minute);day=new M("day",1,31,this.hour);month=new M("month",1,12,this.day);year=new M("year",0,9999,this.month)}const l=new Sr;class yr extends wr{constructor(t=1,e=12){super("month",t,e)}}class pt extends M{static Month28=new pt(28);static Month29=new pt(29);static ThirtyDays=new pt(30);static ThirtyOneDays=new pt(31);constructor(t,e=new yr(1,t)){super("month",1,t,l.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new j("Unsupported month",t,e)}}}class B{static instance=new B;render(t){return t.value.toString()}}class V{unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new Pt(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=B.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class h{static#t=new Map;static register(t,e){h.#t.set(t,e)}static get(t){const e=h.#t.get(t);if(!e)throw new j(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class ft extends V{constructor(t=new Date().getFullYear(),e=l.year){super(t,e)}static fromString(t,e=h.get(ft)){return new ft(e.parse(t))}}class q extends B{static default=new q("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class gt extends V{constructor(t=new Date().getMonth()+1,e=l.month){super(t,e)}static fromString(t,e=h.get(gt)){return new gt(e.parse(t))}toString(t=q.default){return super.toString(t)}}class wt extends V{constructor(t=new Date().getDate(),e=l.day){super(t,e)}static fromString(t,e=h.get(wt)){const r=e.parse(t);return new wt(r)}toString(t=q.default){return super.toString(t)}}class St extends V{constructor(t=new Date().getHours(),e=l.hour){super(t,e)}static fromString(t,e=h.get(St)){return new St(e.parse(t))}toString(t=q.default){return super.toString(t)}}class yt extends V{constructor(t=new Date().getMinutes(),e=l.minute){super(t,e)}static fromString(t,e=h.get(yt)){return new yt(e.parse(t))}toString(t=q.default){return super.toString(t)}}class Mt extends V{constructor(t=new Date().getSeconds(),e=l.second){super(t,e)}static fromString(t,e=h.get(Mt)){return new Mt(e.parse(t),l.second)}toString(t=q.default){return super.toString(t)}}class at extends V{static renderer=new q("0",3);constructor(t,e=l.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=at.renderer){return super.toString(t)}}class Rr{render(t){return t.toString()}}class Fr extends Rr{render(t){const e=t.value,r=Math.abs(e),a=Math.floor(r/60),i=r%60;if(a===0&&i===0)return"Z";{const o=e<0?"-":"+",u=a.toString().padStart(2,"0"),p=i>0?":"+i.toString().padEnd(2,"0"):"";return o+u+p}}}class st{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=h.get(st),r=void 0){const a=e.parse(t,r);return new st(a)}toString(t=new Fr){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class F{static timeshift(t,e){return t+(F.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:r,day:a}=t,i=t.hour??12;if(![e,r,a].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const o=F.rule(e);if(!o)return!1;const u=F.rank(r,a,i);return u>=F.rank(o.start.month,o.start.day,2)&&u<F.rank(o.end.month,o.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:F.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:F.sunday(t,3,2)},end:{month:11,day:F.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:F.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:F.sunday(t,4,-1)},end:e}}static sunday(t,e,r){const a=new Date(Date.UTC(2e3,e-1,1));a.setUTCFullYear(t);const i=1+(7-a.getUTCDay())%7;if(r>0)return i+7*(r-1);const o=[31,F.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=i;for(;u+7<=o;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,r){return(t*100+e)*100+r}}const Vr={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},$r={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},kr={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},jr={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},vr={name:"PT",timeshift:n=>F.timeshift(-480,n),title:"Pacific Time (US)"},zr={name:"MT",timeshift:n=>F.timeshift(-420,n),title:"Mountain Time (US)"},Hr={name:"CT",timeshift:n=>F.timeshift(-360,n),title:"Central Time (US)"},Br={name:"ET",timeshift:n=>F.timeshift(-300,n),title:"Eastern Time (US)"},Ur={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},qr={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Cr={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Yr={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},Wr={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},Xr={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},Or={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},Zr={name:"Z",timeshift:"Z",title:"UTC"},Jr={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},Kr={name:"BST",timeshift:"+01",title:"British Summer Time"},Qr={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},Ir={name:"CET",timeshift:"+01",title:"Central European Time"},Dr={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},Pr={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},Lr={name:"BJT",timeshift:"+08",title:"Beijing Time"},_r={name:"CST",timeshift:"-06",title:"Central Standard Time"},tn={name:"JST",timeshift:"+09",title:"Japan Standard Time"},en={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},rn={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},nn={name:"LST",timeshift:"?",title:"Local Sideral Time"},be=[Xr,en,Wr,Lr,Kr,_r,qr,Ir,Qr,Hr,Ur,Yr,Cr,Br,Jr,Pr,tn,nn,kr,Dr,jr,zr,rn,$r,Vr,vr,Or,Zr];class Lt{static instance=new Lt;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const r=[];t.hour&&r.push(this.renderComponent(t,"hour")),t.minute&&r.push(this.renderComponent(t,"minute")),t.second&&r.push(this.renderSecond(t));const a=e.join("-"),i=t.timeshift?t.timeshift.toString():"",o=r.join(":")+i;return a+(o.length>0?"T"+o:"")}}class it extends j{constructor(t="method is abstract"){super(t)}}class ge{units;constructor(t){this.units=t}newYear(t){throw new it}newMonth(t){throw new it}newDay(t){throw new it}newHour(t){throw new it}newMinute(t){throw new it}newSecond(t){throw new it}}class sn extends fe{millisecond=new M("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new M("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new M("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new M("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new M("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new M("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new M("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Zt=new sn;class _t{static instance=new _t;render(t){const e=H.toSpec(t);let r="P";const a=e.years;a&&(r+=a.toString()+"Y");const i=e.months;i&&(r+=i.toString(B.instance)+"MM");const o=e.days;o&&(r+=o.toString(B.instance)+"D");const u=e.hours;u&&(r+=u.toString(B.instance)+"H");const p=e.minutes;p&&(r+=p.toString(B.instance)+"M");const m=e.seconds;return m&&(r+=m.toString(B.instance)+"S"),r}}class H extends V{constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*l.year.duration:0)+(t.months?t.months*l.month.duration:0)+(t.days?t.days*l.day.duration:0)+(t.hours?t.hours*l.hour.duration:0)+(t.minutes?t.minutes*l.minute.duration:0)+(t.seconds?t.seconds*l.second.duration:0)},new M("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=on){let r=typeof t=="number"?t:t.value;const a=r>0?1:-1;r=Math.abs(r);const i={},o=r/l.year.duration,u=Math.floor(o);u>0&&(i.years=e.newYear(a*u),r-=u*l.year.duration);const p=r/l.month.duration,m=Math.floor(p);m>0&&(i.months=e.newMonth(a*m),r-=m*l.month.duration);const w=r/l.day.duration,f=Math.floor(w);f>0&&(i.days=e.newDay(a*f),r-=f*l.day.duration);const b=r/l.hour.duration,S=Math.floor(b);S>0&&(i.hours=e.newHour(a*S),r-=S*l.hour.duration);const z=r/l.minute.duration,N=Math.floor(z);N>0&&(i.minutes=e.newMinute(a*N),r-=N*l.minute.duration);const C=r/l.second.duration,I=Math.floor(a*C);return I>0&&(i.seconds=e.newSecond(I)),i}static fromString(t,e=h.get(H)){return new H(e.parse(t))}static between(t,e){const r=e.getTime(),a=t.getTime();return new H(r-a)}toSpec(){return H.toSpec(this)}toString(t=_t.instance){return t.render(this)}}class Mr extends ge{constructor(t){super(t)}newYear(t){return new ft(t,this.units.year)}newMonth(t){return new gt(t,this.units.month)}newDay(t){return new wt(t,this.units.day)}newHour(t){return new St(t,this.units.hour)}newMinute(t){return new yt(t,this.units.minute)}newSecond(t){return new Mt(t,this.units.second)}newMillisecond(t){return new at(t,this.units.millisecond)}newTimeshift(t){return new st(typeof t=="number"?t:t.value)}}const an=new Mr(l),on=new Mr(Zt);class R{#t;#e;#r;#n;#s;#a;#i;#o;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:R.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof V?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof V?t:this.factory.newMonth(t)}get day(){return this.#r}set day(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newDay(t):!t||t.start||t instanceof V?t:this.factory.newDay(t)}get hour(){return this.#n}set hour(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newHour(t):!t||t.start||t instanceof V?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof V?t:this.factory.newMinute(t)}get second(){return this.#a}set second(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e?this.factory.newSecond(t):!t||t.start||t instanceof V?t:this.factory.newSecond(t)}get millisecond(){return this.#i}set millisecond(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof V)?this.factory.newMillisecond(t):t}get timeshift(){return this.#o}set timeshift(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e||t&&!(t instanceof st)?this.factory.newTimeshift(t):t}get factory(){return an}static fromString(t,e=h.get(R)){const{year:r,month:a,day:i,hour:o,minute:u,second:p,millisecond:m,timeshift:w}=e.parse(t);return new R({year:r,month:a,day:i,hour:o,minute:u,second:p,millisecond:m,timeshift:w})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new R({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return R.fromString(r)}#u(t){if(this.constructor.name!==t.constructor.name)throw new Pt(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new H(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new R(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=Lt.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const r=this.month?.toSpec();r&&(t.month=r);const a=this.day?.toSpec();a&&(t.day=a);const i=this.hour?.toSpec();i&&(t.hour=i);const o=this.minute?.toSpec();o&&(t.minute=o);const u=this.second?.toSpec();u&&(t.second=u);const p=this.millisecond?.toSpec();p&&(t.millisecond=p);const m=this.timeshift?.toSpec();return m&&(t.timeshift=m),t}toJSON(){return this.toSpec()}}class we{static instance=new we;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class Et{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof H))throw new j("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof H))throw new j("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=h.get(Et)){const{start:r,end:a}=e.parse(t);return new Et(r,a)}toString(t=we.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class Jt extends B{static instance=new Jt(q.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class U extends V{#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=Jt.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class Gr extends Sr{year=new M("year",-9999,9999,this.month);yearExtended=new M("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Qt=new Gr;class L extends U{constructor(t,e=Qt.year){super(t,e)}static fromString(t,e=Qt.year,r=h.get(L)){const a=r.parse(t),i=a.value.start;if(t.startsWith("Y")&&(e=Qt.yearExtended),i!==void 0){const o=new L(Object.assign({...a},{value:Math.max(i,e.min)})),u=new L(Object.assign({...a},{value:Math.min(a.value.end,e.max)}));return{start:o,end:u}}else return new L(a,e)}}class xr extends Pt{monthValidator=new yr;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class _ extends U{constructor(t,e=new M(l.month.name,1,24,l.day,new xr)){super(t,e)}static fromString(t,e=h.get(_)){const r=e.parse(t),a=r.value.start;if(a!==void 0){let i=l.month;const o=new _(Object.assign({...r},{value:Math.max(a,i.min)})),u=new _(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new _(r)}toString(t){return super.toString(t).padStart(2,"0")}}class tt extends U{constructor(t,e=l.day){super(t,e)}static fromString(t,e=h.get(tt)){const r=e.parse(t),a=r.value.start;if(a!==void 0){let i=l.day;const o=new tt(Object.assign({...r},{value:Math.max(a,i.min)})),u=new tt(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new tt(r)}toString(t){return super.toString(t).padStart(2,"0")}}class et extends U{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=h.get(et)){const r=e.parse(t),a=r.value.start;if(a!==void 0){let i=l.hour;const o=new et(Object.assign({...r},{value:Math.max(a,i.min)})),u=new et(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new et(r)}}class rt extends U{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=h.get(rt)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.minute,o=new rt(Object.assign({...r},{value:Math.max(a,i.min)})),u=new rt(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new rt(r)}toString(t=Jt.instance){return super.toString(t)}}class nt extends U{constructor(t,e=l.second){super(t,e)}static fromString(t,e=h.get(nt)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.second,o=new nt(Object.assign({...r},{value:Math.max(a,i.min)})),u=new nt(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new nt(r)}}class ct extends st{static fromString(t,e=h.get(ct),r=void 0){return new ct(e.parse(t,r))}}class br extends ge{constructor(t){super(t)}newYear(t){return new L(t,this.units.year)}newMonth(t){return new _(t,this.units.month)}newDay(t){return new tt(t,this.units.day)}newHour(t){return new et(t,this.units.hour)}newMinute(t){return new rt(t,this.units.minute)}newSecond(t){return new nt(t,this.units.second)}newMillisecond(t){return new at(t,this.units.millisecond)}newTimeshift(t){return new ct(typeof t=="number"?t:t.value)}}const un=new br(Qt),cn=new br(Zt);class $ extends R{constructor(t){super(t)}get factory(){return un}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new $({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=h.get($)){const r=e.parse(t);return new $(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return $.fromString(r)}clone(){return new $(this.toSpec())}}const A=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class te extends _t{static instance=new te;render(t){return super.render(t)}}class T extends U{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:T.getValue(t,A.year)+T.getValue(t,A.month)+T.getValue(t,A.day)+T.getValue(t,A.hour)+T.getValue(t,A.minute)+T.getValue(t,A.second),uncertain:T.getBoolean(t,A.uncertain),approximate:T.getBoolean(t,"approximate")},Zt.millisecond)}static getBoolean(t,e){return t[e]||t[A.year+"s"]?.[e]||t[A.month+"s"]?.[e]||t[A.day+"s"]?.[e]||t[A.hour+"s"]?.[e]||t[A.minute+"s"]?.[e]||t[A.second+"s"]?.[e]||!1}static getValue(t,e){let r=0,a=t[e+"s"];if(a instanceof U?a=a.value:typeof t=="number"&&(a=t),a){const i=l[e];r=a*i.duration}return r}static toSpec(t,e=cn){return{...H.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=h.get(T)){const r=e.parse(t);return new T(r)}static between(t,e){const r=e.getTime(),a=t.getTime();return new T(r-a)}toString(t=te.instance){return super.toString(t)}toSpec(){return T.toSpec(this)}}class Tt extends Et{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=$.fromString(t)),t&&!(t instanceof $)&&!(t instanceof T))throw new j("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=$.fromString(t)),t&&!(t instanceof $)&&!(t instanceof T))throw new j("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=h.get(Tt)){const{start:r,end:a}=e.parse(t);return new Tt(r,a)}}class xt extends U{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class mn extends Gr{year=new M("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const le=new mn;class Y extends xt{constructor(t,e=le.year){super(t,e)}static fromString(t,e=le.year,r=h.get(Y)){const a=r.parse(t),i=a.value.start;if(i!==void 0){const o=new Y(Object.assign({...a},{value:Math.max(i,e.min)})),u=new Y(Object.assign({...a},{value:Math.min(a.value.end,e.max)})),p={start:o,end:u},m=a.value.estimate;return m&&(p.estimate=m),p}else return new Y(a)}}class pn extends xr{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class W extends xt{constructor(t,e=new M(l.month.name,1,41,l.day,new pn)){super(t,e)}static fromString(t,e=h.get(W)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.month,o=new W(Object.assign({...r},{value:Math.max(a,i.min)})),u=new W(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new W(r)}toString(t){return super.toString(t).padStart(2,"0")}}class X extends xt{constructor(t,e=l.day){super(t,e)}static fromString(t,e=h.get(X)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.day,o=new X(Object.assign({...r},{value:Math.max(a,i.min)})),u=new X(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new X(r)}toString(t){return super.toString(t).padStart(2,"0")}}class O extends xt{constructor(t,e=l.hour){super(t,e)}static fromString(t,e=h.get(O)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.hour,o=new O(Object.assign({...r},{value:Math.max(a,i.min)})),u=new O(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new O(r)}}class Z extends xt{constructor(t,e=l.minute){super(t,e)}static fromString(t,e=h.get(Z)){const r=e.parse(t),a=r.value.start;if(a!==void 0){const i=l.minute,o=new Z(Object.assign({...r},{value:Math.max(a,i.min)})),u=new Z(Object.assign({...r},{value:Math.min(r.value.end,i.max)}));return{start:o,end:u}}else return new Z(r)}}class J extends xt{constructor(t,e=l.second){super(t,e)}static fromString(t,e=l.second,r=h.get(J)){const a=r.parse(t),i=a.value.start;if(i!==void 0){const o=new J(Object.assign({...a},{value:Math.max(i,e.min)})),u=new J(Object.assign({...a},{value:Math.min(a.value.end,e.max)}));return{start:o,end:u}}else return new J(a,e)}}class Nr extends ct{}class hn extends Jt{qualifier(){return""}}class D extends Lt{static instance=new D;static valueRenderer=new hn(q.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const r=t[e],a=D.names.slice(D.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),i=D.qualifier(r.uncertainComponent,r.approximateComponent),o=D.qualifier(r.uncertainGroup&&!r.uncertainComponent&&!a.some(u=>u.uncertain),r.approximateGroup&&!r.approximateComponent&&!a.some(u=>u.approximate));return i+r.toString(D.valueRenderer)+o}}class Er extends ge{constructor(t){super(t)}newYear(t){return new Y(t,this.units.year)}newMonth(t){return new W(t,this.units.month)}newDay(t){return new X(t,this.units.day)}newHour(t){return new O(t,this.units.hour)}newMinute(t){return new Z(t,this.units.minute)}newSecond(t){return new J(t,this.units.second)}newMillisecond(t){return new at(t,this.units.millisecond)}newTimeshift(t){return new Nr(typeof t=="number"?t:t.value)}}const dn=new Er(le),ln=new Er(Zt);class k extends ${constructor(t){super(t)}toString(t=D.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return dn}static fromDate(t){return new k({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:R.timeshiftOf(t)})}static fromString(t,e=h.get(k)){const r=e.parse(t);return new k(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return k.fromString(r)}clone(){return new k(this.toSpec())}}class K{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new j(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new it(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class ht extends te{static instance=new ht;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=ht.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let r=e+"P";for(const[a,i]of ht.designators){const o=t.components[a];o&&(r+=ht.qualifier(o.uncertainComponent,o.approximateComponent)+o.value+i)}return r}}class E extends T{#t;constructor(t){if(super(typeof t=="number"?t:{value:E.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},Zt.millisecond),typeof t!="number"){const e={};for(const r of E.componentNames)t[r]instanceof U&&(e[r]=t[r]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return E.getValue(t,A.year)+E.getValue(t,A.month)+E.getValue(t,A.day)+E.getValue(t,A.hour)+E.getValue(t,A.minute)+E.getValue(t,A.second)}static toSpec(t,e=ln){const r=T.toSpec(t,e);if(t instanceof E&&t.hasQualifiedComponent)for(const a of E.componentNames)delete r[a],t.components[a]&&(r[a]=t.components[a]);return r}static fromString(t,e=h.get(E)){const r=e.parse(t);return new E(r)}static between(t,e){const r=e.getTime(),a=t.getTime();return new E(r-a)}toSpec(){return E.toSpec(this)}toString(t=ht.instance){return super.toString(t)}}class At extends Tt{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=k.fromString(t)),t&&!(t instanceof k)&&!(t instanceof E))throw new j("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=k.fromString(t)),t&&!(t instanceof k)&&!(t instanceof E))throw new j("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=h.get(At)){const{start:r,end:a}=e.parse(t);return new At(r,a)}}class It extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const r of this)if(r.toString()===e)return!0;return!1}static fromString(t,e=h.get(It)){const{exclusive:r,values:a}=e.parse(t);return new It(a,r)}}class Q extends K{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return Q.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new j(`${this.name} cannot be negative`);return super.parse(t)}}class s{static groupName(...t){return t.reduce((e,r)=>e?e+r.charAt(0).toUpperCase()+r.substring(1):r,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return s.optional(s.group(t,...e))}static optionalNonCapturingGroup(...t){return s.optional(s.nonCapturingGroup(...t))}static numberGroup(t,e,r,a="\\d"){return s.group(t,`${r||""}[${a}]${e}`)}}const Ne="yearValue";class Rt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ne),"{4}",void 0)}constructor(){super(Ne,Rt.format())}}const Ee="monthValue";class Ft extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ee),"{1,2}",void 0)}constructor(){super(Ee,Ft.format())}}const Te="dayValue";class dt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Te),"{1,2}",void 0)}constructor(){super(Te,dt.format())}}const Ae="hourValue";class lt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ae),"{1,2}",void 0)}constructor(){super(Ae,lt.format())}}const Re="minuteValue";class Vt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Re),"{1,2}",void 0)}constructor(){super(Re,Vt.format())}}const Fe="secondValue";class $t extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Fe),"{1,2}",void 0)}constructor(){super(Fe,$t.format())}}const Ve="timeshiftValue",$e="shiftHour",ke="shiftMinute";class Gt extends K{static format(t=""){return be.map(e=>e.name).join("|")+"|"+s.nonCapturingGroup(s.group(t+$e,s.numberGroup(s.groupName(t,Ve),"{2}","[+-]")),s.optionalNonCapturingGroup(":?",s.numberGroup(s.groupName(t,ke),"{2}",void 0)))}constructor(){super(Ve,Gt.format())}parse(t,e){let r=0;const a=be.find(i=>i.name===t);if(a){if(typeof a.timeshift=="function")try{return a.timeshift(e??{})}catch(i){throw new j(`The time zone ${t} depends on the date: ${i.message}`)}t=a.timeshift}if(t!=="Z"){const i=this.regexGroups(t),o=i[$e];o&&(r+=parseInt(o,10)*60);const u=i[ke];u&&(r+=parseInt(u,10))}return r}}const je="year",ve="month",ze="day",He="hour",Be="minute",Ue="second",qe="millisecond",Ce="timeshift";class ot extends K{static format(t=""){return s.group(s.groupName(t,je),Rt.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,ve),Ft.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,ze),dt.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,He),lt.format(t)),":?",s.group(s.groupName(t,Be),Vt.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,Ue),$t.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,qe),"\\d+"))),"\\s*",s.optionalGroup(s.groupName(t,Ce),Gt.format(t)))))}constructor(){super("date",ot.format())}parse(t){const e=this.regexGroups(t),r=e[je],a=e[ve],i=e[ze],o=e[He],u=e[Be],p=e[Ue],m=e[qe],w=e[Ce],f=r?new ft(Rt.read(r)):void 0,b=a?Ft.read(a):void 0;return{year:f,month:b?new gt(b,pt.create(b.value,f?.value)):void 0,day:i?new wt(dt.read(i)):void 0,hour:o?new St(lt.read(o)):void 0,minute:u?new yt(Vt.read(u)):void 0,second:p?new Mt($t.read(p)):void 0,millisecond:m?at.parseFraction(m):void 0,timeshift:w?st.fromString(w,new Gt,{year:f?.value,month:b?.value,day:i?dt.read(i).value:void 0,hour:o?lt.read(o).value:void 0}):void 0}}}const Ye="years",re="months",fn="days",We="hours",Xe="minutes",Oe="seconds";class Se extends K{static format(t=""){return"P"+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Ye),"+",void 0,"\\d"),"Y")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,re),"+",void 0,"\\d"),"MM")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,fn),"+",void 0,"\\d"),"D")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,We),"+",void 0,"\\d"),"H")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Xe),"+",void 0,"\\d"),"M")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Oe),"+",void 0,"\\d"),"S")}constructor(){super("duration",Se.format())}parseGroups(t){return{years:t[Ye],months:t[re],days:t[re],hours:t[We],minutes:t[Xe],seconds:t[Oe]}}}const ne="start",se="end";class ye extends K{static format=s.group(ne,ot.format(ne))+"/"+s.group(se,ot.format(se));constructor(){super("interval",ye.format)}parse(t){const e=this.regexGroups(t),r=e[ne],a=e[se];return{start:r?R.fromString(r,new ot):void 0,end:a?R.fromString(a,new ot):void 0}}}class G extends Q{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=G.uncertainGroup+G.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return s.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(s.groupName(G.uncertainGroup,t),"?")+this.qualifierFormat(s.groupName(G.approximateGroup,t),"~")+this.qualifierFormat(s.groupName(G.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,r){return s.numberGroup(t,e,r,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],r;return e.charAt(0)==="-"?(r=-1,e=e.substring(1)):r=1,{valueStr:e,sign:r}}parseGroups(t){const{valueStr:e,sign:r}=this.getValueAndSign(t);let a=0,i;for(i=0;i<e.length;i++){const m=e[i];if(m==="X")break;a=a*10+parseInt(m,10)}if(i<e.length){let m=1;for(let b=0;b<e.length-i;b++)m*=10;const w=r*a*m,f=w+m-1;a={start:w,end:f}}else a*=r;const o=t[s.groupName(G.uncertainAndApproximateGroup,this.name)],u=t[s.groupName(G.approximateGroup,this.name)]||o,p=t[s.groupName(G.uncertainGroup,this.name)]||o;return{value:a,approximate:u?!!u:!1,uncertain:p?!!p:!1}}}const Ze="yearValue";class kt extends G{constructor(){super(Ze,kt.format())}static format(t=""){return"Y?"+G.numberFormat(s.groupName(t,Ze),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const Je="monthValue";class jt extends G{static format(t=""){return G.numberFormat(s.groupName(t,Je),"{1,2}",void 0)}constructor(){super(Je,jt.format())}}const Ke="dayValue";class vt extends G{static format(t=""){return G.numberFormat(s.groupName(t,Ke),"{1,2}",void 0)}constructor(){super(Ke,vt.format())}}const Qe="hourValue";class zt extends G{static format(t=""){return G.numberFormat(s.groupName(t,Qe),"{1,2}",void 0)}constructor(){super(Qe,zt.format())}}const Ie="minuteValue";class Ht extends G{static format(t=""){return G.numberFormat(s.groupName(t,Ie),"{1,2}",void 0)}constructor(){super(Ie,Ht.format())}}const De="secondValue";class Bt extends G{static format(t=""){return G.numberFormat(s.groupName(t,De),"{1,2}",void 0)}constructor(){super(De,Bt.format())}}class Ut extends Gt{}class x extends K{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=x.format()){super("date",t)}static format(t=""){return s.group(s.groupName(t,x.yearGroup),kt.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,x.monthGroup),jt.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,x.dayGroup),vt.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,x.hourGroup),zt.format(t)),":",s.group(s.groupName(t,x.minuteGroup),Ht.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,x.secondGroup),Bt.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,x.millisecondGroup),"\\d+"))),s.optionalGroup(s.groupName(t,x.timeshiftGroup),Ut.format(t)))))}parseGroups(t){const e=t[x.millisecondGroup],r=e?at.parseFraction(e):void 0,a=t[x.secondGroup],i=a?nt.fromString(a,new Bt):void 0,o=t[x.minuteGroup];let u;o&&(u=rt.fromString(o,new Ht),u.uncertain=u.uncertain||i?.uncertain||!1,u.approximate=u.approximate||i?.approximate||!1);const p=t[x.hourGroup];let m;p&&(m=et.fromString(p,new zt),m.uncertain=m.uncertain||u?.uncertain||!1,m.approximate=m.approximate||u?.approximate||!1);const w=t[x.dayGroup];let f;w&&(f=tt.fromString(w,new vt),f.uncertain=f.uncertain||m?.uncertain||!1,f.approximate=f.approximate||m?.approximate||!1);const b=t[x.monthGroup];let S;b&&(S=_.fromString(b,new jt),S.uncertain=S.uncertain||f?.uncertain||!1,S.approximate=S.approximate||f?.approximate||!1);const z=t[x.yearGroup];let N;z&&(N=L.fromString(z,void 0,new kt),N.uncertain=N.uncertain||S?.uncertain||!1,N.approximate=N.approximate||S?.approximate||!1);const C=t[x.timeshiftGroup],I=C?ct.fromString(C,new Ut,{year:N?.value,month:S?.value,day:f?.value,hour:m?.value}):void 0;return{year:N,month:S,day:f,hour:m,minute:u,second:i,millisecond:r,timeshift:I}}}const Pe="years",Le="months",_e="days",tr="hours",er="minutes",rr="seconds";class ut extends G{static format(t=""){return"P"+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Pe),"+",void 0,"\\d"),"Y")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Le),"+",void 0,"\\d"),"MM")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,_e),"+",void 0,"\\d"),"D")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,tr),"+",void 0,"\\d"),"H")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,er),"+",void 0,"\\d"),"M")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,rr),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",ut.format())}parseGroups(t){return{years:t[Pe],months:t[Le],days:t[_e],hours:t[tr],minutes:t[er],seconds:t[rr],uncertain:!!t[G.uncertainGroup],approximate:!!t[G.approximateGroup]}}}const gn="dates",ae="start",ie="end",nr="durations",oe="durationMin",ue="durationMax";class Me extends K{static format=s.group(gn,s.optionalGroup(ae,s.group("openStart","\\.\\.")+"|"+x.format(ae))+"/"+s.optionalGroup(ie,s.group("openEnd","\\.\\.")+"|"+x.format(ie)))+"|"+s.group(nr,s.group(oe,ut.format(oe))+"/"+s.group(ue,ut.format(ue)));constructor(t="interval",e=Me.format){super(t,e)}parseGroups(t){let e,r;if(t[nr]){const i=t[oe];e=T.fromString(i,new ut);const o=t[ue];r=T.fromString(o,new ut)}else{const i=t[ae];switch(i){case void 0:e=null;break;case"..":e=void 0;break;default:e=$.fromString(i,new x)}const o=t[ie];switch(o){case void 0:r=null;break;case"..":r=void 0;break;default:r=$.fromString(o,new x)}}return{start:e,end:r}}}class g extends G{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=g.uncertainGroup+g.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,r){return this.qualifierFormat(s.groupName(g.uncertainGroup,t),"?")+this.qualifierFormat(s.groupName(g.approximateGroup,t),"~")+this.qualifierFormat(s.groupName(g.uncertainAndApproximateGroup,t),"%")+G.numberFormat(t,e,r)}parseGroups(t){const e=super.parseGroups(t),r=t[s.groupName(g.uncertainAndApproximateGroup,this.name)];return(t[s.groupName(g.uncertainGroup,this.name)]||r)&&(e.uncertainComponent=!0),(t[s.groupName(g.approximateGroup,this.name)]||r)&&(e.approximateComponent=!0),e}}const bt="yearValue",sr="exp",ar="signif";class qt extends g{constructor(){super(bt,qt.format())}static format(t=""){return"Y?"+s.nonCapturingGroup(s.group(s.groupName(t,sr),"[-]?\\d+E\\d+")+"|"+g.numberFormat(s.groupName(t,bt),"+","[-]?")+s.optionalGroup(s.groupName(t,ar),"S\\d+"))}parseGroups(t){const e=t[sr];if(e){const o=e.indexOf("E"),u=parseInt(e.substring(o+1),10),m=parseInt(e.substring(0,o),10)*Math.pow(10,u);t[bt]=m.toString()}const r=t[ar],a=t[bt];if(r){const o=parseInt(r.substring(1),10),{valueStr:u,sign:p}=this.getValueAndSign(t);let m="";for(let w=0;w<u.length;w++)m+=w<o?u.charAt(w):"X";t[bt]=(p<0?"-":"")+m}const i=super.parseGroups(t);return r&&(i.value.estimate=parseInt(a,10)),i}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const ir="monthValue";class Ct extends g{static format(t=""){return g.numberFormat(s.groupName(t,ir),"{1,2}",void 0)}constructor(){super(ir,Ct.format())}}const or="dayValue";class Yt extends g{static format(t=""){return g.numberFormat(s.groupName(t,or),"{1,2}",void 0)}constructor(){super(or,Yt.format())}}const ur="hourValue";class Wt extends g{static format(t=""){return g.numberFormat(s.groupName(t,ur),"{1,2}",void 0)}constructor(){super(ur,Wt.format())}}const cr="secondValue";class Xt extends g{static format(t=""){return g.numberFormat(s.groupName(t,cr),"{1,2}",void 0)}constructor(){super(cr,Xt.format())}}const mr="minuteValue";class Ot extends g{static format(t=""){return g.numberFormat(s.groupName(t,mr),"{1,2}",void 0)}constructor(){super(mr,Ot.format())}}class wn extends Ut{}class y extends K{static yearGroup=x.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",y.format())}static format(t=""){return s.group(s.groupName(t,y.yearGroup),qt.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,y.monthGroup),Ct.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,y.dayGroup),Yt.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,y.hourGroup),Wt.format(t)),":",s.group(s.groupName(t,y.minuteGroup),Ot.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,y.secondGroup),Xt.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,y.millisecondGroup),"\\d+"))),s.optionalGroup(s.groupName(t,y.timeshiftGroup),wn.format(t)))))}parseGroups(t){const e=t[y.millisecondGroup],r=e?at.parseFraction(e):void 0,a=t[y.secondGroup];let i;a&&(i=J.fromString(a,void 0,new Xt),i.uncertain=i?.uncertain||!1,i.approximate=i?.approximate||!1);const o=t[y.minuteGroup];let u;o&&(u=Z.fromString(o,new Ot),u.uncertain=u.uncertain||i?.uncertain||!1,u.approximate=u.approximate||i?.approximate||!1);const p=t[y.hourGroup];let m;p&&(m=O.fromString(p,new Wt),m.uncertain=m.uncertain||u?.uncertain||!1,m.approximate=m.approximate||u?.approximate||!1);const w=t[y.dayGroup];let f;w&&(f=X.fromString(w,new Yt),f.uncertain=f.uncertain||m?.uncertain||!1,f.approximate=f.approximate||m?.approximate||!1);const b=t[y.monthGroup];let S;b&&(S=W.fromString(b,new Ct),S.uncertain=S.uncertain||f?.uncertain||!1,S.approximate=S.approximate||f?.approximate||!1);const z=t[y.yearGroup];let N;z&&(N=Y.fromString(z,void 0,new qt),N.uncertain=N.uncertain||S?.uncertain||!1,N.approximate=N.approximate||S?.approximate||!1);const C=t[y.timeshiftGroup],I=C?Nr.fromString(C,new Ut,{year:N?.value,month:S?.value,day:f?.value,hour:m?.value}):void 0;return{year:N,month:S,day:f,hour:m,minute:u,second:i,millisecond:r,timeshift:I}}}const pr="durationValue";class Ge extends g{static format(t=""){return"^"+g.numberFormat(s.groupName(t,pr),"+",void 0)}constructor(){super(pr,Ge.format())}}class Sn extends fe{millisecond=new M("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new M("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new M("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new M("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new M("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new M("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new M("year",0,Number.MAX_SAFE_INTEGER,this.month)}const mt=new Sn;class d extends g{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new Ge;static componentFormat(t,e,r,a,i=""){const o=s.group(s.groupName(t,d.quantityGroup(e)),g.numberFormat(s.groupName(t,r),"+",void 0,"\\d"));return s.group(s.groupName(t,e),o,a,i)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",d.format())}static format(t=""){const e=s.groupName(t,d.durationGroup);return this.qualifierFormat(s.groupName(g.uncertainGroup,e),"?")+this.qualifierFormat(s.groupName(g.approximateGroup,e),"~")+this.qualifierFormat(s.groupName(g.uncertainAndApproximateGroup,e),"%")+"P"+s.optional(d.componentFormat(t,d.yearsGroup,y.yearGroup,"Y"))+s.optionalNonCapturingGroup(d.componentFormat(t,d.monthsGroup,y.monthGroup,"MM")+"|"+d.componentFormat(t,d.isoMonthsGroup,"isoMonth","M",d.isoMonthsLookahead))+s.optional(d.componentFormat(t,d.daysGroup,y.dayGroup,"D"))+"T?"+s.optional(d.componentFormat(t,d.hoursGroup,y.hourGroup,"H"))+s.optional(d.componentFormat(t,d.minutesGroup,y.minuteGroup,"M"))+s.optional(d.componentFormat(t,d.secondsGroup,y.secondGroup,"S"))+s.optionalGroup(s.groupName(t,d.suffixGroup),"[?~%]")}static parseComponent(t,e,r){const a=d.componentParser.parse(t);return new e(a,r)}parseGroups(t){const e=t[d.quantityGroup(d.secondsGroup)];let r;e&&(r=d.parseComponent(e,J,mt.second),r.uncertain=!!t[s.groupName(g.uncertainGroup,d.secondsGroup)]||!1,r.approximate=!!t[s.groupName(g.approximateGroup,d.secondsGroup)]||!1);const a=t[d.quantityGroup(d.minutesGroup)];let i;a&&(i=d.parseComponent(a,Z,mt.minute),i.uncertain=i.uncertain||r?.uncertain||!1,i.approximate=i.approximate||r?.approximate||!1);const o=t[d.quantityGroup(d.hoursGroup)];let u;o&&(u=d.parseComponent(o,O,mt.hour),u.uncertain=u.uncertain||i?.uncertain||!1,u.approximate=u.approximate||i?.approximate||!1);const p=t[d.quantityGroup(d.daysGroup)];let m;p&&(m=d.parseComponent(p,X,mt.day),m.uncertain=m.uncertain||u?.uncertain||!1,m.approximate=m.approximate||u?.approximate||!1);const w=t[d.quantityGroup(d.monthsGroup)]||t[d.quantityGroup(d.isoMonthsGroup)];let f;w&&(f=d.parseComponent(w,W,mt.month),f.uncertain=f.uncertain||m?.uncertain||!1,f.approximate=f.approximate||m?.approximate||!1);const b=t[d.quantityGroup(d.yearsGroup)];let S;b&&(S=d.parseComponent(b,Y,mt.year),S.uncertain=S.uncertain||f?.uncertain||!1,S.approximate=S.approximate||f?.approximate||!1);const z=t[d.suffixGroup],N=!!t[s.groupName(g.uncertainAndApproximateGroup,d.durationGroup)]||z==="%",C=N||!!t[s.groupName(g.uncertainGroup,d.durationGroup)]||z==="?",I=N||!!t[s.groupName(g.approximateGroup,d.durationGroup)]||z==="~";return{years:S,months:f,days:m,hours:u,minutes:i,seconds:r,uncertain:C,approximate:I}}}const yn="dates",ce="start",me="end",hr="durations",pe="durationMin",he="durationMax";class ee extends K{static format=s.group(yn,s.optionalGroup(ce,s.group("openStart","\\.\\.")+"|"+y.format(ce))+"/"+s.optionalGroup(me,s.group("openEnd","\\.\\.")+"|"+y.format(me)))+"|"+s.group(hr,s.group(pe,d.format(pe))+"/"+s.group(he,d.format(he)));constructor(t="interval",e=ee.format){super(t,e)}parseGroups(t){let e,r;if(t[hr]){const i=t[pe];e=E.fromString(i,new d);const o=t[he];r=E.fromString(o,new d)}else{const i=t[ce];switch(i){case void 0:e=null;break;case"..":e=void 0;break;default:e=k.fromString(i,new y)}const o=t[me];switch(o){case void 0:r=null;break;case"..":r=void 0;break;default:r=k.fromString(o,new y)}}return{start:e,end:r}}}class Mn{parse(t){t=t.trim();const e=t.startsWith("["),a=t.substring(1,t.length-1).split(","),i=[];for(const o of a){let u;o.includes("..")?u=At.fromString(o.replace("..","/"),new ee):u=k.fromString(o,new y),i.push(u)}return{values:i,exclusive:e}}}class c{static draw(t,e="none"){return`<svg class="icon" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="${e}" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${t}</svg>`}static TRASH=c.draw('<path d="M2.5 4.5h11"/><path d="M6 4.5V3h4v1.5"/><path d="M4 4.5l.7 9h6.6l.7-9"/><path d="M6.8 7v4.5M9.2 7v4.5"/>');static TARGET=c.draw('<circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.6"/><path d="M8 1v2.2M8 12.8V15M1 8h2.2M12.8 8H15"/>');static PLAY=c.draw('<path d="M5 3.2v9.6L12.6 8z"/>',"currentColor");static PAUSE=c.draw('<path d="M5.5 3.5v9M10.5 3.5v9"/>');static RECORD=c.draw('<circle cx="8" cy="8" r="4.2" fill="var(--error, #d93025)" stroke="none"/>');static STOP=c.draw('<rect x="4" y="4" width="8" height="8" rx="1.2"/>',"currentColor");static PREVIOUS_MARK=c.draw('<path d="M6.5 4 2.5 8l4 4"/><path d="M11 5.2 13.8 8 11 10.8 8.2 8z"/>');static NEXT_MARK=c.draw('<path d="M9.5 4l4 4-4 4"/><path d="M5 5.2 7.8 8 5 10.8 2.2 8z"/>');static CLOSE=c.draw('<path d="M4 4l8 8M12 4l-8 8"/>');static PLUS=c.draw('<path d="M8 3v10M3 8h10"/>');static COPY=c.draw('<rect x="5.5" y="5.5" width="8" height="8" rx="1.3"/><path d="M10.5 3.2h-7a1.3 1.3 0 0 0-1.3 1.3v7"/>');static CLOCK=c.draw('<circle cx="8" cy="8" r="6"/><path d="M8 4.6V8l2.4 1.6"/>');static INTERVIEW=c.draw('<path d="M13.3 9.2a1.6 1.6 0 0 1-1.6 1.6H6.2L3 13.4V4.4a1.6 1.6 0 0 1 1.6-1.6h7.1a1.6 1.6 0 0 1 1.6 1.6z"/><path d="M5.8 6.1h5.1M5.8 8.4h3.2"/>');static LOCK=c.draw('<rect x="3.2" y="7.2" width="9.6" height="6.4" rx="1.4"/><path d="M5.6 7.2V5.4a2.4 2.4 0 0 1 4.8 0v1.8"/>');static LOCK_OPEN=c.draw('<rect x="3.2" y="7.2" width="9.6" height="6.4" rx="1.4"/><path d="M5.6 7.2V5.4a2.4 2.4 0 0 1 4.6-.7"/>');static METEOR=c.draw('<path d="M2.5 2.5l7 7"/><path d="M5.5 2.5l5 5"/><circle cx="11.5" cy="11.5" r="2"/>');static COMET=c.draw('<circle cx="11" cy="11" r="2.4"/><path d="M9.3 9.3 2.5 2.5M9 11.2 3 7M11.2 9 7 3"/>');static STAR=c.draw('<path d="M8 2.2l1.7 3.6 3.9.5-2.9 2.7.8 3.9L8 11l-3.5 1.9.8-3.9-2.9-2.7 3.9-.5z"/>');static SATELLITE=c.draw('<rect x="6.3" y="6.3" width="3.4" height="3.4" transform="rotate(45 8 8)"/><path d="M5.4 5.4 3 3M10.6 10.6 13 13"/><path d="M1.8 4.2 4.2 1.8M11.8 14.2l2.4-2.4"/><path d="M10.5 3.5a3 3 0 0 1 2 2"/>');static FIREBALL=c.draw('<circle cx="10.5" cy="10.5" r="2.6"/><path d="M8.6 8.6 3 3M8 10.6 4.5 8.5M10.6 8 8.5 4.5"/>');static SUMMARY=c.draw('<rect x="3" y="2" width="10" height="12" rx="1.5"/><path d="M5.5 5.5h5M5.5 8h5M5.5 10.5h3"/>');static WITNESS=c.draw('<circle cx="8" cy="5" r="2.6"/><path d="M2.8 14c.6-3 2.6-4.6 5.2-4.6s4.6 1.6 5.2 4.6"/>');static LOCATION=c.draw('<path d="M8 14.3s4.5-4.3 4.5-7.8a4.5 4.5 0 0 0-9 0c0 3.5 4.5 7.8 4.5 7.8z"/><circle cx="8" cy="6.5" r="1.6"/>');static DATE=c.draw('<rect x="2.3" y="3.3" width="11.4" height="10.4" rx="1.5"/><path d="M2.3 6.6h11.4M5.3 1.8v2.8M10.7 1.8v2.8"/>');static ENVIRONMENT=c.draw('<path d="M1.5 14h13"/><path d="M2.8 14V8.3L6.3 5.5l3.5 2.8V14"/><path d="M12.2 14V9.4"/><circle cx="12.2" cy="7.4" r="2.1"/>');static SKY=c.draw('<path d="M4.6 12.5h7a2.6 2.6 0 0 0 .3-5.2 3.8 3.8 0 0 0-7.3-.6 2.9 2.9 0 0 0 0 5.8z"/>');static PHENOMENON=c.draw('<ellipse cx="8" cy="9" rx="6.3" ry="2.1"/><path d="M4.6 7.8a3.4 3.4 0 0 1 6.8 0"/><path d="M5 13.4l.6-1.4M11 13.4l-.6-1.4M8 14v-1.4"/>');static SOUND=c.draw('<path d="M2.5 6.2h2.3L8 3.5v9L4.8 9.8H2.5z"/><path d="M10.5 6a2.8 2.8 0 0 1 0 4M12.3 4.2a5.4 5.4 0 0 1 0 7.6"/>');static PICTURES=c.draw('<rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="5.8" cy="6.4" r="1.2"/><path d="M2.5 12l3.8-3.6 2.4 2.2 2.2-1.8 2.6 2.5"/>');static FILES=c.draw('<path d="M4 1.8h5.2L12.5 5v9.2H4z"/><path d="M9 1.8V5.2h3.5"/>');static RAIN=c.draw('<path d="M4.6 9.3h6.6a2.3 2.3 0 0 0 .3-4.6 3.4 3.4 0 0 0-6.5-.5 2.6 2.6 0 0 0-.4 5.1z"/><path d="M5.6 11.3l-.8 2.2M8.3 11.3l-.8 2.2M11 11.3l-.8 2.2"/>');static WIND=c.draw('<path d="M2 6.2h8.3a2 2 0 1 0-2-2"/><path d="M2 9.6h10.3a1.9 1.9 0 1 1-1.9 1.9"/><path d="M2 13h4.5"/>');static AIRCRAFT=c.draw('<path d="M8 1.8c.6 0 .9.8.9 1.8v3l5.1 2.9v1.3L8.9 9.4v2.8l1.6 1.2v1.1L8 13.8l-2.5.7v-1.1l1.6-1.2V9.4L2 10.8V9.5l5.1-2.9v-3c0-1 .3-1.8.9-1.8z"/>');static LANTERN=c.draw('<path d="M5.2 4.6h5.6l-.9 7.2H6.1z"/><path d="M6.5 4.6V3h3v1.6"/><path d="M8 11.8v2.4"/><path d="M8 7.2c.7.6.7 1.5 0 2.1-.7-.6-.7-1.5 0-2.1z"/>');static BIRD=c.draw('<path d="M1.8 7.8c2-1.8 4-1.6 6.2.9 2.2-2.5 4.2-2.7 6.2-.9"/>');static DRONE=c.draw('<rect x="6" y="6.5" width="4" height="3" rx=".8"/><path d="M6 7 3.8 4.8M10 7l2.2-2.2M6 9l-2.2 2.2M10 9l2.2 2.2"/><path d="M2 4.8h3.6M10.4 4.8H14M2 11.2h3.6M10.4 11.2H14"/>');static LAUNCH=c.draw('<path d="M8 1.8c2 1.6 3 3.9 3 6.6V11H5V8.4c0-2.7 1-5 3-6.6z"/><path d="M5 9.2 3.2 11v2.2L5 12M11 9.2l1.8 1.8v2.2L11 12"/><path d="M7 13.2 8 15l1-1.8"/><circle cx="8" cy="6.5" r="1.1"/>');static BEAM=c.draw('<path d="M7.4 12.6 4.2 2M8.6 12.6 11.8 2"/><path d="M6.2 12.6h3.6v1.8H6.2z"/>');static SHAPES=c.draw('<circle cx="5.6" cy="6" r="3.2"/><rect x="8.2" y="8.2" width="5.8" height="5.8" rx="1"/>');static BODIES=c.draw('<path d="M8 1.8 13.5 4.8v6.4L8 14.2 2.5 11.2V4.8z"/><path d="M2.5 4.8 8 7.8l5.5-3M8 7.8v6.4"/>');static ID_CARD=c.draw('<rect x="2" y="3.5" width="12" height="9" rx="1.5"/><circle cx="5.8" cy="7.2" r="1.4"/><path d="M3.8 10.8c.4-1.1 1.1-1.6 2-1.6s1.6.5 2 1.6M9.5 6.5h3M9.5 9h2.5"/>');static STRANGE=c.draw('<circle cx="8" cy="8" r="6"/><path d="M6.3 6.3a1.8 1.8 0 1 1 2.5 1.7c-.5.2-.8.6-.8 1.1v.4"/><path d="M8 11.6v.1"/>');static EYE=c.draw('<path d="M1.5 8s2.4-4.3 6.5-4.3S14.5 8 14.5 8 12.1 12.3 8 12.3 1.5 8 1.5 8z"/><circle cx="8" cy="8" r="2"/>');static PERCEPTION=c.draw('<circle cx="8" cy="8" r="2"/><path d="M8 2v2M8 12v2M2 8h2M12 8h2M3.8 3.8l1.4 1.4M10.8 10.8l1.4 1.4M3.8 12.2l1.4-1.4M10.8 5.2l1.4-1.4"/>');static GAUGE=c.draw('<path d="M2.5 11a5.5 5.5 0 0 1 11 0"/><path d="M8 11l2.6-3.2"/><circle cx="8" cy="11" r=".9"/>');static HAZE=c.draw('<path d="M2 5.5h12M3.5 8.5h9M2 11.5h12"/>');static MOON=c.draw('<path d="M10.8 2.6a5.6 5.6 0 1 0 2.6 9.6 4.6 4.6 0 0 1-2.6-9.6z"/>');static SLIDERS=c.draw('<path d="M2.5 4h11M2.5 8h11M2.5 12h11"/><circle cx="6" cy="4" r="1.3" fill="var(--ground-raised, Canvas)"/><circle cx="10.5" cy="8" r="1.3" fill="var(--ground-raised, Canvas)"/><circle cx="5" cy="12" r="1.3" fill="var(--ground-raised, Canvas)"/>');static GLOBE=c.draw('<circle cx="8" cy="8" r="6"/><path d="M2 8h12M8 2c1.8 1.7 2.6 3.7 2.6 6S9.8 12.3 8 14M8 2C6.2 3.7 5.4 5.7 5.4 8s.8 4.3 2.6 6"/>');static GAZE=c.draw('<circle cx="8" cy="8" r="6"/><path d="M10.6 5.4 9 9 5.4 10.6 7 7z"/>');static EVENTS=c.draw('<path d="M2 8h12"/><circle cx="4" cy="8" r="1.4"/><circle cx="8.5" cy="8" r="1.4"/><circle cx="12.5" cy="8" r="1.4"/>');static TOWN=c.draw('<path d="M1.5 13.5h13"/><path d="M3 13.5V9l2.5-2L8 9v4.5"/><path d="M10 13.5v-6h3.5v6"/>');static FLAG=c.draw('<path d="M4 14V2.5"/><path d="M4 3h7.5l-1.8 2.6L11.5 8.2H4"/>');static MIC=c.draw('<rect x="6" y="2" width="4" height="7.5" rx="2"/><path d="M3.8 7.8a4.2 4.2 0 0 0 8.4 0M8 12v2"/>');static CAMERA=c.draw('<path d="M2 5.5h2.6l1.2-1.8h4.4l1.2 1.8H14V13H2z"/><circle cx="8" cy="9" r="2.3"/>');static LANDMARK=c.draw('<path d="M1.5 13.5 6 5l3 5.2 1.6-2.4 3.9 5.7z"/>');static GHOST=c.draw('<path d="M8 2.2 13 5.1v5.8L8 13.8 3 10.9V5.1z"/>');static TRACE=c.draw('<path d="M2.5 12.5c2-4 4-1 6-4s3.5-3 5-5"/><circle cx="2.5" cy="12.5" r="1"/><circle cx="13.5" cy="3.5" r="1"/>');static APPEARANCE=c.draw('<path d="M8 2l1.5 4.5L14 8l-4.5 1.5L8 14l-1.5-4.5L2 8l4.5-1.5z"/>');static RULER=c.draw('<rect x="1.8" y="5.5" width="12.4" height="5" rx="1"/><path d="M4.5 5.5v2M7 5.5v2.6M9.5 5.5v2M12 5.5v2.6"/>');static PATH=c.draw('<path d="M2.5 12C4 6 9 3.5 13 4"/><path d="M10.5 2.3 13 4l-2 2.3"/>');static IDEA=c.draw('<path d="M5.5 10.5a4 4 0 1 1 5 0c-.6.5-.9 1-.9 1.6v.4H6.4v-.4c0-.6-.3-1.1-.9-1.6z"/><path d="M6.5 14.2h3"/>');static section(t){return{"label-section-identity":c.ID_CARD,"label-section-profile":c.WITNESS,"label-section-testimony":c.INTERVIEW,"strangeness-section":c.STRANGE,"label-section-vision":c.EYE,"label-section-perception":c.PERCEPTION,"witness-conditions":c.GAUGE,"viewing-conditions":c.HAZE,"moon-gauge":c.MOON,"error-parameters":c.SLIDERS,"label-section-coordinates":c.GLOBE,"label-section-gaze":c.GAZE,"label-section-events":c.EVENTS,"label-section-night-sky":c.STAR,"around-section":c.TOWN,"label-section-survey":c.ENVIRONMENT,"label-section-period":c.DATE,"label-milestones":c.FLAG,"label-section-heard":c.SOUND,"label-section-sound-recording":c.MIC,"label-section-picture":c.PICTURES,"label-section-pose":c.CAMERA,"label-reference-landmarks":c.LANDMARK,"label-reference-ghosts":c.GHOST,"label-trace-import":c.TRACE,"label-section-appearance":c.APPEARANCE,"label-section-size":c.RULER,"label-section-path":c.PATH,"label-section-phenomenon-events":c.EVENTS,"label-section-bodies-events":c.EVENTS,candidates:c.IDEA}[t]}static part(t){return{"weather-precipitation":c.RAIN,"weather-clouds":c.SKY,"weather-wind":c.WIND,"weather-aircraft":c.AIRCRAFT,"interpretation-lanterns":c.LANTERN,"interpretation-birds":c.BIRD,"interpretation-drones":c.DRONE,"sky-event-launches":c.LAUNCH,"sky-event-beams":c.BEAM,"sky-event-reentries":c.FIREBALL,"shape-shapes":c.SHAPES,"shape-bodies":c.BODIES}[t]}static BY_GLYPH={"🗑":c.TRASH,"🎯":c.TARGET,"+":c.PLUS,"✕":c.CLOSE,"▶":c.PLAY,"⏸":c.PAUSE,"⏺":c.RECORD,"⏹":c.STOP};static show(t,e){if(t.dataset.icon===e&&t.firstChild)return;const r=c.BY_GLYPH[e];r?t.innerHTML=r:t.textContent=e,t.dataset.icon=e}static CSS=`
2
- .icon { display: block; flex: none; }
3
- button:has(> .icon:only-child) { display: inline-flex; align-items: center; justify-content: center; }
4
- `}h.register(R,()=>new ot);h.register(wt,()=>new dt);h.register(H,()=>new Se);h.register(St,()=>new lt);h.register(Et,()=>new ye);h.register(yt,()=>new Vt);h.register(gt,()=>new Ft);h.register(Mt,()=>new $t);h.register(st,()=>new Gt);h.register(ft,()=>new Rt);h.register($,()=>new x);h.register(tt,()=>new vt);h.register(T,()=>new ut);h.register(et,()=>new zt);h.register(Tt,()=>new Me);h.register(rt,()=>new Ht);h.register(_,()=>new jt);h.register(nt,()=>new Bt);h.register(ct,()=>new Ut);h.register(L,()=>new kt);h.register(k,()=>new y);h.register(X,()=>new Yt);h.register(E,()=>new d);h.register(O,()=>new Wt);h.register(At,()=>new ee);h.register(Z,()=>new Ot);h.register(W,()=>new Ct);h.register(J,()=>new Xt);h.register(It,()=>new Mn);h.register(Y,()=>new qt);class P{constructor(t){this.preferences=t}read(t){var e,r;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const i of this.preferences){const o=(e=t[i])!==null&&e!==void 0?e:t[P.base(i)];if(o)return o}const a=new Set(this.preferences.map(i=>P.base(i)));for(const[i,o]of Object.entries(t))if(o&&a.has(P.base(i)))return o;return(r=Object.values(t).find(i=>i))!==null&&r!==void 0?r:void 0}write(t,e,r){var a,i;const o=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return o;const u={...t},p=(i=(a=Object.keys(u).find(m=>m===r))!==null&&a!==void 0?a:Object.keys(u).find(m=>P.base(m)===P.base(r)))!==null&&i!==void 0?i:r;return o===void 0?delete u[p]:u[p]=o,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}P.any=new P([]);var dr;(function(n){n.abductee="abductee",n.actor="actor",n.artist="artist",n.anthropologist="anthropologist",n.archeologist="archeologist",n.astronaut="astronaut",n.astronomer="astronomer",n.astrologist="astrologist",n.astrophysicist="astrophysicist",n.banker="banker",n.barman="barman",n.biologist="biologist",n.biochemist="biochemist",n.biophysicist="biophysicist",n.bishop="bishop",n.businessman="businessman",n.botanist="botanist",n.cameraman="cameraman",n.chemist="chemist",n.contactee="contactee",n.cryptozoologist="cryptozoologist",n.dentist="dentist",n.director="director",n.diplomat="diplomat",n.diver="diver",n.electronics="electronics",n.engineer="engineer",n.ethnologist="ethnologist",n.exobiologist="exobiologist",n.farmer="farmer",n.firefighter="firefighter",n.flightAttendant="flightAttendant",n.geologist="geologist",n.geophysicist="geophysicist",n.geographer="geographer",n.historian="historian",n.houseWife="houseWife",n.hypnotherapist="hypnotherapist",n.illusionist="illusionist",n.journalist="journalist",n.judge="judge",n.lawyer="lawyer",n.leader="leader",n.librarian="librarian",n.logger="logger",n.mathematician="mathematician",n.mechanic="mechanic",n.meteorologist="meteorologist",n.military="military",n.musician="musician",n.neurologist="neurologist",n.neuroscientist="neuroscientist",n.neuropsychiatrist="neuropsychiatrist",n.nurse="nurse",n.oceanographer="oceanographer",n.painter="painter",n.parapsychologist="parapsychologist",n.philosopher="philosopher",n.photographer="photographer",n.physician="physician",n.physicist="physicist",n.pilot="pilot",n.politician="politician",n.policeman="policeman",n.priest="priest",n.producer="producer",n.prospector="prospector",n.psychologist="psychologist",n.psychiatrist="psychiatrist",n.radioastronomer="radioastronomer",n.radioamateur="radioamateur",n.salesman="salesman",n.sailor="sailor",n.sociologist="sociologist",n.softwareEngineer="softwareEngineer",n.stuntman="stuntman",n.taxiDriver="taxiDriver",n.teacher="teacher",n.telegrapher="telegrapher",n.truckDriver="truckDriver",n.ufologist="ufologist",n.ufoWitness="ufoWitness",n.ufoWitness2="ufoWitness2",n.worker="worker",n.writer="writer"})(dr||(dr={}));var lr;(function(n){n.neutral="neutral",n.male="male",n.female="female"})(lr||(lr={}));class Gn extends Error{constructor(t,e){super(t),this.cause=e}}class xe extends Gn{constructor(t=xe.defaultMessage,e){super(t,e)}}xe.defaultMessage="Assertion failed";var fr;(function(n){n.country="country",n.region="region",n.department="department",n.city="city",n.company="company"})(fr||(fr={}));var gr;(function(n){n.at="at",n.au="au",n.ar="ar",n.be="be",n.br="br",n.ca="ca",n.ch="ch",n.cn="cn",n.cl="cl",n.co="co",n.cy="cy",n.de="de",n.dk="dk",n.do="do",n.dz="dz",n.gr="gr",n.ec="ec",n.eg="eg",n.es="es",n.fi="fi",n.fr="fr",n.ga="ga",n.ge="ge",n.hu="hu",n.in="in",n.ie="ie",n.ir="ir",n.il="il",n.it="it",n.jp="jp",n.kr="kr",n.ma="ma",n.mx="mx",n.my="my",n.mz="mz",n.nl="nl",n.no="no",n.nz="nz",n.pa="pa",n.pe="pe",n.ph="ph",n.pl="pl",n.pt="pt",n.ro="ro",n.ru="ru",n.sc="sc",n.tr="tr",n.ua="ua",n.uk="uk",n.us="us",n.sa="sa",n.se="se",n.su="su",n.tn="tn",n.tw="tw",n.ve="ve",n.za="za"})(gr||(gr={}));const Tr=Math.PI/180,Dt=111320;function xn(n,t,e,r){const a=Dt*Math.cos(e*Tr),i=(n-e)*Dt;return{x:(t-r)*a,z:-i}}function bn(n,t,e,r){const a=Dt*Math.cos(e*Tr),i=-t,o=n;return{lat:e+i/Dt,lng:r+o/a}}class v{static isRelative(t){return t!==void 0&&typeof t.eastM=="number"&&typeof t.northM=="number"}static isAbsolute(t){return t!==void 0&&typeof t.lat=="number"&&typeof t.lng=="number"}static referenceOf(t,e){return e.references.find(r=>(r.id??void 0)===(t.relativeTo??void 0))}static resolve(t,e){if(v.isRelative(t)){const r=v.referenceOf(t,e);return r?{eastM:r.eastM+t.eastM,northM:r.northM+t.northM}:void 0}return v.isAbsolute(t)&&e.origin?v.toLocal(t,e.origin):void 0}static restated(t,e,r){if(v.isRelative(t)){const i=v.referenceOf(t,r);return i?v.relative(e.eastM-i.eastM,e.northM-i.northM,t.relativeTo):void 0}if(!r.origin)return t;const a=v.toGeo(e,r.origin);return{lat:v.degrees(a.lat),lng:v.degrees(a.lng)}}static relative(t,e,r){const a={eastM:v.metres(t),northM:v.metres(e)};return r!==void 0&&(a.relativeTo=r),a}static toLocal(t,e){const r=xn(t.lat,t.lng,e.lat,e.lng);return{eastM:r.x,northM:-r.z}}static toGeo(t,e){return bn(t.eastM,-t.northM,e.lat,e.lng)}static metres(t){return Math.round(t*100)/100}static degrees(t){return Math.round(t*1e7)/1e7}}export{c as I,k as L,de as P,P as S,v as a,Nt as b,y as c,Kt as d,xn as g,bn as l};