@rr0/ufoathome 0.202.0 → 0.203.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/{AirshipEditor-BnRmKeVs.js → AirshipEditor-guE_ib3z.js} +1 -1
- package/dist-embed-scene/{AirshipFlight-C9DSPGwk.js → AirshipFlight-DzW0313e.js} +1 -1
- package/dist-embed-scene/{BalloonEditor-BehJs6H-.js → BalloonEditor-BIsCy_y4.js} +2 -2
- package/dist-embed-scene/{BalloonFlight-BYn4diw1.js → BalloonFlight-gunghgAq.js} +1 -1
- package/dist-embed-scene/{BirdEditor-dOp1sGsz.js → BirdEditor-CuLv4Ij5.js} +1 -1
- package/dist-embed-scene/{BirdFlock-CfJeXvWu.js → BirdFlock-L3dYU2K_.js} +1 -1
- package/dist-embed-scene/{DroneEditor-CBoR4fJ_.js → DroneEditor-BQWPhTyf.js} +1 -1
- package/dist-embed-scene/{DroneFlight-DSE1OXqh.js → DroneFlight-ERYah68l.js} +1 -1
- package/dist-embed-scene/{DroneParameters-D3EOg4oe.js → DroneParameters-CoWQympS.js} +1 -1
- package/dist-embed-scene/{LanternEditor-CbcA7K8y.js → LanternEditor-BpCyb79i.js} +1 -1
- package/dist-embed-scene/ModuleSession-Bh6KaOGK.js +3 -0
- package/dist-embed-scene/ModuleThree-DRsA8rtL.js +1 -0
- package/dist-embed-scene/SearchlightSystem-Ddws2hQY.js +1 -0
- package/dist-embed-scene/{SkyLantern-Dp_B40X0.js → SkyLantern-C3BSxHtq.js} +1 -1
- package/dist-embed-scene/rr0-scene.mjs +113 -92
- package/dist-embed-sighting/{CaseReportExport-CkWf0HNx.js → CaseReportExport--iqqhu1e.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/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/ModuleSession-_kHZ7Tx3.js +3 -0
- package/dist-embed-sighting/{ModuleThree-whEZoXYF.js → ModuleThree-BLNSm2eY.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/SearchlightSystem-PEMBDW1s.js +1 -0
- package/dist-embed-sighting/rr0-sighting.mjs +432 -366
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-Bz1OjSjY.js → AdsbLolArchiveProvider-DNYpHE9t.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipEditor-BlJXyxlr.js → AirshipEditor-B_TQEcNk.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipFlight-Cx40Y8JT.js → AirshipFlight-zrtPXNvX.js} +1 -1
- package/dist-embed-sighting-editor/{Aurora-Ldk66p1A.js → Aurora-wHi_XgNK.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraEditor-CGSomAFk.js → AuroraEditor-CHAo9LbG.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CMoKbd0k.js} +2 -2
- package/dist-embed-sighting-editor/{BalloonEditor-CgO4LaWn.js → BalloonEditor-DOmOj25v.js} +1 -1
- package/dist-embed-sighting-editor/{BalloonFlight-hLr_4TFU.js → BalloonFlight-DkhpbdZV.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-B8qreA3j.js → BeamEditor-CwC6pRPq.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-D0hrju5J.js → BeamSystem-Zsq9zuJa.js} +1 -1
- package/dist-embed-sighting-editor/{BirdEditor-BNzrfSqX.js → BirdEditor-DslUOI4x.js} +1 -1
- package/dist-embed-sighting-editor/{BirdFlock-iSovVEZd.js → BirdFlock-BoXaV-S_.js} +1 -1
- package/dist-embed-sighting-editor/{CaseElement-DPlro-7S.js → CaseElement-DFnjs2AU.js} +6 -5
- package/dist-embed-sighting-editor/{CaseReportExport-C1g5C8hi.js → CaseReportExport-CX87uNr9.js} +1 -1
- package/dist-embed-sighting-editor/{ContrailSystem-D3tXAg2r.js → ContrailSystem-hUtlCEq-.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-BMEmppip.js → ControlPasses-C8qq_tSL.js} +1 -1
- package/dist-embed-sighting-editor/{DroneEditor-BFsArPKi.js → DroneEditor-M2V3FKbS.js} +1 -1
- package/dist-embed-sighting-editor/{DroneFlight-B96pVrY1.js → DroneFlight-C1bur42A.js} +1 -1
- package/dist-embed-sighting-editor/{DroneParameters-DW-enQUo.js → DroneParameters-DRfoxMx8.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-CBGkjw03.js → Flightradar24Provider-BJDB9e9p.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-2Zbfb3kh.js → GLTFLoader-CQrldtm5.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-CBmEcC9f.js → HeadlightSystem-BzXjwGDi.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-uub2VxTi.js → HynekAssessor-Bpze0IeH.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-_1fa2bG7.js → InterviewEditorElement-C6y-8Wze.js} +6 -6
- 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-6fXL9oHW.js} +1 -1
- package/dist-embed-sighting-editor/{LaserBeam-BVc8Mvhr.js → LaserBeam-Cl4c8oJt.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchEditor-Cz8Mzo4a.js → LaunchEditor-C9swLaSJ.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchPlume-CvBhTPgN.js → LaunchPlume-CPBS4JLE.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-CkZIG-3P.js → LaunchSimulation-zjImyFHC.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-B153oeTu.js → ModelSource-ZiTya13j.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-BUL_OLFv.js → ModelThumbnails-BKl0Wk33.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BzBLcY9s.js → ModelViewer-ZZnOiYz4.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-Cr6fM28A.js → ModuleConformance-CYQ-Mn8w.js} +2 -2
- package/dist-embed-sighting-editor/ModuleSession-BklqVucx.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-jNUgMjnf.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-MEFltyZr.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/{RailwaySystem-6bwbv8UB.js → RailwaySystem-Dn-v2OAb.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-DPt4At81.js} +1 -1
- package/dist-embed-sighting-editor/{ReentrySimulation-B09JXMu5.js → ReentrySimulation-DwaQrNN5.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-8QgwbbAG.js → ReferenceSystem-DlaF5KWz.js} +1 -1
- package/dist-embed-sighting-editor/{SearchlightEditor-BpwPOhJ6.js → SearchlightEditor-CdTMwgER.js} +1 -1
- package/dist-embed-sighting-editor/SearchlightSystem-jipCae7J.js +1 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_en-BmqJK2u_.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-avQMqPMq.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-ClEadK1E.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Co5behaA.js +12 -0
- package/dist-embed-sighting-editor/{SightingElement-BQdiez39.js → SightingElement-C6CT6DBZ.js} +2 -2
- package/dist-embed-sighting-editor/{SkyLantern-D6bru_e_.js → SkyLantern-CYhqKOnv.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-DZMUxSn-.js → TraceSystem-Bj0G3fL7.js} +1 -1
- package/dist-embed-sighting-editor/{WaterSystem-CB5jE7qB.js → WaterSystem-Cv4v7PXz.js} +2 -2
- package/{dist-embed-ufoathome/caseSchema-BEJTs2Ld.js → dist-embed-sighting-editor/caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +521 -452
- package/dist-embed-sighting-editor/{trafficRuntime-Bu3my6S4.js → trafficRuntime-BdBceXei.js} +1 -1
- package/dist-embed-ufoathome/{AdsbLolArchiveProvider-KbJPyJ97.js → AdsbLolArchiveProvider-D169IKdZ.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-C_mCH4JM.js → Aurora-CP_Xi-9o.js} +1 -1
- package/dist-embed-ufoathome/{AuroraEditor-Dzvgh6e0.js → AuroraEditor-B_Rxo_6I.js} +1 -1
- package/dist-embed-ufoathome/{AuroraSimulation-BRUnHmlp.js → AuroraSimulation-KHkJyuus.js} +1 -1
- package/dist-embed-ufoathome/{BallesterGuaspAssessor-DurdUgbG.js → BallesterGuaspAssessor-58lmGHUw.js} +1 -1
- package/dist-embed-ufoathome/{BalloonEditor-dCIjTsIz.js → BalloonEditor-CAKXO8DQ.js} +2 -2
- package/dist-embed-ufoathome/{BalloonFlight-CztT6ddg.js → BalloonFlight-CvE7AHlm.js} +1 -1
- package/dist-embed-ufoathome/{BeamEditor-Ccvx7l7x.js → BeamEditor-BOsTgbHL.js} +1 -1
- package/dist-embed-ufoathome/{BeamSystem-CPM8m17q.js → BeamSystem-C7OL1VWr.js} +1 -1
- package/dist-embed-ufoathome/{BirdEditor-Dk3huwHa.js → BirdEditor-CBVGyUnK.js} +1 -1
- package/dist-embed-ufoathome/{BodyEditor-BG--NjnZ.js → BodyEditor-DZ9-YBfo.js} +1 -1
- package/dist-embed-ufoathome/{CaseEditorElement-0J_TCeiq.js → CaseEditorElement-BgT6HnpX.js} +73 -69
- package/dist-embed-ufoathome/CaseElement-DVXLO8mr.js +132 -0
- package/dist-embed-ufoathome/{CaseReportExport-DKrBXPgZ.js → CaseReportExport-Dui5KDc5.js} +3 -3
- package/dist-embed-ufoathome/ColumnResize-CO4e1m-q.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-CKvTCqTI.js → ControlPasses-CJ2jMdlf.js} +1 -1
- package/dist-embed-ufoathome/{CoverageAssessor-MeOMUjkZ.js → CoverageAssessor-CzhOt6fv.js} +1 -1
- package/dist-embed-ufoathome/{DroneEditor-D60uhSHO.js → DroneEditor-7X9CM_3H.js} +1 -1
- package/dist-embed-ufoathome/{Flightradar24Provider-DxTfswSh.js → Flightradar24Provider-TCNh_VXc.js} +1 -1
- package/dist-embed-ufoathome/{GLTFLoader-pi-JKaNa.js → GLTFLoader-BaIfBICM.js} +1 -1
- package/dist-embed-ufoathome/{GeoJsonExport-iyhoKOUU.js → GeoJsonExport-B5AFUVEM.js} +1 -1
- package/dist-embed-ufoathome/GeographicFigures-DrlbDt4f.js +1 -0
- 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-Bda6csgM.js → HynekAssessor-DaCcWwTH.js} +1 -1
- package/dist-embed-ufoathome/{InterviewEditorElement-BA060rqJ.js → InterviewEditorElement-o21YUvNz.js} +6 -6
- package/dist-embed-ufoathome/{InterviewElement-DvqsCA3I.js → InterviewElement-K_oIXneA.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-DEPgRRWe.js → KmlExport-BfiqE1s2.js} +1 -1
- package/dist-embed-ufoathome/{LanternEditor-BapUZdog.js → LanternEditor-CepeoImr.js} +1 -1
- package/dist-embed-ufoathome/{LaserBeam--dquPX_h.js → LaserBeam-IRXmv6wc.js} +1 -1
- package/dist-embed-ufoathome/{LaunchEditor-D3P0GkLr.js → LaunchEditor-C4hq0VUw.js} +1 -1
- package/dist-embed-ufoathome/{LaunchPlume-w4l4TR4A.js → LaunchPlume-CujlF3wZ.js} +1 -1
- package/dist-embed-ufoathome/{LaunchSimulation-BpZd-Nov.js → LaunchSimulation-58_ZZy8q.js} +1 -1
- package/dist-embed-ufoathome/{ModelSource-Csnm3RH_.js → ModelSource-Bz25TN6e.js} +1 -1
- package/dist-embed-ufoathome/{ModelThumbnails-Cnt2GxTb.js → ModelThumbnails-CcYlw6gA.js} +1 -1
- package/dist-embed-ufoathome/{ModelViewer-DOfAkPgK.js → ModelViewer-CD90RTYi.js} +1 -1
- package/dist-embed-ufoathome/ModuleSession-Dac4fD0X.js +3 -0
- package/dist-embed-ufoathome/ModulesPanelElement-DZxFsuuG.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-DsszB5Rd.js +1 -0
- package/dist-embed-ufoathome/{PoherAssessor-4zSdFnFp.js → PoherAssessor-BkCJ1UTQ.js} +1 -1
- 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-DEi9nT0z.js → ReentryEditor-BjyUUZGU.js} +1 -1
- package/dist-embed-ufoathome/{ReentrySimulation-CSO1vgro.js → ReentrySimulation-5VI9Dla4.js} +1 -1
- package/dist-embed-ufoathome/{ReferenceSystem--tiMGm4e.js → ReferenceSystem-C0ZXvatV.js} +1 -1
- package/dist-embed-ufoathome/ScenarioReadings-CBWjF8TY.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweep-MaryBOLs.js +1 -0
- package/dist-embed-ufoathome/{SearchlightEditor--1uL8bTa.js → SearchlightEditor-DPU1PgfT.js} +1 -1
- package/dist-embed-ufoathome/SearchlightSystem-m0a11CEu.js +1 -0
- package/dist-embed-ufoathome/{ShareDialogElement-Dlfy9NCE.js → ShareDialogElement-DqCoQwtn.js} +97 -76
- package/dist-embed-ufoathome/{Sighting-B7bsiTIQ.js → Sighting-D-_IYi9n.js} +1 -1
- package/dist-embed-ufoathome/SightingEditorMessages_en-BmqJK2u_.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-avQMqPMq.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-ClEadK1E.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-Co5behaA.js +12 -0
- package/dist-embed-ufoathome/{SightingElement-BJSNmFM6.js → SightingElement-CUrYpWRD.js} +2 -2
- package/dist-embed-ufoathome/{TraceSystem-Cq2TgP-u.js → TraceSystem-BLumvnJD.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-MRJlVNm_.js → VideoButton-hYfTEunC.js} +1 -1
- package/{dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js → dist-embed-ufoathome/caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +35 -17
- package/dist-embed-ufoathome/{surroundingsSources--qffL_nJ.js → surroundingsSources-BWHnZ_qg.js} +1 -1
- package/dist-embed-ufoathome/{trafficRuntime-CTCGr90P.js → trafficRuntime-Xpncp71U.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-XnOI5Mcr.js +0 -3
- package/dist-embed-scene/ModuleThree-BTQgimAj.js +0 -1
- package/dist-embed-scene/SearchlightSystem-CX1_nBkz.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/ModuleSession-ChJsGuTn.js +0 -3
- 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/SearchlightSystem-B2-MzG4x.js +0 -1
- 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-WA6lqfV6.js +0 -3
- package/dist-embed-sighting-editor/ModuleThree-CB_EjTOI.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelElement-BsRg3mzl.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/SearchlightSystem-CEG52QDx.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/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-ufoathome/CaseElement-CRXPyMMR.js +0 -131
- package/dist-embed-ufoathome/ColumnResize-DV-byvDt.js +0 -164
- package/dist-embed-ufoathome/GeographicFigures-DBmuFlvH.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/ModuleSession-BKDWGSEo.js +0 -3
- package/dist-embed-ufoathome/ModulesPanelElement-DH1oroWm.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/NearestApproach-DJ98M81-.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireFeed-W69udpmT.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireForm-U78nFPn5.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireImport-Q5uHxQwU.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-Dzdgopl3.js +0 -1
- package/dist-embed-ufoathome/ScenarioSweep-CMcleprC.js +0 -1
- package/dist-embed-ufoathome/SearchlightSystem-7bntVtp_.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/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
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CaseReportExport-Dui5KDc5.js","./rr0-ufoathome.mjs","./ShareDialogElement-DqCoQwtn.js","./Sighting-D-_IYi9n.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 P,aS as $,k as O}from"./ShareDialogElement-DqCoQwtn.js";import{s as D,U as G,H as z,B as F,P as y,S as q,D as W,C as I,t as U,q as L,G as V,_ as H}from"./rr0-ufoathome.mjs";import{I as M}from"./SaidPosition-OJEYhVKN.js";class C 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(C.TAG)||customElements.define(C.TAG,C)}static create(){return C.register(),document.createElement(C.TAG)}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.messages||this.loadLocale()}show(e,t){this.rows=e,this.load=t,this.loaded=e.every(i=>i.account&&i.reading),this.draw(),this.opened&&this.loadRows()}async loadLocale(){const e=D(z.preferencesFor(this),G);this.messages=await F.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 t=e.comparison,i=document.createElement("style");i.textContent=C.CSS;const a=document.createElement("details");a.open=this.opened,a.addEventListener("toggle",()=>{this.opened=a.open,a.open&&this.loadRows()});const s=document.createElement("summary");s.append(t.heading.replace("{n}",String(this.rows.length)),N.of(t.hint));const n=document.createElement("table"),o=n.createTHead().insertRow(),d=[[t.reading,"case"],[t.witness,void 0],[t.reproduced,"reproduced"],[t.gap,"gap"],[t.robustness,"robustness"],[t.supposed,"supposed"]];for(const[p,u]of d){const g=document.createElement("th");if(g.scope="col",!u)g.textContent=p;else{const x=this.sort.key===u;x&&u!=="case"&&g.setAttribute("aria-sort",this.sort.descending?"descending":"ascending"),x&&u==="case"&&g.setAttribute("aria-sort","other");const v=document.createElement("button");v.type="button",v.className="sort",v.title=t.sortBy.replace("{column}",p),v.textContent=x&&u!=="case"?`${p} ${this.sort.descending?"▾":"▴"}`:p,v.addEventListener("click",()=>{this.sort=x?{key:u,descending:!this.sort.descending}:{key:u,descending:u!=="gap"&&u!=="supposed"},this.draw()}),g.append(v)}o.append(g)}const l=n.createTBody(),r=this.ordered(),h=this.sort.key==="case"||this.sort.key==="reproduced",c=[...new Set(r.map(p=>p.title))],m=h?c.flatMap(p=>r.filter(u=>u.title===p)):r;m.forEach((p,u)=>{const x=!h||u===0||m[u-1].title!==p.title?h?m.filter(v=>v.title===p.title).length:1:0;this.drawRow(l.insertRow(),p,e,x)});const f=document.createElement("div");f.className="scroll",f.append(n),a.append(s,f),this.shadowRoot.replaceChildren(i,a)}ordered(){const{key:e,descending:t}=this.sort;if(e==="case")return[...this.rows];const i=new Map(this.rows.map(n=>[n,this.standingOf(n)])),a=t?-1:1,s={reproduced:(n,o)=>a*(n.agreement-o.agreement)||(o.robustness-n.robustness)*a||((n.gapDeg??1/0)-(o.gapDeg??1/0))*-a||(n.supposed-o.supposed)*-a,gap:(n,o)=>(n.gapDeg===void 0?1:0)-(o.gapDeg===void 0?1:0)||a*((n.gapDeg??0)-(o.gapDeg??0)),robustness:(n,o)=>-a*(n.robustness-o.robustness),supposed:(n,o)=>a*(n.supposed-o.supposed)}[e];return this.rows.map((n,o)=>({row:n,index:o})).sort((n,o)=>{const d=i.get(n.row),l=i.get(o.row);return!d||!l?(d?0:1)-(l?0:1)||n.index-o.index:s(d,l)||n.index-o.index}).map(n=>n.row)}standingOf(e){if(!e.account||!e.reading)return;const t=P.resultOf(e.account,e.reading);if(!t||t.compared===0)return;const{provenance:i}=y.strip(e.reading),a=i.paths().filter(n=>n.startsWith("interpretation")&&y.free(i.at(n))).length,s=$.measurable(t)?t.sufficient===!0?0:t.sufficient===!1?2:1:3;return{agreement:t.agreement,robustness:s,...t.medianSeparationDeg===void 0?{}:{gapDeg:t.medianSeparationDeg},supposed:a}}drawTitle(e,t,i){const a=e.insertCell();a.rowSpan=i,a.textContent=t.title}drawWitness(e,t){const i=e.insertCell();if(!t.open){i.textContent=t.witness;return}const a=document.createElement("button");a.type="button",a.className="link",a.textContent=t.witness,a.addEventListener("click",t.open),i.append(a)}drawRow(e,t,i,a){const s=i.comparison,n=(m,f=!1)=>{const p=e.insertCell();return p.textContent=m,f&&(p.className="number"),p};if(a>0&&this.drawTitle(e,t,a),this.drawWitness(e,t),!t.account||!t.reading){for(let m=0;m<4;m++)n(s.loading);return}const o=P.resultOf(t.account,t.reading),{provenance:d}=y.strip(t.reading),l=d.paths().filter(m=>m.startsWith("interpretation")&&y.free(d.at(m)));if(!o||o.compared===0){const m=n(s.nothing);m.colSpan=3,m.dataset.robustness="none",n(String(l.length),!0);return}const r=Math.round(o.agreement*o.compared);n(`${r} / ${o.compared}`,!0);const h=new Intl.NumberFormat(this.language,{maximumFractionDigits:1});n(o.medianSeparationDeg===void 0?"–":`${h.format(o.medianSeparationDeg)}°`,!0);const c=$.measurable(o)?o.sufficient===!0?{kind:"sufficient",text:s.sufficient}:o.sufficient===!1?{kind:"fine-tuned",text:s.fineTuned.replace("{knob}",i.knobs[o.margins[0].knob])}:{kind:"none",text:s.unjudged}:{kind:"too-few",text:s.tooFew};n(c.text).dataset.robustness=c.kind,n(String(l.length),!0)}}class b{static ADMISSIBLE=.5;static COLLAPSED=.2;static STRONG=.6;static elementsOf(e,t,i){return e.filter(a=>a.of===t||a.of===void 0&&i)}static unassigned(e,t){return t?[]:e.filter(i=>i.of===void 0)}static readingsOf(e,t){if(e.readings!==void 0)return{readings:t.filter(s=>e.readings.includes(s.id)),linkedBy:"chosen"};const i=new Set([e.phenomenon??[]].flat());if(i.size===0)return{readings:[],linkedBy:"phenomenon"};const a=s=>s.phenomena.size===i.size&&[...i].every(n=>s.phenomena.has(n));return{readings:t.filter(a),linkedBy:"phenomenon"}}static of(e,t,i,a,s){const n=b.elementsOf(e,i,s).filter(p=>p.status!=="association"),o=t?.hypotheses??[],d=o.map(p=>b.readingsOf(p,a)),l=o.map((p,u)=>b.explanationsOf(p,n,d[u].readings)),r=n.filter(p=>new Set(l.map(g=>g[p.id]?.explained??!1)).size>1),h=t?.observations?.[i],c=o.map((p,u)=>{const g=l[u],x=b.coverage(n,g),v=r.length>0?b.coverage(r,g):void 0,E=b.plausibility(p,h?.context?.[p.id]),A=v??x;return{id:p.id,readings:d[u].readings.map(B=>B.id),linkedBy:d[u].linkedBy,explanations:g,csRaw:x,...v?{csDiscriminating:v}:{},...E?{ps:E.score,...E.geometric?{geometric:!0}:{},...E.missing.length?{missing:E.missing}:{},hvs:{preferred:A.preferred*E.score.preferred,envelope:[A.envelope[0]*E.score.envelope[0],A.envelope[1]*E.score.envelope[1]]}}:{},admissible:n.length>0&&x.preferred>=b.ADMISSIBLE,dominant:!1,...p.milestone?{milestone:p.milestone}:{}}}),m=p=>(p.csDiscriminating??p.csRaw).preferred,f=c.filter(p=>p.admissible);if(f.length>0){const p=Math.max(...f.map(m)),u=f.filter(g=>m(g)===p);u.length===1&&(u[0].dominant=!0)}return{account:i,counted:n.map(p=>p.id),discriminating:r.map(p=>p.id),hypotheses:c}}static explanationsOf(e,t,i){const a=new Set(e.explains??[]),s={};for(const n of t){const o=n.phenomenon?b.confronted(n,i):void 0;s[n.id]=o===void 0?{explained:a.has(n.id),by:"declared"}:{explained:o.explained,by:"confrontation",...o.readings>1?{readings:o.readings}:{}}}return s}static confronted(e,t){const{sourceId:i,t:a}=e.phenomenon,s=t.flatMap(n=>{const o=Object.entries(n.outcomes??{}).filter(([d])=>{const l=d.indexOf("/");return d.slice(l+1)===i&&(a===void 0||Number(d.slice(0,l))===a)});return o.length===0?[]:[o.every(([,d])=>d)]});return s.length===0?void 0:{explained:s.some(Boolean),readings:s.length}}static coverage(e,t){if(e.length===0)return{preferred:0,envelope:[0,0]};const i=e.filter(n=>t[n.id]?.explained),a=i.filter(n=>n.status==="observed"),s=i.length/e.length;return{preferred:s,envelope:[a.length/e.length,s]}}static plausibility(e,t){const i={...e.plausibility,...t===void 0?{}:{context:t}};if(!e.plausibility&&t===void 0)return;const a=["existence","frequency","compatibility"],s=a.map(c=>i[c]).filter(c=>c!==void 0).map(b.rating);if(s.length===0)return;const n=a.filter(c=>i[c]===void 0),o=i.context===void 0?{value:1,low:1,high:1}:b.rating(i.context);i.context===void 0&&n.push("context");const d=s.map(c=>c.value),l=Math.min(...d)<=b.COLLAPSED&&Math.max(...d)>=b.STRONG,r=c=>l?Math.pow(c.reduce((m,f)=>m*f,1),1/c.length):c.reduce((m,f)=>m+f,0)/c.length;return{score:{preferred:r(d)*o.value,envelope:[r(s.map(c=>c.low))*o.low,r(s.map(c=>c.high))*o.high]},geometric:l,missing:n}}static rating(e){const t=n=>Math.min(1,Math.max(0,n));if(typeof e=="number")return{value:t(e),low:t(e),high:t(e)};const i=t(e.value),[a,s]=e.range??[e.value,e.value];return{value:i,low:Math.min(i,t(a??0)),high:Math.max(i,t(s??1))}}}class k{static GROUPS=["dateTime","place","identification","witnesses","enquiry"];static WEIGHT={complete:1,partial:.5,absent:0};static of(e,t,i){const a={dateTime:k.dateTime(t),place:k.place(t),enquiry:k.enquiry(t,i)};return k.GROUPS.map(s=>{const n=e?.[s];if(n)return{group:s,level:n};const o=a[s];return o?{group:s,level:o,suggested:!0}:{group:s}})}static total(e){const t=e.filter(i=>i.level!==void 0);return{sum:t.reduce((i,a)=>i+k.WEIGHT[a.level],0),of:t.length}}static dateTime(e){if(e.length===0)return;const t=e.map(i=>{const{recording:a,provenance:s}=y.strip(i),n=a.time;return typeof n!="string"||n===""?"absent":/T\d{2}:\d{2}/.test(n)&&!/[?~%]/.test(n)&&!y.free(s.at("time"))?"complete":"partial"});return k.weakest(t)}static place(e){if(e.length===0)return;const t=e.map(i=>{const{recording:a,provenance:s}=y.strip(i),n=a.place?.locations?.[0];return n&&typeof n.lat=="number"&&typeof n.lng=="number"?y.free(s.at("place.locations.0.lat"))||y.free(s.at("place.locations.0.lng"))?"partial":"complete":a.place?.name?"partial":"absent"});return k.weakest(t)}static enquiry(e,t){if(t)return"complete";const i=e.map(a=>{const s=y.strip(a).recording.account;if(s)return s.followedUp===!0||(s.enquiryMinutes??0)>0?"complete":s.source==="press"||s.source==="social-media"?"absent":s.source?"partial":void 0}).filter(a=>a!==void 0);if(i.length!==0)return i.includes("complete")?"complete":i.includes("partial")?"partial":"absent"}static weakest(e){return e.includes("absent")?"absent":e.includes("partial")?"partial":"complete"}}class w extends HTMLElement{static TAG="rr0-hvs";static PROTOCOL_URL="https://hal.science/hal-05662047";static CSS=`
|
|
19
|
+
:host { display: block; font-size: 13px; line-height: 1.4; }
|
|
20
|
+
:host([hidden]) { display: none; }
|
|
21
|
+
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; }
|
|
22
|
+
h4 { margin: 10px 0 4px; font-size: 12px; font-weight: 600; opacity: .8; }
|
|
23
|
+
.scroll { overflow-x: auto; }
|
|
24
|
+
table { border-collapse: collapse; width: max-content; min-width: 100%; }
|
|
25
|
+
/* What a row is stays where it is, the hypotheses scroll beside it: as many as there are, each a column of the elements' table and a row
|
|
26
|
+
of the hypotheses'. Opaque, on the panel's own ground, so that what scrolls under them does not show through. */
|
|
27
|
+
table.elements th:nth-child(-n+3), table.elements td:nth-child(-n+3),
|
|
28
|
+
table.hypotheses th:nth-child(-n+2), table.hypotheses td:nth-child(-n+2) {
|
|
29
|
+
position: sticky; z-index: 1; box-sizing: border-box; background: var(--rr0-hvs-ground, var(--ground-raised, Canvas));
|
|
30
|
+
}
|
|
31
|
+
table.elements :is(th, td):nth-child(1) { left: 0; width: 3em; min-width: 3em; }
|
|
32
|
+
table.elements :is(th, td):nth-child(2) { left: 3em; width: 12em; min-width: 12em; max-width: 12em; }
|
|
33
|
+
table.elements :is(th, td):nth-child(3) { left: 15em; width: 7.5em; min-width: 7.5em; box-shadow: inset -1px 0 color-mix(in srgb, currentColor 25%, transparent); }
|
|
34
|
+
table.elements :is(th, td):nth-child(n+4) { min-width: 5em; }
|
|
35
|
+
table.hypotheses :is(th, td):nth-child(1) { left: 0; width: 4em; min-width: 4em; }
|
|
36
|
+
table.hypotheses :is(th, td):nth-child(2) { left: 4em; width: 11em; min-width: 11em; max-width: 11em; box-shadow: inset -1px 0 color-mix(in srgb, currentColor 25%, transparent); }
|
|
37
|
+
th, td { padding: 4px 8px; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); text-align: left; vertical-align: top; }
|
|
38
|
+
th { font-weight: 600; color: color-mix(in srgb, currentColor 75%, transparent); white-space: nowrap; }
|
|
39
|
+
td.number, td.mark { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
40
|
+
td.number { text-align: right; }
|
|
41
|
+
td.mark[data-explained="true"] { color: var(--ok, #2e8b3e); }
|
|
42
|
+
td.mark[data-explained="false"] { color: color-mix(in srgb, currentColor 60%, transparent); }
|
|
43
|
+
td.mark[data-by="confrontation"] { font-weight: 700; }
|
|
44
|
+
tr[data-discriminating] td:first-child::after { content: " ◆"; font-size: 10px; opacity: .7; }
|
|
45
|
+
tr[data-counted="false"] td { color: color-mix(in srgb, currentColor 55%, transparent); }
|
|
46
|
+
tr[data-dominant] td { font-weight: 600; }
|
|
47
|
+
td.readings { min-width: 8em; }
|
|
48
|
+
td.readings .how { opacity: .65; font-size: 12px; }
|
|
49
|
+
.iqi { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; }
|
|
50
|
+
.iqi [data-suggested] .level { font-style: italic; }
|
|
51
|
+
.iqi .level { opacity: .85; }
|
|
52
|
+
.note { margin: 6px 0 0; opacity: .8; }
|
|
53
|
+
.note.warn { color: var(--warn, #d9822b); opacity: 1; }
|
|
54
|
+
.credit { margin: 8px 0 0; font-size: 12px; opacity: .7; }
|
|
55
|
+
.credit a { color: inherit; }
|
|
56
|
+
button.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
57
|
+
.choose { position: relative; display: inline-block; margin-top: 2px; }
|
|
58
|
+
.choose [popover] { margin: 0; padding: 8px 10px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 6px; background: Canvas; color: CanvasText; font: inherit; }
|
|
59
|
+
.choose label { display: block; white-space: nowrap; }
|
|
60
|
+
.choose .actions { margin-top: 6px; display: flex; gap: 8px; }
|
|
61
|
+
${N.CSS}
|
|
62
|
+
`;frame;frameWatch;watchFrame(){this.frameWatch||!this.frame||(this.frameWatch=new MutationObserver(()=>{this.frame?.section.hasAttribute("data-unfolded")&&this.loaded.size===0&&this.loadRecordings()}),this.frameWatch.observe(this.frame.section,{attributes:!0,attributeFilter:["data-unfolded"]}))}messages;language="en";said=new q(["en"]);input;opened=!1;loaded=new Map;loading=!1;static register(){customElements.get(w.TAG)||customElements.define(w.TAG,w)}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.messages||this.loadLocale()}show(e){this.input=e,this.loaded.clear(),this.draw(),this.opened&&this.loadRecordings()}redraw(){this.draw()}async loadLocale(){const e=z.preferencesFor(this),t=D(e,G);this.messages=await W.load(t),this.language=t,this.said=new q(e),this.draw()}static accounts(e){return(e.events??[]).filter(t=>t.eventType===I.SIGHTING_EVENT&&t.interpretationOf===void 0&&t.id!==void 0)}static readingEvents(e,t){return(e.events??[]).filter(i=>i.eventType===I.SIGHTING_EVENT&&i.id!==void 0&&[i.interpretationOf].flat().includes(t))}async loadRecordings(){const e=this.input;if(!(!e||this.loading||this.loaded.size>0)){this.loading=!0;try{const t=e.caseJson(),i=e.account!==void 0?[e.account]:w.accounts(t).map(s=>s.id),a=U.kinds();for(const s of i){const n=await e.recording(s),o=[];for(const d of w.readingEvents(t,s)){const l=await e.recording(d.id);if(!l)continue;const r=y.strip(l).recording.interpretation;await L.load(r,a);const h=L.expand(r,a),c=n?P.resultOf(n,L.computes(r,a)?{...l,interpretation:h}:l):void 0;o.push({id:d.id,label:this.said.read(d.title)??d.id,phenomena:L.phenomena(r,a),...c?{outcomes:c.outcomes}:{}})}if(this.input!==e)return;this.loaded.set(s,{...n?{account:n}:{},readings:o})}}finally{this.loading=!1}this.draw()}}draw(){const e=this.messages,t=this.input?.caseJson(),i=t?.elements??[],a=t?.hvs?.hypotheses??[];if(this.hidden=!t||i.length===0&&a.length===0,this.frame&&(this.frame.section.hidden=this.hidden),!e||!t||this.hidden){this.shadowRoot.replaceChildren();return}const s=document.createElement("style");if(s.textContent=w.CSS,this.frame){this.frame.title.replaceChildren(e.heading,N.of(this.input?.account===void 0?e.hintCase:e.hint)),this.watchFrame(),this.loaded.size===0&&this.frame.section.hasAttribute("data-unfolded")&&this.loadRecordings();const d=document.createElement("div");d.append(...this.loaded.size===0?[this.paragraph(e.loading,"note")]:this.input.account!==void 0?this.observation(t,this.input.account,e):this.caseLines(t,e),this.credit(t,e)),this.shadowRoot.replaceChildren(s,d);return}const n=document.createElement("details");n.open=this.opened,n.addEventListener("toggle",()=>{this.opened=n.open,n.open&&this.loadRecordings()});const o=document.createElement("summary");if(o.append(e.heading,N.of(this.input?.account===void 0?e.hintCase:e.hint)),n.append(o),this.opened){const d=this.loaded.size>0;n.append(...d?this.input.account!==void 0?this.observation(t,this.input.account,e):this.caseLines(t,e):[this.paragraph(e.loading,"note")]),n.append(this.credit(t,e))}this.shadowRoot.replaceChildren(s,n)}resultOf(e,t){const i=w.accounts(e).length<=1;return b.of(e.elements??[],e.hvs,t,this.loaded.get(t)?.readings??[],i)}observation(e,t,i){const a=w.accounts(e).length<=1,s=b.elementsOf(e.elements??[],t,a),n=e.hvs?.hypotheses??[],o=this.resultOf(e,t),d=this.loaded.get(t),l=(e.events??[]).some(c=>c.eventType===I.INTERVIEW_EVENT&&[c.interviewOf].flat().includes(t)),r=[this.heading(i.iqi.heading),this.iqiList(k.of(e.hvs?.observations?.[t]?.iqi,d?.account?[d.account]:[],l),i)];r.push(this.heading(i.elements.heading)),s.length===0?r.push(this.paragraph(i.noElements,"note")):(e.elementsSealed||r.push(this.paragraph(i.notSealed,"note warn")),r.push(this.elementsTable(s,n,o,i)));const h=b.unassigned(e.elements??[],a);return h.length>0&&r.push(this.paragraph(i.unassigned.replace("{ids}",h.map(c=>c.id).join(", ")),"note warn")),r.push(this.heading(i.hypotheses.heading)),r.push(n.length===0?this.paragraph(i.noHypotheses,"note"):this.hypothesesTable(n,o,d?.readings??[],i)),r}caseLines(e,t){const i=e.hvs?.hypotheses??[],a=document.createElement("ul");a.className="observations";for(const s of w.accounts(e)){const n=this.resultOf(e,s.id),o=document.createElement("li"),d=this.said.read(s.title)??s.id;if(this.input?.open){const u=document.createElement("button");u.type="button",u.className="link",u.textContent=d,u.addEventListener("click",()=>this.input?.open?.(s.id)),o.append(u)}else o.append(d);const l=n.hypotheses.find(u=>u.dominant),r=l?i.find(u=>u.id===l.id):void 0,h=new Intl.NumberFormat(this.language,{minimumFractionDigits:2,maximumFractionDigits:2}),c=!l||!r?t.caseLine.none:t.caseLine.dominant.replace("{hypothesis}",r.code?`${r.code} ${this.titleOf(r)}`:this.titleOf(r)).replace("{hvs}",l.hvs?h.format(l.hvs.preferred):"–"),[m,f=""]=t.caseLine.item.replace("{verdict}",c).split("{observation}"),p=o.firstChild;o.replaceChildren(m,p,f),a.append(o)}return[this.paragraph(t.caseLine.intro,"note"),a]}credit(e,t){const i=document.createElement("p");i.className="credit";const a=document.createElement("a");return a.href=w.PROTOCOL_URL,a.target="_blank",a.rel="noopener",a.textContent=t.credit.replace("{protocol}",e.hvs?.protocol??""),i.append(a,e.hvs?.taxonomy?` · ${t.taxonomy.replace("{taxonomy}",e.hvs.taxonomy)}`:""),i}iqiList(e,t){const i=document.createElement("ul");i.className="iqi";for(const s of e){const n=document.createElement("li"),o=document.createElement("span");o.className="level",o.textContent=s.level?t.iqi.levels[s.level]:t.iqi.unrated,s.suggested&&(n.dataset.suggested="",o.title=t.iqi.suggested);const[d,l=""]=t.iqi.item.replace("{group}",t.iqi.groups[s.group]).split("{level}");n.append(d,o,l),i.append(n)}const a=k.total(e);if(a.of>0){const s=document.createElement("li"),n=new Intl.NumberFormat(this.language,{maximumFractionDigits:1});s.textContent=`IQI ${t.iqi.total.replace("{sum}",n.format(a.sum)).replace("{of}",String(a.of))}`,i.append(s)}return i}elementsTable(e,t,i,a){const s=a.elements,n=document.createElement("table");n.className="elements";const o=n.createTHead().insertRow();for(const l of[s.id,s.element,s.status,...t.map(r=>r.code??this.titleOf(r))]){const r=document.createElement("th");r.scope="col",r.textContent=l,o.append(r)}const d=n.createTBody();for(const l of e){const r=d.insertRow(),h=i.counted.includes(l.id);r.dataset.counted=String(h),i.discriminating.includes(l.id)&&(r.dataset.discriminating="",r.title=s.discriminating),r.insertCell().textContent=l.id,r.insertCell().textContent=this.said.read(l.title)??"",r.insertCell().textContent=s.statuses[l.status];for(const c of i.hypotheses){const m=r.insertCell();m.className="mark";const f=c.explanations[l.id];if(!f)continue;m.dataset.explained=String(f.explained),m.dataset.by=f.by,m.textContent=f.explained?"✓":"✗";const p=f.by==="confrontation"?f.explained?s.explainedByReading:s.notExplainedByReading:f.explained?s.explainedDeclared:s.notExplainedDeclared;m.title=f.readings?`${p} · ${s.variants.replace("{n}",String(f.readings))}`:p}}return this.scrolling(n)}hypothesesTable(e,t,i,a){const s=a.hypotheses,n=document.createElement("table");n.className="hypotheses";const o=n.createTHead().insertRow();for(const l of[s.code,s.hypothesis,s.readings,s.csRaw,s.csDiscriminating,s.ps,s.hvs,s.standing]){const r=document.createElement("th");r.scope="col",r.textContent=l,l===s.standing&&(r.title=s.admissibleHint),o.append(r)}const d=n.createTBody();return e.forEach((l,r)=>{const h=t.hypotheses[r],c=d.insertRow();h.dominant&&(c.dataset.dominant=""),c.insertCell().textContent=l.code??"",c.insertCell().textContent=this.titleOf(l),this.readingsCell(c.insertCell(),l,h,i,a),this.scoreCell(c,h.csRaw,a),this.scoreCell(c,h.csDiscriminating,a);const m=this.scoreCell(c,h.ps,a),f=[...h.geometric?[s.geometric]:[],...h.missing?[s.missing.replace("{names}",h.missing.map(u=>s.ratings[u]??u).join(", "))]:[]];f.length&&(m.title=f.join(" · ")),this.scoreCell(c,h.hvs,a);const p=c.insertCell();p.textContent=this.standingOf(h,a),p.title=s.admissibleHint}),this.scrolling(n)}readingsCell(e,t,i,a,s){const n=s.hypotheses;e.className="readings";const o=i.readings.map(g=>a.find(x=>x.id===g)?.label??g);e.append(o.length>0?o.join(", "):n.noReading);const d=document.createElement("div");d.className="how";const l=[t.phenomenon??[]].flat();d.textContent=i.linkedBy==="chosen"?n.chosen:l.length>0?n.byPhenomenon.replace("{phenomenon}",l.join(" + ")):n.noPhenomenon,e.append(d);const r=this.input?.choose;if(!r||a.length===0)return;const h=document.createElement("span");h.className="choose";const c=document.createElement("button");c.type="button",c.className="link",c.textContent=n.choose;const m=document.createElement("div");m.popover="auto";const f=a.map(g=>{const x=document.createElement("label"),v=document.createElement("input");return v.type="checkbox",v.value=g.id,v.checked=i.readings.includes(g.id),x.append(v," ",g.label),m.append(x),v}),p=document.createElement("div");p.className="actions";const u=document.createElement("button");if(u.type="button",u.textContent=n.keepChoice,u.addEventListener("click",()=>{m.hidePopover(),r(t.id,f.filter(g=>g.checked).map(g=>g.value))}),p.append(u),t.readings!==void 0){const g=document.createElement("button");g.type="button",g.textContent=n.automatic,g.addEventListener("click",()=>{m.hidePopover(),r(t.id,void 0)}),p.append(g)}m.append(p),c.addEventListener("click",()=>m.togglePopover()),h.append(c,m),e.append(h)}scoreCell(e,t,i){const a=e.insertCell();if(a.className="number",!t)return a.textContent="–",a;const s=new Intl.NumberFormat(this.language,{minimumFractionDigits:2,maximumFractionDigits:2}),[n,o]=t.envelope;return a.textContent=n===o&&n===t.preferred?s.format(t.preferred):i.hypotheses.score.replace("{preferred}",s.format(t.preferred)).replace("{low}",s.format(n)).replace("{high}",s.format(o)),a}standingOf(e,t){const i=t.hypotheses,a=[e.admissible?i.admissible:i.notAdmissible];return e.dominant&&a.push(i.dominant),e.milestone&&a.push(i[e.milestone]),a.join(", ")}titleOf(e){return this.said.read(e.title)??e.id}heading(e){const t=document.createElement("h4");return t.textContent=e,t}paragraph(e,t){const i=document.createElement("p");return i.className=t,i.textContent=e,i}scrolling(e){const t=document.createElement("div");return t.className="scroll",t.append(e),t}}class T 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=`
|
|
63
|
+
:host { display: inline-block; position: relative; }
|
|
64
|
+
:host([hidden]) { display: none; }
|
|
65
|
+
/* 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. */
|
|
66
|
+
button.open { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
|
|
67
|
+
.menu { min-width: 16em; max-width: 22em; padding: 4px; border: 1px solid var(--line, #ccc); border-radius: 10px; background: var(--ground, Canvas);
|
|
68
|
+
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); }
|
|
69
|
+
.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; }
|
|
70
|
+
.menu button:is(:hover, :focus-visible) { background: color-mix(in srgb, currentColor 9%, transparent); }
|
|
71
|
+
.menu strong { display: block; font-weight: 600; }
|
|
72
|
+
.menu small { display: block; opacity: .7; }
|
|
73
|
+
.status { padding: 6px 10px; opacity: .8; }
|
|
74
|
+
.option { display: flex; gap: 8px; align-items: flex-start; padding: 6px 10px; border-top: 1px solid var(--line, #ddd); margin-top: 4px; cursor: pointer; }
|
|
75
|
+
.option input { margin: 2px 0 0; }
|
|
76
|
+
${O.css(".menu")}
|
|
77
|
+
.menu:popover-open { position-area: bottom span-left; margin: .35em 0 0; }
|
|
78
|
+
`;source;messages;language="en";preferences=["en"];status;withPictures;static register(){customElements.get(T.TAG)||customElements.define(T.TAG,T)}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.messages||this.loadLocale()}async loadLocale(){this.preferences=z.preferencesFor(this),this.language=D([...this.preferences],G),this.messages=await V.load(this.language),this.draw()}draw(){const e=this.messages,t=document.createElement("style");t.textContent=T.CSS;const i=document.createElement("button");i.type="button",i.className="open",i.setAttribute("part","button"),i.title=e.hint,i.setAttribute("aria-label",e.hint),i.setAttribute("aria-haspopup","menu"),i.innerHTML=T.ICON,this.getAttribute("variant")==="pill"&&i.append(Object.assign(document.createElement("span"),{textContent:e.button}));const a=document.createElement("div");a.className="menu",a.setAttribute("role","menu"),O.attach(i,a);const s=[["html",e.html,e.htmlHint],["print",e.print,e.printHint],["json",e.json,e.jsonHint],["csv",e.csv,e.csvHint]];a.append(...s.map(([d,l,r])=>{const h=document.createElement("button");return h.type="button",h.setAttribute("role","menuitem"),h.append(Object.assign(document.createElement("strong"),{textContent:l}),Object.assign(document.createElement("small"),{textContent:r})),h.addEventListener("click",()=>void this.export(d,a)),h}));const n=document.createElement("label");n.className="option",this.withPictures=Object.assign(document.createElement("input"),{type:"checkbox"});const o=document.createElement("span");o.append(Object.assign(document.createElement("strong"),{textContent:e.pictures}),Object.assign(document.createElement("small"),{textContent:e.picturesHint})),n.append(this.withPictures,o),a.append(n),this.status=Object.assign(document.createElement("p"),{className:"status",hidden:!0}),this.status.setAttribute("role","status"),a.append(this.status),i.addEventListener("click",()=>O.show(a,a.hidden)),this.shadowRoot.replaceChildren(t,i,a)}async export(e,t){const i=this.messages;if(this.source){this.status.textContent=i.working,this.status.hidden=!1;try{const[{CaseReportExport:a},s]=await Promise.all([H(()=>import("./CaseReportExport-Dui5KDc5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),this.source()]);await a.make(e,s,this.language,this.preferences,this.withPictures?.checked??!1,(n,o)=>{this.status.textContent=i.drawing.replace("{done}",String(n)).replace("{total}",String(o))}),this.status.hidden=!0,O.show(t,!1)}catch{this.status.textContent=i.failed}}}}const Y="interviewchange",Q="interviewseek",J="questionnairefeed",Z="questionnairesend";class S{constructor(e,t,i=t,a,s){this.list=e,this.choose=t,this.follow=i,this.toggle=a,this.fold=s}static CSS=`
|
|
79
|
+
:host {
|
|
80
|
+
--tl-ink: currentColor;
|
|
81
|
+
--tl-ink-dim: color-mix(in srgb, currentColor 80%, transparent);
|
|
82
|
+
--tl-ink-faint: color-mix(in srgb, currentColor 65%, transparent);
|
|
83
|
+
--tl-line: color-mix(in srgb, currentColor 18%, transparent);
|
|
84
|
+
--tl-ground: transparent;
|
|
85
|
+
/* 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
|
|
86
|
+
grey icon simply did not show. The Canvas system colour is the page's own, so this follows light and dark by itself. */
|
|
87
|
+
--tl-disc: var(--rr0-ground, Canvas);
|
|
88
|
+
--tl-hover: color-mix(in srgb, currentColor 5%, transparent);
|
|
89
|
+
--tl-sky: var(--rr0-sky, #7fd4ff);
|
|
90
|
+
--tl-glow: var(--rr0-glow, #e8b84b);
|
|
91
|
+
--tl-sans: var(--rr0-sans, system-ui, sans-serif);
|
|
92
|
+
}
|
|
93
|
+
.event-card, .kind-pill { --kind: var(--tl-glow); --kind-bg: color-mix(in srgb, var(--kind) 16%, transparent); }
|
|
94
|
+
:is(.event-card, .kind-pill)[data-kind="interview"] { --kind: var(--tl-sky); }
|
|
95
|
+
:is(.event-card, .kind-pill)[data-kind="reading"] { --kind: var(--tl-ink-faint); }
|
|
96
|
+
/* 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
|
|
97
|
+
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,
|
|
98
|
+
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
|
|
99
|
+
wraps. */
|
|
100
|
+
/* 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
|
|
101
|
+
editor's and the reader's two columns), not for the whole component's. */
|
|
102
|
+
.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; }
|
|
103
|
+
.event-card[hidden] { display: none; }
|
|
104
|
+
.event-card { --dot-y: 50%; position: relative; border: 1px solid var(--tl-line); border-radius: 10px; background: var(--tl-ground); color: var(--tl-ink); }
|
|
105
|
+
.event-card::after { content: ""; position: absolute; left: calc(var(--rail) - 24px - 1px); top: calc(-1px - var(--gap) / 2);
|
|
106
|
+
bottom: calc(-1px - var(--gap) / 2); width: 1px; transform: translateX(-50%); background: var(--tl-line); pointer-events: none; }
|
|
107
|
+
.event-card:first-child::after { top: calc(var(--dot-y) - 1px); }
|
|
108
|
+
.event-card:last-child::after { bottom: calc(100% - var(--dot-y) - 1px); }
|
|
109
|
+
.event-card:only-child::after { display: none; }
|
|
110
|
+
/* 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. */
|
|
111
|
+
.event-mark { position: absolute; z-index: 1; left: calc(var(--rail) - 24px - 1px); top: calc(var(--dot-y) - 1px); display: grid; place-items: center;
|
|
112
|
+
width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--tl-disc); color: var(--kind);
|
|
113
|
+
pointer-events: none; }
|
|
114
|
+
.event-mark svg { width: 14px; height: 14px; }
|
|
115
|
+
/* 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
|
|
116
|
+
alone. Above the title's hit area, which runs over the rail. */
|
|
117
|
+
button.event-mark { z-index: 2; padding: 0; border: 1px solid var(--tl-line); font: inherit; cursor: pointer; pointer-events: auto; }
|
|
118
|
+
button.event-mark:hover { border-color: var(--kind); }
|
|
119
|
+
button.event-mark:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 1px; }
|
|
120
|
+
/* 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. */
|
|
121
|
+
.event-card[data-open] > button.event-mark { border-color: var(--kind); box-shadow: 0 0 0 1px var(--kind); color: var(--tl-ink); }
|
|
122
|
+
/* 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
|
|
123
|
+
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)
|
|
124
|
+
down to this mark, and on to the next reading's when there is one. */
|
|
125
|
+
.event-card[data-nested] { --nest: 28px; --branch: calc(-1px - var(--nest) / 2 - 3px); margin-left: var(--nest); }
|
|
126
|
+
.event-card[data-nested]::after { left: calc(var(--rail) - 24px - 1px - var(--nest)); }
|
|
127
|
+
.event-card[data-nested] > .event-mark { left: var(--branch); }
|
|
128
|
+
.event-card[data-nested]::before { content: ""; position: absolute; left: var(--branch); top: calc(-1px - var(--gap));
|
|
129
|
+
bottom: calc(100% - var(--dot-y) - 1px); width: 1px; transform: translateX(-50%); background: var(--tl-line); pointer-events: none; }
|
|
130
|
+
.event-card[data-nested]:has(+ .event-card[data-nested])::before { bottom: -1px; }
|
|
131
|
+
.event-card[data-nested] .event-open::after { left: calc(-24px - 1px - var(--nest)); }
|
|
132
|
+
/* A column made narrower than its cards (dicté 2026-11-21 : « afficher les icônes seulement »): the marks alone on the rail, one under
|
|
133
|
+
the other, each opening its event by the title's hit area, which still covers it; the title said by its tooltip (see card). */
|
|
134
|
+
@container (max-width: 3rem) {
|
|
135
|
+
.event-list { gap: 6px; }
|
|
136
|
+
.event-card { min-height: 26px; border-color: transparent; background: none; overflow: visible; }
|
|
137
|
+
.event-card[data-nested] { margin-left: 0; }
|
|
138
|
+
.event-card[data-nested]::before { display: none; }
|
|
139
|
+
.event-card[data-nested]::after { left: calc(var(--rail) - 24px - 1px); }
|
|
140
|
+
.event-card[data-nested] > .event-mark { left: calc(var(--rail) - 24px - 1px); }
|
|
141
|
+
.event-card > :not(.event-body, .event-mark), .event-body > :not(.event-main), .event-main > :not(.event-open) { display: none !important; }
|
|
142
|
+
.event-body, .event-main { display: block !important; padding: 0 !important; margin: 0 !important; }
|
|
143
|
+
.event-open { display: block; height: 26px; font-size: 0 !important; color: transparent; }
|
|
144
|
+
.event-card[data-nested] .event-open::after { left: calc(-24px - 1px); }
|
|
145
|
+
}
|
|
146
|
+
/* What folds an observation's readings away or unfolds them: above the title's hit area, at the card's end. */
|
|
147
|
+
.event-fold { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; justify-self: end; grid-column: -2 / -1;
|
|
148
|
+
grid-row: 1; padding: 2px 8px; border: 1px solid var(--tl-line); border-radius: 999px; background: none; color: var(--tl-ink-dim);
|
|
149
|
+
font: 600 12px/1.5 var(--tl-sans); cursor: pointer; }
|
|
150
|
+
.event-fold:hover { color: var(--tl-ink); border-color: var(--tl-ink-faint); }
|
|
151
|
+
.event-fold:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 2px; }
|
|
152
|
+
.event-fold svg { width: 12px; height: 12px; transition: transform .15s; }
|
|
153
|
+
.event-fold[aria-expanded="false"] svg { transform: rotate(-90deg); }
|
|
154
|
+
.event-main:has(+ .event-fold) { padding-right: 64px; }
|
|
155
|
+
/* 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
|
|
156
|
+
reference, below it has the whole of it. */
|
|
157
|
+
.event-body { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); grid-template-areas: "pill main" "links links";
|
|
158
|
+
align-items: center; gap: 4px 12px; min-width: 0; padding: 12px 14px; }
|
|
159
|
+
.kind-pill { grid-area: pill; justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--kind-bg); color: var(--tl-ink);
|
|
160
|
+
font: 700 12px/1.5 var(--tl-sans); white-space: nowrap; }
|
|
161
|
+
.event-main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
|
162
|
+
/* 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
|
|
163
|
+
whole height of the card: the mark there is the card's too (see .event-list's padding, which the rail stands in). */
|
|
164
|
+
.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; }
|
|
165
|
+
.event-open::after { content: ""; position: absolute; inset: 0 0 0 calc(-24px - 1px); border-radius: 0 10px 10px 0; }
|
|
166
|
+
.event-open:hover:not(:disabled) { background: none; }
|
|
167
|
+
.event-open:focus-visible { outline: none; }
|
|
168
|
+
.event-card:has(.event-open:hover) { background: var(--tl-hover); }
|
|
169
|
+
.event-card:has(.event-open:focus-visible) { outline: 2px solid var(--tl-sky); outline-offset: 2px; }
|
|
170
|
+
.event-meta { font-size: 13px; color: var(--tl-ink-faint); overflow-wrap: anywhere; }
|
|
171
|
+
.event-links { grid-area: links; font-size: 13px; color: var(--tl-ink-dim); }
|
|
172
|
+
.event-links:empty { display: none; }
|
|
173
|
+
/* Open, it is lit: the card and what it opened below are the same thing seen twice. */
|
|
174
|
+
.event-card[data-open] { border-color: var(--kind); background: color-mix(in srgb, var(--kind) 8%, transparent); }
|
|
175
|
+
/* 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
|
|
176
|
+
card: otherwise the card swallows the click and opens itself, which is exactly not where the renvoi leads. */
|
|
177
|
+
.event-ref { position: relative; z-index: 1; padding: 0; border: 0; background: none; font: inherit; color: var(--tl-sky);
|
|
178
|
+
text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
|
|
179
|
+
.event-ref:hover { color: var(--tl-ink); }
|
|
180
|
+
.event-ref:focus-visible { outline: 2px solid var(--tl-sky); outline-offset: 2px; border-radius: 3px; }
|
|
181
|
+
/* The card a renvoi is pointing at, while it is pointed at. */
|
|
182
|
+
.event-card.event-aimed { outline: 2px solid var(--tl-sky); outline-offset: 2px; background: var(--tl-hover); }
|
|
183
|
+
@container (max-width: 640px) {
|
|
184
|
+
.event-card { --dot-y: 24px; }
|
|
185
|
+
.event-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pill" "main" "links"; gap: 6px 10px; }
|
|
186
|
+
/* The fold under what the card says: on the top line it would sit under an editor's tools. */
|
|
187
|
+
.event-fold { grid-row: auto; justify-self: start; }
|
|
188
|
+
.event-main:has(+ .event-fold) { padding-right: 0; }
|
|
189
|
+
}
|
|
190
|
+
`;static EDITOR_TOKENS=`
|
|
191
|
+
--tl-ink: var(--ink);
|
|
192
|
+
--tl-ink-dim: var(--ink-dim);
|
|
193
|
+
--tl-ink-faint: var(--ink-faint);
|
|
194
|
+
--tl-line: var(--line-strong);
|
|
195
|
+
--tl-ground: var(--ground);
|
|
196
|
+
--tl-disc: var(--ground-raised);
|
|
197
|
+
--tl-hover: var(--ground-sunken);
|
|
198
|
+
--tl-sky: var(--sky);
|
|
199
|
+
--tl-glow: var(--glow-solid);
|
|
200
|
+
--tl-sans: var(--sans);
|
|
201
|
+
`;static MARKS={observation:M.WITNESS,reading:M.SUMMARY,interview:M.INTERVIEW};static inTime(e,t){const i=s=>{const n=t.when(s);return n!==""||t.kind(s)!=="reading"?n:t.read(s).map(o=>t.when(o)).find(o=>o!=="")??""},a=s=>t.kind(s)==="reading"?1:0;return e.map((s,n)=>({item:s,index:n,when:i(s)})).sort((s,n)=>s.when.localeCompare(n.when)||a(s.item)-a(n.item)||s.index-n.index).map(({item:s,index:n})=>({item:s,index:n}))}static grouped(e,t){const i=new Set(e.filter(({item:n})=>t.kind(n)==="observation").map(({item:n})=>n)),a=new Map;for(const{item:n}of e){if(t.kind(n)!=="reading")continue;const o=t.read(n).find(d=>i.has(d));o!==void 0&&a.set(n,o)}const s=[];for(const n of e)if(!a.has(n.item)&&(s.push(n),!!i.has(n.item)))for(const o of e)a.get(o.item)===n.item&&s.push({...o,under:n.item});return s}static GROUPING_KEY="rr0-case-group-readings";static groupingRemembered(){try{return localStorage.getItem(S.GROUPING_KEY)==="1"}catch{return!1}}static rememberGrouping(e){try{localStorage.setItem(S.GROUPING_KEY,e?"1":"0")}catch{}}static kindLabel(e,t){return{observation:t.kindObservation,reading:t.kindReading,interview:t.kindInterview}[e]}query="";render(e,t,i){this.list.replaceChildren(...e.map(a=>{const s=this.card(a,t);return i?.(a,s),s.card})),this.applySearch()}search(e){return this.query=e,this.applySearch()}applySearch(){const e=S.plain(this.query).split(/\s+/).filter(i=>i!=="");let t=0;for(const i of this.list.querySelectorAll(":scope > .event-card")){const a=S.plain(`${i.textContent??""} ${i.querySelector(".event-open")?.title??""}`),s=e.every(n=>a.includes(n));i.hidden=!s,s&&t++}return t}static plain(e){return e.normalize("NFD").replace(/\p{M}/gu,"").toLowerCase()}card(e,t){const i=document.createElement("li");i.className="event-card",i.dataset.kind=e.kind,i.dataset.at=String(e.at),e.open&&(i.dataset.open=""),e.nested&&(i.dataset.nested="");const a=document.createElement("span");a.className="kind-pill",a.dataset.kind=e.kind,a.textContent=S.kindLabel(e.kind,t);const s=document.createElement("div");s.className="event-main";const n=document.createElement("button");n.type="button",n.className="event-open",n.textContent=e.title,n.title=e.title||t.openEvent,n.addEventListener("click",()=>this.choose(e.at));const o=document.createElement("span");o.className="event-meta",o.textContent=e.meta,s.append(n,o);const d=document.createElement("span");d.className="event-links",d.append(...this.said(e,t));const l=document.createElement("div");if(l.className="event-body",l.append(a,s),e.readings&&e.readings.count>0&&this.fold){const h=document.createElement("button");h.type="button",h.className="event-fold",h.setAttribute("aria-expanded",String(!e.readings.folded)),h.title=(e.readings.folded?t.unfoldReadings:t.foldReadings)??"",h.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>',h.append(String(e.readings.count)),h.addEventListener("click",()=>this.fold(e.at)),l.append(h)}l.append(d);const r=document.createElement(this.toggle?"button":"span");return r.className="event-mark",r.innerHTML=S.MARKS[e.kind],r instanceof HTMLButtonElement?(r.type="button",r.title=t.toggleEvent??t.openEvent,r.setAttribute("aria-label",`${r.title} — ${e.title}`),r.setAttribute("aria-pressed",String(e.open===!0)),r.addEventListener("click",()=>this.toggle(e.at))):r.setAttribute("aria-hidden","true"),i.append(l,r),{card:i,body:l,links:d}}said(e,t){const i=[],a=e.links?.to??[];if(e.links&&a.length>0){const s=a.map(n=>this.renvoi(n.at,n.title,t));i.push(`${e.links.heading} `,...s.flatMap((n,o)=>o===0?[n]:[document.createTextNode(o===s.length-1?` ${t.linkAnd} `:", "),n]))}return e.by&&i.push(`${i.length>0?" ":""}${t.byAuthor} ${e.by}`),i}renvoi(e,t,i){const a=document.createElement("a");a.href="#",a.className="event-ref",a.textContent=t,a.title=i.openEvent,a.addEventListener("click",n=>{n.preventDefault(),this.follow(e)});const s=n=>this.list.querySelectorAll(`.event-card[data-at="${e}"]`).forEach(o=>o.classList.toggle("event-aimed",n));for(const[n,o]of[["mouseenter",!0],["mouseleave",!1],["focus",!0],["blur",!1]])a.addEventListener(n,()=>s(o));return a}}class R{constructor(e,t,i,a,s=R.PROPERTY,n=R.MIN_PX){this.grip=e,this.host=t,this.column=i,this.key=a,this.property=s,this.minPx=n;try{const o=localStorage.getItem(a);o&&/^\d+px$/.test(o)&&t.style.setProperty(s,o)}catch{}e.setAttribute("role","separator"),e.setAttribute("aria-orientation","vertical"),e.tabIndex=0,e.addEventListener("pointerdown",o=>{o.preventDefault();const d=o.clientX,l=this.column().getBoundingClientRect().width;e.setPointerCapture?.(o.pointerId),e.classList.add("dragging");const r=c=>this.set(l+c.clientX-d),h=()=>{e.classList.remove("dragging"),e.removeEventListener("pointermove",r),e.removeEventListener("pointerup",h),e.removeEventListener("pointercancel",h)};e.addEventListener("pointermove",r),e.addEventListener("pointerup",h),e.addEventListener("pointercancel",h)}),e.addEventListener("keydown",o=>{o.key!=="ArrowLeft"&&o.key!=="ArrowRight"||(o.preventDefault(),this.set(this.column().getBoundingClientRect().width+(o.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=`
|
|
202
|
+
.column-resize { display: none; position: relative; justify-self: end; align-self: stretch; width: 12px; z-index: 3; cursor: col-resize;
|
|
203
|
+
touch-action: none; }
|
|
204
|
+
.column-resize::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; border-radius: 2px;
|
|
205
|
+
background: var(--line-strong, rgba(127, 127, 127, .5)); opacity: 0; transition: opacity .15s ease; }
|
|
206
|
+
.column-resize:is(:hover, :focus-visible, .dragging)::after { opacity: 1; }
|
|
207
|
+
.column-resize:focus-visible { outline: none; }
|
|
208
|
+
`;static MIN_PX=200;static OTHER_MIN_PX=320;label(e){this.grip.title=e,this.grip.setAttribute("aria-label",e)}set(e){const t=this.host;if(e===void 0)t.style.removeProperty(this.property);else{const i=Math.max(this.minPx,t.getBoundingClientRect().width-R.OTHER_MIN_PX);t.style.setProperty(this.property,`${Math.round(Math.min(i,Math.max(this.minPx,e)))}px`)}try{e===void 0?localStorage.removeItem(this.key):localStorage.setItem(this.key,t.style.getPropertyValue(this.property))}catch{}}}export{R as C,w as H,Q as I,Z as Q,C as R,S as a,T as b,Y as c,J as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={consentHeading:"Run the code of these modules?",consentText:"These modules' code would come from the sites below, not from this one. That code would run in this page, with all it can do. Run it only if you trust them; without it, the modules bring what their manifests state (questionnaires, models, data), nothing that computes. Your answer is kept for each site.",consentRun:"Run their code",consentWithout:"Without their code"};export{e as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={consentHeading:"¿Ejecutar el código de estos módulos?",consentText:"El código de estos módulos vendría de los sitios de abajo, no de este. Ese código se ejecutaría en esta página, con todo lo que puede hacer. Ejecútelo solo si confía en ellos; sin él, los módulos aportan lo que dicen sus manifiestos (cuestionarios, modelos, datos), nada que calcule. Su respuesta se guarda para cada sitio.",consentRun:"Ejecutar su código",consentWithout:"Sin su código"};export{e as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={consentHeading:"Exécuter le code de ces modules ?",consentText:"Le code de ces modules viendrait des sites ci-dessous, pas de celui-ci. Ce code s'exécuterait dans cette page, avec tout ce qu'elle peut faire. Ne l'exécutez que si vous leur faites confiance ; sans lui, les modules apportent ce que disent leurs manifestes (questionnaires, modèles, données), rien qui calcule. Votre réponse est gardée pour chaque site.",consentRun:"Exécuter leur code",consentWithout:"Sans leur code"};export{e as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={consentHeading:"Eseguire il codice di questi moduli?",consentText:"Il codice di questi moduli verrebbe dai siti qui sotto, non da questo. Quel codice verrebbe eseguito in questa pagina, con tutto ciò che può fare. Lo esegua solo se si fida di loro; senza, i moduli portano ciò che dicono i loro manifest (questionari, modelli, dati), niente che calcoli. La sua risposta è conservata per ogni sito.",consentRun:"Eseguire il loro codice",consentWithout:"Senza il loro codice"};export{e as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aa as A,j as F,W as D,r as M,d as R,F as b,M as E,C as P,S}from"./three.module-CbaHqYFq.js";import{b1 as U,b2 as k}from"./ShareDialogElement-
|
|
1
|
+
import{aa as A,j as F,W as D,r as M,d as R,F as b,M as E,C as P,S}from"./three.module-CbaHqYFq.js";import{b1 as U,b2 as k}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.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";class w{target;wideCamera=new A;materials=new Map;draw(t){const{renderer:s,camera:a,equidistant:r}=t,i=s.getDrawingBufferSize(new F),o=i.x,n=i.y,e=o/n;if(r&&!U.supports(a.fov,e))throw new Error(`A field of ${a.fov}° is drawn through a cube, which the control passes do not follow yet: export through a narrower field.`);const c=this.sourceCamera(a,r?r.sourceFovDeg(a.fov,e):a.fov),d=this.usableTarget(o,n),l=this.drawDistance(t,c,d),u=this.drawPhenomenon(t,c,d),f=Math.tan(c.fov*Math.PI/360),p=new Float32Array(o*n),m=new Uint8Array(o*n);for(let v=0;v<n;v++)for(let g=0;g<o;g++){const h=this.sourcePixel(g,v,o,n,a.fov,e,f,r);if(h<0)continue;const x=v*o+g;p[x]=l[h*4];const y=u[h*4],C=u[h*4+1],T=u[h*4+2],_=u[h*4+3];m[x]=Math.max(y,C,T,_)>w.LIGHT_THRESHOLD?255:0}return{width:o,height:n,distanceM:p,phenomenon:m}}dispose(){this.target?.dispose();for(const t of this.materials.values())t.dispose();this.materials.clear()}static LIGHT_THRESHOLD=1e-6;sourcePixel(t,s,a,r,i,o,n,e){if(!e)return(r-1-s)*a+t;const c=(t+.5)/a*2-1,d=1-(s+.5)/r*2,l=e.directionFor(c,d,i);if(l.z>=0)return-1;const u=l.x/-l.z/(n*o),f=l.y/-l.z/n,p=Math.floor((u+1)/2*a),m=Math.floor((f+1)/2*r);return p<0||p>=a||m<0||m>=r?-1:m*a+p}sourceCamera(t,s){const a=this.wideCamera.copy(t);return a.fov=s,a.clearViewOffset(),a.updateProjectionMatrix(),a.updateMatrixWorld(),a}usableTarget(t,s){return this.target?(this.target.width!==t||this.target.height!==s)&&this.target.setSize(t,s):this.target=new D(t,s,{type:b,format:R,minFilter:M,magFilter:M,depthBuffer:!0}),this.target}drawDistance(t,s,a){const{renderer:r,scene:i}=t,o=[],n=[];for(const e of t.sky)e.visible&&(e.visible=!1,o.push(e));i.traverseVisible(e=>{if(e instanceof E){if(t.isSolid(e)){n.push({mesh:e,material:e.material}),e.material=Array.isArray(e.material)?e.material.map(c=>this.distanceMaterial(c)):this.distanceMaterial(e.material);return}}else if(!e.isPoints&&!e.isLine&&!e.isSprite)return;o.push(e)});for(const e of o)e.visible=!1;try{return this.drawInto(t,a,()=>r.render(i,s))}finally{for(const e of o)e.visible=!0;for(const{mesh:e,material:c}of n)e.material=c}}drawPhenomenon(t,s,a){return this.drawInto(t,a,()=>t.drawPhenomena(s))}drawInto(t,s,a){const{renderer:r,scene:i}=t,o=r.getRenderTarget(),n=r.autoClear,e=r.shadowMap.autoUpdate,c=i.fog,d=i.background,l=r.getClearAlpha(),u=r.getClearColor(new P);i.fog=null,i.background=null,r.shadowMap.autoUpdate=!1,r.setRenderTarget(s),r.setClearColor(0,0),r.clear(!0,!0,!0),r.autoClear=!1;try{a();const f=new Float32Array(s.width*s.height*4);return k.now(r,s,0,0,s.width,s.height,f),f}finally{r.autoClear=n,r.shadowMap.autoUpdate=e,r.setRenderTarget(o),r.setClearColor(u,l),i.fog=c,i.background=d}}distanceMaterial(t){const s=t.alphaTest??0,a=t.map??t.alphaMap??null,r=s>0&&a!==null,i=`${t.side}:${r?`${a.uuid}:${s}`:"-"}`;let o=this.materials.get(i);return o||(o=new S({defines:r?{CUTOUT:"",USE_UV:""}:{},uniforms:{cutoutMap:{value:a},cutoutAlpha:{value:s}},vertexShader:w.VERTEX,fragmentShader:w.FRAGMENT,side:t.side}),this.materials.set(i,o)),o}static VERTEX=`
|
|
2
2
|
#include <common>
|
|
3
3
|
#include <uv_pars_vertex>
|
|
4
4
|
#include <batching_pars_vertex>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{an as h}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.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=[{id:"when",paths:["time"]},{id:"where",paths:["place.locations.*.lat","place.locations.*.lng","observerTrack.keyframes.*.pose.lat","observerTrack.keyframes.*.pose.lng"]},{id:"facing",paths:["observerTrack.keyframes.*.pose.headingDeg"]},{id:"apparent-size",paths:["timeline.keyframes.*.shapes.*.shape.angular.widthDeg","timeline.keyframes.*.shapes.*.shape.angular.heightDeg"]},{id:"sky-position",paths:["timeline.keyframes.*.shapes.*.shape.aim.azimuthDeg","timeline.keyframes.*.shapes.*.shape.aim.altitudeDeg"]},{id:"how-long",paths:["durationSeconds","endTime"]},{id:"appearance",paths:["timeline.keyframes.*.shapes.*.shape.kind","timeline.keyframes.*.shapes.*.shape.title","timeline.keyframes.*.shapes.*.shape.color","timeline.keyframes.*.shapes.*.shape.brightness"]},{id:"movement",paths:["timeline.keyframes.1.t","observerTrack.keyframes.1.t"]},{id:"sound",paths:["soundTrack.keyframes.*.sound.kind"]},{id:"conditions",paths:["weatherTrack.keyframes.*.weather.*","weather.*"]}],l=["fitted","assumed","derived","stated","measured","established"];class p{about="observer";async assess(t){const i=h(t,!0),s=m.map(e=>p.answer(e,i,t));return{score:s.filter(e=>e.basis==="stated").length/s.length,criteria:s}}static answer(t,i,s){const e=t.paths.flatMap(a=>p.resolve(a,i));if(e.length===0)return{id:t.id,paths:[]};const r=e.map(a=>p.basisAt(a,s)??"stated");return{id:t.id,basis:l.find(a=>r.includes(a)),paths:e}}static basisAt(t,i){const s=t.split(".");for(let e=s.length;e>0;e--){const r=i.provenance.at(s.slice(0,e).join("."))?.basis;if(r)return r}}static resolve(t,i){let s=[{path:[],value:i}];for(const e of t.split("."))s=s.flatMap(({path:r,value:a})=>{if(typeof a!="object"||a===null)return[];if(e!=="*"){const n=a[e];return n===void 0?[]:[{path:[...r,e],value:n}]}return Object.entries(a).filter(([,n])=>n!==void 0).map(([n,o])=>({path:[...r,n],value:o}))});return s.filter(({value:e})=>e!==null&&e!==""&&!(Array.isArray(e)&&e.length===0)).map(({path:e})=>e.join("."))}}export{p as CoverageAssessor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as g,_ as h,
|
|
1
|
+
import{M as g,_ as h,q as x,t as v}from"./rr0-ufoathome.mjs";import{b as P,P as _,I as w}from"./SaidPosition-OJEYhVKN.js";import{S as T}from"./SkyEventEditorStyle-CvY_AhbI.js";import{D as p}from"./DroneParameters-CfTAaLCT.js";import{P as c,a as f,E as O}from"./ParameterForm-XbqxCLRn.js";import{T as I}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./DroneFlight-CGNIh9XS.js";import"./Decor-Dn-cvniW.js";const b=g.catalog({en:()=>h(()=>import("./DroneParameterTexts_en-sL1dR2RG.js"),[],import.meta.url).then(o=>o.droneParameterTexts_en),fr:()=>h(()=>import("./DroneParameterTexts_fr-B8Ym7Yz6.js"),[],import.meta.url).then(o=>o.droneParameterTexts_fr),es:()=>h(()=>import("./DroneParameterTexts_es-Bg8_8XVE.js"),[],import.meta.url).then(o=>o.droneParameterTexts_es),it:()=>h(()=>import("./DroneParameterTexts_it-DfvWjvoc.js"),[],import.meta.url).then(o=>o.droneParameterTexts_it)}),y=g.catalog({en:()=>h(()=>import("./DroneEditorMessages_en-BViHK30c.js"),[],import.meta.url).then(o=>o.droneEditorMessages_en),fr:()=>h(()=>import("./DroneEditorMessages_fr-CvV0RyOT.js"),[],import.meta.url).then(o=>o.droneEditorMessages_fr),es:()=>h(()=>import("./DroneEditorMessages_es-D6bhIOAa.js"),[],import.meta.url).then(o=>o.droneEditorMessages_es),it:()=>h(()=>import("./DroneEditorMessages_it-CYi-jmVN.js"),[],import.meta.url).then(o=>o.droneEditorMessages_it)});class d{constructor(t,i,e){this.container=t,this.host=i,T.attach(t,"drone-editor-part",d.STYLE),this.language=e,P.of("drones")||p.publish(),this.ready=this.setLanguage(e)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;pointForm;pointIndex=0;language;shown=[];static STYLE='.drone-editor-part { flex-basis: 100%; min-width: 0; } .drone-editor-part #drone-list, .drone-editor-part #drone-timeline { flex-basis: 100%; min-width: 0; } .drone-editor-part #drone-timeline { padding: 4px 0; } .drone-editor-part #drone-path > .icon-btn { align-self: flex-end; } .drone-editor-part .launch-editor, .drone-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .drone-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .drone-editor-part [hidden] { display: none !important; } .drone-editor-part select { min-width: 0; width: 100%; } .drone-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .drone-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .drone-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; } .drone-editor-part input, .drone-editor-part select { max-width: 100%; box-sizing: border-box; } .drone-editor-part input[type="text"] { width: 12em; } .drone-editor-part label { min-width: 0; max-width: 100%; } .drone-editor-part input.parameter-derived::placeholder { opacity: .65; } .drone-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; }';static PATH_COLOR="#3b82c4";async setLanguage(t){const i=++this.languageToken;this.language=t;const[e,s]=await Promise.all([y.load(t),b.load(t)]);i===this.languageToken&&(this.messages=e,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.flights;this.shown=[...t],t.some(s=>s.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const i=this.current;if(this.element("drone-fields").hidden=i===void 0,!i)return;const e=this.element("drone-each");e.hidden=i.explainsEach===void 0,e.textContent=this.messages.explainsEachNote.replace("{n}",String(i.explainsEach?.length??0)),this.form??=new c(this.element("drone-parameters"),this.language,"drones.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(p.SET),new f(()=>this.current,s=>this.editFlight(n=>s(n)),()=>({shapes:this.host.shapes().map(s=>({value:s.id,label:s.label}))}),this.host.positionPlace?.()),()=>this.written()),this.syncPoint(!0)}refresh(){if(!this.messages)return;this.syncAddState();const t=this.flights;if(t.length===this.shown.length&&t.every((i,e)=>i.id===this.shown[e].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.frontOfObserver()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.flights.find(t=>t.id===this.currentId)}resolved(t){return _.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.pointForm=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
2
|
<p class="launch-intro">${t.intro}</p>
|
|
3
3
|
<div id="drone-list"></div>
|
|
4
4
|
<div id="drone-fields" class="launch-fields">
|
package/dist-embed-ufoathome/{Flightradar24Provider-DxTfswSh.js → Flightradar24Provider-TCNh_VXc.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b6 as I,aX as l,aW as m}from"./ShareDialogElement-
|
|
1
|
+
import{b6 as I,aX as l,aW as m}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.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";class T extends Error{constructor(t){super(t),this.problem=t}}class e{citation=I;static FIRST_MS=Date.UTC(2016,4,11);static DEFAULT_RADIUS_KM=100;static RINGS_KM=[25,50];static SNAPSHOT_LIMIT=60;static SMALLEST_PLAN_RESULTS=20;static MAX_TRACED=8;static CREDITS_PER_SNAPSHOT_FLIGHT=8;static CREDITS_PER_TRACK=40;static CREDITS_FOR_NOTHING=1;static MAX_CREDITS_PER_PAGE=5e3;static WORST_CASE_CREDITS=(e.MAX_TRACED-1)*e.RINGS_KM.length*e.CREDITS_PER_SNAPSHOT_FLIGHT+e.SNAPSHOT_LIMIT*e.CREDITS_PER_SNAPSHOT_FLIGHT+e.MAX_TRACED*e.CREDITS_PER_TRACK;static API="https://fr24api.flightradar24.com/api";static IN_THE_AIR_FT="1-60000";static KM_PER_DEG=111.32;token;fetchImpl;settleMs;requestsPerMinute;snapshots=[];tracks=new Map;descriptions=new Map;requestTimes=[];tokenOfMemory;latestQuestion=0;creditsSpent=0;constructor(t){this.token=t.token,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.settleMs=t.settleMs??1500,this.requestsPerMinute=t.requestsPerMinute??10}mayCover(t){return t>=e.FIRST_MS&&t<=Date.now()}async between(t,n,i,o=e.DEFAULT_RADIUS_KM){const r=this.token();if(!r)return{status:"failed",problem:"credential"};r!==this.tokenOfMemory&&this.forgetAnswers(r);try{const a=await this.snapshotFor(r,t,n,i,o);if(!a)return{status:"failed"};const s=a.flights.slice(0,e.MAX_TRACED),h=await Promise.all(s.map(c=>this.trackOf(r,c))),p=[];return s.forEach((c,u)=>{const S=h[u].filter(f=>f.t>=n&&f.t<=i&&l.groundDistanceKm(t,f)<=o);S.length>0&&p.push({...e.addressOf(c),points:S})}),{status:"found",tracks:p,creditsSpent:this.creditsSpent,partial:{traced:s.length,seen:a.flights.length,moreSeen:a.flights.length>=e.SMALLEST_PLAN_RESULTS,withinKm:a.withinKm}}}catch(a){return{status:"failed",problem:a instanceof T?a.problem:"network",creditsSpent:this.creditsSpent}}}async describe(t){return this.descriptions.get(m.keyOf(t))}static addressOf(t){const n=t.hex?Number.parseInt(t.hex,16):Number.NaN;return Number.isFinite(n)?{icao:n,nonIcao:!1}:{icao:Number.parseInt(t.fr24_id,16),nonIcao:!0}}static boundsAround(t,n){const i=n/e.KM_PER_DEG,o=Math.min(90,t.lat+i),r=Math.max(-90,t.lat-i),a=Math.cos(Math.max(Math.abs(o),Math.abs(r))*Math.PI/180),s=a<1e-6?180:n/(e.KM_PER_DEG*a),h=Math.max(-180,t.lng-s),p=Math.min(180,t.lng+s);return[o,r,h,p].map(c=>c.toFixed(3)).join(",")}forgetAnswers(t){this.tokenOfMemory=t,this.snapshots.length=0,this.tracks.clear(),this.descriptions.clear()}async snapshotFor(t,n,i,o,r){const a=`${n.lat.toFixed(3)},${n.lng.toFixed(3)},${r}`;for(const p of this.snapshots){const c=await p.catch(()=>{});if(c&&c.place===a&&c.t>=i&&c.t<=o)return c}const s=++this.latestQuestion;if(this.settleMs>0&&await new Promise(p=>setTimeout(p,this.settleMs)),s!==this.latestQuestion)return;if(this.creditsSpent+e.WORST_CASE_CREDITS>e.MAX_CREDITS_PER_PAGE)throw new T("budget");const h=this.askSnapshot(t,n,Math.round((i+o)/2),r,a);return this.snapshots.push(h),h.catch(()=>this.snapshots.splice(this.snapshots.indexOf(h),1)),h}async askSnapshot(t,n,i,o,r){const a=[...e.RINGS_KM.filter(c=>c<o),o];let s=[],h=o;for(const c of a)if(h=c,s=await this.flightsWithin(t,n,i,c),s.length>=e.MAX_TRACED)break;const p=c=>l.groundDistanceKm(n,{lat:c.lat,lng:c.lon});return{t:i,place:r,withinKm:h,flights:[...s].sort((c,u)=>p(c)-p(u))}}async flightsWithin(t,n,i,o){const r=new URLSearchParams({timestamp:String(Math.floor(i/1e3)),bounds:e.boundsAround(n,o),altitude_ranges:e.IN_THE_AIR_FT,limit:String(e.SNAPSHOT_LIMIT)}),s=(await this.get(t,`/historic/flight-positions/full?${r}`)).data??[];this.creditsSpent+=s.length>0?s.length*e.CREDITS_PER_SNAPSHOT_FLIGHT:e.CREDITS_FOR_NOTHING;for(const h of s){const p={type:h.type||void 0,registration:h.reg||void 0};(p.type||p.registration)&&this.descriptions.set(m.keyOf(e.addressOf(h)),p)}return s}trackOf(t,n){let i=this.tracks.get(n.fr24_id);return i||(i=this.get(t,`/flight-tracks?flight_id=${encodeURIComponent(n.fr24_id)}`).then(o=>{const a=(Array.isArray(o)?o:o.data??[]).flatMap(s=>s.tracks??[]);return this.creditsSpent+=a.length>0?e.CREDITS_PER_TRACK:e.CREDITS_FOR_NOTHING,a.filter(s=>s.source?.toUpperCase()!=="ESTIMATED"&&s.alt>0).map(s=>({t:Date.parse(s.timestamp),lat:s.lat,lng:s.lon,altitudeFt:s.alt,groundSpeedKt:s.gspeed,trackDeg:s.track})).sort((s,h)=>s.t-h.t)}),i.catch(()=>this.tracks.delete(n.fr24_id)),this.tracks.set(n.fr24_id,i)),i}async get(t,n){await this.paced();const i=await this.fetchImpl(`${e.API}${n}`,{headers:{Accept:"application/json","Accept-Version":"v1",Authorization:`Bearer ${t}`}});if(!i.ok)throw new T(e.problemOf(i.status));return await i.json()}static problemOf(t){switch(t){case 401:return"credential";case 402:return"credits";case 429:return"rate";case 400:case 403:case 404:return"refused";default:return"network"}}async paced(){for(;;){const t=Date.now();for(;this.requestTimes.length>0&&t-this.requestTimes[0]>=6e4;)this.requestTimes.shift();if(this.requestTimes.length<this.requestsPerMinute){this.requestTimes.push(t);return}await new Promise(n=>setTimeout(n,6e4-(t-this.requestTimes[0])+50))}}}export{e as Flightradar24Provider};
|