@rr0/ufoathome 0.202.1 → 0.204.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/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-interview/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-interview/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-interview/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-interview/rr0-interview.mjs +1 -1
- package/dist-embed-scene/ModuleSession-Bh6KaOGK.js +3 -0
- package/dist-embed-scene/SceneNames_en--zj8Tlec.js +1 -0
- package/dist-embed-scene/SceneNames_es-toWs7p7i.js +1 -0
- package/dist-embed-scene/SceneNames_fr-w4Xdplid.js +1 -0
- package/dist-embed-scene/SceneNames_it-Cwcscdx7.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +302 -302
- package/dist-embed-scene/sightingSchema-DoPVOlCB.js +1 -0
- package/dist-embed-sighting/{AdsbLolArchiveProvider-CsuxO9wl.js → AdsbLolArchiveProvider-BSewzrRe.js} +1 -1
- package/dist-embed-sighting/{AirshipEditor-DkDCkwGG.js → AirshipEditor-BiG7EYoB.js} +2 -2
- package/dist-embed-sighting/{AuroraEditor-C4tY9hXK.js → AuroraEditor-C1Y_zbNW.js} +1 -1
- package/dist-embed-sighting/{AuroraSimulation-C7LAHgWM.js → AuroraSimulation-B9GaDXC3.js} +2 -2
- package/dist-embed-sighting/{BallesterGuaspAssessor-BPaiHWd9.js → BallesterGuaspAssessor-BAXmW7XL.js} +1 -1
- package/dist-embed-sighting/BalloonEditor-D54CC7cn.js +24 -0
- package/dist-embed-sighting/{BeamEditor-DDzw-fB_.js → BeamEditor-SHXD10FH.js} +1 -1
- package/dist-embed-sighting/{BeamSystem-CsNwl_vM.js → BeamSystem-CP3J9Jgx.js} +1 -1
- package/dist-embed-sighting/{BirdEditor-BgNNcdhv.js → BirdEditor-BCit7Rs-.js} +1 -1
- package/dist-embed-sighting/{BirdFlock-DBgkxsxp.js → BirdFlock-DhsSOJTg.js} +1 -1
- package/dist-embed-sighting/{CaseReportExport-BtGCWD7H.js → CaseReportExport-CUy_3oyV.js} +2 -2
- package/dist-embed-sighting/{ContrailSystem-Di5w5IVi.js → ContrailSystem-70o5ynhD.js} +1 -1
- package/dist-embed-sighting/ControlPasses-DQMrWqA3.js +29 -0
- package/dist-embed-sighting/{CoverageAssessor-Cu9wP4ZB.js → CoverageAssessor-BdZ85Hmy.js} +1 -1
- package/dist-embed-sighting/{DroneEditor-5nuq52EG.js → DroneEditor-DwQsVj8U.js} +1 -1
- package/dist-embed-sighting/{DroneParameters-DHeJ7KyU.js → DroneParameters-91BBY10Y.js} +1 -1
- package/dist-embed-sighting/{Flightradar24Provider-p4a3_chL.js → Flightradar24Provider-NbfW-lDQ.js} +1 -1
- package/dist-embed-sighting/{GLTFLoader-fbsNsHlp.js → GLTFLoader-CTETHs7e.js} +1 -1
- package/dist-embed-sighting/GenerativeKitMessages-hgIQ_sST.js +1 -0
- package/dist-embed-sighting/{HeadlightSystem-Ce7sHylX.js → HeadlightSystem-ByKGq-30.js} +1 -1
- package/dist-embed-sighting/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-sighting/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-sighting/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-sighting/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-sighting/{HynekAssessor-DWDZGeLY.js → HynekAssessor-O1MFR79v.js} +1 -1
- package/dist-embed-sighting/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-sighting/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-sighting/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-sighting/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-sighting/LanternEditor-X0RgF4mn.js +24 -0
- package/dist-embed-sighting/{LaunchEditor-BGyLgkGS.js → LaunchEditor-oTKLz_5C.js} +1 -1
- package/dist-embed-sighting/{LaunchSimulation-DvexI06i.js → LaunchSimulation-ClRFO1uw.js} +1 -1
- package/dist-embed-sighting/ModuleSession-SivjhuIl.js +3 -0
- package/dist-embed-sighting/ModuleThree-TrytNggN.js +1 -0
- package/dist-embed-sighting/{NearestApproach-CONyx4c5.js → NearestApproach-BM7B5PuM.js} +1 -1
- package/dist-embed-sighting/{ParameterForm-DFHcolwG.js → ParameterForm-BghOJXLP.js} +1 -1
- package/dist-embed-sighting/{PoherAssessor-DI86qOCu.js → PoherAssessor-DZMtM2pW.js} +1 -1
- package/dist-embed-sighting/PoherMatrix-C2fcLqDH.js +1 -0
- package/dist-embed-sighting/PoherSelfCheck-PJvhaWFK.js +1 -0
- package/dist-embed-sighting/{RailwaySystem-DcJr9BY_.js → RailwaySystem-Dmx9y4gO.js} +1 -1
- package/dist-embed-sighting/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-sighting/{ReentryEditor-C6EJJf4l.js → ReentryEditor-DozmlO_l.js} +1 -1
- package/dist-embed-sighting/{ReentrySimulation-BFVBOWrm.js → ReentrySimulation-WXW1IU2E.js} +1 -1
- package/dist-embed-sighting/{ReferenceSystem-zTvTqp5y.js → ReferenceSystem-BD7gXBee.js} +1 -1
- package/dist-embed-sighting/{RoadMarkings-DvWjbrSf.js → RoadMarkings-Bp07bgso.js} +1 -1
- package/dist-embed-sighting/SceneNames_en-BarwWQKA.js +1 -0
- package/dist-embed-sighting/SceneNames_es-CEdDjAb4.js +1 -0
- package/dist-embed-sighting/SceneNames_fr-m5WHqg-1.js +1 -0
- package/dist-embed-sighting/SceneNames_it-D_H_iZnc.js +1 -0
- package/dist-embed-sighting/{SearchlightEditor-By5Z3ef7.js → SearchlightEditor-BGmKCBrG.js} +1 -1
- package/dist-embed-sighting/{SearchlightSystem-PEMBDW1s.js → SearchlightSystem-5FPRRIkH.js} +1 -1
- package/dist-embed-sighting/SightingMessages_en-DKFVZnDu.js +1 -0
- package/dist-embed-sighting/SightingMessages_es-DYQlWvm0.js +1 -0
- package/dist-embed-sighting/SightingMessages_fr-BygVDDY9.js +1 -0
- package/dist-embed-sighting/SightingMessages_it-BI7GnXPz.js +1 -0
- package/dist-embed-sighting/{SkyLantern-yYihsrun.js → SkyLantern-1Rqy6fNz.js} +1 -1
- package/dist-embed-sighting/{TraceSystem-1K0WblAK.js → TraceSystem-DDlP7sxl.js} +2 -2
- package/dist-embed-sighting/{UfoMessages_en-CwRXodRE.js → UfoMessages_en-DvUA0KYR.js} +1 -1
- package/dist-embed-sighting/{WaterSystem-1VlNXZnO.js → WaterSystem-Ik6QzyT_.js} +2 -2
- package/dist-embed-sighting/rr0-sighting.mjs +417 -353
- package/dist-embed-sighting/sightingSchema-DoPVOlCB.js +1 -0
- package/dist-embed-sighting/{trafficRuntime-BUvbWOcl.js → trafficRuntime-CjDwU1Lk.js} +1 -1
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-Bz1OjSjY.js → AdsbLolArchiveProvider-CNMGHqqx.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipEditor-BlJXyxlr.js → AirshipEditor-BVlkWwdL.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipFlight-Cx40Y8JT.js → AirshipFlight-Cvl6xWPY.js} +1 -1
- package/dist-embed-sighting-editor/{Aurora-Ldk66p1A.js → Aurora-DOIRpjiG.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraEditor-CGSomAFk.js → AuroraEditor-B0tCM7E7.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CX7V0obh.js} +2 -2
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CJyRqwvh.js → BallesterGuaspAssessor-DEJId5n8.js} +1 -1
- package/dist-embed-sighting-editor/{BalloonEditor-CgO4LaWn.js → BalloonEditor-Drb5evP5.js} +1 -1
- package/dist-embed-sighting-editor/{BalloonFlight-hLr_4TFU.js → BalloonFlight-CGXmDbNq.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-B8qreA3j.js → BeamEditor-DP2LNObR.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-D0hrju5J.js → BeamSystem-BCaOtm3H.js} +1 -1
- package/dist-embed-sighting-editor/{BirdEditor-BNzrfSqX.js → BirdEditor-CbYZcYyG.js} +1 -1
- package/dist-embed-sighting-editor/{BirdFlock-iSovVEZd.js → BirdFlock-Dv9Awhvf.js} +1 -1
- package/dist-embed-sighting-editor/CaseElement-CC4gimF1.js +132 -0
- package/dist-embed-sighting-editor/{CaseReportExport-Bv6FWPs2.js → CaseReportExport-DmvvH_GH.js} +1 -1
- package/dist-embed-sighting-editor/{ContrailSystem-D3tXAg2r.js → ContrailSystem-ChbOVWp-.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-CaVHMhEY.js → ControlPasses-Dgz_D6DL.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-CTfHqAd_.js → CoverageAssessor-CcVuVsG0.js} +1 -1
- package/dist-embed-sighting-editor/{DroneEditor-BFsArPKi.js → DroneEditor-D6k4gYj4.js} +1 -1
- package/dist-embed-sighting-editor/{DroneFlight-B96pVrY1.js → DroneFlight-D-MWhrXa.js} +1 -1
- package/dist-embed-sighting-editor/{DroneParameters-DW-enQUo.js → DroneParameters-CdQbwFKD.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-CBGkjw03.js → Flightradar24Provider-D_eLiI9k.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-CrRPu-Pt.js → GLTFLoader-BIk0ozTu.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-BmPfcHt1.js → HeadlightSystem-C9tLjvpO.js} +1 -1
- package/dist-embed-sighting-editor/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-sighting-editor/{HynekAssessor-nBidt6QV.js → HynekAssessor-B4ej1xgG.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-CQWfYlGL.js → InterviewEditorElement-Bo4OG2ig.js} +7 -7
- package/dist-embed-sighting-editor/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-sighting-editor/{LanternEditor-CjQVFowY.js → LanternEditor-Hd-8kmET.js} +1 -1
- package/dist-embed-sighting-editor/{LaserBeam-BVc8Mvhr.js → LaserBeam-Ca2QUeCT.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchEditor-Cz8Mzo4a.js → LaunchEditor-BykQEscN.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchPlume-CvBhTPgN.js → LaunchPlume-Dos-OyTV.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-CkZIG-3P.js → LaunchSimulation-B0DgOoJM.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-B153oeTu.js → ModelSource-szsl2QtY.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-BUL_OLFv.js → ModelThumbnails-dnCeD6UT.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BzBLcY9s.js → ModelViewer-BNGSukqO.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-CpMYkYgb.js → ModuleConformance-CEXxsL48.js} +2 -2
- package/dist-embed-sighting-editor/ModuleSession-DOhPD2XZ.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-BY0cNbGt.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-DTnJICg0.js +26 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-CXQhQMyu.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bj-cT3f4.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B-eaMXQz.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-C3fS8UFN.js +1 -0
- package/dist-embed-sighting-editor/{NearestApproach-Bxo_N7a9.js → NearestApproach-jDpDx7cm.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-CEVA26zd.js → PoherAssessor-yWlnEcoZ.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-Ceb0_MVz.js → RailwaySystem-CAqOaX1c.js} +1 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-sighting-editor/{ReentryEditor-BWCK2g_s.js → ReentryEditor-CNLwoAIZ.js} +2 -2
- package/dist-embed-sighting-editor/{ReentrySimulation-B09JXMu5.js → ReentrySimulation-Q-8h8lRK.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-B15kw0uH.js → ReferenceSystem-B0tZDQ1-.js} +1 -1
- package/dist-embed-sighting-editor/SceneNames_en-CTJiUG-r.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_es-DHZMjSqb.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_fr-C36uyjbM.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_it-BQJQm2rT.js +1 -0
- package/dist-embed-sighting-editor/{SearchlightEditor-BpwPOhJ6.js → SearchlightEditor-sQh92hx7.js} +1 -1
- package/dist-embed-sighting-editor/{SearchlightSystem-D7sdsRYn.js → SearchlightSystem-B_RPbGj4.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-V_dJYjNb.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-DauDuhPa.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-zxTvQa2I.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-vvaao68O.js +12 -0
- package/dist-embed-sighting-editor/SightingElement-BpYuBmJB.js +694 -0
- package/dist-embed-sighting-editor/{SightingFileEditor-Du3A9uZm.js → SightingFileEditor-tIOJTG_y.js} +1 -1
- package/dist-embed-sighting-editor/SightingLabels_en-dOsFjVRL.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_es-CKlP2BDO.js +1 -0
- package/{dist-embed-ufoathome/SightingLabels_fr-D69zENbW.js → dist-embed-sighting-editor/SightingLabels_fr-Cpkcf5_9.js} +1 -1
- package/{dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js → dist-embed-sighting-editor/SightingLabels_it-3127rMXm.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
- package/dist-embed-sighting-editor/{SkyLantern-D6bru_e_.js → SkyLantern-Cj60Cn9B.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Bv4kLpie.js → TraceSystem-BK0y5lRX.js} +2 -2
- package/dist-embed-sighting-editor/{WaterSystem-Bbk_RJKg.js → WaterSystem-DMeMEW3i.js} +2 -2
- package/dist-embed-sighting-editor/{caseSchema-BEJTs2Ld.js → caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +508 -439
- package/dist-embed-sighting-editor/sightingSchema-DoPVOlCB.js +1 -0
- package/dist-embed-sighting-editor/{trafficRuntime-Bu3my6S4.js → trafficRuntime-eGXY41n0.js} +1 -1
- package/dist-embed-ufoathome/{AdsbLolArchiveProvider-v1sSwhN1.js → AdsbLolArchiveProvider-Ck345V92.js} +1 -1
- package/dist-embed-ufoathome/{AirshipEditor-CBSrQM3J.js → AirshipEditor-EBfUtSiB.js} +1 -1
- package/dist-embed-ufoathome/{AirshipFlight-Dzpw8HRM.js → AirshipFlight-6yYGIRn8.js} +1 -1
- package/dist-embed-ufoathome/{Aurora-Dc4u2vEw.js → Aurora-CMORgA2p.js} +1 -1
- package/dist-embed-ufoathome/{AuroraEditor-CeLzRDPj.js → AuroraEditor-CDZgVOlI.js} +1 -1
- package/dist-embed-ufoathome/{AuroraSimulation-BT1CdWX5.js → AuroraSimulation-DqfSBul6.js} +1 -1
- package/dist-embed-ufoathome/{BallesterGuaspAssessor-CPW-Omah.js → BallesterGuaspAssessor-DUNQZ9e8.js} +1 -1
- package/dist-embed-ufoathome/{BalloonEditor-dCIjTsIz.js → BalloonEditor-Cx3fRab8.js} +2 -2
- package/dist-embed-ufoathome/{BalloonFlight-CztT6ddg.js → BalloonFlight-CvE7AHlm.js} +1 -1
- package/dist-embed-ufoathome/{BeamEditor-BS73mBZU.js → BeamEditor-gxTjO6Pr.js} +1 -1
- package/dist-embed-ufoathome/{BeamSystem-C5EpRhij.js → BeamSystem-C8jjTJtB.js} +1 -1
- package/dist-embed-ufoathome/{BirdEditor-Dk3huwHa.js → BirdEditor-CBVGyUnK.js} +1 -1
- package/dist-embed-ufoathome/{BodyEditor-BV8WwzAj.js → BodyEditor-DGaBo74A.js} +1 -1
- package/dist-embed-ufoathome/CaseEditorElement-BOp207Tr.js +3182 -0
- package/dist-embed-ufoathome/CaseElement-BGO5UZLP.js +132 -0
- package/dist-embed-ufoathome/{CaseReportExport-XLbFCkPg.js → CaseReportExport-6DFaJzfO.js} +3 -3
- package/dist-embed-ufoathome/ColumnResize-DnX89ynB.js +208 -0
- package/dist-embed-ufoathome/ConsentMessages_en-DBKCeDAn.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_es-Dby74lUq.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_fr-FGSpqzMc.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_it-BJWfXH6I.js +1 -0
- package/dist-embed-ufoathome/{ControlPasses-CKOU_3lG.js → ControlPasses-CeExr5X1.js} +1 -1
- package/dist-embed-ufoathome/{CoverageAssessor-BYMf3Qhv.js → CoverageAssessor-BbqRqh0C.js} +1 -1
- package/dist-embed-ufoathome/{DroneEditor-D60uhSHO.js → DroneEditor-7X9CM_3H.js} +1 -1
- package/dist-embed-ufoathome/{Flightradar24Provider-_QPbhh5s.js → Flightradar24Provider-MzQcuUHn.js} +1 -1
- package/dist-embed-ufoathome/{GLTFLoader-DQeHB-Bk.js → GLTFLoader-CPUffC65.js} +1 -1
- package/dist-embed-ufoathome/{GeoJsonExport-Pq_pPvjK.js → GeoJsonExport-D7QhWNRC.js} +1 -1
- package/dist-embed-ufoathome/{GeographicFigures-KII55iXE.js → GeographicFigures-BvEeCtxr.js} +1 -1
- package/dist-embed-ufoathome/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-ufoathome/HynekAssessor-BwjRkQWT.js +1 -0
- package/dist-embed-ufoathome/{InterviewEditorElement-BSwkegEp.js → InterviewEditorElement-CVCOicLD.js} +6 -6
- package/dist-embed-ufoathome/{InterviewElement-CfkDtybc.js → InterviewElement-ZI42DKRx.js} +2 -2
- package/dist-embed-ufoathome/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-ufoathome/{KmlExport-BMNwwys8.js → KmlExport-BX0nxAaA.js} +1 -1
- package/dist-embed-ufoathome/{LanternEditor-BapUZdog.js → LanternEditor-BROUv-vx.js} +1 -1
- package/dist-embed-ufoathome/{LaserBeam-B-tlAzNB.js → LaserBeam-ChD9aV-N.js} +1 -1
- package/dist-embed-ufoathome/LaunchEditor-CM2Wcjv2.js +22 -0
- package/dist-embed-ufoathome/{LaunchPlume-D-vSb8tJ.js → LaunchPlume-DeVRe05u.js} +1 -1
- package/dist-embed-ufoathome/{LaunchSimulation-CZ8Oba00.js → LaunchSimulation-RROdYccW.js} +1 -1
- package/dist-embed-ufoathome/{ModelSource-HSiigkeO.js → ModelSource-nXZ6eIH5.js} +1 -1
- package/dist-embed-ufoathome/{ModelThumbnails-DWvRMmj_.js → ModelThumbnails-CRSm49vm.js} +1 -1
- package/dist-embed-ufoathome/{ModelViewer-CM7qTW8F.js → ModelViewer-BQsl_Nfn.js} +1 -1
- package/dist-embed-ufoathome/ModuleSession-Dac4fD0X.js +3 -0
- package/dist-embed-ufoathome/ModulesPanelElement-BvzY1GUF.js +18 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_en-Dir0ADQe.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_es-B_ITNG5N.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-DbKLtD8s.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_it-CE0q7D2c.js +1 -0
- package/dist-embed-ufoathome/{NearestApproach-PAsV5RlG.js → NearestApproach-DbUpe1iw.js} +1 -1
- package/dist-embed-ufoathome/{PoherAssessor-CniYlhUl.js → PoherAssessor-Dmro58tC.js} +1 -1
- package/dist-embed-ufoathome/PoherMatrix-C2fcLqDH.js +1 -0
- package/dist-embed-ufoathome/PoherSelfCheck-pcYj_hQ1.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireFeed-DmyYcwwf.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireForm-vT3C3qXt.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireImport-BlTDOHWj.js +5 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-ufoathome/{ReentryEditor-Qax1sT82.js → ReentryEditor-Di0KzYeZ.js} +1 -1
- package/dist-embed-ufoathome/{ReentrySimulation-CTeCaxZl.js → ReentrySimulation-HhdlSVkR.js} +1 -1
- package/dist-embed-ufoathome/{ReferenceSystem-CM27OCUo.js → ReferenceSystem-B30-UBHY.js} +1 -1
- package/dist-embed-ufoathome/ScenarioReadings-EAUAsx9t.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweep-jTxLjnaW.js +1 -0
- package/dist-embed-ufoathome/SceneNames_en-sRbx6EJZ.js +1 -0
- package/dist-embed-ufoathome/SceneNames_es-pnfHB-7D.js +1 -0
- package/dist-embed-ufoathome/SceneNames_fr-BtTlti4C.js +1 -0
- package/dist-embed-ufoathome/SceneNames_it-DQKwdCVD.js +1 -0
- package/dist-embed-ufoathome/{SearchlightEditor-PuLz84pp.js → SearchlightEditor-B6_BW8FD.js} +1 -1
- package/dist-embed-ufoathome/{SearchlightSystem-B-tHvY1M.js → SearchlightSystem-D_DTpDNC.js} +1 -1
- package/dist-embed-ufoathome/{ShareDialogElement-EzLob2Tz.js → ShareDialogElement-C0oFh0X4.js} +150 -132
- package/dist-embed-ufoathome/Sighting-BX_CmDY2.js +1 -0
- package/dist-embed-ufoathome/SightingEditorMessages_en-V_dJYjNb.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-DauDuhPa.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-zxTvQa2I.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-vvaao68O.js +12 -0
- package/dist-embed-ufoathome/SightingElement-DzxTvvLN.js +694 -0
- package/dist-embed-ufoathome/{SightingFileEditor-DS1DRU2p.js → SightingFileEditor-D5_GwIsn.js} +1 -1
- package/dist-embed-ufoathome/SightingLabels_en-dOsFjVRL.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_es-CKlP2BDO.js +1 -0
- package/{dist-embed-sighting-editor/SightingLabels_fr-D69zENbW.js → dist-embed-ufoathome/SightingLabels_fr-Cpkcf5_9.js} +1 -1
- package/{dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js → dist-embed-ufoathome/SightingLabels_it-3127rMXm.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
- package/dist-embed-ufoathome/{TraceSystem-8XQX03MS.js → TraceSystem-CiBRo1aU.js} +1 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-ByVu39KF.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-D9bLboxq.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-nTqRf0ZK.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-4cZC5-y5.js +1 -0
- package/dist-embed-ufoathome/{VideoButton-WNtEngz-.js → VideoButton-BseBKx2r.js} +1 -1
- package/dist-embed-ufoathome/{caseSchema-BEJTs2Ld.js → caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +35 -17
- package/dist-embed-ufoathome/sightingSchema-DoPVOlCB.js +1 -0
- package/dist-embed-ufoathome/{surroundingsSources-UHKGesPa.js → surroundingsSources-BSh42KUu.js} +1 -1
- package/dist-embed-ufoathome/{trafficRuntime-CgY_7-NH.js → trafficRuntime-BMTtwn7o.js} +2 -2
- package/package.json +1 -1
- package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-scene/ModuleSession-bj7QHWjO.js +0 -3
- package/dist-embed-scene/SceneNames_en-BFJsR6Cc.js +0 -1
- package/dist-embed-scene/SceneNames_es-BHBTwcJ3.js +0 -1
- package/dist-embed-scene/SceneNames_fr-CFsA4XeK.js +0 -1
- package/dist-embed-scene/SceneNames_it-DkIgwviv.js +0 -1
- package/dist-embed-scene/sightingSchema-9MogCcUd.js +0 -1
- package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +0 -24
- package/dist-embed-sighting/ControlPasses-Dr6eP2Mq.js +0 -29
- package/dist-embed-sighting/GenerativeKitMessages-NbyGMKAR.js +0 -1
- package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-sighting/LanternEditor-Be5Io1J-.js +0 -24
- package/dist-embed-sighting/ModuleSession-DztK084a.js +0 -3
- package/dist-embed-sighting/ModuleThree-BLNSm2eY.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-sighting/SceneNames_en-BlRTU7Hq.js +0 -1
- package/dist-embed-sighting/SceneNames_es-DMNd9trd.js +0 -1
- package/dist-embed-sighting/SceneNames_fr-DlMcv9D0.js +0 -1
- package/dist-embed-sighting/SceneNames_it-DqlWMlOE.js +0 -1
- package/dist-embed-sighting/SightingMessages_en-D3YVhgUj.js +0 -1
- package/dist-embed-sighting/SightingMessages_es-ME6FeTp-.js +0 -1
- package/dist-embed-sighting/SightingMessages_fr-BgXYuIq4.js +0 -1
- package/dist-embed-sighting/SightingMessages_it-DcE90eAl.js +0 -1
- package/dist-embed-sighting/sightingSchema-9MogCcUd.js +0 -1
- package/dist-embed-sighting-editor/CaseElement-D80gHg4r.js +0 -131
- package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-sighting-editor/ModuleSession-b_pmjUfP.js +0 -3
- package/dist-embed-sighting-editor/ModuleThree-B_FZVqsf.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelElement-D0gn9Z-y.js +0 -15
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-BdC626aJ.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_en-c5zNw0Hi.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_es-CDjoBwy_.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_fr-CoZNmFu3.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_it-CVEahBpq.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js +0 -12
- package/dist-embed-sighting-editor/SightingElement-Bp-t_EAF.js +0 -693
- package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +0 -1
- package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +0 -1
- package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
- package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +0 -7
- package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
- package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +0 -1
- package/dist-embed-ufoathome/CaseEditorElement-HR8RFluQ.js +0 -3175
- package/dist-embed-ufoathome/CaseElement-vCbCfGOv.js +0 -131
- package/dist-embed-ufoathome/ColumnResize-CEXrq3KB.js +0 -164
- package/dist-embed-ufoathome/HynekAssessor-wCDhgIB8.js +0 -1
- package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-ufoathome/LaunchEditor-Cy5D-gwU.js +0 -22
- package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +0 -3
- package/dist-embed-ufoathome/ModulesPanelElement-DsOa2zH0.js +0 -15
- package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireFeed-CpZqkxlt.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireForm-LkllpNx-.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireImport-CNROmkT2.js +0 -5
- package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-ufoathome/ScenarioReadings-Is3HX0n0.js +0 -1
- package/dist-embed-ufoathome/ScenarioSweep-BbtX26Fi.js +0 -1
- package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +0 -1
- package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +0 -1
- package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +0 -1
- package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +0 -1
- package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +0 -1
- package/dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js +0 -12
- package/dist-embed-ufoathome/SightingElement--qpGoyxL.js +0 -693
- package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +0 -1
- package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-BK2qJyZN.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-B1-NDCau.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-BTG047qo.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-Ryxv4HNU.js +0 -1
- package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
- package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +0 -7
- package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
- package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +0 -1
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./InterviewElement-CfkDtybc.js","./rr0-ufoathome.mjs","./ColumnResize-CEXrq3KB.js","./ShareDialogElement-EzLob2Tz.js","./Sighting-B7bsiTIQ.js","./VisualAids-DI-hEL46.js","./three.module-CbaHqYFq.js","./SaidPosition-OJEYhVKN.js","./GeoProjection-DvqDbRIx.js","./Decor-Dn-cvniW.js","./RecordingIssue-BlWT8Xsu.js","./xyzImageryRaster-Dhxs0B26.js","./Obstacles-v9SkfBD7.js","./interviewJson-D-i14LTf.js","./InterviewAttachments-BP6Prvdu.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{S as A,a as k,O as C,R as $,E as H,s as U,U as j,H as q,l as P,C as x,_ as V}from"./rr0-ufoathome.mjs";import{C as v,a as p,R as z,b as B,I as G}from"./ColumnResize-CEXrq3KB.js";import{I as D}from"./SaidPosition-OJEYhVKN.js";import{T as F,S as K,P as W,A as Y}from"./ShareDialogElement-EzLob2Tz.js";import{SHOW_INFO_ATTRIBUTE as O,OBSERVER_ATTRIBUTE as m,registerSighting as Z,HIDE_PICKERS_ATTRIBUTE as R,SIGHTING_ELEMENT_NAME as c,INTERPRETATION_ATTRIBUTE as f,CASE_NAMED_ATTRIBUTE as J,OBSERVER_CHANGE_EVENT as N,INTERPRETATION_CHANGE_EVENT as Q}from"./SightingElement--qpGoyxL.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const X=`
|
|
3
|
-
<header class="case-head">
|
|
4
|
-
<div class="case-bar">
|
|
5
|
-
<p id="case-kind" class="case-kind"></p>
|
|
6
|
-
<h2 id="case-title" class="case-title"></h2>
|
|
7
|
-
<!-- The same pair the observation carries, for the case: the way into the editor, and what the case says of itself. -->
|
|
8
|
-
<!-- The same three in the same order as an observation carries (see sightingTemplate): the way into the editor, this element's own
|
|
9
|
-
toggle, and what it says of itself. A reader moving between a case and an observation finds the buttons where they were. -->
|
|
10
|
-
<span class="case-actions">
|
|
11
|
-
<!-- Sharing the case: its address and the element that shows it whole (an observation of it is shared from its own player). -->
|
|
12
|
-
<button id="share" type="button" class="icon-btn" aria-haspopup="dialog"></button>
|
|
13
|
-
<rr0-case-export id="export" class="case-export"></rr0-case-export>
|
|
14
|
-
<button id="edit" type="button" class="icon-btn"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M11.3 1.3a1 1 0 0 1 1.4 0l2 2a1 1 0 0 1 0 1.4l-8.5 8.5-3.4.9.9-3.4 8.6-8.4Zm-7 9.2-.5 1.7 1.7-.5 6.9-6.9-1.2-1.2-6.9 6.9Z" fill="currentColor"/></svg></button>
|
|
15
|
-
<button id="timeline-button" type="button" class="icon-btn" aria-pressed="true"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="8" r="6"/><path d="M8 4.6V8l2.4 1.6"/></svg></button>
|
|
16
|
-
<button id="info" type="button" class="icon-btn" aria-expanded="false"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><circle cx="8" cy="3.6" r="1.4" fill="currentColor"/><path d="M6 6.5h3v6h1.5V14h-4.5v-1.5H7.5V8H6Z" fill="currentColor"/></svg></button>
|
|
17
|
-
</span>
|
|
18
|
-
</div>
|
|
19
|
-
<p id="case-summary" class="case-summary" hidden></p>
|
|
20
|
-
<rr0-share-dialog id="share-dialog"></rr0-share-dialog>
|
|
21
|
-
</header>
|
|
22
|
-
<!-- The chronology and what is open, one above the other; side by side when the case is given the width for both (see .case-layout). -->
|
|
23
|
-
<div class="case-layout">
|
|
24
|
-
<!-- The chronology, in the upper part: choosing an event opens it alone below; its mark on the rail shows it beside what is open, or puts
|
|
25
|
-
it away. Several can be open at once that way. -->
|
|
26
|
-
<section class="case-timeline">
|
|
27
|
-
<div class="events-bar">
|
|
28
|
-
<h3 class="events-heading"><span id="events-icon" class="events-icon" aria-hidden="true"></span><span id="events-heading"></span></h3>
|
|
29
|
-
<!-- Each reading under the observation it reads, or every event in the order of time: the reader's choice, remembered. -->
|
|
30
|
-
<button id="group-readings" type="button" class="icon-btn" aria-pressed="false"><svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="4" cy="3.5" r="1.6"/><path d="M4 5.1v7.4M4 8.5h3.5M4 12.5h3.5"/><path d="M9.5 8.5h4M9.5 12.5h4"/></svg></button>
|
|
31
|
-
</div>
|
|
32
|
-
<!-- Only the events whose words hold what is typed here (see CaseTimeline.search): the history of a case of fifty events is long. -->
|
|
33
|
-
<input id="events-search" class="events-search" type="search" autocomplete="off" spellcheck="false" hidden>
|
|
34
|
-
<p id="events-none" class="events-none" role="status" hidden></p>
|
|
35
|
-
<ol id="case-events" class="event-list"></ol>
|
|
36
|
-
<rr0-readings-comparison id="readings-comparison" class="readings-comparison"></rr0-readings-comparison>
|
|
37
|
-
</section>
|
|
38
|
-
<!-- The grip between the two, on the history's edge: its width, dragged. -->
|
|
39
|
-
<div id="column-resize" class="column-resize"></div>
|
|
40
|
-
<!-- What is open, in the order of time whatever the order they were opened in. -->
|
|
41
|
-
<div id="open-events" class="open-events"></div>
|
|
42
|
-
</div>
|
|
43
|
-
`,ee=`
|
|
44
|
-
:host { display: block; color: var(--rr0-ink, inherit); container-type: inline-size; }
|
|
45
|
-
/* The buttons' own colours, light and dark, the very ones an observation's popups are drawn with (see sightingTemplate's --pop-*): a page
|
|
46
|
-
that gives its own (--rr0-button-bg, -fg, -border, -hover, -on, -ring, inherited from anywhere, :root included) has them win. */
|
|
47
|
-
:host { --btn-bg: #f2f2f2; --btn-fg: #222; --btn-border: #ccc; --btn-hover: #e4e4e4; --btn-on: #dbe6f7; --btn-ring: #9bb6e0; }
|
|
48
|
-
@media (prefers-color-scheme: dark) {
|
|
49
|
-
:host { --btn-bg: #2c2e33; --btn-fg: #e6e6e6; --btn-border: #4a4c52; --btn-hover: #3a3d43; --btn-on: #274066; --btn-ring: #4f7bc4; }
|
|
50
|
-
}
|
|
51
|
-
.case-head { display: grid; gap: 6px; margin: 0 0 12px; }
|
|
52
|
-
.case-bar { display: flex; align-items: baseline; gap: 10px; }
|
|
53
|
-
.case-kind { margin: 0; font: 600 12px/1.4 var(--rr0-sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
|
|
54
|
-
.case-title { margin: 0; font: 600 24px/1.25 var(--rr0-serif, Georgia, serif); }
|
|
55
|
-
.case-actions { display: flex; gap: 4px; margin-left: auto; }
|
|
56
|
-
/* The very square the observation's own row wears (see sightingTemplate's .edit-link and .info-btn): same size, same border, same
|
|
57
|
-
background, so that the two rows are one set of buttons seen in two places. */
|
|
58
|
-
.icon-btn {
|
|
59
|
-
flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; box-sizing: border-box;
|
|
60
|
-
padding: 0; border: 1px solid var(--rr0-button-border, var(--btn-border)); border-radius: 3px; background: var(--rr0-button-bg, var(--btn-bg));
|
|
61
|
-
color: var(--rr0-button-fg, var(--btn-fg)); cursor: pointer;
|
|
62
|
-
}
|
|
63
|
-
.icon-btn:hover, .icon-btn:focus-visible { background: var(--rr0-button-hover, var(--btn-hover)); }
|
|
64
|
-
/* The report's export wears the same square, its button being its own (see CaseExportElement). */
|
|
65
|
-
.case-export { display: inline-flex; }
|
|
66
|
-
.case-export::part(button) {
|
|
67
|
-
display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; box-sizing: border-box;
|
|
68
|
-
padding: 0; border: 1px solid var(--rr0-button-border, var(--btn-border)); border-radius: 3px; background: var(--rr0-button-bg, var(--btn-bg));
|
|
69
|
-
color: var(--rr0-button-fg, var(--btn-fg));
|
|
70
|
-
}
|
|
71
|
-
.case-export::part(button):hover { background: var(--rr0-button-hover, var(--btn-hover)); }
|
|
72
|
-
.icon-btn[aria-expanded="true"], .icon-btn[aria-pressed="false"] { background: var(--rr0-button-on, var(--btn-on)); }
|
|
73
|
-
.case-summary { margin: 0; font-size: 15px; line-height: 1.5; opacity: .85; }
|
|
74
|
-
.case-summary[hidden] { display: none; }
|
|
75
|
-
/* The chronology itself is common to the editor (see CaseTimeline): what cannot be done while reading is absent, not greyed out. */
|
|
76
|
-
.case-timeline { margin: 0 0 14px; }
|
|
77
|
-
.case-timeline[hidden] { display: none; }
|
|
78
|
-
.readings-comparison { margin-top: 12px; }
|
|
79
|
-
.events-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
|
|
80
|
-
.events-bar .icon-btn { margin-left: auto; }
|
|
81
|
-
.events-search { box-sizing: border-box; width: 100%; margin: 0 0 10px; padding: 5px 12px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
|
|
82
|
-
border-radius: 999px; background: transparent; color: inherit; font: 13px/1.4 var(--rr0-sans, system-ui, sans-serif); }
|
|
83
|
-
.events-search[hidden], .events-none[hidden] { display: none; }
|
|
84
|
-
.events-none { margin: 0 0 10px; font: 13px/1.4 var(--rr0-sans, system-ui, sans-serif); opacity: .7; }
|
|
85
|
-
/* Lit when grouping, as a switch is: not the history's own button, which is lit when the history is put away. */
|
|
86
|
-
#group-readings[aria-pressed="false"] { background: var(--rr0-button-bg, var(--btn-bg)); }
|
|
87
|
-
#group-readings:is(:hover, :focus-visible) { background: var(--rr0-button-hover, var(--btn-hover)); }
|
|
88
|
-
#group-readings[aria-pressed="true"] { background: var(--rr0-button-on, var(--btn-on)); }
|
|
89
|
-
#group-readings[hidden], #share[hidden] { display: none; }
|
|
90
|
-
.events-heading { display: flex; align-items: center; gap: 6px; margin: 0; font: 600 12px/1.4 var(--rr0-sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
|
|
91
|
-
.events-icon { display: inline-flex; }
|
|
92
|
-
.events-icon svg { width: 14px; height: 14px; }
|
|
93
|
-
/* What is open: one block per event, each saying which it is, in the order of time. */
|
|
94
|
-
/* One column as wide as the case, never as wide as what is in it: an implicit "auto" column grew to the player's own widest content,
|
|
95
|
-
McMinnville's longest reading in its choice (228 letters), and the stage, 16:9 of that, put the photograph beyond the case's edge. */
|
|
96
|
-
.open-events { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
|
|
97
|
-
/* Given the width (the app on a computer), the chronology in a column of its own beside what is open, kept in view as that scrolls; the
|
|
98
|
-
whole width to what is open when the chronology is put away. The width the case is given, never the window's. */
|
|
99
|
-
@container (min-width: 760px) {
|
|
100
|
-
.case-layout { display: grid; grid-template-columns: var(${v.PROPERTY}, minmax(16rem, 1fr)) minmax(0, 2.6fr); gap: 20px; align-items: start; }
|
|
101
|
-
.case-layout > .case-timeline { grid-column: 1; grid-row: 1; }
|
|
102
|
-
.case-layout > .open-events { grid-column: 2; grid-row: 1; }
|
|
103
|
-
.case-layout > .column-resize { display: block; grid-column: 1; grid-row: 1; margin-right: -16px; }
|
|
104
|
-
.case-layout:has(> .case-timeline[hidden]) { grid-template-columns: minmax(0, 1fr); }
|
|
105
|
-
.case-layout:has(> .case-timeline[hidden]) > :is(.open-events, .column-resize) { grid-column: 1; }
|
|
106
|
-
.case-layout:has(> .case-timeline[hidden]) > .column-resize { display: none; }
|
|
107
|
-
/* Narrower than its cards, the history is its events' marks alone (see CaseTimeline.CSS). */
|
|
108
|
-
.case-layout > .case-timeline { container: case-history / inline-size; }
|
|
109
|
-
.case-layout > .case-timeline { position: sticky; top: 0; max-height: 100dvh; overflow-y: auto; margin: 0; }
|
|
110
|
-
/* A dialogue open alone beside the chronology has the height the chronology has (dicté : « toute la hauteur »), not the 22 lines kept
|
|
111
|
-
under a player when they are one above the other; kept in view as the page scrolls, as the chronology is. */
|
|
112
|
-
.case-layout > .open-events:has(> .open-event:only-child rr0-interview) { position: sticky; top: 0; }
|
|
113
|
-
.open-event:only-child rr0-interview { max-height: calc(var(--rr0-editor-height, 100dvh) - 3rem); }
|
|
114
|
-
}
|
|
115
|
-
.open-event { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
|
|
116
|
-
.open-event > .open-title { margin: 0; font: 600 13px/1.4 var(--rr0-sans, system-ui, sans-serif); letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
|
|
117
|
-
.open-event rr0-interview { padding: 10px 12px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 10px;
|
|
118
|
-
font-size: 14px; line-height: 1.5; max-height: 22em; overflow-y: auto; }
|
|
119
|
-
${p.CSS}
|
|
120
|
-
${v.CSS}
|
|
121
|
-
/* The history in a column of its own scrolls, and a column that scrolls clips what passes its edge: the marks on the rail stand half outside
|
|
122
|
-
the list, so the list is set in by as much as they and their ring stick out (as in the case editor). Asked of the column itself, the one
|
|
123
|
-
container it is in: a query on the case's width, which is not its container, was never true for it. */
|
|
124
|
-
@container case-history (min-width: 0) {
|
|
125
|
-
.case-timeline > .event-list { padding-left: 30px; }
|
|
126
|
-
}
|
|
127
|
-
@container case-history (max-width: 6rem) {
|
|
128
|
-
.case-timeline > :not(.event-list) { display: none !important; }
|
|
129
|
-
.case-timeline > .event-list { padding-left: 30px; }
|
|
130
|
-
}
|
|
131
|
-
`,g="rr0-case",w="show-timeline",y="open-events",te="openchange";class u extends HTMLElement{static get observedAttributes(){return["src","show-labels",O,w,y,m]}static PASSED_ON=["show-labels"];shadow;openEvents;timeline;shown=new Map;messages;said=new A(["en"]);json;url;shareMessages;entries=[];grouping=!1;query="";folded=new Set;columns;constructor(){super(),this.shadow=this.attachShadow({mode:"open"});const e=document.createElement("style");e.textContent=ee;const i=document.createElement("div");i.innerHTML=X,this.shadow.append(e,i),Z(),this.timeline=new p(this.byId("case-events"),n=>void this.only(n),n=>void this.only(n),n=>void this.toggle(n),n=>{this.folded.delete(n)||this.folded.add(n),this.draw()}),this.grouping=p.groupingRemembered(),this.columns=new v(this.byId("column-resize"),this.shadow.querySelector(".case-layout"),()=>this.shadow.querySelector(".case-timeline"),v.CASE_HISTORY_KEY,v.PROPERTY,44),this.byId("events-search").addEventListener("input",n=>{this.query=n.target.value,this.draw()}),this.byId("group-readings").addEventListener("click",()=>{this.grouping=!this.grouping,p.rememberGrouping(this.grouping),this.order(),this.draw()}),z.register(),B.register(),this.byId("export").source=async()=>{const n=this.json,o=new Map;return await Promise.all(this.entries.filter(a=>a.kind!=="interview"&&a.url).map(async a=>{try{o.set(a.url,await k.recording(a.url))}catch{}})),{caseJson:n,caseUrl:this.url,recordings:o}},this.openEvents=this.byId("open-events"),this.openEvents.addEventListener(G,n=>{const{at:o,sighting:a}=n.detail;this.seekObservation(o,a)}),this.openEvents.addEventListener(F,n=>{const o=n.target?.closest?.(".open-event");this.followReplay(o??void 0)}),K.register();const t=this.byId("share");t.innerHTML=W.SHARE;const s=this.byId("share-dialog");s.subject=this.shareSubject,t.addEventListener("click",()=>{this.url&&(s.note=C.changed(this.url,...this.entries.map(n=>n.url))?this.shareMessages?.unsaved:void 0,s.open())}),this.byId("edit").addEventListener("click",()=>{if(this.url&&$.ask(this,H,{src:this.url}))return;const n=this.editorUrl();n&&window.open(n,"_blank","noopener")}),this.byId("info").addEventListener("click",()=>this.showSummary(this.byId("case-summary").hidden)),this.byId("timeline-button").addEventListener("click",()=>{this.showTimeline(this.byId("case-events").parentElement.hidden)})}shareSubject={module:"rr0-sighting",link:()=>{const e=this.openKeys();return`${Y.home()}/play/?file=${encodeURIComponent(this.url??"")}${e?`&events=${encodeURIComponent(e)}`:""}`+(this.timelineShown()?"":"&timeline=0")},element:()=>{const e=this.openKeys();return`<${g} src="${this.url??""}"${e?` ${y}="${e}"`:""}${this.timelineShown()?"":` ${w}="false"`}></${g}>`}};timelineShown(){return!this.byId("case-events").parentElement.hidden}openKeys(){const e=[...this.shown.keys()].sort((i,t)=>i-t);return e.length===1&&e[0]===this.firstObservation()?"":e.map(i=>u.keyOf(this.entries[i])).join(",")}static keyOf(e){return e.event.id??u.fileNameOf(e)}static fileNameOf(e){return(e.url??"").split("/").pop().replace(/[.]json$/i,"")}asked(e){if(e===null)return[];if(e.trim()==="all")return this.entries.map((t,s)=>s);const i=e.split(",").map(t=>t.trim().replace(/[.]json$/i,"")).filter(t=>t!=="");return this.entries.map((t,s)=>({entry:t,at:s})).filter(({entry:t})=>i.some(s=>s===t.event.id||s===u.fileNameOf(t))).map(({at:t})=>t)}firstObservation(){return this.entries.findIndex(e=>e.kind!=="interview")}byId(e){return this.shadow.getElementById(e)}showSummary(e){this.byId("case-summary").hidden=!e,this.byId("info").setAttribute("aria-expanded",String(e))}showTimeline(e){this.byId("case-events").parentElement.hidden=!e,this.byId("timeline-button").setAttribute("aria-pressed",String(e));for(const i of this.players())i.toggleAttribute(R,e)}connectedCallback(){this.loadMessages(),this.showTimeline(this.getAttribute(w)!=="false"),this.showSummary(this.hasAttribute(O));const e=this.getAttribute("src");e&&this.load(e).catch(i=>console.warn(`<${g}> could not read ${e}:`,i))}attributeChangedCallback(e,i,t){if(!(!this.isConnected||t===i))if(e==="src"&&t)this.load(t);else if(e===w)this.showTimeline(t!=="false");else if(e===y)for(const s of this.asked(t))this.open(s);else for(const s of this.players())t===null?s.removeAttribute(e):s.setAttribute(e,t)}async loadMessages(){const e=U(q.preferencesFor(this),j);this.said=new A([e,"en"]),this.messages=await P(e),this.shareMessages=await this.byId("share-dialog").useLanguage(e),this.draw()}async load(e){this.url=new URL(e,location.href).href;const i=await k.recording(this.url);if(!x.isCase(i))throw new Error(`${e} is not a case: <${g}> reads a case.json`);this.json=i,this.byId("share").hidden=C.local(this.url),this.entries=u.inTime((i.events??[]).map(r=>this.entryOf(r)).filter(r=>r!==void 0)),this.shown.clear(),this.folded.clear(),this.openEvents.replaceChildren(),this.draw(),this.compareReadings();const t=this.asked(this.getAttribute(y));if(t.length>0){for(const r of t)await this.open(r);return}const s=this.firstObservation();s>=0&&this.open(s)}static inTime(e){const i=new Map(e.filter(t=>t.event.id!==void 0).map(t=>[t.event.id,t]));return p.inTime(e,{when:t=>t.when,kind:t=>t.kind,read:t=>[t.event.interpretationOf].flat().map(s=>s===void 0?void 0:i.get(s)).filter(s=>s!==void 0)}).map(({item:t})=>t)}entryOf(e){if(typeof e.url!="string"||e.url==="")return;const i=e.eventType===x.INTERVIEW_EVENT?"interview":e.eventType===x.SIGHTING_EVENT?e.interpretationOf===void 0?"observation":"reading":void 0;if(i)return{event:e,kind:i,url:new URL(e.url,this.url??location.href).href,title:this.said.read(e.title)??e.id??"",when:String(e.time??"")}}compareReadings(){const e=this.byId("readings-comparison"),i=new Map,t=r=>{let n=i.get(r);return n||(n=k.recording(r).then(o=>o,()=>{}),i.set(r,n)),n},s=async r=>Promise.all(this.entries.flatMap((n,o)=>{if(n.kind!=="reading")return[];const a=this.accountOf(n);return[(async()=>({title:n.title,witness:a?.title??"",...r&&a?.url&&n.url?{account:await t(a.url),reading:await t(n.url)}:{},open:()=>void this.only(o).then(()=>this.shown.get(o)?.scrollIntoView({block:"start",behavior:"smooth"}))}))()]}));s(!1).then(r=>e.show(r,()=>s(!0)))}accountOf(e){return this.accountsOf(e)[0]}accountsOf(e){const i=[e.event.interpretationOf].flat().filter(t=>t!==void 0);return this.entries.filter(t=>t.kind==="observation"&&i.includes(t.event.id??""))}editorUrl(){if(!this.url)return;const e=new URL("/edit/",location.href);return e.searchParams.set("file",this.url),e.href}async only(e){const i=this.turn(e);for(const t of[...this.shown.keys()])t!==e&&this.shut(t);i||await this.open(e)}turn(e){const i=this.entries[e];if(!i?.url||this.shown.has(e)||i.kind!=="observation"&&i.kind!=="reading")return!1;const[t,s]=[...this.shown.entries()].find(([n,o])=>{const a=this.entries[n]?.kind;return(a==="observation"||a==="reading")&&o.querySelector(c)})??[],r=s?.querySelector(c);return t===void 0||!s||!r?!1:(this.shown.delete(t),this.shown.set(e,s),s.dataset.at=String(e),i.kind==="reading"?(r.setAttribute(f,i.url),r.setAttribute(m,this.accountOf(i)?.url??i.url)):(r.setAttribute(m,i.url),r.removeAttribute(f)),this.order(),this.draw(),window.setTimeout(()=>this.markCitedMoments(),300),this.announceOpen(),!0)}async toggle(e){this.shown.has(e)?this.shut(e):await this.open(e)}async open(e){const i=this.entries[e];if(!i||!i.url||this.shown.has(e))return;const t=document.createElement("section");if(t.className="open-event",t.dataset.at=String(e),i.kind==="interview"){const s=document.createElement("p");s.className="open-title",s.textContent=i.title,t.append(s)}if(i.kind==="interview"){const{register:s}=await V(async()=>{const{register:n}=await import("./InterviewElement-CfkDtybc.js");return{register:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url);s();const r=document.createElement("rr0-interview");r.setAttribute("src",i.url),t.append(r),window.setTimeout(()=>{this.followReplay(),this.markCitedMoments()},300)}else{const s=document.createElement(c);s.setAttribute(J,""),s.toggleAttribute(R,!this.byId("case-events").parentElement.hidden),s.setAttribute("src",this.url??"");const r=i.kind==="reading"?this.accountOf(i):void 0;s.setAttribute(m,(r??i).url??""),i.kind==="reading"&&s.setAttribute(f,i.url),queueMicrotask(()=>{for(const n of u.PASSED_ON){const o=this.getAttribute(n);o!==null&&s.setAttribute(n,o)}}),s.addEventListener(N,n=>{this.dispatchEvent(new CustomEvent(N,{detail:n.detail})),this.follow(t,s)}),s.addEventListener(Q,()=>this.follow(t,s)),t.append(s)}this.shown.set(e,t),this.order(),this.draw(),i.kind!=="interview"&&window.setTimeout(()=>this.markCitedMoments(),300),this.announceOpen()}follow(e,i){const t=Number(e.dataset.at),s=i.shownReadingUrl,r=i.shownRecordingUrl,n=(h,b)=>h!==void 0&&b!==void 0&&new URL(h,this.url??location.href).href===new URL(b,this.url??location.href).href,o=s?this.entries.findIndex(h=>h.kind==="reading"&&n(h.url,s)):this.entries.findIndex(h=>h.kind==="observation"&&n(h.url,r));if(o<0||o===t||this.shown.get(t)!==e||this.shown.has(o))return;this.shown.delete(t),this.shown.set(o,e),e.dataset.at=String(o);const a=this.entries[o];a.kind==="reading"?i.setAttribute(f,a.url):(i.removeAttribute(f),a.url&&i.setAttribute(m,a.url)),this.order(),this.draw(),this.announceOpen()}announceOpen(){this.dispatchEvent(new CustomEvent(te,{detail:{events:this.openKeys()}}))}followReplay(e){const i=e??[...this.shown.values()].find(n=>n.querySelector(c)),t=i?Number(i.dataset.at):NaN,s=Number.isNaN(t)?void 0:this.entries[t],r=i?.querySelector(c);if(!(!s||!r)){for(const[n,o]of this.shown){if(this.entries[n]?.kind!=="interview")continue;o.querySelector("rr0-interview")?.revealAt?.(r.playedSeconds,s.event.id)}return i}}markCitedMoments(){for(const[e,i]of this.shown){const t=this.entries[e],s=i.querySelector(c);if(!t||!s)continue;const r=[];for(const[n,o]of this.shown){if(this.entries[n]?.kind!=="interview")continue;const a=o.querySelector("rr0-interview");r.push(...a?.momentsCited?.(t.event.id)??[])}s.citedMoments=r.sort((n,o)=>n.at-o.at)}}shut(e){this.shown.get(e)?.remove(),this.shown.delete(e),this.markCitedMoments(),this.draw(),this.announceOpen()}order(){const e=new Map(this.listed().map(({index:t},s)=>[t,s])),i=[...this.shown.entries()].sort(([t],[s])=>(e.get(t)??t)-(e.get(s)??s)).map(([,t])=>t);i.length===this.openEvents.children.length&&i.every((t,s)=>this.openEvents.children[s]===t)||this.openEvents.replaceChildren(...i)}listed(){const e=this.entries.map((i,t)=>({item:i,index:t}));return this.grouping?p.grouped(e,{kind:i=>i.kind,read:i=>this.accountsOf(i)}):e}async seekObservation(e,i){const t=this.entries.findIndex(n=>n.kind!=="interview"&&(n.event.id===i||i!==void 0&&n.url?.endsWith(`/${i}.json`))),s=t>=0?t:this.entries.findIndex(n=>n.kind!=="interview");if(s<0)return;this.shown.has(s)||await this.open(s),this.shown.get(s)?.querySelector(c)?.seekTo(e,i),this.shown.get(s)?.scrollIntoView({block:"nearest",behavior:"smooth"})}authors(e){const i=this.messages,t=(e??[]).map(s=>"people"in s?s.people:"org"in s?s.org:this.said.read(s.title)??"").filter(s=>s!=="");return t.length<2||!i?t.join(", "):`${t.slice(0,-1).join(", ")} ${i.linkAnd} ${t[t.length-1]}`}linkedTo(e){const i=this.messages;if(i){if(e.kind==="reading"){const t=[e.event.interpretationOf].flat().filter(r=>r!==void 0),s=this.entries.map((r,n)=>t.includes(r.event.id??"")?n:-1).filter(r=>r>=0);return s.length>0?{heading:i.interpretationOf,to:s}:void 0}if(e.kind==="observation"){const t=this.entries.map((s,r)=>s.kind==="interview"&&[s.event.interviewOf].flat().includes(e.event.id)?r:-1).filter(s=>s>=0);return t.length>0?{heading:i.passagesHeading,to:t}:void 0}}}draw(){const e=this.messages,i=this.json;if(!e||!i)return;this.byId("case-kind").textContent=e.caseHeading,this.byId("case-title").textContent=this.said.read(i.title)??i.id??"";const t=this.said.read(i.summary)??"",s=this.byId("case-summary");s.textContent=t;const r=this.byId("info");r.hidden=t==="",r.title=e.caseSummary,r.setAttribute("aria-label",e.caseSummary),t===""&&this.showSummary(!1),this.byId("events-heading").textContent=e.eventsHeading,this.byId("events-icon").innerHTML=D.CLOCK;const n=this.byId("share");n.title=e.shareCase,n.setAttribute("aria-label",e.shareCase);const o=this.byId("edit");o.title=e.editCase,o.setAttribute("aria-label",e.editCase);const a=this.byId("group-readings");a.title=e.groupReadings,a.setAttribute("aria-label",e.groupReadings),this.columns.label(e.resizeColumns),a.setAttribute("aria-pressed",String(this.grouping)),a.hidden=!this.entries.some(d=>d.kind==="reading");const h=this.listed(),b=d=>h.filter(({under:l})=>l===d).length,M=new Map(this.entries.map((d,l)=>[d,l]));this.timeline.render(h.filter(({index:d,under:l})=>l===void 0||this.query.trim()!==""||!this.folded.has(M.get(l))||this.shown.has(d)).map(({item:d,index:l,under:L})=>{const I=this.card(d,l,L),S=this.grouping&&d.kind==="observation"?b(d):0;return S>0?{...I,readings:{count:S,folded:this.folded.has(l)}}:I}),e);const E=this.byId("events-search");E.placeholder=e.searchEvents,E.setAttribute("aria-label",e.searchEvents),E.hidden=this.entries.length<5;const _=this.timeline.search(this.query),T=this.byId("events-none");T.textContent=e.noEventFound,T.hidden=this.query.trim()===""||_>0}card(e,i,t){const s=this.linkedTo(e),r=(s?.to??[]).filter(o=>this.entries[o]!==t),n=t?this.messages.alsoAbout:s?.heading??"";return{at:i,kind:e.kind,title:e.title,meta:e.when.replace("T"," "),open:this.shown.has(i),...r.length>0?{links:{heading:n,to:r.map(o=>({at:o,title:this.entries[o].title}))}}:{},by:e.kind==="observation"?"":this.authors(e.event.by),...t?{nested:!0}:{}}}async loadFromSrc(e){await this.load(e),await this.player?.loaded}get scene(){return this.players()[0]?.scene}players(){return[...this.shown.entries()].sort(([e],[i])=>e-i).map(([,e])=>e.querySelector(c)).filter(e=>e!==null)}get sightingData(){return this.players()[0]?.sightingData}get player(){return this.players()[0]}}function me(){customElements.get(g)||customElements.define(g,u)}export{g as CASE_ELEMENT_NAME,u as CaseElement,te as OPEN_CHANGE_EVENT,y as OPEN_EVENTS_ATTRIBUTE,w as SHOW_TIMELINE_ATTRIBUTE,me as register};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CaseReportExport-XLbFCkPg.js","./rr0-ufoathome.mjs","./ShareDialogElement-EzLob2Tz.js","./Sighting-B7bsiTIQ.js","./VisualAids-DI-hEL46.js","./three.module-CbaHqYFq.js","./SaidPosition-OJEYhVKN.js","./GeoProjection-DvqDbRIx.js","./Decor-Dn-cvniW.js","./RecordingIssue-BlWT8Xsu.js","./xyzImageryRaster-Dhxs0B26.js","./Obstacles-v9SkfBD7.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{H as N,R as C,aR as T,k as y}from"./ShareDialogElement-EzLob2Tz.js";import{s as I,U as L,H as R,A as O,P as E,B as M,_ as P}from"./rr0-ufoathome.mjs";import{I as A}from"./SaidPosition-OJEYhVKN.js";class g extends HTMLElement{static TAG="rr0-readings-comparison";static CSS=`
|
|
3
|
-
:host { display: block; font-size: 13px; line-height: 1.4; }
|
|
4
|
-
:host([hidden]) { display: none; }
|
|
5
|
-
summary { cursor: pointer; list-style-position: inside; font: 600 12px/1.4 var(--rr0-sans, system-ui, sans-serif); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
|
|
6
|
-
.scroll { overflow-x: auto; margin-top: 6px; }
|
|
7
|
-
table { border-collapse: collapse; width: 100%; min-width: 34em; }
|
|
8
|
-
th, td { padding: 4px 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); text-align: left; vertical-align: top; }
|
|
9
|
-
th { font-weight: 600; opacity: .75; white-space: nowrap; }
|
|
10
|
-
td.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
11
|
-
td[data-robustness="sufficient"] { color: var(--ok, #2e8b3e); }
|
|
12
|
-
td[data-robustness="fine-tuned"], td[data-robustness="too-few"] { color: var(--warn, #d9822b); }
|
|
13
|
-
td[data-robustness="none"] { opacity: .6; }
|
|
14
|
-
th button.sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
|
|
15
|
-
th button.sort:hover, th[aria-sort] button.sort { text-decoration: underline; text-underline-offset: 2px; }
|
|
16
|
-
button.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
17
|
-
${N.CSS}
|
|
18
|
-
`;messages;language="en";rows=[];load;loaded=!1;opened=!1;sort={key:"reproduced",descending:!0};static register(){customElements.get(g.TAG)||customElements.define(g.TAG,g)}static create(){return g.register(),document.createElement(g.TAG)}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.messages||this.loadLocale()}show(e,n){this.rows=e,this.load=n,this.loaded=e.every(a=>a.account&&a.reading),this.draw(),this.opened&&this.loadRows()}async loadLocale(){const e=I(R.preferencesFor(this),L);this.messages=await O.load(e),this.language=e,this.draw()}async loadRows(){this.loaded||!this.load||(this.loaded=!0,this.rows=await this.load(),this.draw())}draw(){const e=this.messages;if(this.hidden=this.rows.length===0,!e||this.rows.length===0){this.shadowRoot.replaceChildren();return}const n=e.comparison,a=document.createElement("style");a.textContent=g.CSS;const i=document.createElement("details");i.open=this.opened,i.addEventListener("toggle",()=>{this.opened=i.open,i.open&&this.loadRows()});const o=document.createElement("summary");o.append(n.heading.replace("{n}",String(this.rows.length)),N.of(n.hint));const t=document.createElement("table"),s=t.createTHead().insertRow(),l=[[n.reading,"case"],[n.witness,void 0],[n.reproduced,"reproduced"],[n.gap,"gap"],[n.robustness,"robustness"],[n.supposed,"supposed"]];for(const[p,u]of l){const v=document.createElement("th");if(v.scope="col",!u)v.textContent=p;else{const x=this.sort.key===u;x&&u!=="case"&&v.setAttribute("aria-sort",this.sort.descending?"descending":"ascending"),x&&u==="case"&&v.setAttribute("aria-sort","other");const m=document.createElement("button");m.type="button",m.className="sort",m.title=n.sortBy.replace("{column}",p),m.textContent=x&&u!=="case"?`${p} ${this.sort.descending?"▾":"▴"}`:p,m.addEventListener("click",()=>{this.sort=x?{key:u,descending:!this.sort.descending}:{key:u,descending:u!=="gap"&&u!=="supposed"},this.draw()}),v.append(m)}s.append(v)}const c=t.createTBody(),d=this.ordered(),r=this.sort.key==="case"||this.sort.key==="reproduced",b=[...new Set(d.map(p=>p.title))],h=r?b.flatMap(p=>d.filter(u=>u.title===p)):d;h.forEach((p,u)=>{const x=!r||u===0||h[u-1].title!==p.title?r?h.filter(m=>m.title===p.title).length:1:0;this.drawRow(c.insertRow(),p,e,x)});const w=document.createElement("div");w.className="scroll",w.append(t),i.append(o,w),this.shadowRoot.replaceChildren(a,i)}ordered(){const{key:e,descending:n}=this.sort;if(e==="case")return[...this.rows];const a=new Map(this.rows.map(t=>[t,this.standingOf(t)])),i=n?-1:1,o={reproduced:(t,s)=>i*(t.agreement-s.agreement)||(s.robustness-t.robustness)*i||((t.gapDeg??1/0)-(s.gapDeg??1/0))*-i||(t.supposed-s.supposed)*-i,gap:(t,s)=>(t.gapDeg===void 0?1:0)-(s.gapDeg===void 0?1:0)||i*((t.gapDeg??0)-(s.gapDeg??0)),robustness:(t,s)=>-i*(t.robustness-s.robustness),supposed:(t,s)=>i*(t.supposed-s.supposed)}[e];return this.rows.map((t,s)=>({row:t,index:s})).sort((t,s)=>{const l=a.get(t.row),c=a.get(s.row);return!l||!c?(l?0:1)-(c?0:1)||t.index-s.index:o(l,c)||t.index-s.index}).map(t=>t.row)}standingOf(e){if(!e.account||!e.reading)return;const n=C.resultOf(e.account,e.reading);if(!n||n.compared===0)return;const{provenance:a}=E.strip(e.reading),i=a.paths().filter(t=>t.startsWith("interpretation")&&E.free(a.at(t))).length,o=T.measurable(n)?n.sufficient===!0?0:n.sufficient===!1?2:1:3;return{agreement:n.agreement,robustness:o,...n.medianSeparationDeg===void 0?{}:{gapDeg:n.medianSeparationDeg},supposed:i}}drawTitle(e,n,a){const i=e.insertCell();i.rowSpan=a,i.textContent=n.title}drawWitness(e,n){const a=e.insertCell();if(!n.open){a.textContent=n.witness;return}const i=document.createElement("button");i.type="button",i.className="link",i.textContent=n.witness,i.addEventListener("click",n.open),a.append(i)}drawRow(e,n,a,i){const o=a.comparison,t=(h,w=!1)=>{const p=e.insertCell();return p.textContent=h,w&&(p.className="number"),p};if(i>0&&this.drawTitle(e,n,i),this.drawWitness(e,n),!n.account||!n.reading){for(let h=0;h<4;h++)t(o.loading);return}const s=C.resultOf(n.account,n.reading),{provenance:l}=E.strip(n.reading),c=l.paths().filter(h=>h.startsWith("interpretation")&&E.free(l.at(h)));if(!s||s.compared===0){const h=t(o.nothing);h.colSpan=3,h.dataset.robustness="none",t(String(c.length),!0);return}const d=Math.round(s.agreement*s.compared);t(`${d} / ${s.compared}`,!0);const r=new Intl.NumberFormat(this.language,{maximumFractionDigits:1});t(s.medianSeparationDeg===void 0?"–":`${r.format(s.medianSeparationDeg)}°`,!0);const b=T.measurable(s)?s.sufficient===!0?{kind:"sufficient",text:o.sufficient}:s.sufficient===!1?{kind:"fine-tuned",text:o.fineTuned.replace("{knob}",a.knobs[s.margins[0].knob])}:{kind:"none",text:o.unjudged}:{kind:"too-few",text:o.tooFew};t(b.text).dataset.robustness=b.kind,t(String(c.length),!0)}}class k extends HTMLElement{static TAG="rr0-case-export";static ICON='<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M4 1.8h5.2L12.5 5v9.2H4z"/><path d="M9 1.8V5h3.5M6 8.2h4.5M6 10.6h4.5M6 12.9h2.5"/></svg>';static CSS=`
|
|
19
|
-
:host { display: inline-block; position: relative; }
|
|
20
|
-
:host([hidden]) { display: none; }
|
|
21
|
-
/* A button's own type, as its neighbours keep theirs: a size in em taken from the bar's text made it taller than they are. */
|
|
22
|
-
button.open { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
|
|
23
|
-
.menu { min-width: 16em; max-width: 22em; padding: 4px; border: 1px solid var(--line, #ccc); border-radius: 10px; background: var(--ground, Canvas);
|
|
24
|
-
color: var(--ink, CanvasText); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); font: 400 13px/1.35 var(--sans, system-ui, sans-serif); }
|
|
25
|
-
.menu button { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
|
|
26
|
-
.menu button:is(:hover, :focus-visible) { background: color-mix(in srgb, currentColor 9%, transparent); }
|
|
27
|
-
.menu strong { display: block; font-weight: 600; }
|
|
28
|
-
.menu small { display: block; opacity: .7; }
|
|
29
|
-
.status { padding: 6px 10px; opacity: .8; }
|
|
30
|
-
.option { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border-top: 1px solid var(--line, #ddd); margin-top: 4px; cursor: pointer; }
|
|
31
|
-
.option input { margin: 2px 0 0; }
|
|
32
|
-
${y.css(".menu")}
|
|
33
|
-
.menu:popover-open { position-area: bottom span-left; margin: .35em 0 0; }
|
|
34
|
-
`;source;messages;language="en";preferences=["en"];status;withPictures;static register(){customElements.get(k.TAG)||customElements.define(k.TAG,k)}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.messages||this.loadLocale()}async loadLocale(){this.preferences=R.preferencesFor(this),this.language=I([...this.preferences],L),this.messages=await M.load(this.language),this.draw()}draw(){const e=this.messages,n=document.createElement("style");n.textContent=k.CSS;const a=document.createElement("button");a.type="button",a.className="open",a.setAttribute("part","button"),a.title=e.hint,a.setAttribute("aria-label",e.hint),a.setAttribute("aria-haspopup","menu"),a.innerHTML=k.ICON,this.getAttribute("variant")==="pill"&&a.append(Object.assign(document.createElement("span"),{textContent:e.button}));const i=document.createElement("div");i.className="menu",i.setAttribute("role","menu"),y.attach(a,i);const o=[["html",e.html,e.htmlHint],["print",e.print,e.printHint],["json",e.json,e.jsonHint],["csv",e.csv,e.csvHint]];i.append(...o.map(([l,c,d])=>{const r=document.createElement("button");return r.type="button",r.setAttribute("role","menuitem"),r.append(Object.assign(document.createElement("strong"),{textContent:c}),Object.assign(document.createElement("small"),{textContent:d})),r.addEventListener("click",()=>void this.export(l,i)),r}));const t=document.createElement("label");t.className="option",this.withPictures=Object.assign(document.createElement("input"),{type:"checkbox"});const s=document.createElement("span");s.append(Object.assign(document.createElement("strong"),{textContent:e.pictures}),Object.assign(document.createElement("small"),{textContent:e.picturesHint})),t.append(this.withPictures,s),i.append(t),this.status=Object.assign(document.createElement("p"),{className:"status",hidden:!0}),this.status.setAttribute("role","status"),i.append(this.status),a.addEventListener("click",()=>y.show(i,i.hidden)),this.shadowRoot.replaceChildren(n,a,i)}async export(e,n){const a=this.messages;if(this.source){this.status.textContent=a.working,this.status.hidden=!1;try{const[{CaseReportExport:i},o]=await Promise.all([P(()=>import("./CaseReportExport-XLbFCkPg.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),this.source()]);await i.make(e,o,this.language,this.preferences,this.withPictures?.checked??!1,(t,s)=>{this.status.textContent=a.drawing.replace("{done}",String(t)).replace("{total}",String(s))}),this.status.hidden=!0,y.show(n,!1)}catch{this.status.textContent=a.failed}}}}const $="interviewchange",j="interviewseek",z="questionnairefeed",_="questionnairesend";class f{constructor(e,n,a=n,i,o){this.list=e,this.choose=n,this.follow=a,this.toggle=i,this.fold=o}static CSS=`
|
|
35
|
-
:host {
|
|
36
|
-
--tl-ink: currentColor;
|
|
37
|
-
--tl-ink-dim: color-mix(in srgb, currentColor 80%, transparent);
|
|
38
|
-
--tl-ink-faint: color-mix(in srgb, currentColor 65%, transparent);
|
|
39
|
-
--tl-line: color-mix(in srgb, currentColor 18%, transparent);
|
|
40
|
-
--tl-ground: transparent;
|
|
41
|
-
/* The disc takes the page's own background, not a dark one: on a light page every mark was a dark coin, where a reading's dimmed
|
|
42
|
-
grey icon simply did not show. The Canvas system colour is the page's own, so this follows light and dark by itself. */
|
|
43
|
-
--tl-disc: var(--rr0-ground, Canvas);
|
|
44
|
-
--tl-hover: color-mix(in srgb, currentColor 5%, transparent);
|
|
45
|
-
--tl-sky: var(--rr0-sky, #7fd4ff);
|
|
46
|
-
--tl-glow: var(--rr0-glow, #e8b84b);
|
|
47
|
-
--tl-sans: var(--rr0-sans, system-ui, sans-serif);
|
|
48
|
-
}
|
|
49
|
-
.event-card, .kind-pill { --kind: var(--tl-glow); --kind-bg: color-mix(in srgb, var(--kind) 16%, transparent); }
|
|
50
|
-
:is(.event-card, .kind-pill)[data-kind="interview"] { --kind: var(--tl-sky); }
|
|
51
|
-
:is(.event-card, .kind-pill)[data-kind="reading"] { --kind: var(--tl-ink-faint); }
|
|
52
|
-
/* The line runs through the centre of every mark: each event draws its own stretch of it, from the one above to the one below, the
|
|
53
|
-
first from its mark down and the last down to its mark, and none when it is the only one. Both are placed from the card's outer edge,
|
|
54
|
-
past its 1px border. The mark stands level with the kind's pill: the card's middle while the card is one row, the pill's line once it
|
|
55
|
-
wraps. */
|
|
56
|
-
/* Its own container: the cards are laid out for the width the list is given, which a column beside an open event narrows (see the
|
|
57
|
-
editor's and the reader's two columns), not for the whole component's. */
|
|
58
|
-
.event-list { --rail: 7px; --gap: 10px; display: grid; gap: var(--gap); margin: 0; padding: 0 0 0 24px; list-style: none; container-type: inline-size; }
|
|
59
|
-
.event-card[hidden] { display: none; }
|
|
60
|
-
.event-card { --dot-y: 50%; position: relative; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-ground); color: var(--tl-ink); }
|
|
61
|
-
.event-card::after { content: ""; position: absolute; left: calc(var(--rail) - 24px - 1px); top: calc(-1px - var(--gap) / 2);
|
|
62
|
-
bottom: calc(-1px - var(--gap) / 2); width: 1px; transform: translateX(-50%); background: var(--tl-line); pointer-events: none; }
|
|
63
|
-
.event-card:first-child::after { top: calc(var(--dot-y) - 1px); }
|
|
64
|
-
.event-card:last-child::after { bottom: calc(100% - var(--dot-y) - 1px); }
|
|
65
|
-
.event-card:only-child::after { display: none; }
|
|
66
|
-
/* On the rail, in the colour of its kind: what kind of event it is, rather than a dot that says only that there is one. */
|
|
67
|
-
.event-mark { position: absolute; z-index: 1; left: calc(var(--rail) - 24px - 1px); top: calc(var(--dot-y) - 1px); display: grid; place-items: center;
|
|
68
|
-
width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--tl-disc); color: var(--kind);
|
|
69
|
-
pointer-events: none; }
|
|
70
|
-
.event-mark svg { width: 14px; height: 14px; }
|
|
71
|
-
/* Where the host lets several events be open, the mark is what shows one beside the others or puts it away: the card itself opens it
|
|
72
|
-
alone. Above the title's hit area, which runs over the rail. */
|
|
73
|
-
button.event-mark { z-index: 2; padding: 0; border: 1px solid var(--tl-line); font: inherit; cursor: pointer; pointer-events: auto; }
|
|
74
|
-
button.event-mark:hover { border-color: var(--kind); }
|
|
75
|
-
button.event-mark:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 1px; }
|
|
76
|
-
/* Open, it is ringed in the kind's colour on its disc, never filled: a reading's colour is a translucent grey, which the rail showed through. */
|
|
77
|
-
.event-card[data-open] > button.event-mark { border-color: var(--kind); box-shadow: 0 0 0 1px var(--kind); color: var(--tl-ink); }
|
|
78
|
-
/* A reading grouped under its observation: set in from the rail, on a branch that comes out of the observation's card, its mark on that
|
|
79
|
-
branch. The rail goes on past it, to the next event in time. The branch runs from the card above (the observation, or the reading before)
|
|
80
|
-
down to this mark, and on to the next reading's when there is one. */
|
|
81
|
-
.event-card[data-nested] { --nest: 28px; --branch: calc(-1px - var(--nest) / 2 - 3px); margin-left: var(--nest); }
|
|
82
|
-
.event-card[data-nested]::after { left: calc(var(--rail) - 24px - 1px - var(--nest)); }
|
|
83
|
-
.event-card[data-nested] > .event-mark { left: var(--branch); }
|
|
84
|
-
.event-card[data-nested]::before { content: ""; position: absolute; left: var(--branch); top: calc(-1px - var(--gap));
|
|
85
|
-
bottom: calc(100% - var(--dot-y) - 1px); width: 1px; transform: translateX(-50%); background: var(--tl-line); pointer-events: none; }
|
|
86
|
-
.event-card[data-nested]:has(+ .event-card[data-nested])::before { bottom: -1px; }
|
|
87
|
-
.event-card[data-nested] .event-open::after { left: calc(-24px - 1px - var(--nest)); }
|
|
88
|
-
/* A column made narrower than its cards (dicté 2026-11-21 : « afficher les icônes seulement »): the marks alone on the rail, one under
|
|
89
|
-
the other, each opening its event by the title's hit area, which still covers it; the title said by its tooltip (see card). */
|
|
90
|
-
@container (max-width: 3rem) {
|
|
91
|
-
.event-list { gap: 6px; }
|
|
92
|
-
.event-card { min-height: 26px; border-color: transparent; background: none; overflow: visible; }
|
|
93
|
-
.event-card[data-nested] { margin-left: 0; }
|
|
94
|
-
.event-card[data-nested]::before { display: none; }
|
|
95
|
-
.event-card[data-nested]::after { left: calc(var(--rail) - 24px - 1px); }
|
|
96
|
-
.event-card[data-nested] > .event-mark { left: calc(var(--rail) - 24px - 1px); }
|
|
97
|
-
.event-card > :not(.event-body, .event-mark), .event-body > :not(.event-main), .event-main > :not(.event-open) { display: none !important; }
|
|
98
|
-
.event-body, .event-main { display: block !important; padding: 0 !important; margin: 0 !important; }
|
|
99
|
-
.event-open { display: block; height: 26px; font-size: 0 !important; color: transparent; }
|
|
100
|
-
.event-card[data-nested] .event-open::after { left: calc(-24px - 1px); }
|
|
101
|
-
}
|
|
102
|
-
/* What folds an observation's readings away or unfolds them: above the title's hit area, at the card's end. */
|
|
103
|
-
.event-fold { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; justify-self: end; grid-column: -2 / -1;
|
|
104
|
-
grid-row: 1; padding: 2px 8px; border: 1px solid var(--tl-line); border-radius: 999px; background: none; color: var(--tl-ink-dim);
|
|
105
|
-
font: 600 12px/1.5 var(--tl-sans); cursor: pointer; }
|
|
106
|
-
.event-fold:hover { color: var(--tl-ink); border-color: var(--tl-ink-faint); }
|
|
107
|
-
.event-fold:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 2px; }
|
|
108
|
-
.event-fold svg { width: 12px; height: 12px; transition: transform .15s; }
|
|
109
|
-
.event-fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
|
|
110
|
-
.event-main:has(+ .event-fold) { padding-right: 64px; }
|
|
111
|
-
/* What the card is linked to goes UNDER what it says, across the card: beside the title it had a third of the width and wrapped on every
|
|
112
|
-
reference, below it has the whole of it. */
|
|
113
|
-
.event-body { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); grid-template-areas: "pill main" "links links";
|
|
114
|
-
align-items: center; gap: 4px 12px; min-width: 0; padding: 12px 14px; }
|
|
115
|
-
.kind-pill { grid-area: pill; justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--kind-bg); color: var(--tl-ink);
|
|
116
|
-
font: 700 12px/1.5 var(--tl-sans); white-space: nowrap; }
|
|
117
|
-
.event-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
118
|
-
/* The title opens the event, and the whole card with it: its hit area is stretched over the card, and left over the rail beside it, the
|
|
119
|
-
whole height of the card: the mark there is the card's too (see .event-list's padding, which the rail stands in). */
|
|
120
|
-
.event-open { min-height: 0; padding: 0; border: 0; background: none; color: var(--tl-ink); font: 600 15px/1.35 var(--tl-sans); text-align: left; cursor: pointer; }
|
|
121
|
-
.event-open::after { content: ""; position: absolute; inset: 0 0 0 calc(-24px - 1px); border-radius: 0 10px 10px 0; }
|
|
122
|
-
.event-open:hover:not(:disabled) { background: none; }
|
|
123
|
-
.event-open:focus-visible { outline: none; }
|
|
124
|
-
.event-card:has(.event-open:hover) { background: var(--tl-hover); }
|
|
125
|
-
.event-card:has(.event-open:focus-visible) { outline: 2px solid var(--tl-sky); outline-offset: 2px; }
|
|
126
|
-
.event-meta { font-size: 13px; color: var(--tl-ink-faint); overflow-wrap: anywhere; }
|
|
127
|
-
.event-links { grid-area: links; font-size: 13px; color: var(--tl-ink-dim); }
|
|
128
|
-
.event-links:empty { display: none; }
|
|
129
|
-
/* Open, it is lit: the card and what it opened below are the same thing seen twice. */
|
|
130
|
-
.event-card[data-open] { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 8%, transparent); }
|
|
131
|
-
/* A renvoi to another event of the case: it opens it, so it looks like what it is. Above the hit area the title stretches over the whole
|
|
132
|
-
card: otherwise the card swallows the click and opens itself, which is exactly not where the renvoi leads. */
|
|
133
|
-
.event-ref { position: relative; z-index: 1; padding: 0; border: 0; background: none; font: inherit; color: var(--tl-sky);
|
|
134
|
-
text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
135
|
-
.event-ref:hover { color: var(--tl-ink); }
|
|
136
|
-
.event-ref:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 2px; border-radius: 3px; }
|
|
137
|
-
/* The card a renvoi is pointing at, while it is pointed at. */
|
|
138
|
-
.event-card.event-aimed { outline: 2px solid var(--tl-sky); outline-offset: 2px; background: var(--tl-hover); }
|
|
139
|
-
@container (max-width: 640px) {
|
|
140
|
-
.event-card { --dot-y: 24px; }
|
|
141
|
-
.event-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pill" "main" "links"; gap: 6px 10px; }
|
|
142
|
-
/* The fold under what the card says: on the top line it would sit under an editor's tools. */
|
|
143
|
-
.event-fold { grid-row: auto; justify-self: start; }
|
|
144
|
-
.event-main:has(+ .event-fold) { padding-right: 0; }
|
|
145
|
-
}
|
|
146
|
-
`;static EDITOR_TOKENS=`
|
|
147
|
-
--tl-ink: var(--ink);
|
|
148
|
-
--tl-ink-dim: var(--ink-dim);
|
|
149
|
-
--tl-ink-faint: var(--ink-faint);
|
|
150
|
-
--tl-line: var(--line-strong);
|
|
151
|
-
--tl-ground: var(--ground);
|
|
152
|
-
--tl-disc: var(--ground-raised);
|
|
153
|
-
--tl-hover: var(--ground-sunken);
|
|
154
|
-
--tl-sky: var(--sky);
|
|
155
|
-
--tl-glow: var(--glow-solid);
|
|
156
|
-
--tl-sans: var(--sans);
|
|
157
|
-
`;static MARKS={observation:A.WITNESS,reading:A.SUMMARY,interview:A.INTERVIEW};static inTime(e,n){const a=o=>{const t=n.when(o);return t!==""||n.kind(o)!=="reading"?t:n.read(o).map(s=>n.when(s)).find(s=>s!=="")??""},i=o=>n.kind(o)==="reading"?1:0;return e.map((o,t)=>({item:o,index:t,when:a(o)})).sort((o,t)=>o.when.localeCompare(t.when)||i(o.item)-i(t.item)||o.index-t.index).map(({item:o,index:t})=>({item:o,index:t}))}static grouped(e,n){const a=new Set(e.filter(({item:t})=>n.kind(t)==="observation").map(({item:t})=>t)),i=new Map;for(const{item:t}of e){if(n.kind(t)!=="reading")continue;const s=n.read(t).find(l=>a.has(l));s!==void 0&&i.set(t,s)}const o=[];for(const t of e)if(!i.has(t.item)&&(o.push(t),!!a.has(t.item)))for(const s of e)i.get(s.item)===t.item&&o.push({...s,under:t.item});return o}static GROUPING_KEY="rr0-case-group-readings";static groupingRemembered(){try{return localStorage.getItem(f.GROUPING_KEY)==="1"}catch{return!1}}static rememberGrouping(e){try{localStorage.setItem(f.GROUPING_KEY,e?"1":"0")}catch{}}static kindLabel(e,n){return{observation:n.kindObservation,reading:n.kindReading,interview:n.kindInterview}[e]}query="";render(e,n,a){this.list.replaceChildren(...e.map(i=>{const o=this.card(i,n);return a?.(i,o),o.card})),this.applySearch()}search(e){return this.query=e,this.applySearch()}applySearch(){const e=f.plain(this.query).split(/\s+/).filter(a=>a!=="");let n=0;for(const a of this.list.querySelectorAll(":scope > .event-card")){const i=f.plain(`${a.textContent??""} ${a.querySelector(".event-open")?.title??""}`),o=e.every(t=>i.includes(t));a.hidden=!o,o&&n++}return n}static plain(e){return e.normalize("NFD").replace(/\p{M}/gu,"").toLowerCase()}card(e,n){const a=document.createElement("li");a.className="event-card",a.dataset.kind=e.kind,a.dataset.at=String(e.at),e.open&&(a.dataset.open=""),e.nested&&(a.dataset.nested="");const i=document.createElement("span");i.className="kind-pill",i.dataset.kind=e.kind,i.textContent=f.kindLabel(e.kind,n);const o=document.createElement("div");o.className="event-main";const t=document.createElement("button");t.type="button",t.className="event-open",t.textContent=e.title,t.title=e.title||n.openEvent,t.addEventListener("click",()=>this.choose(e.at));const s=document.createElement("span");s.className="event-meta",s.textContent=e.meta,o.append(t,s);const l=document.createElement("span");l.className="event-links",l.append(...this.said(e,n));const c=document.createElement("div");if(c.className="event-body",c.append(i,o),e.readings&&e.readings.count>0&&this.fold){const r=document.createElement("button");r.type="button",r.className="event-fold",r.setAttribute("aria-expanded",String(!e.readings.folded)),r.title=(e.readings.folded?n.unfoldReadings:n.foldReadings)??"",r.innerHTML='<svg viewBox="0 0 16 16" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 6l4 4 4-4"/></svg>',r.append(String(e.readings.count)),r.addEventListener("click",()=>this.fold(e.at)),c.append(r)}c.append(l);const d=document.createElement(this.toggle?"button":"span");return d.className="event-mark",d.innerHTML=f.MARKS[e.kind],d instanceof HTMLButtonElement?(d.type="button",d.title=n.toggleEvent??n.openEvent,d.setAttribute("aria-label",`${d.title} — ${e.title}`),d.setAttribute("aria-pressed",String(e.open===!0)),d.addEventListener("click",()=>this.toggle(e.at))):d.setAttribute("aria-hidden","true"),a.append(c,d),{card:a,body:c,links:l}}said(e,n){const a=[],i=e.links?.to??[];if(e.links&&i.length>0){const o=i.map(t=>this.renvoi(t.at,t.title,n));a.push(`${e.links.heading} `,...o.flatMap((t,s)=>s===0?[t]:[document.createTextNode(s===o.length-1?` ${n.linkAnd} `:", "),t]))}return e.by&&a.push(`${a.length>0?" ":""}${n.byAuthor} ${e.by}`),a}renvoi(e,n,a){const i=document.createElement("a");i.href="#",i.className="event-ref",i.textContent=n,i.title=a.openEvent,i.addEventListener("click",t=>{t.preventDefault(),this.follow(e)});const o=t=>this.list.querySelectorAll(`.event-card[data-at="${e}"]`).forEach(s=>s.classList.toggle("event-aimed",t));for(const[t,s]of[["mouseenter",!0],["mouseleave",!1],["focus",!0],["blur",!1]])i.addEventListener(t,()=>o(s));return i}}class S{constructor(e,n,a,i,o=S.PROPERTY,t=S.MIN_PX){this.grip=e,this.host=n,this.column=a,this.key=i,this.property=o,this.minPx=t;try{const s=localStorage.getItem(i);s&&/^\d+px$/.test(s)&&n.style.setProperty(o,s)}catch{}e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.tabIndex=0,e.addEventListener("pointerdown",s=>{s.preventDefault();const l=s.clientX,c=this.column().getBoundingClientRect().width;e.setPointerCapture?.(s.pointerId),e.classList.add("dragging");const d=b=>this.set(c+b.clientX-l),r=()=>{e.classList.remove("dragging"),e.removeEventListener("pointermove",d),e.removeEventListener("pointerup",r),e.removeEventListener("pointercancel",r)};e.addEventListener("pointermove",d),e.addEventListener("pointerup",r),e.addEventListener("pointercancel",r)}),e.addEventListener("keydown",s=>{s.key!=="ArrowLeft"&&s.key!=="ArrowRight"||(s.preventDefault(),this.set(this.column().getBoundingClientRect().width+(s.key==="ArrowLeft"?-20:20)))}),e.addEventListener("dblclick",()=>this.set(void 0))}static CASE_HISTORY_KEY="rr0-case-list-width";static PROPERTY="--rr0-list-width";static CSS=`
|
|
158
|
-
.column-resize { display: none; position: relative; justify-self: end; align-self: stretch; width: 12px; z-index: 3; cursor: col-resize;
|
|
159
|
-
touch-action: none; }
|
|
160
|
-
.column-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 2px;
|
|
161
|
-
background: var(--line-strong, rgba(127, 127, 127, .5)); opacity: 0; transition: opacity .15s ease; }
|
|
162
|
-
.column-resize:is(:hover, :focus-visible, .dragging)::after { opacity: 1; }
|
|
163
|
-
.column-resize:focus-visible { outline: none; }
|
|
164
|
-
`;static MIN_PX=200;static OTHER_MIN_PX=320;label(e){this.grip.title=e,this.grip.setAttribute("aria-label",e)}set(e){const n=this.host;if(e===void 0)n.style.removeProperty(this.property);else{const a=Math.max(this.minPx,n.getBoundingClientRect().width-S.OTHER_MIN_PX);n.style.setProperty(this.property,`${Math.round(Math.min(a,Math.max(this.minPx,e)))}px`)}try{e===void 0?localStorage.removeItem(this.key):localStorage.setItem(this.key,n.style.getPropertyValue(this.property))}catch{}}}export{S as C,j as I,_ as Q,g as R,f as a,k as b,$ as c,z as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as d,m as n}from"./ShareDialogElement-EzLob2Tz.js";import{N as c}from"./NearestApproach-PAsV5RlG.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const m=-6,l=150;class r{about="temporal";async assess(e){const t=r.daylight(e),o=e.decor.map((a,p)=>({object:a,index:p})).filter(({object:a})=>a.kind==="entity"),i=c.of(e),s=i!==void 0&&i.m<=l;return{verdict:o.length>0?"ce3":s?"ce1":t===void 0?void 0:t?"dd":"nl",criteria:[{id:"entities",basis:o.length>0?"stated":void 0,paths:o.map(({index:a})=>`decor.${a}`)},{id:"traces",paths:[],unsupported:!0},{id:"proximity",basis:i?.basis,paths:i?.paths??[]},{id:"radar",paths:[],unsupported:!0},{id:"daylight",basis:t===void 0?void 0:"derived",paths:t===void 0?[]:["time","place"]}]}}static daylight(e){const t=e.event.place?.[0],o=e.event.time;if(!t||!o)return;const i=d(o,t.lng,e.event.utcOffsetHours);if(i)return n("Sun",i,{lat:t.lat,lng:t.lng,elevationM:0}).altitudeDeg>m}}export{r as HynekAssessor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
class r{static given=new Map;static add(e,c){const o=decodeURIComponent(c.replace(/[?#].*$/,"").replace(/^.*\//,"")).replace(/\.json$/i,"")||"interview",a=e.name.replace(/[\\/:*?"<>|#%]+/g,"_").trim()||"file";let s=`${o}-files/${a}`;for(let n=2;r.given.has(new URL(encodeURI(s),c).href);n++)s=`${o}-files/${a.replace(/(\.[^.]*)?$/,`-${n}$1`)}`;return r.given.set(new URL(encodeURI(s),c).href,{blob:e}),{src:s,name:e.name,...e.type?{type:e.type}:{}}}static shown(e,c){const o=r.url(e,c),a=r.given.get(o);return a?(a.shown??=URL.createObjectURL(a.blob),a.shown):o}static fileName(e){return e.name??(decodeURIComponent(e.src.replace(/[?#].*$/,"").replace(/\/+$/,"").replace(/^.*\//,""))||e.src)}static isImage(e){return(e.type??"").startsWith("image/")||/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(r.fileName(e))}static url(e,c){try{return new URL(/^[a-z][a-z0-9+.-]*:/i.test(e.src)?e.src:encodeURI(e.src),c??(typeof location>"u"?void 0:location.href)).href}catch{return e.src}}static blob(e){return r.given.get(e)?.blob}static clear(){for(const{shown:e}of r.given.values())e&&URL.revokeObjectURL(e);r.given.clear()}}export{r as I};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e={title:"Title",time:"When",by:"Interviewer",medium:"Medium",witness:"Witness",witnessNone:"—",summary:"Description",transcript:"Transcript",transcriptHint:"Address of the anonymised transcript file (optional)",summaryTab:"Summary",fileTab:"File",importFile:"Load a file",importFileHint:"JSON, text, WebVTT, SRT; a filled questionnaire (JSON, CSV, text) when the medium is Questionnaire: each field becomes a question and its answer",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",saveButton:"Save",loading:"Loading the transcript…",invalid:"This text is not valid JSON yet: the interview keeps the last transcript it understood.",notATranscript:"That file is not an interview transcript (it has no segments).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Fill in the {title}: each answer is kept as the witness's words, and a question left empty stays unanswered.",source:"The questionnaire as {publisher} publishes it",other:"Other questions",required:"Asked of every witness",precise:"precise",imprecise:"imprecise",preciseHint:"Say it in your own words instead: a rough date or time, or one you are not sure of",impreciseHint:"Pick an exact date or time instead",impreciseDate:"e.g. early July 1965, a Saturday, I'm not sure of the day",impreciseTime:"e.g. around 9 pm, shortly after sunset",confidentialSealed:"Confidential: sealed for {name}, who alone can read it; it is in no file in clear.",confidentialSealedBefore:"An answer sealed for {name} has been given already: it cannot be shown again, and writing another replaces it.",confidentialNowhere:"Confidential: this case names no recipient to seal it for, so it is kept in no file.",addFile:"Add:",removeFile:"Take {name} out of the answer",sectionAnswered:"{n}/{total} answered"},feed:"Set in the observation",feedHint:"What the answers say of when, how long, the colour and where it was in the sky is set in the witness's observation, each value citing its answer",send:"Send to {name}",sendHint:"The case, with your answers and the files you gave, goes to {email}: attached by your device's sharing where it can, else saved and a message prepared for you to attach it to.",sendPrepare:"Prepare a message",sendPrepareHint:"The case, with your answers and the files you gave, is shared by your device or saved, and a message prepared for you to address and attach it to.",sendSubject:"Testimony: {title}",sendBody:`Hello,
|
|
2
|
-
|
|
3
|
-
Here is my testimony, filled in with UFO@home: the file {file} holds the {title}, my answers and the files I gave.`,sendSealed:"My confidential answers are sealed in it for {name}, who alone can read them.",sendAttach:"{file} has just been saved: please attach it to this message before sending it.",sent:"Shared by your device.",sendPrepared:"{file} is saved and a message prepared in your mail: attach the file to it before sending it.",sendFailed:"The message could not be prepared: {error}",fed:"{n} values set in the observation, each citing its answer.",fedNothing:"Nothing in the answers the observation can be given yet (date, time, duration, colour, direction, height).",unknownQuestionnaire:"The questionnaire {id} is not one this version knows: its questions are shown as the interview has them.",notAQuestionnaire:"That file holds no field of a questionnaire (a question and its answer).",loadFailed:"That transcript could not be read.",editorLabel:"Interview transcript as JSON",byHint:"RR0 people ids, separated by commas",exchangesTab:"Exchanges",exchangesEmpty:"Nothing was said yet.",redacted:"Passage removed",colon:": ",proofreadAll:"Proofread by everyone.",proofreadPending:"Not proofread yet by: {names}",play:"Play",pause:"Pause",recordings:"Recordings ({n})",recordingsTitle:"Recordings",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Offset",recordingRemove:"Remove",recordingAdd:"Add a recording",recordingAddFirst:"Give the file of the recording above first",close:"Close",noRecording:"No recording: add the audio or video file of the interview to listen to it.",redactSelection:"Take out the selection",redactedWords:"passage taken out · {n} word(s)",sealOpen:"Open with {name}",sealOpened:"Confidential, read with {name}: kept in this page only, never written.",sealFailed:"This key does not open this answer: it was sealed for another.",redactAll:"Take all out",redactRestore:"Restore",restoreAll:"Restore all",editTurn:"Edit",deleteTurn:"Delete this turn",saveTurn:"Save",cancelTurn:"Cancel",turnEditHint:"⟦ … ⟧ marks a passage taken out",selectionOnePassage:"The selection has to stay within one passage not taken out.",reviewedBy:"{name} has proofread",linkMoment:"Link to a moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Remove this link",noMoments:"The observation has no named moment yet.",redactReasonLabel:"Reason",redactReasonHint:"Said of every passage taken out next: the reader of the published interview sees it in the passage's place",redactReasons:["private life","identifying detail","off topic","recognition error"],redactReason:"taken out at proofreading",roles:{interviewer:"Interviewer",interviewee:"Interviewee",witness:"Witness",unattributed:"Voice to attribute"},transcribe:"Transcribe the recording",transcribeWith:"with",transcribeHint:"Turns the interview's recording into turns of speech, with their times. Whose each voice is stays to say, turn by turn (Who speaks), then to have proofread.",transcribeLocal:"Nothing leaves your computer. The first time, the model (about {mb} MB) is downloaded, then kept by the browser.",transcribeSends:"The recording will be sent to {name} to be transcribed.",transcribeReplaces:"The current transcript will be replaced.",transcribeNoRecording:"There is no recording of the interview yet: the button opens the window where you add it.",transcribeKey:"Key",transcribeKeyGet:"get a key",transcribeKeyHint:"Kept in memory until the page is reloaded, never stored",transcribeReading:"Reading the recording…",transcribeLoading:"Downloading the model: {loaded} of {total} MB",transcribeLoadingSoFar:"Downloading the model: {loaded} MB",transcribeSending:"Sending the recording to {name}…",transcribeWaiting:"{name} is transcribing the recording…",transcribeProgress:"Transcribing: {done} of {total}",transcribeStop:"Stop",transcribeDone:"Transcribed by {engine}. Say whose each voice is (Who speaks), then have it proofread.",transcribeStopped:"Transcription stopped: nothing was changed.",transcribeErrors:{noKey:"Type your key for this service first.",key:"The service refused the key.",rateLimited:"The service asks to wait (its quota is reached): try again later.",tooLarge:"The recording is too large to be read in the page: give its audio alone.",unsupported:"This browser cannot run the transcription.",failed:"The transcription failed: {detail}"},voiceNamed:"Voice {name}",whoSpeaks:"Who speaks…"};export{e as interviewMessages_en};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e={title:"Título",time:"Fecha",by:"Entrevistador",medium:"Medio",witness:"Testigo",witnessNone:"—",summary:"Descripción",transcript:"Transcripción",transcriptHint:"Dirección del archivo de transcripción anonimizada (opcional)",summaryTab:"Resumen",fileTab:"Archivo",importFile:"Cargar un archivo",importFileHint:"JSON, texto, WebVTT, SRT; un cuestionario rellenado (JSON, CSV, texto) si el medio es Cuestionario: cada campo pasa a ser una pregunta y su respuesta",inputFileFromFile:"desde su disco",inputFileFromUrl:"desde una dirección",inputFileModeHint:"Pulsar para darlo de la otra forma: un archivo suyo o una dirección",inputFileLoad:"Cargar",saveButton:"Guardar",loading:"Cargando la transcripción…",invalid:"Este texto aún no es JSON válido: la entrevista conserva la última transcripción que entendió.",notATranscript:"Ese archivo no es una transcripción de entrevista (no tiene turnos de palabra).",questionnaireTab:"Cuestionario",questionnaire:{intro:"Rellene el {title}: cada respuesta se guarda con las palabras del testigo, y una pregunta dejada vacía queda sin respuesta.",source:"El cuestionario tal como lo publica {publisher}",other:"Otras preguntas",required:"Se pregunta a todo testigo",precise:"precisa",imprecise:"imprecisa",preciseHint:"Decirla mejor con sus palabras: una fecha o una hora aproximada, o de la que no está seguro",impreciseHint:"Elegir mejor una fecha o una hora exacta",impreciseDate:"p. ej. a principios de julio de 1965, un sábado, no estoy seguro del día",impreciseTime:"p. ej. hacia las 21 h, poco después de la puesta del sol",confidentialSealed:"Confidencial: sellada para {name}, el único que puede leerla; no figura en claro en ningún archivo.",confidentialSealedBefore:"Ya se dio una respuesta sellada para {name}: no puede volver a mostrarse, y escribir otra la sustituye.",confidentialNowhere:"Confidencial: este caso no nombra ningún destinatario para quien sellarla, así que no se guarda en ningún archivo.",addFile:"Añadir:",removeFile:"Quitar {name} de la respuesta",sectionAnswered:"{n}/{total} respondidas"},feed:"Pasar a la observación",feedHint:"Lo que las respuestas dicen del momento, la duración, el color y la posición en el cielo se pasa a la observación del testigo, cada valor citando su respuesta",send:"Enviar a {name}",sendHint:"El caso, con sus respuestas y los archivos que dio, va a {email}: adjunto mediante la función de compartir de su dispositivo cuando puede, si no guardado y un mensaje preparado para que lo adjunte.",sendPrepare:"Preparar un mensaje",sendPrepareHint:"El caso, con sus respuestas y los archivos que dio, se comparte desde su dispositivo o se guarda, y se prepara un mensaje para que lo dirija y lo adjunte.",sendSubject:"Testimonio: {title}",sendBody:`Hola:
|
|
2
|
-
|
|
3
|
-
Este es mi testimonio, rellenado con UFO@home: el archivo {file} contiene el {title}, mis respuestas y los archivos que adjunté.`,sendSealed:"Mis respuestas confidenciales están selladas en él para {name}, el único que puede leerlas.",sendAttach:"{file} acaba de guardarse: adjúntelo a este mensaje antes de enviarlo.",sent:"Compartido desde su dispositivo.",sendPrepared:"{file} está guardado y hay un mensaje preparado en su correo: adjunte el archivo antes de enviarlo.",sendFailed:"No se pudo preparar el mensaje: {error}",fed:"{n} valores pasados a la observación, cada uno citando su respuesta.",fedNothing:"Nada en las respuestas puede pasarse aún a la observación (fecha, hora, duración, color, dirección, altura).",unknownQuestionnaire:"El cuestionario {id} no es uno que esta versión conozca: sus preguntas se muestran tal como las tiene la entrevista.",notAQuestionnaire:"Ese archivo no contiene ningún campo de cuestionario (una pregunta y su respuesta).",loadFailed:"No se pudo leer esa transcripción.",editorLabel:"Transcripción de la entrevista en JSON",byHint:"Identificadores de personas de RR0, separados por comas",exchangesTab:"Intercambios",exchangesEmpty:"Todavía no se ha dicho nada.",redacted:"Pasaje eliminado",colon:": ",proofreadAll:"Revisado por todos.",proofreadPending:"Aún no revisado por: {names}",play:"Reproducir",pause:"Pausa",recordings:"Grabaciones ({n})",recordingsTitle:"Grabaciones",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Vídeo",recordingFile:"Archivo",recordingOffset:"Desfase",recordingRemove:"Quitar",recordingAdd:"Añadir una grabación",recordingAddFirst:"Indique primero el archivo de la grabación de arriba",close:"Cerrar",noRecording:"Sin grabación: añada el archivo de audio o vídeo de la entrevista para poder escucharla.",redactSelection:"Retirar la selección",redactedWords:"pasaje retirado · {n} palabra(s)",sealOpen:"Abrir con {name}",sealOpened:"Confidencial, leída con {name}: se guarda solo en esta página, nunca se escribe.",sealFailed:"Esta clave no abre esta respuesta: se selló para otra.",redactAll:"Retirar todo",redactRestore:"Restablecer",restoreAll:"Restablecer todo",editTurn:"Modificar",deleteTurn:"Eliminar este turno de palabra",saveTurn:"Guardar",cancelTurn:"Cancelar",turnEditHint:"⟦ … ⟧ marca un pasaje retirado",selectionOnePassage:"La selección debe caber en un solo pasaje no retirado.",reviewedBy:"{name} ha revisado",linkMoment:"Vincular a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Quitar este vínculo",noMoments:"La observación aún no tiene momentos con nombre.",redactReasonLabel:"Motivo",redactReasonHint:"Se dice de cada pasaje retirado a continuación: el lector de la entrevista publicada lo ve en lugar del pasaje",redactReasons:["vida privada","dato que identifica","fuera de tema","error de reconocimiento"],redactReason:"retirado en la revisión",roles:{interviewer:"Entrevistador",interviewee:"Entrevistado",witness:"Testigo",unattributed:"Voz por atribuir"},transcribe:"Transcribir la grabación",transcribeWith:"con",transcribeHint:"Convierte la grabación de la entrevista en turnos de palabra, con sus tiempos. De quién es cada voz queda por decir, turno por turno (Quién habla), y luego por hacer revisar.",transcribeLocal:"Nada sale de su ordenador. La primera vez, el modelo (unos {mb} MB) se descarga y el navegador lo conserva.",transcribeSends:"La grabación se enviará a {name} para ser transcrita.",transcribeReplaces:"La transcripción actual será reemplazada.",transcribeNoRecording:"La entrevista aún no tiene grabación: el botón abre la ventana donde añadirla.",transcribeKey:"Clave",transcribeKeyGet:"obtener una clave",transcribeKeyHint:"Se guarda en memoria hasta que se recarga la página, nunca se almacena",transcribeReading:"Leyendo la grabación…",transcribeLoading:"Descargando el modelo: {loaded} de {total} MB",transcribeLoadingSoFar:"Descargando el modelo: {loaded} MB",transcribeSending:"Enviando la grabación a {name}…",transcribeWaiting:"{name} transcribe la grabación…",transcribeProgress:"Transcribiendo: {done} de {total}",transcribeStop:"Detener",transcribeDone:"Transcrito por {engine}. Indique de quién es cada voz (Quién habla) y luego hágalo revisar.",transcribeStopped:"Transcripción detenida: no se ha cambiado nada.",transcribeErrors:{noKey:"Escriba primero su clave para este servicio.",key:"El servicio rechazó la clave.",rateLimited:"El servicio pide esperar (cuota alcanzada): inténtelo más tarde.",tooLarge:"La grabación es demasiado grande para leerse en la página: proporcione solo su audio.",unsupported:"Este navegador no puede ejecutar la transcripción.",failed:"La transcripción ha fallado: {detail}"},voiceNamed:"Voz {name}",whoSpeaks:"Quién habla…"};export{e as interviewMessages_es};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e={title:"Titre",time:"Date",by:"Enquêteur",medium:"Moyen",witness:"Témoin",witnessNone:"—",summary:"Description",transcript:"Transcription",transcriptHint:"Adresse du fichier de transcription anonymisée (facultative)",summaryTab:"Résumé",fileTab:"Fichier",importFile:"Charger un fichier",importFileHint:"JSON, texte, WebVTT, SRT ; un questionnaire rempli (JSON, CSV, texte) si le moyen est Questionnaire : chaque champ devient une question et sa réponse",inputFileFromFile:"depuis votre disque",inputFileFromUrl:"depuis une adresse",inputFileModeHint:"Cliquer pour le donner autrement : un fichier à vous, ou une adresse",inputFileLoad:"Charger",saveButton:"Sauver",loading:"Chargement de la transcription…",invalid:"Ce texte n'est pas encore du JSON valide : l'interview garde la dernière transcription qu'elle a comprise.",notATranscript:"Ce fichier n'est pas une transcription d'interview (il n'a pas de tours de parole).",questionnaireTab:"Questionnaire",questionnaire:{intro:"Remplissez le {title} : chaque réponse est gardée dans les mots du témoin, et une question laissée vide reste sans réponse.",source:"Le questionnaire tel que le publie {publisher}",other:"Autres questions",required:"Demandé à tout témoin",precise:"précise",imprecise:"imprécise",preciseHint:"La dire plutôt dans vos mots : une date ou une heure approximative, ou dont vous n'êtes pas sûr",impreciseHint:"Choisir plutôt une date ou une heure exacte",impreciseDate:"ex. début juillet 1965, un samedi, je ne suis pas sûr du jour",impreciseTime:"ex. vers 21 h, peu après le coucher du soleil",confidentialSealed:"Confidentielle : scellée pour {name}, qui seul peut la lire ; elle ne figure en clair dans aucun fichier.",confidentialSealedBefore:"Une réponse scellée pour {name} a déjà été donnée : elle ne peut plus être affichée, et en écrire une autre la remplace.",confidentialNowhere:"Confidentielle : ce dossier ne nomme aucun destinataire pour qui la sceller, elle n'est donc gardée dans aucun fichier.",addFile:"Ajouter :",removeFile:"Retirer {name} de la réponse",sectionAnswered:"{n}/{total} répondues"},feed:"Reporter dans l'observation",feedHint:"Ce que les réponses disent du moment, de la durée, de la couleur et de la position dans le ciel est reporté dans l'observation du témoin, chaque valeur citant sa réponse",send:"Envoyer à {name}",sendHint:"Le dossier, avec vos réponses et les fichiers que vous avez donnés, part à {email} : joint par le partage de votre appareil quand il le peut, sinon enregistré et un message préparé pour que vous l'y joigniez.",sendPrepare:"Préparer un message",sendPrepareHint:"Le dossier, avec vos réponses et les fichiers que vous avez donnés, est partagé par votre appareil ou enregistré, et un message préparé pour que vous l'adressiez et l'y joigniez.",sendSubject:"Témoignage : {title}",sendBody:`Bonjour,
|
|
2
|
-
|
|
3
|
-
Voici mon témoignage, rempli avec UFO@home : le fichier {file} contient le {title}, mes réponses et les fichiers que j'ai joints.`,sendSealed:"Mes réponses confidentielles y sont scellées pour {name}, qui seul peut les lire.",sendAttach:"{file} vient d'être enregistré : joignez-le à ce message avant de l'envoyer.",sent:"Partagé par votre appareil.",sendPrepared:"{file} est enregistré et un message est préparé dans votre messagerie : joignez-y ce fichier avant de l'envoyer.",sendFailed:"Le message n'a pas pu être préparé : {error}",fed:"{n} valeurs reportées dans l'observation, chacune citant sa réponse.",fedNothing:"Rien dans les réponses ne peut encore être reporté dans l'observation (date, heure, durée, couleur, direction, hauteur).",unknownQuestionnaire:"Le questionnaire {id} n'est pas connu de cette version : ses questions sont montrées telles que l'interview les a.",notAQuestionnaire:"Ce fichier ne contient aucun champ de questionnaire (une question et sa réponse).",loadFailed:"Cette transcription n'a pas pu être lue.",editorLabel:"Transcription de l'interview en JSON",byHint:"Identifiants de personnes RR0, séparés par des virgules",exchangesTab:"Échanges",exchangesEmpty:"Rien n'a encore été dit.",redacted:"Passage retiré",colon:" : ",proofreadAll:"Relu par tous les participants.",proofreadPending:"Pas encore relu par : {names}",play:"Lecture",pause:"Pause",recordings:"Enregistrements ({n})",recordingsTitle:"Enregistrements",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Vidéo",recordingFile:"Fichier",recordingOffset:"Décalage",recordingRemove:"Retirer",recordingAdd:"Ajouter un enregistrement",recordingAddFirst:"Donnez d'abord le fichier de l'enregistrement ci-dessus",close:"Fermer",noRecording:"Aucun enregistrement : ajoutez le fichier audio ou vidéo de l'entretien pour pouvoir l'écouter.",redactSelection:"Retirer la sélection",redactedWords:"passage retiré · {n} mot(s)",sealOpen:"Ouvrir avec {name}",sealOpened:"Confidentielle, lue avec {name} : gardée dans cette page seulement, jamais écrite.",sealFailed:"Cette clé n'ouvre pas cette réponse : elle a été scellée pour une autre.",redactAll:"Retirer tout",redactRestore:"Rétablir",restoreAll:"Rétablir tout",editTurn:"Modifier",deleteTurn:"Supprimer ce tour de parole",saveTurn:"Enregistrer",cancelTurn:"Annuler",turnEditHint:"⟦ … ⟧ marque un passage retiré",selectionOnePassage:"La sélection doit tenir dans un seul passage non retiré.",reviewedBy:"{name} a relu",linkMoment:"Relier à un moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Retirer ce lien",noMoments:"L'observation n'a pas encore de moment nommé.",redactReasonLabel:"Raison",redactReasonHint:"Dite de chaque passage retiré ensuite : le lecteur de l'interview publiée la voit à la place du passage",redactReasons:["vie privée","détail qui identifie","hors sujet","erreur de reconnaissance"],redactReason:"retiré à la relecture",roles:{interviewer:"Intervieweur",interviewee:"Interviewé",witness:"Témoin",unattributed:"Voix à attribuer"},transcribe:"Transcrire l'enregistrement",transcribeWith:"avec",transcribeHint:"Fait de l'enregistrement de l'entretien des tours de parole, avec leurs instants. À qui est chaque voix reste à dire, tour par tour (Qui parle), puis à faire relire.",transcribeLocal:"Rien ne quitte votre ordinateur. La première fois, le modèle (environ {mb} Mo) est téléchargé, puis gardé par le navigateur.",transcribeSends:"L'enregistrement sera envoyé à {name} pour être transcrit.",transcribeReplaces:"La transcription actuelle sera remplacée.",transcribeNoRecording:"L'interview n'a pas encore d'enregistrement : le bouton ouvre la fenêtre où l'ajouter.",transcribeKey:"Clé",transcribeKeyGet:"obtenir une clé",transcribeKeyHint:"Gardée en mémoire jusqu'au rechargement de la page, jamais enregistrée",transcribeReading:"Lecture de l'enregistrement…",transcribeLoading:"Téléchargement du modèle : {loaded} sur {total} Mo",transcribeLoadingSoFar:"Téléchargement du modèle : {loaded} Mo",transcribeSending:"Envoi de l'enregistrement à {name}…",transcribeWaiting:"{name} transcrit l'enregistrement…",transcribeProgress:"Transcription : {done} sur {total}",transcribeStop:"Arrêter",transcribeDone:"Transcrit par {engine}. Dites à qui est chaque voix (Qui parle), puis faites relire.",transcribeStopped:"Transcription arrêtée : rien n'a été changé.",transcribeErrors:{noKey:"Saisissez d'abord votre clé pour ce service.",key:"Le service a refusé la clé.",rateLimited:"Le service demande d'attendre (quota atteint) : réessayez plus tard.",tooLarge:"L'enregistrement est trop gros pour être lu dans la page : donnez-en l'audio seul.",unsupported:"Ce navigateur ne peut pas faire tourner la transcription.",failed:"La transcription a échoué : {detail}"},voiceNamed:"Voix {name}",whoSpeaks:"Qui parle…"};export{e as interviewMessages_fr};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const e={title:"Titolo",time:"Data",by:"Intervistatore",medium:"Mezzo",witness:"Testimone",witnessNone:"—",summary:"Descrizione",transcript:"Trascrizione",transcriptHint:"Indirizzo del file di trascrizione anonimizzata (facoltativo)",summaryTab:"Riepilogo",fileTab:"File",importFile:"Carica un file",importFileHint:"JSON, testo, WebVTT, SRT; un questionario compilato (JSON, CSV, testo) se il mezzo è Questionario: ogni campo diventa una domanda e la sua risposta",inputFileFromFile:"dal proprio disco",inputFileFromUrl:"da un indirizzo",inputFileModeHint:"Fare clic per darlo nell'altro modo: un proprio file o un indirizzo",inputFileLoad:"Carica",saveButton:"Salva",loading:"Caricamento della trascrizione…",invalid:"Questo testo non è ancora JSON valido: l'intervista conserva l'ultima trascrizione che ha capito.",notATranscript:"Quel file non è una trascrizione di intervista (non ha turni di parola).",questionnaireTab:"Questionario",questionnaire:{intro:"Compili il {title}: ogni risposta è conservata con le parole del testimone, e una domanda lasciata vuota resta senza risposta.",source:"Il questionario come lo pubblica {publisher}",other:"Altre domande",required:"Chiesto a ogni testimone",precise:"precisa",imprecise:"imprecisa",preciseHint:"Dirla piuttosto con parole sue: una data o un'ora approssimativa, o di cui non è sicuro",impreciseHint:"Scegliere piuttosto una data o un'ora esatta",impreciseDate:"es. inizio luglio 1965, un sabato, non sono sicuro del giorno",impreciseTime:"es. verso le 21, poco dopo il tramonto",confidentialSealed:"Riservata: sigillata per {name}, l'unico che può leggerla; non compare in chiaro in nessun file.",confidentialSealedBefore:"Una risposta sigillata per {name} è già stata data: non può più essere mostrata, e scriverne un'altra la sostituisce.",confidentialNowhere:"Riservata: questo caso non nomina alcun destinatario per cui sigillarla, quindi non è conservata in nessun file.",addFile:"Aggiungere:",removeFile:"Togliere {name} dalla risposta",sectionAnswered:"{n}/{total} con risposta"},feed:"Riporta nell'osservazione",feedHint:"Ciò che le risposte dicono del momento, della durata, del colore e della posizione nel cielo è riportato nell'osservazione del testimone, ogni valore citando la sua risposta",send:"Inviare a {name}",sendHint:"Il caso, con le sue risposte e i file forniti, va a {email}: allegato tramite la condivisione del dispositivo quando possibile, altrimenti salvato e un messaggio preparato perché lo alleghi.",sendPrepare:"Preparare un messaggio",sendPrepareHint:"Il caso, con le sue risposte e i file forniti, è condiviso dal dispositivo o salvato, e un messaggio è preparato perché lo indirizzi e lo alleghi.",sendSubject:"Testimonianza: {title}",sendBody:`Buongiorno,
|
|
2
|
-
|
|
3
|
-
ecco la mia testimonianza, compilata con UFO@home: il file {file} contiene il {title}, le mie risposte e i file che ho allegato.`,sendSealed:"Le mie risposte riservate vi sono sigillate per {name}, l'unico che può leggerle.",sendAttach:"{file} è appena stato salvato: lo alleghi a questo messaggio prima di inviarlo.",sent:"Condiviso dal dispositivo.",sendPrepared:"{file} è salvato e un messaggio è pronto nella sua posta: alleghi il file prima di inviarlo.",sendFailed:"Non è stato possibile preparare il messaggio: {error}",fed:"{n} valori riportati nell'osservazione, ciascuno citando la sua risposta.",fedNothing:"Nulla nelle risposte può ancora essere riportato nell'osservazione (data, ora, durata, colore, direzione, altezza).",unknownQuestionnaire:"Il questionario {id} non è noto a questa versione: le sue domande sono mostrate come le ha l'intervista.",notAQuestionnaire:"Quel file non contiene alcun campo di questionario (una domanda e la sua risposta).",loadFailed:"Impossibile leggere quella trascrizione.",editorLabel:"Trascrizione dell'intervista in JSON",byHint:"Identificatori di persone RR0, separati da virgole",exchangesTab:"Scambi",exchangesEmpty:"Non è stato ancora detto nulla.",redacted:"Passaggio rimosso",colon:": ",proofreadAll:"Rivisto da tutti.",proofreadPending:"Non ancora rivisto da: {names}",play:"Riproduci",pause:"Pausa",recordings:"Registrazioni ({n})",recordingsTitle:"Registrazioni",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Scarto",recordingRemove:"Rimuovi",recordingAdd:"Aggiungi una registrazione",recordingAddFirst:"Indichi prima il file della registrazione qui sopra",close:"Chiudi",noRecording:"Nessuna registrazione: aggiungi il file audio o video dell'intervista per poterla ascoltare.",redactSelection:"Rimuovi la selezione",redactedWords:"passaggio rimosso · {n} parola/e",sealOpen:"Aprire con {name}",sealOpened:"Riservata, letta con {name}: conservata solo in questa pagina, mai scritta.",sealFailed:"Questa chiave non apre questa risposta: è stata sigillata per un'altra.",redactAll:"Rimuovi tutto",redactRestore:"Ripristina",restoreAll:"Ripristina tutto",editTurn:"Modifica",deleteTurn:"Elimina questo turno",saveTurn:"Salva",cancelTurn:"Annulla",turnEditHint:"⟦ … ⟧ indica un passaggio rimosso",selectionOnePassage:"La selezione deve restare in un solo passaggio non rimosso.",reviewedBy:"{name} ha riletto",linkMoment:"Collega a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Rimuovi questo collegamento",noMoments:"L'osservazione non ha ancora momenti con nome.",redactReasonLabel:"Motivo",redactReasonHint:"Detto di ogni passaggio rimosso in seguito: il lettore dell'intervista pubblicata lo vede al posto del passaggio",redactReasons:["vita privata","dettaglio che identifica","fuori tema","errore di riconoscimento"],redactReason:"rimosso in rilettura",roles:{interviewer:"Intervistatore",interviewee:"Intervistato",witness:"Testimone",unattributed:"Voce da attribuire"},transcribe:"Trascrivi la registrazione",transcribeWith:"con",transcribeHint:"Trasforma la registrazione dell'intervista in turni di parola, con i loro tempi. Di chi sia ogni voce resta da dire, turno per turno (Chi parla), e poi da far rileggere.",transcribeLocal:"Nulla lascia il tuo computer. La prima volta il modello (circa {mb} MB) viene scaricato e poi conservato dal browser.",transcribeSends:"La registrazione sarà inviata a {name} per essere trascritta.",transcribeReplaces:"La trascrizione attuale sarà sostituita.",transcribeNoRecording:"L'intervista non ha ancora una registrazione: il pulsante apre la finestra dove aggiungerla.",transcribeKey:"Chiave",transcribeKeyGet:"ottieni una chiave",transcribeKeyHint:"Tenuta in memoria fino al ricaricamento della pagina, mai salvata",transcribeReading:"Lettura della registrazione…",transcribeLoading:"Download del modello: {loaded} di {total} MB",transcribeLoadingSoFar:"Download del modello: {loaded} MB",transcribeSending:"Invio della registrazione a {name}…",transcribeWaiting:"{name} trascrive la registrazione…",transcribeProgress:"Trascrizione: {done} di {total}",transcribeStop:"Interrompi",transcribeDone:"Trascritto da {engine}. Indica di chi è ogni voce (Chi parla), poi fai rileggere.",transcribeStopped:"Trascrizione interrotta: non è stato cambiato nulla.",transcribeErrors:{noKey:"Inserisci prima la tua chiave per questo servizio.",key:"Il servizio ha rifiutato la chiave.",rateLimited:"Il servizio chiede di attendere (quota raggiunta): riprova più tardi.",tooLarge:"La registrazione è troppo grande per essere letta nella pagina: fornisci solo il suo audio.",unsupported:"Questo browser non può eseguire la trascrizione.",failed:"La trascrizione non è riuscita: {detail}"},voiceNamed:"Voce {name}",whoSpeaks:"Chi parla…"};export{e as interviewMessages_it};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import{M as y,_ as d}from"./rr0-ufoathome.mjs";import{b,P as E,I as g}from"./SaidPosition-OJEYhVKN.js";import{S as w}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as v}from"./LaunchPlume-D-vSb8tJ.js";import{ba as j}from"./ShareDialogElement-EzLob2Tz.js";import{P as x,E as k,a as T}from"./ParameterForm-XbqxCLRn.js";import{T as I}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const S=y.catalog({en:()=>d(()=>import("./LaunchParameterTexts_en-DvrCwbDM.js"),[],import.meta.url).then(r=>r.launchParameterTexts_en),fr:()=>d(()=>import("./LaunchParameterTexts_fr-Bh_1zVzy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_fr),es:()=>d(()=>import("./LaunchParameterTexts_es--RUAegVp.js"),[],import.meta.url).then(r=>r.launchParameterTexts_es),it:()=>d(()=>import("./LaunchParameterTexts_it-CWDx9nJy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_it)});class n{static plumeValue(e){return t=>v.plumeOf(t)[e]}static plume(e,t){return{type:"number",key:`plume.${e}`,effective:n.plumeValue(e),...t}}static burn(e,t){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t.label,hint:t.hint,group:"engine",effective:i=>t.ends(i.track??[])?.t}}static placeAt(e,t){if(e.length===0)return{t,lat:0,lng:0,altitudeKm:0};if(e.length===1)return{t,lat:e[0].lat,lng:e[0].lng,altitudeKm:e[0].altitudeKm};let i=0;for(;i<e.length-2&&e[i+1].t<t;)i++;const s=e[i],a=e[i+1],l=a.t===s.t?0:(t-s.t)/(a.t-s.t),c=(m,h)=>m+(h-m)*l;return{t,lat:c(s.lat,a.lat),lng:c(s.lng,a.lng),altitudeKm:Math.max(0,c(s.altitudeKm,a.altitudeKm))}}static instantsOf(e){return[...e.track.map(t=>t.t),...[e.burnFromT,e.burnUntilT].filter(t=>t!==void 0),...(e.jets??[]).flatMap(t=>[t.fromT,t.untilT])]}static SET={kind:"launch",title:"launch",parameters:[{type:"said",key:"title",label:"name",group:"vehicle"},{type:"text",key:"vehicle.mission",label:"mission",placeholder:"Starlink Group 10-49",group:"vehicle"},{type:"number",key:"vehicle.engine.thrustKN",min:1,max:1e5,step:1,unit:"kN",label:"thrustVacuum",hint:"merlinVacuum934Rl10110A",group:"engine"},{type:"number",key:"vehicle.engine.specificImpulseS",min:100,max:500,step:1,unit:"s",label:"specificImpulseVacuum",hint:"times981MSIt",group:"engine"},{type:"choice",key:"vehicle.engine.propellant",label:"propellant",hint:"whatTheExhaustIsMadeOf",choices:[{value:"rp1-lox",label:"keroseneAndOxygen"},{value:"methane-lox",label:"methaneAndOxygen"},{value:"hydrogen-lox",label:"hydrogenAndOxygen"},{value:"hypergolic",label:"hypergolic"},{value:"solid",label:"solid"}],group:"engine"},n.burn("burnFromT",{label:"engineStart",hint:"whenTheEngineStartedInSeconds",ends:e=>e[0]}),n.burn("burnUntilT",{label:"engineCutOff",hint:"whenTheEngineStoppedInSeconds",ends:e=>e[e.length-1]}),n.plume("exhaustKgPerS",{min:.1,max:1e5,step:.1,unit:"kg/s",label:"exhaustFlow",hint:"howMuchExhaustLeavesTheEngine",group:"plume"}),n.plume("condensedShare",{min:0,max:1,step:.01,label:"shareThatScatters",hint:"theShareOfTheExhaustThat",group:"plume"}),n.plume("particleRadiusUm",{min:.05,max:5,step:.05,unit:"µm",label:"particleRadius",group:"plume"}),n.plume("lifetimeS",{min:10,max:3600,step:10,unit:"s",label:"trailLifetime",hint:"howLongTheNarrowTrailLasts",group:"plume"}),n.plume("expansionKmPerS",{min:0,max:5,step:.01,unit:"km/s",label:"trailSpreading",group:"plume"}),n.plume("initialRadiusKm",{min:0,max:50,step:.1,unit:"km",label:"radiusAtRelease",group:"plume"}),n.plume("collarShare",{min:0,max:1,step:.01,label:"shareInTheCollar",hint:"theCollarIsTheExhaustJust",group:"collar"}),n.plume("collarExpansionKmPerS",{min:0,max:10,step:.05,unit:"km/s",label:"collarSpreading",hint:"howFastTheCollarWidensThree",group:"collar"}),n.plume("collarLifetimeS",{min:1,max:300,step:1,unit:"s",label:"collarLifetime",group:"collar"})]};static PLACE={kind:"launch-place",title:"placeOfThePath",parameters:[{type:"number",key:"t",min:-3600,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"time",hint:"secondsOfTheRecordingNegativeBefore"},{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,label:"position"},{type:"number",key:"altitudeKm",min:0,max:2e3,step:.1,unit:"km",required:!0,label:"altitude"}]};static jetContext(e,t){return{launch:e,index:t}}static jetValue(e){return(t,i)=>{const{launch:s,index:a}=i??{};return s?e(v.releaseOf(s,t,a)):void 0}}static JET_GROUP="jet";static JET={kind:"launch-jet",title:"jet",parameters:[{type:"choice",key:"kind",required:!0,label:"what",choices:[{value:"burn",label:"engineBurn"},{value:"vent",label:"propellantVented"}],group:n.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"from",hint:"secondsOfTheRecordingNegativeBefore2",group:n.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"until",group:n.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:"directionFromAft",hint:"t0StraightBackAlongTheStage",group:n.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:"side",hint:"roundTheLineOfMotionWhich",group:n.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:"spinPeriod",hint:"howLongTheStageTakesTo",group:n.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:n.jetValue(e=>e.speedKmPerS),label:"speed",hint:"howFastItLeavesTheStage",group:n.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:n.jetValue(e=>e.massKgPerS),label:"flow",group:n.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:n.jetValue(e=>e.condensedShare),label:"shareThatScatters",group:n.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:n.jetValue(e=>e.particleRadiusUm),label:"particleRadius",group:n.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:n.jetValue(e=>e.populations[0].expansionKmPerS),label:"spreading",hint:"howFastEachPuffOfIt",group:n.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:n.jetValue(e=>e.initialRadiusKm),label:"radiusAtRelease",group:n.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:n.jetValue(e=>e.populations[0].lifetimeS),label:"lifetime",group:n.JET_GROUP}]};static publish(){b.publish(n.SET)}}const P=y.catalog({en:()=>d(()=>import("./LaunchEditorMessages_en-BnzNAYW9.js"),[],import.meta.url).then(r=>r.launchEditorMessages_en),fr:()=>d(()=>import("./LaunchEditorMessages_fr-Ds_VOB8c.js"),[],import.meta.url).then(r=>r.launchEditorMessages_fr),es:()=>d(()=>import("./LaunchEditorMessages_es-BE0dEl7I.js"),[],import.meta.url).then(r=>r.launchEditorMessages_es),it:()=>d(()=>import("./LaunchEditorMessages_it-DPQaR8HY.js"),[],import.meta.url).then(r=>r.launchEditorMessages_it)});class u{constructor(e,t,i){this.container=e,this.host=t,w.attach(e,"launch-editor-part",u.STYLE),this.language=i,b.of("launch")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="path";placeForm;placeIndex=0;jetForm;jetIndex=0;language;shown=[];static STYLE='.launch-editor-part { flex-basis: 100%; min-width: 0; } .launch-editor-part #launch-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .launch-editor-part .launch-path > .icon-btn { align-self: flex-end; } .launch-editor-part #launch-list, .launch-editor-part #launch-places { flex-basis: 100%; min-width: 0; } .launch-editor-part .launch-editor, .launch-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .launch-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .launch-editor-part [hidden] { display: none !important; } .launch-editor-part select { min-width: 0; width: 100%; } .launch-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-track { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .launch-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; } .launch-editor-part input, .launch-editor-part select { max-width: 100%; box-sizing: border-box; } .launch-editor-part input[type="text"] { width: 12em; } .launch-editor-part #launch-title { width: 18em; } .launch-editor-part label { min-width: 0; max-width: 100%; } .launch-editor-part input.parameter-derived::placeholder { opacity: .65; } .launch-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(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([P.load(e),S.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlace(!0),this.syncJet(!0);const i=this.resolved(b.of("launch"));this.form??=new x(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;if(e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.jetIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
|
-
<p class="launch-intro">${e.intro}</p>
|
|
3
|
-
<div id="launch-list"></div>
|
|
4
|
-
<div id="launch-fields" class="launch-fields">
|
|
5
|
-
<div id="launch-parameters" class="launch-parameters"></div>
|
|
6
|
-
<div id="launch-timeline" class="launch-timeline"></div>
|
|
7
|
-
<button id="launch-jet-add-burn" type="button" title="${e.addJet}">${g.PLUS} ${e.jetBurn}</button>
|
|
8
|
-
<button id="launch-jet-add-vent" type="button" title="${e.addJet}">${g.PLUS} ${e.jetVent}</button>
|
|
9
|
-
<p class="launch-intro">${e.timelineNote}</p>
|
|
10
|
-
<fieldset id="launch-path" class="launch-path">
|
|
11
|
-
<legend>${e.path}</legend>
|
|
12
|
-
<div id="launch-place-parameters" class="launch-parameters"></div>
|
|
13
|
-
<button id="launch-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${g.TRASH}</button>
|
|
14
|
-
</fieldset>
|
|
15
|
-
<fieldset id="launch-jets" class="launch-path">
|
|
16
|
-
<legend id="launch-jet-legend">${e.jet}</legend>
|
|
17
|
-
<div id="launch-jet-parameters" class="launch-parameters"></div>
|
|
18
|
-
<button id="launch-jet-delete" class="icon-btn" type="button" title="${e.deleteJet}" aria-label="${e.deleteJet}">${g.TRASH}</button>
|
|
19
|
-
</fieldset>
|
|
20
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
21
|
-
</div>
|
|
22
|
-
</div>`;const t=this.element("launch-list");this.list=new k({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:i=>`launch-add-${i}`},onSelect:i=>this.show(i),onAdd:i=>this.addLaunch(i??u.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(u.VEHICLES.map(i=>({value:i.id,label:i.vehicle.name??i.id}))),this.timeline=new I(this.element("launch-timeline"),i=>this.host.seekTo(i),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.element("launch-jet-add-burn").addEventListener("click",()=>this.addJet("burn",this.host.currentTime())),this.element("launch-jet-add-vent").addEventListener("click",()=>this.addJet("vent",this.host.currentTime())),this.element("launch-place-delete").addEventListener("click",()=>this.removePlace()),this.element("launch-jet-delete").addEventListener("click",()=>this.removeJet()),this.placeForm=void 0,this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline())}static PATH_COLOR="#e08a1e";static JET_COLOR="#4f8fd6";jetLabel(e,t){return`${e.kind==="vent"?this.messages.jetVent:this.messages.jetBurn} ${t+1}`}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const i={id:"path",label:this.messages.path,color:u.PATH_COLOR,times:e.track.map(h=>h.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(h,o)=>{const p=o===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===o);this.selectPlace(p>=0?p:this.placeIndex)},move:(h,o)=>this.movePlace(h,o),add:()=>this.addPlaceAt(this.host.currentTime())},s=(e.jets??[]).map((h,o)=>({id:`jet-${o}`,label:this.jetLabel(h,o),color:u.JET_COLOR,times:[h.fromT,h.untilT],spans:[{t:h.fromT,until:h.untilT,label:""}],active:this.row==="jet"&&o===this.jetIndex,open:()=>this.selectJet(o),pressed:()=>this.selectJet(o),move:(p,f)=>this.moveJetEnd(o,p,f),add:()=>this.addJet(h.kind??"burn",this.host.currentTime())})),a=n.instantsOf(e),l=Math.min(...a),c=Math.max(...a),m=Math.max(500,(c-l)/10);this.timeline.show([i,...s],this.host.duration(),this.host.currentTime(),{from:l-m,to:c+m})}syncDetail(){const t=this.current?.jets?.[this.jetIndex];this.row==="jet"&&!t&&(this.row="path"),this.element("launch-path").hidden=this.row!=="path",this.element("launch-jets").hidden=this.row!=="jet",this.element("launch-jet-legend").textContent=t?this.jetLabel(t,this.jetIndex):this.messages.jet}static MIN_PLACES=2;syncPlace(e=!1){const t=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.element("launch-place-delete").disabled=t.length<=u.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(this.resolved(n.PLACE),new T(()=>this.current?.track[this.placeIndex],i=>this.editPlace(this.placeIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncDetail(),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncPlace(!0)}editPlace(e,t){const i=this.current;if(!i)return;const s={...i.track[e]};t(s),i.track=i.track.map((a,l)=>l===e?s:a).sort((a,l)=>a.t-l.t),this.placeIndex=i.track.indexOf(s),this.syncPlace(),this.written()}movePlace(e,t){const i=this.current?.track.findIndex(s=>s.t===e)??-1;i<0||(this.editPlace(i,s=>{s.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const i=t.track.findIndex(s=>Math.abs(s.t-e)<1);if(i<0){const s=n.placeAt(t.track,Math.round(e));t.track=[...t.track,s].sort((a,l)=>a.t-l.t),this.host.changed(),this.selectPlace(t.track.indexOf(s));return}this.selectPlace(i)}removePlace(){const e=this.current;!e||e.track.length<=u.MIN_PLACES||(e.track=e.track.filter((t,i)=>i!==this.placeIndex),this.syncPlace(!0),this.host.changed())}syncJet(e=!1){const t=this.current?.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,t.length-1)),this.jetForm?this.jetForm.sync(e):(this.jetForm=new x(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(this.resolved(n.JET),new T(()=>this.current?.jets?.[this.jetIndex],i=>this.editJet(this.jetIndex,i),()=>this.current?n.jetContext(this.current,this.jetIndex):void 0),()=>{})),this.syncDetail(),this.syncTimeline()}selectJet(e){this.row="jet",this.jetIndex=e,this.syncJet(!0)}editJet(e,t){const i=this.current;if(!i?.jets)return;const s={...i.jets[e]};t(s),i.jets=i.jets.map((a,l)=>l===e?s:a),this.written()}moveJetEnd(e,t,i){const s=this.current?.jets?.[e];s&&(this.editJet(e,a=>{const l=t===s.fromT?[i,s.untilT]:[s.fromT,i];a.fromT=Math.min(l[0],l[1]),a.untilT=Math.max(l[0],l[1])}),this.selectJet(e))}addJet(e,t){const i=this.current;if(!i)return;const s=i.track,a=Math.round(t),l=e==="vent"?{kind:e,fromT:a,untilT:a+3e4,angleDeg:90}:{kind:e,fromT:a,untilT:a+3e4};!i.jets?.length&&i.burnFromT===void 0&&i.burnUntilT===void 0&&(i.burnFromT=s[0].t,i.burnUntilT=s[s.length-1].t),i.jets=[...i.jets??[],l],this.form?.sync(!0),this.host.changed(),this.selectJet(i.jets.length-1)}removeJet(){const e=this.current;if(!e?.jets?.length)return;const t=e.jets.filter((i,s)=>s!==this.jetIndex);t.length?e.jets=t:delete e.jets,this.host.changed(),t.length?this.selectJet(Math.min(this.jetIndex,t.length-1)):this.selectPlace(this.placeIndex)}startOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=a=>({lat:t.lat+a*Math.cos(i)/111.32,lng:t.lng+a*Math.sin(i)/(111.32*Math.max(.05,Math.cos(t.lat*Math.PI/180)))});return[{t:0,...s(300),altitudeKm:80},{t:6e4,...s(450),altitudeKm:160}]}static VEHICLES=[{id:"falcon-9",vehicle:{name:"Falcon 9"}}];addLaunch(e){const t=this.startOfNew();if(!t)return;const i=u.VEHICLES.find(c=>c.id===e)??u.VEHICLES[0];let s=this.launches.length+1;for(;this.launches.some(c=>c.id===`launch-${s}`);)s++;const a={id:`launch-${s}`,vehicle:{...i.vehicle},track:t},l=this.host.sighting();l.skyEvents={...l.skyEvents,launches:[...this.launches,a]},this.currentId=a.id,this.row="path",this.placeIndex=0,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;if(!e)return;this.currentId=void 0;const t=this.host.sighting();t.skyEvents=j.written({...t.skyEvents,launches:this.launches.filter(i=>i!==e)}),this.host.changed(),this.sync()}labelOf(e){const t=this.host.said().read(e.title)??e.vehicle?.mission??e.vehicle?.name;return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().skyEvents?.launches??[]}element(e){return this.container.querySelector(`#${e}`)}}export{u as LaunchEditor};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-D18Rh2Nj.js","./three.module-CbaHqYFq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as g,g as p}from"./rr0-ufoathome.mjs";import{a as w,A as b}from"./xyzImageryRaster-Dhxs0B26.js";import"./GeoProjection-DvqDbRIx.js";class o{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=o.storage()){try{const e=t?.getItem(o.STORAGE_KEY);return e?o.parse(e):o.empty()}catch{return o.empty()}}static write(t,e=o.storage()){try{return e?(t.modules.length===0?e.removeItem(o.STORAGE_KEY):e.setItem(o.STORAGE_KEY,o.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>o.FORMAT)throw new Error(`format ${e.format} is newer than ${o.FORMAT}`);const s=new Set,r=[];for(const i of e.modules)typeof i?.url!="string"||s.has(i.url)||(s.add(i.url),r.push({url:i.url,enabled:i.enabled!==!1}));return{format:1,modules:r}}static text(t){return JSON.stringify({format:o.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,s=>f.tileUrl(this.tileUrlTemplate,s),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 s=n=>{throw new v(e,n)};(t===null||typeof t!="object"||Array.isArray(t))&&s("not a JSON object");const r=t;typeof r.format!="number"&&s('no "format"'),r.format>d.FORMAT&&s(`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))&&s(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof r.name!="string"||r.name.trim()==="")&&s('no "name"'),r.script!==void 0&&typeof r.script!="string"&&s('"script" must be an address');const i=r.contributes??{};for(const n of["imagery","elevation"]){const c=i[n];c!==void 0&&(Array.isArray(c)||s(`"contributes.${n}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&s(`"contributes.${n}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||s(`"contributes.${n}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=i.models;return a!==void 0&&(Array.isArray(a)||s('"contributes.models" must be a list'),a.forEach((n,c)=>{for(const l of["id","name","file"])(typeof n?.[l]!="string"||n[l]==="")&&s(`"contributes.models[${c}].${l}" is missing`);n.kind===void 0&&s(`"contributes.models[${c}].kind" is missing`),(!n.credit||typeof n.credit!="object")&&s(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),r}static contributions(t,e){const s=t.contributes??{},r={};if(s.imagery?.length&&(r.imagery=s.imagery.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),attribution:i.credit,fetchImpl:a})}))),s.elevation?.length&&(r.elevation=s.elevation.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new b({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),fetchImpl:a})}))),s.models?.length){const i=s.models.map(({file:n,...c})=>({...c,url:new URL(n,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,i)}]}return r}static module(t,e,s={}){const r=d.contributions(t,e);for(const[i,a]of Object.entries(s))Array.isArray(a)&&(r[i]=[...r[i]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:r}}static absoluteTemplate(t,e){const s=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(s,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class A{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const s=await this.fetchImpl(t);if(!s.ok)throw new Error(`${t}: HTTP ${s.status}`);const r=d.check(await s.json(),t),i=r.script!==void 0;let a={};if(i&&e.runScript){const n=new URL(r.script,t).href,c=await this.importImpl(n);if(typeof c.default!="function")throw new Error(`${n}: its default export is not a function`);const{MODULE_THREE:l}=await g(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-D18Rh2Nj.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:r,module:d.module(r,t,a),hasScript:i,scriptRun:i&&e.runScript}}}class y{constructor(t=new A,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=o.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(o.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(s=>s.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(s=>s.url===t?{...s,enabled:e}:s)},this.save(),await this.reload(t)}exportText(){return o.text(this.config)}async importText(t){const e=o.parse(t);await this.start();const s=this.config.modules.map(r=>r.url);this.config=e,this.save(),await Promise.all([...new Set([...s,...e.modules.map(r=>r.url)])].map(r=>this.reload(r)))}async require(t,e,s=!1){t?.length&&(await this.start(),await Promise.all(t.map(async r=>{let i;try{i=new URL(r,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const a=this.states.get(i),n=s&&!this.trusted.has(i);if(s&&this.trusted.add(i),a&&a.status!=="off"&&!(n&&a.loaded&&!a.loaded.scriptRun))return a.status==="loading"?this.pending.get(i):void 0;this.named.add(i),await this.reload(i)})))}named=new Set;trusted=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),s=this.states.get(t);s?.loaded&&p.uninstall(s.loaded.module.id);const r=e!==void 0,i=e?.enabled??!0;if(!r&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:r,enabled:i,status:"off"};if(r&&!i&&!this.named.has(t))return this.set({url:t,addedByPerson:r,enabled:i,status:"off"});this.set({url:t,addedByPerson:r,enabled:i,status:"loading"});try{const a=await this.loader.load(t,{runScript:r&&i||!r&&this.trusted.has(t)});return p.install(a.module),this.set({url:t,addedByPerson:r,enabled:i,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:r,enabled:i,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){o.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
|