@splinetool/runtime 2.0.66 → 2.0.67

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 (321) hide show
  1. package/build/{runtime-aiAssistant-P56R6EIU.js → runtime-aiAssistant-H4HPEKWI.js} +1 -1
  2. package/build/runtime-aiAssistant-H4HPEKWI.js.br +0 -0
  3. package/build/runtime-aiAssistant-H4HPEKWI.js.gz +0 -0
  4. package/build/{runtime-apiServices-ADKEC7LW.js → runtime-apiServices-4EEP2MQJ.js} +1 -1
  5. package/build/runtime-apiServices-4EEP2MQJ.js.br +0 -0
  6. package/build/runtime-apiServices-4EEP2MQJ.js.gz +0 -0
  7. package/build/{runtime-audio-YJWGAMZD.js → runtime-audio-QNBF2XCL.js} +1 -1
  8. package/build/runtime-audio-QNBF2XCL.js.br +0 -0
  9. package/build/runtime-audio-QNBF2XCL.js.gz +0 -0
  10. package/build/{runtime-chunk-LYYY4YGG.js → runtime-chunk-52ERQSL4.js} +1 -1
  11. package/build/runtime-chunk-52ERQSL4.js.br +0 -0
  12. package/build/runtime-chunk-52ERQSL4.js.gz +0 -0
  13. package/build/{runtime-chunk-LU45RPBP.js → runtime-chunk-5IODBOHZ.js} +1 -1
  14. package/build/runtime-chunk-5IODBOHZ.js.br +0 -0
  15. package/build/runtime-chunk-5IODBOHZ.js.gz +0 -0
  16. package/build/{runtime-chunk-L6ERXCVI.js → runtime-chunk-5WKK4AK6.js} +1 -1
  17. package/build/runtime-chunk-5WKK4AK6.js.br +0 -0
  18. package/build/runtime-chunk-5WKK4AK6.js.gz +0 -0
  19. package/build/{runtime-chunk-PUFOPNOK.js → runtime-chunk-6SIPKGSQ.js} +1 -1
  20. package/build/runtime-chunk-6SIPKGSQ.js.br +0 -0
  21. package/build/runtime-chunk-6SIPKGSQ.js.gz +0 -0
  22. package/build/{runtime-chunk-PKIQR6HY.js → runtime-chunk-AJ6RJL72.js} +1 -1
  23. package/build/runtime-chunk-AJ6RJL72.js.br +0 -0
  24. package/build/runtime-chunk-AJ6RJL72.js.gz +0 -0
  25. package/build/{runtime-chunk-QRYUKNF2.js → runtime-chunk-BEKJBZR2.js} +1 -1
  26. package/build/runtime-chunk-BEKJBZR2.js.br +0 -0
  27. package/build/runtime-chunk-BEKJBZR2.js.gz +0 -0
  28. package/build/{runtime-chunk-G3JY5FTO.js → runtime-chunk-CAMNTARH.js} +1 -1
  29. package/build/runtime-chunk-CAMNTARH.js.br +0 -0
  30. package/build/runtime-chunk-CAMNTARH.js.gz +0 -0
  31. package/build/{runtime-chunk-UQJOH5LM.js → runtime-chunk-DF4CFBLV.js} +1 -1
  32. package/build/runtime-chunk-DF4CFBLV.js.br +0 -0
  33. package/build/runtime-chunk-DF4CFBLV.js.gz +0 -0
  34. package/build/{runtime-chunk-DC4SLIAM.js → runtime-chunk-E5DWC4WG.js} +1 -1
  35. package/build/runtime-chunk-E5DWC4WG.js.br +0 -0
  36. package/build/runtime-chunk-E5DWC4WG.js.gz +0 -0
  37. package/build/{runtime-chunk-XFDV5BI7.js → runtime-chunk-EKZWJP4E.js} +1 -1
  38. package/build/runtime-chunk-EKZWJP4E.js.br +3 -0
  39. package/build/runtime-chunk-EKZWJP4E.js.gz +0 -0
  40. package/build/{runtime-chunk-DUQ2PW7L.js → runtime-chunk-EM7KULU2.js} +1 -1
  41. package/build/runtime-chunk-EM7KULU2.js.br +0 -0
  42. package/build/runtime-chunk-EM7KULU2.js.gz +0 -0
  43. package/build/runtime-chunk-H3NKMXAA.js +1 -0
  44. package/build/runtime-chunk-H3NKMXAA.js.br +0 -0
  45. package/build/runtime-chunk-H3NKMXAA.js.gz +0 -0
  46. package/build/{runtime-chunk-QDMMX2RH.js → runtime-chunk-HGWI2JBT.js} +1 -1
  47. package/build/runtime-chunk-HGWI2JBT.js.br +0 -0
  48. package/build/runtime-chunk-HGWI2JBT.js.gz +0 -0
  49. package/build/{runtime-chunk-3B2NPUWD.js → runtime-chunk-JEENI54C.js} +1 -1
  50. package/build/runtime-chunk-JEENI54C.js.br +0 -0
  51. package/build/runtime-chunk-JEENI54C.js.gz +0 -0
  52. package/build/{runtime-chunk-BJXRV54U.js → runtime-chunk-JII4DUKW.js} +1 -1
  53. package/build/runtime-chunk-JII4DUKW.js.br +0 -0
  54. package/build/runtime-chunk-JII4DUKW.js.gz +0 -0
  55. package/build/{runtime-chunk-564IIVBV.js → runtime-chunk-KLCXINYB.js} +1 -1
  56. package/build/runtime-chunk-KLCXINYB.js.br +0 -0
  57. package/build/runtime-chunk-KLCXINYB.js.gz +0 -0
  58. package/build/{runtime-chunk-PE7JIDJV.js → runtime-chunk-LQKJ5BQE.js} +1 -1
  59. package/build/runtime-chunk-LQKJ5BQE.js.br +0 -0
  60. package/build/runtime-chunk-LQKJ5BQE.js.gz +0 -0
  61. package/build/{runtime-chunk-P4TVEPXM.js → runtime-chunk-NBAYLCDH.js} +1 -1
  62. package/build/runtime-chunk-NBAYLCDH.js.br +0 -0
  63. package/build/runtime-chunk-NBAYLCDH.js.gz +0 -0
  64. package/build/{runtime-chunk-D373PZPG.js → runtime-chunk-NPGIHYRE.js} +1 -1
  65. package/build/runtime-chunk-NPGIHYRE.js.br +0 -0
  66. package/build/runtime-chunk-NPGIHYRE.js.gz +0 -0
  67. package/build/{runtime-chunk-I6CPIGMQ.js → runtime-chunk-P52UKW7M.js} +1 -1
  68. package/build/runtime-chunk-P52UKW7M.js.br +0 -0
  69. package/build/runtime-chunk-P52UKW7M.js.gz +0 -0
  70. package/build/{runtime-chunk-K3UQCG3P.js → runtime-chunk-RNMPWHS7.js} +1 -1
  71. package/build/runtime-chunk-RNMPWHS7.js.br +0 -0
  72. package/build/runtime-chunk-RNMPWHS7.js.gz +0 -0
  73. package/build/runtime-chunk-SX4257ET.js +1 -0
  74. package/build/runtime-chunk-SX4257ET.js.br +0 -0
  75. package/build/runtime-chunk-SX4257ET.js.gz +0 -0
  76. package/build/{runtime-chunk-E4IP6WPJ.js → runtime-chunk-TO6TF2CM.js} +1 -1
  77. package/build/{runtime-chunk-E4IP6WPJ.js.br → runtime-chunk-TO6TF2CM.js.br} +0 -0
  78. package/build/runtime-chunk-TO6TF2CM.js.gz +0 -0
  79. package/build/{runtime-chunk-EFBUAWKV.js → runtime-chunk-TPQKWZXC.js} +1 -1
  80. package/build/runtime-chunk-TPQKWZXC.js.br +0 -0
  81. package/build/runtime-chunk-TPQKWZXC.js.gz +0 -0
  82. package/build/{runtime-chunk-JVQBFLYF.js → runtime-chunk-V3HWXCOG.js} +1 -1
  83. package/build/runtime-chunk-V3HWXCOG.js.br +0 -0
  84. package/build/runtime-chunk-V3HWXCOG.js.gz +0 -0
  85. package/build/{runtime-chunk-ITPAD3LR.js → runtime-chunk-XITQ5OWF.js} +1 -1
  86. package/build/runtime-chunk-XITQ5OWF.js.br +0 -0
  87. package/build/runtime-chunk-XITQ5OWF.js.gz +0 -0
  88. package/build/{runtime-chunk-LGRD54SI.js → runtime-chunk-YILRZIDA.js} +1 -1
  89. package/build/runtime-chunk-YILRZIDA.js.br +0 -0
  90. package/build/runtime-chunk-YILRZIDA.js.gz +0 -0
  91. package/build/{runtime-chunk-JAELIJQZ.js → runtime-chunk-ZJVCGO54.js} +1 -1
  92. package/build/runtime-chunk-ZJVCGO54.js.br +0 -0
  93. package/build/runtime-chunk-ZJVCGO54.js.gz +0 -0
  94. package/build/runtime-classicRuntime-ZQS2UDZ6.js +1 -0
  95. package/build/runtime-classicRuntime-ZQS2UDZ6.js.br +0 -0
  96. package/build/runtime-classicRuntime-ZQS2UDZ6.js.gz +0 -0
  97. package/build/runtime-cloners-QC4TYCYC.js +1 -0
  98. package/build/runtime-cloners-QC4TYCYC.js.br +0 -0
  99. package/build/runtime-cloners-QC4TYCYC.js.gz +0 -0
  100. package/build/{runtime-components-FSOOTPFP.js → runtime-components-S4SR4RSC.js} +1 -1
  101. package/build/runtime-components-S4SR4RSC.js.br +0 -0
  102. package/build/runtime-components-S4SR4RSC.js.gz +0 -0
  103. package/build/{runtime-conditional-L7VSDRAB.js → runtime-conditional-5E7HC5YV.js} +1 -1
  104. package/build/runtime-conditional-5E7HC5YV.js.br +0 -0
  105. package/build/runtime-conditional-5E7HC5YV.js.gz +0 -0
  106. package/build/{runtime-createDestroy-QKX6M7W4.js → runtime-createDestroy-M54T2TVG.js} +1 -1
  107. package/build/runtime-createDestroy-M54T2TVG.js.br +0 -0
  108. package/build/runtime-createDestroy-M54T2TVG.js.gz +0 -0
  109. package/build/{runtime-dragDrop-EKI3PCPJ.js → runtime-dragDrop-HCD7CVAC.js} +1 -1
  110. package/build/runtime-dragDrop-HCD7CVAC.js.br +0 -0
  111. package/build/runtime-dragDrop-HCD7CVAC.js.gz +0 -0
  112. package/build/{runtime-gameControls-E2GZ6EHC.js → runtime-gameControls-KOJEEARH.js} +1 -1
  113. package/build/runtime-gameControls-KOJEEARH.js.br +0 -0
  114. package/build/runtime-gameControls-KOJEEARH.js.gz +0 -0
  115. package/build/runtime-hair-BDL6P7P4.js +1 -0
  116. package/build/runtime-hair-BDL6P7P4.js.br +2 -0
  117. package/build/runtime-hair-BDL6P7P4.js.gz +0 -0
  118. package/build/{runtime-mergeStaticGeometries-PUYA5EV6.js → runtime-mergeStaticGeometries-S7H5BP7X.js} +1 -1
  119. package/build/runtime-mergeStaticGeometries-S7H5BP7X.js.br +0 -0
  120. package/build/runtime-mergeStaticGeometries-S7H5BP7X.js.gz +0 -0
  121. package/build/{runtime-miscActions-GGVSP7JK.js → runtime-miscActions-WK6CST52.js} +1 -1
  122. package/build/runtime-miscActions-WK6CST52.js.br +0 -0
  123. package/build/runtime-miscActions-WK6CST52.js.gz +0 -0
  124. package/build/{runtime-mouseHover-MMU3GSN4.js → runtime-mouseHover-TRNZW23U.js} +1 -1
  125. package/build/runtime-mouseHover-TRNZW23U.js.br +0 -0
  126. package/build/runtime-mouseHover-TRNZW23U.js.gz +0 -0
  127. package/build/{runtime-particles-H3X2X7GM.js → runtime-particles-JEOQBSYP.js} +1 -1
  128. package/build/runtime-particles-JEOQBSYP.js.br +0 -0
  129. package/build/runtime-particles-JEOQBSYP.js.gz +0 -0
  130. package/build/runtime-paths-GDYZOJXT.js +1 -0
  131. package/build/runtime-paths-GDYZOJXT.js.br +0 -0
  132. package/build/runtime-paths-GDYZOJXT.js.gz +0 -0
  133. package/build/{runtime-resize-4IJCXNFR.js → runtime-resize-2JJXDQIS.js} +1 -1
  134. package/build/runtime-resize-2JJXDQIS.js.br +0 -0
  135. package/build/runtime-resize-2JJXDQIS.js.gz +0 -0
  136. package/build/{runtime-sceneTransition-F6OVIBVY.js → runtime-sceneTransition-IVIEMBAO.js} +1 -1
  137. package/build/runtime-sceneTransition-IVIEMBAO.js.br +0 -0
  138. package/build/runtime-sceneTransition-IVIEMBAO.js.gz +0 -0
  139. package/build/{runtime-scroll-ZPNGUYQD.js → runtime-scroll-WU6P7WTX.js} +1 -1
  140. package/build/runtime-scroll-WU6P7WTX.js.br +0 -0
  141. package/build/runtime-scroll-WU6P7WTX.js.gz +0 -0
  142. package/build/runtime-shapeBlends-6AE23AF4.js +1 -0
  143. package/build/runtime-shapeBlends-6AE23AF4.js.br +0 -0
  144. package/build/runtime-shapeBlends-6AE23AF4.js.gz +0 -0
  145. package/build/{runtime-text-PQV2VUAT.js → runtime-text-L6OKDPH7.js} +1 -1
  146. package/build/runtime-text-L6OKDPH7.js.br +0 -0
  147. package/build/runtime-text-L6OKDPH7.js.gz +0 -0
  148. package/build/{runtime-textInputs-GNG4HVQG.js → runtime-textInputs-PH5W5XEI.js} +1 -1
  149. package/build/runtime-textInputs-PH5W5XEI.js.br +0 -0
  150. package/build/runtime-textInputs-PH5W5XEI.js.gz +0 -0
  151. package/build/{runtime-timeline-P7IDRC5D.js → runtime-timeline-GWRYX4OZ.js} +1 -1
  152. package/build/runtime-timeline-GWRYX4OZ.js.br +0 -0
  153. package/build/runtime-timeline-GWRYX4OZ.js.gz +0 -0
  154. package/build/{runtime-tracking-OKMQ7ZRT.js → runtime-tracking-5KAUGGRX.js} +1 -1
  155. package/build/runtime-tracking-5KAUGGRX.js.br +0 -0
  156. package/build/runtime-tracking-5KAUGGRX.js.gz +0 -0
  157. package/build/{runtime-transitions-EMKQKM7N.js → runtime-transitions-LOZ4QGPC.js} +1 -1
  158. package/build/runtime-transitions-LOZ4QGPC.js.br +0 -0
  159. package/build/runtime-transitions-LOZ4QGPC.js.gz +0 -0
  160. package/build/{runtime-ui2d-AURBDYA2.js → runtime-ui2d-U4DFO45X.js} +1 -1
  161. package/build/runtime-ui2d-U4DFO45X.js.br +0 -0
  162. package/build/runtime-ui2d-U4DFO45X.js.gz +0 -0
  163. package/build/{runtime-updater-6QPW4RJT.js → runtime-updater-XM5S5MNN.js} +1 -1
  164. package/build/runtime-updater-XM5S5MNN.js.br +0 -0
  165. package/build/runtime-updater-XM5S5MNN.js.gz +0 -0
  166. package/build/{runtime-variables-VMN76G6O.js → runtime-variables-ASB7SAA2.js} +1 -1
  167. package/build/runtime-variables-ASB7SAA2.js.br +0 -0
  168. package/build/runtime-variables-ASB7SAA2.js.gz +0 -0
  169. package/build/{runtime-vectorShapes-A4HXI7TN.js → runtime-vectorShapes-O2FON5XD.js} +1 -1
  170. package/build/runtime-vectorShapes-O2FON5XD.js.br +0 -0
  171. package/build/runtime-vectorShapes-O2FON5XD.js.gz +0 -0
  172. package/build/{runtime-video-XEINPQPG.js → runtime-video-LCZ6F422.js} +1 -1
  173. package/build/runtime-video-LCZ6F422.js.br +0 -0
  174. package/build/runtime-video-LCZ6F422.js.gz +0 -0
  175. package/build/{runtime-webgpu-YOUCVSAF.js → runtime-webgpu-IR73C4IB.js} +1 -1
  176. package/build/runtime-webgpu-IR73C4IB.js.br +0 -0
  177. package/build/runtime-webgpu-IR73C4IB.js.gz +0 -0
  178. package/build/runtime.cjs +422 -422
  179. package/build/runtime.js +1 -1
  180. package/build/runtime.js.br +0 -0
  181. package/build/runtime.js.gz +0 -0
  182. package/build/runtime.standalone.js +1 -1
  183. package/build/runtime.standalone.js.br +0 -0
  184. package/build/runtime.standalone.js.gz +0 -0
  185. package/build/runtime.standalone.webgl.js +1 -1
  186. package/build/runtime.standalone.webgl.js.br +0 -0
  187. package/build/runtime.standalone.webgl.js.gz +0 -0
  188. package/build/runtime.standalone.webgpu.js +1 -1
  189. package/build/runtime.standalone.webgpu.js.br +0 -0
  190. package/build/runtime.standalone.webgpu.js.gz +0 -0
  191. package/build/runtime.standalone.webgpu.micro.js +1 -1
  192. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  193. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  194. package/build/runtime.standalone.webgpu.min.js +1 -1
  195. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  196. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  197. package/package.json +1 -1
  198. package/build/runtime-aiAssistant-P56R6EIU.js.br +0 -0
  199. package/build/runtime-aiAssistant-P56R6EIU.js.gz +0 -0
  200. package/build/runtime-apiServices-ADKEC7LW.js.br +0 -0
  201. package/build/runtime-apiServices-ADKEC7LW.js.gz +0 -0
  202. package/build/runtime-audio-YJWGAMZD.js.br +0 -0
  203. package/build/runtime-audio-YJWGAMZD.js.gz +0 -0
  204. package/build/runtime-chunk-2GPGYGR2.js +0 -1
  205. package/build/runtime-chunk-2GPGYGR2.js.br +0 -0
  206. package/build/runtime-chunk-2GPGYGR2.js.gz +0 -0
  207. package/build/runtime-chunk-3B2NPUWD.js.br +0 -0
  208. package/build/runtime-chunk-3B2NPUWD.js.gz +0 -0
  209. package/build/runtime-chunk-564IIVBV.js.br +0 -0
  210. package/build/runtime-chunk-564IIVBV.js.gz +0 -0
  211. package/build/runtime-chunk-BJXRV54U.js.br +0 -0
  212. package/build/runtime-chunk-BJXRV54U.js.gz +0 -0
  213. package/build/runtime-chunk-D373PZPG.js.br +0 -0
  214. package/build/runtime-chunk-D373PZPG.js.gz +0 -0
  215. package/build/runtime-chunk-DC4SLIAM.js.br +0 -0
  216. package/build/runtime-chunk-DC4SLIAM.js.gz +0 -0
  217. package/build/runtime-chunk-DUQ2PW7L.js.br +0 -0
  218. package/build/runtime-chunk-DUQ2PW7L.js.gz +0 -0
  219. package/build/runtime-chunk-E4IP6WPJ.js.gz +0 -0
  220. package/build/runtime-chunk-EFBUAWKV.js.br +0 -0
  221. package/build/runtime-chunk-EFBUAWKV.js.gz +0 -0
  222. package/build/runtime-chunk-G3JY5FTO.js.br +0 -0
  223. package/build/runtime-chunk-G3JY5FTO.js.gz +0 -0
  224. package/build/runtime-chunk-I6CPIGMQ.js.br +0 -0
  225. package/build/runtime-chunk-I6CPIGMQ.js.gz +0 -0
  226. package/build/runtime-chunk-ITPAD3LR.js.br +0 -0
  227. package/build/runtime-chunk-ITPAD3LR.js.gz +0 -0
  228. package/build/runtime-chunk-JAELIJQZ.js.br +0 -0
  229. package/build/runtime-chunk-JAELIJQZ.js.gz +0 -0
  230. package/build/runtime-chunk-JB6TDVGN.js +0 -1
  231. package/build/runtime-chunk-JB6TDVGN.js.br +0 -0
  232. package/build/runtime-chunk-JB6TDVGN.js.gz +0 -0
  233. package/build/runtime-chunk-JVQBFLYF.js.br +0 -0
  234. package/build/runtime-chunk-JVQBFLYF.js.gz +0 -0
  235. package/build/runtime-chunk-K3UQCG3P.js.br +0 -0
  236. package/build/runtime-chunk-K3UQCG3P.js.gz +0 -0
  237. package/build/runtime-chunk-L6ERXCVI.js.br +0 -0
  238. package/build/runtime-chunk-L6ERXCVI.js.gz +0 -0
  239. package/build/runtime-chunk-LGRD54SI.js.br +0 -0
  240. package/build/runtime-chunk-LGRD54SI.js.gz +0 -0
  241. package/build/runtime-chunk-LU45RPBP.js.br +0 -0
  242. package/build/runtime-chunk-LU45RPBP.js.gz +0 -0
  243. package/build/runtime-chunk-LYYY4YGG.js.br +0 -0
  244. package/build/runtime-chunk-LYYY4YGG.js.gz +0 -0
  245. package/build/runtime-chunk-P4TVEPXM.js.br +0 -0
  246. package/build/runtime-chunk-P4TVEPXM.js.gz +0 -0
  247. package/build/runtime-chunk-PE7JIDJV.js.br +0 -0
  248. package/build/runtime-chunk-PE7JIDJV.js.gz +0 -0
  249. package/build/runtime-chunk-PKIQR6HY.js.br +0 -0
  250. package/build/runtime-chunk-PKIQR6HY.js.gz +0 -0
  251. package/build/runtime-chunk-PUFOPNOK.js.br +0 -0
  252. package/build/runtime-chunk-PUFOPNOK.js.gz +0 -0
  253. package/build/runtime-chunk-QDMMX2RH.js.br +0 -0
  254. package/build/runtime-chunk-QDMMX2RH.js.gz +0 -0
  255. package/build/runtime-chunk-QRYUKNF2.js.br +0 -0
  256. package/build/runtime-chunk-QRYUKNF2.js.gz +0 -0
  257. package/build/runtime-chunk-UQJOH5LM.js.br +0 -0
  258. package/build/runtime-chunk-UQJOH5LM.js.gz +0 -0
  259. package/build/runtime-chunk-XFDV5BI7.js.br +0 -2
  260. package/build/runtime-chunk-XFDV5BI7.js.gz +0 -0
  261. package/build/runtime-classicRuntime-DPTSVYI5.js +0 -1
  262. package/build/runtime-classicRuntime-DPTSVYI5.js.br +0 -0
  263. package/build/runtime-classicRuntime-DPTSVYI5.js.gz +0 -0
  264. package/build/runtime-cloners-ILCN67AT.js +0 -1
  265. package/build/runtime-cloners-ILCN67AT.js.br +0 -0
  266. package/build/runtime-cloners-ILCN67AT.js.gz +0 -0
  267. package/build/runtime-components-FSOOTPFP.js.br +0 -0
  268. package/build/runtime-components-FSOOTPFP.js.gz +0 -0
  269. package/build/runtime-conditional-L7VSDRAB.js.br +0 -0
  270. package/build/runtime-conditional-L7VSDRAB.js.gz +0 -0
  271. package/build/runtime-createDestroy-QKX6M7W4.js.br +0 -0
  272. package/build/runtime-createDestroy-QKX6M7W4.js.gz +0 -0
  273. package/build/runtime-dragDrop-EKI3PCPJ.js.br +0 -0
  274. package/build/runtime-dragDrop-EKI3PCPJ.js.gz +0 -0
  275. package/build/runtime-gameControls-E2GZ6EHC.js.br +0 -0
  276. package/build/runtime-gameControls-E2GZ6EHC.js.gz +0 -0
  277. package/build/runtime-hair-ROZIYKAI.js +0 -1
  278. package/build/runtime-hair-ROZIYKAI.js.br +0 -1
  279. package/build/runtime-hair-ROZIYKAI.js.gz +0 -0
  280. package/build/runtime-mergeStaticGeometries-PUYA5EV6.js.br +0 -0
  281. package/build/runtime-mergeStaticGeometries-PUYA5EV6.js.gz +0 -0
  282. package/build/runtime-miscActions-GGVSP7JK.js.br +0 -0
  283. package/build/runtime-miscActions-GGVSP7JK.js.gz +0 -0
  284. package/build/runtime-mouseHover-MMU3GSN4.js.br +0 -0
  285. package/build/runtime-mouseHover-MMU3GSN4.js.gz +0 -0
  286. package/build/runtime-particles-H3X2X7GM.js.br +0 -0
  287. package/build/runtime-particles-H3X2X7GM.js.gz +0 -0
  288. package/build/runtime-paths-R2WDN2DI.js +0 -1
  289. package/build/runtime-paths-R2WDN2DI.js.br +0 -0
  290. package/build/runtime-paths-R2WDN2DI.js.gz +0 -0
  291. package/build/runtime-resize-4IJCXNFR.js.br +0 -0
  292. package/build/runtime-resize-4IJCXNFR.js.gz +0 -0
  293. package/build/runtime-sceneTransition-F6OVIBVY.js.br +0 -0
  294. package/build/runtime-sceneTransition-F6OVIBVY.js.gz +0 -0
  295. package/build/runtime-scroll-ZPNGUYQD.js.br +0 -0
  296. package/build/runtime-scroll-ZPNGUYQD.js.gz +0 -0
  297. package/build/runtime-shapeBlends-PM5VWJX5.js +0 -1
  298. package/build/runtime-shapeBlends-PM5VWJX5.js.br +0 -0
  299. package/build/runtime-shapeBlends-PM5VWJX5.js.gz +0 -0
  300. package/build/runtime-text-PQV2VUAT.js.br +0 -0
  301. package/build/runtime-text-PQV2VUAT.js.gz +0 -0
  302. package/build/runtime-textInputs-GNG4HVQG.js.br +0 -0
  303. package/build/runtime-textInputs-GNG4HVQG.js.gz +0 -0
  304. package/build/runtime-timeline-P7IDRC5D.js.br +0 -0
  305. package/build/runtime-timeline-P7IDRC5D.js.gz +0 -0
  306. package/build/runtime-tracking-OKMQ7ZRT.js.br +0 -0
  307. package/build/runtime-tracking-OKMQ7ZRT.js.gz +0 -0
  308. package/build/runtime-transitions-EMKQKM7N.js.br +0 -0
  309. package/build/runtime-transitions-EMKQKM7N.js.gz +0 -0
  310. package/build/runtime-ui2d-AURBDYA2.js.br +0 -0
  311. package/build/runtime-ui2d-AURBDYA2.js.gz +0 -0
  312. package/build/runtime-updater-6QPW4RJT.js.br +0 -1
  313. package/build/runtime-updater-6QPW4RJT.js.gz +0 -0
  314. package/build/runtime-variables-VMN76G6O.js.br +0 -0
  315. package/build/runtime-variables-VMN76G6O.js.gz +0 -0
  316. package/build/runtime-vectorShapes-A4HXI7TN.js.br +0 -0
  317. package/build/runtime-vectorShapes-A4HXI7TN.js.gz +0 -0
  318. package/build/runtime-video-XEINPQPG.js.br +0 -0
  319. package/build/runtime-video-XEINPQPG.js.gz +0 -0
  320. package/build/runtime-webgpu-YOUCVSAF.js.br +0 -0
  321. package/build/runtime-webgpu-YOUCVSAF.js.gz +0 -0
