@rr0/ufoathome 0.192.1 → 0.193.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.
- package/dist-embed-interview/rr0-interview.mjs +3 -3
- package/dist-embed-scene/rr0-scene.mjs +306 -306
- package/dist-embed-sighting/{CaseReportExport-BW8-bkTQ.js → CaseReportExport-CYeoYzU0.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +344 -329
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BrZzIuec.js → AdsbLolArchiveProvider--KjPxNqw.js} +1 -1
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CXvIvYxV.js → BallesterGuaspAssessor-BTmq0r-G.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-5-OlhNfL.js → BeamEditor-CI8-9VOc.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-BGdR-Xez.js → BeamSystem-odg570aR.js} +1 -1
- package/dist-embed-sighting-editor/BirdEditor-DV3ndYff.js +16 -0
- package/dist-embed-sighting-editor/{BirdFlock-DtshFXGT.js → BirdFlock-O7K_g8y7.js} +1 -1
- package/dist-embed-sighting-editor/{BodyEditor-Dn5HrH2t.js → BodyEditor-COLTBHzX.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_en-DrJY0M8h.js → CaseEditorMessages_en-CoFukfwf.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_es-j8EeOBq6.js → CaseEditorMessages_es-DZptbzB7.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_fr-BkwEF9mu.js → CaseEditorMessages_fr-DXl2GNmR.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_it-d3Z0PBEw.js → CaseEditorMessages_it-ss10VmRM.js} +1 -1
- package/dist-embed-sighting-editor/CaseElement-Bo31UxpS.js +100 -0
- package/dist-embed-sighting-editor/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-sighting-editor/{CaseReportExport-BfQWru8L.js → CaseReportExport-DpsJ5_r9.js} +2 -2
- package/dist-embed-sighting-editor/{ContrailSystem-BTVyJpmn.js → ContrailSystem-BddkU7fj.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-DiQAXMzD.js → ControlPasses-CNlCUT1L.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-CJQzNdyr.js → CoverageAssessor-DjY8iKp5.js} +1 -1
- package/dist-embed-sighting-editor/DroneEditor-DRsM2ash.js +16 -0
- package/dist-embed-sighting-editor/{DroneFlight-tXCk1Tg1.js → DroneFlight-Fr4Vgso3.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-DUVcPAF2.js → Flightradar24Provider-BxeduRam.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-C6nlGTTi.js +1 -0
- package/dist-embed-sighting-editor/{GenerativeKitMessages-I8xH2ec9.js → GenerativeKitMessages-B8L7U7gD.js} +1 -1
- package/dist-embed-sighting-editor/{GeoExportTexts-DAllttgw.js → GeoExportTexts-DrGdI2OF.js} +1 -1
- package/dist-embed-sighting-editor/{GeoJsonExport-_yjIEd4F.js → GeoJsonExport-BZ-0v8fM.js} +1 -1
- package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +1 -0
- package/dist-embed-sighting-editor/{HeadlightSystem-DRq40K7R.js → HeadlightSystem-DI5wHYZu.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-PxE7JR1h.js → HynekAssessor-DlXalbph.js} +1 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-Bbkze5KE.js +240 -0
- package/dist-embed-sighting-editor/InterviewElement-B3tm7y49.js +31 -0
- package/dist-embed-sighting-editor/{KmlExport-dpml2tIJ.js → KmlExport-Bh4eTycx.js} +1 -1
- package/dist-embed-sighting-editor/LanternEditor-M887ltwe.js +24 -0
- package/dist-embed-sighting-editor/{LaserBeam-CadJcSMd.js → LaserBeam-Drpkr84G.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-BjAk4XZR.js +22 -0
- package/dist-embed-sighting-editor/{LaunchPlume-C7My5ccR.js → LaunchPlume-CrzPcqw7.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-45Z9GUBF.js → LaunchSimulation-C1ZWpKZT.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-CzGHu4XS.js → ModelSource-Bko_3OJt.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-CNO_j-KM.js → ModelThumbnails-DSshyLu2.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-yfIxofpG.js → ModelViewer-_yhAYvNy.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-C9DED8Lk.js → ModuleConformance-B6iFVb8X.js} +2 -2
- package/dist-embed-sighting-editor/{ModuleSession-Cxe0BJue.js → ModuleSession-jKFl1FMo.js} +3 -3
- package/dist-embed-sighting-editor/ModuleThree-Fvr5G-Yh.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-DgbOYqaS.js → ModulesPanelElement-VPRCdjmv.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-EbQIYGTt.js → NearestApproach-O8k2n_qL.js} +1 -1
- package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BisQ5ybV.js → PoherAssessor-sTJEnlmb.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-CIAIBvLT.js → RailwaySystem-BZqNSSFA.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-DfDGpL5C.js +28 -0
- package/dist-embed-sighting-editor/{ReentrySimulation-Crd-CW_o.js → ReentrySimulation-BuUK0niI.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-DUIJceGg.js → ReferenceSystem-DvcQp167.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-D9-6Cy9S.js → RoadMarkings-BGK7ToZP.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-sighting-editor/SightingElement-FJvhqoCj.js +693 -0
- package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-sighting-editor/{SkyLantern-De_MXfQz.js → SkyLantern-B7UlFgmB.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Ba5H90GB.js → TraceSystem-vZF4B5EC.js} +2 -2
- package/dist-embed-sighting-editor/{UfoMessages_en-FAvzKxmR.js → UfoMessages_en-JeMK-39o.js} +1 -1
- package/dist-embed-sighting-editor/VideoButton-Kxg7pF1Y.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-Dpdw46hF.js → WaterSystem-DSWmZbiL.js} +2 -2
- package/dist-embed-sighting-editor/{interviewImport-CgWyTdKb.js → interviewImport-BlSMFEw_.js} +1 -1
- package/dist-embed-sighting-editor/interviewJson-CsMHIcZ-.js +8 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +439 -392
- package/dist-embed-sighting-editor/{surroundingsSources-YIawBCws.js → surroundingsSources-z7680fTA.js} +1 -1
- package/dist-embed-sighting-editor/{trafficRuntime-DwnTE9-7.js → trafficRuntime-C5BXL-G6.js} +1 -1
- package/dist-embed-ufoathome/Account-C4jhsVtN.js +1 -0
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-886uuL_s.js +1 -0
- package/dist-embed-ufoathome/AssemblyAiTranscriptionProvider-o2kkPD5o.js +1 -0
- package/dist-embed-ufoathome/BallesterGuaspAssessor-BSKybYn0.js +1 -0
- package/dist-embed-ufoathome/BeamEditor-U2XQEG_6.js +30 -0
- package/dist-embed-ufoathome/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-ufoathome/BeamSystem-eYdKPRQZ.js +1 -0
- package/dist-embed-ufoathome/BirdEditor-6vr7bLHy.js +16 -0
- package/dist-embed-ufoathome/BirdEditorMessages_en-CN1OJud9.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_es-DDEnjRrz.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_fr-hL72V8wm.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_it-BmLyiPYp.js +1 -0
- package/dist-embed-ufoathome/BirdFlock-ByBkJV35.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_en-c_-L7frF.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_es-8Zo2t0o4.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_fr-C1TuqqEj.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_it-DQZcrCkf.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_en-C6FkYUww.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_es-T8JyeNlI.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_fr-BiTR-olu.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_it-oQY4DX6B.js +1 -0
- package/dist-embed-ufoathome/BodyEditor-CRlKW7yl.js +28 -0
- package/dist-embed-ufoathome/BodyEditorMessages_en-CckxSS1L.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_es-B8GlFFBo.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_fr-638ypdqf.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_it-SKpMkHFI.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_en-CKiFdpaz.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_es-DT9XO1Hc.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_fr-B5jLsE0g.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_it-iyJGx4Ta.js +1 -0
- package/dist-embed-ufoathome/BrowserWhisperProvider-Dn44ZE45.js +1 -0
- package/dist-embed-ufoathome/CaseEditorElement-Ds4yB5UC.js +3033 -0
- package/dist-embed-ufoathome/CaseEditorMessages_en-CoFukfwf.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_es-DZptbzB7.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_fr-DXl2GNmR.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_it-ss10VmRM.js +1 -0
- package/dist-embed-ufoathome/CaseElement-fKdvuMAp.js +100 -0
- package/dist-embed-ufoathome/CaseExportMessages_en-jHlu58Y7.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_es-dCQQFgjq.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_fr-sDfEgjWg.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_it-BJaglZtP.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-ufoathome/CaseReportExport-Dy1xmhTI.js +66 -0
- package/dist-embed-ufoathome/CaseReportTexts_en-DlN7p1pC.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_es-CncAEaey.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_fr-B5nP6RlP.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_it-Dc-oPmXB.js +1 -0
- package/dist-embed-ufoathome/CaseTimeline-Dq1H2Ucy.js +142 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_en-CBLJZ7b6.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_es-BDV0GimU.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_fr-DiKzTF9T.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_it-DwxjRDVG.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_en-SmcRKW1O.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_es-DFCuS9Qg.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_fr-SvL-CR04.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_it-BvfiHWV9.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_en-NIa0gfgA.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_es-DXu4T30p.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_fr-Bv-jc2dq.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_it-C3RrkRwI.js +1 -0
- package/dist-embed-ufoathome/ContrailGrowth-DwHS8If9.js +1 -0
- package/dist-embed-ufoathome/ContrailSystem-pwF1XPex.js +1 -0
- package/dist-embed-ufoathome/ControlPasses-ApTdQK9r.js +29 -0
- package/dist-embed-ufoathome/CoverageAssessor-DFMo5umu.js +1 -0
- package/dist-embed-ufoathome/Decor-Dn-cvniW.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_en-idbdHsFG.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_es-CIkkLQc2.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_fr-D9GeuW_Y.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_it-v7TBrnsr.js +1 -0
- package/dist-embed-ufoathome/DecoyFlare-DUt1_LcW.js +1 -0
- package/dist-embed-ufoathome/DroneEditor-C3SH8yYq.js +16 -0
- package/dist-embed-ufoathome/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-ufoathome/DroneFlight-CGNIh9XS.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-ufoathome/FilmChrome-DYiyzoB_.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_en-j3CY_TxX.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_es-CZgrFIOO.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_fr-B2MezoN2.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_it-CmZmb3RP.js +1 -0
- package/dist-embed-ufoathome/Flightradar24Provider-BT0RC4qJ.js +1 -0
- package/dist-embed-ufoathome/GLTFLoader-DpXgTKpb.js +1 -0
- package/dist-embed-ufoathome/GenerativeKit-BmhvjjzB.js +9 -0
- package/dist-embed-ufoathome/GenerativeKitMessages-BwG7cWZX.js +1 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_en-BY4B6yas.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_es-_iYkoRhK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_fr-BY5yUJwK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_it-DAgB31P1.js +34 -0
- package/dist-embed-ufoathome/GeoExportTexts-3a51cuxQ.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_en-Dq0fSJQp.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_es-CoVHdOo0.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_fr-DVAMpZIR.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_it-Bh1uJBQp.js +1 -0
- package/dist-embed-ufoathome/GeoJsonExport-bpBmwqb7.js +2 -0
- package/dist-embed-ufoathome/GeoJsonImport-CIftC0ws.js +1 -0
- package/dist-embed-ufoathome/GeographicFigures-B0Bqeh10.js +1 -0
- package/dist-embed-ufoathome/GhostSearchView-Dlhj3xWa.js +1 -0
- package/dist-embed-ufoathome/HeadlightSystem-CMT7XiIH.js +34 -0
- package/dist-embed-ufoathome/HynekAssessor-qlHGyZnD.js +1 -0
- package/dist-embed-ufoathome/InterviewEditorElement-B33-sGHI.js +240 -0
- package/dist-embed-ufoathome/InterviewElement-CiZNhb70.js +31 -0
- package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +1 -0
- package/dist-embed-ufoathome/KmlExport-gFuPcL9A.js +19 -0
- package/dist-embed-ufoathome/KmlImport-BMAfiqoV.js +1 -0
- package/dist-embed-ufoathome/LanternEditor-BaRDgTw-.js +24 -0
- package/dist-embed-ufoathome/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_en-CQXdJ-k6.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_es-BOO6kPjs.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_fr-D7tQa_tQ.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_it-B8J-29Mj.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-ufoathome/LaserBeam-BKuiBaAN.js +1 -0
- package/dist-embed-ufoathome/LaunchEditor-CFsq327k.js +22 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-ufoathome/LaunchPlume-p7V7Yg6y.js +1 -0
- package/dist-embed-ufoathome/LaunchSimulation-3vTsM_A7.js +1 -0
- package/dist-embed-ufoathome/ModelSource-Cd7ByLN1.js +1 -0
- package/dist-embed-ufoathome/ModelThumbnails-CASGbavJ.js +1 -0
- package/dist-embed-ufoathome/ModelViewer-DEaj6_6R.js +1 -0
- package/dist-embed-ufoathome/ModuleConformance-CSg3Ac74.js +2 -0
- package/dist-embed-ufoathome/ModuleSession-BaaLmhnz.js +3 -0
- package/dist-embed-ufoathome/ModuleThree-DF_JfVBK.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelElement-BqF6eK1X.js +15 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +1 -0
- package/dist-embed-ufoathome/NearestApproach-DnGPayAo.js +1 -0
- package/dist-embed-ufoathome/Obstacles-v9SkfBD7.js +1 -0
- package/dist-embed-ufoathome/OffThreadTracer-ByPLWaYU.js +6 -0
- package/dist-embed-ufoathome/OpenAiTranscriptionProvider-DDW446tK.js +1 -0
- package/dist-embed-ufoathome/PanoramaxPictures-CELY3Ecc.js +1 -0
- package/dist-embed-ufoathome/ParameterForm-DfpJQGku.js +91 -0
- package/dist-embed-ufoathome/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-ufoathome/PictureFetch-C3wgf1ZV.js +1 -0
- package/dist-embed-ufoathome/PictureRegistration-BFn75haQ.js +1 -0
- package/dist-embed-ufoathome/PoherAssessor-DRTvhhZp.js +1 -0
- package/dist-embed-ufoathome/RailwaySystem-CUJHpW5y.js +41 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
- package/dist-embed-ufoathome/RecordingIssue-BlWT8Xsu.js +3 -0
- package/dist-embed-ufoathome/ReentryArchive-CeXHrU7L.js +1 -0
- package/dist-embed-ufoathome/ReentryEditor-DynYe51Y.js +28 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-ufoathome/ReentrySimulation-BTcyhCCG.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-ufoathome/ReferenceSystem-WdAT5UCN.js +1 -0
- package/dist-embed-ufoathome/ReferenceTimeline-2kBldQeG.js +1 -0
- package/dist-embed-ufoathome/RoadMarkings-BsN3rh0W.js +1 -0
- package/dist-embed-ufoathome/SaidPosition-CWiVNaNW.js +4 -0
- package/dist-embed-ufoathome/SatellitePasses-Pfro2-0Z.js +1 -0
- package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +1 -0
- package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +1 -0
- package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +1 -0
- package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +1 -0
- package/dist-embed-ufoathome/ShareCodeEditor-DyEYu_9d.js +13 -0
- package/dist-embed-ufoathome/ShareDialogElement-C3HL-Smq.js +9222 -0
- package/dist-embed-ufoathome/ShareMessages_en-B43x8LgJ.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_es-DZCJojSc.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_fr-CzZyVbbX.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_it-C_Z6eDQK.js +1 -0
- package/dist-embed-ufoathome/Sighting-CBpJpdm9.js +1 -0
- package/dist-embed-ufoathome/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-ufoathome/SightingElement-CexCUTjH.js +693 -0
- package/dist-embed-ufoathome/SightingFileEditor-Cllslp2u.js +8 -0
- package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-ufoathome/SkyEventEditorStyle-CvY_AhbI.js +1 -0
- package/dist-embed-ufoathome/SkyLantern-DJT_Ibzh.js +1 -0
- package/dist-embed-ufoathome/TagNames_es-BfnMpc3D.js +1 -0
- package/dist-embed-ufoathome/TagNames_fr-Dnqq6HQ5.js +1 -0
- package/dist-embed-ufoathome/TagNames_it-n6E4EGYO.js +1 -0
- package/dist-embed-ufoathome/TimelineTracks-X_GEZi12.js +35 -0
- package/dist-embed-ufoathome/TraceImport-CntRHXoJ.js +2 -0
- package/dist-embed-ufoathome/TraceSystem-Bm9JDfkW.js +393 -0
- package/dist-embed-ufoathome/TranscriptionAudio-C_xvRUv2.js +5 -0
- package/dist-embed-ufoathome/TranscriptionError-D_TCbYbt.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-dlx_C679.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-uLOvtAD0.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-LR76-eHS.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-CQl4uTnG.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_en-D5OYWJ3K.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_es-CO-v8Jl6.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_fr-CGkQBn5r.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_it-BScqxIaH.js +1 -0
- package/dist-embed-ufoathome/VideoButton-CH3rw9kX.js +1 -0
- package/dist-embed-ufoathome/VideoExport-B8ZhHNnd.js +169 -0
- package/dist-embed-ufoathome/VisualAids-DI-hEL46.js +1 -0
- package/dist-embed-ufoathome/WaterSystem-CraSRAgB.js +19 -0
- package/dist-embed-ufoathome/browser-CltifEM0.js +1 -0
- package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +1 -0
- package/dist-embed-ufoathome/index-C8cdeM8E.js +11 -0
- package/dist-embed-ufoathome/index-DqGmxMZD.js +42 -0
- package/dist-embed-ufoathome/interviewImport-ym5iXO4Z.js +4 -0
- package/{dist-embed-sighting-editor/interviewJson-iURHP4Zk.js → dist-embed-ufoathome/interviewJson-D-i14LTf.js} +1 -1
- package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +1 -0
- package/dist-embed-ufoathome/logo-h2-w4Mwu.png +0 -0
- package/dist-embed-ufoathome/lunar-relief.bin-ByThqxUn.gz +0 -0
- package/dist-embed-ufoathome/node.browser-AK49Qif5.js +1 -0
- package/dist-embed-ufoathome/node.browser-HEqoqodz.js +1 -0
- package/dist-embed-ufoathome/rain-BvWZrB9h.ogg +0 -0
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +159 -0
- package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +1 -0
- package/dist-embed-ufoathome/stars-mag7.5-9-BLV2tFmZ.bin +0 -0
- package/dist-embed-ufoathome/stars-mag7.5-B43R6Wvg.bin +0 -0
- package/dist-embed-ufoathome/surroundingsSources-kPwp7ewe.js +1 -0
- package/dist-embed-ufoathome/thunder-DA48qs_v.wav +0 -0
- package/dist-embed-ufoathome/trafficRuntime-DM6gQGDZ.js +2 -0
- package/dist-embed-ufoathome/upperAirSources-BGuLpdwu.js +1 -0
- package/dist-embed-ufoathome/wind-BjklexY7.ogg +0 -0
- package/package.json +9 -6
- package/dist-embed-sighting-editor/BirdEditor-ESUliJEN.js +0 -16
- package/dist-embed-sighting-editor/DroneEditor-DDaJO8FS.js +0 -16
- package/dist-embed-sighting-editor/GLTFLoader-DdijxzcI.js +0 -1
- package/dist-embed-sighting-editor/GeographicFigures-DC6Tw3ja.js +0 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-D-UDHU0L.js +0 -270
- package/dist-embed-sighting-editor/LanternEditor-DDcI5Kv1.js +0 -24
- package/dist-embed-sighting-editor/LaunchEditor-Pkk0K648.js +0 -22
- package/dist-embed-sighting-editor/ModuleThree-DSghL4fp.js +0 -1
- package/dist-embed-sighting-editor/PictureRegistration-CbfytwCX.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-NE8z5aZT.js +0 -28
- package/dist-embed-sighting-editor/SightingEditorMessages_en-DSPvgYFi.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Bl3DipHr.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-BTmWQX0n.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-lzbDsHjx.js +0 -12
- package/dist-embed-sighting-editor/VideoButton-CqCZ65oK.js +0 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkyLantern-DJT_Ibzh.js","./Obstacles-v9SkfBD7.js","./LanternEditor-BaRDgTw-.js","./SaidPosition-CWiVNaNW.js","./SkyEventEditorStyle-CvY_AhbI.js","./Sighting-CBpJpdm9.js","./VisualAids-DI-hEL46.js","./ParameterForm-DfpJQGku.js","./BirdFlock-ByBkJV35.js","./BirdEditor-6vr7bLHy.js","./TimelineTracks-X_GEZi12.js","./DroneFlight-CGNIh9XS.js","./Decor-Dn-cvniW.js","./DroneEditor-C3SH8yYq.js","./CaseElement-fKdvuMAp.js","./CaseTimeline-Dq1H2Ucy.js","./ShareDialogElement-C3HL-Smq.js","./RecordingIssue-BlWT8Xsu.js","./SightingElement-CexCUTjH.js","./CaseEditorElement-Ds4yB5UC.js","./ReentryArchive-CeXHrU7L.js","./ReferenceTimeline-2kBldQeG.js","./upperAirSources-BGuLpdwu.js","./Account-C4jhsVtN.js","./UfoMessages_en-D5OYWJ3K.js","./SightingEditorMessages_en-CTQYcybj.js","./SightingLabels_en-oIpytoq_.js","./SightingEditorMessages_fr-DjUByAq4.js","./SightingLabels_fr-D69zENbW.js","./SightingEditorMessages_es-D-ASD5a3.js","./SightingLabels_es-DUh1CTXl.js","./SightingEditorMessages_it-Eat0U-4p.js","./SightingLabels_it-COLZ2Qth.js","./SightingMessages_en-CYzanHjT.js","./SightingMessages_fr-BtfWbIP7.js","./SightingMessages_es-hjvESK6f.js","./SightingMessages_it-Bqm4pewZ.js","./SceneNames_en-7OZ7peGc.js","./SceneNames_fr-qzw0QzD0.js","./SceneNames_es-P5-Mavdi.js","./SceneNames_it-Sqf8JFOd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
const W="rr0-read",q="rr0-edit",k="in-place",Y="rr0-mode";class Mt{static ask(t,e,r){const s=new CustomEvent(e,{detail:r,bubbles:!0,composed:!0,cancelable:!0});return t.dispatchEvent(s),s.defaultPrevented}}const J="modulepreload",X=function(i,t){return new URL(i,t).href},D={},a=function(t,e,r){let s=Promise.resolve();if(e&&e.length>0){let n=function(u){return Promise.all(u.map(w=>Promise.resolve(w).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};const d=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");s=n(e.map(u=>{if(u=X(u,r),u in D)return;D[u]=!0;const w=u.endsWith(".css"),_=w?'[rel="stylesheet"]':"";if(!!r)for(let L=d.length-1;L>=0;L--){const x=d[L];if(x.href===u&&(!w||x.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${_}`))return;const A=document.createElement("link");if(A.rel=w?"stylesheet":J,w||(A.as="script"),A.crossOrigin="",A.href=u,c&&A.setAttribute("nonce",c),document.head.appendChild(A),w)return new Promise((L,x)=>{A.addEventListener("load",L),A.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(n){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=n,window.dispatchEvent(d),!d.defaultPrevented)throw n}return s.then(n=>{for(const d of n||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})};class v{constructor(t){this.entries=t}static free(t){return t?.basis==="assumed"||t?.basis==="fitted"}static empty(){return new v(new Map)}get size(){return this.entries.size}at(t){return this.entries.get(t)}paths(){return[...this.entries.keys()]}sourced(){return[...this.entries].filter(([,t])=>t.source!==void 0).map(([t,e])=>({path:t,basis:e.basis,source:e.source}))}interviewsCited(){const t=[];for(const{source:e}of this.sourced()){const r=e.said?.interview;r!==void 0&&!t.includes(r)&&t.push(r)}return t}pathsFromInterview(t){return this.sourced().filter(({source:e})=>e.said!==void 0&&e.said.interview===t).map(({path:e})=>e)}set(t,e){e.basis==="stated"&&e.rationale===void 0&&e.how===void 0&&e.range===void 0&&e.source===void 0?this.entries.delete(t):this.entries.set(t,e)}clear(t){for(const e of this.entries.keys())(e===t||e.startsWith(`${t}.`))&&this.entries.delete(e)}static strip(t){const e=new v(new Map);return{recording:v.stripValue(t,[],e),provenance:e}}static restore(t,e){if(e.size===0)return t;const r={...t},s=new Set([r]);for(const o of e.paths()){const n=e.at(o),d=o.split("."),l=v.writableHolderOf(r,d,s);if(!l)continue;const c=d[d.length-1],u=l[c];u!==void 0&&(n.of!==void 0&&JSON.stringify(n.of)!==JSON.stringify(u)||(l[c]={value:u,...n.basis==="stated"?{}:{basis:n.basis},...n.rationale===void 0?{}:{rationale:n.rationale},...n.how===void 0?{}:{how:n.how},...n.range===void 0?{}:{range:n.range},...n.source===void 0?{}:{source:n.source}}))}return r}static isWrapper(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"value"in t}static stripValue(t,e,r){return v.isWrapper(t)?(r.set(e.join("."),{basis:t.basis??"stated",...t.rationale===void 0?{}:{rationale:t.rationale},...t.how===void 0?{}:{how:t.how},...t.range===void 0?{}:{range:t.range},...t.source===void 0?{}:{source:t.source},of:t.value}),v.stripValue(t.value,e,r)):Array.isArray(t)?t.map((s,o)=>v.stripValue(s,[...e,String(o)],r)):typeof t=="object"&&t!==null?Object.fromEntries(Object.entries(t).map(([s,o])=>[s,v.stripValue(o,[...e,s],r)])):t}static writableHolderOf(t,e,r){let s=t;for(const o of e.slice(0,-1)){const n=s[o];if(typeof n!="object"||n===null)return;if(r.has(n)){s=n;continue}const d=Array.isArray(n)?[...n]:{...n};r.add(d),s[o]=d,s=d}return s}}class Z extends Error{constructor(t,e,r){super(typeof e=="number"&&Number.isInteger(e)&&e>=1?`This ${t} file is in version ${e} of its format; this UFO@home reads version ${r}. Read it with the UFO@home that reads its version.`:`This ${t} file states ${JSON.stringify(e)} as its format version, which is not a version.`),this.format=t,this.found=e,this.supported=r,this.name="FormatVersionError"}said(t){return t.replace("{found}",typeof this.found=="number"?String(this.found):JSON.stringify(this.found)).replace("{supported}",String(this.supported))}}class I{static CURRENT={sighting:4,case:1,interview:1};static SCHEMA_BASE="https://ufoathome.org/schema";static schemaUrl(t,e=I.CURRENT[t]){return`${I.SCHEMA_BASE}/${e}/${t}.schema.json`}static of(t){if(typeof t!="object"||t===null)return 1;const e=t.version;return e===void 0?1:typeof e=="object"&&e!==null&&"value"in e?e.value:e}static recording(t){return I.check(t,"sighting")}static check(t,e){const r=I.of(t),s=I.CURRENT[e];if(typeof r!="number"||!Number.isInteger(r)||r!==s)throw new Z(e,r,s);return t}}class p{static built=new WeakMap;static computers=new WeakMap;static loading=new WeakMap;static loaded(t,e){return e.every(r=>p.itemsOf(t,r.key).length===0||p.computers.has(r))}static load(t,e){return Promise.all(e.filter(r=>p.itemsOf(t,r.key).length>0&&!p.computers.has(r)).map(r=>{let s=p.loading.get(r);return s||(s=r.compute().then(o=>{p.computers.set(r,o)}),s.catch(()=>p.loading.delete(r)),p.loading.set(r,s)),s.catch(()=>{})})).then(()=>{})}static of(t){let e=p.built.get(t);return e||(e=t.create(),p.built.set(t,e)),e}static itemsOf(t,e){const r=t?.[e];return Array.isArray(r)?r:[]}static computes(t,e){return e.some(r=>p.itemsOf(t,r.key).length>0)}static expand(t,e,r){return p.expandWithKinds(t,e,r).interpretation}static expandWithKinds(t,e,r){const s=new Map,o=new Map;if(!t||!p.computes(t,e))return{interpretation:t,kindOf:s,phenomenonOf:o};const n=e.flatMap(d=>p.itemsOf(t,d.key).flatMap(l=>{const c=p.computers.get(d);if(!c)return[];const u=c(l,r),w=d.phenomenon?.(l);for(const _ of u)s.set(_.id,d),w&&o.set(_.id,w);return u}));return{interpretation:{...t,bodies:[...t.bodies,...n]},kindOf:s,phenomenonOf:o}}static computedPart(t,e){const r={};for(const s of e){const o=p.itemsOf(t,s.key);o.length>0&&(r[s.key]=[...o])}return r}static saysNothing(t,e){return t.bodies.length===0&&t.title===void 0&&t.smoke===void 0&&e.every(r=>t[r.key]===void 0)}}class G extends Error{constructor(t,e,r,s){super(`Module "${t}" gives "${r}" at ${e}, which module "${s}" already gives`),this.moduleId=t,this.point=e,this.sourceId=r,this.ownerId=s,this.name="ModuleConflictError"}}class Q{constructor(t){this.id=t}sources=[];owners=new Map;ownerOf(t){return this.owners.get(t)}conflict(t,e){for(const r of e){const s=this.owners.get(r.id);if(s!==void 0&&s!==t)return{sourceId:r.id,ownerId:s}}}provide(t,e){const r=this.conflict(t,e);if(r)throw new G(t,this.id,r.sourceId,r.ownerId);this.withdraw(t);const s=t===h.BUILT_IN?this.sources.findIndex(o=>this.owners.get(o.id)!==h.BUILT_IN):-1;s<0?this.sources.push(...e):this.sources.splice(s,0,...e);for(const o of e)this.owners.set(o.id,t);return this.sources}withdraw(t){for(let e=this.sources.length-1;e>=0;e--){const r=this.sources[e].id;this.owners.get(r)===t&&(this.sources.splice(e,1),this.owners.delete(r))}}}class h{static BUILT_IN="ufoathome";static changes=new EventTarget;static points=new Map;static modules=new Map;static point(t){let e=h.points.get(t);return e||(e=new Q(t),h.points.set(t,e)),e}static install(t){if(t.id===h.BUILT_IN)throw new Error(`"${h.BUILT_IN}" is the id of the built-in module`);const e=h.contributionsOf(t);for(const[o,n]of e){const d=h.point(o).conflict(t.id,n);if(d)throw new G(t.id,o,d.sourceId,d.ownerId)}const r=new Set(e.map(([o])=>o)),s=h.modules.get(t.id);if(s)for(const[o]of h.contributionsOf(s))r.add(o);for(const o of r)h.point(o).withdraw(t.id);for(const[o,n]of e)h.point(o).provide(t.id,n);h.modules.set(t.id,t);for(const o of r)h.announce(o)}static uninstall(t){const e=h.modules.get(t);if(e){h.modules.delete(t);for(const[r]of h.contributionsOf(e))h.point(r).withdraw(t),h.announce(r)}}static installed(){return[...h.modules.values()]}static contributionsOf(t){return Object.entries(t.contributes).filter(e=>Array.isArray(e[1])&&e[1].length>0)}static announce(t){h.changes.dispatchEvent(new CustomEvent("change",{detail:t}))}}const tt=["en","fr","es","it"];class f{static catalog(t){const e=new Map;return{load(r){const s=f.languageOf(r);let o=e.get(s);return o||(o=t[s](),e.set(s,o),o.catch(()=>e.delete(s))),o}}}static none(){return new Proxy({},{get:()=>""})}static blank(){const t=new Proxy(()=>t,{get:(e,r)=>r===Symbol.toPrimitive?()=>"":r===Symbol.iterator?function*(){}:r==="toString"||r==="valueOf"?()=>"":r==="then"?void 0:t,apply:()=>t,has:()=>!1,ownKeys:()=>[],getOwnPropertyDescriptor:()=>{}});return t}static languageOf(t){const e=t.toLowerCase().split("-")[0];return tt.includes(e)?e:"en"}}const et=f.catalog({en:()=>a(()=>import("./FlareKindMessages_en-j3CY_TxX.js"),[],import.meta.url).then(i=>i.flareKindMessages_en),fr:()=>a(()=>import("./FlareKindMessages_fr-B2MezoN2.js"),[],import.meta.url).then(i=>i.flareKindMessages_fr),es:()=>a(()=>import("./FlareKindMessages_es-CZgrFIOO.js"),[],import.meta.url).then(i=>i.flareKindMessages_es),it:()=>a(()=>import("./FlareKindMessages_it-CmZmb3RP.js"),[],import.meta.url).then(i=>i.flareKindMessages_it)}),P={key:"flares",messages:et,phenomenon:()=>"DecoyFlare",compute:()=>a(async()=>{const{DecoyFlare:i}=await import("./DecoyFlare-DUt1_LcW.js");return{DecoyFlare:i}},[],import.meta.url).then(({DecoyFlare:i})=>t=>i.bodiesOf(t))},rt=f.catalog({en:()=>a(()=>import("./LanternKindMessages_en-CQXdJ-k6.js"),[],import.meta.url).then(i=>i.lanternKindMessages_en),fr:()=>a(()=>import("./LanternKindMessages_fr-D7tQa_tQ.js"),[],import.meta.url).then(i=>i.lanternKindMessages_fr),es:()=>a(()=>import("./LanternKindMessages_es-BOO6kPjs.js"),[],import.meta.url).then(i=>i.lanternKindMessages_es),it:()=>a(()=>import("./LanternKindMessages_it-B8J-29Mj.js"),[],import.meta.url).then(i=>i.lanternKindMessages_it)}),V={key:"lanterns",messages:rt,phenomenon:()=>"SkyLantern",compute:()=>a(async()=>{const{SkyLantern:i}=await import("./SkyLantern-DJT_Ibzh.js");return{SkyLantern:i}},__vite__mapDeps([0,1]),import.meta.url).then(({SkyLantern:i})=>(t,e)=>i.bodiesOf(t,e?.obstacles)),editor:()=>a(async()=>{const{LanternEditor:i}=await import("./LanternEditor-BaRDgTw-.js");return{LanternEditor:i}},__vite__mapDeps([2,3,4,0,1,5,6,7]),import.meta.url).then(({LanternEditor:i})=>(t,e,r)=>new i(t,e,r))},it=f.catalog({en:()=>a(()=>import("./BirdKindMessages_en-c_-L7frF.js"),[],import.meta.url).then(i=>i.birdKindMessages_en),fr:()=>a(()=>import("./BirdKindMessages_fr-C1TuqqEj.js"),[],import.meta.url).then(i=>i.birdKindMessages_fr),es:()=>a(()=>import("./BirdKindMessages_es-8Zo2t0o4.js"),[],import.meta.url).then(i=>i.birdKindMessages_es),it:()=>a(()=>import("./BirdKindMessages_it-DQZcrCkf.js"),[],import.meta.url).then(i=>i.birdKindMessages_it)}),$={key:"birds",messages:it,phenomenon:()=>"Birds",compute:()=>a(async()=>{const{BirdFlock:i}=await import("./BirdFlock-ByBkJV35.js").then(t=>t.b);return{BirdFlock:i}},__vite__mapDeps([8,1]),import.meta.url).then(({BirdFlock:i})=>(t,e)=>i.bodiesOf(t,e?.obstacles)),editor:()=>a(async()=>{const{BirdEditor:i}=await import("./BirdEditor-6vr7bLHy.js");return{BirdEditor:i}},__vite__mapDeps([9,3,4,8,1,7,10]),import.meta.url).then(({BirdEditor:i})=>(t,e,r)=>new i(t,e,r))},st=f.catalog({en:()=>a(()=>import("./DroneKindMessages_en-CLygXcsv.js"),[],import.meta.url).then(i=>i.droneKindMessages_en),fr:()=>a(()=>import("./DroneKindMessages_fr-CAX15_pk.js"),[],import.meta.url).then(i=>i.droneKindMessages_fr),es:()=>a(()=>import("./DroneKindMessages_es-B9XFRYnQ.js"),[],import.meta.url).then(i=>i.droneKindMessages_es),it:()=>a(()=>import("./DroneKindMessages_it-CSGsCaJQ.js"),[],import.meta.url).then(i=>i.droneKindMessages_it)}),C={quadcopter:"ConsumerDrone",saucer:"ConsumerDrone","fixed-wing":"MilitaryDrone"},U={key:"drones",messages:st,phenomenon:i=>C[i.airframe]??C.quadcopter,compute:()=>a(async()=>{const{DroneFlight:i}=await import("./DroneFlight-CGNIh9XS.js").then(t=>t.c);return{DroneFlight:i}},__vite__mapDeps([11,12]),import.meta.url).then(({DroneFlight:i})=>t=>i.bodiesOf(t)),editor:()=>a(async()=>{const{DroneEditor:i}=await import("./DroneEditor-C3SH8yYq.js");return{DroneEditor:i}},__vite__mapDeps([13,3,4,11,12,7,10]),import.meta.url).then(({DroneEditor:i})=>(t,e,r)=>new i(t,e,r))},ot=h.point("interpretations").provide(h.BUILT_IN,[{id:P.key,name:"Decoy flares",credit:"UFO@home",creditUrl:"https://ufoathome.org/docs/format/",create:()=>P},{id:V.key,name:"Sky lanterns",credit:"UFO@home",creditUrl:"https://ufoathome.org/docs/format/",create:()=>V},{id:$.key,name:"Birds",credit:"UFO@home",creditUrl:"https://ufoathome.org/docs/format/",create:()=>$},{id:U.key,name:"Drones",credit:"UFO@home",creditUrl:"https://ufoathome.org/docs/format/",create:()=>U}]);class H{static kinds(){return ot.map(t=>p.of(t))}}class b{static SIGHTING_EVENT="sighting";static INTERPRETATION_EVENT="interpretation";static INTERVIEW_EVENT="interview";static check(t){return I.check(t,"case")}static isCase(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&Array.isArray(t.events)&&!("timeline"in t)}static sightingUrls(t,e){return(t.events??[]).filter(r=>r.eventType===b.SIGHTING_EVENT&&!r.interpretationOf&&typeof r.url=="string"&&r.url!=="").map(r=>new URL(r.url,e).href)}static accountIds(t,e,r,s){const o=(t.events??[]).filter(n=>n.eventType===b.SIGHTING_EVENT&&n.id!==void 0&&typeof n.url=="string"&&r!==void 0&&new URL(n.url,e).href===r).map(n=>n.id);return s!==void 0&&o.push(s),o}static interpretationEvents(t,e){const r=[e].flat().filter(s=>!!s);return r.length===0?[]:(t.events??[]).filter(s=>s.eventType===b.INTERPRETATION_EVENT?s.sighting!==void 0&&r.includes(s.sighting):s.eventType!==b.SIGHTING_EVENT||s.interpretationOf===void 0?!1:[s.interpretationOf].flat().some(o=>r.includes(o))).map(s=>s)}static problems(t,e){const r=t.events??[],s=new Set,o=new Set;for(const d of r)d.id!==void 0&&(s.has(d.id)&&o.add(d.id),s.add(d.id));const n=[];for(const d of r){const l=d.eventType===b.SIGHTING_EVENT?d.interpretationOf:d.eventType===b.INTERVIEW_EVENT?d.interviewOf:void 0;if(l!==void 0)for(const c of[l].flat())!s.has(c)&&!e.includes(c)&&n.push({reading:d.url??d.id??"",reference:c})}return{duplicateIds:[...o],unresolved:n}}static async interpretationOf(t,e,r){if(t.bodies)return b.withModelsFrom(v.strip({title:t.title,bodies:t.bodies??[],smoke:t.smoke,findings:t.findings,...p.computedPart(t,H.kinds())}).recording,e);if(!t.url)return{title:t.title,bodies:[]};const s=new URL(t.url,e).href,o=await r(s),n="timeline"in o&&o.interpretation?o.interpretation:o;return b.withModelsFrom(v.strip({title:t.title??n.title,bodies:n.bodies??[],smoke:n.smoke,findings:n.findings,...p.computedPart(n,H.kinds())}).recording,s)}static withModelsFrom(t,e){return{...t,bodies:t.bodies.map(r=>r.model?.url?{...r,model:{...r.model,url:new URL(r.model.url,e).href}}:r)}}}class g{static files=new Map;static hold(t){for(const[e,r]of t)g.files.set(g.key(e),r)}static releaseCopies(){for(const[t,e]of g.files)e.local||g.files.delete(t)}static clear(){g.files.clear()}static localBase(){return new URL(`local/${Date.now().toString(36)}${Math.random().toString(36).slice(2,6)}/`,location.href).href}static read(t){const e=g.files.get(g.key(t));return e===void 0?void 0:structuredClone(e.json)}static changed(...t){return t.some(e=>e!==void 0&&g.files.get(g.key(e))?.changed===!0)}static local(t){return t!==void 0&&g.files.get(g.key(t))?.local===!0}static key(t){const e=new URL(t,location.href);return e.hash="",e.href}}class y{static NAMES=["weather","place","lightPollution","decor"];static KEYS={weather:["weatherTrack","weatherSource"],place:["place"],lightPollution:["lightPollution"],decor:["decor"]};static annexName(t,e){return`${t}.${e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}.json`}static taken(t,e){const r={};if(t==="decor")return Array.isArray(e.decor)&&(r.decor=e.decor.filter(y.surveyed)),r;for(const s of y.KEYS[t])e[s]!==void 0&&(r[s]=e[s]);return r}static strip(t,e){if(t==="decor"){const r=Array.isArray(e.decor)?e.decor.filter(s=>!y.surveyed(s)):[];r.length>0?e.decor=r:delete e.decor;return}for(const r of y.KEYS[t])delete e[r]}static put(t,e,r){if(t==="decor"){if(!Array.isArray(r.decor))return;const s=Array.isArray(e.decor)?e.decor.filter(o=>!y.surveyed(o)):[];e.decor=[...s,...r.decor];return}for(const s of y.KEYS[t])r[s]!==void 0&&(e[s]=r[s])}static surveyed(t){return typeof t=="object"&&t!==null&&typeof t.origin=="string"}static fromFile(t,e){return t?.[e]!==void 0&&t[e].live!==!0}}class F{static NAMES=["relief","imagery","roads","water","railways","upperAir","map"];static TERRAIN=["relief","imagery","roads","water","railways"];static held(t,e){if(!t||t.live)return;const r=t[e];return r&&!r.live&&!r.refresh&&r.src!==void 0?r:void 0}static isLive(t,e){return t?.live===!0||t?.[e]?.live===!0}static annexName(t,e){const r=e==="relief"||e==="imagery"||e==="map"?"zip":"json",s=e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);return`${t}.${s}.${r}`}static isEmpty(t){return!t||!t.live&&F.NAMES.every(e=>!t[e])&&y.NAMES.every(e=>!t[e])}}class T extends Error{constructor(t,e,r){super(`${t}: ${e}${r===void 0?"":` (HTTP ${r})`}`),this.kind=t,this.url=e,this.status=r,this.name="SightingFetchError"}}class O{static async recording(t){const e=g.read(t);if(e!==void 0)return e;const r=await O.json(t);for(const s of y.NAMES){const o=r?.snapshots?.[s];if(!(!o?.src||o.live))try{const n=I.recording(await O.json(new URL(o.src,new URL(t,location.href)).href));y.put(s,r,n)}catch{}}return r}static async json(t){const e=new URL(t,location.href),r=g.read(e.href);if(r!==void 0)return r;if(location.protocol==="https:"&&e.protocol==="http:")throw new T("mixed-content",t);let s;try{s=await fetch(t)}catch{throw await this.diagnose(t,e)}if(!s.ok)throw new T("status",t,s.status);try{return await s.json()}catch{throw new T("malformed",t)}}static async diagnose(t,e){if(e.origin===location.origin)return new T("unreachable",t);try{return await fetch(t,{mode:"no-cors"}),new T("cors",t)}catch{return new T("unreachable",t)}}}class S{constructor(t,e,r=()=>{}){this.place=t,this.changed=r,e&&this.adopt(e)}reader;editor;handed;get reading(){return this.reader!==void 0}get editorLoaded(){return this.editor!==void 0}adopt(t){this.editor=t,t.switcher=this,t.hasAttribute(k)||t.setAttribute(k,""),t.addEventListener(W,e=>{e.preventDefault();const r=e.detail;this.handed=r.src,this.read(r)})}async read({src:t,track:e}){const[{register:r,CASE_ELEMENT_NAME:s,OPEN_EVENTS_ATTRIBUTE:o},{registerSighting:n,SIGHTING_ELEMENT_NAME:d}]=await Promise.all([a(()=>import("./CaseElement-fKdvuMAp.js"),__vite__mapDeps([14,15,16,3,5,6,12,17,1,18]),import.meta.url),a(()=>import("./SightingElement-CexCUTjH.js"),__vite__mapDeps([18,16,3,5,6,12,17,1]),import.meta.url)]);n(),r();const l=b.isCase(g.read(t)??await O.json(t)),c=document.createElement(l?s:d);c.setAttribute(k,""),l&&e&&c.setAttribute(o,S.fileKey(e)),c.setAttribute("src",t),c.addEventListener(q,u=>{u.preventDefault(),this.edit(u.detail)}),this.reader?.remove(),this.place(c),this.editor&&(this.editor.hidden=!0),this.reader=c,this.changed({mode:"read",src:t,...e?{track:e}:{}})}async edit(t){const e=this.editor;if(e){if(this.dropReader(),g.releaseCopies(),e.hidden=!1,this.changed({mode:"edit"}),t?.src!==void 0&&t.src!==this.handed){this.load(e,t.src,t.track);return}t?.track&&await e.openTrack(t.track);return}const{register:r,CASE_EDITOR_ELEMENT_NAME:s}=await a(async()=>{const{register:n,CASE_EDITOR_ELEMENT_NAME:d}=await import("./CaseEditorElement-Ds4yB5UC.js").then(l=>l.C);return{register:n,CASE_EDITOR_ELEMENT_NAME:d}},__vite__mapDeps([19,3,7,15,16,5,6,12,17,1,10,20,21,22,23]),import.meta.url);r();const o=document.createElement(s);this.adopt(o),t?.track&&o.setAttribute("track",t.track),t?.src&&o.setAttribute("src",t.src),this.dropReader(),this.place(o),this.changed({mode:"edit"})}async open(t){const e=this.editor;if(this.reading||!e)return this.read({src:t});this.load(e,t)}load(t,e,r){this.handed=void 0,r?t.setAttribute("track",r):t.removeAttribute("track"),t.setAttribute("src",e)}async startNew(){const t=this.editor;if(!t)return this.edit();this.reading&&await this.edit(),t.askBeforeReplacing(()=>{t.remove(),this.editor=void 0,this.edit()})}dropReader(){this.reader?.remove(),this.reader=void 0}static fileKey(t){return new URL(t,location.href).pathname.split("/").pop().replace(/\.json$/i,"")}}const M="rr0-input-file",z={inputFileFromFile:"from your disk",inputFileFromUrl:"from an address",inputFileModeHint:"Click to give it the other way: a file of yours, or an address",inputFileLoad:"Load"},nt=`
|
|
3
|
+
rr0-input-file { display: inline-flex; align-items: center; gap: .3em; }
|
|
4
|
+
/* As the date's own switch (see DateInputElement): it reads as part of the label, before the field. */
|
|
5
|
+
rr0-input-file .input-file-mode { order: -1; font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
|
|
6
|
+
rr0-input-file .input-file-mode:hover { text-decoration-thickness: 2px; }
|
|
7
|
+
rr0-input-file .input-file-mode:focus-visible { outline: 2px solid #4af; outline-offset: 2px; border-radius: 2px; }
|
|
8
|
+
/* As long as the address it holds, from 18em: an annex's is longer than that, and cut it says nothing of where it is. */
|
|
9
|
+
rr0-input-file input[type="url"] { field-sizing: content; min-width: 18em; max-width: min(100%, 60vw); }
|
|
10
|
+
rr0-input-file [hidden] { display: none !important; }
|
|
11
|
+
`;class j extends HTMLElement{fileInput;urlInput;loadButton;modeButton;wording=z;shownMode="file";build(){if(this.fileInput)return;const t=this.getAttribute("name"),e=this.ownerDocument,r=e.createElement("style");r.textContent=nt;const s=this.fileInput=e.createElement("input");s.type="file";const o=this.getAttribute("accept");o&&(s.accept=o),s.multiple=this.hasAttribute("multiple");const n=this.urlInput=e.createElement("input");n.type="url",n.placeholder=this.getAttribute("placeholder")??"https://…";const d=this.loadButton=e.createElement("button");d.type="button",d.hidden=this.hasAttribute("no-button");const l=this.modeButton=e.createElement("button");l.type="button",l.className="input-file-mode",t&&(s.id=`${t}-file`,n.id=`${t}-url`,d.id=`${t}-url-button`,l.id=`${t}-mode`),this.append(r,s,n,d,l),s.addEventListener("change",()=>{const c=[...s.files??[]];c.length!==0&&(this.pick({file:c[0],files:c}),this.hasAttribute("keep-file")||(s.value=""))}),s.addEventListener("click",c=>{const u=window.showOpenFilePicker;!this.hasAttribute("handles")||typeof u!="function"||(c.preventDefault(),this.pickHandles(u))}),d.addEventListener("click",()=>this.commitUrl()),n.addEventListener("keydown",c=>{c.key==="Enter"&&(c.preventDefault(),this.commitUrl())}),this.hasAttribute("no-button")&&n.addEventListener("change",()=>this.commitUrl()),l.addEventListener("click",()=>{this.mode=this.shownMode==="file"?"url":"file",(this.shownMode==="file"?s:n).focus()}),this.shownMode=this.getAttribute("mode")==="url"?"url":"file",this.render()}connectedCallback(){this.build()}async pickHandles(t){let e;try{const s=(this.getAttribute("accept")??"").split(",").map(o=>o.trim()).filter(o=>o.startsWith("."));e=await t({multiple:this.hasAttribute("multiple"),...s.length?{types:[{accept:{"application/json":s}}]}:{}})}catch{return}if(e.length===0)return;const r=await Promise.all(e.map(s=>s.getFile()));this.pick({file:r[0],files:r,handles:e})}commitUrl(){const t=this.urlInput.value.trim();t&&this.pick({url:t})}pick(t){this.dispatchEvent(new CustomEvent("filepick",{detail:t,bubbles:!0,composed:!0}))}render(){const t=this.shownMode==="file";this.fileInput.hidden=!t,this.urlInput.hidden=t,this.loadButton.hidden=t||this.hasAttribute("no-button"),this.modeButton.textContent=t?this.wording.inputFileFromFile:this.wording.inputFileFromUrl,this.modeButton.title=this.wording.inputFileModeHint,this.loadButton.textContent=this.wording.inputFileLoad}get mode(){return this.shownMode}set mode(t){this.build(),this.shownMode=t,this.render()}get url(){return this.build(),this.urlInput.value.trim()}set url(t){this.build(),this.urlInput.value=t,t&&(this.mode="url")}get file(){return this.build(),this.fileInput.files?.[0]??void 0}get value(){if(this.mode==="file"){const t=this.file;return t?{file:t}:void 0}return this.url?{url:this.url}:void 0}clear(){this.build(),this.fileInput.value="",this.urlInput.value=""}get disabled(){return this.hasAttribute("disabled")}set disabled(t){this.build(),this.toggleAttribute("disabled",t);for(const e of[this.fileInput,this.urlInput,this.loadButton,this.modeButton])e.disabled=t}openPicker(){this.build(),this.fileInput.click()}focus(){this.build(),(this.shownMode==="file"?this.fileInput:this.urlInput).focus()}get controls(){return this.build(),{file:this.fileInput,url:this.urlInput,load:this.loadButton,mode:this.modeButton}}set messages(t){this.wording=t,this.fileInput&&this.render()}set placeholder(t){this.build(),this.urlInput.placeholder=t}static async bytesOf(t,e=fetch.bind(globalThis)){if(t.file)return new Uint8Array(await new Promise((s,o)=>{const n=new FileReader;n.onload=()=>s(n.result),n.onerror=()=>o(n.error),n.readAsArrayBuffer(t.file)}));const r=await e(t.url);if(!r.ok)throw new Error(`${r.status} ${t.url}`);return new Uint8Array(await r.arrayBuffer())}}function K(){customElements.get(M)||customElements.define(M,j)}const St=Object.freeze(Object.defineProperty({__proto__:null,INPUT_FILE_ELEMENT_NAME:M,InputFileElement:j,inputFileMessages_en:z,register:K},Symbol.toStringTag,{value:"Module"}));class m{static MAX=12;static DATABASE="rr0-ufoathome";static STORE="recent";static async list(){try{return(await m.request("readonly",e=>e.getAll())).sort((e,r)=>r.openedAt-e.openedAt)}catch{return[]}}static async add(t){try{const e=(await m.list()).filter(r=>m.key(r)!==m.key(t)).slice(0,m.MAX-1);await m.request("readwrite",r=>{r.clear();for(const s of[t,...e])r.put(s,m.key(s));return r.count()})}catch{}}static async remove(t){try{await m.request("readwrite",e=>e.delete(m.key(t)))}catch{}}static async files(t){if(t.kind==="copy")return t.copies.map(e=>new File([e.text],e.name,{type:"application/json"}));if(t.kind!=="address"){for(const e of t.handles){const r=await e.queryPermission?.({mode:"read"});if(r!==void 0&&r!=="granted"&&await e.requestPermission?.({mode:"read"})!=="granted")throw new Error(`${e.name} may not be read again`)}return Promise.all(t.handles.map(e=>e.getFile()))}}static key(t){return t.kind==="address"?`address ${t.url}`:`files ${[...t.kind==="handles"?t.handles.map(r=>r.name):t.copies.map(r=>r.name)].sort().join(`
|
|
12
|
+
`)}`}static request(t,e){return new Promise((r,s)=>{const o=indexedDB.open(m.DATABASE,1);o.onupgradeneeded=()=>o.result.createObjectStore(m.STORE),o.onerror=()=>s(o.error),o.onsuccess=()=>{const n=o.result,d=n.transaction(m.STORE,t),l=e(d.objectStore(m.STORE));d.oncomplete=()=>{n.close(),r(l.result)},d.onerror=()=>{n.close(),s(d.error)}}})}}class R{static TOKENS=`
|
|
13
|
+
--ink: light-dark(#131a26, #e8ecf4);
|
|
14
|
+
--ink-dim: light-dark(#4c5a70, #a3adc2);
|
|
15
|
+
--ink-faint: light-dark(#78859b, #6f7b93);
|
|
16
|
+
--ground: light-dark(#f6f8fc, #070a12);
|
|
17
|
+
--ground-raised: light-dark(#ffffff, #0e1422);
|
|
18
|
+
--ground-sunken: light-dark(#eaeff7, #050710);
|
|
19
|
+
--line: light-dark(#dde4ef, #1e2739);
|
|
20
|
+
--line-strong: light-dark(#c2ccdc, #2e3a52);
|
|
21
|
+
--glow: light-dark(#9a6f12, #f5c451);
|
|
22
|
+
--glow-solid: light-dark(#f0bc44, #f5c451);
|
|
23
|
+
--glow-on-solid: #1a1405;
|
|
24
|
+
--glow-dim: light-dark(#a07d29, #a8873a);
|
|
25
|
+
--sky: light-dark(#12608f, #7fd4ff);
|
|
26
|
+
--focus: light-dark(#176bba, #7fd4ff);
|
|
27
|
+
--focus-bg: light-dark(rgba(23, 107, 186, .15), rgba(127, 212, 255, .18));
|
|
28
|
+
--ok: light-dark(#1f7a44, #8fd7a4);
|
|
29
|
+
--error: light-dark(#c0392b, #ff8a7a);
|
|
30
|
+
--error-bg: light-dark(rgba(192, 57, 43, .09), rgba(255, 138, 122, .12));
|
|
31
|
+
--warn: light-dark(#b85c00, #ffb066);
|
|
32
|
+
--warn-bg: light-dark(rgba(154, 111, 18, .14), rgba(245, 196, 81, .14));
|
|
33
|
+
--neutral-bg: light-dark(rgba(120, 133, 155, .14), rgba(140, 155, 185, .12));
|
|
34
|
+
--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
|
|
35
|
+
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, sans-serif;
|
|
36
|
+
--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
|
|
37
|
+
`;static HEAD=`
|
|
38
|
+
.editor-head {
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
gap: 16px;
|
|
43
|
+
padding: 16px 18px;
|
|
44
|
+
border-bottom: 1px solid var(--line);
|
|
45
|
+
}
|
|
46
|
+
.editor-head[hidden] { display: none; }
|
|
47
|
+
.head-text { min-width: 0; }
|
|
48
|
+
.kicker { display: block; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--glow-dim); }
|
|
49
|
+
.editor-title { margin: 2px 0 4px; font: 600 20px/1.3 var(--serif); color: var(--ink); }
|
|
50
|
+
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
|
|
51
|
+
/* In the header now, side by side: the column the old strip reserved for them is gone. */
|
|
52
|
+
.head-actions .history { position: static; flex-direction: row; gap: 8px; }
|
|
53
|
+
.head-actions .history .icon-btn {
|
|
54
|
+
width: 36px; height: 36px; min-width: 36px; min-height: 36px; max-width: none; max-height: none;
|
|
55
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
56
|
+
}
|
|
57
|
+
.pill-btn {
|
|
58
|
+
display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
|
|
59
|
+
border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ground-raised); color: var(--ink);
|
|
60
|
+
font: 600 14px/1 var(--sans); cursor: pointer;
|
|
61
|
+
}
|
|
62
|
+
.pill-btn.primary:not(:disabled), #save:not(:disabled) { background: var(--glow-solid); border-color: var(--glow-solid); color: var(--glow-on-solid); }
|
|
63
|
+
`;static fields(t){return`
|
|
64
|
+
:where(${t}) :where(input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="datetime-local"], input:not([type]), select) {
|
|
65
|
+
/* 38px tall with its border, in the content box the width is fitted in (see NumberFields, which counts its own room for the padding). */
|
|
66
|
+
height: 36px;
|
|
67
|
+
padding: 0 10px;
|
|
68
|
+
border: 1px solid var(--line-strong);
|
|
69
|
+
border-radius: 8px;
|
|
70
|
+
background: var(--ground);
|
|
71
|
+
color: var(--ink);
|
|
72
|
+
font-size: 15px;
|
|
73
|
+
}
|
|
74
|
+
:where(${t}) :where(textarea) {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
padding: 8px 10px;
|
|
77
|
+
border: 1px solid var(--line-strong);
|
|
78
|
+
border-radius: 8px;
|
|
79
|
+
background: var(--ground);
|
|
80
|
+
color: var(--ink);
|
|
81
|
+
font-size: 15px;
|
|
82
|
+
}
|
|
83
|
+
:where(${t}) :where(input, select, textarea):focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-bg); }
|
|
84
|
+
:where(${t}) :where([aria-invalid="true"], .invalid) { border-color: var(--error); }
|
|
85
|
+
:where(${t}) :where(.inconsistent) { border-color: var(--warn); }
|
|
86
|
+
/* A list has a rule of its own for its border. */
|
|
87
|
+
${t} :is(select:not([multiple]):not([size]), .rr0-select).inconsistent { border-color: var(--warn); }
|
|
88
|
+
/* Lists: drawn by InputFont in the tokens above, their chevron 11–16 px from the right edge. */
|
|
89
|
+
${t} :is(select:not([multiple]):not([size]), .rr0-select) {
|
|
90
|
+
height: 38px;
|
|
91
|
+
padding: 0 30px 0 10px;
|
|
92
|
+
background-size: 5px 5px, 5px 5px;
|
|
93
|
+
background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%;
|
|
94
|
+
color: var(--ink);
|
|
95
|
+
}
|
|
96
|
+
:where(${t}) :where(button) {
|
|
97
|
+
min-height: 36px;
|
|
98
|
+
padding: 0 14px;
|
|
99
|
+
border: 1px solid var(--line-strong);
|
|
100
|
+
border-radius: 999px;
|
|
101
|
+
background: var(--ground-raised);
|
|
102
|
+
color: var(--ink);
|
|
103
|
+
font: 600 14px/1 var(--sans);
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
}
|
|
106
|
+
:where(${t}) :where(button:hover:not(:disabled)) { border-color: var(--glow-dim); background: var(--ground-sunken); }
|
|
107
|
+
:where(${t}) :where(button:disabled) { opacity: .5; cursor: default; }
|
|
108
|
+
:where(${t}) :where(.icon-btn) { min-width: 36px; padding: 0; border-radius: 8px; }
|
|
109
|
+
:where(${t}) input[type="range"] { accent-color: var(--glow-solid); }
|
|
110
|
+
:where(${t}) input[type="checkbox"], :where(${t}) input[type="radio"] { accent-color: var(--glow-solid); }
|
|
111
|
+
`}}class E{static INFO="message-info";static WARNING="message-warning";static ERROR="message-error";static CSS=E.rules();static rules(t=[],e=[],r=[]){const s=(o,n)=>[`.${o}`,...n].join(", ");return`
|
|
112
|
+
/* A component's messages: information muted, warnings orange, errors red, all three at one smaller size (see MessageStyle). */
|
|
113
|
+
:is(${s(E.INFO,t)}, ${s(E.WARNING,e)}, ${s(E.ERROR,r)}) { font-size: var(--rr0-message-font-size, 0.78em); line-height: var(--rr0-message-line-height, 1.3); font-weight: normal; opacity: 1; }
|
|
114
|
+
:is(${s(E.INFO,t)}) { color: color-mix(in srgb, CanvasText 62%, transparent); }
|
|
115
|
+
:is(${s(E.WARNING,e)}) { color: color-mix(in srgb, #e48a00 72%, CanvasText); }
|
|
116
|
+
:is(${s(E.ERROR,r)}) { color: color-mix(in srgb, #e5322d 72%, CanvasText); }
|
|
117
|
+
`}static show(t,e,r="info"){t.textContent=e??"",t.hidden=!e,t.classList.toggle(E.INFO,r==="info"),t.classList.toggle(E.WARNING,r==="warning"),t.classList.toggle(E.ERROR,r==="error")}}function at(i,t){for(const e of i){const r=e.toLowerCase().split("-")[0];if(t.includes(r))return r}return"en"}class dt{static preferencesFor(t){const e=navigator.languages??[],r=this.declaredFor(t);return r?[r,...e]:e}static declaredFor(t){for(let e=t;e;){const r=e.closest("[lang]")?.getAttribute("lang")?.trim();if(r)return r;const s=e.getRootNode();e=s instanceof ShadowRoot?s.host:void 0}}}const ct=["en","fr","es","it"],lt={en:()=>a(()=>import("./UfoMessages_en-D5OYWJ3K.js"),__vite__mapDeps([24,17]),import.meta.url).then(i=>i.ufoMessages_en),fr:()=>a(()=>import("./UfoMessages_fr-CGkQBn5r.js"),[],import.meta.url).then(i=>i.ufoMessages_fr),es:()=>a(()=>import("./UfoMessages_es-CO-v8Jl6.js"),[],import.meta.url).then(i=>i.ufoMessages_es),it:()=>a(()=>import("./UfoMessages_it-BScqxIaH.js"),[],import.meta.url).then(i=>i.ufoMessages_it)},Nt=f.catalog(lt),ut={en:()=>a(()=>import("./SightingEditorMessages_en-CTQYcybj.js"),__vite__mapDeps([25,26]),import.meta.url).then(i=>i.sightingEditorMessages_en),fr:()=>a(()=>import("./SightingEditorMessages_fr-DjUByAq4.js"),__vite__mapDeps([27,28]),import.meta.url).then(i=>i.sightingEditorMessages_fr),es:()=>a(()=>import("./SightingEditorMessages_es-D-ASD5a3.js"),__vite__mapDeps([29,30]),import.meta.url).then(i=>i.sightingEditorMessages_es),it:()=>a(()=>import("./SightingEditorMessages_it-Eat0U-4p.js"),__vite__mapDeps([31,32]),import.meta.url).then(i=>i.sightingEditorMessages_it)},ht=f.catalog(ut);function Dt(i){return ht.load(i)}const pt={en:()=>a(()=>import("./SightingMessages_en-CYzanHjT.js"),__vite__mapDeps([33,26]),import.meta.url).then(i=>i.sightingMessages_en),fr:()=>a(()=>import("./SightingMessages_fr-BtfWbIP7.js"),__vite__mapDeps([34,28]),import.meta.url).then(i=>i.sightingMessages_fr),es:()=>a(()=>import("./SightingMessages_es-hjvESK6f.js"),__vite__mapDeps([35,30]),import.meta.url).then(i=>i.sightingMessages_es),it:()=>a(()=>import("./SightingMessages_it-Bqm4pewZ.js"),__vite__mapDeps([36,32]),import.meta.url).then(i=>i.sightingMessages_it)},Pt=f.catalog(pt),mt={en:()=>a(()=>import("./CaseMessages_en-BbbbikHH.js"),[],import.meta.url).then(i=>i.caseMessages_en),fr:()=>a(()=>import("./CaseMessages_fr-CD33PQCH.js"),[],import.meta.url).then(i=>i.caseMessages_fr),es:()=>a(()=>import("./CaseMessages_es-AHBxl8Ka.js"),[],import.meta.url).then(i=>i.caseMessages_es),it:()=>a(()=>import("./CaseMessages_it-DyMACGSU.js"),[],import.meta.url).then(i=>i.caseMessages_it)},ft=f.catalog(mt);function Vt(i){return ft.load(i)}const gt={en:()=>a(()=>import("./UfoAtHomeMessages_en-dlx_C679.js"),[],import.meta.url).then(i=>i.ufoAtHomeMessages_en),fr:()=>a(()=>import("./UfoAtHomeMessages_fr-LR76-eHS.js"),[],import.meta.url).then(i=>i.ufoAtHomeMessages_fr),es:()=>a(()=>import("./UfoAtHomeMessages_es-uLOvtAD0.js"),[],import.meta.url).then(i=>i.ufoAtHomeMessages_es),it:()=>a(()=>import("./UfoAtHomeMessages_it-CQl4uTnG.js"),[],import.meta.url).then(i=>i.ufoAtHomeMessages_it)},_t=f.catalog(gt);function Et(i){return _t.load(i)}const wt={en:()=>a(()=>import("./ShareMessages_en-B43x8LgJ.js"),[],import.meta.url).then(i=>i.shareMessages_en),fr:()=>a(()=>import("./ShareMessages_fr-CzZyVbbX.js"),[],import.meta.url).then(i=>i.shareMessages_fr),es:()=>a(()=>import("./ShareMessages_es-DZCJojSc.js"),[],import.meta.url).then(i=>i.shareMessages_es),it:()=>a(()=>import("./ShareMessages_it-C_Z6eDQK.js"),[],import.meta.url).then(i=>i.shareMessages_it)},$t=f.catalog(wt);function Ct(i){switch(i){case"fr":return a(()=>import("./TagNames_fr-Dnqq6HQ5.js"),[],import.meta.url).then(t=>t.tagNames_fr);case"es":return a(()=>import("./TagNames_es-BfnMpc3D.js"),[],import.meta.url).then(t=>t.tagNames_es);case"it":return a(()=>import("./TagNames_it-n6E4EGYO.js"),[],import.meta.url).then(t=>t.tagNames_it);default:return Promise.resolve({})}}const vt={en:()=>a(()=>import("./BodyEditorMessages_en-CckxSS1L.js"),[],import.meta.url).then(i=>i.bodyEditorMessages_en),fr:()=>a(()=>import("./BodyEditorMessages_fr-638ypdqf.js"),[],import.meta.url).then(i=>i.bodyEditorMessages_fr),es:()=>a(()=>import("./BodyEditorMessages_es-B8GlFFBo.js"),[],import.meta.url).then(i=>i.bodyEditorMessages_es),it:()=>a(()=>import("./BodyEditorMessages_it-SKpMkHFI.js"),[],import.meta.url).then(i=>i.bodyEditorMessages_it)},bt={en:()=>a(()=>import("./CaseEditorMessages_en-CoFukfwf.js"),[],import.meta.url).then(i=>i.caseEditorMessages_en),fr:()=>a(()=>import("./CaseEditorMessages_fr-DXl2GNmR.js"),[],import.meta.url).then(i=>i.caseEditorMessages_fr),es:()=>a(()=>import("./CaseEditorMessages_es-DZptbzB7.js"),[],import.meta.url).then(i=>i.caseEditorMessages_es),it:()=>a(()=>import("./CaseEditorMessages_it-ss10VmRM.js"),[],import.meta.url).then(i=>i.caseEditorMessages_it)},yt={en:()=>a(()=>import("./ReadingSensitivityMessages_en-ChQHFyxb.js"),[],import.meta.url).then(i=>i.readingSensitivityMessages_en),fr:()=>a(()=>import("./ReadingSensitivityMessages_fr-Dl4a8udu.js"),[],import.meta.url).then(i=>i.readingSensitivityMessages_fr),es:()=>a(()=>import("./ReadingSensitivityMessages_es-BbFqHsvR.js"),[],import.meta.url).then(i=>i.readingSensitivityMessages_es),it:()=>a(()=>import("./ReadingSensitivityMessages_it-CwiJfUo_.js"),[],import.meta.url).then(i=>i.readingSensitivityMessages_it)},Ut=f.catalog(yt),At={en:()=>a(()=>import("./CaseExportMessages_en-jHlu58Y7.js"),[],import.meta.url).then(i=>i.caseExportMessages_en),fr:()=>a(()=>import("./CaseExportMessages_fr-sDfEgjWg.js"),[],import.meta.url).then(i=>i.caseExportMessages_fr),es:()=>a(()=>import("./CaseExportMessages_es-dCQQFgjq.js"),[],import.meta.url).then(i=>i.caseExportMessages_es),it:()=>a(()=>import("./CaseExportMessages_it-BJaglZtP.js"),[],import.meta.url).then(i=>i.caseExportMessages_it)},Ht=f.catalog(At),It={en:()=>a(()=>import("./InterviewMessages_en-ru7GkZlQ.js"),[],import.meta.url).then(i=>i.interviewMessages_en),fr:()=>a(()=>import("./InterviewMessages_fr-DAYgf8Ms.js"),[],import.meta.url).then(i=>i.interviewMessages_fr),es:()=>a(()=>import("./InterviewMessages_es-DkJurNrG.js"),[],import.meta.url).then(i=>i.interviewMessages_es),it:()=>a(()=>import("./InterviewMessages_it-6lenkmSg.js"),[],import.meta.url).then(i=>i.interviewMessages_it)},Bt=f.catalog(It),Gt=f.catalog(bt),Ft=f.catalog(vt),Tt=f.catalog({en:()=>a(()=>import("./SceneNames_en-7OZ7peGc.js"),__vite__mapDeps([37,6]),import.meta.url).then(i=>i.sceneNames_en),fr:()=>a(()=>import("./SceneNames_fr-qzw0QzD0.js"),__vite__mapDeps([38,6]),import.meta.url).then(i=>i.sceneNames_fr),es:()=>a(()=>import("./SceneNames_es-P5-Mavdi.js"),__vite__mapDeps([39,6]),import.meta.url).then(i=>i.sceneNames_es),it:()=>a(()=>import("./SceneNames_it-Sqf8JFOd.js"),__vite__mapDeps([40,6]),import.meta.url).then(i=>i.sceneNames_it)});function zt(i){return Tt.load(i)}const jt=f.catalog({en:()=>a(()=>import("./CloudEditorMessages_en-SmcRKW1O.js"),[],import.meta.url).then(i=>i.cloudEditorMessages_en),fr:()=>a(()=>import("./CloudEditorMessages_fr-SvL-CR04.js"),[],import.meta.url).then(i=>i.cloudEditorMessages_fr),es:()=>a(()=>import("./CloudEditorMessages_es-DFCuS9Qg.js"),[],import.meta.url).then(i=>i.cloudEditorMessages_es),it:()=>a(()=>import("./CloudEditorMessages_it-BvfiHWV9.js"),[],import.meta.url).then(i=>i.cloudEditorMessages_it)}),B="rr0-ufoathome",Lt='<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"><path d="M8 3v10M3 8h10"/></svg>',xt='<svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M2 4.5h4l1.5 1.5H14v6.5H2z"/></svg>',Ot=`
|
|
118
|
+
<style>
|
|
119
|
+
:host { display: block; ${R.TOKENS} }
|
|
120
|
+
:host([hidden]) { display: none; }
|
|
121
|
+
${R.HEAD}
|
|
122
|
+
${R.fields(".open-menu")}
|
|
123
|
+
${E.CSS}
|
|
124
|
+
.bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
|
|
125
|
+
.bar .status { margin-right: auto; }
|
|
126
|
+
.status[hidden] { display: none; }
|
|
127
|
+
.open-menu { width: min(30em, calc(100vw - 2em)); padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px;
|
|
128
|
+
background: var(--ground-raised); color: var(--ink); box-shadow: 0 8px 28px rgba(0, 0, 0, .25); font: 400 14px/1.4 var(--sans);
|
|
129
|
+
text-transform: none; letter-spacing: normal; text-align: left; }
|
|
130
|
+
/* Under its button, its right edge on the button's (see placeMenu): an anchor in CSS is not one every browser keeps for a popover. */
|
|
131
|
+
.open-menu:popover-open { position: fixed; inset: auto; margin: 0; }
|
|
132
|
+
.open-menu rr0-input-file { display: flex; flex-wrap: wrap; }
|
|
133
|
+
.open-menu .hint { margin: 6px 0 0; color: var(--ink-dim); font-size: .78em; line-height: 1.3; }
|
|
134
|
+
.open-menu h2 { margin: 14px 0 6px; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--glow-dim); }
|
|
135
|
+
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
|
|
136
|
+
.recent li { display: flex; align-items: center; gap: 6px; }
|
|
137
|
+
.recent .reopen { flex: 1; min-width: 0; display: grid; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit;
|
|
138
|
+
text-align: left; cursor: pointer; }
|
|
139
|
+
.recent .reopen:is(:hover, :focus-visible) { background: var(--neutral-bg); }
|
|
140
|
+
.recent .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
141
|
+
.recent .how { color: var(--ink-dim); font-size: .78em; }
|
|
142
|
+
.recent .remove { flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--ink-dim); cursor: pointer; font-size: 16px; }
|
|
143
|
+
.recent .remove:is(:hover, :focus-visible) { background: var(--neutral-bg); color: var(--ink); }
|
|
144
|
+
.recent-none { margin: 0; color: var(--ink-dim); font-size: .78em; }
|
|
145
|
+
</style>
|
|
146
|
+
<div class="bar">
|
|
147
|
+
<p id="status" class="status" role="status" hidden></p>
|
|
148
|
+
<button id="new" type="button" class="pill-btn">${Lt}<span id="label-new"></span></button>
|
|
149
|
+
<button id="open" type="button" class="pill-btn" popovertarget="open-menu">${xt}<span id="label-open"></span></button>
|
|
150
|
+
</div>
|
|
151
|
+
<div id="open-menu" class="open-menu" popover>
|
|
152
|
+
<rr0-input-file id="open-file" name="open" accept=".json" multiple handles></rr0-input-file>
|
|
153
|
+
<p id="open-together" class="hint"></p>
|
|
154
|
+
<h2 id="recent-heading"></h2>
|
|
155
|
+
<ul id="recent" class="recent"></ul>
|
|
156
|
+
<p id="recent-none" class="recent-none" hidden></p>
|
|
157
|
+
</div>
|
|
158
|
+
<slot></slot>
|
|
159
|
+
`;class N extends HTMLElement{switcher=new S(t=>this.append(t),void 0,t=>this.dispatchEvent(new CustomEvent(Y,{detail:t,bubbles:!0,composed:!0})));shadow;messages;started=!1;constructor(){super(),K(),this.shadow=this.attachShadow({mode:"open"}),this.shadow.innerHTML=Ot,this.byId("new").addEventListener("click",()=>void this.switcher.startNew()),this.byId("open").addEventListener("click",()=>{this.placeMenu(),this.showRecent()}),this.byId("open-file").addEventListener("filepick",t=>{this.closeMenu(),this.openPick(t.detail)})}connectedCallback(){if(window.addEventListener("resize",this.fitHeight),this.fitHeight(),this.started)return;this.started=!0,this.loadLocale();const t=this.getAttribute("src")??void 0,e=this.getAttribute("track")??void 0,r=t&&this.getAttribute("mode")!=="edit"?this.switcher.read({src:t,...e?{track:e}:{}}):this.switcher.edit({...t?{src:t}:{},...e?{track:e}:{}});this.ready=r.catch(()=>this.say(this.messages?.openFailed,"error")),this.ready.then(this.fitHeight)}disconnectedCallback(){window.removeEventListener("resize",this.fitHeight)}fitHeight=()=>{const t=this.byId("open").closest(".bar").getBoundingClientRect().bottom+window.scrollY;this.style.setProperty("--rr0-editor-height",`calc(100dvh - ${Math.round(t+12)}px)`)};ready=Promise.resolve();async openFiles(t,e){const r=(await Promise.all(t.map(async n=>{const d=await N.textOf(n);try{return{name:n.name,text:d,json:JSON.parse(d)}}catch{return}}))).filter(n=>n!==void 0);if(r.length===0){this.say(this.messages?.noJson,"warning");return}const s=g.localBase();g.hold(new Map(r.map(n=>[new URL(n.name,s).href,{json:n.json,changed:!1,local:!0}])));const o=r.find(n=>b.isCase(n.json))??r[0];this.say(void 0),await this.switcher.open(new URL(o.name,s).href),await m.add(e&&e.length?{kind:"handles",name:o.name,openedAt:Date.now(),handles:e}:{kind:"copy",name:o.name,openedAt:Date.now(),copies:r.map(({name:n,text:d})=>({name:n,text:d}))})}static textOf(t){return new Promise((e,r)=>{const s=new FileReader;s.onload=()=>e(s.result),s.onerror=()=>r(s.error),s.readAsText(t)})}async openAddress(t){const e=new URL(t,location.href).href;this.say(void 0),await this.switcher.open(e),await m.add({kind:"address",name:decodeURIComponent(new URL(e).pathname.split("/").pop()||e),openedAt:Date.now(),url:e})}async openPick(t){try{t.url!==void 0?await this.openAddress(t.url):await this.openFiles(t.files??[t.file],t.handles)}catch{this.say(this.messages?.openFailed,"error")}}async reopen(t){this.closeMenu();try{t.kind==="address"?await this.openAddress(t.url):await this.openFiles(await m.files(t),t.kind==="handles"?t.handles:void 0)}catch{this.say(this.messages?.openFailed,"error")}}async showRecent(){const t=this.messages,e=await m.list();this.byId("recent").replaceChildren(...e.map(o=>{const n=document.createElement("li"),d=document.createElement("button");d.type="button",d.className="reopen";const l=document.createElement("span");l.className="name",l.textContent=o.name;const c=document.createElement("span");c.className="how";const u=new Date(o.openedAt).toLocaleString(this.language,{dateStyle:"medium",timeStyle:"short"}),w=o.kind==="address"?t?.recentAddress:o.kind==="handles"?t?.recentHandles:t?.recentCopy;c.textContent=`${u} · ${w??""}`,d.title=o.kind==="address"?o.url:o.name,d.append(l,c),d.addEventListener("click",()=>void this.reopen(o));const _=document.createElement("button");return _.type="button",_.className="remove",_.textContent="×",_.title=t?.recentRemove??"",_.setAttribute("aria-label",t?.recentRemove??""),_.addEventListener("click",()=>void m.remove(o).then(()=>this.showRecent())),n.append(d,_),n}));const s=this.byId("recent-none");s.hidden=e.length>0}placeMenu(){const t=this.byId("open").getBoundingClientRect(),e=this.byId("open-menu");e.style.top=`${Math.round(t.bottom+6)}px`,e.style.right=`${Math.max(8,Math.round(window.innerWidth-t.right))}px`}closeMenu(){const t=this.byId("open-menu");try{t.hidePopover?.()}catch{}}say(t,e="info"){const r=this.byId("status");E.show(r,t,e)}language="en";async loadLocale(){this.language=at(dt.preferencesFor(this),ct);const t=this.messages=await Et(this.language);this.byId("label-new").textContent=t.newFile,this.byId("new").title=t.newFileHint,this.byId("label-open").textContent=t.open,this.byId("open").title=t.openHint,this.byId("open-together").textContent=t.openTogether,this.byId("recent-heading").textContent=t.recentHeading,this.byId("recent-none").textContent=t.recentNone,this.byId("open-file").messages=t}byId(t){return this.shadow.getElementById(t)}}function kt(){customElements.get(B)||customElements.define(B,N)}kt();export{$t as A,Bt as B,b as C,Dt as D,q as E,I as F,Ft as G,dt as H,M as I,St as J,f as M,g as O,v as P,Mt as R,O as S,ct as U,a as _,Pt as a,Ct as b,zt as c,jt as d,h as e,R as f,E as g,F as h,y as i,Z as j,T as k,Vt as l,j as m,p as n,H as o,ht as p,k as q,K as r,at as s,S as t,Y as u,Gt as v,W as w,Ut as x,Ht as y,Nt as z};
|