@rr0/ufoathome 0.187.0 → 0.188.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist-embed-scene/{BeamEditor-RO5pPyvd.js → BeamEditor-Cu6NLBA7.js} +1 -1
  2. package/dist-embed-scene/BirdEditor-C7dHFbA6.js +16 -0
  3. package/dist-embed-scene/BirdEditorMessages_en-CN1OJud9.js +1 -0
  4. package/dist-embed-scene/BirdEditorMessages_es-DDEnjRrz.js +1 -0
  5. package/dist-embed-scene/BirdEditorMessages_fr-hL72V8wm.js +1 -0
  6. package/dist-embed-scene/BirdEditorMessages_it-BmLyiPYp.js +1 -0
  7. package/dist-embed-scene/BirdFlock-DOjnGqqt.js +1 -0
  8. package/dist-embed-scene/BirdParameterTexts_en-C6FkYUww.js +1 -0
  9. package/dist-embed-scene/BirdParameterTexts_es-T8JyeNlI.js +1 -0
  10. package/dist-embed-scene/BirdParameterTexts_fr-BiTR-olu.js +1 -0
  11. package/dist-embed-scene/BirdParameterTexts_it-oQY4DX6B.js +1 -0
  12. package/dist-embed-scene/DecoyFlare-DUt1_LcW.js +1 -0
  13. package/dist-embed-scene/LanternEditor-D2mmscWP.js +24 -0
  14. package/dist-embed-scene/{LaunchEditor-C6-Ovt8V.js → LaunchEditor-fuFCnkV4.js} +1 -1
  15. package/dist-embed-scene/{ModuleSession-CwJVkcpn.js → ModuleSession-BAeWIbSU.js} +2 -2
  16. package/dist-embed-scene/{ModuleThree-BHjFJ_bC.js → ModuleThree-BLw9W-dX.js} +1 -1
  17. package/dist-embed-scene/{ParameterForm-BEITBqB0.js → ParameterForm-DP2rnIe1.js} +5 -5
  18. package/dist-embed-scene/{ReentryEditor-BAC0cNg_.js → ReentryEditor-BR99W168.js} +1 -1
  19. package/dist-embed-scene/SkyLantern-CIoY8lu4.js +1 -0
  20. package/dist-embed-scene/rr0-scene.mjs +367 -365
  21. package/dist-embed-scene/{sightingSchema-Dz2hCtcS.js → sightingSchema-Dk010uUD.js} +1 -1
  22. package/dist-embed-sighting/{BeamEditor-mDSavUYe.js → BeamEditor-B1s17C_I.js} +1 -1
  23. package/dist-embed-sighting/{BeamSystem-5WJWP1Ad.js → BeamSystem-DTraCa17.js} +1 -1
  24. package/dist-embed-sighting/BirdEditor-B__-UnpK.js +16 -0
  25. package/dist-embed-sighting/BirdEditorMessages_en-CN1OJud9.js +1 -0
  26. package/dist-embed-sighting/BirdEditorMessages_es-DDEnjRrz.js +1 -0
  27. package/dist-embed-sighting/BirdEditorMessages_fr-hL72V8wm.js +1 -0
  28. package/dist-embed-sighting/BirdEditorMessages_it-BmLyiPYp.js +1 -0
  29. package/dist-embed-sighting/BirdFlock-BbObIeXW.js +1 -0
  30. package/dist-embed-sighting/BirdParameterTexts_en-C6FkYUww.js +1 -0
  31. package/dist-embed-sighting/BirdParameterTexts_es-T8JyeNlI.js +1 -0
  32. package/dist-embed-sighting/BirdParameterTexts_fr-BiTR-olu.js +1 -0
  33. package/dist-embed-sighting/BirdParameterTexts_it-oQY4DX6B.js +1 -0
  34. package/dist-embed-sighting/{CaseReportExport-B9N0s2JX.js → CaseReportExport-DbGfu7DP.js} +1 -1
  35. package/dist-embed-sighting/DecoyFlare-DUt1_LcW.js +1 -0
  36. package/dist-embed-sighting/{GLTFLoader-BrNCkGT3.js → GLTFLoader-61IhKnLS.js} +1 -1
  37. package/{dist-embed-scene/LanternEditor-B6YtPdnz.js → dist-embed-sighting/LanternEditor-DIun2igg.js} +17 -2
  38. package/dist-embed-sighting/{LaserBeam-BuVmy_0s.js → LaserBeam-R7ItI6m-.js} +1 -1
  39. package/dist-embed-sighting/{LaunchEditor-DZ2V0dHc.js → LaunchEditor-CbQXmqaL.js} +1 -1
  40. package/dist-embed-sighting/{LaunchPlume-Quo7JzI8.js → LaunchPlume-uRfBKA0Y.js} +1 -1
  41. package/dist-embed-sighting/{LaunchSimulation-DZ4pDnrh.js → LaunchSimulation-DgsYJUKz.js} +1 -1
  42. package/dist-embed-sighting/{ModuleSession-xCJtw_IT.js → ModuleSession-CDsk4Atg.js} +2 -2
  43. package/dist-embed-sighting/ModuleThree-ZXC7TlGn.js +1 -0
  44. package/dist-embed-sighting/{ParameterForm-GKeZmZAL.js → ParameterForm-CkZQ1FlH.js} +11 -11
  45. package/dist-embed-sighting/{ReentryEditor-CnYz3Q7Q.js → ReentryEditor-DS0nJdBD.js} +2 -2
  46. package/dist-embed-sighting/{ReentrySimulation-BnYP6UwW.js → ReentrySimulation-BDnSb3zB.js} +1 -1
  47. package/dist-embed-sighting/SkyLantern--RJZtEMU.js +1 -0
  48. package/dist-embed-sighting/{TimelineTracks-BjJwL-DC.js → TimelineTracks-CvGxdpGb.js} +1 -1
  49. package/dist-embed-sighting/rr0-sighting.mjs +393 -391
  50. package/dist-embed-sighting/{sightingSchema-Dz2hCtcS.js → sightingSchema-Dk010uUD.js} +1 -1
  51. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-ClwhCo4B.js → BallesterGuaspAssessor-DysBC5VV.js} +1 -1
  52. package/dist-embed-sighting-editor/{BeamEditor-vxinYAhV.js → BeamEditor-DQcdww5w.js} +1 -1
  53. package/dist-embed-sighting-editor/{BeamSystem-BMyP16H9.js → BeamSystem-d2pPAwht.js} +1 -1
  54. package/dist-embed-sighting-editor/BirdEditor-CsyXenUx.js +16 -0
  55. package/dist-embed-sighting-editor/BirdEditorMessages_en-CN1OJud9.js +1 -0
  56. package/dist-embed-sighting-editor/BirdEditorMessages_es-DDEnjRrz.js +1 -0
  57. package/dist-embed-sighting-editor/BirdEditorMessages_fr-hL72V8wm.js +1 -0
  58. package/dist-embed-sighting-editor/BirdEditorMessages_it-BmLyiPYp.js +1 -0
  59. package/dist-embed-sighting-editor/BirdFlock-CSw6ge15.js +1 -0
  60. package/dist-embed-sighting-editor/BirdParameterTexts_en-C6FkYUww.js +1 -0
  61. package/dist-embed-sighting-editor/BirdParameterTexts_es-T8JyeNlI.js +1 -0
  62. package/dist-embed-sighting-editor/BirdParameterTexts_fr-BiTR-olu.js +1 -0
  63. package/dist-embed-sighting-editor/BirdParameterTexts_it-oQY4DX6B.js +1 -0
  64. package/dist-embed-sighting-editor/{CaseReportExport-RjSpSvFT.js → CaseReportExport-Cc4W9Lim.js} +1 -1
  65. package/dist-embed-sighting-editor/{ContrailSystem-Y75rFfLJ.js → ContrailSystem-B4tXvQXF.js} +1 -1
  66. package/dist-embed-sighting-editor/{ControlPasses-D9A8NPRi.js → ControlPasses-Bo1RUT7-.js} +1 -1
  67. package/dist-embed-sighting-editor/{CoverageAssessor-CN-3cMS9.js → CoverageAssessor-tRNaBy0f.js} +1 -1
  68. package/dist-embed-sighting-editor/DecoyFlare-DUt1_LcW.js +1 -0
  69. package/dist-embed-sighting-editor/{GLTFLoader-GAmboVFk.js → GLTFLoader-B3aYB7cS.js} +1 -1
  70. package/dist-embed-sighting-editor/{HeadlightSystem-CDAFEIP8.js → HeadlightSystem-YWAhxcbe.js} +1 -1
  71. package/dist-embed-sighting-editor/{HynekAssessor-CKjvYcVe.js → HynekAssessor-IoHDLJUa.js} +1 -1
  72. package/dist-embed-sighting-editor/{InterviewEditorElement-Bq8INvJ8.js → InterviewEditorElement-ByXtSShu.js} +2 -2
  73. package/dist-embed-sighting-editor/LanternEditor-BYeK9kFU.js +24 -0
  74. package/dist-embed-sighting-editor/{LaserBeam-Ct6opxMs.js → LaserBeam-DOGz1dOz.js} +1 -1
  75. package/dist-embed-sighting-editor/{LaunchEditor-BfggZKq5.js → LaunchEditor-0BCDGChg.js} +1 -1
  76. package/dist-embed-sighting-editor/{LaunchPlume-CT777Ivp.js → LaunchPlume-DdX9-Rlw.js} +1 -1
  77. package/dist-embed-sighting-editor/{LaunchSimulation-BSlF3Uq4.js → LaunchSimulation-BkdI45NE.js} +1 -1
  78. package/dist-embed-sighting-editor/ModuleConformance-C-KZlNCi.js +2 -0
  79. package/dist-embed-sighting-editor/{ModuleSession-BZ3xmE8Y.js → ModuleSession-B8U-T57q.js} +2 -2
  80. package/dist-embed-sighting-editor/ModuleThree-Ce5HhfdG.js +1 -0
  81. package/dist-embed-sighting-editor/{ModulesPanelElement-DuyRnhEj.js → ModulesPanelElement-BndWwnmX.js} +3 -3
  82. package/dist-embed-sighting-editor/{ModulesPanelMessages_en-t8LOPRx0.js → ModulesPanelMessages_en-DuwrY3Pm.js} +1 -1
  83. package/dist-embed-sighting-editor/{ModulesPanelMessages_es-DQFuXaUa.js → ModulesPanelMessages_es-Bq5X-XuT.js} +1 -1
  84. package/dist-embed-sighting-editor/{ModulesPanelMessages_fr-DZMwqDs0.js → ModulesPanelMessages_fr-B8cSDc6o.js} +1 -1
  85. package/dist-embed-sighting-editor/{ModulesPanelMessages_it-DfX1ObVK.js → ModulesPanelMessages_it-BdC626aJ.js} +1 -1
  86. package/dist-embed-sighting-editor/{NearestApproach-DkpM-8sl.js → NearestApproach-C48vgZ_Z.js} +1 -1
  87. package/dist-embed-sighting-editor/{PoherAssessor-C5-F9VMn.js → PoherAssessor-DRLbEZBS.js} +1 -1
  88. package/dist-embed-sighting-editor/{RailwaySystem-DG0WQQfc.js → RailwaySystem-SB2r1oRG.js} +1 -1
  89. package/dist-embed-sighting-editor/{ReentryEditor-BgpCftyc.js → ReentryEditor-JhfAVd18.js} +1 -1
  90. package/dist-embed-sighting-editor/{ReentrySimulation-BHjJYTL1.js → ReentrySimulation-DpIG9b07.js} +1 -1
  91. package/dist-embed-sighting-editor/{ReferenceSystem-DMmt1GR2.js → ReferenceSystem-DlpoDXXV.js} +1 -1
  92. package/dist-embed-sighting-editor/{SightingFileEditor-6F5VGGUe.js → SightingFileEditor-Wx9tn4bw.js} +1 -1
  93. package/dist-embed-sighting-editor/SkyLantern-B0V58mct.js +1 -0
  94. package/dist-embed-sighting-editor/{TraceSystem-eEbqZeYs.js → TraceSystem-Cz4lbziC.js} +2 -2
  95. package/dist-embed-sighting-editor/{WaterSystem-CbmcniYb.js → WaterSystem-C39XDvNY.js} +2 -2
  96. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +480 -476
  97. package/dist-embed-sighting-editor/{sightingSchema-Dz2hCtcS.js → sightingSchema-Dk010uUD.js} +1 -1
  98. package/package.json +1 -1
  99. package/dist-embed-sighting/LanternEditor-Czo3tup9.js +0 -9
  100. package/dist-embed-sighting/ModuleThree-D1QGUDll.js +0 -1
  101. package/dist-embed-sighting-editor/LanternEditor-CKKUIplQ.js +0 -9
  102. package/dist-embed-sighting-editor/ModuleConformance-Qm-EHVoc.js +0 -2
  103. package/dist-embed-sighting-editor/ModuleThree-BFSbIe18.js +0 -1
@@ -0,0 +1 @@
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};