@splinetool/runtime 2.0.113 → 2.0.115

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 (388) hide show
  1. package/build/{runtime-aiAssistant-JYKXMMRS.js → runtime-aiAssistant-WDHHEOGR.js} +1 -1
  2. package/build/runtime-aiAssistant-WDHHEOGR.js.br +0 -0
  3. package/build/runtime-aiAssistant-WDHHEOGR.js.gz +0 -0
  4. package/build/{runtime-apiServices-II44FZUJ.js → runtime-apiServices-CWULQL5Y.js} +1 -1
  5. package/build/runtime-apiServices-CWULQL5Y.js.br +0 -0
  6. package/build/runtime-apiServices-CWULQL5Y.js.gz +0 -0
  7. package/build/{runtime-audio-PFLKMACM.js → runtime-audio-MX2JKDOR.js} +1 -1
  8. package/build/runtime-audio-MX2JKDOR.js.br +0 -0
  9. package/build/runtime-audio-MX2JKDOR.js.gz +0 -0
  10. package/build/{runtime-bloom-FJMT2ZZ4.js → runtime-bloom-24VZGBEF.js} +1 -1
  11. package/build/runtime-bloom-24VZGBEF.js.br +0 -0
  12. package/build/runtime-bloom-24VZGBEF.js.gz +0 -0
  13. package/build/{runtime-brightnessContrast-64X55RZB.js → runtime-brightnessContrast-KDKGUPZA.js} +1 -1
  14. package/build/runtime-brightnessContrast-KDKGUPZA.js.br +0 -0
  15. package/build/runtime-brightnessContrast-KDKGUPZA.js.gz +0 -0
  16. package/build/{runtime-chromaticAberration-ULERBLSS.js → runtime-chromaticAberration-AGC3TEBP.js} +1 -1
  17. package/build/runtime-chromaticAberration-AGC3TEBP.js.br +0 -0
  18. package/build/runtime-chromaticAberration-AGC3TEBP.js.gz +0 -0
  19. package/build/{runtime-chunk-IH3RPWDV.js → runtime-chunk-27QPORAV.js} +1 -1
  20. package/build/runtime-chunk-27QPORAV.js.br +0 -0
  21. package/build/runtime-chunk-27QPORAV.js.gz +0 -0
  22. package/build/runtime-chunk-2J22FGZA.js +1 -0
  23. package/build/runtime-chunk-2J22FGZA.js.br +0 -0
  24. package/build/runtime-chunk-2J22FGZA.js.gz +0 -0
  25. package/build/{runtime-chunk-NUJ5WMN6.js → runtime-chunk-2KPZ3Y4K.js} +1 -1
  26. package/build/runtime-chunk-2KPZ3Y4K.js.br +1 -0
  27. package/build/runtime-chunk-2KPZ3Y4K.js.gz +0 -0
  28. package/build/{runtime-chunk-55OGVFGW.js → runtime-chunk-3WXWS4GR.js} +1 -1
  29. package/build/runtime-chunk-3WXWS4GR.js.br +0 -0
  30. package/build/runtime-chunk-3WXWS4GR.js.gz +0 -0
  31. package/build/{runtime-chunk-XCEOVI2X.js → runtime-chunk-46J7VRII.js} +1 -1
  32. package/build/runtime-chunk-46J7VRII.js.br +1 -0
  33. package/build/runtime-chunk-46J7VRII.js.gz +0 -0
  34. package/build/{runtime-chunk-K2MN5GR6.js → runtime-chunk-4CZMH4Y6.js} +1 -1
  35. package/build/runtime-chunk-4CZMH4Y6.js.br +0 -0
  36. package/build/runtime-chunk-4CZMH4Y6.js.gz +0 -0
  37. package/build/{runtime-chunk-52FUITQN.js → runtime-chunk-6AGXWZDL.js} +1 -1
  38. package/build/runtime-chunk-6AGXWZDL.js.br +0 -0
  39. package/build/runtime-chunk-6AGXWZDL.js.gz +0 -0
  40. package/build/{runtime-chunk-QHE2XPDB.js → runtime-chunk-6O45LU22.js} +1 -1
  41. package/build/runtime-chunk-6O45LU22.js.br +0 -0
  42. package/build/runtime-chunk-6O45LU22.js.gz +0 -0
  43. package/build/{runtime-chunk-EKHVTWIR.js → runtime-chunk-6XDYHY5H.js} +1 -1
  44. package/build/runtime-chunk-6XDYHY5H.js.br +0 -0
  45. package/build/runtime-chunk-6XDYHY5H.js.gz +0 -0
  46. package/build/{runtime-chunk-PLUE7U54.js → runtime-chunk-7RXWJFWZ.js} +1 -1
  47. package/build/runtime-chunk-7RXWJFWZ.js.br +0 -0
  48. package/build/runtime-chunk-7RXWJFWZ.js.gz +0 -0
  49. package/build/runtime-chunk-AJIFWAXK.js +1 -0
  50. package/build/runtime-chunk-AJIFWAXK.js.br +0 -0
  51. package/build/runtime-chunk-AJIFWAXK.js.gz +0 -0
  52. package/build/runtime-chunk-BWQFJHXW.js +1 -0
  53. package/build/runtime-chunk-BWQFJHXW.js.br +0 -0
  54. package/build/runtime-chunk-BWQFJHXW.js.gz +0 -0
  55. package/build/{runtime-chunk-6N3DUAX3.js → runtime-chunk-DRZ6KFIT.js} +1 -1
  56. package/build/runtime-chunk-DRZ6KFIT.js.br +0 -0
  57. package/build/runtime-chunk-DRZ6KFIT.js.gz +0 -0
  58. package/build/{runtime-chunk-QV5HSVIQ.js → runtime-chunk-FOBRKNDQ.js} +1 -1
  59. package/build/runtime-chunk-FOBRKNDQ.js.br +0 -0
  60. package/build/runtime-chunk-FOBRKNDQ.js.gz +0 -0
  61. package/build/{runtime-chunk-453XNGWA.js → runtime-chunk-GYSAICHY.js} +1 -1
  62. package/build/runtime-chunk-GYSAICHY.js.br +0 -0
  63. package/build/runtime-chunk-GYSAICHY.js.gz +0 -0
  64. package/build/{runtime-chunk-PJC7XXGC.js → runtime-chunk-IMRIOMVE.js} +1 -1
  65. package/build/runtime-chunk-IMRIOMVE.js.br +0 -0
  66. package/build/runtime-chunk-IMRIOMVE.js.gz +0 -0
  67. package/build/{runtime-chunk-PYMHVL3C.js → runtime-chunk-J22NUACK.js} +1 -1
  68. package/build/runtime-chunk-J22NUACK.js.br +0 -0
  69. package/build/runtime-chunk-J22NUACK.js.gz +0 -0
  70. package/build/{runtime-chunk-E2PJF2D7.js → runtime-chunk-KCVUSVM4.js} +1 -1
  71. package/build/runtime-chunk-KCVUSVM4.js.br +0 -0
  72. package/build/runtime-chunk-KCVUSVM4.js.gz +0 -0
  73. package/build/runtime-chunk-LRYUYUSL.js +1 -0
  74. package/build/runtime-chunk-LRYUYUSL.js.br +0 -0
  75. package/build/runtime-chunk-LRYUYUSL.js.gz +0 -0
  76. package/build/{runtime-chunk-HMO4DH2Z.js → runtime-chunk-M7QSTBFO.js} +1 -1
  77. package/build/runtime-chunk-M7QSTBFO.js.br +0 -0
  78. package/build/runtime-chunk-M7QSTBFO.js.gz +0 -0
  79. package/build/{runtime-chunk-2UAICZEL.js → runtime-chunk-MIORJS46.js} +1 -1
  80. package/build/runtime-chunk-MIORJS46.js.br +0 -0
  81. package/build/runtime-chunk-MIORJS46.js.gz +0 -0
  82. package/build/runtime-chunk-N4GUU67P.js +1 -0
  83. package/build/runtime-chunk-N4GUU67P.js.br +0 -0
  84. package/build/runtime-chunk-N4GUU67P.js.gz +0 -0
  85. package/build/{runtime-chunk-PCPZRUZE.js → runtime-chunk-NLORQEYA.js} +1 -1
  86. package/build/runtime-chunk-NLORQEYA.js.br +0 -0
  87. package/build/runtime-chunk-NLORQEYA.js.gz +0 -0
  88. package/build/{runtime-chunk-Z7OJA2FA.js → runtime-chunk-R57HLAUB.js} +1 -1
  89. package/build/runtime-chunk-R57HLAUB.js.br +0 -0
  90. package/build/runtime-chunk-R57HLAUB.js.gz +0 -0
  91. package/build/{runtime-chunk-BH7TACEA.js → runtime-chunk-THWGBRTD.js} +1 -1
  92. package/build/runtime-chunk-THWGBRTD.js.br +0 -0
  93. package/build/runtime-chunk-THWGBRTD.js.gz +0 -0
  94. package/build/{runtime-chunk-WRTP3D3Y.js → runtime-chunk-TU5GVL7R.js} +1 -1
  95. package/build/{runtime-chunk-WRTP3D3Y.js.br → runtime-chunk-TU5GVL7R.js.br} +0 -0
  96. package/build/runtime-chunk-TU5GVL7R.js.gz +0 -0
  97. package/build/{runtime-chunk-UOTTCQ5L.js → runtime-chunk-UOTDE4CZ.js} +1 -1
  98. package/build/runtime-chunk-UOTDE4CZ.js.br +0 -0
  99. package/build/runtime-chunk-UOTDE4CZ.js.gz +0 -0
  100. package/build/{runtime-chunk-ICB6F3P3.js → runtime-chunk-WJL67HCI.js} +1 -1
  101. package/build/runtime-chunk-WJL67HCI.js.br +0 -0
  102. package/build/runtime-chunk-WJL67HCI.js.gz +0 -0
  103. package/build/runtime-chunk-YWD2V7PG.js +1 -0
  104. package/build/runtime-chunk-YWD2V7PG.js.br +0 -0
  105. package/build/runtime-chunk-YWD2V7PG.js.gz +0 -0
  106. package/build/runtime-chunk-ZA2NAZL4.js +1 -0
  107. package/build/runtime-chunk-ZA2NAZL4.js.br +0 -0
  108. package/build/runtime-chunk-ZA2NAZL4.js.gz +0 -0
  109. package/build/{runtime-chunk-VQ353OJQ.js → runtime-chunk-ZQAU2HLK.js} +1 -1
  110. package/build/runtime-chunk-ZQAU2HLK.js.br +0 -0
  111. package/build/runtime-chunk-ZQAU2HLK.js.gz +0 -0
  112. package/build/runtime-classicRuntime-VEBYXJWS.js +1 -0
  113. package/build/runtime-classicRuntime-VEBYXJWS.js.br +0 -0
  114. package/build/runtime-classicRuntime-VEBYXJWS.js.gz +0 -0
  115. package/build/runtime-cloners-DZTSCHR7.js +1 -0
  116. package/build/runtime-cloners-DZTSCHR7.js.br +0 -0
  117. package/build/runtime-cloners-DZTSCHR7.js.gz +0 -0
  118. package/build/runtime-components-QSI2JAXS.js +1 -0
  119. package/build/runtime-components-QSI2JAXS.js.br +0 -0
  120. package/build/runtime-components-QSI2JAXS.js.gz +0 -0
  121. package/build/runtime-conditional-HJDOZC2E.js +1 -0
  122. package/build/runtime-conditional-HJDOZC2E.js.br +0 -0
  123. package/build/runtime-conditional-HJDOZC2E.js.gz +0 -0
  124. package/build/{runtime-createDestroy-J5DLC4NC.js → runtime-createDestroy-4DROXL6V.js} +1 -1
  125. package/build/runtime-createDestroy-4DROXL6V.js.br +0 -0
  126. package/build/runtime-createDestroy-4DROXL6V.js.gz +0 -0
  127. package/build/{runtime-depthOfField-2XTSBAID.js → runtime-depthOfField-AH3I2OPS.js} +1 -1
  128. package/build/runtime-depthOfField-AH3I2OPS.js.br +0 -0
  129. package/build/runtime-depthOfField-AH3I2OPS.js.gz +0 -0
  130. package/build/{runtime-dragDrop-CCWLDPN3.js → runtime-dragDrop-YGHEYCYT.js} +1 -1
  131. package/build/runtime-dragDrop-YGHEYCYT.js.br +0 -0
  132. package/build/runtime-dragDrop-YGHEYCYT.js.gz +0 -0
  133. package/build/{runtime-gameControls-ENMHORQ6.js → runtime-gameControls-X2AHB45E.js} +1 -1
  134. package/build/runtime-gameControls-X2AHB45E.js.br +0 -0
  135. package/build/runtime-gameControls-X2AHB45E.js.gz +0 -0
  136. package/build/runtime-hair-SO3TLB3F.js +1 -0
  137. package/build/runtime-hair-SO3TLB3F.js.br +3 -0
  138. package/build/runtime-hair-SO3TLB3F.js.gz +0 -0
  139. package/build/{runtime-hueSaturation-LLSF2RSW.js → runtime-hueSaturation-XWCN6SAB.js} +1 -1
  140. package/build/runtime-hueSaturation-XWCN6SAB.js.br +0 -0
  141. package/build/runtime-hueSaturation-XWCN6SAB.js.gz +0 -0
  142. package/build/{runtime-mergeStaticGeometries-2NHHWVXT.js → runtime-mergeStaticGeometries-46WJLTRW.js} +1 -1
  143. package/build/runtime-mergeStaticGeometries-46WJLTRW.js.br +0 -0
  144. package/build/runtime-mergeStaticGeometries-46WJLTRW.js.gz +0 -0
  145. package/build/{runtime-miscActions-NLHL7QPH.js → runtime-miscActions-TPHZCF6K.js} +1 -1
  146. package/build/runtime-miscActions-TPHZCF6K.js.br +0 -0
  147. package/build/runtime-miscActions-TPHZCF6K.js.gz +0 -0
  148. package/build/{runtime-mouseHover-6JAK7PUV.js → runtime-mouseHover-RIR3W3GU.js} +1 -1
  149. package/build/runtime-mouseHover-RIR3W3GU.js.br +0 -0
  150. package/build/runtime-mouseHover-RIR3W3GU.js.gz +0 -0
  151. package/build/{runtime-noise-5RKDCB4M.js → runtime-noise-CNDNBSWI.js} +1 -1
  152. package/build/runtime-noise-CNDNBSWI.js.br +0 -0
  153. package/build/runtime-noise-CNDNBSWI.js.gz +0 -0
  154. package/build/{runtime-particles-V6U2Y2M4.js → runtime-particles-KLKVYJQB.js} +1 -1
  155. package/build/runtime-particles-KLKVYJQB.js.br +0 -0
  156. package/build/runtime-particles-KLKVYJQB.js.gz +0 -0
  157. package/build/{runtime-paths-YW6AS2HF.js → runtime-paths-V3IROMZG.js} +1 -1
  158. package/build/runtime-paths-V3IROMZG.js.br +0 -0
  159. package/build/runtime-paths-V3IROMZG.js.gz +0 -0
  160. package/build/{runtime-pixelation-ZX7Y35KB.js → runtime-pixelation-K2RJWVNF.js} +1 -1
  161. package/build/runtime-pixelation-K2RJWVNF.js.br +0 -0
  162. package/build/runtime-pixelation-K2RJWVNF.js.gz +0 -0
  163. package/build/{runtime-resize-DI6VXCWJ.js → runtime-resize-6LHTN4PE.js} +1 -1
  164. package/build/runtime-resize-6LHTN4PE.js.br +0 -0
  165. package/build/runtime-resize-6LHTN4PE.js.gz +0 -0
  166. package/build/{runtime-sceneTransition-K5K646BR.js → runtime-sceneTransition-JGM6FGMS.js} +1 -1
  167. package/build/runtime-sceneTransition-JGM6FGMS.js.br +0 -0
  168. package/build/runtime-sceneTransition-JGM6FGMS.js.gz +0 -0
  169. package/build/{runtime-scroll-AL7RL3AA.js → runtime-scroll-LM2GZSV6.js} +1 -1
  170. package/build/runtime-scroll-LM2GZSV6.js.br +0 -0
  171. package/build/runtime-scroll-LM2GZSV6.js.gz +0 -0
  172. package/build/runtime-shapeBlends-S4UXUBG4.js +1 -0
  173. package/build/runtime-shapeBlends-S4UXUBG4.js.br +3 -0
  174. package/build/runtime-shapeBlends-S4UXUBG4.js.gz +0 -0
  175. package/build/{runtime-text-HYZ4KSML.js → runtime-text-PWPSD7PI.js} +1 -1
  176. package/build/runtime-text-PWPSD7PI.js.br +0 -0
  177. package/build/runtime-text-PWPSD7PI.js.gz +0 -0
  178. package/build/{runtime-textInputs-YSCAXMS2.js → runtime-textInputs-JDP2QDPY.js} +1 -1
  179. package/build/runtime-textInputs-JDP2QDPY.js.br +0 -0
  180. package/build/runtime-textInputs-JDP2QDPY.js.gz +0 -0
  181. package/build/runtime-timeline-JJME3QEM.js +1 -0
  182. package/build/runtime-timeline-JJME3QEM.js.br +0 -0
  183. package/build/runtime-timeline-JJME3QEM.js.gz +0 -0
  184. package/build/runtime-tracking-WCXWKQPJ.js +1 -0
  185. package/build/runtime-tracking-WCXWKQPJ.js.br +0 -0
  186. package/build/runtime-tracking-WCXWKQPJ.js.gz +0 -0
  187. package/build/runtime-transitions-WKBWIOZV.js +1 -0
  188. package/build/runtime-transitions-WKBWIOZV.js.br +0 -0
  189. package/build/runtime-transitions-WKBWIOZV.js.gz +0 -0
  190. package/build/{runtime-ui2d-SHXWOKUX.js → runtime-ui2d-HYUVQRGU.js} +1 -1
  191. package/build/runtime-ui2d-HYUVQRGU.js.br +0 -0
  192. package/build/runtime-ui2d-HYUVQRGU.js.gz +0 -0
  193. package/build/runtime-updater-HIFDP7ZF.js +1 -0
  194. package/build/runtime-updater-HIFDP7ZF.js.br +2 -0
  195. package/build/runtime-updater-HIFDP7ZF.js.gz +0 -0
  196. package/build/runtime-variables-WNRN36H7.js +1 -0
  197. package/build/runtime-variables-WNRN36H7.js.br +0 -0
  198. package/build/runtime-variables-WNRN36H7.js.gz +0 -0
  199. package/build/{runtime-vectorShapes-4EUHURKH.js → runtime-vectorShapes-WUY3LNH5.js} +1 -1
  200. package/build/runtime-vectorShapes-WUY3LNH5.js.br +0 -0
  201. package/build/runtime-vectorShapes-WUY3LNH5.js.gz +0 -0
  202. package/build/{runtime-video-VSGOH3JE.js → runtime-video-SFJZ4JN2.js} +1 -1
  203. package/build/runtime-video-SFJZ4JN2.js.br +0 -0
  204. package/build/runtime-video-SFJZ4JN2.js.gz +0 -0
  205. package/build/{runtime-vignette-QTZODV2Y.js → runtime-vignette-4UDJSAUE.js} +1 -1
  206. package/build/runtime-vignette-4UDJSAUE.js.br +0 -0
  207. package/build/runtime-vignette-4UDJSAUE.js.gz +0 -0
  208. package/build/runtime-webgpu-S6PEVI6D.js +1 -0
  209. package/build/runtime-webgpu-S6PEVI6D.js.br +0 -0
  210. package/build/runtime-webgpu-S6PEVI6D.js.gz +0 -0
  211. package/build/runtime.cjs +322 -322
  212. package/build/runtime.js +1 -1
  213. package/build/runtime.js.br +0 -0
  214. package/build/runtime.js.gz +0 -0
  215. package/build/runtime.standalone.js +1 -1
  216. package/build/runtime.standalone.js.br +0 -0
  217. package/build/runtime.standalone.js.gz +0 -0
  218. package/build/runtime.standalone.webgl.js +1 -1
  219. package/build/runtime.standalone.webgl.js.br +0 -0
  220. package/build/runtime.standalone.webgl.js.gz +0 -0
  221. package/build/runtime.standalone.webgpu.js +1 -1
  222. package/build/runtime.standalone.webgpu.js.br +0 -0
  223. package/build/runtime.standalone.webgpu.js.gz +0 -0
  224. package/build/runtime.standalone.webgpu.micro.js +1 -1
  225. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  226. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  227. package/build/runtime.standalone.webgpu.min.js +1 -1
  228. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  229. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  230. package/package.json +1 -1
  231. package/build/runtime-aiAssistant-JYKXMMRS.js.br +0 -0
  232. package/build/runtime-aiAssistant-JYKXMMRS.js.gz +0 -0
  233. package/build/runtime-apiServices-II44FZUJ.js.br +0 -0
  234. package/build/runtime-apiServices-II44FZUJ.js.gz +0 -0
  235. package/build/runtime-audio-PFLKMACM.js.br +0 -0
  236. package/build/runtime-audio-PFLKMACM.js.gz +0 -0
  237. package/build/runtime-bloom-FJMT2ZZ4.js.br +0 -0
  238. package/build/runtime-bloom-FJMT2ZZ4.js.gz +0 -0
  239. package/build/runtime-brightnessContrast-64X55RZB.js.br +0 -0
  240. package/build/runtime-brightnessContrast-64X55RZB.js.gz +0 -0
  241. package/build/runtime-chromaticAberration-ULERBLSS.js.br +0 -0
  242. package/build/runtime-chromaticAberration-ULERBLSS.js.gz +0 -0
  243. package/build/runtime-chunk-2UAICZEL.js.br +0 -0
  244. package/build/runtime-chunk-2UAICZEL.js.gz +0 -0
  245. package/build/runtime-chunk-453XNGWA.js.br +0 -0
  246. package/build/runtime-chunk-453XNGWA.js.gz +0 -0
  247. package/build/runtime-chunk-52FUITQN.js.br +0 -0
  248. package/build/runtime-chunk-52FUITQN.js.gz +0 -0
  249. package/build/runtime-chunk-55OGVFGW.js.br +0 -0
  250. package/build/runtime-chunk-55OGVFGW.js.gz +0 -0
  251. package/build/runtime-chunk-6N3DUAX3.js.br +0 -0
  252. package/build/runtime-chunk-6N3DUAX3.js.gz +0 -0
  253. package/build/runtime-chunk-BH7TACEA.js.br +0 -0
  254. package/build/runtime-chunk-BH7TACEA.js.gz +0 -0
  255. package/build/runtime-chunk-E2PJF2D7.js.br +0 -0
  256. package/build/runtime-chunk-E2PJF2D7.js.gz +0 -0
  257. package/build/runtime-chunk-EKHVTWIR.js.br +0 -0
  258. package/build/runtime-chunk-EKHVTWIR.js.gz +0 -0
  259. package/build/runtime-chunk-GHMG47RT.js +0 -1
  260. package/build/runtime-chunk-GHMG47RT.js.br +0 -0
  261. package/build/runtime-chunk-GHMG47RT.js.gz +0 -0
  262. package/build/runtime-chunk-HMO4DH2Z.js.br +0 -0
  263. package/build/runtime-chunk-HMO4DH2Z.js.gz +0 -0
  264. package/build/runtime-chunk-IADZBF4C.js +0 -1
  265. package/build/runtime-chunk-IADZBF4C.js.br +0 -0
  266. package/build/runtime-chunk-IADZBF4C.js.gz +0 -0
  267. package/build/runtime-chunk-ICB6F3P3.js.br +0 -0
  268. package/build/runtime-chunk-ICB6F3P3.js.gz +0 -0
  269. package/build/runtime-chunk-IH3RPWDV.js.br +0 -0
  270. package/build/runtime-chunk-IH3RPWDV.js.gz +0 -0
  271. package/build/runtime-chunk-K2MN5GR6.js.br +0 -0
  272. package/build/runtime-chunk-K2MN5GR6.js.gz +0 -0
  273. package/build/runtime-chunk-NBRR4C4I.js +0 -1
  274. package/build/runtime-chunk-NBRR4C4I.js.br +0 -0
  275. package/build/runtime-chunk-NBRR4C4I.js.gz +0 -0
  276. package/build/runtime-chunk-NTRCINR2.js +0 -1
  277. package/build/runtime-chunk-NTRCINR2.js.br +0 -0
  278. package/build/runtime-chunk-NTRCINR2.js.gz +0 -0
  279. package/build/runtime-chunk-NUJ5WMN6.js.br +0 -0
  280. package/build/runtime-chunk-NUJ5WMN6.js.gz +0 -0
  281. package/build/runtime-chunk-NY4SLVL4.js +0 -1
  282. package/build/runtime-chunk-NY4SLVL4.js.br +0 -0
  283. package/build/runtime-chunk-NY4SLVL4.js.gz +0 -0
  284. package/build/runtime-chunk-PCPZRUZE.js.br +0 -0
  285. package/build/runtime-chunk-PCPZRUZE.js.gz +0 -0
  286. package/build/runtime-chunk-PJC7XXGC.js.br +0 -0
  287. package/build/runtime-chunk-PJC7XXGC.js.gz +0 -0
  288. package/build/runtime-chunk-PLUE7U54.js.br +0 -0
  289. package/build/runtime-chunk-PLUE7U54.js.gz +0 -0
  290. package/build/runtime-chunk-PYMHVL3C.js.br +0 -0
  291. package/build/runtime-chunk-PYMHVL3C.js.gz +0 -0
  292. package/build/runtime-chunk-QHE2XPDB.js.br +0 -0
  293. package/build/runtime-chunk-QHE2XPDB.js.gz +0 -0
  294. package/build/runtime-chunk-QV5HSVIQ.js.br +0 -0
  295. package/build/runtime-chunk-QV5HSVIQ.js.gz +0 -0
  296. package/build/runtime-chunk-R5CQOT7I.js +0 -1
  297. package/build/runtime-chunk-R5CQOT7I.js.br +0 -0
  298. package/build/runtime-chunk-R5CQOT7I.js.gz +0 -0
  299. package/build/runtime-chunk-UOTTCQ5L.js.br +0 -0
  300. package/build/runtime-chunk-UOTTCQ5L.js.gz +0 -0
  301. package/build/runtime-chunk-VQ353OJQ.js.br +0 -0
  302. package/build/runtime-chunk-VQ353OJQ.js.gz +0 -0
  303. package/build/runtime-chunk-WRTP3D3Y.js.gz +0 -0
  304. package/build/runtime-chunk-WS3VQYSL.js +0 -1
  305. package/build/runtime-chunk-WS3VQYSL.js.br +0 -0
  306. package/build/runtime-chunk-WS3VQYSL.js.gz +0 -0
  307. package/build/runtime-chunk-XCEOVI2X.js.br +0 -0
  308. package/build/runtime-chunk-XCEOVI2X.js.gz +0 -0
  309. package/build/runtime-chunk-Z7OJA2FA.js.br +0 -0
  310. package/build/runtime-chunk-Z7OJA2FA.js.gz +0 -0
  311. package/build/runtime-classicRuntime-UTQ5DZFJ.js +0 -1
  312. package/build/runtime-classicRuntime-UTQ5DZFJ.js.br +0 -0
  313. package/build/runtime-classicRuntime-UTQ5DZFJ.js.gz +0 -0
  314. package/build/runtime-cloners-3G4CGXSA.js +0 -1
  315. package/build/runtime-cloners-3G4CGXSA.js.br +0 -0
  316. package/build/runtime-cloners-3G4CGXSA.js.gz +0 -0
  317. package/build/runtime-components-RTJEWRGC.js +0 -1
  318. package/build/runtime-components-RTJEWRGC.js.br +0 -0
  319. package/build/runtime-components-RTJEWRGC.js.gz +0 -0
  320. package/build/runtime-conditional-IG7IFLL5.js +0 -1
  321. package/build/runtime-conditional-IG7IFLL5.js.br +0 -0
  322. package/build/runtime-conditional-IG7IFLL5.js.gz +0 -0
  323. package/build/runtime-createDestroy-J5DLC4NC.js.br +0 -0
  324. package/build/runtime-createDestroy-J5DLC4NC.js.gz +0 -0
  325. package/build/runtime-depthOfField-2XTSBAID.js.br +0 -0
  326. package/build/runtime-depthOfField-2XTSBAID.js.gz +0 -0
  327. package/build/runtime-dragDrop-CCWLDPN3.js.br +0 -0
  328. package/build/runtime-dragDrop-CCWLDPN3.js.gz +0 -0
  329. package/build/runtime-gameControls-ENMHORQ6.js.br +0 -0
  330. package/build/runtime-gameControls-ENMHORQ6.js.gz +0 -0
  331. package/build/runtime-hair-ZKDPGZ6P.js +0 -1
  332. package/build/runtime-hair-ZKDPGZ6P.js.br +0 -1
  333. package/build/runtime-hair-ZKDPGZ6P.js.gz +0 -0
  334. package/build/runtime-hueSaturation-LLSF2RSW.js.br +0 -0
  335. package/build/runtime-hueSaturation-LLSF2RSW.js.gz +0 -0
  336. package/build/runtime-mergeStaticGeometries-2NHHWVXT.js.br +0 -0
  337. package/build/runtime-mergeStaticGeometries-2NHHWVXT.js.gz +0 -0
  338. package/build/runtime-miscActions-NLHL7QPH.js.br +0 -0
  339. package/build/runtime-miscActions-NLHL7QPH.js.gz +0 -0
  340. package/build/runtime-mouseHover-6JAK7PUV.js.br +0 -0
  341. package/build/runtime-mouseHover-6JAK7PUV.js.gz +0 -0
  342. package/build/runtime-noise-5RKDCB4M.js.br +0 -0
  343. package/build/runtime-noise-5RKDCB4M.js.gz +0 -0
  344. package/build/runtime-particles-V6U2Y2M4.js.br +0 -0
  345. package/build/runtime-particles-V6U2Y2M4.js.gz +0 -0
  346. package/build/runtime-paths-YW6AS2HF.js.br +0 -0
  347. package/build/runtime-paths-YW6AS2HF.js.gz +0 -0
  348. package/build/runtime-pixelation-ZX7Y35KB.js.br +0 -0
  349. package/build/runtime-pixelation-ZX7Y35KB.js.gz +0 -0
  350. package/build/runtime-resize-DI6VXCWJ.js.br +0 -0
  351. package/build/runtime-resize-DI6VXCWJ.js.gz +0 -0
  352. package/build/runtime-sceneTransition-K5K646BR.js.br +0 -0
  353. package/build/runtime-sceneTransition-K5K646BR.js.gz +0 -0
  354. package/build/runtime-scroll-AL7RL3AA.js.br +0 -0
  355. package/build/runtime-scroll-AL7RL3AA.js.gz +0 -0
  356. package/build/runtime-shapeBlends-PWCP7GJK.js +0 -1
  357. package/build/runtime-shapeBlends-PWCP7GJK.js.br +0 -0
  358. package/build/runtime-shapeBlends-PWCP7GJK.js.gz +0 -0
  359. package/build/runtime-text-HYZ4KSML.js.br +0 -0
  360. package/build/runtime-text-HYZ4KSML.js.gz +0 -0
  361. package/build/runtime-textInputs-YSCAXMS2.js.br +0 -0
  362. package/build/runtime-textInputs-YSCAXMS2.js.gz +0 -0
  363. package/build/runtime-timeline-BVRMRWBK.js +0 -1
  364. package/build/runtime-timeline-BVRMRWBK.js.br +0 -0
  365. package/build/runtime-timeline-BVRMRWBK.js.gz +0 -0
  366. package/build/runtime-tracking-QU5ZWOFH.js +0 -1
  367. package/build/runtime-tracking-QU5ZWOFH.js.br +0 -0
  368. package/build/runtime-tracking-QU5ZWOFH.js.gz +0 -0
  369. package/build/runtime-transitions-R2UAEJAC.js +0 -1
  370. package/build/runtime-transitions-R2UAEJAC.js.br +0 -0
  371. package/build/runtime-transitions-R2UAEJAC.js.gz +0 -0
  372. package/build/runtime-ui2d-SHXWOKUX.js.br +0 -0
  373. package/build/runtime-ui2d-SHXWOKUX.js.gz +0 -0
  374. package/build/runtime-updater-QAQQJKLZ.js +0 -1
  375. package/build/runtime-updater-QAQQJKLZ.js.br +0 -2
  376. package/build/runtime-updater-QAQQJKLZ.js.gz +0 -0
  377. package/build/runtime-variables-I5YZMLEW.js +0 -1
  378. package/build/runtime-variables-I5YZMLEW.js.br +0 -0
  379. package/build/runtime-variables-I5YZMLEW.js.gz +0 -0
  380. package/build/runtime-vectorShapes-4EUHURKH.js.br +0 -0
  381. package/build/runtime-vectorShapes-4EUHURKH.js.gz +0 -0
  382. package/build/runtime-video-VSGOH3JE.js.br +0 -0
  383. package/build/runtime-video-VSGOH3JE.js.gz +0 -0
  384. package/build/runtime-vignette-QTZODV2Y.js.br +0 -0
  385. package/build/runtime-vignette-QTZODV2Y.js.gz +0 -0
  386. package/build/runtime-webgpu-I63DJ3PT.js +0 -1
  387. package/build/runtime-webgpu-I63DJ3PT.js.br +0 -0
  388. package/build/runtime-webgpu-I63DJ3PT.js.gz +0 -0
