@rr0/ufoathome 0.188.1 → 0.189.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-scene/{BirdEditor-C7dHFbA6.js → BirdEditor-BxlHc4L5.js} +1 -1
- package/dist-embed-scene/{BirdFlock-DOjnGqqt.js → BirdFlock-DGC3adr7.js} +1 -1
- package/dist-embed-scene/{LanternEditor-D2mmscWP.js → LanternEditor-CpNWWMyY.js} +1 -1
- package/dist-embed-scene/{ModuleSession-BAeWIbSU.js → ModuleSession-Dd9RVc7I.js} +2 -2
- package/dist-embed-scene/ModuleThree-q18pyqmA.js +1 -0
- package/dist-embed-scene/ReentryEditor-DGLg57vB.js +28 -0
- package/dist-embed-scene/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-scene/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-scene/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-scene/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-scene/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-scene/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-scene/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-scene/SkyLantern-dInLqzN4.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +305 -305
- package/dist-embed-scene/{sightingSchema-Dk010uUD.js → sightingSchema-DjI7FV42.js} +1 -1
- package/dist-embed-sighting/{CaseReportExport-DbGfu7DP.js → CaseReportExport-Dq8QfB_9.js} +1 -1
- package/dist-embed-sighting/{LanternEditor-DIun2igg.js → LanternEditor-C6tHr2lo.js} +1 -1
- package/dist-embed-sighting/{ModuleSession-CDsk4Atg.js → ModuleSession-YoBCzrOV.js} +2 -2
- package/dist-embed-sighting/ModuleThree-BHRi7HrA.js +1 -0
- package/dist-embed-sighting/ReentryEditor-BzOyu6AB.js +28 -0
- package/dist-embed-sighting/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-sighting/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-sighting/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-sighting/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-sighting/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-sighting/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-sighting/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-sighting/SkyLantern-BdVGIBoq.js +1 -0
- package/dist-embed-sighting/rr0-sighting.mjs +320 -320
- package/dist-embed-sighting/{sightingSchema-Dk010uUD.js → sightingSchema-DjI7FV42.js} +1 -1
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-DysBC5VV.js → BallesterGuaspAssessor-CeyXntPc.js} +1 -1
- package/dist-embed-sighting-editor/{CaseReportExport-Cc4W9Lim.js → CaseReportExport-DQEJL9zL.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-Bo1RUT7-.js → ControlPasses-C2E5CKcL.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-tRNaBy0f.js → CoverageAssessor-DvVcSmz6.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-B3aYB7cS.js → GLTFLoader-fTZft-Zt.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-YWAhxcbe.js → HeadlightSystem-uWB_oNGK.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-IoHDLJUa.js → HynekAssessor-D-u8nJfp.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-ByXtSShu.js → InterviewEditorElement-MBuptUl8.js} +2 -2
- package/dist-embed-sighting-editor/{LanternEditor-BYeK9kFU.js → LanternEditor-DIew0BrY.js} +1 -1
- package/dist-embed-sighting-editor/ModuleConformance-_3-3Kbbt.js +2 -0
- package/dist-embed-sighting-editor/{ModuleSession-B8U-T57q.js → ModuleSession-mVLpd6IE.js} +2 -2
- package/dist-embed-sighting-editor/ModuleThree-cXvmWIn4.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-BndWwnmX.js → ModulesPanelElement-DZ7dkdsm.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-C48vgZ_Z.js → NearestApproach-BDjtUet2.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-DRLbEZBS.js → PoherAssessor-DrseSHg-.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-SB2r1oRG.js → RailwaySystem-De5BYxNx.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-DWqXWztK.js +28 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-sighting-editor/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-sighting-editor/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-sighting-editor/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-sighting-editor/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-sighting-editor/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-sighting-editor/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-sighting-editor/{ReferenceSystem-DlpoDXXV.js → ReferenceSystem-BoCM4vB1.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_en-Lx3C0BAS.js → SightingEditorMessages_en-Bt9dhchY.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_es-Dh01a5sk.js → SightingEditorMessages_es-BnoHmcFj.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-CUfrDDiv.js → SightingEditorMessages_fr-CE7C8gk2.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_it-C0Werz3D.js → SightingEditorMessages_it-lqZ7QCHn.js} +1 -1
- package/dist-embed-sighting-editor/{SightingFileEditor-Wx9tn4bw.js → SightingFileEditor-Dtz8Azd2.js} +1 -1
- package/dist-embed-sighting-editor/SkyLantern-CaRiiIZX.js +1 -0
- package/dist-embed-sighting-editor/{TraceSystem-Cz4lbziC.js → TraceSystem-DdEd9Z5I.js} +1 -1
- package/dist-embed-sighting-editor/{WaterSystem-C39XDvNY.js → WaterSystem-DntD2XIE.js} +2 -2
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +371 -367
- package/dist-embed-sighting-editor/{sightingSchema-Dk010uUD.js → sightingSchema-DjI7FV42.js} +1 -1
- package/package.json +1 -1
- package/dist-embed-scene/ModuleThree-BLw9W-dX.js +0 -1
- package/dist-embed-scene/ReentryEditor-BR99W168.js +0 -27
- package/dist-embed-scene/ReentryEditorMessages_en-O-YSmHxv.js +0 -1
- package/dist-embed-scene/ReentryEditorMessages_es-CvO9Jwz5.js +0 -1
- package/dist-embed-scene/ReentryEditorMessages_fr-xuC-qZ6M.js +0 -1
- package/dist-embed-scene/ReentryEditorMessages_it-B7vyCX9o.js +0 -1
- package/dist-embed-scene/ReentryKindMessages_en-Cbgk3paQ.js +0 -1
- package/dist-embed-scene/ReentryKindMessages_es-DwgJQanC.js +0 -1
- package/dist-embed-scene/ReentryKindMessages_fr-D9r9x2bK.js +0 -1
- package/dist-embed-scene/ReentryKindMessages_it-DQ-J5YpD.js +0 -1
- package/dist-embed-scene/ReentryParameterTexts_en-BH1tGP5C.js +0 -1
- package/dist-embed-scene/ReentryParameterTexts_es-BDMJ4K1g.js +0 -1
- package/dist-embed-scene/ReentryParameterTexts_fr-C8ROK57p.js +0 -1
- package/dist-embed-scene/ReentryParameterTexts_it-CwC8vNTI.js +0 -1
- package/dist-embed-scene/SkyLantern-CIoY8lu4.js +0 -1
- package/dist-embed-sighting/ModuleThree-ZXC7TlGn.js +0 -1
- package/dist-embed-sighting/ReentryEditor-DS0nJdBD.js +0 -27
- package/dist-embed-sighting/ReentryEditorMessages_en-O-YSmHxv.js +0 -1
- package/dist-embed-sighting/ReentryEditorMessages_es-CvO9Jwz5.js +0 -1
- package/dist-embed-sighting/ReentryEditorMessages_fr-xuC-qZ6M.js +0 -1
- package/dist-embed-sighting/ReentryEditorMessages_it-B7vyCX9o.js +0 -1
- package/dist-embed-sighting/ReentryKindMessages_en-Cbgk3paQ.js +0 -1
- package/dist-embed-sighting/ReentryKindMessages_es-DwgJQanC.js +0 -1
- package/dist-embed-sighting/ReentryKindMessages_fr-D9r9x2bK.js +0 -1
- package/dist-embed-sighting/ReentryKindMessages_it-DQ-J5YpD.js +0 -1
- package/dist-embed-sighting/ReentryParameterTexts_en-BH1tGP5C.js +0 -1
- package/dist-embed-sighting/ReentryParameterTexts_es-BDMJ4K1g.js +0 -1
- package/dist-embed-sighting/ReentryParameterTexts_fr-C8ROK57p.js +0 -1
- package/dist-embed-sighting/ReentryParameterTexts_it-CwC8vNTI.js +0 -1
- package/dist-embed-sighting/SkyLantern--RJZtEMU.js +0 -1
- package/dist-embed-sighting-editor/ModuleConformance-C-KZlNCi.js +0 -2
- package/dist-embed-sighting-editor/ModuleThree-Ce5HhfdG.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-JhfAVd18.js +0 -27
- package/dist-embed-sighting-editor/ReentryEditorMessages_en-O-YSmHxv.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditorMessages_es-CvO9Jwz5.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditorMessages_fr-xuC-qZ6M.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditorMessages_it-B7vyCX9o.js +0 -1
- package/dist-embed-sighting-editor/ReentryKindMessages_en-Cbgk3paQ.js +0 -1
- package/dist-embed-sighting-editor/ReentryKindMessages_es-DwgJQanC.js +0 -1
- package/dist-embed-sighting-editor/ReentryKindMessages_fr-D9r9x2bK.js +0 -1
- package/dist-embed-sighting-editor/ReentryKindMessages_it-DQ-J5YpD.js +0 -1
- package/dist-embed-sighting-editor/ReentryParameterTexts_en-BH1tGP5C.js +0 -1
- package/dist-embed-sighting-editor/ReentryParameterTexts_es-BDMJ4K1g.js +0 -1
- package/dist-embed-sighting-editor/ReentryParameterTexts_fr-C8ROK57p.js +0 -1
- package/dist-embed-sighting-editor/ReentryParameterTexts_it-CwC8vNTI.js +0 -1
- package/dist-embed-sighting-editor/SkyLantern-B0V58mct.js +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rr0/ufoathome",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.189.0",
|
|
5
5
|
"description": "UFO@home — record and replay a UFO sighting's shape, movement and appearance",
|
|
6
6
|
"author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{V as a,j as e,bq as s,X as t,Z as r,ae as i,x as o,a9 as n,N as l,Q as u,au as d,af as m,ag as M,br as b,o as B,$ as G,m as S,e as f,aM as y,aJ as c,aN as p,G as h,a_ as x,F as g,bs as C,a0 as L,bt as D,bu as E,bv as P,C as T,Y as v,B as A,p as F,bw as N,ad as V,a3 as j}from"./rr0-scene.mjs";const Q={AdditiveBlending:j,BackSide:V,BoxGeometry:N,BufferAttribute:F,BufferGeometry:A,CanvasTexture:v,Color:T,ConeGeometry:P,CylinderGeometry:E,DataTexture:D,DoubleSide:L,Euler:C,Float32BufferAttribute:g,FrontSide:x,Group:h,Line:p,LineBasicMaterial:c,LineSegments:y,Matrix4:f,Mesh:S,MeshBasicMaterial:G,MeshStandardMaterial:B,NormalBlending:b,Object3D:M,PlaneGeometry:m,PointLight:d,Points:u,PointsMaterial:l,Quaternion:n,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{Q as MODULE_THREE};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{c as w,_ as u,R as v,b2 as b,b3 as M}from"./rr0-scene.mjs";import{S as P,a as x,c as T,b as C,E as F}from"./ParameterForm-DP2rnIe1.js";import{T as _}from"./TimelineTracks-B73gWzRB.js";const A=w.catalog({en:()=>u(()=>import("./ReentryParameterTexts_en-BH1tGP5C.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_en),fr:()=>u(()=>import("./ReentryParameterTexts_fr-C8ROK57p.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_fr),es:()=>u(()=>import("./ReentryParameterTexts_es-BDMJ4K1g.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_es),it:()=>u(()=>import("./ReentryParameterTexts_it-CwC8vNTI.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_it)});class a{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static placeAt(e,t){const r=v.leadAt(e,t);if(r)return{t,lat:r.lat,lng:r.lng,altitudeKm:r.heightM/1e3};const i=e.track,[n,s]=t<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!n||!s||s.t===n.t){const d=n??s??{lat:0,lng:0,altitudeKm:80};return{t,lat:d.lat,lng:d.lng,altitudeKm:d.altitudeKm}}const l=(t-n.t)/(s.t-n.t);return{t,lat:n.lat+(s.lat-n.lat)*l,lng:n.lng+(s.lng-n.lng)*l,altitudeKm:Math.max(0,n.altitudeKm+(s.altitudeKm-n.altitudeKm)*l)}}static curvePointAt(e,t){return{t,absoluteMagnitude:Math.round(v.absoluteMagnitudeAt(e,t)*10)/10}}static instantsOf(e){return[...e.track.map(t=>t.t),...e.fragments.flatMap(t=>[...t.fromT===void 0?[]:[t.fromT],...t.untilT===void 0?[]:[t.untilT],...(t.lightCurve??[]).map(r=>r.t)])]}static instant(e,t,r,i={}){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t,hint:r,...i}}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:a.NAME},{type:"text",key:"object.name",group:a.OBJECT,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:a.OBJECT,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:a.OBJECT,label:"noradNumber"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[a.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(e,t){const r=e?.track;if(r?.length)return t==="first"?r[0].t:r[r.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(e,t,r)=>!r?.fragments.some(i=>i!==t&&i.id===e)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:a.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:a.LIGHT,fallback:v.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:a.LIGHT,effective:()=>v.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:a.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},a.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"first")}),a.instant("untilT","outAt","whenItHasBurnedUpOr",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[a.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const L=w.catalog({en:()=>u(()=>import("./ReentryEditorMessages_en-O-YSmHxv.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_en),fr:()=>u(()=>import("./ReentryEditorMessages_fr-xuC-qZ6M.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_fr),es:()=>u(()=>import("./ReentryEditorMessages_es-CvO9Jwz5.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_es),it:()=>u(()=>import("./ReentryEditorMessages_it-B7vyCX9o.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_it)});class m{constructor(e,t,r){this.container=e,this.host=t,P.attach(e,"reentry-editor-part",m.STYLE),this.language=r,this.ready=this.setLanguage(r)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[r,i]=await Promise.all([L.load(e),A.load(e)]);t===this.languageToken&&(this.messages=r,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.reentries;this.shown=[...e],e.some(r=>r.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(r=>({id:r.id,label:this.labelOf(r)})),this.currentId),this.syncAddState();const t=this.current;this.element("reentry-fields").hidden=t===void 0,t&&(this.syncPlace(!0),this.syncFragments(t,!0),this.form??=new x(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(a.SET),new T(()=>this.current,r=>this.editReentry(i=>{i.object&&(i.object={...i.object}),r(i),i.object&&Object.values(i.object).every(n=>n===void 0||n==="")&&delete i.object})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const e=this.reentries;if(e.length===this.shown.length&&e.every((t,r)=>t.id===this.shown[r].id)){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.origin()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(e){return C.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="reentry-list"></div>
|
|
4
|
-
<div id="reentry-fields" class="launch-fields">
|
|
5
|
-
<div id="reentry-parameters" class="launch-parameters"></div>
|
|
6
|
-
<div id="reentry-timeline"></div>
|
|
7
|
-
<button id="reentry-fragment-add" type="button" title="${e.addFragment}">${b.PLUS} ${e.fragment}</button>
|
|
8
|
-
<p class="launch-intro">${e.timelineNote}</p>
|
|
9
|
-
<fieldset id="reentry-path" class="launch-path">
|
|
10
|
-
<legend>${e.path}</legend>
|
|
11
|
-
<div id="reentry-place-parameters" class="launch-parameters"></div>
|
|
12
|
-
<button id="reentry-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${b.TRASH}</button>
|
|
13
|
-
</fieldset>
|
|
14
|
-
<fieldset id="reentry-fragments" class="launch-path">
|
|
15
|
-
<legend id="reentry-fragment-legend">${e.fragment}</legend>
|
|
16
|
-
<div id="reentry-fragment-parameters" class="launch-parameters"></div>
|
|
17
|
-
<button id="reentry-fragment-delete" class="icon-btn" type="button" title="${e.deleteFragment}" aria-label="${e.deleteFragment}">${b.TRASH}</button>
|
|
18
|
-
<fieldset id="reentry-curve" class="launch-path">
|
|
19
|
-
<legend>${e.curve}</legend>
|
|
20
|
-
<p id="reentry-curve-empty" class="launch-intro">${e.noCurve}</p>
|
|
21
|
-
<div id="reentry-curve-parameters" class="launch-parameters"></div>
|
|
22
|
-
<button id="reentry-curve-delete" class="icon-btn" type="button" title="${e.deleteCurvePoint}" aria-label="${e.deleteCurvePoint}">${b.TRASH}</button>
|
|
23
|
-
</fieldset>
|
|
24
|
-
</fieldset>
|
|
25
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
26
|
-
</div>
|
|
27
|
-
</div>`,this.list=new F({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:t=>`reentry-add-${t}`},onSelect:t=>this.show(t),onAdd:t=>this.addReentry(t==="reentry"?"reentry":"fireball"),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.reentry,remove:e.deleteReentry,add:e.addReentry,empty:e.none}),this.list.setKinds([{value:"fireball",label:e.kindFireball},{value:"reentry",label:e.kindReentry}]),this.timeline=new _(this.element("reentry-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addPointHere,keyframeHere:e.pointHere,zoomHint:e.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,r=e.track[0]?.t??0,i=e.track[e.track.length-1]?.t??0,n={id:"path",label:t.path,color:m.PATH_COLOR,times:e.track.map(o=>o.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(o,c)=>{const p=c===void 0?-1:(this.current?.track??[]).findIndex(g=>g.t===c);this.selectPlace(p>=0?p:this.placeIndex)},move:(o,c)=>this.movePlace(o,c),add:()=>this.addPlaceAt(this.host.currentTime())},s=e.fragments.map((o,c)=>{const p=o.lightCurve??[];return{id:`fragment-${c}`,label:this.fragmentLabel(o,c),color:m.PIECE_COLOR,times:p.map(g=>g.t),spans:[{t:o.fromT??r,until:o.untilT??i,label:""}],active:this.row==="fragment"&&c===this.fragmentIndex,selectedTime:this.row==="fragment"&&c===this.fragmentIndex?p[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(c),pressed:(g,y)=>{const E=y===void 0?-1:(this.current?.fragments[c]?.lightCurve??[]).findIndex(k=>k.t===y);this.selectFragment(c,E>=0?E:void 0)},move:(g,y)=>this.moveCurvePoint(c,g,y),add:()=>this.addCurvePointAt(c,this.host.currentTime())}}),l=a.instantsOf(e),d=Math.min(...l),f=Math.max(...l),I=Math.max(500,(f-d)/10);this.timeline.show([n,...s],this.host.duration(),this.host.currentTime(),{from:d-I,to:f+I})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";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("reentry-place-delete").disabled=t.length<=m.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(a.PLACE),new T(()=>this.current?.track[this.placeIndex],r=>this.editPlace(this.placeIndex,r),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const e=this.currentFragment;this.element("reentry-fragment-legend").textContent=e?`${this.messages.fragment} ${this.fragmentLabel(e,this.fragmentIndex)}`:this.messages.fragment}editPlace(e,t){let r;this.editReentry(i=>{r={...i.track[e]},t(r),i.track=i.track.map((n,s)=>s===e?r:n).sort((n,s)=>n.t-s.t)}),r&&(this.placeIndex=this.current?.track.indexOf(r)??0),this.syncPlace()}movePlace(e,t){const r=this.current?.track.findIndex(i=>i.t===e)??-1;r<0||(this.editPlace(r,i=>{i.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const r=t.track.findIndex(n=>Math.abs(n.t-e)<1);if(r>=0){this.selectPlace(r);return}const i=a.placeAt(t,e);this.editReentry(n=>{n.track=[...n.track,i].sort((s,l)=>s.t-l.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=m.MIN_PLACES)return;const e=this.placeIndex;this.editReentry(t=>{t.track=t.track.filter((r,i)=>i!==e)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(e,t){return e.id??String(t+1)}syncFragments(e,t=!1){const r=e.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,r.length-1)),this.element("reentry-fragment-delete").disabled=r.length<=m.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(t):(this.fragmentForm=new x(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(a.FRAGMENT),new T(()=>this.currentFragment,i=>this.editFragment(n=>i(n)),()=>this.current),()=>{})),this.syncCurve(t)}selectFragment(e,t){const r=e!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=e,t!==void 0?this.curveIndex=t:r&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(e,t=this.fragmentIndex){this.editReentry(r=>{const i={...r.fragments[t]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),e(i),r.fragments=r.fragments.map((n,s)=>s===t?i:n)}),this.syncDetail(),this.syncTimeline()}addFragment(){const e=this.current;if(!e)return;const t=e.fragments[e.fragments.length-1];let r=e.fragments.length+1;for(;e.fragments.some(n=>n.id===`piece-${r}`);)r++;const i={id:`piece-${r}`,lagS:(t?.lagS??0)+1,absoluteMagnitude:(t?.absoluteMagnitude??-4)+1};this.editReentry(n=>{n.fragments=[...n.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=m.MIN_FRAGMENTS)return;const e=this.fragmentIndex;this.editReentry(t=>{t.fragments=t.fragments.filter((r,i)=>i!==e)}),this.curveIndex=0,this.selectFragment(Math.min(e,(this.current?.fragments.length??1)-1))}syncCurve(e=!1){const t=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,t.length-1)),this.element("reentry-curve-empty").hidden=t.length>0,this.element("reentry-curve-parameters").hidden=t.length===0,this.element("reentry-curve-delete").hidden=t.length===0,this.curveForm?this.curveForm.sync(e):(this.curveForm=new x(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(a.CURVE_POINT),new T(()=>this.currentFragment?.lightCurve?.[this.curveIndex],r=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,r)),()=>{})),this.syncTimeline()}editCurvePoint(e,t,r){let i;this.editFragment(n=>{const s=n.lightCurve??[];i={...s[t]},r(i),n.lightCurve=s.map((l,d)=>d===t?i:l).sort((l,d)=>l.t-d.t)},e),i&&(this.curveIndex=this.current?.fragments[e]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(e,t,r){const i=this.current?.fragments[e]?.lightCurve?.findIndex(n=>n.t===t)??-1;i<0||(this.fragmentIndex=e,this.editCurvePoint(e,i,n=>{n.t=r}),this.syncFragments(this.current,!0))}addCurvePointAt(e,t){const r=this.current?.fragments[e];if(!r)return;const i=(r.lightCurve??[]).findIndex(s=>Math.abs(s.t-t)<1);if(i>=0){this.selectFragment(e,i);return}const n=a.curvePointAt(r,t);this.editFragment(s=>{s.lightCurve=[...s.lightCurve??[],n].sort((l,d)=>l.t-d.t)},e),this.selectFragment(e,this.current?.fragments[e]?.lightCurve?.indexOf(n)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const e=this.curveIndex;this.editFragment(t=>{const r=(t.lightCurve??[]).filter((i,n)=>n!==e);r.length?t.lightCurve=r:delete t.lightCurve}),this.syncCurve(!0)}editReentry(e){const t=this.current;if(!t)return;const r={...t,track:[...t.track],fragments:[...t.fragments]};e(r),this.writeReentries(this.reentries.map(i=>i===t?r:i)),this.host.changed()}origin(){const e=this.host.sighting(),t=e.event?.place?.[0];if(!(t?.lat===void 0||t.lng===void 0))return{lat:t.lat,lng:t.lng,headingRad:(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(e){const t=this.origin();if(!t)return;const r=Math.round(this.host.currentTime()),i=Math.max(.05,Math.cos(t.lat*Math.PI/180)),n=(s,l)=>{const d=s*Math.cos(t.headingRad)-l*Math.sin(t.headingRad),f=s*Math.sin(t.headingRad)+l*Math.cos(t.headingRad);return{lat:t.lat+d/111.32,lng:t.lng+f/(111.32*i)}};return e==="fireball"?{track:[{t:r,...n(150,-45),altitudeKm:100},{t:r+3e3,...n(150,45),altitudeKm:60}],fragments:[{id:"main",absoluteMagnitude:-6}]}:{track:[{t:r,...n(300,-225),altitudeKm:82},{t:r+6e4,...n(300,225),altitudeKm:72}],fragments:[{id:"main",absoluteMagnitude:-4},{id:"piece-2",lagS:1.5,absoluteMagnitude:-2.5},{id:"piece-3",lagS:3,absoluteMagnitude:-1.5}]}}addReentry(e){const t=this.newOf(e);if(!t)return;let r=this.reentries.length+1;for(;this.reentries.some(n=>n.id===`${e}-${r}`);)r++;const i={id:`${e}-${r}`,...t};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(t=>t!==e)),this.host.changed(),this.sync())}writeReentries(e){const t=this.host.sighting();t.skyEvents=M.written({...t.skyEvents,reentries:e})}labelOf(e){const t=this.host.said().read(e.title)||e.object?.name;return t?`${t} (${e.id})`:e.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(e){return this.container.querySelector(`#${e}`)}}export{m as ReentryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"A fireball or a re-entry seen while the recording runs: a meteor, a satellite or a rocket stage burning up. A fact of the sky, not a reading of the account. It is placed where it really was, latitude, longitude and height, and seen through the Earth's shape; its light lights the scene from there.",none:"No fireball or re-entry in this recording",reentry:"Fireball or re-entry",deleteReentry:"Delete it",addReentry:"Add a fireball or a re-entry",kindFireball:"Fireball (meteor)",kindReentry:"Re-entry (satellite, stage)",path:"Path",deletePlace:"Remove this point",fragments:"Pieces",fragment:"Piece",addFragment:"Add a piece behind the last",deleteFragment:"Remove this piece",curve:"Light curve",deleteCurvePoint:"Remove this point",noCurve:'No light curve: its absolute magnitude stands throughout. The "+" of its row on the timeline adds a point at the playhead.',addNowhere:"Give the recording a place first: a fireball is put in front of the witness",derivedNote:"An empty field shows, greyed, the value in use. Empty a field to go back to it. The smaller pieces each one sheds are set in the file.",timelineNote:`On the timeline, a diamond pressed is the point shown below, and the scene goes to its instant; drag it to move it in time. The "+" of a row puts a point at the playhead. The hatched parts are before the recording's start or after its end.`,addPointHere:"Add a point here, at the playhead",pointHere:"A point is at the playhead: press it to edit it",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll"};export{e as reentryEditorMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bólido o una reentrada visto durante la grabación: un meteoro, un satélite o una etapa de cohete que se consume. Un hecho del cielo, no una lectura del relato. Se coloca donde estaba realmente, latitud, longitud y altura, y se ve a través de la forma de la Tierra; su luz ilumina la escena desde allí.",none:"Ningún bólido ni reentrada en esta grabación",reentry:"Bólido o reentrada",deleteReentry:"Eliminarlo",addReentry:"Añadir un bólido o una reentrada",kindFireball:"Bólido (meteoro)",kindReentry:"Reentrada (satélite, etapa)",path:"Trayecto",deletePlace:"Quitar este punto",fragments:"Piezas",fragment:"Pieza",addFragment:"Añadir una pieza detrás de la última",deleteFragment:"Quitar esta pieza",curve:"Curva de luz",deleteCurvePoint:"Quitar este punto",noCurve:"Sin curva de luz: su magnitud absoluta vale todo el tiempo. El «+» de su fila en la línea de tiempo añade un punto en el cabezal.",addNowhere:"Dé primero un lugar a la grabación: un bólido se coloca delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado. Vacíe un campo para volver a él. Los fragmentos más pequeños que suelta cada pieza se ajustan en el archivo.",timelineNote:"En la línea de tiempo, un rombo pulsado es el punto mostrado debajo, y la escena va a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila pone un punto en el cabezal. Las partes rayadas están antes del inicio de la grabación o después de su final.",addPointHere:"Añadir un punto aquí, en el cabezal",pointHere:"Hay un punto en el cabezal: púlselo para editarlo",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar"};export{e as reentryEditorMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide ou une rentrée vu pendant l'enregistrement : un météore, un satellite ou un étage de fusée qui se consume. Un fait du ciel, pas une lecture du compte rendu. Il est placé là où il était vraiment, latitude, longitude et altitude, et vu à travers la forme de la Terre ; sa lumière éclaire la scène depuis là.",none:"Aucun bolide ni rentrée dans cet enregistrement",reentry:"Bolide ou rentrée",deleteReentry:"Le supprimer",addReentry:"Ajouter un bolide ou une rentrée",kindFireball:"Bolide (météore)",kindReentry:"Rentrée (satellite, étage)",path:"Trajet",deletePlace:"Retirer ce point",fragments:"Pièces",fragment:"Pièce",addFragment:"Ajouter une pièce derrière la dernière",deleteFragment:"Retirer cette pièce",curve:"Courbe de lumière",deleteCurvePoint:"Retirer ce point",noCurve:"Pas de courbe de lumière : sa magnitude absolue vaut tout du long. Le « + » de sa ligne sur la frise ajoute un point à la tête de lecture.",addNowhere:"Donnez d'abord un lieu à l'enregistrement : un bolide est placé devant le témoin",derivedNote:"Un champ vide montre, en grisé, la valeur utilisée. Videz un champ pour y revenir. Les débris plus petits que perd chaque pièce se règlent dans le fichier.",timelineNote:"Sur la frise, un losange pressé est le point affiché dessous, et la scène va à son instant ; faites-le glisser pour le déplacer dans le temps. Le « + » d'une ligne pose un point à la tête de lecture. Les parties hachurées sont avant le début de l'enregistrement ou après sa fin.",addPointHere:"Ajouter un point ici, à la tête de lecture",pointHere:"Un point est à la tête de lecture : pressez-le pour le modifier",zoomHint:"Pincez, ou Ctrl + molette, pour zoomer ; Maj + molette pour défiler"};export{e as reentryEditorMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide o un rientro visto durante la registrazione: una meteora, un satellite o uno stadio di razzo che si consuma. Un fatto del cielo, non una lettura del resoconto. È posto dove era davvero, latitudine, longitudine e quota, e visto attraverso la forma della Terra; la sua luce illumina la scena da lì.",none:"Nessun bolide né rientro in questa registrazione",reentry:"Bolide o rientro",deleteReentry:"Eliminarlo",addReentry:"Aggiungere un bolide o un rientro",kindFireball:"Bolide (meteora)",kindReentry:"Rientro (satellite, stadio)",path:"Percorso",deletePlace:"Togliere questo punto",fragments:"Pezzi",fragment:"Pezzo",addFragment:"Aggiungere un pezzo dietro l'ultimo",deleteFragment:"Togliere questo pezzo",curve:"Curva di luce",deleteCurvePoint:"Togliere questo punto",noCurve:"Nessuna curva di luce: la sua magnitudine assoluta vale per tutto il tempo. Il «+» della sua riga sulla linea del tempo aggiunge un punto alla testina.",addNowhere:"Date prima un luogo alla registrazione: un bolide è posto davanti al testimone",derivedNote:"Un campo vuoto mostra, in grigio, il valore usato. Svuotate un campo per tornarci. I frammenti più piccoli che perde ogni pezzo si regolano nel file.",timelineNote:"Sulla linea del tempo, un rombo premuto è il punto mostrato sotto, e la scena va al suo istante; trascinatelo per spostarlo nel tempo. Il «+» di una riga mette un punto alla testina. Le parti tratteggiate sono prima dell'inizio della registrazione o dopo la sua fine.",addPointHere:"Aggiungere un punto qui, alla testina",pointHere:"C'è un punto alla testina: premetelo per modificarlo",zoomHint:"Pizzicate, o Ctrl + rotella, per ingrandire; Maiusc + rotella per scorrere"};export{e as reentryEditorMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Fireballs",name:"Re-entry",piece:"{name} — mag {mag}, {height} km up, {distance} km away",fragment:"{name}, a fragment — mag {mag}, {height} km up, {distance} km away"};export{e as reentryKindMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bólidos",name:"Reentrada atmosférica",piece:"{name} — mag {mag}, a {height} km de altitud y {distance} km",fragment:"{name}, un fragmento — mag {mag}, a {height} km de altitud y {distance} km"};export{e as reentryKindMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolides",name:"Rentrée atmosphérique",piece:"{name} — mag {mag}, à {height} km d'altitude et {distance} km",fragment:"{name}, un fragment — mag {mag}, à {height} km d'altitude et {distance} km"};export{e as reentryKindMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolidi",name:"Rientro atmosferico",piece:"{name} — mag {mag}, a {height} km di quota e {distance} km",fragment:"{name}, un frammento — mag {mag}, a {height} km di quota e {distance} km"};export{e as reentryKindMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Name",object:"Object",light:"Light",when:"When",fireballOrReEntry:"Fireball or re-entry",catalogueName:"Catalogue name",forAReEntryThePiece:'For a re-entry, the piece as the satellite catalogue names it: "SL-12 R/B". Empty for a meteor.',cosparId:"COSPAR id",t1968013c:"1968-013C",noradNumber:"NORAD number",pointOfThePath:"Point of the path",time:"Time",secondsOfTheRecordingNegativeBefore:"Seconds of the recording; negative before it began.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Above the ellipsoid. A meteor begins to glow between 120 and 80 km; a satellite breaks up near 80.",piece:"Piece",id:"Id",absoluteMagnitude:"Absolute magnitude",itsBrightnessSeenFrom100Km:"Its brightness seen from 100 km, as fireball reports give it: −4 or brighter is a fireball, −17 a superbolide. Its light curve, when it has one, stands instead.",colour:"Colour",train:"Train",howLongAStretchOfIts:"How long a stretch of its own past path still glows behind it, seconds.",behindTheLead:"Behind the lead",secondsBehindTheLeadingPointAlong:"Seconds behind the leading point along the same path: 0 is the leading piece itself.",seenFrom:"Seen from",whenItBreaksOffOrBegins:"When it breaks off or begins to glow; empty, the start of the path.",outAt:"Out at",whenItHasBurnedUpOr:"When it has burned up or slowed below glowing; empty, the end of the path.",pointOfTheLightCurve:"Point of the light curve",secondsOfTheRecording:"Seconds of the recording."};export{e as reentryParameterTexts_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nombre",object:"Objeto",light:"Luz",when:"Cuándo",fireballOrReEntry:"Bólido o reentrada",catalogueName:"Nombre en el catálogo",forAReEntryThePiece:"Para una reentrada, la pieza como la nombra el catálogo de satélites: «SL-12 R/B». Vacío para un meteoro.",cosparId:"Identificador COSPAR",t1968013c:"1968-013C",noradNumber:"Número NORAD",pointOfThePath:"Punto del trayecto",time:"Instante",secondsOfTheRecordingNegativeBefore:"Segundos de la grabación; negativos antes de su inicio.",position:"Posición",altitude:"Altitud",aboveTheEllipsoidAMeteorBegins:"Sobre el elipsoide. Un meteoro se enciende entre 120 y 80 km; un satélite se rompe hacia los 80.",piece:"Pieza",id:"Identificador",absoluteMagnitude:"Magnitud absoluta",itsBrightnessSeenFrom100Km:"Su brillo visto a 100 km, como lo dan los informes de bólidos: −4 o más brillante es un bólido, −17 un superbólido. Su curva de luz, cuando la tiene, vale en su lugar.",colour:"Color",train:"Estela",howLongAStretchOfIts:"Cuántos segundos de su propio trayecto siguen brillando detrás de él.",behindTheLead:"Retraso sobre la cabeza",secondsBehindTheLeadingPointAlong:"Segundos de retraso sobre el punto de cabeza, en el mismo trayecto: 0 es la propia pieza de cabeza.",seenFrom:"Visto desde",whenItBreaksOffOrBegins:"Cuando se desprende o se enciende; vacío, el inicio del trayecto.",outAt:"Apagado a",whenItHasBurnedUpOr:"Cuando se ha consumido o ha frenado demasiado para brillar; vacío, el final del trayecto.",pointOfTheLightCurve:"Punto de la curva de luz",secondsOfTheRecording:"Segundos de la grabación."};export{e as reentryParameterTexts_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nom",object:"Objet",light:"Lumière",when:"Quand",fireballOrReEntry:"Bolide ou rentrée",catalogueName:"Nom au catalogue",forAReEntryThePiece:"Pour une rentrée, la pièce comme le catalogue des satellites la nomme : « SL-12 R/B ». Vide pour un météore.",cosparId:"Identifiant COSPAR",t1968013c:"1968-013C",noradNumber:"Numéro NORAD",pointOfThePath:"Point du trajet",time:"Instant",secondsOfTheRecordingNegativeBefore:"Secondes de l'enregistrement ; négatives avant son début.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Au-dessus de l'ellipsoïde. Un météore s'allume entre 120 et 80 km ; un satellite se brise vers 80.",piece:"Pièce",id:"Identifiant",absoluteMagnitude:"Magnitude absolue",itsBrightnessSeenFrom100Km:"Son éclat vu à 100 km, comme le donnent les rapports de bolides : −4 ou plus brillant est un bolide, −17 un superbolide. Sa courbe de lumière, quand il en a une, vaut à la place.",colour:"Couleur",train:"Traînée",howLongAStretchOfIts:"Combien de secondes de son propre trajet brillent encore derrière lui.",behindTheLead:"Retard sur la tête",secondsBehindTheLeadingPointAlong:"Secondes de retard sur le point de tête, sur le même trajet : 0 est la pièce de tête elle-même.",seenFrom:"Vu à partir de",whenItBreaksOffOrBegins:"Quand il se détache ou s'allume ; vide, le début du trajet.",outAt:"Éteint à",whenItHasBurnedUpOr:"Quand il s'est consumé ou a trop ralenti pour briller ; vide, la fin du trajet.",pointOfTheLightCurve:"Point de la courbe de lumière",secondsOfTheRecording:"Secondes de l'enregistrement."};export{e as reentryParameterTexts_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nome",object:"Oggetto",light:"Luce",when:"Quando",fireballOrReEntry:"Bolide o rientro",catalogueName:"Nome a catalogo",forAReEntryThePiece:"Per un rientro, il pezzo come lo chiama il catalogo dei satelliti: «SL-12 R/B». Vuoto per una meteora.",cosparId:"Identificativo COSPAR",t1968013c:"1968-013C",noradNumber:"Numero NORAD",pointOfThePath:"Punto del percorso",time:"Istante",secondsOfTheRecordingNegativeBefore:"Secondi della registrazione; negativi prima del suo inizio.",position:"Posizione",altitude:"Altitudine",aboveTheEllipsoidAMeteorBegins:"Sopra l'ellissoide. Una meteora si accende tra 120 e 80 km; un satellite si spezza verso gli 80.",piece:"Pezzo",id:"Identificativo",absoluteMagnitude:"Magnitudine assoluta",itsBrightnessSeenFrom100Km:"La sua luminosità vista da 100 km, come la danno i rapporti sui bolidi: −4 o più brillante è un bolide, −17 un superbolide. La sua curva di luce, quando ce l'ha, vale al suo posto.",colour:"Colore",train:"Scia",howLongAStretchOfIts:"Quanti secondi del suo stesso percorso brillano ancora dietro di lui.",behindTheLead:"Ritardo sulla testa",secondsBehindTheLeadingPointAlong:"Secondi di ritardo sul punto di testa, sullo stesso percorso: 0 è il pezzo di testa stesso.",seenFrom:"Visto da",whenItBreaksOffOrBegins:"Quando si stacca o si accende; vuoto, l'inizio del percorso.",outAt:"Spento a",whenItHasBurnedUpOr:"Quando si è consumato o ha rallentato troppo per brillare; vuoto, la fine del percorso.",pointOfTheLightCurve:"Punto della curva di luce",secondsOfTheRecording:"Secondi della registrazione."};export{e as reentryParameterTexts_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bl as N}from"./rr0-scene.mjs";class i{static COMMON={envelopeVolumeM3:.19,massKg:.065,fuelKg:.03,burnS:600,insideExcessK:150,dragAreaM2:.25,luminousIntensityCd:10,widthM:.6,heightM:1,color:"#ff8a24",shape:"classic",paperColor:"#ffffff"};static FLAME_CDM2=5e3;static TITLE={en:"Sky lantern",fr:"Lanterne céleste",es:"Farolillo volador",it:"Lanterna volante"};static FLICKER=.15;static INSIDE_SHARE=2;static PAPER_FULL_CDM2=i.COMMON.luminousIntensityCd/(Math.PI*i.COMMON.widthM/2*i.COMMON.heightM/2);static SAMPLE_MS=1e3;static STEP_S=.05;static COOLING_S=20;static TURBULENCE={horizontalMS:.8,verticalMS:.3,timescaleS:30};static G=9.81;static R_AIR=287.05;static LAPSE=.0065;static expand(t){const e=t?.lanterns;return!t||!e||e.length===0?t:{...t,bodies:[...t.bodies,...e.flatMap(s=>i.bodiesOf(s))]}}static bodiesOf(t,e=N.NONE){return i.releasesOf(t).map((s,r)=>i.lanternBody(t,s,r,e))}static releasesOf(t){const e=[...t.releases??[]],s=t.group;if(!s||!(s.count>0))return e;const r=i.randomFrom(s.seed??1),o=n=>n.min+(n.max-n.min)*r(),M=s.count>1?(s.untilT-s.fromT)/(s.count-1):0,c=s.radiusM??20;for(let n=0;n<s.count;n++){const d=s.fromT+M*n+(r()-.5)*M,u=c*Math.sqrt(r()),a=2*Math.PI*r();e.push({t:Math.round(Math.min(s.untilT,Math.max(s.fromT,d))),explains:s.explains,eastM:Math.round(u*Math.sin(a)*10)/10,northM:Math.round(u*Math.cos(a)*10)/10,burnedS:s.burnedS,seed:Math.floor(r()*4294967296),lantern:{burnS:Math.round(o(s.burnS??{min:480,max:900})),insideExcessK:Math.round(o(s.insideExcessK??{min:125,max:175}))}})}return e}static randomFrom(t){let e=t>>>0;return()=>{e=e+1831565813>>>0;let s=e;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}static typeOf(t,e){return{...i.COMMON,...t.lantern,...e.lantern}}static heatShare(t,e){if(e<0||e>=t.burnS)return 0;const s=t.burnS*.75;return e<=s?1:(t.burnS-e)/(t.burnS-s)}static windAt(t,e){const s=i.componentsOf(t.wind),r=t.windAloft;if(!r)return s;const o=i.componentsOf(r),M=Math.max(0,Math.min(1,e/r.atM));return{x:s.x+(o.x-s.x)*M,y:s.y+(o.y-s.y)*M}}static trajectory(t,e,s=i.SAMPLE_MS,r=N.NONE){const o=i.typeOf(t,e),M=t.site,c=M.altitudeM??0,n=Math.max(0,e.burnedS??0),d=M.originElevationM??0,u=(t.airTemperatureC??10)+273.15,a={x:M.eastM+(e.eastM??0),y:M.northM+(e.northM??0),z:e.altitudeM??c,vx:0,vy:0,vz:0,excessK:o.insideExcessK*i.heatShare(o,n)},h=i.STEP_S,R=Math.max(1,Math.round(s/1e3/h)),O=Math.ceil(Math.max(0,o.burnS-n)/h),E=[{t:e.t,x:a.x,y:a.y,z:a.z,light:i.heatShare(o,n),tiltDeg:0,tiltTowardDeg:0}],S=i.gusts(t.turbulence??i.TURBULENCE,i.seedOf(e),h);for(let x=1;x<=O;x++){const I=x*h,C=n+I,A=i.heatShare(o,C);a.excessK+=(o.insideExcessK*A-a.excessK)*Math.min(1,h/i.COOLING_S);const P=a.z-c,b=u-i.LAPSE*Math.max(0,P),y=101325*Math.exp(-(a.z+d)/8400),f=y/(i.R_AIR*b),K=y/(i.R_AIR*(b+a.excessK)),p=o.massKg-o.fuelKg*Math.min(1,C/o.burnS),F=(f-K)*o.envelopeVolumeM3*i.G,T=p+K*o.envelopeVolumeM3+.5*f*o.envelopeVolumeM3,w=i.windAt(t,P),g=S(),l={x:w.x+g.x,y:w.y+g.y,z:g.z},G=a.vx-l.x,U=a.vy-l.y,B=a.vz-l.z,m=.5*f*o.dragAreaM2*Math.hypot(G,U,B)/T;a.vx=(a.vx+m*h*l.x)/(1+m*h),a.vy=(a.vy+m*h*l.y)/(1+m*h),a.vz=(a.vz+m*h*l.z+(F-p*i.G)/T*h)/(1+m*h);const D=a.z<=c&&a.vz<=0;D&&(a.vx=0,a.vy=0,a.vz=0);const V=a.z;if(a.x+=a.vx*h,a.y+=a.vy*h,a.z=Math.max(c,a.z+a.vz*h),r.empty||i.keptOut(a,V,o.widthM/2,r),x%R===0||x===O){const z=l.x-a.vx,v=l.y-a.vy,j=.5*f*o.dragAreaM2*Math.hypot(z,v,l.z-a.vz)*Math.hypot(z,v);E.push({t:e.t+Math.round(I*1e3),x:a.x,y:a.y,z:a.z,light:A,tiltDeg:D?0:Math.atan2(j,p*i.G)*180/Math.PI,tiltTowardDeg:(Math.atan2(z,v)*180/Math.PI+360)%360})}}return E}static keptOut(t,e,s,r){const o=r.inside(t.x,t.y,t.z,s);if(!o)return;const M=o.box.topM;if(e>=M-1e-6||t.z>=M-1e-6){t.z<M&&(t.z=M,t.vz<0&&(t.vz=0));return}t.x+=o.nx*o.depthM,t.y+=o.ny*o.depthM;const c=t.vx*o.nx+t.vy*o.ny;c<0&&(t.vx-=c*o.nx,t.vy-=c*o.ny)}static seedOf(t){return t.seed!==void 0?t.seed:Math.round(t.t)*2654435761+Math.round((t.eastM??0)*100)*40503+Math.round((t.northM??0)*100)>>>0}static gusts(t,e,s){const r=i.randomFrom(e),o=()=>Math.sqrt(-2*Math.log(Math.max(1e-12,r())))*Math.cos(2*Math.PI*r()),M=t.timescaleS>0?Math.exp(-s/t.timescaleS):0,c=Math.sqrt(1-M*M),n={x:t.horizontalMS*o(),y:t.horizontalMS*o(),z:t.verticalMS*o()};return()=>(n.x=M*n.x+c*t.horizontalMS*o(),n.y=M*n.y+c*t.horizontalMS*o(),n.z=M*n.z+c*t.verticalMS*o(),n)}static componentsOf(t){if(!t)return{x:0,y:0};const e=t.towardDeg*Math.PI/180;return{x:Math.sin(e)*t.speedMS,y:Math.cos(e)*t.speedMS}}static lanternBody(t,e,s,r){const o=i.typeOf(t,e),M=o.luminousIntensityCd/(Math.PI*o.widthM/2*o.heightM/2),c=i.trajectory(t,e,i.SAMPLE_MS,r),n={widthM:o.widthM,lengthM:o.widthM,heightM:o.heightM},d=i.through(o.color,o.paperColor),u=c.map((a,h)=>({t:a.t,eastM:a.x,northM:a.y,altitudeM:a.z,...h===0?{sizeM:n,present:!0}:{},attitude:{headingDeg:Math.round(a.tiltTowardDeg),pitchDeg:-Math.round(a.tiltDeg*10)/10},appearance:{color:d,luminanceCdM2:M*a.light,...h===0?{albedo:.6,haloScale:1}:{}},lights:i.lightsOf(M*a.light)}));return u.push({t:c[c.length-1].t+1,present:!1}),{id:`${t.id}-lantern-${s+1}`,title:i.TITLE,explains:e.explains,model:{id:`ufoathome-sky-lantern-${o.shape}`},modelParameters:{paperColor:o.paperColor},flicker:i.FLICKER,altitudeFrom:{eastM:c[0].x,northM:c[0].y},track:u}}static lightsOf(t){return{paper:t,"paper-inside":t*i.INSIDE_SHARE,flame:t>0?i.FLAME_CDM2*t/i.PAPER_FULL_CDM2:0}}static through(t,e){const s=n=>[1,3,5].map(d=>parseInt(n.slice(d,d+2),16)/255),r=s(t),o=s(e),M=r.map((n,d)=>n*o[d]),c=Math.max(...r)/(Math.max(...M)||1);return"#"+M.map(n=>Math.round(Math.min(1,n*c)*255).toString(16).padStart(2,"0")).join("")}}export{i as SkyLantern};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{z as a,K as e,bI as s,aj as t,al as r,aB as i,aa as o,aw as n,ah as b,ai as l,aY as m,aC as u,aD as M,bJ as d,a1 as B,am as G,N as S,x as f,be as y,bb as c,bf as h,G as p,bs as x,a0 as C,bK as L,an as D,bL as g,bM as A,bN as E,C as P,ak as T,$ as N,a2 as O,bO as j,aA as k,aq as v}from"./rr0-sighting.mjs";const K={AdditiveBlending:v,BackSide:k,BoxGeometry:j,BufferAttribute:O,BufferGeometry:N,CanvasTexture:T,Color:P,ConeGeometry:E,CylinderGeometry:A,DataTexture:g,DoubleSide:D,Euler:L,Float32BufferAttribute:C,FrontSide:x,Group:p,Line:h,LineBasicMaterial:c,LineSegments:y,Matrix4:f,Mesh:S,MeshBasicMaterial:G,MeshStandardMaterial:B,NormalBlending:d,Object3D:M,PlaneGeometry:u,PointLight:m,Points:l,PointsMaterial:b,Quaternion:n,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{K as MODULE_THREE};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{e as E,_ as u,R as v,aJ as P,aO as b,bw as M}from"./rr0-sighting.mjs";import{S as C,P as x,a as T,E as F}from"./ParameterForm-CkZQ1FlH.js";import{T as _}from"./TimelineTracks-CvGxdpGb.js";const A=E.catalog({en:()=>u(()=>import("./ReentryParameterTexts_en-BH1tGP5C.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_en),fr:()=>u(()=>import("./ReentryParameterTexts_fr-C8ROK57p.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_fr),es:()=>u(()=>import("./ReentryParameterTexts_es-BDMJ4K1g.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_es),it:()=>u(()=>import("./ReentryParameterTexts_it-CwC8vNTI.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_it)});class a{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static placeAt(e,t){const r=v.leadAt(e,t);if(r)return{t,lat:r.lat,lng:r.lng,altitudeKm:r.heightM/1e3};const i=e.track,[n,s]=t<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!n||!s||s.t===n.t){const d=n??s??{lat:0,lng:0,altitudeKm:80};return{t,lat:d.lat,lng:d.lng,altitudeKm:d.altitudeKm}}const l=(t-n.t)/(s.t-n.t);return{t,lat:n.lat+(s.lat-n.lat)*l,lng:n.lng+(s.lng-n.lng)*l,altitudeKm:Math.max(0,n.altitudeKm+(s.altitudeKm-n.altitudeKm)*l)}}static curvePointAt(e,t){return{t,absoluteMagnitude:Math.round(v.absoluteMagnitudeAt(e,t)*10)/10}}static instantsOf(e){return[...e.track.map(t=>t.t),...e.fragments.flatMap(t=>[...t.fromT===void 0?[]:[t.fromT],...t.untilT===void 0?[]:[t.untilT],...(t.lightCurve??[]).map(r=>r.t)])]}static instant(e,t,r,i={}){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t,hint:r,...i}}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:a.NAME},{type:"text",key:"object.name",group:a.OBJECT,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:a.OBJECT,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:a.OBJECT,label:"noradNumber"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[a.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(e,t){const r=e?.track;if(r?.length)return t==="first"?r[0].t:r[r.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(e,t,r)=>!r?.fragments.some(i=>i!==t&&i.id===e)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:a.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:a.LIGHT,fallback:v.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:a.LIGHT,effective:()=>v.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:a.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},a.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"first")}),a.instant("untilT","outAt","whenItHasBurnedUpOr",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[a.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const O=E.catalog({en:()=>u(()=>import("./ReentryEditorMessages_en-O-YSmHxv.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_en),fr:()=>u(()=>import("./ReentryEditorMessages_fr-xuC-qZ6M.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_fr),es:()=>u(()=>import("./ReentryEditorMessages_es-CvO9Jwz5.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_es),it:()=>u(()=>import("./ReentryEditorMessages_it-B7vyCX9o.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_it)});class m{constructor(e,t,r){this.container=e,this.host=t,C.attach(e,"reentry-editor-part",m.STYLE),this.language=r,this.ready=this.setLanguage(r)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[r,i]=await Promise.all([O.load(e),A.load(e)]);t===this.languageToken&&(this.messages=r,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.reentries;this.shown=[...e],e.some(r=>r.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(r=>({id:r.id,label:this.labelOf(r)})),this.currentId),this.syncAddState();const t=this.current;this.element("reentry-fields").hidden=t===void 0,t&&(this.syncPlace(!0),this.syncFragments(t,!0),this.form??=new x(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(a.SET),new T(()=>this.current,r=>this.editReentry(i=>{i.object&&(i.object={...i.object}),r(i),i.object&&Object.values(i.object).every(n=>n===void 0||n==="")&&delete i.object})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const e=this.reentries;if(e.length===this.shown.length&&e.every((t,r)=>t.id===this.shown[r].id)){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.origin()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(e){return P.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="reentry-list"></div>
|
|
4
|
-
<div id="reentry-fields" class="launch-fields">
|
|
5
|
-
<div id="reentry-parameters" class="launch-parameters"></div>
|
|
6
|
-
<div id="reentry-timeline"></div>
|
|
7
|
-
<button id="reentry-fragment-add" type="button" title="${e.addFragment}">${b.PLUS} ${e.fragment}</button>
|
|
8
|
-
<p class="launch-intro">${e.timelineNote}</p>
|
|
9
|
-
<fieldset id="reentry-path" class="launch-path">
|
|
10
|
-
<legend>${e.path}</legend>
|
|
11
|
-
<div id="reentry-place-parameters" class="launch-parameters"></div>
|
|
12
|
-
<button id="reentry-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${b.TRASH}</button>
|
|
13
|
-
</fieldset>
|
|
14
|
-
<fieldset id="reentry-fragments" class="launch-path">
|
|
15
|
-
<legend id="reentry-fragment-legend">${e.fragment}</legend>
|
|
16
|
-
<div id="reentry-fragment-parameters" class="launch-parameters"></div>
|
|
17
|
-
<button id="reentry-fragment-delete" class="icon-btn" type="button" title="${e.deleteFragment}" aria-label="${e.deleteFragment}">${b.TRASH}</button>
|
|
18
|
-
<fieldset id="reentry-curve" class="launch-path">
|
|
19
|
-
<legend>${e.curve}</legend>
|
|
20
|
-
<p id="reentry-curve-empty" class="launch-intro">${e.noCurve}</p>
|
|
21
|
-
<div id="reentry-curve-parameters" class="launch-parameters"></div>
|
|
22
|
-
<button id="reentry-curve-delete" class="icon-btn" type="button" title="${e.deleteCurvePoint}" aria-label="${e.deleteCurvePoint}">${b.TRASH}</button>
|
|
23
|
-
</fieldset>
|
|
24
|
-
</fieldset>
|
|
25
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
26
|
-
</div>
|
|
27
|
-
</div>`,this.list=new F({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:t=>`reentry-add-${t}`},onSelect:t=>this.show(t),onAdd:t=>this.addReentry(t==="reentry"?"reentry":"fireball"),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.reentry,remove:e.deleteReentry,add:e.addReentry,empty:e.none}),this.list.setKinds([{value:"fireball",label:e.kindFireball},{value:"reentry",label:e.kindReentry}]),this.timeline=new _(this.element("reentry-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addPointHere,keyframeHere:e.pointHere,zoomHint:e.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,r=e.track[0]?.t??0,i=e.track[e.track.length-1]?.t??0,n={id:"path",label:t.path,color:m.PATH_COLOR,times:e.track.map(c=>c.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(c,o)=>{const p=o===void 0?-1:(this.current?.track??[]).findIndex(g=>g.t===o);this.selectPlace(p>=0?p:this.placeIndex)},move:(c,o)=>this.movePlace(c,o),add:()=>this.addPlaceAt(this.host.currentTime())},s=e.fragments.map((c,o)=>{const p=c.lightCurve??[];return{id:`fragment-${o}`,label:this.fragmentLabel(c,o),color:m.PIECE_COLOR,times:p.map(g=>g.t),spans:[{t:c.fromT??r,until:c.untilT??i,label:""}],active:this.row==="fragment"&&o===this.fragmentIndex,selectedTime:this.row==="fragment"&&o===this.fragmentIndex?p[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(o),pressed:(g,y)=>{const w=y===void 0?-1:(this.current?.fragments[o]?.lightCurve??[]).findIndex(k=>k.t===y);this.selectFragment(o,w>=0?w:void 0)},move:(g,y)=>this.moveCurvePoint(o,g,y),add:()=>this.addCurvePointAt(o,this.host.currentTime())}}),l=a.instantsOf(e),d=Math.min(...l),f=Math.max(...l),I=Math.max(500,(f-d)/10);this.timeline.show([n,...s],this.host.duration(),this.host.currentTime(),{from:d-I,to:f+I})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";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("reentry-place-delete").disabled=t.length<=m.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(a.PLACE),new T(()=>this.current?.track[this.placeIndex],r=>this.editPlace(this.placeIndex,r),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const e=this.currentFragment;this.element("reentry-fragment-legend").textContent=e?`${this.messages.fragment} ${this.fragmentLabel(e,this.fragmentIndex)}`:this.messages.fragment}editPlace(e,t){let r;this.editReentry(i=>{r={...i.track[e]},t(r),i.track=i.track.map((n,s)=>s===e?r:n).sort((n,s)=>n.t-s.t)}),r&&(this.placeIndex=this.current?.track.indexOf(r)??0),this.syncPlace()}movePlace(e,t){const r=this.current?.track.findIndex(i=>i.t===e)??-1;r<0||(this.editPlace(r,i=>{i.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const r=t.track.findIndex(n=>Math.abs(n.t-e)<1);if(r>=0){this.selectPlace(r);return}const i=a.placeAt(t,e);this.editReentry(n=>{n.track=[...n.track,i].sort((s,l)=>s.t-l.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=m.MIN_PLACES)return;const e=this.placeIndex;this.editReentry(t=>{t.track=t.track.filter((r,i)=>i!==e)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(e,t){return e.id??String(t+1)}syncFragments(e,t=!1){const r=e.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,r.length-1)),this.element("reentry-fragment-delete").disabled=r.length<=m.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(t):(this.fragmentForm=new x(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(a.FRAGMENT),new T(()=>this.currentFragment,i=>this.editFragment(n=>i(n)),()=>this.current),()=>{})),this.syncCurve(t)}selectFragment(e,t){const r=e!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=e,t!==void 0?this.curveIndex=t:r&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(e,t=this.fragmentIndex){this.editReentry(r=>{const i={...r.fragments[t]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),e(i),r.fragments=r.fragments.map((n,s)=>s===t?i:n)}),this.syncDetail(),this.syncTimeline()}addFragment(){const e=this.current;if(!e)return;const t=e.fragments[e.fragments.length-1];let r=e.fragments.length+1;for(;e.fragments.some(n=>n.id===`piece-${r}`);)r++;const i={id:`piece-${r}`,lagS:(t?.lagS??0)+1,absoluteMagnitude:(t?.absoluteMagnitude??-4)+1};this.editReentry(n=>{n.fragments=[...n.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=m.MIN_FRAGMENTS)return;const e=this.fragmentIndex;this.editReentry(t=>{t.fragments=t.fragments.filter((r,i)=>i!==e)}),this.curveIndex=0,this.selectFragment(Math.min(e,(this.current?.fragments.length??1)-1))}syncCurve(e=!1){const t=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,t.length-1)),this.element("reentry-curve-empty").hidden=t.length>0,this.element("reentry-curve-parameters").hidden=t.length===0,this.element("reentry-curve-delete").hidden=t.length===0,this.curveForm?this.curveForm.sync(e):(this.curveForm=new x(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(a.CURVE_POINT),new T(()=>this.currentFragment?.lightCurve?.[this.curveIndex],r=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,r)),()=>{})),this.syncTimeline()}editCurvePoint(e,t,r){let i;this.editFragment(n=>{const s=n.lightCurve??[];i={...s[t]},r(i),n.lightCurve=s.map((l,d)=>d===t?i:l).sort((l,d)=>l.t-d.t)},e),i&&(this.curveIndex=this.current?.fragments[e]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(e,t,r){const i=this.current?.fragments[e]?.lightCurve?.findIndex(n=>n.t===t)??-1;i<0||(this.fragmentIndex=e,this.editCurvePoint(e,i,n=>{n.t=r}),this.syncFragments(this.current,!0))}addCurvePointAt(e,t){const r=this.current?.fragments[e];if(!r)return;const i=(r.lightCurve??[]).findIndex(s=>Math.abs(s.t-t)<1);if(i>=0){this.selectFragment(e,i);return}const n=a.curvePointAt(r,t);this.editFragment(s=>{s.lightCurve=[...s.lightCurve??[],n].sort((l,d)=>l.t-d.t)},e),this.selectFragment(e,this.current?.fragments[e]?.lightCurve?.indexOf(n)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const e=this.curveIndex;this.editFragment(t=>{const r=(t.lightCurve??[]).filter((i,n)=>n!==e);r.length?t.lightCurve=r:delete t.lightCurve}),this.syncCurve(!0)}editReentry(e){const t=this.current;if(!t)return;const r={...t,track:[...t.track],fragments:[...t.fragments]};e(r),this.writeReentries(this.reentries.map(i=>i===t?r:i)),this.host.changed()}origin(){const e=this.host.sighting(),t=e.event?.place?.[0];if(!(t?.lat===void 0||t.lng===void 0))return{lat:t.lat,lng:t.lng,headingRad:(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(e){const t=this.origin();if(!t)return;const r=Math.round(this.host.currentTime()),i=Math.max(.05,Math.cos(t.lat*Math.PI/180)),n=(s,l)=>{const d=s*Math.cos(t.headingRad)-l*Math.sin(t.headingRad),f=s*Math.sin(t.headingRad)+l*Math.cos(t.headingRad);return{lat:t.lat+d/111.32,lng:t.lng+f/(111.32*i)}};return e==="fireball"?{track:[{t:r,...n(150,-45),altitudeKm:100},{t:r+3e3,...n(150,45),altitudeKm:60}],fragments:[{id:"main",absoluteMagnitude:-6}]}:{track:[{t:r,...n(300,-225),altitudeKm:82},{t:r+6e4,...n(300,225),altitudeKm:72}],fragments:[{id:"main",absoluteMagnitude:-4},{id:"piece-2",lagS:1.5,absoluteMagnitude:-2.5},{id:"piece-3",lagS:3,absoluteMagnitude:-1.5}]}}addReentry(e){const t=this.newOf(e);if(!t)return;let r=this.reentries.length+1;for(;this.reentries.some(n=>n.id===`${e}-${r}`);)r++;const i={id:`${e}-${r}`,...t};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(t=>t!==e)),this.host.changed(),this.sync())}writeReentries(e){const t=this.host.sighting();t.skyEvents=M.written({...t.skyEvents,reentries:e})}labelOf(e){const t=this.host.said().read(e.title)||e.object?.name;return t?`${t} (${e.id})`:e.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(e){return this.container.querySelector(`#${e}`)}}export{m as ReentryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"A fireball or a re-entry seen while the recording runs: a meteor, a satellite or a rocket stage burning up. A fact of the sky, not a reading of the account. It is placed where it really was, latitude, longitude and height, and seen through the Earth's shape; its light lights the scene from there.",none:"No fireball or re-entry in this recording",reentry:"Fireball or re-entry",deleteReentry:"Delete it",addReentry:"Add a fireball or a re-entry",kindFireball:"Fireball (meteor)",kindReentry:"Re-entry (satellite, stage)",path:"Path",deletePlace:"Remove this point",fragments:"Pieces",fragment:"Piece",addFragment:"Add a piece behind the last",deleteFragment:"Remove this piece",curve:"Light curve",deleteCurvePoint:"Remove this point",noCurve:'No light curve: its absolute magnitude stands throughout. The "+" of its row on the timeline adds a point at the playhead.',addNowhere:"Give the recording a place first: a fireball is put in front of the witness",derivedNote:"An empty field shows, greyed, the value in use. Empty a field to go back to it. The smaller pieces each one sheds are set in the file.",timelineNote:`On the timeline, a diamond pressed is the point shown below, and the scene goes to its instant; drag it to move it in time. The "+" of a row puts a point at the playhead. The hatched parts are before the recording's start or after its end.`,addPointHere:"Add a point here, at the playhead",pointHere:"A point is at the playhead: press it to edit it",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll"};export{e as reentryEditorMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bólido o una reentrada visto durante la grabación: un meteoro, un satélite o una etapa de cohete que se consume. Un hecho del cielo, no una lectura del relato. Se coloca donde estaba realmente, latitud, longitud y altura, y se ve a través de la forma de la Tierra; su luz ilumina la escena desde allí.",none:"Ningún bólido ni reentrada en esta grabación",reentry:"Bólido o reentrada",deleteReentry:"Eliminarlo",addReentry:"Añadir un bólido o una reentrada",kindFireball:"Bólido (meteoro)",kindReentry:"Reentrada (satélite, etapa)",path:"Trayecto",deletePlace:"Quitar este punto",fragments:"Piezas",fragment:"Pieza",addFragment:"Añadir una pieza detrás de la última",deleteFragment:"Quitar esta pieza",curve:"Curva de luz",deleteCurvePoint:"Quitar este punto",noCurve:"Sin curva de luz: su magnitud absoluta vale todo el tiempo. El «+» de su fila en la línea de tiempo añade un punto en el cabezal.",addNowhere:"Dé primero un lugar a la grabación: un bólido se coloca delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado. Vacíe un campo para volver a él. Los fragmentos más pequeños que suelta cada pieza se ajustan en el archivo.",timelineNote:"En la línea de tiempo, un rombo pulsado es el punto mostrado debajo, y la escena va a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila pone un punto en el cabezal. Las partes rayadas están antes del inicio de la grabación o después de su final.",addPointHere:"Añadir un punto aquí, en el cabezal",pointHere:"Hay un punto en el cabezal: púlselo para editarlo",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar"};export{e as reentryEditorMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide ou une rentrée vu pendant l'enregistrement : un météore, un satellite ou un étage de fusée qui se consume. Un fait du ciel, pas une lecture du compte rendu. Il est placé là où il était vraiment, latitude, longitude et altitude, et vu à travers la forme de la Terre ; sa lumière éclaire la scène depuis là.",none:"Aucun bolide ni rentrée dans cet enregistrement",reentry:"Bolide ou rentrée",deleteReentry:"Le supprimer",addReentry:"Ajouter un bolide ou une rentrée",kindFireball:"Bolide (météore)",kindReentry:"Rentrée (satellite, étage)",path:"Trajet",deletePlace:"Retirer ce point",fragments:"Pièces",fragment:"Pièce",addFragment:"Ajouter une pièce derrière la dernière",deleteFragment:"Retirer cette pièce",curve:"Courbe de lumière",deleteCurvePoint:"Retirer ce point",noCurve:"Pas de courbe de lumière : sa magnitude absolue vaut tout du long. Le « + » de sa ligne sur la frise ajoute un point à la tête de lecture.",addNowhere:"Donnez d'abord un lieu à l'enregistrement : un bolide est placé devant le témoin",derivedNote:"Un champ vide montre, en grisé, la valeur utilisée. Videz un champ pour y revenir. Les débris plus petits que perd chaque pièce se règlent dans le fichier.",timelineNote:"Sur la frise, un losange pressé est le point affiché dessous, et la scène va à son instant ; faites-le glisser pour le déplacer dans le temps. Le « + » d'une ligne pose un point à la tête de lecture. Les parties hachurées sont avant le début de l'enregistrement ou après sa fin.",addPointHere:"Ajouter un point ici, à la tête de lecture",pointHere:"Un point est à la tête de lecture : pressez-le pour le modifier",zoomHint:"Pincez, ou Ctrl + molette, pour zoomer ; Maj + molette pour défiler"};export{e as reentryEditorMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide o un rientro visto durante la registrazione: una meteora, un satellite o uno stadio di razzo che si consuma. Un fatto del cielo, non una lettura del resoconto. È posto dove era davvero, latitudine, longitudine e quota, e visto attraverso la forma della Terra; la sua luce illumina la scena da lì.",none:"Nessun bolide né rientro in questa registrazione",reentry:"Bolide o rientro",deleteReentry:"Eliminarlo",addReentry:"Aggiungere un bolide o un rientro",kindFireball:"Bolide (meteora)",kindReentry:"Rientro (satellite, stadio)",path:"Percorso",deletePlace:"Togliere questo punto",fragments:"Pezzi",fragment:"Pezzo",addFragment:"Aggiungere un pezzo dietro l'ultimo",deleteFragment:"Togliere questo pezzo",curve:"Curva di luce",deleteCurvePoint:"Togliere questo punto",noCurve:"Nessuna curva di luce: la sua magnitudine assoluta vale per tutto il tempo. Il «+» della sua riga sulla linea del tempo aggiunge un punto alla testina.",addNowhere:"Date prima un luogo alla registrazione: un bolide è posto davanti al testimone",derivedNote:"Un campo vuoto mostra, in grigio, il valore usato. Svuotate un campo per tornarci. I frammenti più piccoli che perde ogni pezzo si regolano nel file.",timelineNote:"Sulla linea del tempo, un rombo premuto è il punto mostrato sotto, e la scena va al suo istante; trascinatelo per spostarlo nel tempo. Il «+» di una riga mette un punto alla testina. Le parti tratteggiate sono prima dell'inizio della registrazione o dopo la sua fine.",addPointHere:"Aggiungere un punto qui, alla testina",pointHere:"C'è un punto alla testina: premetelo per modificarlo",zoomHint:"Pizzicate, o Ctrl + rotella, per ingrandire; Maiusc + rotella per scorrere"};export{e as reentryEditorMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Fireballs",name:"Re-entry",piece:"{name} — mag {mag}, {height} km up, {distance} km away",fragment:"{name}, a fragment — mag {mag}, {height} km up, {distance} km away"};export{e as reentryKindMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bólidos",name:"Reentrada atmosférica",piece:"{name} — mag {mag}, a {height} km de altitud y {distance} km",fragment:"{name}, un fragmento — mag {mag}, a {height} km de altitud y {distance} km"};export{e as reentryKindMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolides",name:"Rentrée atmosphérique",piece:"{name} — mag {mag}, à {height} km d'altitude et {distance} km",fragment:"{name}, un fragment — mag {mag}, à {height} km d'altitude et {distance} km"};export{e as reentryKindMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolidi",name:"Rientro atmosferico",piece:"{name} — mag {mag}, a {height} km di quota e {distance} km",fragment:"{name}, un frammento — mag {mag}, a {height} km di quota e {distance} km"};export{e as reentryKindMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Name",object:"Object",light:"Light",when:"When",fireballOrReEntry:"Fireball or re-entry",catalogueName:"Catalogue name",forAReEntryThePiece:'For a re-entry, the piece as the satellite catalogue names it: "SL-12 R/B". Empty for a meteor.',cosparId:"COSPAR id",t1968013c:"1968-013C",noradNumber:"NORAD number",pointOfThePath:"Point of the path",time:"Time",secondsOfTheRecordingNegativeBefore:"Seconds of the recording; negative before it began.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Above the ellipsoid. A meteor begins to glow between 120 and 80 km; a satellite breaks up near 80.",piece:"Piece",id:"Id",absoluteMagnitude:"Absolute magnitude",itsBrightnessSeenFrom100Km:"Its brightness seen from 100 km, as fireball reports give it: −4 or brighter is a fireball, −17 a superbolide. Its light curve, when it has one, stands instead.",colour:"Colour",train:"Train",howLongAStretchOfIts:"How long a stretch of its own past path still glows behind it, seconds.",behindTheLead:"Behind the lead",secondsBehindTheLeadingPointAlong:"Seconds behind the leading point along the same path: 0 is the leading piece itself.",seenFrom:"Seen from",whenItBreaksOffOrBegins:"When it breaks off or begins to glow; empty, the start of the path.",outAt:"Out at",whenItHasBurnedUpOr:"When it has burned up or slowed below glowing; empty, the end of the path.",pointOfTheLightCurve:"Point of the light curve",secondsOfTheRecording:"Seconds of the recording."};export{e as reentryParameterTexts_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nombre",object:"Objeto",light:"Luz",when:"Cuándo",fireballOrReEntry:"Bólido o reentrada",catalogueName:"Nombre en el catálogo",forAReEntryThePiece:"Para una reentrada, la pieza como la nombra el catálogo de satélites: «SL-12 R/B». Vacío para un meteoro.",cosparId:"Identificador COSPAR",t1968013c:"1968-013C",noradNumber:"Número NORAD",pointOfThePath:"Punto del trayecto",time:"Instante",secondsOfTheRecordingNegativeBefore:"Segundos de la grabación; negativos antes de su inicio.",position:"Posición",altitude:"Altitud",aboveTheEllipsoidAMeteorBegins:"Sobre el elipsoide. Un meteoro se enciende entre 120 y 80 km; un satélite se rompe hacia los 80.",piece:"Pieza",id:"Identificador",absoluteMagnitude:"Magnitud absoluta",itsBrightnessSeenFrom100Km:"Su brillo visto a 100 km, como lo dan los informes de bólidos: −4 o más brillante es un bólido, −17 un superbólido. Su curva de luz, cuando la tiene, vale en su lugar.",colour:"Color",train:"Estela",howLongAStretchOfIts:"Cuántos segundos de su propio trayecto siguen brillando detrás de él.",behindTheLead:"Retraso sobre la cabeza",secondsBehindTheLeadingPointAlong:"Segundos de retraso sobre el punto de cabeza, en el mismo trayecto: 0 es la propia pieza de cabeza.",seenFrom:"Visto desde",whenItBreaksOffOrBegins:"Cuando se desprende o se enciende; vacío, el inicio del trayecto.",outAt:"Apagado a",whenItHasBurnedUpOr:"Cuando se ha consumido o ha frenado demasiado para brillar; vacío, el final del trayecto.",pointOfTheLightCurve:"Punto de la curva de luz",secondsOfTheRecording:"Segundos de la grabación."};export{e as reentryParameterTexts_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nom",object:"Objet",light:"Lumière",when:"Quand",fireballOrReEntry:"Bolide ou rentrée",catalogueName:"Nom au catalogue",forAReEntryThePiece:"Pour une rentrée, la pièce comme le catalogue des satellites la nomme : « SL-12 R/B ». Vide pour un météore.",cosparId:"Identifiant COSPAR",t1968013c:"1968-013C",noradNumber:"Numéro NORAD",pointOfThePath:"Point du trajet",time:"Instant",secondsOfTheRecordingNegativeBefore:"Secondes de l'enregistrement ; négatives avant son début.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Au-dessus de l'ellipsoïde. Un météore s'allume entre 120 et 80 km ; un satellite se brise vers 80.",piece:"Pièce",id:"Identifiant",absoluteMagnitude:"Magnitude absolue",itsBrightnessSeenFrom100Km:"Son éclat vu à 100 km, comme le donnent les rapports de bolides : −4 ou plus brillant est un bolide, −17 un superbolide. Sa courbe de lumière, quand il en a une, vaut à la place.",colour:"Couleur",train:"Traînée",howLongAStretchOfIts:"Combien de secondes de son propre trajet brillent encore derrière lui.",behindTheLead:"Retard sur la tête",secondsBehindTheLeadingPointAlong:"Secondes de retard sur le point de tête, sur le même trajet : 0 est la pièce de tête elle-même.",seenFrom:"Vu à partir de",whenItBreaksOffOrBegins:"Quand il se détache ou s'allume ; vide, le début du trajet.",outAt:"Éteint à",whenItHasBurnedUpOr:"Quand il s'est consumé ou a trop ralenti pour briller ; vide, la fin du trajet.",pointOfTheLightCurve:"Point de la courbe de lumière",secondsOfTheRecording:"Secondes de l'enregistrement."};export{e as reentryParameterTexts_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nome",object:"Oggetto",light:"Luce",when:"Quando",fireballOrReEntry:"Bolide o rientro",catalogueName:"Nome a catalogo",forAReEntryThePiece:"Per un rientro, il pezzo come lo chiama il catalogo dei satelliti: «SL-12 R/B». Vuoto per una meteora.",cosparId:"Identificativo COSPAR",t1968013c:"1968-013C",noradNumber:"Numero NORAD",pointOfThePath:"Punto del percorso",time:"Istante",secondsOfTheRecordingNegativeBefore:"Secondi della registrazione; negativi prima del suo inizio.",position:"Posizione",altitude:"Altitudine",aboveTheEllipsoidAMeteorBegins:"Sopra l'ellissoide. Una meteora si accende tra 120 e 80 km; un satellite si spezza verso gli 80.",piece:"Pezzo",id:"Identificativo",absoluteMagnitude:"Magnitudine assoluta",itsBrightnessSeenFrom100Km:"La sua luminosità vista da 100 km, come la danno i rapporti sui bolidi: −4 o più brillante è un bolide, −17 un superbolide. La sua curva di luce, quando ce l'ha, vale al suo posto.",colour:"Colore",train:"Scia",howLongAStretchOfIts:"Quanti secondi del suo stesso percorso brillano ancora dietro di lui.",behindTheLead:"Ritardo sulla testa",secondsBehindTheLeadingPointAlong:"Secondi di ritardo sul punto di testa, sullo stesso percorso: 0 è il pezzo di testa stesso.",seenFrom:"Visto da",whenItBreaksOffOrBegins:"Quando si stacca o si accende; vuoto, l'inizio del percorso.",outAt:"Spento a",whenItHasBurnedUpOr:"Quando si è consumato o ha rallentato troppo per brillare; vuoto, la fine del percorso.",pointOfTheLightCurve:"Punto della curva di luce",secondsOfTheRecording:"Secondi della registrazione."};export{e as reentryParameterTexts_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aH as N}from"./rr0-sighting.mjs";class i{static COMMON={envelopeVolumeM3:.19,massKg:.065,fuelKg:.03,burnS:600,insideExcessK:150,dragAreaM2:.25,luminousIntensityCd:10,widthM:.6,heightM:1,color:"#ff8a24",shape:"classic",paperColor:"#ffffff"};static FLAME_CDM2=5e3;static TITLE={en:"Sky lantern",fr:"Lanterne céleste",es:"Farolillo volador",it:"Lanterna volante"};static FLICKER=.15;static INSIDE_SHARE=2;static PAPER_FULL_CDM2=i.COMMON.luminousIntensityCd/(Math.PI*i.COMMON.widthM/2*i.COMMON.heightM/2);static SAMPLE_MS=1e3;static STEP_S=.05;static COOLING_S=20;static TURBULENCE={horizontalMS:.8,verticalMS:.3,timescaleS:30};static G=9.81;static R_AIR=287.05;static LAPSE=.0065;static expand(t){const e=t?.lanterns;return!t||!e||e.length===0?t:{...t,bodies:[...t.bodies,...e.flatMap(s=>i.bodiesOf(s))]}}static bodiesOf(t,e=N.NONE){return i.releasesOf(t).map((s,r)=>i.lanternBody(t,s,r,e))}static releasesOf(t){const e=[...t.releases??[]],s=t.group;if(!s||!(s.count>0))return e;const r=i.randomFrom(s.seed??1),o=n=>n.min+(n.max-n.min)*r(),M=s.count>1?(s.untilT-s.fromT)/(s.count-1):0,c=s.radiusM??20;for(let n=0;n<s.count;n++){const d=s.fromT+M*n+(r()-.5)*M,u=c*Math.sqrt(r()),a=2*Math.PI*r();e.push({t:Math.round(Math.min(s.untilT,Math.max(s.fromT,d))),explains:s.explains,eastM:Math.round(u*Math.sin(a)*10)/10,northM:Math.round(u*Math.cos(a)*10)/10,burnedS:s.burnedS,seed:Math.floor(r()*4294967296),lantern:{burnS:Math.round(o(s.burnS??{min:480,max:900})),insideExcessK:Math.round(o(s.insideExcessK??{min:125,max:175}))}})}return e}static randomFrom(t){let e=t>>>0;return()=>{e=e+1831565813>>>0;let s=e;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}static typeOf(t,e){return{...i.COMMON,...t.lantern,...e.lantern}}static heatShare(t,e){if(e<0||e>=t.burnS)return 0;const s=t.burnS*.75;return e<=s?1:(t.burnS-e)/(t.burnS-s)}static windAt(t,e){const s=i.componentsOf(t.wind),r=t.windAloft;if(!r)return s;const o=i.componentsOf(r),M=Math.max(0,Math.min(1,e/r.atM));return{x:s.x+(o.x-s.x)*M,y:s.y+(o.y-s.y)*M}}static trajectory(t,e,s=i.SAMPLE_MS,r=N.NONE){const o=i.typeOf(t,e),M=t.site,c=M.altitudeM??0,n=Math.max(0,e.burnedS??0),d=M.originElevationM??0,u=(t.airTemperatureC??10)+273.15,a={x:M.eastM+(e.eastM??0),y:M.northM+(e.northM??0),z:e.altitudeM??c,vx:0,vy:0,vz:0,excessK:o.insideExcessK*i.heatShare(o,n)},h=i.STEP_S,R=Math.max(1,Math.round(s/1e3/h)),O=Math.ceil(Math.max(0,o.burnS-n)/h),E=[{t:e.t,x:a.x,y:a.y,z:a.z,light:i.heatShare(o,n),tiltDeg:0,tiltTowardDeg:0}],S=i.gusts(t.turbulence??i.TURBULENCE,i.seedOf(e),h);for(let x=1;x<=O;x++){const I=x*h,C=n+I,A=i.heatShare(o,C);a.excessK+=(o.insideExcessK*A-a.excessK)*Math.min(1,h/i.COOLING_S);const P=a.z-c,y=u-i.LAPSE*Math.max(0,P),K=101325*Math.exp(-(a.z+d)/8400),f=K/(i.R_AIR*y),T=K/(i.R_AIR*(y+a.excessK)),p=o.massKg-o.fuelKg*Math.min(1,C/o.burnS),F=(f-T)*o.envelopeVolumeM3*i.G,b=p+T*o.envelopeVolumeM3+.5*f*o.envelopeVolumeM3,w=i.windAt(t,P),g=S(),l={x:w.x+g.x,y:w.y+g.y,z:g.z},G=a.vx-l.x,U=a.vy-l.y,B=a.vz-l.z,m=.5*f*o.dragAreaM2*Math.hypot(G,U,B)/b;a.vx=(a.vx+m*h*l.x)/(1+m*h),a.vy=(a.vy+m*h*l.y)/(1+m*h),a.vz=(a.vz+m*h*l.z+(F-p*i.G)/b*h)/(1+m*h);const D=a.z<=c&&a.vz<=0;D&&(a.vx=0,a.vy=0,a.vz=0);const V=a.z;if(a.x+=a.vx*h,a.y+=a.vy*h,a.z=Math.max(c,a.z+a.vz*h),r.empty||i.keptOut(a,V,o.widthM/2,r),x%R===0||x===O){const z=l.x-a.vx,v=l.y-a.vy,j=.5*f*o.dragAreaM2*Math.hypot(z,v,l.z-a.vz)*Math.hypot(z,v);E.push({t:e.t+Math.round(I*1e3),x:a.x,y:a.y,z:a.z,light:A,tiltDeg:D?0:Math.atan2(j,p*i.G)*180/Math.PI,tiltTowardDeg:(Math.atan2(z,v)*180/Math.PI+360)%360})}}return E}static keptOut(t,e,s,r){const o=r.inside(t.x,t.y,t.z,s);if(!o)return;const M=o.box.topM;if(e>=M-1e-6||t.z>=M-1e-6){t.z<M&&(t.z=M,t.vz<0&&(t.vz=0));return}t.x+=o.nx*o.depthM,t.y+=o.ny*o.depthM;const c=t.vx*o.nx+t.vy*o.ny;c<0&&(t.vx-=c*o.nx,t.vy-=c*o.ny)}static seedOf(t){return t.seed!==void 0?t.seed:Math.round(t.t)*2654435761+Math.round((t.eastM??0)*100)*40503+Math.round((t.northM??0)*100)>>>0}static gusts(t,e,s){const r=i.randomFrom(e),o=()=>Math.sqrt(-2*Math.log(Math.max(1e-12,r())))*Math.cos(2*Math.PI*r()),M=t.timescaleS>0?Math.exp(-s/t.timescaleS):0,c=Math.sqrt(1-M*M),n={x:t.horizontalMS*o(),y:t.horizontalMS*o(),z:t.verticalMS*o()};return()=>(n.x=M*n.x+c*t.horizontalMS*o(),n.y=M*n.y+c*t.horizontalMS*o(),n.z=M*n.z+c*t.verticalMS*o(),n)}static componentsOf(t){if(!t)return{x:0,y:0};const e=t.towardDeg*Math.PI/180;return{x:Math.sin(e)*t.speedMS,y:Math.cos(e)*t.speedMS}}static lanternBody(t,e,s,r){const o=i.typeOf(t,e),M=o.luminousIntensityCd/(Math.PI*o.widthM/2*o.heightM/2),c=i.trajectory(t,e,i.SAMPLE_MS,r),n={widthM:o.widthM,lengthM:o.widthM,heightM:o.heightM},d=i.through(o.color,o.paperColor),u=c.map((a,h)=>({t:a.t,eastM:a.x,northM:a.y,altitudeM:a.z,...h===0?{sizeM:n,present:!0}:{},attitude:{headingDeg:Math.round(a.tiltTowardDeg),pitchDeg:-Math.round(a.tiltDeg*10)/10},appearance:{color:d,luminanceCdM2:M*a.light,...h===0?{albedo:.6,haloScale:1}:{}},lights:i.lightsOf(M*a.light)}));return u.push({t:c[c.length-1].t+1,present:!1}),{id:`${t.id}-lantern-${s+1}`,title:i.TITLE,explains:e.explains,model:{id:`ufoathome-sky-lantern-${o.shape}`},modelParameters:{paperColor:o.paperColor},flicker:i.FLICKER,altitudeFrom:{eastM:c[0].x,northM:c[0].y},track:u}}static lightsOf(t){return{paper:t,"paper-inside":t*i.INSIDE_SHARE,flame:t>0?i.FLAME_CDM2*t/i.PAPER_FULL_CDM2:0}}static through(t,e){const s=n=>[1,3,5].map(d=>parseInt(n.slice(d,d+2),16)/255),r=s(t),o=s(e),M=r.map((n,d)=>n*o[d]),c=Math.max(...r)/(Math.max(...M)||1);return"#"+M.map(n=>Math.round(Math.min(1,n*c)*255).toString(16).padStart(2,"0")).join("")}}export{i as SkyLantern};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-Ce5HhfdG.js","./rr0-sighting-editor.mjs"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as w}from"./rr0-sighting-editor.mjs";class n{static MEMBERS={weather:["getWeather"],place:["attribution","search","reverse"],timeZone:["zoneAt"],narrative:["settings","draft"],assessment:["assess"],lightPollution:["year","citation","lookUp"],aircraft:["citation","between"],upperAir:["between"],elevation:["getElevationGrid"],imagery:["attribution","getImageryTexture"],surroundings:["id","name","attribution","creditUrl","contemporary","covers","getSurroundings"],decorModels:["attribution","entries","entry"],skyEvents:["key","messages","simulation"],interpretations:["key","messages","compute"],perception:["id","messages","sources","settings","perceive"],transcription:["sendsAudio","engine","transcribe"]};static WEATHER_SHARES=["cloudCover","cloudDarkness","precipitationIntensity","highCloudCover","lowerCloudCover","iceCrystalAlignment","rareIceCrystals","relativeHumidity"];static WEATHER_REQUIRED=["cloudCover","cloudDarkness","precipitationIntensity"];static PRECIPITATIONS=["none","rain","snow","hail"];static HIGH_WIND_MS=60;static TIMEOUT_MS=3e4;static async check(i,a={}){const r=[];i.hasScript&&!i.scriptRun&&r.push({level:"note",code:"scriptNotRun"});for(const[t,s]of Object.entries(i.module.contributes))Object.hasOwn(n.MEMBERS,t)?Array.isArray(s)?await n.checkPoint(t,s,a,r):r.push({level:"failed",code:"notAList",point:t}):r.push({level:"failed",code:"unknownPoint",point:t});return r}static async checkPoint(i,a,r,t){const s=new Set;for(const e of a){const c=(l,d,g="failed")=>{t.push({level:g,code:l,point:i,source:typeof e?.id=="string"?e.id:void 0,detail:d})};if(s.has(e?.id)&&c("duplicateId"),s.add(e?.id),n.checkEntry(e,c),typeof e?.create!="function"){c("createMissing");continue}const o=n.build(e,c);if(o===void 0)continue;const h=n.MEMBERS[i].filter(l=>o[l]===void 0);for(const l of h)c("missingMember",l);h.length>0||(i==="weather"&&await n.checkWeather(e.id,o,r,c),i==="skyEvents"&&await n.checkSkyEventKind(e.id,o,r,c),i==="interpretations"&&await n.checkInterpretationKind(e.id,o,r,c))}}static checkEntry(i,a){for(const r of["id","name","credit","creditUrl"]){const t=i?.[r];(typeof t!="string"||t.trim()==="")&&a("entryField",r)}typeof i?.creditUrl=="string"&&i.creditUrl!==""&&!URL.canParse(i.creditUrl)&&a("entryField","creditUrl")}static build(i,a){let r=!1;const t=(async()=>(r=!0,new Response("",{status:503}))),s=globalThis.fetch;globalThis.fetch=t;try{const e=i.create(t);if(r&&a("createAsked"),e==null){a("createEmpty");return}return e}catch(e){a("createThrew",n.told(e));return}finally{globalThis.fetch=s}}static async checkWeather(i,a,r,t){const s=r.weatherQuery;if(!s){t("weatherNotAsked",void 0,"note");return}let e;try{e=await n.within(a.getWeather(s),r)}catch(l){t("weatherThrew",n.told(l));return}if(e===void 0){t("weatherNoRecord",void 0,"note");return}const c=e?.samples;if(!Array.isArray(c)||c.length!==s.points.length){t("weatherSamples",`${Array.isArray(c)?c.length:0}/${s.points.length}`);return}c.some((l,d)=>l?.time?.getTime?.()!==s.points[d].time.getTime())&&t("weatherOrder");const o=new Set;let h=!1;for(const l of c){const d=l?.weather??{};for(const g of n.WEATHER_SHARES){const u=d[g],p=n.WEATHER_REQUIRED.includes(g);(u!==void 0||p)&&!n.between(u,0,1)&&o.add(`${g} = ${String(u)}`)}n.between(d.windDirectionDeg,0,360)||o.add(`windDirectionDeg = ${String(d.windDirectionDeg)}`),n.between(d.windSpeed,0,1/0)?d.windSpeed>n.HIGH_WIND_MS&&(h=!0):o.add(`windSpeed = ${String(d.windSpeed)}`),n.PRECIPITATIONS.includes(d.precipitationType)||o.add(`precipitationType = ${String(d.precipitationType)}`),typeof d.storm!="boolean"&&o.add(`storm = ${String(d.storm)}`)}for(const l of o)t("weatherValue",l);h&&t("weatherWindHigh",void 0,"note"),e.source?.id!==i&&t("weatherSource","id"),(typeof e.source?.name!="string"||e.source.name==="")&&t("weatherSource","name"),(typeof e.source?.url!="string"||e.source.url==="")&&t("weatherSource","url")}static async checkSkyEventKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title","name"],r,t);let s;try{s=(await n.within(a.simulation(),r))()}catch(o){t("simulationFailed",n.told(o));return}const{MODULE_THREE:e}=await w(async()=>{const{MODULE_THREE:o}=await import("./ModuleThree-Ce5HhfdG.js");return{MODULE_THREE:o}},__vite__mapDeps([0,1]),import.meta.url);if(!(s?.object instanceof e.Object3D)){t("secondThree");return}try{s.update([],0,n.frame(new e.Vector3)),s.drawnCount!==0&&t("drawnWithoutEvents",String(s.drawnCount))}catch(o){t("updateThrew",n.told(o))}const c=new e.Group;c.add(s.object);try{s.dispose(),s.object.parent===c&&t("disposeLeft")}catch(o){t("disposeThrew",n.told(o))}}static async checkInterpretationKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title"],r,t);const s=r.interpretation?.[a.key];if(!Array.isArray(s)||s.length===0){t("readingNotTried",void 0,"note");return}let e;try{if(e=await n.within(a.compute(),r),typeof e!="function"){t("readingThrew","compute");return}}catch(c){t("readingThrew",n.told(c));return}for(const c of s)try{const o=e(c);Array.isArray(o)||t("readingNotAList")}catch(o){t("readingThrew",n.told(o))}}static async checkTexts(i,a,r,t){for(const s of["en","fr"])try{const e=await n.within(i.load(s),r);for(const c of a)(typeof e?.[c]!="string"||e[c]==="")&&t("kindMessages",`${s}: ${c}`)}catch(e){t("kindMessages",`${s}: ${n.told(e)}`)}}static frame(i){return{reference:{lat:0,lng:0},origin:{x:0,z:0},eastScale:1,siteElevationM:0,eye:i,pixelRad:.001,relativeScale:1,air:{},transmittanceTo:()=>[1,1,1],groundYAt:()=>0,wind:{eastMS:0,northMS:0},observer:{lat:0,lng:0,heightM:0},date:new Date(0),magnitudeLimit:6,cloudTransmission:()=>1,arrivingIlluminance:()=>[0,0,0],transmittanceFromSpace:()=>[1,1,1],lightFrom:()=>{},glareFrom:()=>{}}}static between(i,a,r){return typeof i=="number"&&!Number.isNaN(i)&&i>=a&&i<=r}static told(i){return i instanceof Error?i.message:String(i)}static within(i,a){const r=a.timeoutMs??n.TIMEOUT_MS;let t;const s=new Promise((e,c)=>{t=setTimeout(()=>c(new Error(`> ${r/1e3} s`)),r)});return Promise.race([i,s]).finally(()=>clearTimeout(t))}}export{n as ModuleConformance};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{V as a,b5 as e,ch as s,bo as t,bq as r,bD as i,bg as o,Q as n,bn as b,aS as c,bM as l,bE as m,G as u,ci as M,ar as d,aF as G,ap as S,K as B,c1 as f,b_ as p,c2 as y,am as h,cf as D,ba as E,J as g,aG as x,cj as C,ck as L,cl as P,aU as T,bp as A,aD as F,aE as V,cm as j,bC as k,aH as v}from"./rr0-sighting-editor.mjs";const O={AdditiveBlending:v,BackSide:k,BoxGeometry:j,BufferAttribute:V,BufferGeometry:F,CanvasTexture:A,Color:T,ConeGeometry:P,CylinderGeometry:L,DataTexture:C,DoubleSide:x,Euler:g,Float32BufferAttribute:E,FrontSide:D,Group:h,Line:y,LineBasicMaterial:p,LineSegments:f,Matrix4:B,Mesh:S,MeshBasicMaterial:G,MeshStandardMaterial:d,NormalBlending:M,Object3D:u,PlaneGeometry:m,PointLight:l,Points:c,PointsMaterial:b,Quaternion:n,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{O as MODULE_THREE};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import{o as E,_ as u,ac as v,a1 as b,a3 as x,a2 as M,c as T,$ as P,a0 as C,aK as F}from"./rr0-sighting-editor.mjs";import{S as _}from"./SkyEventEditorStyle-CvY_AhbI.js";const A=E.catalog({en:()=>u(()=>import("./ReentryParameterTexts_en-BH1tGP5C.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_en),fr:()=>u(()=>import("./ReentryParameterTexts_fr-C8ROK57p.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_fr),es:()=>u(()=>import("./ReentryParameterTexts_es-BDMJ4K1g.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_es),it:()=>u(()=>import("./ReentryParameterTexts_it-CwC8vNTI.js"),[],import.meta.url).then(h=>h.reentryParameterTexts_it)});class a{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static placeAt(e,t){const r=v.leadAt(e,t);if(r)return{t,lat:r.lat,lng:r.lng,altitudeKm:r.heightM/1e3};const i=e.track,[n,s]=t<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!n||!s||s.t===n.t){const d=n??s??{lat:0,lng:0,altitudeKm:80};return{t,lat:d.lat,lng:d.lng,altitudeKm:d.altitudeKm}}const l=(t-n.t)/(s.t-n.t);return{t,lat:n.lat+(s.lat-n.lat)*l,lng:n.lng+(s.lng-n.lng)*l,altitudeKm:Math.max(0,n.altitudeKm+(s.altitudeKm-n.altitudeKm)*l)}}static curvePointAt(e,t){return{t,absoluteMagnitude:Math.round(v.absoluteMagnitudeAt(e,t)*10)/10}}static instantsOf(e){return[...e.track.map(t=>t.t),...e.fragments.flatMap(t=>[...t.fromT===void 0?[]:[t.fromT],...t.untilT===void 0?[]:[t.untilT],...(t.lightCurve??[]).map(r=>r.t)])]}static instant(e,t,r,i={}){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t,hint:r,...i}}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:a.NAME},{type:"text",key:"object.name",group:a.OBJECT,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:a.OBJECT,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:a.OBJECT,label:"noradNumber"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[a.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(e,t){const r=e?.track;if(r?.length)return t==="first"?r[0].t:r[r.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(e,t,r)=>!r?.fragments.some(i=>i!==t&&i.id===e)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:a.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:a.LIGHT,fallback:v.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:a.LIGHT,effective:()=>v.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:a.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},a.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"first")}),a.instant("untilT","outAt","whenItHasBurnedUpOr",{group:a.WHEN,effective:(e,t)=>a.trackEnd(t,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[a.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const L=E.catalog({en:()=>u(()=>import("./ReentryEditorMessages_en-O-YSmHxv.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_en),fr:()=>u(()=>import("./ReentryEditorMessages_fr-xuC-qZ6M.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_fr),es:()=>u(()=>import("./ReentryEditorMessages_es-CvO9Jwz5.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_es),it:()=>u(()=>import("./ReentryEditorMessages_it-B7vyCX9o.js"),[],import.meta.url).then(h=>h.reentryEditorMessages_it)});class m{constructor(e,t,r){this.container=e,this.host=t,_.attach(e,"reentry-editor-part",m.STYLE),this.language=r,this.ready=this.setLanguage(r)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[r,i]=await Promise.all([L.load(e),A.load(e)]);t===this.languageToken&&(this.messages=r,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.reentries;this.shown=[...e],e.some(r=>r.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(r=>({id:r.id,label:this.labelOf(r)})),this.currentId),this.syncAddState();const t=this.current;this.element("reentry-fields").hidden=t===void 0,t&&(this.syncPlace(!0),this.syncFragments(t,!0),this.form??=new b(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(a.SET),new x(()=>this.current,r=>this.editReentry(i=>{i.object&&(i.object={...i.object}),r(i),i.object&&Object.values(i.object).every(n=>n===void 0||n==="")&&delete i.object})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const e=this.reentries;if(e.length===this.shown.length&&e.every((t,r)=>t.id===this.shown[r].id)){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.origin()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(e){return M.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="reentry-list"></div>
|
|
4
|
-
<div id="reentry-fields" class="launch-fields">
|
|
5
|
-
<div id="reentry-parameters" class="launch-parameters"></div>
|
|
6
|
-
<div id="reentry-timeline"></div>
|
|
7
|
-
<button id="reentry-fragment-add" type="button" title="${e.addFragment}">${T.PLUS} ${e.fragment}</button>
|
|
8
|
-
<p class="launch-intro">${e.timelineNote}</p>
|
|
9
|
-
<fieldset id="reentry-path" class="launch-path">
|
|
10
|
-
<legend>${e.path}</legend>
|
|
11
|
-
<div id="reentry-place-parameters" class="launch-parameters"></div>
|
|
12
|
-
<button id="reentry-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${T.TRASH}</button>
|
|
13
|
-
</fieldset>
|
|
14
|
-
<fieldset id="reentry-fragments" class="launch-path">
|
|
15
|
-
<legend id="reentry-fragment-legend">${e.fragment}</legend>
|
|
16
|
-
<div id="reentry-fragment-parameters" class="launch-parameters"></div>
|
|
17
|
-
<button id="reentry-fragment-delete" class="icon-btn" type="button" title="${e.deleteFragment}" aria-label="${e.deleteFragment}">${T.TRASH}</button>
|
|
18
|
-
<fieldset id="reentry-curve" class="launch-path">
|
|
19
|
-
<legend>${e.curve}</legend>
|
|
20
|
-
<p id="reentry-curve-empty" class="launch-intro">${e.noCurve}</p>
|
|
21
|
-
<div id="reentry-curve-parameters" class="launch-parameters"></div>
|
|
22
|
-
<button id="reentry-curve-delete" class="icon-btn" type="button" title="${e.deleteCurvePoint}" aria-label="${e.deleteCurvePoint}">${T.TRASH}</button>
|
|
23
|
-
</fieldset>
|
|
24
|
-
</fieldset>
|
|
25
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
26
|
-
</div>
|
|
27
|
-
</div>`,this.list=new P({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:t=>`reentry-add-${t}`},onSelect:t=>this.show(t),onAdd:t=>this.addReentry(t==="reentry"?"reentry":"fireball"),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.reentry,remove:e.deleteReentry,add:e.addReentry,empty:e.none}),this.list.setKinds([{value:"fireball",label:e.kindFireball},{value:"reentry",label:e.kindReentry}]),this.timeline=new C(this.element("reentry-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addPointHere,keyframeHere:e.pointHere,zoomHint:e.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,r=e.track[0]?.t??0,i=e.track[e.track.length-1]?.t??0,n={id:"path",label:t.path,color:m.PATH_COLOR,times:e.track.map(o=>o.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(o,c)=>{const p=c===void 0?-1:(this.current?.track??[]).findIndex(g=>g.t===c);this.selectPlace(p>=0?p:this.placeIndex)},move:(o,c)=>this.movePlace(o,c),add:()=>this.addPlaceAt(this.host.currentTime())},s=e.fragments.map((o,c)=>{const p=o.lightCurve??[];return{id:`fragment-${c}`,label:this.fragmentLabel(o,c),color:m.PIECE_COLOR,times:p.map(g=>g.t),spans:[{t:o.fromT??r,until:o.untilT??i,label:""}],active:this.row==="fragment"&&c===this.fragmentIndex,selectedTime:this.row==="fragment"&&c===this.fragmentIndex?p[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(c),pressed:(g,y)=>{const w=y===void 0?-1:(this.current?.fragments[c]?.lightCurve??[]).findIndex(k=>k.t===y);this.selectFragment(c,w>=0?w:void 0)},move:(g,y)=>this.moveCurvePoint(c,g,y),add:()=>this.addCurvePointAt(c,this.host.currentTime())}}),l=a.instantsOf(e),d=Math.min(...l),f=Math.max(...l),I=Math.max(500,(f-d)/10);this.timeline.show([n,...s],this.host.duration(),this.host.currentTime(),{from:d-I,to:f+I})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";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("reentry-place-delete").disabled=t.length<=m.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new b(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(a.PLACE),new x(()=>this.current?.track[this.placeIndex],r=>this.editPlace(this.placeIndex,r),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const e=this.currentFragment;this.element("reentry-fragment-legend").textContent=e?`${this.messages.fragment} ${this.fragmentLabel(e,this.fragmentIndex)}`:this.messages.fragment}editPlace(e,t){let r;this.editReentry(i=>{r={...i.track[e]},t(r),i.track=i.track.map((n,s)=>s===e?r:n).sort((n,s)=>n.t-s.t)}),r&&(this.placeIndex=this.current?.track.indexOf(r)??0),this.syncPlace()}movePlace(e,t){const r=this.current?.track.findIndex(i=>i.t===e)??-1;r<0||(this.editPlace(r,i=>{i.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const r=t.track.findIndex(n=>Math.abs(n.t-e)<1);if(r>=0){this.selectPlace(r);return}const i=a.placeAt(t,e);this.editReentry(n=>{n.track=[...n.track,i].sort((s,l)=>s.t-l.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=m.MIN_PLACES)return;const e=this.placeIndex;this.editReentry(t=>{t.track=t.track.filter((r,i)=>i!==e)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(e,t){return e.id??String(t+1)}syncFragments(e,t=!1){const r=e.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,r.length-1)),this.element("reentry-fragment-delete").disabled=r.length<=m.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(t):(this.fragmentForm=new b(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(a.FRAGMENT),new x(()=>this.currentFragment,i=>this.editFragment(n=>i(n)),()=>this.current),()=>{})),this.syncCurve(t)}selectFragment(e,t){const r=e!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=e,t!==void 0?this.curveIndex=t:r&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(e,t=this.fragmentIndex){this.editReentry(r=>{const i={...r.fragments[t]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),e(i),r.fragments=r.fragments.map((n,s)=>s===t?i:n)}),this.syncDetail(),this.syncTimeline()}addFragment(){const e=this.current;if(!e)return;const t=e.fragments[e.fragments.length-1];let r=e.fragments.length+1;for(;e.fragments.some(n=>n.id===`piece-${r}`);)r++;const i={id:`piece-${r}`,lagS:(t?.lagS??0)+1,absoluteMagnitude:(t?.absoluteMagnitude??-4)+1};this.editReentry(n=>{n.fragments=[...n.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=m.MIN_FRAGMENTS)return;const e=this.fragmentIndex;this.editReentry(t=>{t.fragments=t.fragments.filter((r,i)=>i!==e)}),this.curveIndex=0,this.selectFragment(Math.min(e,(this.current?.fragments.length??1)-1))}syncCurve(e=!1){const t=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,t.length-1)),this.element("reentry-curve-empty").hidden=t.length>0,this.element("reentry-curve-parameters").hidden=t.length===0,this.element("reentry-curve-delete").hidden=t.length===0,this.curveForm?this.curveForm.sync(e):(this.curveForm=new b(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(a.CURVE_POINT),new x(()=>this.currentFragment?.lightCurve?.[this.curveIndex],r=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,r)),()=>{})),this.syncTimeline()}editCurvePoint(e,t,r){let i;this.editFragment(n=>{const s=n.lightCurve??[];i={...s[t]},r(i),n.lightCurve=s.map((l,d)=>d===t?i:l).sort((l,d)=>l.t-d.t)},e),i&&(this.curveIndex=this.current?.fragments[e]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(e,t,r){const i=this.current?.fragments[e]?.lightCurve?.findIndex(n=>n.t===t)??-1;i<0||(this.fragmentIndex=e,this.editCurvePoint(e,i,n=>{n.t=r}),this.syncFragments(this.current,!0))}addCurvePointAt(e,t){const r=this.current?.fragments[e];if(!r)return;const i=(r.lightCurve??[]).findIndex(s=>Math.abs(s.t-t)<1);if(i>=0){this.selectFragment(e,i);return}const n=a.curvePointAt(r,t);this.editFragment(s=>{s.lightCurve=[...s.lightCurve??[],n].sort((l,d)=>l.t-d.t)},e),this.selectFragment(e,this.current?.fragments[e]?.lightCurve?.indexOf(n)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const e=this.curveIndex;this.editFragment(t=>{const r=(t.lightCurve??[]).filter((i,n)=>n!==e);r.length?t.lightCurve=r:delete t.lightCurve}),this.syncCurve(!0)}editReentry(e){const t=this.current;if(!t)return;const r={...t,track:[...t.track],fragments:[...t.fragments]};e(r),this.writeReentries(this.reentries.map(i=>i===t?r:i)),this.host.changed()}origin(){const e=this.host.sighting(),t=e.event?.place?.[0];if(!(t?.lat===void 0||t.lng===void 0))return{lat:t.lat,lng:t.lng,headingRad:(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(e){const t=this.origin();if(!t)return;const r=Math.round(this.host.currentTime()),i=Math.max(.05,Math.cos(t.lat*Math.PI/180)),n=(s,l)=>{const d=s*Math.cos(t.headingRad)-l*Math.sin(t.headingRad),f=s*Math.sin(t.headingRad)+l*Math.cos(t.headingRad);return{lat:t.lat+d/111.32,lng:t.lng+f/(111.32*i)}};return e==="fireball"?{track:[{t:r,...n(150,-45),altitudeKm:100},{t:r+3e3,...n(150,45),altitudeKm:60}],fragments:[{id:"main",absoluteMagnitude:-6}]}:{track:[{t:r,...n(300,-225),altitudeKm:82},{t:r+6e4,...n(300,225),altitudeKm:72}],fragments:[{id:"main",absoluteMagnitude:-4},{id:"piece-2",lagS:1.5,absoluteMagnitude:-2.5},{id:"piece-3",lagS:3,absoluteMagnitude:-1.5}]}}addReentry(e){const t=this.newOf(e);if(!t)return;let r=this.reentries.length+1;for(;this.reentries.some(n=>n.id===`${e}-${r}`);)r++;const i={id:`${e}-${r}`,...t};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(t=>t!==e)),this.host.changed(),this.sync())}writeReentries(e){const t=this.host.sighting();t.skyEvents=F.written({...t.skyEvents,reentries:e})}labelOf(e){const t=this.host.said().read(e.title)||e.object?.name;return t?`${t} (${e.id})`:e.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(e){return this.container.querySelector(`#${e}`)}}export{m as ReentryEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"A fireball or a re-entry seen while the recording runs: a meteor, a satellite or a rocket stage burning up. A fact of the sky, not a reading of the account. It is placed where it really was, latitude, longitude and height, and seen through the Earth's shape; its light lights the scene from there.",none:"No fireball or re-entry in this recording",reentry:"Fireball or re-entry",deleteReentry:"Delete it",addReentry:"Add a fireball or a re-entry",kindFireball:"Fireball (meteor)",kindReentry:"Re-entry (satellite, stage)",path:"Path",deletePlace:"Remove this point",fragments:"Pieces",fragment:"Piece",addFragment:"Add a piece behind the last",deleteFragment:"Remove this piece",curve:"Light curve",deleteCurvePoint:"Remove this point",noCurve:'No light curve: its absolute magnitude stands throughout. The "+" of its row on the timeline adds a point at the playhead.',addNowhere:"Give the recording a place first: a fireball is put in front of the witness",derivedNote:"An empty field shows, greyed, the value in use. Empty a field to go back to it. The smaller pieces each one sheds are set in the file.",timelineNote:`On the timeline, a diamond pressed is the point shown below, and the scene goes to its instant; drag it to move it in time. The "+" of a row puts a point at the playhead. The hatched parts are before the recording's start or after its end.`,addPointHere:"Add a point here, at the playhead",pointHere:"A point is at the playhead: press it to edit it",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll"};export{e as reentryEditorMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bólido o una reentrada visto durante la grabación: un meteoro, un satélite o una etapa de cohete que se consume. Un hecho del cielo, no una lectura del relato. Se coloca donde estaba realmente, latitud, longitud y altura, y se ve a través de la forma de la Tierra; su luz ilumina la escena desde allí.",none:"Ningún bólido ni reentrada en esta grabación",reentry:"Bólido o reentrada",deleteReentry:"Eliminarlo",addReentry:"Añadir un bólido o una reentrada",kindFireball:"Bólido (meteoro)",kindReentry:"Reentrada (satélite, etapa)",path:"Trayecto",deletePlace:"Quitar este punto",fragments:"Piezas",fragment:"Pieza",addFragment:"Añadir una pieza detrás de la última",deleteFragment:"Quitar esta pieza",curve:"Curva de luz",deleteCurvePoint:"Quitar este punto",noCurve:"Sin curva de luz: su magnitud absoluta vale todo el tiempo. El «+» de su fila en la línea de tiempo añade un punto en el cabezal.",addNowhere:"Dé primero un lugar a la grabación: un bólido se coloca delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado. Vacíe un campo para volver a él. Los fragmentos más pequeños que suelta cada pieza se ajustan en el archivo.",timelineNote:"En la línea de tiempo, un rombo pulsado es el punto mostrado debajo, y la escena va a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila pone un punto en el cabezal. Las partes rayadas están antes del inicio de la grabación o después de su final.",addPointHere:"Añadir un punto aquí, en el cabezal",pointHere:"Hay un punto en el cabezal: púlselo para editarlo",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar"};export{e as reentryEditorMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide ou une rentrée vu pendant l'enregistrement : un météore, un satellite ou un étage de fusée qui se consume. Un fait du ciel, pas une lecture du compte rendu. Il est placé là où il était vraiment, latitude, longitude et altitude, et vu à travers la forme de la Terre ; sa lumière éclaire la scène depuis là.",none:"Aucun bolide ni rentrée dans cet enregistrement",reentry:"Bolide ou rentrée",deleteReentry:"Le supprimer",addReentry:"Ajouter un bolide ou une rentrée",kindFireball:"Bolide (météore)",kindReentry:"Rentrée (satellite, étage)",path:"Trajet",deletePlace:"Retirer ce point",fragments:"Pièces",fragment:"Pièce",addFragment:"Ajouter une pièce derrière la dernière",deleteFragment:"Retirer cette pièce",curve:"Courbe de lumière",deleteCurvePoint:"Retirer ce point",noCurve:"Pas de courbe de lumière : sa magnitude absolue vaut tout du long. Le « + » de sa ligne sur la frise ajoute un point à la tête de lecture.",addNowhere:"Donnez d'abord un lieu à l'enregistrement : un bolide est placé devant le témoin",derivedNote:"Un champ vide montre, en grisé, la valeur utilisée. Videz un champ pour y revenir. Les débris plus petits que perd chaque pièce se règlent dans le fichier.",timelineNote:"Sur la frise, un losange pressé est le point affiché dessous, et la scène va à son instant ; faites-le glisser pour le déplacer dans le temps. Le « + » d'une ligne pose un point à la tête de lecture. Les parties hachurées sont avant le début de l'enregistrement ou après sa fin.",addPointHere:"Ajouter un point ici, à la tête de lecture",pointHere:"Un point est à la tête de lecture : pressez-le pour le modifier",zoomHint:"Pincez, ou Ctrl + molette, pour zoomer ; Maj + molette pour défiler"};export{e as reentryEditorMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={intro:"Un bolide o un rientro visto durante la registrazione: una meteora, un satellite o uno stadio di razzo che si consuma. Un fatto del cielo, non una lettura del resoconto. È posto dove era davvero, latitudine, longitudine e quota, e visto attraverso la forma della Terra; la sua luce illumina la scena da lì.",none:"Nessun bolide né rientro in questa registrazione",reentry:"Bolide o rientro",deleteReentry:"Eliminarlo",addReentry:"Aggiungere un bolide o un rientro",kindFireball:"Bolide (meteora)",kindReentry:"Rientro (satellite, stadio)",path:"Percorso",deletePlace:"Togliere questo punto",fragments:"Pezzi",fragment:"Pezzo",addFragment:"Aggiungere un pezzo dietro l'ultimo",deleteFragment:"Togliere questo pezzo",curve:"Curva di luce",deleteCurvePoint:"Togliere questo punto",noCurve:"Nessuna curva di luce: la sua magnitudine assoluta vale per tutto il tempo. Il «+» della sua riga sulla linea del tempo aggiunge un punto alla testina.",addNowhere:"Date prima un luogo alla registrazione: un bolide è posto davanti al testimone",derivedNote:"Un campo vuoto mostra, in grigio, il valore usato. Svuotate un campo per tornarci. I frammenti più piccoli che perde ogni pezzo si regolano nel file.",timelineNote:"Sulla linea del tempo, un rombo premuto è il punto mostrato sotto, e la scena va al suo istante; trascinatelo per spostarlo nel tempo. Il «+» di una riga mette un punto alla testina. Le parti tratteggiate sono prima dell'inizio della registrazione o dopo la sua fine.",addPointHere:"Aggiungere un punto qui, alla testina",pointHere:"C'è un punto alla testina: premetelo per modificarlo",zoomHint:"Pizzicate, o Ctrl + rotella, per ingrandire; Maiusc + rotella per scorrere"};export{e as reentryEditorMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Fireballs",name:"Re-entry",piece:"{name} — mag {mag}, {height} km up, {distance} km away",fragment:"{name}, a fragment — mag {mag}, {height} km up, {distance} km away"};export{e as reentryKindMessages_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bólidos",name:"Reentrada atmosférica",piece:"{name} — mag {mag}, a {height} km de altitud y {distance} km",fragment:"{name}, un fragmento — mag {mag}, a {height} km de altitud y {distance} km"};export{e as reentryKindMessages_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolides",name:"Rentrée atmosphérique",piece:"{name} — mag {mag}, à {height} km d'altitude et {distance} km",fragment:"{name}, un fragment — mag {mag}, à {height} km d'altitude et {distance} km"};export{e as reentryKindMessages_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={title:"Bolidi",name:"Rientro atmosferico",piece:"{name} — mag {mag}, a {height} km di quota e {distance} km",fragment:"{name}, un frammento — mag {mag}, a {height} km di quota e {distance} km"};export{e as reentryKindMessages_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Name",object:"Object",light:"Light",when:"When",fireballOrReEntry:"Fireball or re-entry",catalogueName:"Catalogue name",forAReEntryThePiece:'For a re-entry, the piece as the satellite catalogue names it: "SL-12 R/B". Empty for a meteor.',cosparId:"COSPAR id",t1968013c:"1968-013C",noradNumber:"NORAD number",pointOfThePath:"Point of the path",time:"Time",secondsOfTheRecordingNegativeBefore:"Seconds of the recording; negative before it began.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Above the ellipsoid. A meteor begins to glow between 120 and 80 km; a satellite breaks up near 80.",piece:"Piece",id:"Id",absoluteMagnitude:"Absolute magnitude",itsBrightnessSeenFrom100Km:"Its brightness seen from 100 km, as fireball reports give it: −4 or brighter is a fireball, −17 a superbolide. Its light curve, when it has one, stands instead.",colour:"Colour",train:"Train",howLongAStretchOfIts:"How long a stretch of its own past path still glows behind it, seconds.",behindTheLead:"Behind the lead",secondsBehindTheLeadingPointAlong:"Seconds behind the leading point along the same path: 0 is the leading piece itself.",seenFrom:"Seen from",whenItBreaksOffOrBegins:"When it breaks off or begins to glow; empty, the start of the path.",outAt:"Out at",whenItHasBurnedUpOr:"When it has burned up or slowed below glowing; empty, the end of the path.",pointOfTheLightCurve:"Point of the light curve",secondsOfTheRecording:"Seconds of the recording."};export{e as reentryParameterTexts_en};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nombre",object:"Objeto",light:"Luz",when:"Cuándo",fireballOrReEntry:"Bólido o reentrada",catalogueName:"Nombre en el catálogo",forAReEntryThePiece:"Para una reentrada, la pieza como la nombra el catálogo de satélites: «SL-12 R/B». Vacío para un meteoro.",cosparId:"Identificador COSPAR",t1968013c:"1968-013C",noradNumber:"Número NORAD",pointOfThePath:"Punto del trayecto",time:"Instante",secondsOfTheRecordingNegativeBefore:"Segundos de la grabación; negativos antes de su inicio.",position:"Posición",altitude:"Altitud",aboveTheEllipsoidAMeteorBegins:"Sobre el elipsoide. Un meteoro se enciende entre 120 y 80 km; un satélite se rompe hacia los 80.",piece:"Pieza",id:"Identificador",absoluteMagnitude:"Magnitud absoluta",itsBrightnessSeenFrom100Km:"Su brillo visto a 100 km, como lo dan los informes de bólidos: −4 o más brillante es un bólido, −17 un superbólido. Su curva de luz, cuando la tiene, vale en su lugar.",colour:"Color",train:"Estela",howLongAStretchOfIts:"Cuántos segundos de su propio trayecto siguen brillando detrás de él.",behindTheLead:"Retraso sobre la cabeza",secondsBehindTheLeadingPointAlong:"Segundos de retraso sobre el punto de cabeza, en el mismo trayecto: 0 es la propia pieza de cabeza.",seenFrom:"Visto desde",whenItBreaksOffOrBegins:"Cuando se desprende o se enciende; vacío, el inicio del trayecto.",outAt:"Apagado a",whenItHasBurnedUpOr:"Cuando se ha consumido o ha frenado demasiado para brillar; vacío, el final del trayecto.",pointOfTheLightCurve:"Punto de la curva de luz",secondsOfTheRecording:"Segundos de la grabación."};export{e as reentryParameterTexts_es};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nom",object:"Objet",light:"Lumière",when:"Quand",fireballOrReEntry:"Bolide ou rentrée",catalogueName:"Nom au catalogue",forAReEntryThePiece:"Pour une rentrée, la pièce comme le catalogue des satellites la nomme : « SL-12 R/B ». Vide pour un météore.",cosparId:"Identifiant COSPAR",t1968013c:"1968-013C",noradNumber:"Numéro NORAD",pointOfThePath:"Point du trajet",time:"Instant",secondsOfTheRecordingNegativeBefore:"Secondes de l'enregistrement ; négatives avant son début.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Au-dessus de l'ellipsoïde. Un météore s'allume entre 120 et 80 km ; un satellite se brise vers 80.",piece:"Pièce",id:"Identifiant",absoluteMagnitude:"Magnitude absolue",itsBrightnessSeenFrom100Km:"Son éclat vu à 100 km, comme le donnent les rapports de bolides : −4 ou plus brillant est un bolide, −17 un superbolide. Sa courbe de lumière, quand il en a une, vaut à la place.",colour:"Couleur",train:"Traînée",howLongAStretchOfIts:"Combien de secondes de son propre trajet brillent encore derrière lui.",behindTheLead:"Retard sur la tête",secondsBehindTheLeadingPointAlong:"Secondes de retard sur le point de tête, sur le même trajet : 0 est la pièce de tête elle-même.",seenFrom:"Vu à partir de",whenItBreaksOffOrBegins:"Quand il se détache ou s'allume ; vide, le début du trajet.",outAt:"Éteint à",whenItHasBurnedUpOr:"Quand il s'est consumé ou a trop ralenti pour briller ; vide, la fin du trajet.",pointOfTheLightCurve:"Point de la courbe de lumière",secondsOfTheRecording:"Secondes de l'enregistrement."};export{e as reentryParameterTexts_fr};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={name:"Nome",object:"Oggetto",light:"Luce",when:"Quando",fireballOrReEntry:"Bolide o rientro",catalogueName:"Nome a catalogo",forAReEntryThePiece:"Per un rientro, il pezzo come lo chiama il catalogo dei satelliti: «SL-12 R/B». Vuoto per una meteora.",cosparId:"Identificativo COSPAR",t1968013c:"1968-013C",noradNumber:"Numero NORAD",pointOfThePath:"Punto del percorso",time:"Istante",secondsOfTheRecordingNegativeBefore:"Secondi della registrazione; negativi prima del suo inizio.",position:"Posizione",altitude:"Altitudine",aboveTheEllipsoidAMeteorBegins:"Sopra l'ellissoide. Una meteora si accende tra 120 e 80 km; un satellite si spezza verso gli 80.",piece:"Pezzo",id:"Identificativo",absoluteMagnitude:"Magnitudine assoluta",itsBrightnessSeenFrom100Km:"La sua luminosità vista da 100 km, come la danno i rapporti sui bolidi: −4 o più brillante è un bolide, −17 un superbolide. La sua curva di luce, quando ce l'ha, vale al suo posto.",colour:"Colore",train:"Scia",howLongAStretchOfIts:"Quanti secondi del suo stesso percorso brillano ancora dietro di lui.",behindTheLead:"Ritardo sulla testa",secondsBehindTheLeadingPointAlong:"Secondi di ritardo sul punto di testa, sullo stesso percorso: 0 è il pezzo di testa stesso.",seenFrom:"Visto da",whenItBreaksOffOrBegins:"Quando si stacca o si accende; vuoto, l'inizio del percorso.",outAt:"Spento a",whenItHasBurnedUpOr:"Quando si è consumato o ha rallentato troppo per brillare; vuoto, la fine del percorso.",pointOfTheLightCurve:"Punto della curva di luce",secondsOfTheRecording:"Secondi della registrazione."};export{e as reentryParameterTexts_it};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ay as N}from"./rr0-sighting-editor.mjs";class i{static COMMON={envelopeVolumeM3:.19,massKg:.065,fuelKg:.03,burnS:600,insideExcessK:150,dragAreaM2:.25,luminousIntensityCd:10,widthM:.6,heightM:1,color:"#ff8a24",shape:"classic",paperColor:"#ffffff"};static FLAME_CDM2=5e3;static TITLE={en:"Sky lantern",fr:"Lanterne céleste",es:"Farolillo volador",it:"Lanterna volante"};static FLICKER=.15;static INSIDE_SHARE=2;static PAPER_FULL_CDM2=i.COMMON.luminousIntensityCd/(Math.PI*i.COMMON.widthM/2*i.COMMON.heightM/2);static SAMPLE_MS=1e3;static STEP_S=.05;static COOLING_S=20;static TURBULENCE={horizontalMS:.8,verticalMS:.3,timescaleS:30};static G=9.81;static R_AIR=287.05;static LAPSE=.0065;static expand(t){const e=t?.lanterns;return!t||!e||e.length===0?t:{...t,bodies:[...t.bodies,...e.flatMap(s=>i.bodiesOf(s))]}}static bodiesOf(t,e=N.NONE){return i.releasesOf(t).map((s,r)=>i.lanternBody(t,s,r,e))}static releasesOf(t){const e=[...t.releases??[]],s=t.group;if(!s||!(s.count>0))return e;const r=i.randomFrom(s.seed??1),o=n=>n.min+(n.max-n.min)*r(),M=s.count>1?(s.untilT-s.fromT)/(s.count-1):0,c=s.radiusM??20;for(let n=0;n<s.count;n++){const d=s.fromT+M*n+(r()-.5)*M,u=c*Math.sqrt(r()),a=2*Math.PI*r();e.push({t:Math.round(Math.min(s.untilT,Math.max(s.fromT,d))),explains:s.explains,eastM:Math.round(u*Math.sin(a)*10)/10,northM:Math.round(u*Math.cos(a)*10)/10,burnedS:s.burnedS,seed:Math.floor(r()*4294967296),lantern:{burnS:Math.round(o(s.burnS??{min:480,max:900})),insideExcessK:Math.round(o(s.insideExcessK??{min:125,max:175}))}})}return e}static randomFrom(t){let e=t>>>0;return()=>{e=e+1831565813>>>0;let s=e;return s=Math.imul(s^s>>>15,s|1),s^=s+Math.imul(s^s>>>7,s|61),((s^s>>>14)>>>0)/4294967296}}static typeOf(t,e){return{...i.COMMON,...t.lantern,...e.lantern}}static heatShare(t,e){if(e<0||e>=t.burnS)return 0;const s=t.burnS*.75;return e<=s?1:(t.burnS-e)/(t.burnS-s)}static windAt(t,e){const s=i.componentsOf(t.wind),r=t.windAloft;if(!r)return s;const o=i.componentsOf(r),M=Math.max(0,Math.min(1,e/r.atM));return{x:s.x+(o.x-s.x)*M,y:s.y+(o.y-s.y)*M}}static trajectory(t,e,s=i.SAMPLE_MS,r=N.NONE){const o=i.typeOf(t,e),M=t.site,c=M.altitudeM??0,n=Math.max(0,e.burnedS??0),d=M.originElevationM??0,u=(t.airTemperatureC??10)+273.15,a={x:M.eastM+(e.eastM??0),y:M.northM+(e.northM??0),z:e.altitudeM??c,vx:0,vy:0,vz:0,excessK:o.insideExcessK*i.heatShare(o,n)},h=i.STEP_S,R=Math.max(1,Math.round(s/1e3/h)),O=Math.ceil(Math.max(0,o.burnS-n)/h),E=[{t:e.t,x:a.x,y:a.y,z:a.z,light:i.heatShare(o,n),tiltDeg:0,tiltTowardDeg:0}],S=i.gusts(t.turbulence??i.TURBULENCE,i.seedOf(e),h);for(let x=1;x<=O;x++){const I=x*h,C=n+I,A=i.heatShare(o,C);a.excessK+=(o.insideExcessK*A-a.excessK)*Math.min(1,h/i.COOLING_S);const P=a.z-c,y=u-i.LAPSE*Math.max(0,P),K=101325*Math.exp(-(a.z+d)/8400),f=K/(i.R_AIR*y),T=K/(i.R_AIR*(y+a.excessK)),p=o.massKg-o.fuelKg*Math.min(1,C/o.burnS),F=(f-T)*o.envelopeVolumeM3*i.G,b=p+T*o.envelopeVolumeM3+.5*f*o.envelopeVolumeM3,w=i.windAt(t,P),g=S(),l={x:w.x+g.x,y:w.y+g.y,z:g.z},G=a.vx-l.x,U=a.vy-l.y,B=a.vz-l.z,m=.5*f*o.dragAreaM2*Math.hypot(G,U,B)/b;a.vx=(a.vx+m*h*l.x)/(1+m*h),a.vy=(a.vy+m*h*l.y)/(1+m*h),a.vz=(a.vz+m*h*l.z+(F-p*i.G)/b*h)/(1+m*h);const D=a.z<=c&&a.vz<=0;D&&(a.vx=0,a.vy=0,a.vz=0);const V=a.z;if(a.x+=a.vx*h,a.y+=a.vy*h,a.z=Math.max(c,a.z+a.vz*h),r.empty||i.keptOut(a,V,o.widthM/2,r),x%R===0||x===O){const z=l.x-a.vx,v=l.y-a.vy,j=.5*f*o.dragAreaM2*Math.hypot(z,v,l.z-a.vz)*Math.hypot(z,v);E.push({t:e.t+Math.round(I*1e3),x:a.x,y:a.y,z:a.z,light:A,tiltDeg:D?0:Math.atan2(j,p*i.G)*180/Math.PI,tiltTowardDeg:(Math.atan2(z,v)*180/Math.PI+360)%360})}}return E}static keptOut(t,e,s,r){const o=r.inside(t.x,t.y,t.z,s);if(!o)return;const M=o.box.topM;if(e>=M-1e-6||t.z>=M-1e-6){t.z<M&&(t.z=M,t.vz<0&&(t.vz=0));return}t.x+=o.nx*o.depthM,t.y+=o.ny*o.depthM;const c=t.vx*o.nx+t.vy*o.ny;c<0&&(t.vx-=c*o.nx,t.vy-=c*o.ny)}static seedOf(t){return t.seed!==void 0?t.seed:Math.round(t.t)*2654435761+Math.round((t.eastM??0)*100)*40503+Math.round((t.northM??0)*100)>>>0}static gusts(t,e,s){const r=i.randomFrom(e),o=()=>Math.sqrt(-2*Math.log(Math.max(1e-12,r())))*Math.cos(2*Math.PI*r()),M=t.timescaleS>0?Math.exp(-s/t.timescaleS):0,c=Math.sqrt(1-M*M),n={x:t.horizontalMS*o(),y:t.horizontalMS*o(),z:t.verticalMS*o()};return()=>(n.x=M*n.x+c*t.horizontalMS*o(),n.y=M*n.y+c*t.horizontalMS*o(),n.z=M*n.z+c*t.verticalMS*o(),n)}static componentsOf(t){if(!t)return{x:0,y:0};const e=t.towardDeg*Math.PI/180;return{x:Math.sin(e)*t.speedMS,y:Math.cos(e)*t.speedMS}}static lanternBody(t,e,s,r){const o=i.typeOf(t,e),M=o.luminousIntensityCd/(Math.PI*o.widthM/2*o.heightM/2),c=i.trajectory(t,e,i.SAMPLE_MS,r),n={widthM:o.widthM,lengthM:o.widthM,heightM:o.heightM},d=i.through(o.color,o.paperColor),u=c.map((a,h)=>({t:a.t,eastM:a.x,northM:a.y,altitudeM:a.z,...h===0?{sizeM:n,present:!0}:{},attitude:{headingDeg:Math.round(a.tiltTowardDeg),pitchDeg:-Math.round(a.tiltDeg*10)/10},appearance:{color:d,luminanceCdM2:M*a.light,...h===0?{albedo:.6,haloScale:1}:{}},lights:i.lightsOf(M*a.light)}));return u.push({t:c[c.length-1].t+1,present:!1}),{id:`${t.id}-lantern-${s+1}`,title:i.TITLE,explains:e.explains,model:{id:`ufoathome-sky-lantern-${o.shape}`},modelParameters:{paperColor:o.paperColor},flicker:i.FLICKER,altitudeFrom:{eastM:c[0].x,northM:c[0].y},track:u}}static lightsOf(t){return{paper:t,"paper-inside":t*i.INSIDE_SHARE,flame:t>0?i.FLAME_CDM2*t/i.PAPER_FULL_CDM2:0}}static through(t,e){const s=n=>[1,3,5].map(d=>parseInt(n.slice(d,d+2),16)/255),r=s(t),o=s(e),M=r.map((n,d)=>n*o[d]),c=Math.max(...r)/(Math.max(...M)||1);return"#"+M.map(n=>Math.round(Math.min(1,n*c)*255).toString(16).padStart(2,"0")).join("")}}export{i as SkyLantern};
|