@@ -1 +1 @@
1
- import{a as t,b as e,d as r}from"./runtime-chunk-JAELIJQZ.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{K as a,ya as o}from"./runtime-chunk-K3UQCG3P.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var b=new p,x=new p,_=new n,M=new p,O=new p,F=new p,A=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=A.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=A.projectionTransitionsEnabled;A.projectionTransitionsEnabled=!1;try{return t()}finally{A.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(b),this.targetOffset=b.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(x),this.getWorldPosition(b),x.multiplyScalar(this.targetOffset),t.copy(b).add(x),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(b),b.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return A.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=A.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:A.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=A.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},V=A;V.projectionTransitionsEnabled=!1,V.projectionTransitionDuration=350,V.projectionTransitionMinAgeMs=1e3;export{V as a};
1
+ import{a as t,b as e,d as r}from"./runtime-chunk-ZJVCGO54.js";import{f as i}from"./runtime-chunk-RTLL6WIB.js";import{K as a,ya as o}from"./runtime-chunk-RNMPWHS7.js";import{Ae as s,Ec as n,Fc as p,Oc as h,Rc as c,Tc as m,bd as f,dd as u,ud as d,wd as l,we as g,xe as v}from"./runtime-chunk-BVVSZMXD.js";var C=new p,j=new g,T=class extends l{constructor(t){let e=new u,r=new d({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],a=[],o={},s=new m(15711266),n=new m(15711266),p=new m(2857471);function h(t,e,r){c(t,r),c(e,r)}function c(t,e){i.push(0,0,0),a.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",s),h("n2","n4",s),h("n4","n3",s),h("n3","n1",s),h("f1","f2",s),h("f2","f4",s),h("f4","f3",s),h("f3","f1",s),h("n1","f1",s),h("n2","f2",s),h("n3","f3",s),h("n4","f4",s),h("p","n1",n),h("p","n2",n),h("p","n3",n),h("p","n4",n),h("u1","u2",p),h("u2","u3",p),h("u3","u1",p),e.setAttribute("position",new f(i,3)),e.setAttribute("color",new f(a,3)),super(e,r),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}update(){let t=this.geometry,e=this.pointMap;j.projectionMatrixInverse.elements=[.5112609807824982,-0,-0,-0,-0,.41421356237309503,-0,-0,-0,-0,-0,-.099999,-0,-0,-1.0000000000000002,.100001];let r=.8;y("n1",e,t,j,-1,-1,r),y("n2",e,t,j,1,-1,r),y("n3",e,t,j,-1,1,r),y("n4",e,t,j,1,1,r);let i=r;y("f1",e,t,j,-1,-1,i),y("f2",e,t,j,1,-1,i),y("f3",e,t,j,-1,1,i),y("f4",e,t,j,1,1,i);let a=i;y("u1",e,t,j,.35,1.1,a),y("u2",e,t,j,-.35,1.1,a),y("u3",e,t,j,0,1.55,a),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}};function y(t,e,r,i,a,o,s){C.set(a,o,s).unproject(i);let n=e[t];if(void 0!==n){let t=r.getAttribute("position");for(let e=0,r=n.length;e<r;e++)t.setXYZ(n[e],C.x,C.y,C.z)}}var w=class extends(t(T)){constructor(t){super(t),this.object=t,this.name=`CombinedCameraHelper: ${t.uuid}`}updateMatrixWorld(t){super.updateMatrixWorld(t),this.updateTarget()}updateTarget(){let t=this.object.getTarget();this.updateWorldMatrix(!0,!1),this.worldToLocal(t)}raycast(t,r){e(this.object,this.geometry,t,r,!0)}};function P(t){return 1-Math.pow(1-t,3)}var b=new p,x=new p,_=new n,M=new p,O=new p,F=new p,V=class extends(r(g,w)){constructor(t="",e={...o.defaultData,name:""}){super(),this._cameraType="OrthographicCamera",this.targetOffset=a.DefaultTargetOffset,this.isUpVectorFlipped=!1,this.angleOffsetFromUp=0,this.wasMovedByUser=!1,this.wasMovedBySwitchCameraAction=!1,this._createdAt=typeof performance<"u"?performance.now():0,this._tickProjectionTransition=()=>{let t=this._projectionTransition;if(void 0===t)return;if(this.disposed)return void this._endProjectionTransition();t.raf=requestAnimationFrame(this._tickProjectionTransition);let e=V.projectionTransitionRequestRender??t.requestRender;this.updateProjectionMatrix(),e?.()},this.super_Entity(t,e),this.previousProjectionMatrix=new h,this.matrixAutoUpdate=!0,this.width=window.innerWidth,this.height=window.innerHeight;let r=this.width,i=this.height;this.orthoCamera=new s(-.5*r,.5*r,.5*i,-.5*i,-5e4,1e4),this.perspCamera=new v(45,r/i,50,1e4),this.left=this.orthoCamera.left,this.right=this.orthoCamera.right,this.top=this.orthoCamera.top,this.bottom=this.orthoCamera.bottom,this.far=this.orthoCamera.far,this.view=this.orthoCamera.view,this.aspect=this.perspCamera.aspect,this.focus=this.perspCamera.focus,this.filmGauge=this.perspCamera.filmGauge,this.filmOffset=this.perspCamera.filmOffset,this.objectHelper.update()}static withoutProjectionTransition(t){let e=V.projectionTransitionsEnabled;V.projectionTransitionsEnabled=!1;try{return t()}finally{V.projectionTransitionsEnabled=e}}get isPerspectiveCamera(){return"PerspectiveCamera"===this.cameraType}get isOrthographicCamera(){return!this.isPerspectiveCamera}get cameraType(){return this._cameraType}set fov(t){this.perspCamera.fov=t}get fov(){return this.perspCamera.fov}setNear(t,e){"PerspectiveCamera"===t?this.perspCamera.near=e:this.orthoCamera.near=e}setZoom(t,e){e>=0&&("PerspectiveCamera"===t?this.perspCamera.zoom=e:this.orthoCamera.zoom=e)}set cameraType(t){"PerspectiveCamera"===t?this.toPerspective():"OrthographicCamera"===t&&this.toOrthographic()}get near(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.near:this.orthoCamera.near}set near(t){"PerspectiveCamera"===this._cameraType?this.perspCamera.near=t:this.orthoCamera.near=t}get zoom(){return"PerspectiveCamera"===this._cameraType?this.perspCamera.zoom:this.orthoCamera.zoom}set zoom(t){t>=0&&("PerspectiveCamera"===this._cameraType?this.perspCamera.zoom=t:this.orthoCamera.zoom=t)}lookAt(t,e,r){"number"==typeof t&&(t=new p(t,e,r)),super.lookAt(t),this.getWorldPosition(b),this.targetOffset=b.distanceTo(t)}getTarget(t=new p){return this.getWorldDirection(x),this.getWorldPosition(b),x.multiplyScalar(this.targetOffset),t.copy(b).add(x),t}getDistanceToTarget(){let t=this.getTarget();return this.getWorldPosition(b),b.distanceTo(t)}updateUp(){this.getWorldQuaternion(_),M.set(0,0,1).applyQuaternion(_),O.copy(c.DEFAULT_UP),this.isUpVectorFlipped&&O.negate(),O.applyQuaternion(_),F.copy(c.DEFAULT_UP).projectOnPlane(M),this.angleOffsetFromUp=F.angleTo(O),this.angleOffsetFromUp*=F.cross(O).dot(M)>=0?1:-1}updateTransformState(t,e){let r=super.updateTransformState(t,e);return void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateUp(),r}getViewFrontToObject(t){let e=t.getWorldPosition(new p),r=t.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:e.clone().add(r),target:e}}getViewToTarget(t){let e=this.getWorldDirection(new p).multiplyScalar(this.targetOffset);return{position:t.clone().sub(e),target:t}}getViewToObject(t){let e=new p;return t.getWorldPosition(e),this.getViewToTarget(e)}setViewplaneSize(t,e,r=!1){if(this.aspect=t/e,r){let r=t>e?this.aspect:1,i=t>e?1:this.aspect;this.left=-395*r,this.right=395*r,this.top=1/i*395,this.bottom=1/i*-395}else this.left=.5*-t,this.right=.5*t,this.top=.5*e,this.bottom=.5*-e;this.updateProjectionMatrix()}copyViewPlaneSize(t){this.aspect=t.aspect,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.updateProjectionMatrix()}toOrthographic(){this.orthoCamera.left=this.left,this.orthoCamera.right=this.right,this.orthoCamera.top=this.top,this.orthoCamera.bottom=this.bottom,this.orthoCamera.view=this.view,this.orthoCamera.far=this.far,this.orthoCamera.updateProjectionMatrix(),this.projectionMatrix=this.orthoCamera.projectionMatrix,this.projectionMatrixInverse=this.orthoCamera.projectionMatrixInverse,this._cameraType="OrthographicCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}toPerspective(){this.perspCamera.aspect=this.aspect,this.perspCamera.fov=this.fov,this.perspCamera.view=this.view,this.perspCamera.far=this.far,this.perspCamera.updateProjectionMatrix(),this.projectionMatrix=this.perspCamera.projectionMatrix,this.projectionMatrixInverse=this.perspCamera.projectionMatrixInverse,this._cameraType="PerspectiveCamera",this._applyProjectionTransition(),this.objectHelper&&this.objectHelper.update()}get isProjectionTransitioning(){return void 0!==this._projectionTransition}get projectionTransitionProgress(){let t=this._projectionTransition;if(void 0===t)return 1;let e=(performance.now()-t.start)/t.duration;return e>=1?1:e<=0?0:P(e)}get _activeSubCamera(){return"PerspectiveCamera"===this._cameraType?this.perspCamera:this.orthoCamera}_canAnimateProjection(){return V.projectionTransitionsEnabled&&"function"==typeof requestAnimationFrame&&typeof performance<"u"&&performance.now()-this._createdAt>=V.projectionTransitionMinAgeMs}_beginProjectionTransition(t){let e=this._projectionTransition;void 0===e&&(e={from:new h,blend:new h,blendInverse:new h,start:0,duration:V.projectionTransitionDuration,referenceDepth:1,raf:0,requestRender:t},this._projectionTransition=e),e.from.copy(this.projectionMatrix),e.start=performance.now(),e.duration=V.projectionTransitionDuration,e.referenceDepth=Number.isFinite(this.targetOffset)?Math.max(1,this.targetOffset):1,t&&(e.requestRender=t),0!==e.raf&&cancelAnimationFrame(e.raf),e.raf=requestAnimationFrame(this._tickProjectionTransition)}_applyProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;let e=(performance.now()-t.start)/t.duration;if(e>=1)return void this._endProjectionTransition();let r=P(e),i=t.from.elements,a=this._activeSubCamera.projectionMatrix.elements,o=t.blend.elements,s=t.referenceDepth,n=Math.max(1e-6,i[15]-i[11]*s),p=r*n/(r*n+(1-r)*Math.max(1e-6,a[15]-a[11]*s));for(let t=0;t<16;t++)o[t]=i[t]+(a[t]-i[t])*p;t.blendInverse.copy(t.blend).invert(),this.projectionMatrix=t.blend,this.projectionMatrixInverse=t.blendInverse}_endProjectionTransition(){let t=this._projectionTransition;if(void 0===t)return;0!==t.raf&&cancelAnimationFrame(t.raf),this._projectionTransition=void 0;let e=this._activeSubCamera;this.projectionMatrix=e.projectionMatrix,this.projectionMatrixInverse=e.projectionMatrixInverse}_syncProjectionTransition(t){let e=t._projectionTransition;if(void 0===e)return void(void 0!==this._projectionTransition&&this._endProjectionTransition());let r=this._projectionTransition;void 0===r?(r={from:new h,blend:new h,blendInverse:new h,start:0,duration:1,referenceDepth:1,raf:0,requestRender:void 0},this._projectionTransition=r):0!==r.raf&&(cancelAnimationFrame(r.raf),r.raf=0),r.requestRender=void 0,r.from.copy(e.from),r.start=e.start,r.duration=e.duration,r.referenceDepth=e.referenceDepth,this._applyProjectionTransition()}setFocalLength(t){this.perspCamera.setFocalLength(t),this.toPerspective()}getFocalLength(){return this.perspCamera.getFocalLength()}getEffectiveFOV(){return this.perspCamera.getEffectiveFOV()}getFilmWidth(){return this.perspCamera.getFilmWidth()}getFilmHeight(){return this.perspCamera.getFilmHeight()}setViewOffset(t,e,r,i,a,o){"PerspectiveCamera"===this._cameraType?this.perspCamera.setViewOffset(t,e,r,i,a,o):this.orthoCamera.setViewOffset(t,e,r,i,a,o),this._applyProjectionTransition()}clearViewOffset(){"PerspectiveCamera"===this._cameraType?(this.perspCamera.clearViewOffset(),this.toPerspective()):(this.orthoCamera.clearViewOffset(),this.toOrthographic())}copyHistory(){this.previousProjectionMatrix&&this.previousProjectionMatrix.copy(this.projectionMatrix)}updateProjectionMatrix(){"PerspectiveCamera"===this._cameraType?this.toPerspective():"OrthographicCamera"===this._cameraType&&this.toOrthographic()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}copy(t,e){return super.copy(t,e),this.parent=t.parent,this.orthoCamera.copy(t.orthoCamera),this.perspCamera.copy(t.perspCamera),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.far=t.far,this.view=null===t.view?null:Object.assign({},t.view),this._cameraType=t._cameraType,this.aspect=t.aspect,this.fov=t.fov,this.focus=t.focus,this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this.targetOffset=a.sanitizeTargetOffset(t.targetOffset),this.updateProjectionMatrix(),this._syncProjectionTransition(t),this}toCameraState(t=[]){let e={type:this.cameraType,far:this.far,orthographic:{near:this.orthoCamera.near,zoom:this.orthoCamera.zoom},perspective:{near:this.perspCamera.near,fov:this.perspCamera.fov,zoom:this.perspCamera.zoom},up:this.up.toArray(),targetOffset:this.targetOffset,isUpVectorFlipped:this.isUpVectorFlipped};return i(e,t)}updateCameraSubtype(t,e){let r="perspective"===t?"PerspectiveCamera":"OrthographicCamera";void 0!==e.zoom&&this.setZoom(r,e.zoom),void 0!==e.near&&this.setNear(r,e.near),void 0!==e.fov&&"PerspectiveCamera"===r&&(this.fov=e.fov)}updateState(t,e){this.updateCameraState(t,e)}updateCameraState(t,e){this.updateState_Entity(t,e),void 0!==t.far&&(this.far=t.far),void 0!==t.orthographic&&this.updateCameraSubtype("orthographic",t.orthographic),void 0!==t.perspective&&this.updateCameraSubtype("perspective",t.perspective),void 0!==t.type&&(t.type!==this._cameraType&&this._canAnimateProjection()&&this._beginProjectionTransition(e?.shared.requestRender),this.cameraType=t.type),void 0!==t.up&&this.up.fromArray(t.up.map(t=>"number"==typeof t?t:0)),void 0!==t.targetOffset&&(this.targetOffset=a.sanitizeTargetOffset(t.targetOffset)),void 0!==t.isUpVectorFlipped&&(this.isUpVectorFlipped=t.isUpVectorFlipped),this.updateProjectionMatrix()}updateByPatchedOp(t,e,r){super.updateByPatchedOp(t,e,r),1===t.path.length&&0===t.type&&this.updateCameraSubtype(t.path[0],t.props)}toState(t){return{...super.toState(t),...this.toCameraState(t),type:this.cameraType}}},A=V;A.projectionTransitionsEnabled=!1,A.projectionTransitionDuration=350,A.projectionTransitionMinAgeMs=1e3;export{A as a};
@@ -1 +1 @@
1
- import{a as t}from"./runtime-chunk-LU45RPBP.js";import{e}from"./runtime-chunk-DUQ2PW7L.js";import{c as i}from"./runtime-chunk-JB6TDVGN.js";import{i as r}from"./runtime-chunk-PUFOPNOK.js";import{j as s}from"./runtime-chunk-2PT2WH66.js";import{Fc as n,Ne as o,dd as a,ud as h,vd as c}from"./runtime-chunk-BVVSZMXD.js";var d=class extends o{constructor(){super(),i(this.layers)}setFromCamera(t,e){e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,-1).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):e.isPerspectiveCamera?(this.ray.origin.set(t.x,t.y,-1).unproject(e),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):console.error("Raycaster: Unsupported camera type.")}intersectVisibleObjects(t,e=!0,i=[]){return t.forEach(t=>{t.visible&&this.intersectObject(t,e,i)}),i}createRaycastLineHelper(){let t=new h({color:65280,linewidth:10}),e=new n(this.ray.origin.x,this.ray.origin.y,this.ray.origin.z),i=new n(this.ray.direction.x,this.ray.direction.y,this.ray.direction.z),r=this.camera.far-this.camera.near,s=(new n).addVectors(e,i.multiplyScalar(r)),o=new a;return o.setFromPoints([e,s]),new c(o,t)}},u=e=>e instanceof t||s(e);function l(t,e){return t.distance-e.distance}function m(t,i,s){if(r(i)&&i.visible){e(i)&&i.raycast(t,s);for(let e of i.children)m(t,e,s)}}function f(t,e,i,r=!1){if(!r&&!i.some(e=>void 0!==w(t,e)))return[];let s=[];return e.children.forEach(e=>m(t,e,s)),s.sort(l),s}function p(t){let e=[];if(t.length){let i=t[0].object;r(i)&&e.push(i);let s=i.parent;for(;s;)u(s)&&e.push(s),s=s.parent}return e}function y(t,e,i,r){let s=t.frame;if(s){let t=e[0]*s.width,n=(1-e[1])*s.height;for(let e of i){let i=e===s.uuid?s:s.find(e);if(i?.intersects(t,n))return r(i),!0}}return!1}function w(t,i){if(e(i)){if(i.visible){let e=[];return i.raycast(t,e),e.length?e[0]:void 0}}else if(u(i))return g(t,i)}function g(t,i){if(r(i)&&i.visible){if(e(i)){let e=[];if(i.raycast(t,e),e.length)return e[0]}for(let e of i.children){let i=g(t,e);if(i)return i}}}var v=class{constructor(t,e,i,r,s,n,o,a){this.renderer=t,this.publish=e,this.scene=i,this.getCamera=r,this.sharedAssets=s,this.requestRender=n,this.isExport=o,this.frame=a,this.raycaster=new d,this._useWindowEvents=!1,this.pointerWorld={x:0,y:0},this.pointerScreen={x:0,y:0},this._useWindowEvents="window"===e.mouseEventTarget,this.domElement=t.domElement,this.eventElement=this._useWindowEvents?window:t.domElement,this._domRect=this.domElement.getBoundingClientRect()}get stopRaycast(){return this.publish.stopRaycast}get page(){return this.scene.activePage}set useWindowEvents(t){this._useWindowEvents=t,this.eventElement=t?window:this.renderer.domElement}get useWindowEvents(){return this._useWindowEvents}set domRect(t){this._domRect=t}get domRect(){return this._domRect}updateRaycaster(t){let{pageX:e,pageY:i}=t.touches?.length>0?t.touches[0]:t;this.pointerWorld=function(t,e,i){return{x:(t-(i.left+window.scrollX))/i.width*2-1,y:-(e-(i.top+window.scrollY))/i.height*2+1}}(e,i,this._domRect),this.pointerScreen=function(t,e,i){return{x:(t-(i.left+window.scrollX))/i.width,y:1-(e-(i.top+window.scrollY))/i.height}}(e,i,this._domRect),this.raycaster.setFromCamera(this.pointerWorld,this.getCamera())}dispose(){this.scene=void 0,this.sharedAssets=void 0,this.publish=void 0,this.getCamera=void 0,this.requestRender=void 0,this.frame=void 0,this.isExport=void 0}};export{f as a,p as b,y as c,w as d,v as e};
1
+ import{a as t}from"./runtime-chunk-5IODBOHZ.js";import{e}from"./runtime-chunk-EM7KULU2.js";import{c as i}from"./runtime-chunk-SX4257ET.js";import{i as r}from"./runtime-chunk-6SIPKGSQ.js";import{j as s}from"./runtime-chunk-2PT2WH66.js";import{Fc as n,Ne as o,dd as a,ud as h,vd as c}from"./runtime-chunk-BVVSZMXD.js";var d=class extends o{constructor(){super(),i(this.layers)}setFromCamera(t,e){e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,-1).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld),this.camera=e):e.isPerspectiveCamera?(this.ray.origin.set(t.x,t.y,-1).unproject(e),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize(),this.camera=e):console.error("Raycaster: Unsupported camera type.")}intersectVisibleObjects(t,e=!0,i=[]){return t.forEach(t=>{t.visible&&this.intersectObject(t,e,i)}),i}createRaycastLineHelper(){let t=new h({color:65280,linewidth:10}),e=new n(this.ray.origin.x,this.ray.origin.y,this.ray.origin.z),i=new n(this.ray.direction.x,this.ray.direction.y,this.ray.direction.z),r=this.camera.far-this.camera.near,s=(new n).addVectors(e,i.multiplyScalar(r)),o=new a;return o.setFromPoints([e,s]),new c(o,t)}},u=e=>e instanceof t||s(e);function l(t,e){return t.distance-e.distance}function m(t,i,s){if(r(i)&&i.visible){e(i)&&i.raycast(t,s);for(let e of i.children)m(t,e,s)}}function f(t,e,i,r=!1){if(!r&&!i.some(e=>void 0!==w(t,e)))return[];let s=[];return e.children.forEach(e=>m(t,e,s)),s.sort(l),s}function p(t){let e=[];if(t.length){let i=t[0].object;r(i)&&e.push(i);let s=i.parent;for(;s;)u(s)&&e.push(s),s=s.parent}return e}function y(t,e,i,r){let s=t.frame;if(s){let t=e[0]*s.width,n=(1-e[1])*s.height;for(let e of i){let i=e===s.uuid?s:s.find(e);if(i?.intersects(t,n))return r(i),!0}}return!1}function w(t,i){if(e(i)){if(i.visible){let e=[];return i.raycast(t,e),e.length?e[0]:void 0}}else if(u(i))return g(t,i)}function g(t,i){if(r(i)&&i.visible){if(e(i)){let e=[];if(i.raycast(t,e),e.length)return e[0]}for(let e of i.children){let i=g(t,e);if(i)return i}}}var v=class{constructor(t,e,i,r,s,n,o,a){this.renderer=t,this.publish=e,this.scene=i,this.getCamera=r,this.sharedAssets=s,this.requestRender=n,this.isExport=o,this.frame=a,this.raycaster=new d,this._useWindowEvents=!1,this.pointerWorld={x:0,y:0},this.pointerScreen={x:0,y:0},this._useWindowEvents="window"===e.mouseEventTarget,this.domElement=t.domElement,this.eventElement=this._useWindowEvents?window:t.domElement,this._domRect=this.domElement.getBoundingClientRect()}get stopRaycast(){return this.publish.stopRaycast}get page(){return this.scene.activePage}set useWindowEvents(t){this._useWindowEvents=t,this.eventElement=t?window:this.renderer.domElement}get useWindowEvents(){return this._useWindowEvents}set domRect(t){this._domRect=t}get domRect(){return this._domRect}updateRaycaster(t){let{pageX:e,pageY:i}=t.touches?.length>0?t.touches[0]:t;this.pointerWorld=function(t,e,i){return{x:(t-(i.left+window.scrollX))/i.width*2-1,y:-(e-(i.top+window.scrollY))/i.height*2+1}}(e,i,this._domRect),this.pointerScreen=function(t,e,i){return{x:(t-(i.left+window.scrollX))/i.width,y:1-(e-(i.top+window.scrollY))/i.height}}(e,i,this._domRect),this.raycaster.setFromCamera(this.pointerWorld,this.getCamera())}dispose(){this.scene=void 0,this.sharedAssets=void 0,this.publish=void 0,this.getCamera=void 0,this.requestRender=void 0,this.frame=void 0,this.isExport=void 0}};export{f as a,p as b,y as c,w as d,v as e};
@@ -1 +1 @@
1
- import{d as s}from"./runtime-chunk-DUQ2PW7L.js";import{a as t,b as i}from"./runtime-chunk-JAELIJQZ.js";import{Fc as a,Tc as o,Te as e,We as h,Xc as r,ze as d}from"./runtime-chunk-BVVSZMXD.js";var n=class extends(t(e)){constructor(s,t=15,i=6710886){super(s,t,i),this.object=s,this.name=`PointLightHelper: ${s.uuid}`}raycast(s,t){i(this.object,n.geometryHelper,s,t)}},p=class extends(s(d,n)){constructor(s,t,i){super(),this.super_Entity(s,t),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let e=this.shadow.camera;e.fov=90,e.aspect=1,e.near=100,e.far=2500;let d=new a(-e.far+this.position.x,-e.far+this.position.y,-e.far+this.position.z),n=new a(e.far+this.position.x,e.far+this.position.y,e.far+this.position.z),p=new r(d,n),c=new h(p,new o(16755200));c.visible=!1,this.gizmos.shadowmap=c,this.update()}update(){if(this.shadow&&(this.shadow.camera.updateProjectionMatrix(),this.gizmos))for(let s in this.gizmos){let t=this.gizmos[s];if(t instanceof h){let s=this.shadow.camera,i=new a(-s.far+this.position.x,-s.far+this.position.y,-s.far+this.position.z),o=new a(s.far+this.position.x,s.far+this.position.y,s.far+this.position.z);t.box.set(i,o),t.updateMatrixWorld(!0)}}}updateMatrixWorld(s){super.updateMatrixWorld(s),this.objectHelper&&this.objectHelper.update()}updateState(s,t){this.updateState_Light(s,t),void 0!==s.distance&&(this.distance=s.distance),void 0!==s.decay&&(this.decay=s.decay),void 0!==s.shadowRadius&&(this.shadow.radius=s.shadowRadius),void 0!==s.shadowResolution&&(this.shadow.mapSize.set(s.shadowResolution,s.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a};
1
+ import{d as s}from"./runtime-chunk-EM7KULU2.js";import{a as t,b as i}from"./runtime-chunk-ZJVCGO54.js";import{Fc as a,Tc as o,Te as e,We as h,Xc as r,ze as d}from"./runtime-chunk-BVVSZMXD.js";var n=class extends(t(e)){constructor(s,t=15,i=6710886){super(s,t,i),this.object=s,this.name=`PointLightHelper: ${s.uuid}`}raycast(s,t){i(this.object,n.geometryHelper,s,t)}},p=class extends(s(d,n)){constructor(s,t,i){super(),this.super_Entity(s,t),this.castShadow=!0,this.shadow.mapSize.width=1024,this.shadow.mapSize.height=1024,this.shadow.normalBias=1,this.layers.enable(3);let e=this.shadow.camera;e.fov=90,e.aspect=1,e.near=100,e.far=2500;let d=new a(-e.far+this.position.x,-e.far+this.position.y,-e.far+this.position.z),n=new a(e.far+this.position.x,e.far+this.position.y,e.far+this.position.z),p=new r(d,n),c=new h(p,new o(16755200));c.visible=!1,this.gizmos.shadowmap=c,this.update()}update(){if(this.shadow&&(this.shadow.camera.updateProjectionMatrix(),this.gizmos))for(let s in this.gizmos){let t=this.gizmos[s];if(t instanceof h){let s=this.shadow.camera,i=new a(-s.far+this.position.x,-s.far+this.position.y,-s.far+this.position.z),o=new a(s.far+this.position.x,s.far+this.position.y,s.far+this.position.z);t.box.set(i,o),t.updateMatrixWorld(!0)}}}updateMatrixWorld(s){super.updateMatrixWorld(s),this.objectHelper&&this.objectHelper.update()}updateState(s,t){this.updateState_Light(s,t),void 0!==s.distance&&(this.distance=s.distance),void 0!==s.decay&&(this.decay=s.decay),void 0!==s.shadowRadius&&(this.shadow.radius=s.shadowRadius),void 0!==s.shadowResolution&&(this.shadow.mapSize.set(s.shadowResolution,s.shadowResolution),this.shadow.map&&(this.shadow.map.dispose(),this.shadow.map=null))}};export{p as a};
@@ -1 +1 @@
1
- import{j as e}from"./runtime-chunk-PUFOPNOK.js";import{Ed as t,Fc as r,Oc as i,We as n,cd as a,jd as o}from"./runtime-chunk-BVVSZMXD.js";var s;(s||(s={})).is=e=>"objectHelper"in e;var l=(r,i)=>class extends(e(r)){constructor(){super(...arguments),this.objectHelper=new i(this),this.gizmos={}}get geometryHelper(){return i.geometryHelper}raycast(e,t){this.objectHelper.raycast(e,t)}showGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!0)}}updateEntityBoxSize(e,r){this.objectHelper.visible&&this.geometryHelper instanceof t?(e.setScalar(0),r.set(this.geometryHelper.parameters.width,this.geometryHelper.parameters.height,this.geometryHelper.parameters.height).multiplyScalar(.5)):super.updateEntityBoxSize(e,r)}hideGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!1)}}},c=e=>{var r;return(r=class extends e{}).geometryHelper=new t(30,30,30),r},p=new o,u=new a,m=new i,f=(e,t,i,n,a=!1,o=e)=>{let s=t,l=o.matrixWorld;if(null===s.boundingSphere&&s.computeBoundingSphere(),u.copy(s.boundingSphere),u.applyMatrix4(l),!1===i.ray.intersectsSphere(u)||(m.copy(l).invert(),p.copy(i.ray).applyMatrix4(m),null!==s.boundingBox&&!1===p.intersectsBox(s.boundingBox)))return;let c,f,h,d,g,y,x=s.index,b=s.attributes.position,w=s.drawRange;if(!1===a){for(g=Math.max(0,w.start),y=Math.min(x.count,w.start+w.count);g<y;g+=3)if(f=x.getX(g),h=x.getX(g+1),d=x.getX(g+2),c=B(e,i,p,b,f,h,d),c)return c.faceIndex=Math.floor(g/3),void n.push(c)}else{let t=s.attributes.position,a=new r,l=new r,c=new r,u=new r,m=2,f=1/((o.scale.x+o.scale.y+o.scale.z)/3),h=f*f;for(let r=Math.max(0,w.start),s=Math.min(t.count,w.start+w.count)-1;r<s;r+=m){if(a.fromBufferAttribute(t,r),l.fromBufferAttribute(t,r+1),p.distanceSqToSegment(a,l,u,c)>h)continue;u.applyMatrix4(o.matrixWorld);let s=i.ray.origin.distanceTo(u);s<i.near||s>i.far||n.push({distance:s,point:c.clone().applyMatrix4(o.matrixWorld),object:e})}}function B(e,t,i,n,a,o,s){let l=new r,c=new r,p=new r,u=new r,m=new r;if(l.fromBufferAttribute(n,a),c.fromBufferAttribute(n,o),p.fromBufferAttribute(n,s),null===i.intersectTriangle(l,c,p,!1,u))return null;m.copy(u),m.applyMatrix4(e.matrixWorld);let f=t.ray.origin.distanceTo(m);return f<t.near||f>t.far?null:{faceIndex:1,distance:f,point:m.clone(),object:e}}};export{c as a,f as b,s as c,l as d};
1
+ import{j as e}from"./runtime-chunk-6SIPKGSQ.js";import{Ed as t,Fc as r,Oc as i,We as n,cd as a,jd as o}from"./runtime-chunk-BVVSZMXD.js";var s;(s||(s={})).is=e=>"objectHelper"in e;var l=(r,i)=>class extends(e(r)){constructor(){super(...arguments),this.objectHelper=new i(this),this.gizmos={}}get geometryHelper(){return i.geometryHelper}raycast(e,t){this.objectHelper.raycast(e,t)}showGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!0)}}updateEntityBoxSize(e,r){this.objectHelper.visible&&this.geometryHelper instanceof t?(e.setScalar(0),r.set(this.geometryHelper.parameters.width,this.geometryHelper.parameters.height,this.geometryHelper.parameters.height).multiplyScalar(.5)):super.updateEntityBoxSize(e,r)}hideGizmos(){for(let e in this.gizmos){let t=this.gizmos[e];t instanceof n&&(t.visible=!1)}}},c=e=>{var r;return(r=class extends e{}).geometryHelper=new t(30,30,30),r},p=new o,u=new a,m=new i,f=(e,t,i,n,a=!1,o=e)=>{let s=t,l=o.matrixWorld;if(null===s.boundingSphere&&s.computeBoundingSphere(),u.copy(s.boundingSphere),u.applyMatrix4(l),!1===i.ray.intersectsSphere(u)||(m.copy(l).invert(),p.copy(i.ray).applyMatrix4(m),null!==s.boundingBox&&!1===p.intersectsBox(s.boundingBox)))return;let c,f,h,d,g,y,x=s.index,b=s.attributes.position,w=s.drawRange;if(!1===a){for(g=Math.max(0,w.start),y=Math.min(x.count,w.start+w.count);g<y;g+=3)if(f=x.getX(g),h=x.getX(g+1),d=x.getX(g+2),c=S(e,i,p,b,f,h,d),c)return c.faceIndex=Math.floor(g/3),void n.push(c)}else{let t=s.attributes.position,a=new r,l=new r,c=new r,u=new r,m=2,f=1/((o.scale.x+o.scale.y+o.scale.z)/3),h=f*f;for(let r=Math.max(0,w.start),s=Math.min(t.count,w.start+w.count)-1;r<s;r+=m){if(a.fromBufferAttribute(t,r),l.fromBufferAttribute(t,r+1),p.distanceSqToSegment(a,l,u,c)>h)continue;u.applyMatrix4(o.matrixWorld);let s=i.ray.origin.distanceTo(u);s<i.near||s>i.far||n.push({distance:s,point:c.clone().applyMatrix4(o.matrixWorld),object:e})}}function S(e,t,i,n,a,o,s){let l=new r,c=new r,p=new r,u=new r,m=new r;if(l.fromBufferAttribute(n,a),c.fromBufferAttribute(n,o),p.fromBufferAttribute(n,s),null===i.intersectTriangle(l,c,p,!1,u))return null;m.copy(u),m.applyMatrix4(e.matrixWorld);let f=t.ray.origin.distanceTo(m);return f<t.near||f>t.far?null:{faceIndex:1,distance:f,point:m.clone(),object:e}}};export{c as a,f as b,s as c,l as d};