@@ -1 +0,0 @@
1
- import{a as r}from"./runtime-chunk-QHE2XPDB.js";import"./runtime-chunk-QV5HSVIQ.js";import"./runtime-chunk-E2PJF2D7.js";import"./runtime-chunk-453XNGWA.js";import"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as m}from"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as n}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-NY4SLVL4.js";import"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";m.Cloner=r,n("cloners");
@@ -1 +0,0 @@
1
- import{a as e}from"./runtime-chunk-IH3RPWDV.js";import{a as t}from"./runtime-chunk-WRTP3D3Y.js";import{d as n}from"./runtime-chunk-PJC7XXGC.js";import{ja as i}from"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as s,h as o}from"./runtime-chunk-GHMG47RT.js";import{d as r,e as a}from"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as p,d}from"./runtime-chunk-TZCHGFVF.js";import{Ba as l,Ca as c,J as h,Ja as u,h as m,i as f,wa as y}from"./runtime-chunk-NY4SLVL4.js";import{Qc as v,Uc as g,qd as j}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";var I=class extends(n(g,t)){constructor(e,t,n){super(),this.isComponentObject=!0,"Instance"===t.type&&"string"==typeof e&&(t=this.transformAssignData(t,n)),this.super_Entity(e,t),this.objectHelper.update()}get isComponentRoot(){return"Component"===this.data.type&&"string"==typeof this.identity}get isInstanceRoot(){return"Instance"===this.data.type&&"string"==typeof this.identity}transformAssignData(e,t){let n=u.getComponentData({scene:t.scene.data,shared:t.shared.data},e.component);if(n){let t,i;for(let s of c.rootOverrideProps)void 0===e[s]?(void 0===t&&(t={...e}),t[s]=n.data[s]):(void 0===i&&(i={}),i[s]=e[s],void 0===t&&(t={...e}),t[s]=f.apply(n.data[s],e[s]));return this.overrideData=i,t}return{...y.defaultData,...e,...a(y.defaultData,c.rootOverrideProps)}}updateByOp(e,t,n,i){let s;if(this.isInstanceRoot&&!i)if(t=this.transformAssignData(t,n),0===e.type&&0===e.path.length&&this.component)for(let t of c.rootOverrideProps)t in e.props&&void 0===e.props[t]&&(void 0===s&&(s={...e,props:{...e.props}}),s.props[t]=this.component.data[t]);else if(0===e.type&&e.path.length>0&&c.rootOverrideProps.includes(e.path[0])){let n=e.path[0];void 0===s&&(s={...e,path:[],props:{[n]:t[n]}})}super.updateByOp(s??e,t,n,i)}updateState(e,t){this.updateState_Entity(e,t)}expandInstanceChildren(t){let n=this.data;if(void 0===this.component){let s=t.scene.find(n.component)??null,r=!1;if(s!==this.oldComponent){if(this.oldComponent){let n=0;for(let i of this.children){if(!o.is(i))break;t.scene.disposeAndUnregisterEntityRecursivelyIfNotReregistered(i),e(i),n+=1}this.children.splice(0,n)}r=!0}if(s){let e={};D(t,[this.uuid],n.overrides,this,s,s,0,r,e);for(let n of this.children)if(o.is(n)){let s=n.data;"Empty"===s.type&&s.animations&&n.traverseEntity(n=>{let s=n.dataPatched;if(n instanceof i&&s.bones&&s.boneInverses){let i=n.dataPatched;if(i.bones&&i.boneInverses){let s=i.bones.map(n=>t.scene.find(e[n])),o=i.boneInverses.map(e=>(new v).fromArray(e)),r=new j(s,o);n.bind(r,n.bindMatrix)}}else n.matrixAutoUpdate=!0})}}this.oldComponent=this.component}}};function k(e,t,n,i){return e.component===t&&r(e.identity,i)?e.overrideData===n?2:1:0}function D(e,t,n,i,r,a,p,d,c){if(p>50)return!1;if(i.component!==r){if(i.component){let e=i.component.instances.indexOf(i);e>=0&&i.component.instances.splice(e,1)}r.instances.find(e=>e===i)||r.instances.push(i),i.component=r}r instanceof I&&r.isInstanceRoot&&r.expandInstanceChildren(e);let u=0;for(let y of r.children)if(o.is(y)){let r=[...t,..."string"==typeof y.identity?[y.identity]:y.identity],v=l.resolve(n,r,1);null!=v&&!(v instanceof m)&&(Object.setPrototypeOf(v,m.prototype),console.error("wrong prototype"));let g,j=null;if(!d){let t=i.children[u];if(j=o.is(t)?t:null,null!==j){let e=k(j,y,v,r);g=e>=1?j.stateSelection:void 0,2!==e&&(j=null)}if(null===j&&(j=e.scene.findInstance(r)??null,null!==j)){let t=k(j,y,v,r);if(g=t>=1?j.stateSelection:void 0,2!==t)j=null;else{let t=j.parent.children.indexOf(j);j.parent.children.splice(t,1),i.children.splice(u,0,j),j.parent===i?t<=u&&console.error("not possible"):(j.parent=i,j.matrixWorldNeedsUpdate=!0,j.resetBBoxNeedsUpdate(),j.updateVisible(),e.pendingDeletes.delete(j))}}}if(null===j){let t=v?f.apply(y.data,v):y.data;h.is(t.type)&&(t={...t,type:"Empty"}),j=s.createEntity(r,t,e),j.overrideData=v,i.add(j),i.children.splice(i.children.length-1,1),i.children.splice(u,0,j),j.updateState(j.data,e),g&&j.changeSelectedState(g,e),e.scene.registerInstanceAndSetUuid(j)}j.isBone&&(c[j.identity[j.identity.length-1]]=j.uuid),u+=1,D(e,t,n,j,y,a,p+1,d,c)}if(!d){let t=u;for(;;){let t=i.children[u];if(!o.is(t))break;e.pendingDeletes.add(t),u+=1}i.children.splice(t,u-t)}return!0}var b=(e,t,n)=>new I(e,t,n);d("Component",b),d("Instance",b),p("components");
@@ -1 +0,0 @@
1
- import{a as t,b as i}from"./runtime-chunk-DZNU62CT.js";import{f as s,g as a}from"./runtime-chunk-PYMHVL3C.js";import"./runtime-chunk-52FUITQN.js";import{a as n}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-NY4SLVL4.js";import{Gc as o,Hc as e,Qc as c,Rc as r}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";function h(t){return Object.values(t).some(t=>t.length>0)}function d(t,i){let s=new Set(i.TimelineAnimation.filter(t=>t.branchTaken()).flatMap(t=>t.animatedObjectIds));!s.size||t.TimelineAnimation.forEach(t=>{t.animatedObjectIds.some(t=>s.has(t))&&t.pauseAndRewind()})}var p=new e,u=new e,f=(new c,new e,new o,new e,new r,class{constructor(t,i,a,n,o){this.actionsIn=s(t,t.inActions,a,n,o,i),this.actionsOut=s(t,t.outActions,a,n,o,i)}disconnect(){a(this.actionsIn),a(this.actionsOut)}}),l=class extends f{constructor(t,i,s,a,n,o){super(i,s,a,n,o),this.id=t,this.data=i,this.object=s,this.stage="out",this.objects=[],this.onUpdateMatrixWorld=()=>{for(let t of this.objects)if(!t.visible)return;let t=p.setFromMatrixPosition(this.objects[0].matrixWorld),i=u.setFromMatrixPosition(this.objects[1].matrixWorld),s=t.distanceTo(i)<=this.distance?"in":"out";if(this.stage!==s){this.stage=s;let t="in"===s?this.actionsIn:this.actionsOut;t.Audio.forEach(t=>t.dispatchConditional()),t.Particles.forEach(t=>t.dispatchConditional()),t.Video.forEach(t=>t.dispatchConditional()),t.Link.forEach(t=>t.dispatch()),t.Create.forEach(t=>t.dispatch()),t.Destroy.forEach(t=>t.dispatch()),t.Reset.forEach(t=>t.dispatch()),t.Transition.forEach(t=>{!t.shouldReinit()||(t.object.currentTransitionEvent!==this&&(t.object.currentTransitionEvent=this),t.init())}),t.Transition.forEach(t=>t.play()),t.Animation.forEach(t=>t.play()),d("in"===s?this.actionsOut:this.actionsIn,t),t.TimelineAnimation.forEach(t=>t.play()),t.SwitchCamera.forEach(t=>t.play()),t.SceneTransition.forEach(t=>t.dispatch()),t.SetVariable.forEach(t=>t.checkConditions()),t.SetVariable.forEach(t=>t.dispatch()),t.DynamicVariablePlay.forEach(t=>t.dispatch()),t.ClearLocalStorage.forEach(t=>t.dispatch()),t.UserAPI.forEach(t=>t.dispatch())}};let{distance:e,fromObject:c,toObject:r}=i.condition;this.distance=e;for(let t of[c,r]){if(!t)throw new Error("Missing property");let i=a.find(t);if(!i)throw new Error("Missing property");this.objects.push(i)}}connect(){window.setTimeout(()=>{this.objects.forEach(t=>{t.addEventListener("updateMatrixWorld",this.onUpdateMatrixWorld),t.addEventListener("updateMatrix",this.onUpdateMatrixWorld)}),this.onUpdateMatrixWorld()},0)}disconnect(){super.disconnect(),this.stage="out",this.objects.forEach(t=>{t.removeEventListener("updateMatrixWorld",this.onUpdateMatrixWorld),t.removeEventListener("updateMatrix",this.onUpdateMatrixWorld)})}},E=class extends f{constructor(t,i,s,a,n,o){super(i,s,a,n,o),this.id=t,this.data=i,this.object=s,this.onTransitionState=({settled:t,state:i})=>{t&&i===(this.toState??null)?h(this.actionsIn)&&this.runInActions():h(this.actionsOut)&&this.runOutActions()};let{condition:e}=i;if(!e.object)throw new Error("Missing property");let c=a.find(e.object)??a.scene.find2D(e.object);if(!c)throw new Error("Missing property");if(this.toObject=c,e.state&&!this.toObject.states?.[e.state])throw new Error("Missing property");this.toState=e.state}connect(){this.toObject.addEventListener("transitionState",this.onTransitionState)}disconnect(){super.disconnect(),this.toObject.removeEventListener("transitionState",this.onTransitionState)}runOutActions(){this.actionsOut.Audio.forEach(t=>t.dispatchConditional()),this.actionsOut.Particles.forEach(t=>t.dispatchConditional()),this.actionsOut.Video.forEach(t=>t.dispatchConditional()),this.actionsOut.Link.forEach(t=>t.dispatch()),this.actionsOut.Create.forEach(t=>t.dispatch()),this.actionsOut.Destroy.forEach(t=>t.dispatch()),this.actionsOut.Reset.forEach(t=>t.dispatch()),this.actionsIn.Transition.forEach(t=>{this.drivesWatchedObject(t)||t.pause()}),this.object.currentTransitionEvent=this,this.actionsOut.Transition.forEach(t=>t.play()),this.actionsOut.Animation.forEach(t=>t.play()),d(this.actionsIn,this.actionsOut),this.actionsOut.TimelineAnimation.forEach(t=>t.play()),this.actionsIn.SwitchCamera.forEach(t=>t.pause()),this.actionsOut.SwitchCamera.forEach(t=>t.play()),this.actionsOut.SceneTransition.forEach(t=>t.dispatch()),this.actionsOut.SetVariable.forEach(t=>t.checkConditions()),this.actionsOut.SetVariable.forEach(t=>t.dispatch()),this.actionsOut.DynamicVariablePlay.forEach(t=>t.dispatch()),this.actionsOut.ClearLocalStorage.forEach(t=>t.dispatch()),this.actionsOut.UserAPI.forEach(t=>t.dispatch())}runInActions(){this.actionsIn.Audio.forEach(t=>t.dispatchConditional()),this.actionsIn.Particles.forEach(t=>t.dispatchConditional()),this.actionsIn.Video.forEach(t=>t.dispatchConditional()),this.actionsIn.Link.forEach(t=>t.dispatch()),this.actionsIn.Create.forEach(t=>t.dispatch()),this.actionsIn.Destroy.forEach(t=>t.dispatch()),this.actionsIn.Reset.forEach(t=>t.dispatch()),this.actionsOut.Transition.forEach(t=>{this.drivesWatchedObject(t)||t.pause()}),this.object.currentTransitionEvent=this,this.actionsIn.Transition.forEach(t=>t.play()),this.actionsIn.Animation.forEach(t=>t.play()),d(this.actionsOut,this.actionsIn),this.actionsIn.TimelineAnimation.forEach(t=>t.play()),this.actionsOut.SwitchCamera.forEach(t=>t.pause()),this.actionsIn.SwitchCamera.forEach(t=>t.play()),this.actionsIn.SceneTransition.forEach(t=>t.dispatch()),this.actionsIn.SetVariable.forEach(t=>t.checkConditions()),this.actionsIn.SetVariable.forEach(t=>t.dispatch()),this.actionsIn.DynamicVariablePlay.forEach(t=>t.dispatch()),this.actionsOut.ClearLocalStorage.forEach(t=>t.dispatch()),this.actionsOut.UserAPI.forEach(t=>t.dispatch())}drivesWatchedObject(t){return t.object===this.toObject}},m=class extends t{constructor(t,i){super(t),this.eventManager=i,this.eventsPerConditions={Comparison:[],Distance:[],State:[]},this.hasVideoAction=!1}connect(){super.connect();let{page:t,sharedAssets:i}=this.eventContext;t.traverseEntity(s=>{if(s.data?.events.length)for(let{id:a,data:n}of s.data.events)if(!n.disabled&&"Conditional"===n.type)try{let o;"Comparison"===n.condition.type||("Distance"===n.condition.type?o=new l(a,n,s,t,i,this.eventManager):"State"===n.condition.type&&(o=new E(a,n,s,t,i,this.eventManager))),o&&(this.eventsPerConditions[n.condition.type].push(o),(o.actionsIn.Video.length||o.actionsOut.Video.length)&&(this.hasVideoAction=!0))}catch(t){}}),Object.values(this.eventsPerConditions).forEach(t=>t.forEach(t=>t.connect()))}disconnect(){super.disconnect(),Object.values(this.eventsPerConditions).forEach(t=>t.forEach(t=>t.disconnect()))}};i("Conditional",({eventContext:t,eventManager:i})=>new m(t,i)),n("conditional");
@@ -1 +0,0 @@
1
- import{k as r}from"./runtime-chunk-K2MN5GR6.js";import"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as i,d as m}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-NY4SLVL4.js";import"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";m("Hair",(i,m,n)=>new r(i,m,n)),i("hair");
@@ -1 +0,0 @@
1
- ���8�I�e����6�l���Tǒ�S�b ���-L�����Pc},��K0 �7�������*{ߢ�)�ܸ�8�O����\���I/���M{���J��G��R,��I;�%BqO���~�Q�I[����$�c���P�%����f�U�t�̕��8=4Iap�ʯ�S�.H
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{k as m}from"./runtime-chunk-PLUE7U54.js";import"./runtime-chunk-QHE2XPDB.js";import"./runtime-chunk-QV5HSVIQ.js";import"./runtime-chunk-XCEOVI2X.js";import"./runtime-chunk-E2PJF2D7.js";import"./runtime-chunk-453XNGWA.js";import"./runtime-chunk-WRTP3D3Y.js";import"./runtime-chunk-PJC7XXGC.js";import"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as n,f as r}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-NY4SLVL4.js";import"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";r("ShapeBlendGeometry",(n,r,t)=>new m(n,r,t)),n("shape-blends");
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{b as e,c as t,d as i,e as a,f as s,i as n}from"./runtime-chunk-55OGVFGW.js";import"./runtime-chunk-BH7TACEA.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-HD7WF3XN.js";import{a as r}from"./runtime-chunk-EKHVTWIR.js";import{a as o}from"./runtime-chunk-GGSUJEGZ.js";import"./runtime-chunk-FTVQTRM7.js";import{a as l,b as h}from"./runtime-chunk-NBRR4C4I.js";import{a as c}from"./runtime-chunk-ICB6F3P3.js";import"./runtime-chunk-E2PJF2D7.js";import"./runtime-chunk-453XNGWA.js";import"./runtime-chunk-PJC7XXGC.js";import{Z as d,ba as u,ha as p,ja as f}from"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as m,e as y}from"./runtime-chunk-PYMHVL3C.js";import{v}from"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import{d as g}from"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as k}from"./runtime-chunk-TZCHGFVF.js";import{A as T,B as D,D as b,E as j,Fa as x,Ka as E,La as C,Ma as O,Wa as A,Xa as I,ma as w,p as F,va as M,z as N}from"./runtime-chunk-NY4SLVL4.js";import{Dc as _,Ec as S}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";var R=Math.fround;function G(e){return"pingpong"===e||"pingpong-rewind"===e}var P=class{constructor(e){this.config=e,this.effectiveCycleDuration=this.cycleDuration(0)}layout(e){let{config:t}=this;if(G(t.direction)&&e%2==1)return{startDelay:0,endDelay:0};switch(t.delayDirection){case"start-once":return 0===e?{startDelay:t.delay,endDelay:0}:{startDelay:0,endDelay:0};case"start":return{startDelay:t.delay,endDelay:0};case"end":return{startDelay:0,endDelay:t.delay};default:return{startDelay:t.delay,endDelay:t.delay}}}cycleDuration(e){let{config:t}=this,{startDelay:i,endDelay:a}=this.layout(e);return R(t.duration+i+a)}get totalDuration(){let{config:e}=this;if(-1===e.repeat)return 1/0;let t=0;for(let i=0;i<=e.repeat;i++)t=R(t+this.cycleDuration(i));return t}isFinished(e){return e>=this.totalDuration}resolve(e){let t,i,{config:a}=this,s=R(e);if("start-once"===a.delayDirection){let e=R(a.delay+a.duration);if(s<e)t=0,i=s;else{let n=R(s-e);t=1+Math.floor(R(n/a.duration)),i=R(n%a.duration)}}else if(G(a.direction)){let e=this.cycleDuration(0),n=R(e+a.duration),r=Math.floor(R(s/n)),o=R(s%n);o<e?(t=2*r,i=o):(t=2*r+1,i=R(o-e))}else{let e=this.cycleDuration(0);t=Math.floor(R(s/e)),i=R(s%e)}if(-1!==a.repeat&&t>=a.repeat+1)return null;let n,{startDelay:r}=this.layout(t),o=G(a.direction)&&t%2==1,l=r,h=R(l+a.duration);if(i<l)n=o?a.duration:0;else if(i>=h)n=o?0:a.duration;else{let e=R(i-l);n=o?R(a.duration-e):e}return{cycleIndex:t,localTime:n,isReverse:o}}};function B(e){return{easing:e.type,control1:E(e.cubicControls?.control1,[0,0]),control2:E(e.cubicControls?.control2,[1,1]),...e.springParameters}}function L(e,t){let i=[];for(let a of e??[]){let e=t(a.data);void 0!==e&&i.push({time:a.data.time,ease:B(a.data.easing),value:e})}return{keyframes:I(i)}}function z(e,t){if(0===e.keyframes.length)return;let{index0:i,index1:a,t:s}=A(e.keyframes,t),n=e.read;if(n&&n.index0===i&&n.index1===a&&n.t===s)return;let r={index0:i,index1:a,from:e.keyframes[i].value,to:e.keyframes[a].value,t:s};return e.read=r,r}function U(e){e.read=void 0}function V(e,t,i){return e+(t-e)*i}function H(e,t,i){!e||(e[t]={...e[t],...i})}function W(s,n,o,u,p,m,y){let k=()=>{y.transform=!0,y.bounds=!0,y.boolean=!0,y.render=!0};switch(s.on){case"position":case"scale":{let e=z(s.track,o);if(!e)return;let t=V(e.from,e.to,e.t);return n[s.on][s.axis]=t,H(m,s.on,{[s.axis]:t}),void k()}case"rotation":{let e=z(s.track,o);if(!e)return;let t=V(e.from,e.to,e.t);return n.rotation[s.axis]=t*S.DEG2RAD,H(m,"rotation",{[s.axis]:t}),void k()}case"shapeSize":{let e=z(s.track,o);if(!(e&&n instanceof f))return;let t=V(e.from,e.to,e.t);return n.userData.value={...n.userData.value,[s.axis]:t},H(m,"shapeSize",{[s.axis]:t}),y.size=!0,y.bounds=!0,y.boolean=!0,void(y.render=!0)}case"opacity":{let e=z(s.track,o);if(!e||!(n instanceof v)||Array.isArray(n.material))return;let t=n.material.getLayersOfType("light")[0];if(void 0===t)return;let i=S.lerp(e.from,e.to,e.t),r=n.material,l=e.to>=1&&(1===e.t||e.from>=1);return r.setTransparent(!l||d(r.data,u.shared),u.scene),a("alphaOverride",t,{alphaOverride:i},{alphaOverride:i+1},0,u.shared),m&&(m.opacity=i),void(y.render=!0)}case"material":{let e=z(s.track,o);if(!e||0===Object.keys(e.from).length||0===Object.keys(e.to).length)return;let{layer:t}=s,i={};for(let s in t.data){if(!(s in e.from)||!(s in e.to))continue;let r=X(e.from[s],e.to[s],e.t,p);if(void 0===r)continue;i[s]=r;let o=t.getValue(s);void 0!==o&&("alpha"===s&&"number"==typeof o&&o>0&&n instanceof v&&!Array.isArray(n.material)&&(n.material.transparent=!0),a(s,t,e.from,e.to,e.t,u.shared))}return H(m,"material",{[t.uuid]:i}),void(y.render=!0)}case"light":{let e=z(s.track,o);if(!e||!(n instanceof l||n instanceof r||n instanceof h))return;let t=X(e.from,e.to,e.t,p);return n[s.field]=t,H(m,"light",{[s.field]:t}),void(y.render=!0)}case"camera":{let e=z(s.track,o);if(!(e&&n instanceof c))return;let t=V(e.from,e.to,e.t);return n[s.field]=t,void H(m,"camera",{[s.field]:t})}case"cloner":{let e=z(s.track,o);if(!e)return;let a=n.cloner?.parameters,r=t(a,e.from,e.to,e.t);return i(a,r),H(m,"cloner",r),y.cloner=!0,y.boolean=!0,void(y.render=!0)}case"pathExtrusion":{let t=z(s.track,o);if(!t||!g(n))return;let i=e(w,t.from,t.to,t.t),a=n.geometry.userData.parameters;return a.extrusion={...a.extrusion,...i},H(m,"pathExtrusion",i),n.updateGeometryInteractions({extrusion:{...a.extrusion}},u.shared),y.bounds=!0,y.boolean=!0,void(y.render=!0)}case"pathSnapping":{let t=z(s.track,o);if(!t)return;let i=n,a=e(M,t.from,t.to,t.t);return i.userData.pathSnapping={...i.userData.pathSnapping,...a},H(m,"pathSnapping",a),i.updatePathSnapping(i.userData.pathSnapping),void(y.render=!0)}}}function X(e,t,i,a){if("string"==typeof e&&a&&(e=a.color(e)),"string"==typeof t&&a&&(t=a.color(t)),"number"==typeof e)return S.lerp(e,t,i);if(j.is(e))return j.lerp(e,t,i);if(b.is(e))return b.lerp(e,t,i);if(Array.isArray(e))return(e.length>t.length?t:e).map((a,s)=>{if(Array.isArray(a)){let a=e[s].length>t[s].length?t[s].length:e[s].length;return(4===a?D:3===a?T:N).lerp(e[s],t[s],i)}return S.lerp(e[s],t[s],i)});if("object"==typeof e&&null!==e){let s={};for(let n in e){let r=X(e[n],t[n],i,a);void 0!==r&&(s[n]=r)}return s}}var K=new Map,Q=new Map,Z=class extends _{constructor(e,t,i,a,s,n){super(),this.id=e,this.data=t,this.scene=i,this.sharedAssets=a,this.object=s,this.eventType=n,this.evaluators=[],this.elapsed=0,this.lastTime=null,this.direction=1,this._playing=!1,this._finished=!1,this.hasPlayedOnce=!1,this.pauseOnNextCycleEnd=!1,this.lastCycleIndex=0;try{let e=x.findTimeline(this.scene.data.objects,this.data.timeline),t=e.duration;this.animatedObjectIds=Object.keys(e.objectTimelines),this.animatedObjectIds.forEach(s=>{let n=this.scene.find(s);if(!n)return;let o=e.objectTimelines[s];!o||this.evaluators.push(function(e,t,i,a,s){let n=function(e,t){let i=[];return C.groupKeyframes(t.keyframes).forEach(t=>{let a=t.path?.[0],s=t.path[1],n=()=>L(t.keyframes,e=>e.value);switch(a){case"position":case"rotation":case"scale":return void(s&&O.includes(s)&&i.push({on:a,axis:s,track:n()}));case"shape size":return void(s&&O.includes(s)&&"geometry"in e&&i.push({on:"shapeSize",axis:s,track:n()}));case"path extrusion":return void(g(e)&&i.push({on:"pathExtrusion",track:L(t.keyframes,e=>e.value)}));case"path snapping":return void(e.data.pathSnapping&&i.push({on:"pathSnapping",track:L(t.keyframes,e=>e.value)}));case"material":return void("Mesh"===e.type&&"material"in e&&function(e,t){let i=p(e.material)?e.material:void 0,a=t.layerId;if(!i||!a)return[];let s=t.keyframes.some(e=>u(e.data.value?.noiseStrength)),n=i.ensureRainbowNoiseCompiled,r=e=>{s&&"function"==typeof n&&n.call(i,e)},o=e=>"data"in e?[{on:"material",layer:e,track:L(t.keyframes,e=>e.value)}]:[];r(a);let l=i.getLayerByUuid(a);if(l)return o(l);let h=t.path[1];for(let e of i.getLayersOfType(h))r(e.uuid);return(i.getLayersOfType(h)??[]).flatMap(o)}(e,t).forEach(e=>i.push(e)));case"opacity":return void("Mesh"===e.type&&"material"in e&&i.push({on:"opacity",track:n()}));case"cloner":return void i.push({on:"cloner",track:L(t.keyframes,e=>e.value)});case"camera":return void(e instanceof c&&i.push({on:"camera",field:"zoom",track:n()}));case"light":return void((e instanceof l||e instanceof r||e instanceof h)&&i.push({on:"light",field:t.path[1],track:L(t.keyframes,e=>e.value)}))}}),i}(e,t);return{duration:i,evaluate(t,i){e.resetBBoxNeedsUpdate();let r={transform:!1,size:!1,cloner:!1,bounds:!1,boolean:!1,render:!1};for(let o of n)W(o,e,t,a,s,i,r);!function(e,t,i){if(t.size&&e instanceof f){let{x:t,y:a,z:s}=e.userData.value;e.updateGeometryInteractions({width:t,height:a,depth:s},i.shared)}t.cloner&&e.cloner?.update(i),t.transform&&e.updateMatrix(),t.bounds&&e.resetBBoxNeedsUpdate(),t.boolean&&e instanceof f&&e.invalidateDownstreamBooleanData(),t.render&&e.dispatchEvent({type:"requestRender"})}(e,r,a)},invalidate(){for(let e of n)U(e.track)}}}(n,{...o},t,{scene:i,shared:a},this.sharedAssets))}),this.schedule=new P((o=this.data,{duration:t,delay:R(o.delay/1e3),delayDirection:o.delayDirection??"start-end",direction:o.direction??"normal",repeat:o.repeat}))}catch(e){throw new Error("Missing property")}var o;s&&(Q.has(s.uuid)?Q.get(s.uuid).push(this):Q.set(s.uuid,[this])),K.set(e,this)}get playing(){return this._playing}get finished(){return this._finished}get paused(){return!this._playing}update(e){null!==this.lastTime&&(this.elapsed=Math.max(0,this.elapsed+(e-this.lastTime)*this.direction)),this.lastTime=e,this.applyAtElapsed()}applyAtElapsed(){if(-1===this.direction&&0===this.elapsed)return void this.pause();let e=this.schedule.resolve(this.elapsed);if(e){if(e.cycleIndex!==this.lastCycleIndex&&(this.lastCycleIndex=e.cycleIndex,this.pauseOnNextCycleEnd))return this.pauseOnNextCycleEnd=!1,void this.pause();for(let t of this.evaluators)t.evaluate(e.localTime)}else 1===this.direction&&this.schedule.isFinished(this.elapsed)&&this.finish()}finish(){this.pause(),this._finished=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof c&&t.dispatchEvent(n)})}startTicking(){this._playing=!0,this.lastTime=null;for(let e of this.evaluators)e.invalidate();o.add(this)}play(){let e=void 0!==this.eventType&&F(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&this.paused&&this.elapsed>0&&!this._finished;if(void 0!==this.eventType&&F(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&!e||void 0===this.eventType&&this._finished)return!1;this.hasPlayedOnce=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof c&&t.dispatchEvent(s)}),!e&&(0===this.elapsed||this._finished)&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.startTicking()}pause(){this._playing=!1,this.lastTime=null,o.remove(this)}rewind(){this.pause(),this.elapsed=0,this.lastCycleIndex=0}stop(){this.rewind(),this.applyAtElapsed(),this._finished=!1}pauseAndRewind(){this.rewind(),this.direction=1,this.pauseOnNextCycleEnd=!1,this._finished=!1}seek(e){let t=this.schedule.totalDuration;this.elapsed=e*(Number.isFinite(t)?t:this.schedule.effectiveCycleDuration);for(let e of this.evaluators)e.invalidate();this.applyAtElapsed()}toggle(e){let t=e??-1===this.direction;this._playing&&this.direction===(t?1:-1)?t&&(this.pauseOnNextCycleEnd=!1):(t?(this._finished&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.pauseOnNextCycleEnd=!1):(this.direction=this.schedule.resolve(this.elapsed)?.isReverse?1:-1,this.pauseOnNextCycleEnd=!0),this.startTicking())}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){this.pause()}},J=class{constructor(e){this.data=e}dispatch(){this.data.playTimeline?this.pauseTimeline(this.data.playTimeline):this.data.object?this.pauseAllTimelinesFromObject(this.data.object):this.pauseAllTimelines()}pauseTimeline(e){let t=this.getTimelineActions(e);!t.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>{e[this.data.interaction]()}),this.disposeDelay()},this.data.delay)):t.forEach(e=>{e[this.data.interaction]()}))}getTimelineActions(e){let t=K.get(e);return t?[t]:[...K.values()].filter(t=>t.data.timeline===e)}pauseAllTimelinesFromObject(e){let t=Q.get(e);!t?.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>e[this.data.interaction]()),this.disposeDelay()},this.data.delay)):t.forEach(e=>e[this.data.interaction]()))}pauseAllTimelines(){let e=[...Q.values()];!e.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}),this.disposeDelay()},this.data.delay)):e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}))}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){clearTimeout(this.timeoutId),delete this.timeoutId}},Y=class{constructor(e,t,i,a,s,n,r){this.data=t,this.sharedAssets=a,this.actionCondition=r;let o="interaction"in t?t.interaction:"play";if("play"===o||void 0===o)this.interaction=new Z(e,t,i,a,s,n);else{if("pause"!==o&&"stop"!==o)throw new Error("Missing property");this.interaction=new J(t)}}get playing(){return this.interaction instanceof Z&&this.interaction.playing}get finished(){return!(this.interaction instanceof Z)||this.interaction.finished}get paused(){return!(this.interaction instanceof Z)||this.interaction.paused}branchTaken(){return y(this.sharedAssets,this.actionCondition)}play(){return!!this.branchTaken()&&(this.interaction instanceof Z?this.interaction.play():void this.interaction.dispatch())}get animatedObjectIds(){return this.interaction instanceof Z?this.interaction.animatedObjectIds:[]}pauseAndRewind(){this.interaction instanceof Z&&this.interaction.pauseAndRewind()}stop(){this.interaction instanceof Z&&this.interaction.stop()}seek(e){!this.branchTaken()||this.interaction instanceof Z&&this.interaction.seek(e)}toggle(e){!this.branchTaken()||(this.interaction instanceof Z?this.interaction.toggle(e):this.interaction.dispatch())}playFromCurrent(){!this.branchTaken()||(this.interaction instanceof Z?this.interaction.playFromCurrent():this.interaction.dispatch())}dispatchConditional(){this.playFromCurrent()}reverseFromCurrent(){!this.branchTaken()||this.interaction instanceof Z&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};m("TimelineAnimation",({id:e,data:t,page:i,shared:a,object:s,eventType:n,actionCondition:r})=>new Y(e,t,i.scene,a,s,n,r)),k("timeline");
@@ -1 +0,0 @@
1
- import{a as e}from"./runtime-chunk-NBYTQLIB.js";import{a as t,b as n}from"./runtime-chunk-DZNU62CT.js";import{a as i}from"./runtime-chunk-VAVYZ35B.js";import{e as s}from"./runtime-chunk-FQNSP44B.js";import{h as a}from"./runtime-chunk-WS3VQYSL.js";import"./runtime-chunk-NBRR4C4I.js";import{g as o}from"./runtime-chunk-ICB6F3P3.js";import"./runtime-chunk-TU4KDRKR.js";import"./runtime-chunk-453XNGWA.js";import"./runtime-chunk-PJC7XXGC.js";import"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{f as r,g as d}from"./runtime-chunk-PYMHVL3C.js";import{v as l}from"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-52FUITQN.js";import{a as h}from"./runtime-chunk-TZCHGFVF.js";import{Qa as u,s as c,t as p}from"./runtime-chunk-NY4SLVL4.js";import{Fc as m,Gc as v,Hc as g,Pe as w,Qc as f,td as E}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";var y=new g,x=new g,L=new g,M=new g,F=new E,D={type:"requestRender"},C=function(){let e=new g,t=new g;return(n,i,s)=>s>0?(e.subVectors(n,i),e.length()<=s?n:t.copy(i).add(e.normalize().multiplyScalar(s))):i}(),P=function(){let e=new f;return(t,n)=>{t.position.copy(n),t.parent instanceof a||(e.copy(t.parent.matrixWorld).invert(),t.position.applyMatrix4(e)),t.updateMatrix(),t.hasNonUniformScale&&(t.updateMatrixWorld(),t.updateMatrixWorldRigid()),t instanceof l&&o(t.parent)&&t.invalidateDownstreamBooleanData(!0)}}(),b=class{constructor(e,t,n,i,s,a){this.data=e,this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.snapComplete=!1,this.isReset=!1,this.worldPosition0=new g,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...c.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.resetDampingFactor=80/this.data.resetSpeed+1,this.object.getWorldPosition(this.worldPosition0),this.actions=r(e,e.actions,i,s,a,n)}},j=class extends t{constructor(e,t){super(e),this.eventManager=t,this.events=[],this.pairOfEventListeners=[],this.onMouseMove=e=>{if(!(i.length>1)){this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"Follow"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new b(n.data,n.id,t,e,this.eventContext.sharedAssets,this.eventManager))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),s&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents||(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events)if(void 0!==e.target){let t=e.target,n=this.onTargetChange(e);this.pairOfEventListeners.push([t,n]),t.addEventListener("requestRender",n)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),s&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let e of this.events)e.paused=!0,e.isReset=!1,d(e.actions)}onAnimationFrameDamping(){for(let e of this.events)e.paused||this.updateSingleEvent(e,!0)}updateSingleEvent(e,t=!1){this.events.forEach(e=>{e.actions.Create.forEach(e=>{e.dispatchThrottled()})});let{plane:n,limitDistance:i,limitDistanceEnabled:s}=e.data;if(e.object.getWorldPosition(L),e.isReset)M.copy(e.worldPosition0);else if(e.target)e.target.getWorldPosition(M);else{let{getCamera:e,raycaster:t}=this.eventContext;if("custom"===n?(e().getWorldDirection(x),x.negate(),y.copy(x)):"xy"===n?y.set(0,0,1):"xz"===n?y.set(0,1,0):"yz"===n&&y.set(1,0,0),F.setFromNormalAndCoplanarPoint(y,L),!t.ray.intersectPlane(F,M))return}if(!e.isReset)if(M.distanceTo(e.worldPosition0)>i&&s&&e.target){if(e.snapComplete=!1,e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return;M.copy(e.worldPosition0),e.currentDampingFactor=e.resetDampingFactor}else if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return;!1===e.data.enabledTranslation[0]&&(M.x=L.x),!1===e.data.enabledTranslation[1]&&(M.y=L.y),!1===e.data.enabledTranslation[2]&&(M.z=L.z);let a=C(L,M,e.wasOutside?0:e.data.maxDelta);if(e.currentDampingFactor>1){let n=y.subVectors(a,L).divideScalar(e.currentDampingFactor);L.add(n),t&&P(e.object,L),e.paused=n.length()<.01}else P(e.object,a),e.paused=!0;e.object?.dispatchEvent({type:"beginEvent",eventName:"Follow"}),e.object.dispatchEvent(D)}},R=new g,W=new g,N=new f,S=new v,k=new v,O=new v,Q=new v,z=new m,T=new w,I=new g,V=new g,A=new g,q=new g,U=new E,B={type:"requestRender"},Y={type:"changeRotation"},G=["x","y","z"],H=function(){let e=new f;return function(t,n){null!==t.parent?e.copy(t.parent.matrixWorld):e.identity(),n.premultiply(u(e).invert()),t.rotation.setFromRotationMatrix(n),t.updateMatrix(),t instanceof l&&o(t.parent)&&t.invalidateDownstreamBooleanData(!0)}}(),X=class{constructor(e,t,n,i){this.id=t,this.object=n,this.paused=!1,this.currentDampingFactor=1,this.isReset=!1,this.worldQuaternion0=new v,this.aim=new v,this.lastPosition=new g,this.lastParentWorld=new f,this.timeoutId=null,this.delayFinished=!0,this.wasOutside=!1,this.data={...p.defaultData,...e,...void 0===e.resetOnPointerLeave&&{resetOnPointerLeave:!1}},void 0===e.target||"cursor"===e.target||(this.target=i.find(e.target)),this.data.dampingFactor&&(this.currentDampingFactor=this.data.dampingFactor),this.object.getWorldQuaternion(this.worldQuaternion0),isNaN(this.worldQuaternion0.x)&&(this.worldQuaternion0.x=0),isNaN(this.worldQuaternion0.y)&&(this.worldQuaternion0.y=0),isNaN(this.worldQuaternion0.z)&&(this.worldQuaternion0.z=0),isNaN(this.worldQuaternion0.w)&&(this.worldQuaternion0.w=1),this.aim.copy(this.worldQuaternion0),this.base0=n.rotation.clone(),this.base=n.rotation.clone(),this.written=n.rotation.clone(),this.lastPosition.copy(n.position),n.parent&&this.lastParentWorld.copy(n.parent.matrixWorld),this.resetDampingFactor=80/this.data.resetSpeed+1}},Z=class extends t{constructor(){super(...arguments),this.events=[],this.pairOfEventListeners=[],this.pairOfUserEventListeners=[],this.lastCameraWorld=new f,this.lastCameraProjection=new f,this.onMouseMove=e=>{if(!(i.length>1)){this._lastMouseEvent=e,this.eventContext.updateRaycaster(e);for(let e of this.events)void 0===e.target&&this.updateSingleEvent(e)}},this.onMouseEnter=e=>{for(let e of this.events)void 0===e.target&&(e.isReset=!1,e.currentDampingFactor=e.data.dampingFactor)},this.onMouseLeave=e=>{for(let e of this.events)void 0===e.target&&(e.data.resetOnPointerLeave&&(e.isReset=!0,e.currentDampingFactor=e.resetDampingFactor),this.updateSingleEvent(e))},this.onScroll=e=>{if(this._lastMouseEvent){let e=new PointerEvent("pointermove",{clientX:this._lastMouseEvent.clientX,clientY:this._lastMouseEvent.clientY,bubbles:!0,cancelable:!0,view:window});this.eventContext.eventElement.dispatchEvent(e)}},this.onTargetChange=e=>()=>{this.updateSingleEvent(e)},this.createUserEventListener=t=>({eventName:n,target:i})=>{if(!n||!i)return;let s=e(n);s&&"LookAt"===s&&this.updateSingleEvent(t)}}connect(){let{page:e}=this.eventContext;if(e.traverseEntity(t=>{let n=t.data?.events.find(e=>"LookAt"===e.data.type&&!e.data.disabled);n&&(!e.data.globalPhysics.usePhysics||"dynamic"!==t.dataPatched.physics?.rigidBody)&&this.events.push(new X(n.data,n.id,t,e))}),!this.events.length)return;let{domElement:t,eventElement:n}=this.eventContext;this.domEventsNeeded.clear(),s&&(this.domEventsNeeded.add("pointerdown"),t.addEventListener("pointerdown",this.onMouseMove)),this.domEventsNeeded.add("pointermove"),n.addEventListener("pointermove",this.onMouseMove),this.eventContext.useWindowEvents?n.addEventListener("scroll",this.onScroll):(t.addEventListener("pointerenter",this.onMouseEnter),t.addEventListener("pointerleave",this.onMouseLeave));for(let e of this.events){if(void 0!==e.target){let t=this.onTargetChange(e),n=e.target;this.pairOfEventListeners.push([n,t]),n.addEventListener("requestRender",t)}let t=this.createUserEventListener(e),n=e.object;this.pairOfUserEventListeners.push([n,t]),n.addEventListener("userEvent",t)}}disconnect(){if(!this.events.length)return;let{domElement:e,eventElement:t}=this.eventContext;this.domEventsNeeded.clear(),s&&e.removeEventListener("pointerdown",this.onMouseMove),t.removeEventListener("pointermove",this.onMouseMove),e.removeEventListener("pointerenter",this.onMouseEnter),e.removeEventListener("pointerleave",this.onMouseLeave),t.removeEventListener("scroll",this.onScroll);for(let[e,t]of this.pairOfEventListeners)e.removeEventListener("requestRender",t);for(let[e,t]of this.pairOfUserEventListeners)e.removeEventListener("userEvent",t);for(let e of this.events)e.paused=!0,e.isReset=!1}onAnimationFrameDamping(){let e=this.cameraMoved();for(let t of this.events)t.paused&&(this.objectMoved(t)||e&&!t.target)&&(t.paused=!1),!t.paused&&this.updateSingleEvent(t)}cameraMoved(){let e=this.eventContext.getCamera();return!(!e||(e.updateWorldMatrix(!0,!1),e===this.lastCamera&&this.lastCameraWorld.equals(e.matrixWorld)&&this.lastCameraProjection.equals(e.projectionMatrix))||(this.lastCamera=e,this.lastCameraWorld.copy(e.matrixWorld),this.lastCameraProjection.copy(e.projectionMatrix),0))}objectMoved(e){let{object:t}=e;return!t.rotation.equals(e.written)||!t.position.equals(e.lastPosition)||!!t.parent&&(t.parent.updateWorldMatrix(!0,!1),!t.parent.matrixWorld.equals(e.lastParentWorld))}updateSingleEvent(e){let{tilt:t,axis:n,distance:i,plane:s,limitDistance:a,enabledRotation:o,limitDistanceEnabled:r}=e.data,{getCamera:d}=this.eventContext,{object:l,target:h}=e,u=!1;for(let t of G)l.rotation[t]!==e.written[t]&&(e.base[t]=l.rotation[t],u=!0);if(l.getWorldPosition(I),e.lastPosition.copy(l.position),l.parent&&e.lastParentWorld.copy(l.parent.matrixWorld),!e.isReset)if(e.target)e.target.getWorldPosition(V);else{let t=d();t.updateWorldMatrix(!0,!1);let{x:n,y:a}=this.eventContext.pointerWorld;if(T.setFromCamera(z.set(n,a),t),"custom"===s?(t.getWorldDirection(W),W.negate(),U.setFromNormalAndCoplanarPoint(W,I)):("xy"===s?R.set(0,0,1):"xz"===s?R.set(0,1,0):"yz"===s&&R.set(1,0,0),U.setFromNormalAndCoplanarPoint(R,I)),!T.ray.intersectPlane(U,V))return this.hold(e,u);i>0&&("custom"===s||void 0===s)&&V.addScaledVector(W,i)}if(e.isReset||(h?"target"===t?A.copy(h.up).applyMatrix4(N.extractRotation(h.matrixWorld)).normalize():o.some(e=>!1===e)?("x"===n?(q.set(0,0,1),!1===o[2]&&q.set(0,1,0)):"y"===n?(q.set(1,0,0),!1===o[0]&&q.set(0,0,1)):(q.set(0,1,0),!1===o[1]&&q.set(1,0,0)),A.copy(q).applyQuaternion(e.worldQuaternion0).normalize()):A.set(0,1,0):"custom"===s?A.set(0,1,0):A.copy(R)),e.isReset)k.copy(e.worldQuaternion0);else if(I.distanceTo(V)>a&&r&&h){if(e.data.snapDelay&&(e.delayFinished=!1,typeof window<"u"&&null!==e.timeoutId&&(window.clearTimeout(e.timeoutId),e.timeoutId=null)),e.wasOutside=!0,!e.data.resetAfterDistanceLimit)return this.hold(e,u);k.copy(e.worldQuaternion0),e.currentDampingFactor=e.resetDampingFactor}else{if(e.wasOutside&&(e.data.snapDelay&&typeof window<"u"&&(e.timeoutId=window.setTimeout(()=>{e.delayFinished=!0,e.paused=!1,this.updateSingleEvent(e)},1e3*e.data.snapDelay)),e.currentDampingFactor=e.data.dampingFactor,e.wasOutside=!1),!1===e.delayFinished)return this.hold(e,u);(function(e,t,n,i,s,a){let o=N.elements;J.subVectors(t,n),0===J.lengthSq()&&(J.z=1),J.normalize(),K.crossVectors(i,J),0===K.lengthSq()&&(1===Math.abs(i.z)?J.x+=1e-4:J.z+=1e-4,J.normalize(),K.crossVectors(i,J)),K.normalize(),_.crossVectors(J,K),"x"===s?1===a.z?[K,_,J]=[J,K,_]:(K.negate(),[K,J]=[J,K]):"y"===s?1===a.x?[K,_,J]=[_,J,K]:(K.negate(),[_,J]=[J,_]):1===a.x&&(K.negate(),[K,_]=[_,K]),o[0]=K.x,o[4]=_.x,o[8]=J.x,o[1]=K.y,o[5]=_.y,o[9]=J.y,o[2]=K.z,o[6]=_.z,o[10]=J.z})(0,V,I,A,n,q),k.setFromRotationMatrix(N),S.setFromUnitVectors(q.applyQuaternion(k),A),o.some(e=>!1===e)&&"target"!==t&&k.premultiply(S).normalize()}e.currentDampingFactor>1?(e.aim.slerp(k,1/e.currentDampingFactor),e.paused=8*(1-Math.abs(e.aim.dot(k)))<1e-6):(e.aim.copy(k),e.paused=!0),this.write(e)}hold(e,t){e.paused=!0,t&&this.write(e)}write(e){let{object:t}=e;Q.setFromEuler(e.base0).invert().multiply(O.setFromEuler(e.base)),S.copy(e.aim).multiply(Q),H(t,N.makeRotationFromQuaternion(S)),e.written.copy(t.rotation),e.object?.dispatchEvent({type:"beginEvent",eventName:"LookAt"}),t.dispatchEvent(B),t.dispatchEvent(Y)}},_=new g,K=new g,J=new g;n("Follow",({eventContext:e,eventManager:t})=>new j(e,t)),n("LookAt",({eventContext:e})=>new Z(e)),h("tracking");
@@ -1 +0,0 @@
1
- import{h as t,j as i,k as e,l as s,m as n}from"./runtime-chunk-55OGVFGW.js";import"./runtime-chunk-BH7TACEA.js";import"./runtime-chunk-NTUTXO7Q.js";import{a as r,b as a,e as o,g as h}from"./runtime-chunk-IADZBF4C.js";import"./runtime-chunk-HD7WF3XN.js";import{a as c}from"./runtime-chunk-GGSUJEGZ.js";import"./runtime-chunk-FTVQTRM7.js";import{a as d}from"./runtime-chunk-ICB6F3P3.js";import"./runtime-chunk-E2PJF2D7.js";import"./runtime-chunk-453XNGWA.js";import"./runtime-chunk-PJC7XXGC.js";import"./runtime-chunk-R5CQOT7I.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as l,e as m}from"./runtime-chunk-PYMHVL3C.js";import"./runtime-chunk-GHMG47RT.js";import"./runtime-chunk-RTLL6WIB.js";import{e as u}from"./runtime-chunk-2PT2WH66.js";import{a as p}from"./runtime-chunk-52FUITQN.js";import{a as g}from"./runtime-chunk-TZCHGFVF.js";import{p as A}from"./runtime-chunk-NY4SLVL4.js";import{Dc as f,Ec as j}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";function y(t){let i=t.tweens[0]?.data;return{delay:i?.delay??t.delay,delayDirection:i?.delayDirection??"start-once",direction:i?.direction??t.direction,repeat:i?.repeat??t.repeat}}var w={state:null,duration:0,delay:0,delayDirection:"start-once",direction:"normal",repeat:0,easing:0},T=class extends f{constructor(t,i,s,n,r,a){if(super(),this.eventType=t,this.data=i,this.page=s,this.shared=n,this.condition=r,this.runModeOverride=a,this.tweens=[],this.hasPlayedOnce=!1,this.inert=e,!i.object)throw new Error("Missing property");let o=this.page.scene.find(i.object)??this.page.uiCanvas?.find(i.object)??this.page.scene.find2DInUIObjects(i.object);if(!o)throw new Error("Missing property");if(!o.states)throw new Error("Missing property");if(this.object=o,i.tweens.length<2)throw new Error("Missing property");this.init()}get playing(){return!0===this.runner?.isPlaying}get animating(){return!0===this.runner?.isAnimating}get claimTime(){return this.runner?.claimTime}get contested(){let t=this.object.previousAction;return null!==t&&t!==this&&t.animating}init(){this.initialCurrentState=i(this.object,this.object.currentState).id,this.build()}shouldReinit(){return!!m(this.shared,this.condition)||!(this.animating&&!this.loopsForever)}get loopsForever(){return-1===y(this.data).repeat||this.data.tweens.some((t,i)=>i>0&&-1===t.data.repeat)}get runMode(){return void 0!==this.runModeOverride?this.runModeOverride:A(this.eventType)?this.data.runMode:"Repeat"}get currentState(){return"Toggle"===this.runMode?this.initialCurrentState:this.object.currentState}get opensOnCurrent(){return void 0===this.data.tweens[0].data.state&&"Toggle"!==this.runMode}build(){let i=this.data.tweens,e=[];try{let t=i[0].data.state;void 0!==t&&e.push(new n(this.object,t,t,w,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert));for(let t=1;t<i.length;t++){let s=i[t-1],r=i[t];e.push(new n(this.object,void 0===s.data.state?this.currentState:s.data.state,void 0===r.data.state?this.currentState:r.data.state,r.data,this.shared,this.data.allowSlerp??!1,this.page,{},()=>this.inert))}}catch(t){return void(t instanceof Error&&console.error(t.message))}this.tweens=e,this.syncInert(),this.runner=new h({...t(y(this.data)),runMode:this.runMode},e.map(t=>t.runner),{claim:t=>this.claimObject(t),assignCurrentState:()=>this.rebindTweens(),isOwner:()=>this.object.previousAction===this})}claimObject(t){if(this.object.previousAction===this)return!1;let i=this.object.previousAction;if(!0===i?.animating){if(void 0!==t&&void 0!==i.claimTime&&i.claimTime>t)return!1;i.pause()}return this.object.previousAction=this,!0}rebindTweens(){for(let t of this.tweens)try{t.rebind()}catch(t){t instanceof Error&&console.error(t.message)}this.syncInert(),this.object instanceof d&&this.object.wasMovedByUser&&(this.object.wasMovedByUser=!1)}syncInert(){let t=this.tweens.flatMap(t=>t.endpointData);if(this.opensOnCurrent&&t.length>0){let e=i(this.object,this.object.currentState);e&&(t[0]=e.data)}this.inert=this.notMovedByOwner(s(t));for(let t of this.tweens)t.refresh()}notMovedByOwner(t){let i=this.object.previousAction;if(0===t.size||null===i||i===this||!i.animating)return t;let e=i.leavesAlone;return new Set([...t].filter(t=>e.has(t)))}get leavesAlone(){return this.inert}update(t){this.runner?.update(t),!0!==this.runner?.isPlaying&&c.remove(this)}play(){if(!1===m(this.shared,this.condition)||"Once"===this.runMode&&this.hasPlayedOnce)return!1;this.hasPlayedOnce=!0,this.start()}start(){!this.runner||(this.runner.play(c.time),this.runner.isPlaying&&c.add(this))}pause(){this.runner?.stop(),c.remove(this)}stop(){this.pause();let t=void 0===this.data.tweens[0].data.state?this.initialCurrentState:this.data.tweens[0].data.state;u(this.object)?this.object.changeSelectedState(t,{shared:this.shared}):this.object.changeSelectedState(t,{scene:this.page.scene,shared:this.shared}),this.object.currentState=t}seek(t){if(!1===m(this.shared,this.condition))return!1;this.runner?.seek(t)}playDirected(t){if(!1===m(this.shared,this.condition))return!1;!this.runner||(this.runner.playDirected(c.time,t),this.runner.isPlaying&&c.add(this))}playFromCurrent(){this.playDirected(!0)}reverseFromCurrent(){this.playDirected(!1)}dispose(){this.pause()}},C=new Map;function b(t,i){if(void 0===i)return;let e=t.scene.find(i);return e?a(e):i}var F=class extends f{constructor(t,i,e,s,n){super(),this.page=i,this.animationControls=e,this.shared=s,this.condition=n,this.startOnceDelay=0,this.toggleIsForward=!1;let a=b(i,t.object)??t.object;this.data={...t,object:a};let o=this.animationControls.clipIdToAction[t.clipId+"/"+a];if(this.duration=o?.getClip()?.duration??1,this.data.crop2){let t=r(o?.getClip());this.leftFrameTime=this.data.crop2[0]/(t-1)*this.duration,this.rightFrameTime=this.data.crop2[1]/(t-1)*this.duration}else{let t=o?.getClip()?.tracks[0]?.times.length;t&&t>1?(this.leftFrameTime=this.data.crop[0]/t*this.duration,this.rightFrameTime=this.data.crop[1]/t*this.duration):(this.leftFrameTime=0,this.rightFrameTime=this.duration)}this.startOnceDelay=t.delay;let h=C.get(a);h||(h=new Set,C.set(a,h)),h.add(this)}get playing(){return this.threeAnimAction?.isRunning()??!1}cancelPending(){window.clearTimeout(this.timeoutId),delete this.timeoutId}resume(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object];return!(!t||!this.animationControls.resumeClip(t)||(this.threeAnimAction=t,0))}play(t=!1){if(!1===m(this.shared,this.condition))return!1;window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.resume()||(this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction&&this.animationControls.startClip(this.threeAnimAction,this.data.object,{start:this.leftFrameTime,end:this.rightFrameTime,fade:t?.2:0}))},this.startOnceDelay)}pause(){this.threeAnimAction&&(this.threeAnimAction.paused=!0),this.cancelPending()}stop(){this.threeAnimAction?.fadeOut(.2)}seek(t){this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction&&(this.threeAnimAction.paused=!0,this.threeAnimAction.time=j.clamp(this.threeAnimAction.time+1/60*t,this.leftFrameTime,this.rightFrameTime-16e-5),this.animationControls.needsUpdate=!0,this.animationControls.requestRender())}toggle(t,i=!1){if(!1===m(this.shared,this.condition))return!1;this.toggleIsForward=t??!this.toggleIsForward,this.threeAnimAction&&(this.threeAnimAction._loopCount=0),this.playing||this.resume()?this.threeAnimAction&&(this.threeAnimAction.timeScale=this.toggleIsForward?1:-1,this.toggleIsForward?(this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime)):this.timeoutId=window.setTimeout(()=>{if(this.threeAnimAction=this.animationControls.play(this.data),this.threeAnimAction){this.toggleIsForward?(this.threeAnimAction.time=this.leftFrameTime,this.threeAnimAction._clip.start=this.leftFrameTime,this.threeAnimAction._clip.duration=this.rightFrameTime):(this.threeAnimAction.time=this.rightFrameTime,this.threeAnimAction._clip.start=this.rightFrameTime,this.threeAnimAction._clip.duration=this.leftFrameTime),this.threeAnimAction.paused=!1,this.threeAnimAction.timeScale=this.toggleIsForward?1:-1;let t=this.data.clipId.split("/")[1];Object.entries(this.animationControls.clipIdToAction).forEach(([e,s])=>{let n=e.split("/")[1];this.threeAnimAction!==s&&n===t&&s.isRunning()&&(i?s.fadeOut(.2):s.stop())}),i&&this.threeAnimAction?.fadeIn(.2)}},this.startOnceDelay)}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){let t=this.animationControls.clipIdToAction[this.data.clipId+"/"+this.data.object]?.getClip();t&&(t.duration=this.duration),this.pause();let i=C.get(this.data.object);i&&(i.delete(this),0===i.size&&C.delete(this.data.object))}},v=class{constructor(t,i,e){this.data=t,this.page=i,this.animationControls=e,this.objectId=b(i,t.object)}dispatch(){this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{this.apply(),this.disposeDelay()},this.data.delay)):this.apply()}targetsClip(t,i){return!(void 0!==this.objectId&&i!==this.objectId||this.data.clipId&&t!==this.data.clipId)}apply(){(void 0!==this.objectId?[C.get(this.objectId)]:[...C.values()]).forEach(t=>{t?.forEach(t=>{this.targetsClip(t.data.clipId,t.data.object)&&t.cancelPending()})}),this.animationControls.holdClips(this.data.interaction,(t,i)=>this.targetsClip(t,i))}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){this.disposeDelay()}},I=class{constructor(t,i,e,s,n){p.isPause(t)?this.interaction=new v(t,i,e):this.interaction=new F(t,i,e,s,n)}get data(){return this.interaction.data}get playing(){return this.interaction instanceof F&&this.interaction.playing}play(t=!1){if(this.interaction instanceof F)return this.interaction.play(t);this.interaction.dispatch()}pause(){this.interaction instanceof F&&this.interaction.pause()}stop(){this.interaction instanceof F&&this.interaction.stop()}seek(t){this.interaction instanceof F&&this.interaction.seek(t)}toggle(t,i=!1){if(this.interaction instanceof F)return this.interaction.toggle(t,i);this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof F?this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof F&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};o(n),l("Transition",({eventType:t,data:i,page:e,shared:s,actionCondition:n,runModeOverride:r})=>new T(t,i,e,s,n,r)),l("Animation",({data:t,page:i,eventManager:e,shared:s,actionCondition:n})=>new I(t,i,e.animationControls,s,n)),g("transitions");
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{$a as a,Ya as e,Za as t,_a as s,ab as u,bb as c,cb as m}from"./runtime-chunk-NY4SLVL4.js";import"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";export{u as updateAllMaterials,m as updateDocumentSchema,c as updateLibSchema,t as updateMaterialSchema,s as updateObjectStateRec,a as updateObjectsSchema,e as updateTextValues};
@@ -1,2 +0,0 @@
1
- Z`�����U���h`��NQ� jr(���p�%�-�l>}K4��7K�]�FS4�ay|nX�GX����R0�>]'�3�����"/�C�/l����W���9,�WHw��v�W3���S ��ȼ�{f[���
2
- �I>�F��r�Q7 2H]Y�>;U��St�W5oV\��
@@ -1 +0,0 @@
1
- import{a as e,b as a}from"./runtime-chunk-DZNU62CT.js";import{b as t}from"./runtime-chunk-TU4KDRKR.js";import{a as i,b as s,e as r,f as n,g as d}from"./runtime-chunk-PYMHVL3C.js";import"./runtime-chunk-52FUITQN.js";import{a as o}from"./runtime-chunk-TZCHGFVF.js";import{Ha as h,Ia as l,v as c}from"./runtime-chunk-NY4SLVL4.js";import{Ec as m,Gc as u,Hc as p,Qc as y,Rc as V}from"./runtime-chunk-KPOUV3HD.js";import"./runtime-chunk-ML3Z74BL.js";var b=new y,v=new p,f=new u,g=new p,T=new V,I=class extends e{constructor(e,a,i,s,r){super(e),this.sharedVariables=a,this.eventManager=i,this.needsMouse=s,this.needsRaycast=r,this.dynamicVars=[],this.variablesToWatch=[],this.prevMouseProperty=null,this.prevRaycastProperty=null,this.pauseTime=0,this.isOutOfFocus=!1,this.events=[],this.onFrame=e=>{let a=this.eventContext.sharedAssets;if(this.rafId=window.requestAnimationFrame(this.onFrame),this.isOutOfFocus)return;let i=new Date,s=[],r=[];for(let e=0;e<this.propertiesToWatch.length;e++){let{objectId:a,property:t,prevValue:i}=this.propertiesToWatch[e],s=this.eventContext.scene.find(a),n=c.propertyPaths[t];if("width"===n[0]||"height"===n[0]||"depth"===n[0])s=s.geometry.userData.parameters[n[0]];else if(("position"===n[0]||"rotation"===n[0]&&n.length>1)&&s.getPhysicsLocalMatrix?.(b))b.decompose(v,f,g),"position"===n[0]?s=n.length>1?v[n[1]]:v:(T.setFromQuaternion(f,s.rotation.order),s=T[n[1]]);else for(let e=0;e<n.length;e++)s=s[n[e]];null===i?this.propertiesToWatch[e].prevValue=s instanceof p?s.clone():s:(s instanceof p?!s.equals(i):i!==s)&&(r.push({objId:a,property:t}),s instanceof p?this.propertiesToWatch[e].prevValue.copy(s):this.propertiesToWatch[e].prevValue=s)}for(let e=0;e<this.variablesToWatch.length;e++){let{id:t,prevValue:i}=this.variablesToWatch[e],r=a.getVariable(t);r!==i&&(s.push(t),this.variablesToWatch[e].prevValue=r)}for(let r=0;r<this.dynamicVars.length;r++){let{id:n,expectedTime:d,last:o,data:c,timerSeconds:u,startValue:p}=this.dynamicVars[r],y=1e3;if("timer"!==c.dynamicVariableType&&"stopwatch"!==c.dynamicVariableType||"number3decimal"!==c.format?"counter"===c.dynamicVariableType?y=c.updateInterval:"random"===c.dynamicVariableType&&(y=c.isStatic?1/0:c.updateInterval):y=1,-1!==d){if("Stopped"!==a.getDynamicVariablePlayState(n)&&"Restarted"!==a.getDynamicVariablePlayState(n)||(this.dynamicVars[r].last=e,this.dynamicVars[r].expectedTime=e+y,"counter"===c.dynamicVariableType&&a.getVariable(n)!==p&&(a.updateVariable(n,p),this.eventManager.requestRender()),("timer"===c.dynamicVariableType||"stopwatch"===c.dynamicVariableType)&&this.dynamicVars[r].timerSeconds!==p&&(this.dynamicVars[r].timerSeconds=p,a.updateVariable(n,l.getFormattedTimerTime(p,c)),this.eventManager.requestRender()),"Restarted"===a.getDynamicVariablePlayState(n)&&a.setDynamicVariablePlayState(n,"Playing"),"Stopped"!==a.getDynamicVariablePlayState(n))){if("Paused"===a.getDynamicVariablePlayState(n)){void 0===this.dynamicVars[r].deltaToExpectedTime&&(this.dynamicVars[r].deltaToExpectedTime=Math.max(this.dynamicVars[r].expectedTime-e,0)),this.dynamicVars[r].last=e-(y-this.dynamicVars[r].deltaToExpectedTime),this.dynamicVars[r].expectedTime=e+this.dynamicVars[r].deltaToExpectedTime;continue}if(this.dynamicVars[r].deltaToExpectedTime=void 0,e>=d)if(this.dynamicVars[r].last=e,this.dynamicVars[r].expectedTime+=y,"random"===c.dynamicVariableType){let e=c.min+Math.random()*(c.max-c.min),t=c.decimals;e=Math.round(e*Math.pow(10,t))/Math.pow(10,t),a.updateVariable(n,e),s.push(n),this.eventManager.requestRender()}else if("counter"===c.dynamicVariableType){let e=a.getVariable(n),t=a.getDynamicVariableToggleIsForward(n)??!0,i=a.getVariable(n)+c.increment*(t?1:-1);c.hasEnd&&(i=c.increment>0?m.clamp(i,p,c.endValue):m.clamp(i,c.endValue,p),i===p&&a.setDynamicVariableToggleIsForward(n,void 0),c.repeat?i===c.endValue&&(i=p):(i===p||i===c.endValue)&&a.setDynamicVariablePlayState(n,"Paused")),i!==e&&(s.push(n),a.updateVariable(n,i),this.eventManager.requestRender())}else if("time"===c.dynamicVariableType){let e=a.getVariable(n),r=t(i,c);if("object"==typeof e&&"textValue"in e&&"object"==typeof r&&"textValue"in r){if(Array.isArray(e.textValue)&&Array.isArray(r.textValue)){if(e.textValue.every((e,a)=>e===r.textValue[a]))continue}else if(e.textValue===r.textValue)continue}else if(e===r)continue;a.updateVariable(n,r),s.push(n),this.eventManager.requestRender()}else{let t=h.isTextValue(c.endValue)?w(c.endValue.textValue):c.endValue,i=a.getDynamicVariableToggleIsForward(n)??!0,d=u+(e-o)/1e3*("timer"===c.dynamicVariableType?-1:1)*(i?1:-1);d=Math.max(d,0),c.hasEnd&&(d="stopwatch"===c.dynamicVariableType?m.clamp(d,p,t):m.clamp(d,t,p),d===p&&a.setDynamicVariableToggleIsForward(n,void 0),c.repeat?Math.abs(d-t)<("number3decimal"===c.format?1e-4:.1)&&(d=p):(Math.abs(d-p)<("number3decimal"===c.format?1e-4:.1)||Math.abs(d-t)<("number3decimal"===c.format?1e-4:.1))&&a.setDynamicVariablePlayState(n,"Paused")),d!==u&&(s.push(n),this.dynamicVars[r].timerSeconds=d,a.updateVariable(n,l.getFormattedTimerTime(d,c)),this.eventManager.requestRender())}}}else this.dynamicVars[r].last=e,this.dynamicVars[r].expectedTime=e+y}let n=!1;a.mouseProperty!==this.prevMouseProperty&&(this.prevMouseProperty=a.mouseProperty,n=!0);let d=!1;a.raycastProperty!==this.prevRaycastProperty&&(this.prevRaycastProperty=a.raycastProperty,d=!0),this.events.forEach(e=>{(s.includes(e.data.variableId)||r.find(a=>a.objId===e.data.objectId&&a.property===e.data.property)||"mouseProperty"===e.data.variableId&&n||"raycastProperty"===e.data.variableId&&d)&&(e.dispatch(),this.eventManager.requestRender())})},this.onBlur=()=>{this.pause()},this.onFocus=()=>{this.resume()}}pause(){this.isOutOfFocus||(this.isOutOfFocus=!0,this.pauseTime=Date.now())}resume(){if(!this.isOutOfFocus)return;this.isOutOfFocus=!1;let e=Date.now()-this.pauseTime;for(let a=0;a<this.dynamicVars.length;a++)this.dynamicVars[a].last+=e,this.dynamicVars[a].expectedTime+=e}connect(){this.eventContext.page.traverseEntity(e=>{e.data?.events.filter(e=>"VariableChange"===e.data.type&&!e.data.disabled).forEach(a=>{this.events.push(new P(a.id,a.data,e,this.eventContext.page,this.eventContext.sharedAssets,this.eventManager))})}),this.propertiesToWatch=this.events.filter(e=>"objectProperty"===e.data.variableId&&null!==e.data.objectId).map(e=>({objectId:e.data.objectId,property:e.data.property,prevValue:null}));let e=this.eventContext.sharedAssets;this.sharedVariables.forEach(({id:a,data:i})=>{if(!("dynamicVariableType"in i))return void(this.events.find(e=>e.data.variableId===a)&&this.variablesToWatch.push({id:a,prevValue:e.getVariable(a)}));let s;if("timer"===i.dynamicVariableType||"stopwatch"===i.dynamicVariableType){let e;if(h.isTextValue(i.value)&&Array.isArray(i.value.textValue)){let a=i.value.textValue;e=3===a.length?a[2]+60*a[1]+3600*a[0]:a[1]+60*a[0]}else e=i.value;s=e,this.dynamicVars.push({id:a,last:-1,expectedTime:-1,data:i,timerSeconds:e,startValue:s})}else"time"===i.dynamicVariableType&&e.updateVariable(a,t(new Date,i)),"counter"===i.dynamicVariableType&&(s=h.isTextValue(i.value)?w(i.value.textValue):i.value),this.dynamicVars.push({id:a,last:-1,expectedTime:-1,data:i,startValue:s})}),this.rafId=window.requestAnimationFrame(this.onFrame),window.addEventListener("blur",this.onBlur),window.addEventListener("focus",this.onFocus)}disconnect(){window.removeEventListener("blur",this.onBlur),window.removeEventListener("focus",this.onFocus),this.rafId&&(window.cancelAnimationFrame(this.rafId),this.rafId=void 0),this.events.forEach(e=>e.dispose())}},P=class{constructor(e,a,t,i,s,r){this.id=e,this.data=a,this.object=t,this.actions=n(a,a.actions,i,s,r,t)}dispatch(){let e=this.actions;e.Audio.forEach(e=>e.dispatchConditional()),e.Particles.forEach(e=>e.dispatchConditional()),e.Video.forEach(e=>e.dispatchConditional()),e.Create.forEach(e=>e.dispatch()),e.Destroy.forEach(e=>e.dispatch()),e.Reset.forEach(e=>e.dispatch()),e.Transition.forEach(e=>{!e.shouldReinit()||(e.object.currentTransitionEvent!==this&&(e.object.currentTransitionEvent=this),e.init())}),e.Transition.forEach(e=>e.play()),e.Animation.forEach(e=>e.play()),e.TimelineAnimation.forEach(e=>e.dispatchConditional()),e.SwitchCamera.forEach(e=>e.play()),e.SceneTransition.forEach(e=>e.dispatch()),e.SetVariable.forEach(e=>e.checkConditions()),e.SetVariable.forEach(e=>e.dispatch()),e.DynamicVariablePlay.forEach(e=>e.dispatch()),e.ClearLocalStorage.forEach(e=>e.dispatch()),e.UserAPI.forEach(e=>e.dispatch())}dispose(){d(this.actions)}};function w(e){return 3===e.length?e[2]+60*e[1]+3600*e[0]:e[1]+60*e[0]}var x=class{constructor(e,a,t,i){this.data=e,this.page=a,this.shared=t,this.condition=i,this.evaluatedCondition=!1}checkConditions(){this.evaluatedCondition=r(this.shared,this.condition)}dispatch(){if(!1===this.evaluatedCondition)return!1;let e=this.shared.getVariable(this.data.variableId),a=i(this.data.expression,this.shared,h.typeOfVariable(e));void 0!==a&&this.shared.updateVariable(this.data.variableId,"string"==typeof a?{textValue:a}:a)}dispose(){}},D=class{constructor(e,a,t,i){this.data=e,this.page=a,this.shared=t,this.condition=i,this.timeoutId=null}dispatchInner(){if(!1===r(this.shared,this.condition))return!1;let e=this.shared.getDynamicVariablePlayState(this.data.variableId);if("PlayPause"===this.data.mode)void 0===this.shared.getDynamicVariableToggleIsForward(this.data.variableId)&&this.shared.setDynamicVariableToggleIsForward(this.data.variableId,!0),this.shared.setDynamicVariablePlayState(this.data.variableId,"Playing"===e?"Paused":"Playing");else if("Play"===this.data.mode&&"Playing"!==e)void 0===this.shared.getDynamicVariableToggleIsForward(this.data.variableId)&&this.shared.setDynamicVariableToggleIsForward(this.data.variableId,!0),this.shared.setDynamicVariablePlayState(this.data.variableId,"Playing");else if("Stop"===this.data.mode&&"Stopped"!==e)this.shared.setDynamicVariablePlayState(this.data.variableId,"Stopped");else if("Pause"===this.data.mode&&"Paused"!==e)this.shared.setDynamicVariablePlayState(this.data.variableId,"Paused");else if("Restart"===this.data.mode)this.shared.setDynamicVariablePlayState(this.data.variableId,"Restarted");else if("Toggle"===this.data.mode){let a=this.shared.getDynamicVariableToggleIsForward(this.data.variableId);"Playing"===e?this.shared.setDynamicVariableToggleIsForward(this.data.variableId,void 0!==a&&!a):(this.shared.setDynamicVariableToggleIsForward(this.data.variableId,!a),this.shared.setDynamicVariablePlayState(this.data.variableId,"Playing"))}}dispatch(){let e=this.data.delay,a=this.shared.getDynamicVariablePlayState(this.data.variableId);"PlayPause"===this.data.mode&&"Playing"===a&&(e=this.data.pauseDelay),0!==e?(this.timeoutId&&window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.timeoutId=null,this.dispatchInner()},e)):this.dispatchInner()}dispose(){this.timeoutId&&window.clearTimeout(this.timeoutId)}};a("VariableChange",({eventContext:e,sharedVariables:a,eventManager:t,needsMouse:i,needsRaycast:s})=>new I(e,a,t,i,s)),s("SetVariable",({data:e,page:a,shared:t,actionCondition:i})=>new x(e,a,t,i)),s("DynamicVariablePlay",({data:e,page:a,shared:t,actionCondition:i})=>new D(e,a,t,i)),o("variables");
Binary file
Binary file