@splinetool/runtime 2.0.13 → 2.0.14

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 (347) hide show
  1. package/build/{runtime-aiAssistant-L3HFJZ2G.js → runtime-aiAssistant-CYJ626R5.js} +1 -1
  2. package/build/runtime-aiAssistant-CYJ626R5.js.br +0 -0
  3. package/build/runtime-aiAssistant-CYJ626R5.js.gz +0 -0
  4. package/build/{runtime-apiServices-KSRZJMJI.js → runtime-apiServices-QWPNWK6X.js} +1 -1
  5. package/build/runtime-apiServices-QWPNWK6X.js.br +0 -0
  6. package/build/runtime-apiServices-QWPNWK6X.js.gz +0 -0
  7. package/build/{runtime-audio-CNGZPKC5.js → runtime-audio-CZNFK3LE.js} +1 -1
  8. package/build/runtime-audio-CZNFK3LE.js.br +0 -0
  9. package/build/runtime-audio-CZNFK3LE.js.gz +0 -0
  10. package/build/{runtime-chunk-QMMGYOLW.js → runtime-chunk-2PDJQLZS.js} +1 -1
  11. package/build/runtime-chunk-2PDJQLZS.js.br +0 -0
  12. package/build/runtime-chunk-2PDJQLZS.js.gz +0 -0
  13. package/build/{runtime-chunk-5POGWSQZ.js → runtime-chunk-44ON5NFS.js} +1 -1
  14. package/build/runtime-chunk-44ON5NFS.js.br +0 -0
  15. package/build/runtime-chunk-44ON5NFS.js.gz +0 -0
  16. package/build/{runtime-chunk-JIIVUL2M.js → runtime-chunk-4SENJRD5.js} +1 -1
  17. package/build/runtime-chunk-4SENJRD5.js.br +0 -0
  18. package/build/runtime-chunk-4SENJRD5.js.gz +0 -0
  19. package/build/{runtime-chunk-WILQUYJ4.js → runtime-chunk-4UHPUSEP.js} +1 -1
  20. package/build/runtime-chunk-4UHPUSEP.js.br +0 -0
  21. package/build/runtime-chunk-4UHPUSEP.js.gz +0 -0
  22. package/build/{runtime-chunk-VAANBQKN.js → runtime-chunk-7PFZBRGF.js} +1 -1
  23. package/build/runtime-chunk-7PFZBRGF.js.br +0 -0
  24. package/build/runtime-chunk-7PFZBRGF.js.gz +0 -0
  25. package/build/{runtime-chunk-D3BWEUN6.js → runtime-chunk-AIWIOLR6.js} +1 -1
  26. package/build/runtime-chunk-AIWIOLR6.js.br +0 -0
  27. package/build/{runtime-chunk-D3BWEUN6.js.gz → runtime-chunk-AIWIOLR6.js.gz} +0 -0
  28. package/build/runtime-chunk-CHOZ3Y5I.js +1 -0
  29. package/build/runtime-chunk-CHOZ3Y5I.js.br +0 -0
  30. package/build/runtime-chunk-CHOZ3Y5I.js.gz +0 -0
  31. package/build/runtime-chunk-DHZVCYH4.js +1 -0
  32. package/build/runtime-chunk-DHZVCYH4.js.br +0 -0
  33. package/build/runtime-chunk-DHZVCYH4.js.gz +0 -0
  34. package/build/{runtime-chunk-YH55FWRI.js → runtime-chunk-DMRFHNRP.js} +1 -1
  35. package/build/runtime-chunk-DMRFHNRP.js.br +0 -0
  36. package/build/runtime-chunk-DMRFHNRP.js.gz +0 -0
  37. package/build/{runtime-chunk-OUQPS3VD.js → runtime-chunk-EJDIVLQA.js} +1 -1
  38. package/build/runtime-chunk-EJDIVLQA.js.br +0 -0
  39. package/build/runtime-chunk-EJDIVLQA.js.gz +0 -0
  40. package/build/{runtime-chunk-T4UMOSIQ.js → runtime-chunk-GZVBZLQ3.js} +1 -1
  41. package/build/{runtime-chunk-T4UMOSIQ.js.br → runtime-chunk-GZVBZLQ3.js.br} +0 -0
  42. package/build/runtime-chunk-GZVBZLQ3.js.gz +0 -0
  43. package/build/{runtime-chunk-ITI3UXPR.js → runtime-chunk-H2442PY7.js} +1 -1
  44. package/build/runtime-chunk-H2442PY7.js.br +0 -0
  45. package/build/runtime-chunk-H2442PY7.js.gz +0 -0
  46. package/build/{runtime-chunk-3IBXKX7I.js → runtime-chunk-HKD2ORV5.js} +1 -1
  47. package/build/runtime-chunk-HKD2ORV5.js.br +0 -0
  48. package/build/runtime-chunk-HKD2ORV5.js.gz +0 -0
  49. package/build/runtime-chunk-INDD2IUU.js +1 -0
  50. package/build/runtime-chunk-INDD2IUU.js.br +0 -0
  51. package/build/runtime-chunk-INDD2IUU.js.gz +0 -0
  52. package/build/{runtime-chunk-4GNBET46.js → runtime-chunk-L5SU5F5J.js} +1 -1
  53. package/build/runtime-chunk-L5SU5F5J.js.br +0 -0
  54. package/build/runtime-chunk-L5SU5F5J.js.gz +0 -0
  55. package/build/{runtime-chunk-WWYY25M2.js → runtime-chunk-LUASUHYM.js} +1 -1
  56. package/build/runtime-chunk-LUASUHYM.js.br +0 -0
  57. package/build/runtime-chunk-LUASUHYM.js.gz +0 -0
  58. package/build/{runtime-chunk-2GAIM5RJ.js → runtime-chunk-MF6PRJPV.js} +1 -1
  59. package/build/runtime-chunk-MF6PRJPV.js.br +0 -0
  60. package/build/runtime-chunk-MF6PRJPV.js.gz +0 -0
  61. package/build/runtime-chunk-MKUFNGGW.js +1 -0
  62. package/build/runtime-chunk-MKUFNGGW.js.br +0 -0
  63. package/build/runtime-chunk-MKUFNGGW.js.gz +0 -0
  64. package/build/{runtime-chunk-XUHTMJJD.js → runtime-chunk-N473U2V2.js} +1 -1
  65. package/build/runtime-chunk-N473U2V2.js.br +0 -0
  66. package/build/runtime-chunk-N473U2V2.js.gz +0 -0
  67. package/build/{runtime-chunk-BEWQ5BW5.js → runtime-chunk-NAJO6T26.js} +1 -1
  68. package/build/runtime-chunk-NAJO6T26.js.br +0 -0
  69. package/build/runtime-chunk-NAJO6T26.js.gz +0 -0
  70. package/build/{runtime-chunk-SJQBQYDG.js → runtime-chunk-NQ5JYNZM.js} +1 -1
  71. package/build/runtime-chunk-NQ5JYNZM.js.br +0 -0
  72. package/build/runtime-chunk-NQ5JYNZM.js.gz +0 -0
  73. package/build/runtime-chunk-PCGGIHOQ.js +1 -0
  74. package/build/runtime-chunk-PCGGIHOQ.js.br +0 -0
  75. package/build/runtime-chunk-PCGGIHOQ.js.gz +0 -0
  76. package/build/{runtime-chunk-JLL5C22M.js → runtime-chunk-PLKRHTT5.js} +1 -1
  77. package/build/runtime-chunk-PLKRHTT5.js.br +0 -0
  78. package/build/runtime-chunk-PLKRHTT5.js.gz +0 -0
  79. package/build/runtime-chunk-QYZPTNBH.js +1 -0
  80. package/build/runtime-chunk-QYZPTNBH.js.br +0 -0
  81. package/build/runtime-chunk-QYZPTNBH.js.gz +0 -0
  82. package/build/{runtime-chunk-4KZXQGUQ.js → runtime-chunk-RTLL6WIB.js} +1 -1
  83. package/build/runtime-chunk-RTLL6WIB.js.br +0 -0
  84. package/build/runtime-chunk-RTLL6WIB.js.gz +0 -0
  85. package/build/{runtime-chunk-PS74VRLB.js → runtime-chunk-S6KLXGEL.js} +1 -1
  86. package/build/runtime-chunk-S6KLXGEL.js.br +0 -0
  87. package/build/runtime-chunk-S6KLXGEL.js.gz +0 -0
  88. package/build/runtime-chunk-ST4VJ5DF.js +1 -0
  89. package/build/runtime-chunk-ST4VJ5DF.js.br +0 -0
  90. package/build/runtime-chunk-ST4VJ5DF.js.gz +0 -0
  91. package/build/{runtime-chunk-JSOWOATQ.js → runtime-chunk-U5366HDY.js} +1 -1
  92. package/build/runtime-chunk-U5366HDY.js.br +0 -0
  93. package/build/runtime-chunk-U5366HDY.js.gz +0 -0
  94. package/build/{runtime-chunk-2S2NQ44M.js → runtime-chunk-XOP32NU4.js} +1 -1
  95. package/build/runtime-chunk-XOP32NU4.js.br +0 -0
  96. package/build/runtime-chunk-XOP32NU4.js.gz +0 -0
  97. package/build/{runtime-chunk-HKFPEE5F.js → runtime-chunk-YURN6PI7.js} +1 -1
  98. package/build/runtime-chunk-YURN6PI7.js.br +0 -0
  99. package/build/runtime-chunk-YURN6PI7.js.gz +0 -0
  100. package/build/{runtime-chunk-MJYVLFQT.js → runtime-chunk-ZH7TNSZJ.js} +1 -1
  101. package/build/runtime-chunk-ZH7TNSZJ.js.br +0 -0
  102. package/build/runtime-chunk-ZH7TNSZJ.js.gz +0 -0
  103. package/build/{runtime-classicRuntime-ZJP7UOQK.js → runtime-classicRuntime-CTLZXFOK.js} +1 -1
  104. package/build/runtime-classicRuntime-CTLZXFOK.js.br +0 -0
  105. package/build/runtime-classicRuntime-CTLZXFOK.js.gz +0 -0
  106. package/build/runtime-cloners-6BXWHHH6.js +1 -0
  107. package/build/runtime-cloners-6BXWHHH6.js.br +0 -0
  108. package/build/runtime-cloners-6BXWHHH6.js.gz +0 -0
  109. package/build/runtime-components-YTMTPERH.js +1 -0
  110. package/build/runtime-components-YTMTPERH.js.br +0 -0
  111. package/build/runtime-components-YTMTPERH.js.gz +0 -0
  112. package/build/runtime-conditional-CEO237EN.js +1 -0
  113. package/build/runtime-conditional-CEO237EN.js.br +0 -0
  114. package/build/runtime-conditional-CEO237EN.js.gz +0 -0
  115. package/build/{runtime-createDestroy-MAV4GFE6.js → runtime-createDestroy-2RJVOGQP.js} +1 -1
  116. package/build/runtime-createDestroy-2RJVOGQP.js.br +0 -0
  117. package/build/runtime-createDestroy-2RJVOGQP.js.gz +0 -0
  118. package/build/{runtime-dragDrop-IZ74WMYA.js → runtime-dragDrop-CUXGIFGP.js} +1 -1
  119. package/build/runtime-dragDrop-CUXGIFGP.js.br +0 -0
  120. package/build/runtime-dragDrop-CUXGIFGP.js.gz +0 -0
  121. package/build/{runtime-gameControls-ALSYS4GT.js → runtime-gameControls-HKLCWLKJ.js} +1 -1
  122. package/build/runtime-gameControls-HKLCWLKJ.js.br +0 -0
  123. package/build/runtime-gameControls-HKLCWLKJ.js.gz +0 -0
  124. package/build/runtime-hair-R36ZBISB.js +1 -0
  125. package/build/runtime-hair-R36ZBISB.js.br +1 -0
  126. package/build/runtime-hair-R36ZBISB.js.gz +0 -0
  127. package/build/{runtime-mergeStaticGeometries-OPJK4T22.js → runtime-mergeStaticGeometries-RPBLPAJO.js} +1 -1
  128. package/build/runtime-mergeStaticGeometries-RPBLPAJO.js.br +0 -0
  129. package/build/runtime-mergeStaticGeometries-RPBLPAJO.js.gz +0 -0
  130. package/build/runtime-miscActions-V7N7OCRE.js +1 -0
  131. package/build/runtime-miscActions-V7N7OCRE.js.br +0 -0
  132. package/build/runtime-miscActions-V7N7OCRE.js.gz +0 -0
  133. package/build/{runtime-mouseHover-FM43SWSA.js → runtime-mouseHover-2FQXNHVN.js} +1 -1
  134. package/build/runtime-mouseHover-2FQXNHVN.js.br +0 -0
  135. package/build/runtime-mouseHover-2FQXNHVN.js.gz +0 -0
  136. package/build/{runtime-particles-NY5M47HQ.js → runtime-particles-JZREUE5L.js} +1 -1
  137. package/build/runtime-particles-JZREUE5L.js.br +0 -0
  138. package/build/runtime-particles-JZREUE5L.js.gz +0 -0
  139. package/build/{runtime-paths-LU43LMTP.js → runtime-paths-H3BLID6D.js} +1 -1
  140. package/build/runtime-paths-H3BLID6D.js.br +0 -0
  141. package/build/runtime-paths-H3BLID6D.js.gz +0 -0
  142. package/build/runtime-resize-ZD62VEBD.js +1 -0
  143. package/build/runtime-resize-ZD62VEBD.js.br +0 -0
  144. package/build/runtime-resize-ZD62VEBD.js.gz +0 -0
  145. package/build/{runtime-sceneTransition-4R6LM4MA.js → runtime-sceneTransition-UMLH7ZRG.js} +1 -1
  146. package/build/runtime-sceneTransition-UMLH7ZRG.js.br +0 -0
  147. package/build/runtime-sceneTransition-UMLH7ZRG.js.gz +0 -0
  148. package/build/{runtime-scroll-KEVND4W5.js → runtime-scroll-G27Z5O4C.js} +1 -1
  149. package/build/runtime-scroll-G27Z5O4C.js.br +0 -0
  150. package/build/runtime-scroll-G27Z5O4C.js.gz +0 -0
  151. package/build/runtime-shapeBlends-E6SX5CX3.js +1 -0
  152. package/build/runtime-shapeBlends-E6SX5CX3.js.br +0 -0
  153. package/build/runtime-shapeBlends-E6SX5CX3.js.gz +0 -0
  154. package/build/{runtime-text-43V5BJGN.js → runtime-text-MQDKSA5W.js} +1 -1
  155. package/build/runtime-text-MQDKSA5W.js.br +0 -0
  156. package/build/runtime-text-MQDKSA5W.js.gz +0 -0
  157. package/build/{runtime-textInputs-WPBZO7XI.js → runtime-textInputs-5DEQBIWS.js} +1 -1
  158. package/build/runtime-textInputs-5DEQBIWS.js.br +0 -0
  159. package/build/runtime-textInputs-5DEQBIWS.js.gz +0 -0
  160. package/build/runtime-timeline-Z7YJ7ASI.js +1 -0
  161. package/build/runtime-timeline-Z7YJ7ASI.js.br +0 -0
  162. package/build/runtime-timeline-Z7YJ7ASI.js.gz +0 -0
  163. package/build/{runtime-tracking-T55DMPAI.js → runtime-tracking-IW6LURXT.js} +1 -1
  164. package/build/runtime-tracking-IW6LURXT.js.br +0 -0
  165. package/build/runtime-tracking-IW6LURXT.js.gz +0 -0
  166. package/build/runtime-transitions-B5OB67GR.js +1 -0
  167. package/build/runtime-transitions-B5OB67GR.js.br +0 -0
  168. package/build/runtime-transitions-B5OB67GR.js.gz +0 -0
  169. package/build/{runtime-ui2d-FPEODT3M.js → runtime-ui2d-R4W643OE.js} +1 -1
  170. package/build/runtime-ui2d-R4W643OE.js.br +0 -0
  171. package/build/runtime-ui2d-R4W643OE.js.gz +0 -0
  172. package/build/{runtime-updater-A22NUPB5.js → runtime-updater-2CFDVEWY.js} +1 -1
  173. package/build/runtime-updater-2CFDVEWY.js.br +0 -0
  174. package/build/runtime-updater-2CFDVEWY.js.gz +0 -0
  175. package/build/{runtime-variables-MHCE3K3T.js → runtime-variables-S7QUT7HH.js} +1 -1
  176. package/build/runtime-variables-S7QUT7HH.js.br +0 -0
  177. package/build/runtime-variables-S7QUT7HH.js.gz +0 -0
  178. package/build/{runtime-vectorShapes-ZXLM5DCY.js → runtime-vectorShapes-ASLQ3T6K.js} +1 -1
  179. package/build/runtime-vectorShapes-ASLQ3T6K.js.br +0 -0
  180. package/build/runtime-vectorShapes-ASLQ3T6K.js.gz +0 -0
  181. package/build/{runtime-video-YA2L3X6S.js → runtime-video-SBFWLQQT.js} +1 -1
  182. package/build/runtime-video-SBFWLQQT.js.br +0 -0
  183. package/build/runtime-video-SBFWLQQT.js.gz +0 -0
  184. package/build/{runtime-webgpu-WHAEJKRX.js → runtime-webgpu-XRBI423N.js} +1 -1
  185. package/build/runtime-webgpu-XRBI423N.js.br +0 -0
  186. package/build/runtime-webgpu-XRBI423N.js.gz +0 -0
  187. package/build/runtime.cjs +429 -431
  188. package/build/runtime.js +1 -1
  189. package/build/runtime.js.br +0 -0
  190. package/build/runtime.js.gz +0 -0
  191. package/build/runtime.standalone.js +1 -1
  192. package/build/runtime.standalone.js.br +0 -0
  193. package/build/runtime.standalone.js.gz +0 -0
  194. package/build/runtime.standalone.webgl.js +1 -1
  195. package/build/runtime.standalone.webgl.js.br +0 -0
  196. package/build/runtime.standalone.webgl.js.gz +0 -0
  197. package/build/runtime.standalone.webgpu.js +1 -1
  198. package/build/runtime.standalone.webgpu.js.br +0 -0
  199. package/build/runtime.standalone.webgpu.js.gz +0 -0
  200. package/build/runtime.standalone.webgpu.micro.js +1 -1
  201. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  202. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  203. package/build/runtime.standalone.webgpu.min.js +1 -1
  204. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  205. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  206. package/package.json +2 -1
  207. package/build/runtime-aiAssistant-L3HFJZ2G.js.br +0 -0
  208. package/build/runtime-aiAssistant-L3HFJZ2G.js.gz +0 -0
  209. package/build/runtime-apiServices-KSRZJMJI.js.br +0 -0
  210. package/build/runtime-apiServices-KSRZJMJI.js.gz +0 -0
  211. package/build/runtime-audio-CNGZPKC5.js.br +0 -0
  212. package/build/runtime-audio-CNGZPKC5.js.gz +0 -0
  213. package/build/runtime-chunk-2GAIM5RJ.js.br +0 -0
  214. package/build/runtime-chunk-2GAIM5RJ.js.gz +0 -0
  215. package/build/runtime-chunk-2S2NQ44M.js.br +0 -0
  216. package/build/runtime-chunk-2S2NQ44M.js.gz +0 -0
  217. package/build/runtime-chunk-3IBXKX7I.js.br +0 -0
  218. package/build/runtime-chunk-3IBXKX7I.js.gz +0 -0
  219. package/build/runtime-chunk-4GNBET46.js.br +0 -0
  220. package/build/runtime-chunk-4GNBET46.js.gz +0 -0
  221. package/build/runtime-chunk-4KZXQGUQ.js.br +0 -0
  222. package/build/runtime-chunk-4KZXQGUQ.js.gz +0 -0
  223. package/build/runtime-chunk-5POGWSQZ.js.br +0 -0
  224. package/build/runtime-chunk-5POGWSQZ.js.gz +0 -0
  225. package/build/runtime-chunk-A7IMJ4FJ.js +0 -1
  226. package/build/runtime-chunk-A7IMJ4FJ.js.br +0 -0
  227. package/build/runtime-chunk-A7IMJ4FJ.js.gz +0 -0
  228. package/build/runtime-chunk-ALTKMFUV.js +0 -1
  229. package/build/runtime-chunk-ALTKMFUV.js.br +0 -0
  230. package/build/runtime-chunk-ALTKMFUV.js.gz +0 -0
  231. package/build/runtime-chunk-BEWQ5BW5.js.br +0 -0
  232. package/build/runtime-chunk-BEWQ5BW5.js.gz +0 -0
  233. package/build/runtime-chunk-D3BWEUN6.js.br +0 -0
  234. package/build/runtime-chunk-ESL2VL5C.js +0 -1
  235. package/build/runtime-chunk-ESL2VL5C.js.br +0 -0
  236. package/build/runtime-chunk-ESL2VL5C.js.gz +0 -0
  237. package/build/runtime-chunk-F5CUMYOK.js +0 -1
  238. package/build/runtime-chunk-F5CUMYOK.js.br +0 -0
  239. package/build/runtime-chunk-F5CUMYOK.js.gz +0 -0
  240. package/build/runtime-chunk-HKFPEE5F.js.br +0 -0
  241. package/build/runtime-chunk-HKFPEE5F.js.gz +0 -0
  242. package/build/runtime-chunk-ITI3UXPR.js.br +0 -0
  243. package/build/runtime-chunk-ITI3UXPR.js.gz +0 -0
  244. package/build/runtime-chunk-JIIVUL2M.js.br +0 -0
  245. package/build/runtime-chunk-JIIVUL2M.js.gz +0 -0
  246. package/build/runtime-chunk-JLL5C22M.js.br +0 -0
  247. package/build/runtime-chunk-JLL5C22M.js.gz +0 -0
  248. package/build/runtime-chunk-JSOWOATQ.js.br +0 -0
  249. package/build/runtime-chunk-JSOWOATQ.js.gz +0 -0
  250. package/build/runtime-chunk-KGZNRID6.js +0 -1
  251. package/build/runtime-chunk-KGZNRID6.js.br +0 -1
  252. package/build/runtime-chunk-KGZNRID6.js.gz +0 -0
  253. package/build/runtime-chunk-MJYVLFQT.js.br +0 -0
  254. package/build/runtime-chunk-MJYVLFQT.js.gz +0 -0
  255. package/build/runtime-chunk-OUQPS3VD.js.br +0 -0
  256. package/build/runtime-chunk-OUQPS3VD.js.gz +0 -0
  257. package/build/runtime-chunk-PS74VRLB.js.br +0 -0
  258. package/build/runtime-chunk-PS74VRLB.js.gz +0 -0
  259. package/build/runtime-chunk-QMMGYOLW.js.br +0 -0
  260. package/build/runtime-chunk-QMMGYOLW.js.gz +0 -0
  261. package/build/runtime-chunk-R43XZP65.js +0 -1
  262. package/build/runtime-chunk-R43XZP65.js.br +0 -0
  263. package/build/runtime-chunk-R43XZP65.js.gz +0 -0
  264. package/build/runtime-chunk-SJQBQYDG.js.br +0 -0
  265. package/build/runtime-chunk-SJQBQYDG.js.gz +0 -0
  266. package/build/runtime-chunk-T4UMOSIQ.js.gz +0 -0
  267. package/build/runtime-chunk-VAANBQKN.js.br +0 -0
  268. package/build/runtime-chunk-VAANBQKN.js.gz +0 -0
  269. package/build/runtime-chunk-VGEECQH4.js +0 -1
  270. package/build/runtime-chunk-VGEECQH4.js.br +0 -0
  271. package/build/runtime-chunk-VGEECQH4.js.gz +0 -0
  272. package/build/runtime-chunk-WGBR2HLR.js +0 -1
  273. package/build/runtime-chunk-WGBR2HLR.js.br +0 -0
  274. package/build/runtime-chunk-WGBR2HLR.js.gz +0 -0
  275. package/build/runtime-chunk-WILQUYJ4.js.br +0 -0
  276. package/build/runtime-chunk-WILQUYJ4.js.gz +0 -0
  277. package/build/runtime-chunk-WWYY25M2.js.br +0 -0
  278. package/build/runtime-chunk-WWYY25M2.js.gz +0 -0
  279. package/build/runtime-chunk-XUHTMJJD.js.br +0 -0
  280. package/build/runtime-chunk-XUHTMJJD.js.gz +0 -0
  281. package/build/runtime-chunk-YH55FWRI.js.br +0 -0
  282. package/build/runtime-chunk-YH55FWRI.js.gz +0 -0
  283. package/build/runtime-classicRuntime-ZJP7UOQK.js.br +0 -0
  284. package/build/runtime-classicRuntime-ZJP7UOQK.js.gz +0 -0
  285. package/build/runtime-cloners-V4TFNW2E.js +0 -1
  286. package/build/runtime-cloners-V4TFNW2E.js.br +0 -0
  287. package/build/runtime-cloners-V4TFNW2E.js.gz +0 -0
  288. package/build/runtime-components-P5ZGYATF.js +0 -1
  289. package/build/runtime-components-P5ZGYATF.js.br +0 -0
  290. package/build/runtime-components-P5ZGYATF.js.gz +0 -0
  291. package/build/runtime-conditional-66QFNGF3.js +0 -1
  292. package/build/runtime-conditional-66QFNGF3.js.br +0 -0
  293. package/build/runtime-conditional-66QFNGF3.js.gz +0 -0
  294. package/build/runtime-createDestroy-MAV4GFE6.js.br +0 -0
  295. package/build/runtime-createDestroy-MAV4GFE6.js.gz +0 -0
  296. package/build/runtime-dragDrop-IZ74WMYA.js.br +0 -0
  297. package/build/runtime-dragDrop-IZ74WMYA.js.gz +0 -0
  298. package/build/runtime-gameControls-ALSYS4GT.js.br +0 -0
  299. package/build/runtime-gameControls-ALSYS4GT.js.gz +0 -0
  300. package/build/runtime-hair-PML4TDM4.js +0 -1
  301. package/build/runtime-hair-PML4TDM4.js.br +0 -1
  302. package/build/runtime-hair-PML4TDM4.js.gz +0 -0
  303. package/build/runtime-mergeStaticGeometries-OPJK4T22.js.br +0 -0
  304. package/build/runtime-mergeStaticGeometries-OPJK4T22.js.gz +0 -0
  305. package/build/runtime-miscActions-JZQXYHKG.js +0 -1
  306. package/build/runtime-miscActions-JZQXYHKG.js.br +0 -0
  307. package/build/runtime-miscActions-JZQXYHKG.js.gz +0 -0
  308. package/build/runtime-mouseHover-FM43SWSA.js.br +0 -0
  309. package/build/runtime-mouseHover-FM43SWSA.js.gz +0 -0
  310. package/build/runtime-particles-NY5M47HQ.js.br +0 -0
  311. package/build/runtime-particles-NY5M47HQ.js.gz +0 -0
  312. package/build/runtime-paths-LU43LMTP.js.br +0 -0
  313. package/build/runtime-paths-LU43LMTP.js.gz +0 -0
  314. package/build/runtime-resize-BWOD7P3W.js +0 -1
  315. package/build/runtime-resize-BWOD7P3W.js.br +0 -0
  316. package/build/runtime-resize-BWOD7P3W.js.gz +0 -0
  317. package/build/runtime-sceneTransition-4R6LM4MA.js.br +0 -0
  318. package/build/runtime-sceneTransition-4R6LM4MA.js.gz +0 -0
  319. package/build/runtime-scroll-KEVND4W5.js.br +0 -0
  320. package/build/runtime-scroll-KEVND4W5.js.gz +0 -0
  321. package/build/runtime-shapeBlends-LXJ4P3XD.js +0 -1
  322. package/build/runtime-shapeBlends-LXJ4P3XD.js.br +0 -0
  323. package/build/runtime-shapeBlends-LXJ4P3XD.js.gz +0 -0
  324. package/build/runtime-text-43V5BJGN.js.br +0 -0
  325. package/build/runtime-text-43V5BJGN.js.gz +0 -0
  326. package/build/runtime-textInputs-WPBZO7XI.js.br +0 -0
  327. package/build/runtime-textInputs-WPBZO7XI.js.gz +0 -0
  328. package/build/runtime-timeline-AERFJWNC.js +0 -1
  329. package/build/runtime-timeline-AERFJWNC.js.br +0 -0
  330. package/build/runtime-timeline-AERFJWNC.js.gz +0 -0
  331. package/build/runtime-tracking-T55DMPAI.js.br +0 -0
  332. package/build/runtime-tracking-T55DMPAI.js.gz +0 -0
  333. package/build/runtime-transitions-SLQEEKRO.js +0 -1
  334. package/build/runtime-transitions-SLQEEKRO.js.br +0 -0
  335. package/build/runtime-transitions-SLQEEKRO.js.gz +0 -0
  336. package/build/runtime-ui2d-FPEODT3M.js.br +0 -0
  337. package/build/runtime-ui2d-FPEODT3M.js.gz +0 -0
  338. package/build/runtime-updater-A22NUPB5.js.br +0 -1
  339. package/build/runtime-updater-A22NUPB5.js.gz +0 -0
  340. package/build/runtime-variables-MHCE3K3T.js.br +0 -0
  341. package/build/runtime-variables-MHCE3K3T.js.gz +0 -0
  342. package/build/runtime-vectorShapes-ZXLM5DCY.js.br +0 -0
  343. package/build/runtime-vectorShapes-ZXLM5DCY.js.gz +0 -0
  344. package/build/runtime-video-YA2L3X6S.js.br +0 -0
  345. package/build/runtime-video-YA2L3X6S.js.gz +0 -0
  346. package/build/runtime-webgpu-WHAEJKRX.js.br +0 -0
  347. package/build/runtime-webgpu-WHAEJKRX.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2025 Spline, Inc.",
5
5
  "keywords": [
6
6
  "spline",
@@ -61,6 +61,7 @@
61
61
  "upload-cdn": "node scripts/upload-runtime-cdn.mjs"
62
62
  },
63
63
  "dependencies": {
64
+ "@splinetool/animation-core": "*",
64
65
  "on-change": "4.0.0",
65
66
  "semver-compare": "1.0.0"
66
67
  },
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{h as t}from"./runtime-chunk-2PT2WH66.js";import{g as e}from"./runtime-chunk-4KZXQGUQ.js";import{c as i}from"./runtime-chunk-TZCHGFVF.js";import{Ba as r,C as s,Ca as a,Ea as n,K as o,j as l,k as h,l as p,o as d}from"./runtime-chunk-D3BWEUN6.js";import{$c as c,Cc as u,Ec as m,Fc as f,Kd as y,Oc as g,Pc as v,Pd as x,Rc as S,Re as w,Xc as M,bd as b,cd as B,dd as P,kd as E,ld as A}from"./runtime-chunk-BVVSZMXD.js";var C={Cloner:null,changeEntityProptotype:()=>{},createEntity:()=>{}};function D(t,e){let i=[];if(e.length!==t.length)return null;{let r=0;for(;r<t.length;){if("*"===e[r])i.push(t[r]);else if(t[r]!==e[r])return null;r+=1}}return i}function W(t,e){let i=[];if(!(e.length<=t.length))return null;{let r=0;for(;r<e.length;){if("*"===e[r])i.push(t[r]);else if(t[r]!==e[r])return null;r+=1}}return i}var O=new f,V=new f,_=new g,U=[new f(-1,1,1),new f(-1,-1,1),new f(1,-1,1),new f(1,1,1),new f(-1,1,-1),new f(-1,-1,-1),new f(1,-1,-1),new f(1,1,-1)],T=[[0,3],[1,2],[5,6],[4,7],[0,1],[3,2],[7,6],[4,5],[0,4],[1,5],[2,6],[3,7]],R=[[0,2],[7,5],[4,1],[3,6],[4,3],[1,6]],z=(t,e,i)=>{t.updateEntityBoxSize(O,V),_.copy(e).multiply(t.matrixWorld),0===V.x&&0===V.y&&0===V.z?i.push(new f(O.x,O.y,O.z).applyMatrix4(_)):U.forEach(t=>{i.push(t.clone().multiply(V).add(O).applyMatrix4(_))})},I=class extends M{constructor(){super(...arguments),this.matrix=new g,this.vertices=[],this.faces=[],this.edges=[],this.centerEdges=[]}copy(t){return super.copy(t),this.matrix.copy(t.matrix),this.vertices=t.vertices.map(t=>t.clone()),this.faces=t.faces.map(t=>t.clone()),this.edges=t.edges.map(t=>t.clone()),this.centerEdges=t.centerEdges.map(t=>t.clone()),this}setFromObjectSize(t,e=!1){t.updateWorldMatrix(!1,e),this.makeEmpty(),this.matrix.copy(t.matrixWorld);let i=(new g).copy(t.matrixWorld).invert();return this.expandByObjectSize(t,i,e)}expandByObjectSize(t,e,i=!1){let r=[];if(!0===i){let i=[];t.traverseEntity(t=>{if(t.visible||t.cloner&&t.data.visible){if(!("geometry"in t))return _.copy(e).multiply(t.matrixWorld),void i.push((new f).applyMatrix4(_));z(t,e,r)}}),0===r.length&&r.push(...i)}else z(t,e,r);return this.setFromPoints(r)}getCenter(t){return(t=super.getCenter(t)).applyMatrix4(this.matrix),t}getPositionToCenter(t){return(t=super.getCenter(t)).applyMatrix4(_.copy(this.matrix).setPosition(0,0,0)),t}computeVertices(){this.getSize(V).multiplyScalar(.5),this.getCenter(O),_.copy(this.matrix).setPosition(O),this.vertices=U.map(t=>t.clone().multiply(V).applyMatrix4(_))}computeEdges(){this.vertices.length>0&&this.computeVertices(),this.edges=T.map(([t,e])=>new w(this.vertices[t],this.vertices[e])),this.centerEdges=this.edges.map(t=>t.getCenter(new f))}computeFaces(){this.vertices.length>0&&this.computeVertices(),this.faces=R.map(([t,e])=>this.vertices[t].clone().add(this.vertices[e]).multiplyScalar(.5))}},L=new f,N=new f,j=new f,F=new f,k=new f,q=new f,G=new g,H=1e-12,X=.01;function Z(t){let e=t.elements;L.set(e[0],e[1],e[2]),N.set(e[4],e[5],e[6]),j.set(e[8],e[9],e[10])}function K(){let t=Math.max(L.lengthSq(),N.lengthSq(),j.lengthSq());L.lengthSq()>H*t?F.copy(L).normalize():F.set(1,0,0),k.crossVectors(j,F),k.lengthSq()<=H*t&&(k.copy(N).addScaledVector(F,-N.dot(F)),k.lengthSq()<=H*t&&function(t,e){t.set(1,0,0).cross(e),t.lengthSq()<=H&&t.set(0,1,0).cross(e),t.normalize()}(k,F)),k.normalize(),q.crossVectors(F,k)}function Q(t){return Z(t),K(),G.makeBasis(F,k,q)}var $,Y=new g;($||($={})).is=function(t){return t&&t.__isSPEObject};var J=t=>class extends t{constructor(){super(...arguments),this.previousModelViewMatrix=new g,this.copyPreviousMatrix=!0,this.hiddenMatrix=new g,this.pivotMatrix=new g,this.matrixWorldRigid=new g,this.shearScale=new g,this.shearScaleInv=new g}get __isSPEObject(){return!0}getPhysicsLocalMatrix(t){return!!this.rigidBody?.isDynamic()&&(t.copy(this.matrixWorld),this.hasNonUniformScale&&t.multiply(this.shearScaleInv),this.parent&&t.premultiply(Y.copy(this.parent.matrixWorld).invert()),t.premultiply(Y.copy(this.hiddenMatrix).invert()),t.multiply(Y.copy(this.pivotMatrix).invert()),!0)}isDescendantOf(t){t instanceof S&&(t=t.uuid);let e=this;for(;e.parent;){if(e.parent.uuid===t)return!0;e=e.parent}return!1}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.multiplyMatrices(this.hiddenMatrix,this.matrix):(this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.hiddenMatrix),this.matrixWorld.multiplyMatrices(this.matrixWorld,this.matrix)),this.matrixWorld.multiply(this.pivotMatrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(let e of this.children)e.updateMatrixWorld(t)}updateWorldMatrix(t,e){let i=this.parent;if(t&&null!==i&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.multiplyMatrices(this.hiddenMatrix,this.matrix):(this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.hiddenMatrix),this.matrixWorld.multiplyMatrices(this.matrixWorld,this.matrix)),this.matrixWorld.multiply(this.pivotMatrix),e)for(let t of this.children)t.updateWorldMatrix(!1,!0)}traverseChildren(t,e=0){for(let i of this.children)$.is(i)&&i.traverseObject(t,e+1)}traverseObject(t,e=0){if(!0!==t(this,e))for(let i of this.children)$.is(i)&&i.traverseObject(t,e+1)}updateMatrixWorldRigid(){this.hasNonUniformScale=function(t,e,i){return Z(t),K(),e.makeBasis(F,k,q),i.set(F.dot(L),F.dot(N),F.dot(j),0,k.dot(L),k.dot(N),k.dot(j),0,q.dot(L),q.dot(N),q.dot(j),0,0,0,0,1),function(){let t=L.length(),e=N.length(),i=j.length(),r=Math.max(t,e,i);if(r-t>X||r-e>X||r-i>X)return!0;let s=X*r*r;return Math.abs(L.dot(N))>s||Math.abs(L.dot(j))>s||Math.abs(N.dot(j))>s}()}(this.matrixWorld,this.matrixWorldRigid,this.shearScale),this.matrixWorldRigid.copyPosition(this.matrixWorld),this.shearScaleInv.copy(this.shearScale).invert()}attach(t,e){this.updateWorldMatrix(!0,!1);let i=(new g).copy(this.matrixWorld).invert();return null!==t.parent&&(t.parent.updateWorldMatrix(!0,!1),i.multiply(t.parent.matrixWorld)),"hiddenMatrix"in t&&t.hiddenMatrix instanceof g?t.hiddenMatrix.premultiply(i):t.applyMatrix4(i),t.updateWorldMatrix(!1,!1),this.add(t),void 0!==e&&(this.children.pop(),this.children.splice(e,0,t)),this}copy(t,e=!1){return super.copy(t,e),this.hasNonUniformScale=t.hasNonUniformScale,this}onAfterRender(t,e,i,r,s,a){this.copyPreviousMatrix&&this.previousModelViewMatrix.copy(this.modelViewMatrix)}},tt=class extends x{constructor(){super()}getPoints(t=12){let e,i=[],r=this.getCurveLengths(),s=r[r.length-1]/r.length;for(let a=0,n=this.curves;a<n.length;a++){let o=n[a],l=0===a?r[a]:r[a]-r[a-1],h=Math.ceil(t*l/s),p=o.getPoints(h);for(let t=0;t<p.length;t++){let r=p[t];e&&e.equals(r)||(i.push(r),e=r)}}return this.autoClose&&i.length>1&&!i[i.length-1].equals(i[0])&&i.push(i[0]),i}},et=.001,it=new f,rt=new f,st=new f,at=new f,nt=new f,ot=new f,lt=new f,ht=new f,pt=new f;function dt(t,e,i){return it.subVectors(e,t),rt.subVectors(e,i),it.cross(rt).length()<=et}var ct,ut=new WeakMap;function mt(t){let e=ut.get(t.points);if(void 0!==e&&e.isClosed===t.isClosed)return e.curve;let i=function(t){let e=t.points,i=[e[0]],r=[new f(...e[0].data.position)];st.copy(r[0]);for(let t=0;t<e.length-1;t++)it.fromArray(e[t].data.position),rt.fromArray(e[t+1].data.position),nt.subVectors(it,st),lt.subVectors(it,rt),nt.cross(lt).length()>et&&(i.push(e[t]),r.push((new f).copy(it)),st.copy(it));let s=e[e.length-1];i.push(s),r.push(new f(...s.data.position));let a=t.isClosed,n=i.length-(a?0:1),o=i.length,l=[],h=[];for(let t=0;t<o;t++){let e=i[t].data;l.push(new f(...e.controlPrevious.position)),h.push(new f(...e.controlNext.position))}let p=[];for(let t=0;t<n;t++){let e=t===o-1?0:t+1;p.push(dt(r[t],h[t],r[e])&&dt(r[t],l[e],r[e]))}let d=[];for(let t=0;t<o;t++){let e=i[t].data,s=r[t],n={position:s,prevDir:void 0,nextDir:void 0,controlPrevious:l[t],controlNext:h[t],tan:void 0,baseRoundness:e.roundness,removedLength:0};if(d.push(n),0===e.roundness||!a&&(0===t||t===o-1))continue;let c=a&&0==t?o-1:t-1,u=a&&t==o-1?0:t+1,m=(new f).subVectors(r[c],s).normalize(),y=(new f).subVectors(r[u],s).normalize();n.prevDir=m,n.nextDir=y;let g=p[a&&0===t?o-1:t-1],v=p[t];if(g&&v){at.addVectors(m,y).normalize();let t=st.crossVectors(at,m).length()/m.dot(at);n.tan=t,n.removedLength=e.roundness/t}}for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],r=d[e];if(0!==i.removedLength||0!==r.removedLength){let t=i.position.distanceTo(r.position);i.removedLength=Math.min(i.removedLength,t/2),r.removedLength=Math.min(r.removedLength,t/2)}}let c=new Array(2*o).fill(null);for(let t=0;t<n;t++){let e=a&&t===o-1?0:t+1,i=d[t],r=d[e],s=null;if(p[t]){let t=i.position.clone(),e=r.position.clone();(0!==i.removedLength||0!==r.removedLength)&&(i.nextDir&&t.add(st.copy(i.nextDir).setLength(i.removedLength)),r.prevDir&&e.add(st.copy(r.prevDir).setLength(r.removedLength))),t.distanceTo(e)>et&&(s=new y(t,t.clone().lerp(e,.3),e.clone().lerp(t,.3),e))}else i.position.distanceTo(r.position)>et&&(s=new y(i.position,i.controlNext,r.controlPrevious,r.position));c[2*t+1]=s}for(let t=0;t<o;t++){let e=d[t];if(0===e.removedLength)continue;let i=e.position,r=e.prevDir.clone().multiplyScalar(e.removedLength).add(i),s=e.nextDir.clone().multiplyScalar(e.removedLength).add(i),a=e.tan*e.removedLength;at.addVectors(e.prevDir,e.nextDir).normalize(),nt.copy(r).lerp(s,.5);let n=r.distanceTo(s)/2;pt.copy(at).multiplyScalar(Math.sqrt(Math.pow(a,2)-Math.pow(n,2))).add(nt),ot.copy(at).multiplyScalar(-a).add(pt);let o=i.distanceTo(ot)/i.distanceTo(nt);lt.copy(e.prevDir).multiplyScalar(o*i.distanceTo(r)).add(i),ht.copy(lt).lerp(ot,2);let l=r.clone().lerp(lt,4/3),h=s.clone().lerp(ht,4/3);c[2*t]=new y(r,l,h,s)}let u=new tt;for(let t=0;t<c.length;t++){let e=c[t];e&&u.add(e)}return u}(t);return ut.set(t.points,{isClosed:t.isClosed,curve:i}),i}(ct||(ct={})).is=function(t){return t&&t.__isEntity};var ft=t=>ct.is(t),yt={type:"completeState",isfromEntity:!0},gt=["x","y","z"],vt=new f,xt=new f(1,1,1),St=new m,wt=new v,Mt=(new f).set(0,1,0),bt=new g,Bt=new g,Pt=c=>class extends(J(c)){constructor(){super(...arguments),this.raycastLock=!1,this.scaleLock=!1,this.disposed=!1,this.stateSelection=null,this.destroyedInAction=!1,this.instances=[],this.prevState=null,this.currentState=null,this.currentAnimationAction=null,this.reversibleToState=null,this.currentTransitionEvent=null,this.previousAction=null,this._singleBBox=new I,this._recursiveBBox=new I,this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0,this._needApplyPathSnapping=!0,this.attachedPaths=new Set}get __isEntity(){return!0}entityChildren(t){let e=this.children[t];if(ct.is(e))return e}entityChildrenCount(){let t=this.children.length;for(;t--;)if(ct.is(this.children[t]))return t+1;return 0}get isConcreteEntity(){return"string"==typeof this.identity}get isVirtualEntity(){return"string"!=typeof this.identity}get isInstanceRoot(){return this.isConcreteEntity&&"Instance"===this.data.type}nearestInstanceSelfOrParent(){let t=this;for(;"Instance"!==t.data.type;){let e=t.parent;if(!ct.is(e))return;t=e}return t}forInstancesRec(t){this.instances.forEach(e=>{e.disposed||t(e),e.forInstancesRec(t)})}super_Entity(t,e){"string"==typeof t&&(this.uuid=t),this.identity=t,this.data=e,this.matrixAutoUpdate=!1,this.dataPatched=this.data}changeSelectedState(t,e,i=!1){if(0!==this.data.states.length||i){for(let t of this.data.states)n.toOps(this.data,t.data).forEach(t=>{let i=h.replaceProps(t,this.data);this.dataPatched=this.data,this.updateByPatchedOp(i,this.data,e)});if(null!==t){let i=this.data.states.data(t);i&&(this.dataPatched=n.patch(this.data,i),n.toOps(this.data,i).forEach(t=>{this.updateByPatchedOp(t,this.dataPatched,e)}))}i&&this.updateTransformState(this.dataPatched,e),this.stateSelection=t,this.updatePathSnapping(this.dataPatched.pathSnapping)}}get singleBBox(){return this.singleBBoxNeedsUpdate&&(this.singleBBoxNeedsUpdate=!1,this._singleBBox.setFromObjectSize(this,!1),this._singleBBox.computeVertices(),this._singleBBox.computeEdges(),this._singleBBox.computeFaces()),this._singleBBox}get recursiveBBox(){return this.recursiveBBoxNeedsUpdate&&(this.recursiveBBoxNeedsUpdate=!1,this._recursiveBBox.setFromObjectSize(this,!0),this._recursiveBBox.computeVertices(),this._recursiveBBox.computeEdges(),this._recursiveBBox.computeFaces()),this._recursiveBBox}updateEntityBoxSize(t,e){t.setScalar(0),e.setScalar(0)}resetBBoxNeedsUpdateSelf(){this.singleBBoxNeedsUpdate=!0,this.recursiveBBoxNeedsUpdate=!0}resetBBoxNeedsUpdate(){this.resetBBoxNeedsUpdateSelf(),this.traverseAncestors(t=>{ft(t)&&t.resetBBoxNeedsUpdateSelf()}),this.traverseEntity(t=>{t.resetBBoxNeedsUpdateSelf()})}find(t){let e;return this.traverseEntity(i=>{i.uuid===t&&(e=i)}),e}traverseSortNextHelper(){let t=this.parent;if(t){let e=t.children,i=e.indexOf(this)+1;if(ct.is(e[i]))return e[i];if(ct.is(t))return t.traverseSortNextHelper()}}sortNext(){let t=this.children;return this.children.length>0&&ct.is(this.children[0])?t[0]:this.traverseSortNextHelper()}goUp(t){let e=this;for(;t>0&&null!==e;)e=e.parent,t-=1;return e}hasAnccestorOrSelf(t){return this===t||this.hasAnccestor(t)}hasAnccestor(t){let e=this.parent;for(;e;){if(t===e)return!0;e=e.parent}return!1}countToAccestor(t){let e=0,i=this;for(;i!==t;){if(null===i)return-1;i=i.parent,e+=1}return e}forEachEntity(t){for(let e of this.children)ft(e)&&t(e)}traverseEntityAncestors(t){this.traverseAncestors(e=>{ct.is(e)&&t(e)})}traverseConcreteEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ft(i)&&i.isConcreteEntity&&i.traverseEntity(t,e+1)}traverseEntity(t,e=0){if(!0!==t(this,e))for(let i of this.children)ft(i)&&i.traverseEntity(t,e+1)}traverseVisibleEntity(t){t(this);for(let e of this.children)ft(e)&&e.visible&&e.traverseVisibleEntity(t)}updateMatrix(){super.updateMatrix(),this.cloner&&this.cloner.onObjUpdateMatrix(),this.dispatchEvent({type:"updateMatrix"})}updateMatrixWorld(t){super.updateMatrixWorld(t),this.dispatchEvent({type:"updateMatrixWorld"})}copy(t,e=!1){return super.copy(t,e),this.dataPatched=t.dataPatched,this.raycastLock=t.raycastLock,this.scaleLock=t.scaleLock,this.hiddenMatrix.copy(t.hiddenMatrix),this}hasEntityChild(){return this.children.some(t=>ft(t))}isAncestorOf(t){if(this.uuid===t)return!1;let e=!1;return this.traverseEntity(i=>{i.uuid===t&&(e=!0)}),e}toObjectTransformState(t=[]){this.updateWorldMatrix(!0,!1);let i={position:this.position.toArray(),rotation:[this.rotation.x*u.RAD2DEG,this.rotation.y*u.RAD2DEG,this.rotation.z*u.RAD2DEG],scale:this.scale.toArray(),hiddenMatrix:this.hiddenMatrix.toArray(),pivot:[0,0,0],pivotRotation:[0,0,0]};return e(i,t)}getTransformValues(t,e,i){return e[t].map((e,r)=>i?.shared.getVariable(e,[this.uuid,t,gt[r]])??e)}updateTransformState(t,e){let i=!1;if(t.position&&(this.position.fromArray(this.getTransformValues("position",t,e)),i=!0),t.rotation&&(vt.fromArray(this.getTransformValues("rotation",t,e)).multiplyScalar(u.DEG2RAD),this.rotation.setFromVector3(vt),i=!0),t.scale&&(this.scale.fromArray(this.getTransformValues("scale",t,e)),i=!0),void 0!==t.hiddenMatrix&&(i=!0,this.hiddenMatrix.fromArray(t.hiddenMatrix??s.identity)),void 0!==t.pivot||void 0!==t.pivotRotation)if(i=!0,void 0!==t.pivot&&void 0!==t.pivotRotation)this.pivotMatrix.compose(vt.fromArray(t.pivot).negate(),St.setFromEuler(wt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),xt);else if(void 0!==t.pivot)this.pivotMatrix.setPosition(-t.pivot[0],-t.pivot[1],-t.pivot[2]);else if(void 0!==t.pivotRotation){let e=vt.setFromMatrixPosition(this.pivotMatrix);St.setFromEuler(wt.fromArray(t.pivotRotation.map(t=>t*u.DEG2RAD))).invert(),this.pivotMatrix.compose(e,St,xt)}return i&&(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)})),t.position&&t.rotation&&t.scale&&void 0!==t.hiddenMatrix&&this.updateWorldMatrix(!1,!0),i}onVariableUpdate(t=!1){t?this.resetBBoxNeedsUpdate():(this.updateMatrix(),this.resetBBoxNeedsUpdate(),this.invalidateClonerTransform(this),this.traverseEntityAncestors(t=>{t.invalidateClonerTransform(this)}),this.requestRender())}dispose(){this.disposed=!0,this.cloner&&(this.cloner.dispose(),this.cloner=void 0)}disposeChildrenRecursively(){for(let t of this.children)ct.is(t)&&t.disposeRecursively()}disposeRecursively(){this.dispose(),this.children.forEach(t=>{ct.is(t)&&t.disposeRecursively()})}toState(t=[]){let i={name:this.name,visible:this.visible,raycastLock:this.raycastLock,...this.toObjectTransformState(t)};return e(i,t)}updateByObjUpdateOp(t,e){void 0!==t&&this.updateByOp({type:0,props:t,path:[]},{...this.data,...t},e,!1)}updateByOp(t,e,i,s){let o=this.data;this.data=e;let h=t,c=W(t.path,["states","*"]);if(null!==c){if(0===t.type){let[e]=c;if(this?.stateSelection===e){let e={...t.props};if(delete e.name,Object.values(t.props).some(t=>void 0===t)){let i=this.data;if(void 0!==i){let r=d.zoom(i,t.path.slice(2));if(r)for(let i in t.props)void 0===t.props[i]&&i in r&&(e[i]=r[i])}}h={...t,props:e,path:t.path.slice(2)}}}}else if(0===t.type){let e=this.stateSelection?this.data.states.data(this.stateSelection):void 0;if(void 0!==e){if(void 0!==t.props.name&&e.name){let{name:t,...i}=e;e=i}if(void 0!==t.props.material&&"material"in e){let{material:t,...i}=e;e=i}let i=d.removeOverridden(t.path,t.props,e);h={...t,props:i}}}if(this.updateByPatchedOpBase(h,n.patch(this.data,this.stateSelection?this.data.states.data(this.stateSelection):void 0),i),W(t.path,["overrides"])){let s=[],a=[...t.path];for(s.push(a[1]),a.splice(0,2);a.length>0&&"descendants"===a[0];)s.push(a[1]),a.splice(0,2);if(void 0===s[s.length-1]){if(0===t.type)for(let e of Object.keys(t.props)){s[s.length-1]=e;let r=i.scene.findInstance([this.uuid,...s]);r&&(r.overrideData=t.props[e],r.updateState(l.apply(r.component.data,r.overrideData),i))}}else{let n=i.scene.findInstance([this.uuid,...s]);if(n){let o=d.zoom(n.component.data,a);if(0===(t={...t,path:a}).type){let e=t.props;if(o)for(let[i,r]of Object.entries(t.props))void 0===r&&(e===t.props&&(e={...t.props}),e[i]=o[i]);t={...t,props:e}}n.overrideData=r.resolve(e.overrides,s),n.updateByOp(t,p.applySimple(n.data,t),i,!1)}}}else if(this.instances.length>0){let r;if(0===t.path.length&&0===t.type){let e;for(let i of a.rootOverrideProps)i in t.props&&(void 0===e&&(e={}),e[i]=t.props[i]);e&&(r={...t,props:e})}else for(let e of a.rootOverrideProps)if(W(t.path,[e])){r=t;break}void 0!==r&&this.instances.forEach(t=>{if(t.isInstanceRoot){let e=l.filterOp(t.overrideData,r);e&&t.updateByOp(e,p.applySimple(t.data,e),i,!0)}}),this.instances.forEach(r=>{if(!r.isInstanceRoot){let s=l.filterOp(r.overrideData,t);if(s){let a;a=o===r.data&&t===s?e:p.applySimple(r.data,s),r.updateByOp(s,a,i,!0)}}})}}updateByPatchedOpBase(t,e,i){if(this.dataPatched=e,0===t.path.length&&0===t.type)void 0!==t.props.type&&!o.is(t.props.type)&&C.changeEntityProptotype(this,e,i);else if(1===t.path.length&&"geometry"===t.path[0]&&0===t.type&&"type"in t.props){C.changeEntityProptotype(this,e,i);for(let t of this.children)ct.is(t)&&t.updateVisible(i.scene)}this.updateByPatchedOp(t,e,i)}updateByPatchedOp(t,e,i){if(0===t.path.length&&0===t.type?this.updateState(t.props,i):0===t.type&&("resolutionLevel"in t.props||"useChildrenColors"in t.props)&&this.updateState(e,i),"morphTargetInfluences"===t.path[0]&&0===t.type){let r=e.morphTargetInfluences.get(t.path[1])?.data.name;r&&this.updateMorphInfluences(r,i.shared.getVariable(t.props.value,[this.uuid,"morphTargetInfluences",r]))}if(null!==W(t.path,["pathSnapping"])&&this.updatePathSnapping(e.pathSnapping),null!==W(t.path,["cloner"])){let r=p.drop(t,1);0===r.path.length&&0===r.type&&!0===r.props.disabled?this.setFromClonerState(null,i):this.cloner?this.cloner.updateState(e.cloner,i):(this.setFromClonerState(e.cloner,i),this.expandCloner(i)),this.updateVisible(i.scene)}}updatePathSnapping(t=this.dataPatched.pathSnapping){this._updatedPathSnapping=t,this._needApplyPathSnapping=!0}get updatedPathSnapping(){return this._updatedPathSnapping}applyPathSnapping(t){if(!1===this._needApplyPathSnapping)return;let e=this._updatedPathSnapping?.pathId??this.dataPatched.pathSnapping.pathId,i=this._updatedPathSnapping?.slide??this.dataPatched.pathSnapping.slide??0,r=this._updatedPathSnapping?.offset??this.dataPatched.pathSnapping.offset??0,s=this._updatedPathSnapping?.orientation??this.dataPatched.pathSnapping.orientation;if(null===e)return;let a=t.find(e);if(!a)return;this._needApplyPathSnapping=!1;let n=a.data;if(n.geometry.path.points.length<=1)return;let o=mt(n.geometry.path),l=(i+r)%1;i+r===1&&0===l&&(l=1);let h=null;try{h=o.curves.length?o.getPointAt(l):null}catch(t){}if(null===h)return;a.updateMatrixWorld();let p=this.parent?bt.copy(this.parent.matrixWorld).invert():bt.identity();p.multiply(a.matrixWorld),h.applyMatrix4(p);let d={position:h.toArray(),rotation:n.rotation};if("tangential"===s){let t=Bt.extractRotation(a.matrixWorld),e=o.getTangentAt(l).applyMatrix4(t).add(h),i=Bt.lookAt(h,e,Mt),r=vt.setFromEuler(wt.setFromRotationMatrix(i)).multiplyScalar(u.RAD2DEG);d={...d,rotation:r.toArray()}}this.updateTransformState(d),this.traverseEntity(t=>{t._cameraType&&t.dispatchEvent(yt)})}updateVisible(t){if(this.visible=this.dataPatched.visible&&(!this.dataPatched.cloner||(this.dataPatched.cloner.disabled??!1)||!0!==this.dataPatched.cloner?.hideBase),!t)return;let e=!1;this.traverseEntity(t=>{if("Splat"===t.data.type)return e=!0,!0}),e&&t.reloadSplats()}updateState_Entity(t,e){void 0!==t.name&&(this.name=t.name),void 0!==t.raycastLock&&(this.raycastLock=t.raycastLock),void 0!==t.visible&&(this.updateVisible(e?.scene),this.resetBBoxNeedsUpdate()),e&&"cloner"in t&&void 0!==t.cloner&&(this.setFromClonerState(t.cloner,e),this.updateVisible(e.scene)),this.updateTransformState(t,e)}get attachedSurfaceCloners(){return this.children.filter(e=>t(e)&&"toObject"===e.parameters.type)}setFromClonerState(t,e){if(!this.disposed)if(null===t||t.disabled)this.cloner&&this.cloner.dispose(),this.cloner=void 0;else if(void 0===this.cloner){if(null===C.Cloner)return void i("cloners","a cloner");this.cloner=new C.Cloner(this,t),e.scene.addPendingExpandCloner(this)}else this.cloner.updateState(t,e)}expandCloner(t){!this.disposed&&this.cloner&&this.cloner.expandClones(t)}invalidateClonerTransform(t){this.cloner&&this.cloner.invalidateTransform(t)}requestRender(){this.dispatchEvent({type:"requestRender"})}},Et=class{static create(t){return this.build(this.normalizeInputs(t))}static normalizeInputs(t,e){let i=Object.assign({},e?.parameters??{width:100,revolutions:2,segments:40,pathRadius:10,pathType:0,pathSegments:30,cornerRadius:30,cornerSegments:4},t.parameters),r=Math.abs(i.width),s=Math.abs(i.height??r),a=Math.abs(i.depth??r),n=Math.abs(Math.min(r,a))/2;return{parameters:Object.assign(i,{width:r,height:s,depth:a,radius:n,segments:Math.round(i.segments),pathSegments:Math.round(i.pathSegments),cornerSegments:Math.round(i.cornerSegments)})}}static build(t){let{width:e,height:i,depth:r,radius:s,revolutions:a,segments:n,pathRadius:o,pathType:l,pathSegments:h,cornerRadius:p,cornerSegments:d}=t.parameters,c=new Ot(!1,e,i,r,s,a,n,o,l,h,p,d);return Object.assign(c,{userData:{...t,type:"HelixGeometry"}})}},At=new c([0,0,0],1);function Ct(t){return"TorusGeometry"===t.type&&360===t.arc}var Dt,Wt,Ot=class extends P{constructor(t=!0,e=1,i=1,r=1,s=1,a=1,n=1,o=1,l=1,h=1,p=1,d=1){if(super(),0===a)return;let c=t&&1===a;c&&(d=0),p>100&&(p=100),0===p&&(d=0);let u,m,y,g,v,x,S,w,M=()=>new f,B=new f,P=M(),E=M(),A=M(),C=M(),D=M(),W=M(),O=M(),V=M(),_=M(),U=M(),T=M(),R=i-2*o+.001,z=R/a,I=Math.ceil(n*a),L=I+1,N=R/I,j=-R/2,F=h+1,k=2*Math.PI/h,q=Math.PI/2/d,G=Math.min((1-p/100)*o,o-.01),H=o-G,X=0,Z=2*d+2,K=F*Z/2,Q=K+F*L,$=Math.max(0,F*(L+Z)),[Y,J,tt]=[3,3,2].map(t=>Array($*t).fill(0)),et=[],it=s-o;function rt(e,i){let r=Math.PI/2;x=i*N,w=2*Math.PI*(x%z)/z+r,x+=j,S=Math.sin(w)*it,v=Math.cos(w)*it,t?e.set(v,S,x):e.set(v,x,S)}rt(B,-1e-10),rt(P,0),C.copy(B),rt(B,1);let st=B.distanceTo(P),at=c?0:H+G,nt=st*I+2*at,ot=G,lt=nt-at;for(let e=0;e<=I;e++){rt(E,e),T.subVectors(E,C).normalize(),C.copy(E),_.copy(E).setComponent(+t+1,0).normalize(),U.crossVectors(T,_).normalize();let i=0===e,r=e===I,s=i?3*Math.PI/2:q,a=i?ot:lt,n=i?F:Q,l=i?0:$-F,p=T.clone().multiplyScalar(i?-H:H).add(E),u=T.clone().multiplyScalar(i?-1:1).normalize();for(let t=0;t<F;t++){let m=t*k;if(D.addVectors(B.copy(_).multiplyScalar(o*Math.cos(m)),P.copy(U).multiplyScalar(o*Math.sin(m))),W.copy(D).normalize(),i||r){c||(X=l+t,[0,1,2].forEach(t=>{Y[3*X+t]=p.getComponent(t),J[3*X+t]=u.getComponent(t)}),tt[2*X]=+r,tt[2*X+1]=t/h),P.copy(W).multiplyScalar(G),A.addVectors(E,P);for(let e=0;e<d;e++){let r=e*q+s;O.addVectors(B.copy(T).multiplyScalar(H*Math.sin(r)),P.copy(W).multiplyScalar(H*Math.cos(r))),V.copy(O).normalize(),P.addVectors(A,O),O.normalize(),X=n+e*F+t,[0,1,2].forEach(t=>{Y[3*X+t]=P.getComponent(t),J[3*X+t]=V.getComponent(t)});let o=+i+Math.sin(r);tt[2*X]=(a+H*o)/nt,tt[2*X+1]=t/h}}P.addVectors(E,D),X=K+e*F+t,[0,1,2].forEach(t=>{Y[3*X+t]=P.getComponent(t),J[3*X+t]=W.getComponent(t)}),tt[2*X]=(at+e*st)/nt,tt[2*X+1]=t/h}}let ht=L+2*d+2,[pt,dt]=[+c,ht-1];for(let t=pt;t<=dt-1;t++){let e=c&&t===dt-1;for(let i=0;i<F-1;i++)u=t*F+i,m=u+1,y=(e?i:u)+F,g=(e?i+1:m)+F,0===t?et.push(m,g,y):t===ht-2?et.push(u,m,y):et.push(u,m,y,m,g,y)}this.setIndex(et),this.setAttribute("position",new b(Y,3)),this.setAttribute("normal",new b(J,3)),this.setAttribute("uv",new b(tt,2))}getClosedTorusIndicesForBooleanOrSubdiv(){let t,e,i,r,s=this.userData.parameters,a=Math.ceil(s.tubularSegments),n=s.radialSegments,o=n+1,l=[];for(let s=1;s<a;s++)for(let a=0;a<n;a++)t=s*o+a,e=t+1,i=t+o,r=e+o,l.push(t,e,i,e,r,i);for(let s=0;s<n;s++)t=a*o+s,e=t+1,i=s+o,r=s+1+o,l.push(t,e,i,e,r,i);return At.array=new Uint32Array(l),At.count=l.length,At}},Vt=new Map,_t=0;function Ut(t){return Wt||(Wt=async function(){let e=t??"https://cdn.spline.design/@splinetool/runtime@2.0.13/build",i=import("./boolean.js"),[r,s]=await Promise.all([i,fetch(`${e}/boolean.wasm`).then(t=>t.arrayBuffer())]);await r.default({module_or_path:s}),Dt=r}())}function Tt(){if(void 0===Dt)throw new Error("boolean-wasm is not loaded");return Dt}function Rt(t){let e=Vt.get(t);if(void 0===e)throw new Error("Unknown csg mesh set handle "+t);return e}function zt(t){return Vt.set(++_t,t),_t}var It={0:0,1:1,2:2};function Lt(t,e,i){if(void 0===Dt)return-1;let{positions:r,indices:s,normals:a}=function(t,e){if(e&&void 0!==t.userData.positions){let e=t.userData,i=[];for(let t=0,r=0;t<e.verticesPerFace.length;t++){let s=e.verticesPerFace[t];for(let t=1;t<s-1;t++)i.push(e.indices[r],e.indices[r+t],e.indices[r+t+1]);r+=s}return{positions:e.positions instanceof Float32Array?e.positions:new Float32Array(e.positions),indices:new Uint32Array(i)}}let i;i=Ct(t.userData.parameters)?t.getClosedTorusIndicesForBooleanOrSubdiv():t.getIndex();let r,s=t.getAttribute("position");if(null===i){r=new Uint32Array(s.count);for(let t=0;t<r.length;t++)r[t]=t}else r=i.array instanceof Uint32Array?i.array:new Uint32Array(i.array);let a=t.getAttribute("normal"),n=void 0!==a&&3===a.itemSize&&a.count===s.count&&a.array instanceof Float32Array&&!0!==a.isInterleavedBufferAttribute?a.array:void 0;return{positions:s.array,indices:r,normals:n}}(t,e);return zt(new Dt.CsgMesh(r,s,a))}function Nt(t,e){let i=Tt(),r=It[e];if(void 0===r)throw new Error("Unknown boolean operation "+e);let s=t.map(Rt);if(1===s.length)return i.clone_mesh(s[0]);let a,n=[];if(2===e&&s.length>2){let t=s[0];for(let e=1;e<s.length-1;e++)t=i.boolean_mesh(t,s[e],0),n.push(t);a=i.boolean_mesh(s[s.length-1],t,2)}else if(2===e)a=i.boolean_mesh(s[1],s[0],2);else{let t=s[s.length-1];for(let e=0;e<s.length-1&&(t=i.boolean_mesh(t,s[e],r),n.push(t),0!==t.tri_count());e++);a=t,n.pop()}for(let t of n)t.free();return a}function jt(t,e,i,r){let s=Tt(),a=Nt(t,e),n=s.mesh_render_data(a,Math.max(r,0));if(i.setAttribute("position",new b(n.positions(),3)),i.setAttribute("normal",new b(n.normals(),3)),n.free(),null===i.boundingSphere&&(i.boundingSphere=new B),0===a.tri_count())i.boundingSphere.center.set(0,0,0),i.boundingSphere.radius=0,i.userData.parameters={width:0,height:0,depth:0};else{let t=a.bounds();i.boundingSphere.center.set(t[0],t[1],t[2]),i.boundingSphere.radius=(t[3]**2+t[4]**2+t[5]**2)**.5,i.userData.parameters={width:2*t[3],height:2*t[4],depth:2*t[5]}}return zt(a)}function Ft(t,e){let i=Tt(),r=Nt(t,e),s=i.mesh_topological_data(r),a=s.positions(),n=s.indices();return s.free(),r.free(),{positions:a,indices:n,verticesPerFace:new Uint8Array(n.length/3).fill(3)}}function kt(t,e){Rt(t).transform(new Float32Array(e.elements))}function qt(t){let e=Vt.get(t);void 0!==e&&(e.free(),Vt.delete(t))}function Gt(t,e){return zt(Tt().instanced_union(Rt(t),e))}function Ht(t){return null!==t&&"booleanOp"in t}var Xt=class extends(Pt(A)){constructor(){super(...arguments),this.booleanMeshSetAddress=-1,this.booleanWasTransformed=!1,this.booleanMatrixInvOld=new g}updateVisible(t){super.updateVisible(t),this.visible=!Ht(this.parent)&&this.visible,Ht(this.parent)&&this.parent.invalidateDownstreamBooleanData()}onClonerLayoutUpdated(){Ht(this.parent)&&this.invalidateDownstreamBooleanData()}freeBooleanPointer(){-1!==this.booleanMeshSetAddress&&(qt(this.booleanMeshSetAddress),this.booleanMeshSetAddress=-1)}invalidateDownstreamBooleanData(t=!1){return t?this.booleanWasTransformed=!0:this.freeBooleanPointer(),Ht(this.parent)?this.parent.invalidateDownstreamBooleanData():this}invalidateUpstreamBooleanData(){this.freeBooleanPointer();for(let t of this.children)t instanceof Xt&&(t.freeBooleanPointer(),Ht(t)&&t.invalidateUpstreamBooleanData())}updateTransformState(t,e){let i=super.updateTransformState(t,e);return i&&Ht(this.parent)&&this.invalidateDownstreamBooleanData(!0),i}onVariableUpdate(t=!1){super.onVariableUpdate(t),Ht(this.parent)&&this.invalidateDownstreamBooleanData(!0)}},Zt=new M;function Kt(t,e=0,i=t.count,r,s){let a=1/0,n=1/0,o=1/0,l=-1/0,h=-1/0,p=-1/0;for(let r=e;r<i;r++){let e=t.getX(r),i=t.getY(r),s=t.getZ(r);e<a&&(a=e),i<n&&(n=i),s<o&&(o=s),e>l&&(l=e),i>h&&(h=i),s>p&&(p=s)}Zt.min.set(a,n,o),Zt.max.set(l,h,p),Zt.getCenter(r),Zt.getSize(s).multiplyScalar(.5)}var Qt=new P,$t=new E,Yt=class extends Xt{constructor(t,e){super(Qt,$t),this.super_Entity(t,e)}updateState(t,e){this.updateState_Entity(t,e)}raycast(t,e){super.raycast(t,e)}updateEntityBoxSize(t,e){let i=this.geometry.getAttribute("position");void 0!==i?Kt(i,this.geometry.drawRange.start,this.geometry.drawRange.count<1/0?this.geometry.drawRange.count:i.count,t,e):super.updateEntityBoxSize(t,e)}};export{D as a,W as b,C as c,Q as d,$ as e,J as f,mt as g,ct as h,ft as i,Pt as j,Et as k,Ct as l,Ot as m,Ut as n,Lt as o,jt as p,Ft as q,kt as r,qt as s,Gt as t,Kt as u,Yt as v};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{h as t,j as e,k as i}from"./runtime-chunk-ESL2VL5C.js";import{a as s}from"./runtime-chunk-R43XZP65.js";import{a}from"./runtime-chunk-WILQUYJ4.js";import{e as n}from"./runtime-chunk-WGBR2HLR.js";import{e as r}from"./runtime-chunk-2PT2WH66.js";import{q as o}from"./runtime-chunk-D3BWEUN6.js";import{Bc as h}from"./runtime-chunk-BVVSZMXD.js";var d=class extends h{constructor(t,e,i,s,a){if(super(),this.eventType=t,this.data=e,this.page=i,this.shared=s,this.condition=a,this.toggleIsForward=!1,this.timelineNeedsRebuild=!1,this.hasPlayedOnce=!1,this.pauseOnNextLoopEnd=!1,this.onTimelineChangeComplete=()=>{if(this.pauseOnNextLoopEnd)return this.pauseOnNextLoopEnd=!1,void this.timeline?.pause();"normal"!==this.data.tweens[0].data.direction&&(this.toggleIsForward=!this.toggleIsForward),!1!==this.timelineNeedsRebuild&&(this.timeline?.pause(),this.buildTimeline({isForward:this.toggleIsForward,needsRebuild:!1,isRebuild:!0}),this.timeline.play())},!e.object)throw new Error("Missing property");let n=this.page.scene.find(e.object)??this.page.uiCanvas?.find(e.object)??this.page.scene.find2DInUIObjects(e.object);if(!n)throw new Error("Missing property");if(!n.states)throw new Error("Missing property");if(this.object=n,e.tweens.length<2)throw new Error("Missing property");this.tweens=Array(this.data.tweens.length-1),this.startOnceDelay="start-once"===e.tweens[0].data.delayDirection?e.tweens[0].data.delay:0,this.init()}get playing(){return!1===this.timeline?.paused}get changeBegan(){return this.tweens.some(t=>t.changeBegan)??!1}init(){this.initialCurrentState=e(this.object,this.object.currentState).id,this.toggleIsForward=!1}get currentState(){return"Toggle"===this.data.runMode&&o(this.eventType)?this.initialCurrentState:this.object.currentState}buildTimeline({isForward:e=!0,needsRebuild:n=!1,isRebuild:r=!1}={}){try{let o=t(this.data.tweens[0].data);r&&"number"==typeof o.loop&&o.loop--,this.timeline?.pause(),this.timeline=s.timeline({autoplay:!1,...o,...!0===o.loop||o.loop>1?{timelineChangeComplete:this.onTimelineChangeComplete}:{}});let h=this.tweens.findIndex(t=>t?.changeBegan);if(!0===n&&(this.timelineNeedsRebuild=!0),e){let t=-1===h?0:h;for(let e=t;e<this.data.tweens.length-1;e++){let s,n=this.data.tweens[e],r=this.data.tweens[e+1];e!==t||!0!==this.object.wasMovedByUser&&!0!==this.object.previousAction?.changeBegan?s=void 0===n.data.state?this.currentState:n.data.state:(s=void 0,this.object instanceof a&&(this.object.wasMovedByUser=!1));let d=new i(this.object,s,void 0===r.data.state?this.currentState:r.data.state,r.data,this.shared,this.data.allowSlerp??!1,this.page);-1!==h&&e===t&&Object.assign(d.params,{startOnceDelay:0}),this.tweens[e]=d,this.timeline.add(d.params,this.timeline.duration+(e===t?o.delay:0))}this.timeline.duration+=o.endDelay}else{let t=-1===h?this.data.tweens.length-1:h+1;for(let e=t;e>0;e--){let s,n=this.data.tweens[e],r=this.data.tweens[e-1];e!==t||!0!==this.object.wasMovedByUser&&!0!==this.object.previousAction?.changeBegan?s=void 0===n.data.state?this.currentState:n.data.state:(s=void 0,this.object instanceof a&&(this.object.wasMovedByUser=!1));let d=new i(this.object,s,void 0===r.data.state?this.currentState:r.data.state,n.data,this.shared,this.data.allowSlerp??!1,this.page);-1!==h&&e===t&&Object.assign(d.params,{startOnceDelay:0}),this.tweens[e-1]=d,this.timeline.add(d.params,this.timeline.duration+(e===t?o.endDelay:0))}this.timeline.duration+=o.delay}}catch(t){t instanceof Error&&console.error(t.message)}!0===this.object.previousAction?.playing&&this.object.previousAction.pause(),this.object.previousAction=this}play(){if(!1===n(this.shared,this.condition)||o(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce||(this.hasPlayedOnce=!0,this.playing))return!1;this.startTimeout?.pause();let e=t(this.data.tweens[0].data).pingPongDelayCorrection;this.startTimeout=s({targets:{},duration:this.startOnceDelay+e,easing:"linear",complete:()=>{this.startTimeout=void 0;try{this.buildTimeline(),this.timeline.play()}catch(t){t instanceof Error&&console.error(t.message)}}})}pause(){this.timeline?.pause(),this.startTimeout?.pause(),this.tweens=Array(this.data.tweens.length-1),delete this.startTimeout}stop(){this.pause();let t=void 0===this.data.tweens[0].data.state?this.initialCurrentState:this.data.tweens[0].data.state;r(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===n(this.shared,this.condition))return!1;void 0===this.timeline&&this.buildTimeline(),this.timeline?.seek(t*this.timeline.duration,!0)}toggle(t){if(!1===n(this.shared,this.condition))return!1;this.startTimeout?.pause(),this.toggleIsForward=t??!this.toggleIsForward,this.playing?(this.timeline?.pause(),this.buildTimeline({isForward:this.toggleIsForward,needsRebuild:!0}),this.pauseOnNextLoopEnd=!0,this.timeline.play()):this.startTimeout=s({targets:{},duration:this.startOnceDelay,easing:"linear",complete:()=>{this.startTimeout=void 0,this.timeline?.pause(),this.buildTimeline({isForward:this.toggleIsForward}),this.timeline.play()}})}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){this.pause()}};export{d as a};
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{e,g as t,j as a}from"./runtime-chunk-JLL5C22M.js";import{a as r}from"./runtime-chunk-5POGWSQZ.js";import{a as n,b as o}from"./runtime-chunk-OUQPS3VD.js";import{c as i,e as s,f as l}from"./runtime-chunk-XUHTMJJD.js";import{a as u}from"./runtime-chunk-WILQUYJ4.js";import{b as d}from"./runtime-chunk-YH55FWRI.js";import{U as p,Y as c,Z as h,da as f,ea as g,h as m}from"./runtime-chunk-HKFPEE5F.js";import{v as y}from"./runtime-chunk-A7IMJ4FJ.js";import{d as b,e as v}from"./runtime-chunk-2PT2WH66.js";import{d as w,f as j}from"./runtime-chunk-4KZXQGUQ.js";import{A as S,B as D,I as E,N as V,O as x,P as B,Q as O,R as A,S as C,da as k,ma as M,pa as N,va as P,z as R}from"./runtime-chunk-D3BWEUN6.js";import{Cc as q,Dc as G,Ec as z,Fc as I,Oc as F,Pc as U,Tc as $}from"./runtime-chunk-BVVSZMXD.js";var{degToRad:W,radToDeg:T}=q,_=new I,L=new I,Q=new z;function J(e,t,a,r,n,o){let i=void 0!==a[e]?a[e]:void 0,s=r[e];if(null==s)return;let l=null!=i?"string"==typeof i?Number(n.getVariable(i)??0):i:t[e],u="string"==typeof s?Number(n.getVariable(s)??0):s;return l!==u?{update:a=>{let r=q.lerp(l,u,a);t[e]=o?Math.trunc(r):r},start:()=>{t[e]=l},end:()=>{t[e]=u}}:void 0}function H(e,t,a,r,n,o){let i=a[e]?a[e]:void 0,s=r[e];if(!s)return;let l=t[e],u=[...i??l].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e),d=[...s].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e);return u.length!==d.length||w(u,d)?void 0:{update:a=>{u.forEach((r,n)=>{let i=q.lerp(r,d[n],a);t[e][n]=o?Math.trunc(i):i})},start:()=>{Object.assign(t[e],u)},end:()=>{Object.assign(t[e],d)}}}function Z(e,t,a){return t.forEach((t,r)=>{e.setComponent(r,"string"==typeof t?Number(a.getVariable(t)??0):t)}),e}function X(e,t,a,r,n){let o=a[e]?a[e]:void 0,i=r[e];if(!i)return;let s=t[e],l=o?Z(new I,o,n):s.clone(),u=Z(new I,i,n);return l.equals(u)?void 0:{update:e=>{s.lerpVectors(l,u,e)},start:()=>{s.copy(l)},end:()=>{s.copy(u)}}}function Y(e,t,a){return t.forEach((t,r)=>{e.setComponent(r,"string"==typeof t?Number(a.getVariable(t)??0):t)}),e}function K(e,t,a,r,n){let o=a[e]?a[e]:void 0,i=r[e];if(!i)return;let s=t[e],l=!(s instanceof G),u=s instanceof G?s:(new G).fromArray(s),d=o?Y(new G,o,n):u.clone(),p=Y(new G,i,n);return d.equals(p)?void 0:{update:a=>{u.lerpVectors(d,p,a),l&&(t[e]=u.toArray())},start:()=>{u.copy(d),l&&(t[e]=u.toArray())},end:()=>{u.copy(p),l&&(t[e]=u.toArray())}}}function ee(e,t,a,r,n){let o=a[e]?a[e]:void 0,i=r[e];if(!i)return;let s=t[e],l=new m(s.r,s.g,s.b,s.a),u=o?"string"==typeof o?n.getColor(o).clone():new m(o.r,o.g,o.b,o.a):l.clone(),d="string"==typeof i?n.getColor(i).clone():new m(i.r,i.g,i.b,i.a);return u.equals(d)?void 0:{update:a=>{l.lerpColors(u,d,a);let r=q.lerp(u.a,d.a,a);l.a=r,t[e]={r:l.r,g:l.g,b:l.b,a:l.a}},start:()=>{l.copy(u)},end:()=>{l.copy(d)}}}function te(e,t,a,r,n){return"number"==typeof t[e]?J(e,t,a??{},r,n):Array.isArray(t[e])?H(e,t,a??{},r,n):void 0}function ae(e,t,a,r,n){let o=a[e],i=r[e];if("number"==typeof t[e])Math.abs(o-i)>1e-4&&(t[e]=q.lerp(o,i,n));else if(Array.isArray(t[e]))for(let a=0,r=o.length;a<r;a++)t[e][a]=q.lerp(o[a],i[a],n)}function re(e,t,a,r){let n=e.geometry.userData.parameters.extrusion;if(n)return M.forEach(e=>{ae(e,n,t,a,r)}),n}function ne(e,t,a,r){let n=e.updatedPathSnapping;if(n)return P.forEach(e=>{ae(e,n,t,a,r)}),n}function oe(e,t,a,r,n){let o=e.getValue(r);if(void 0!==o){if("colors"===r)return function(e,t,a,r="colors"){if(!e.hasValue(r)||!(r in a))return;let n=[],o=e.getValue(r),i=t?t[r]:o.map(e=>e.toArray()),s=a[r];for(let e=0;e<o.length;++e){let t=[...i[e]],a=[...s[e]];D.isEqual(t,a)||n.push({update:r=>{o[e].fromArray(D.lerp(t,a,r))},start:()=>{o[e].fromArray(t)},end:()=>{o[e].fromArray(a)}})}return n.length?n:void 0}(e,t,a,r);if(Array.isArray(o))return"steps"===r?function(e,t,a,r="steps"){if(!e.hasValue(r)||!(r in a))return;let n=[],o=e.getValue(r),i=t?t[r]:o,s=a[r];return w(i,s)||n.push({update:t=>{let a=[...o];for(let e=0;e<o.length;++e){let r=i[e],n=s[e];a[e]=q.lerp(r,n,t)}e.setValue(r,a)},start:()=>{e.setValue(r,i)},end:()=>{e.setValue(r,s)}}),n.length?n:void 0}(e,t,a,r):void 0;if("number"==typeof o)return function(e,t,a,r,n){if(!e.hasValue(r)||!(r in a))return;let o=t?t[r]:e.getValue(r),i=a[r],s="string"==typeof o?Number(n.getVariable(o)??0):o,l="string"==typeof i?Number(n.getVariable(i)??0):i;return{update:t=>{e.setValue(r,q.lerp(s,l,t))},start:()=>{e.setValue(r,s)},end:()=>{e.setValue(r,l)}}}(e,t,a,r,n);if("boolean"!=typeof o){if(o instanceof G)return function(e,t,a,r){if(!e.hasValue(r)||!(r in a))return;let n=e.getValue(r),o=t?(new G).fromArray(t[r]):n.clone(),i=(new G).fromArray(a[r]);return o.equals(i)?void 0:{update:e=>{n.lerpVectors(o,i,e)},start:()=>{n.copy(o)},end:()=>{n.copy(i)}}}(e,t,a,r);if(o instanceof I)return function(e,t,a,r,n){if(!e.hasValue(r)||!(r in a))return;let o=e.getValue(r),i=t?t[r]:void 0,s=a[r],l=i?Z(new I,i,n):o.clone(),u=Z(new I,s,n);return l.equals(u)?void 0:{update:e=>{o.lerpVectors(l,u,e)},start:()=>{o.copy(l)},end:()=>{o.copy(u)}}}(e,t,a,r,n);if(o instanceof m)return function(e,t,a,r,n){if(!e.hasValue(r)||!(r in a))return;let o=t?t[r]:void 0,i=a[r],s=e.getValue(r),l=o?"string"==typeof o?n.color(o).clone():(new $).setRGB(o.r,o.g,o.b):s.clone(),u="string"==typeof i?n.color(i).clone():new m(i.r,i.g,i.b,i.a);if(l.equals(u))return;let d=s.clone();return{update:t=>{e.getValue(r)!==d&&e.setValue(r,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,a,r,n);if(o instanceof $)return function(e,t,a,r,n){if(!e.hasValue(r)||!(r in a))return;let o=t?t[r]:void 0,i=a[r],s=e.getValue(r),l=o?"string"==typeof o?n.color(o).clone():(new $).setRGB(o.r,o.g,o.b):s.clone(),u="string"==typeof i?n.color(i).clone():(new $).setRGB(i.r,i.g,i.b);if(l.equals(u))return;let d=s.clone();return{update:t=>{e.getValue(r)!==d&&e.setValue(r,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,a,r,n);if("isTexture"in o)return function(e,t,a,r="texture"){if(!e.hasValue(r)||!(r in a))return;let n=e.getNode("rotation"),o=t?.[r]?.rotation??0,i=a[r]?.rotation??0;if(n&&o!==i)return{update:e=>{n.value=q.lerp(o,i,e)*q.DEG2RAD},start:()=>{n.value=o*q.DEG2RAD},end:()=>{n.value=i*q.DEG2RAD}};let s=e.getNode("mat"),l=s&&"function"==typeof s.updateMatrix?s:e.getValue("mat");if(!l)return;let u=t?t[r]:l,d=a[r],p=[...u.repeat],c=[...u.offset],h=[...d.repeat],f=[...d.offset],g=u.rotation??0,m=d.rotation??0;return R.isEqual(p,h)&&R.isEqual(c,f)&&g===m?void 0:{update:e=>{l.repeat=R.lerp(p,h,e),l.offset=R.lerp(c,f,e),l.rotation=q.lerp(g,m,e),l.updateMatrix()},start:()=>{l.repeat=[...p],l.offset=[...c],l.rotation=g,l.updateMatrix()},end:()=>{l.repeat=[...h],l.offset=[...f],l.rotation=m,l.updateMatrix()}}}(e,t,a,r)}}}function ie(e,t,a,r){let n=[],o=p(a,r)||!!t.layers&&p(t,r);n.push(function(e,t){return{update:()=>{e.transparent=t}}}(e,o)),function(e,t,a){let r=e.ensureRainbowNoiseCompiled;if("function"==typeof r)for(let n of[...e.layers]){if("rainbow"!==n.type)continue;let o=t.layers?.data(n.uuid),i=a.layers.data(n.uuid);(c(o?.noiseStrength)||c(i?.noiseStrength))&&r.call(e,n.uuid)}}(e,t,a);for(let o of e.layers){let e=t.layers?.data(o.uuid),i=a.layers.data(o.uuid);if(!i||"light"!==o.type&&(!(o.visible??1)||!(i.visible??1)))continue;let s=h[o.type]??[],l=o.getNames().filter(e=>!s.includes(e)&&!k.some(t=>e.includes(t)));for(let t of l)try{let a=oe(o,e,i,t,r);a&&(Array.isArray(a)?n.push(...a):n.push(a))}catch(e){console.error(`lerpMaterial: unexpected material layer for ${t}`,e)}}return n}function se(e,t,a,r,n,o){let i=oe(t,a,r,e,o);!i||(Array.isArray(i)?i.forEach(e=>e.update(n)):i.update(n))}new U;var le=new I,ue=new U;function de(e,t,a,r){let n=r.cloner?.parameters;if(n){ae("count",n,e,t,a),n.count=Math.trunc(n.count);for(let r of x)ae(r,n.radial,e.radial,t.radial,a);for(let r of B)ae(r,n.linear,e.linear,t.linear,a);for(let r of O)ae(r,n.grid,e.grid,t.grid,a);for(let r of A)ae(r,n.toObject,e.toObject,t.toObject,a);return n}}function pe(e,t,a,r){let n=r.cloner?.parameters;if(n){for(let r of C)ae(r,n.randomnessObject,e.randomnessObject,t.randomnessObject,a);return n}}function ce(r,n,o,p,c){let h=[];return r.data.visible&&h.push(...function(e,t,a,r,n){let o,i,u,d,p,c,h,f,g=[];if(v(e)?(o=K("position",e,t,a,n),o&&g.push(o),u=J("rotation",e,t,a,n),u&&g.push(u),d=K("shear",e,t,a,n),d&&g.push(d)):(f={slide:t.pathSnapping?.slide??e.updatedPathSnapping?.slide??e.dataPatched.pathSnapping?.slide??0,offset:t.pathSnapping?.offset??e.updatedPathSnapping?.offset??e.dataPatched.pathSnapping?.offset??0},c=J("slide",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,a.pathSnapping??e.dataPatched.pathSnapping,n),c&&g.push(c),h=J("offset",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,a.pathSnapping??e.dataPatched.pathSnapping,n),h&&g.push(h),!c&&!h&&(o=X("position",e,t,a,n),o&&g.push(o),i=X("scale",e,t,a,n),i&&g.push(i),u=function(e,t,a,r,n){let o=t?.rotation?t.rotation.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*q.DEG2RAD):void 0,i=a.rotation?.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*q.DEG2RAD);if(!i)return;let s=o?(new I).fromArray(o):(new I).setFromEuler(e.rotation),l=(new I).fromArray(i);if(s.equals(l))return;let u=le.subVectors(l,s);if(r&&u.toArray().every(e=>Math.abs(e)<2*Math.PI)){let t=(new z).setFromEuler(ue.setFromVector3(s)),a=(new z).setFromEuler(ue.setFromVector3(l));return{update:r=>{!function(e,t,a,r){if(0===r)return a.copy(e);if(1===r)return a.copy(t);let n=e.w*t.w+e.x*t.x+e.y*t.y+e.z*t.z;if(n>=1)return a.copy(e);let o=1-n*n;if(o<=Number.EPSILON){let n=1-r;return a.w=n*e.w+r*t.w,a.x=n*e.x+r*t.x,a.y=n*e.y+r*t.y,a.z=n*e.z+r*t.z,a.normalize(),a}let i=Math.sqrt(o),s=Math.atan2(i,n),l=Math.sin((1-r)*s)/i,u=Math.sin(r*s)/i;a.w=e.w*l+t.w*u,a.x=e.x*l+t.x*u,a.y=e.y*l+t.y*u,a.z=e.z*l+t.z*u}(t,a,e.quaternion,r)},start:()=>{e.rotation.setFromVector3(s)},end:()=>{e.rotation.setFromVector3(l)}}}return{update:t=>{le.lerpVectors(s,l,t),e.rotation.setFromVector3(le)},start:()=>{e.rotation.setFromVector3(s)},end:()=>{e.rotation.setFromVector3(l)}}}(e,t,a,r,n),u&&g.push(u),p=function(e,t,a,r){let n=a[e]?a[e]:void 0,o=r[e];if(!o)return;let i=t[e],s=n?(new F).fromArray(n):i.clone(),l=new I,u=new z,d=new I;s.decompose(l,u,d);let p=(new F).fromArray(o),c=new I,h=new z,f=new I;return p.decompose(c,h,f),s.equals(p)?void 0:{update:e=>{Q.slerpQuaternions(u,h,e),_.lerpVectors(l,c,e),L.lerpVectors(d,f,e),i.compose(_,Q,L)},start:()=>{i.compose(l,u,d)},end:()=>{i.compose(c,h,f)}}}("hiddenMatrix",e,t,a),p&&g.push(p))),o||i||u||p||c||h){let a=v(e)?()=>{e.updateWorldMatrix(!0,!1,!0),e.resetBBoxNeedsUpdate()}:()=>{e.updateMatrix(),e.hasNonUniformScale&&(e.updateMatrixWorld(),e.updateMatrixWorldRigid()),e.parent?.matrixWorldFusedFalse&&(e.matrixWorld.multiplyMatrices(e.parent.matrixWorldFusedFalse,e.matrix),e.matrixWorldNeedsUpdate=!1),s(e)&&l(e.parent)&&e.invalidateDownstreamBooleanData(!0),e.updatePathSnapping(Object.assign({},t.pathSnapping,f))};g.push({update:a,start:a,end:a})}return g}(r,n,o,c,p.shared)),v(r)?h.push(...function(r,n,o,i,s){let l,u,d,p,c,h,f,g,m,y,b,v,w,j,S,D=[];if("width"in r&&(l=J("width",r,n,o,s),l&&D.push(l)),"height"in r&&(u=J("height",r,n,o,s),u&&D.push(u)),r instanceof e||r instanceof a){let t={...n.fill},a={...o.fill};void 0!==t.enabled&&t.enabled!==a.enabled&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.fill.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),a.enabled||Object.assign(a,{enabled:!0,color:{...a.color,a:0}})),d=ee("color",r.fill,t,a,s),d&&D.push(d)}if(r instanceof e){let t={...n.stroke},a={...o.stroke};(t.enabled||a.enabled)&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.stroke.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),a.enabled||Object.assign(a,{enabled:!0,color:{...a.color,a:0}})),p=ee("color",r.stroke,t,a,s),p&&D.push(p),c=J("thickness",r.stroke,t,a,s),c&&D.push(c)}if(r instanceof e){let t={...n.dropShadow},a={...o.dropShadow};(t.enabled||a.enabled)&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.dropShadow.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),a.enabled||Object.assign(a,{enabled:!0,color:{...a.color,a:0}})),h=ee("color",r.dropShadow,t,a,s),h&&D.push(h),f=J("blurRadius",r.dropShadow,t,a,s),f&&D.push(f),m=J("spread",r.dropShadow,t,a,s),m&&D.push(m),g=K("offset",r.dropShadow,t,a,s),g&&D.push(g)}if(r instanceof e){let t={...n.innerShadow},a={...o.innerShadow};(t.enabled||a.enabled)&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.innerShadow.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),a.enabled||Object.assign(a,{enabled:!0,color:{...a.color,a:0}})),y=ee("color",r.innerShadow,t,a,s),y&&D.push(y),b=J("blurRadius",r.innerShadow,t,a,s),b&&D.push(b),w=J("spread",r.innerShadow,t,a,s),w&&D.push(w),v=K("offset",r.innerShadow,t,a,s),v&&D.push(v)}if(r instanceof e||r instanceof a){let t={...n.backgroundBlur},a={...o.backgroundBlur};(t.enabled||a.enabled)&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.backgroundBlur.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),a.enabled||Object.assign(a,{enabled:!0,radius:0})),j=J("radius",r.backgroundBlur,t,a,s),j&&D.push(j)}if(r instanceof e){let t={...n.layerBlur},a={...o.layerBlur};(t.enabled||a.enabled)&&(D.push(function(t){return{update:()=>{t instanceof e&&(t.layerBlur.enabled=!0)}}}(r)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),a.enabled||Object.assign(a,{enabled:!0,radius:0})),S=J("radius",r.layerBlur,t,a,s),S&&D.push(S)}if(r instanceof a||r instanceof t){let e=H("cornerRadius",r,n,o,s);e&&D.push(e)}return D}(r,n,o,0,p.shared)):(r.data.visible&&h.push(...function(e,t,a,r){let n=[];if(!("cloner"in a)||!e.cloner)return n;let o=e.cloner,i="cloner"in t?t.cloner:{},s=a.cloner;V.forEach(e=>{let t;t="count"===e?J("count",o.parameters,i,s,r.shared,!0):te(e,o.parameters,i??{},s,r.shared),t&&n.push(t)});let l=function(e,t,a,r){if("radial"!==e.parameters.type)return;let n=t.radial,o=a.radial;if(!o)return;let i=e.parameters.radial,s=[];return x.forEach(e=>{let t=te(e,i,n??{},o,r);t&&s.push(t)}),s}(o,i,s,r.shared);l?.length&&n.push(...l);let u=function(e,t,a,r){if("linear"!==e.parameters.type)return;let n=t.linear,o=a.linear;if(!o)return;let i=[],s=e.parameters.linear;return B.forEach(e=>{let t=te(e,s,n??{},o,r);t&&i.push(t)}),i}(o,i,s,r.shared);u?.length&&n.push(...u);let d=function(e,t,a,r){if("grid"!==e.parameters.type)return;let n=t.grid,o=a.grid;if(!o)return;let i=[],s=e.parameters.grid;return O.forEach(e=>{let t;t="count"===e?H(e,s,n??{},o,r,!0):te(e,s,n??{},o,r),t&&i.push(t)}),i}(o,i,s,r.shared);d?.length&&n.push(...d);let p=function(e,t,a,r){if("toObject"!==e.parameters.type)return;let n=t.toObject,o=a.toObject;if(!o)return;let i=[],s=e.parameters.toObject;return A.forEach(e=>{let t;t="count"===e?J(e,s,n??{},o,r,!0):te(e,s,n??{},o,r),t&&i.push(t)}),i}(o,i,s,r.shared);p?.length&&n.push(...p);let c=function(e,t,a,r){if(!e.parameters.randomness)return;let n=t.randomnessObject,o=a.randomnessObject;if(!o)return;let i=[],s=e.parameters.randomnessObject;return C.forEach(e=>{let t=te(e,s,n??{},o,r);t&&i.push(t)}),i}(o,i,s,r.shared);return c?.length&&n.push(...c),n.length&&n.push({update:()=>{o.update(r)}}),n}(r,n,o,p)),r instanceof y?(r instanceof g&&r.data.visible&&h.push(...function(e,t,a,r){let n=[];if(!("geometry"in a))return n;let o=e.geometry.userData.parameters,i="geometry"in t?t.geometry:{},s=a.geometry;if(e instanceof d){let t=function(e,t,a,r){if(void 0===a.scaleBaked)return;let n=(t.scaleBaked??e.data.geometry.scaleBaked).map(e=>"string"==typeof e?Number(r.shared.getVariable(e)??0):e),o=a.scaleBaked.map(e=>"string"==typeof e?Number(r.shared.getVariable(e)??0):e);if(S.isEqual(n,o))return;let i=[];return i.push({update:t=>{e.updateGeometryInteractions({scaleBaked:[q.lerp(n[0],o[0],t),q.lerp(n[1],o[1],t),q.lerp(n[2],o[2],t)]},r.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(r)},start:()=>{e.updateGeometryInteractions({scaleBaked:n},r.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(r)},end:()=>{e.updateGeometryInteractions({scaleBaked:o},r.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(r)}}),i}(e,i,s,r);t&&n.push(...t)}else{let t={};if(Object.assign(t,j(o,N),j(i,N)),N.forEach(e=>{let a=te(e,t,i,s,r.shared);a&&n.push(a)}),b(e)){Object.assign(t,{extrusion:{...o.extrusion}});let e=function(e,t,a,r){if(!a.extrusion)return;let n=e.extrusion,o=t.extrusion??{},i=a.extrusion,s=[];return M.forEach(e=>{let t=te(e,n,o,i,r);t&&s.push(t)}),s}(t,i,s,r.shared);e&&n.push(...e)}n.length&&n.push({update:a=>{e.updateGeometryInteractions(t,r.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(r)},start:a=>{e.updateGeometryInteractions(t,r.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(r)},end:a=>{e.updateGeometryInteractions(t,r.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(r)}})}return n}(r,n,o,p)),r.data.visible&&!(r instanceof f&&r.materialOverride)&&h.push(...function(e,t,a,r){let n=[];if(Array.isArray(e.material)){if(!("materials"in a)||!a.materials)return n;let o="materials"in t&&t.materials?t.materials:[],i=a.materials;e.material.forEach((e,t)=>{if(!i[t])return;let a=o[t]??{},s=i[t];"string"==typeof a||"string"==typeof s||n.push(...ie(e,a,s,r))})}else{if(!("material"in a)||!a.material)return n;let o="material"in t&&t.material?t.material:{},i=a.material;if("string"==typeof o||"string"==typeof i)return n;n.push(...ie(e.material,o,i,r))}return n}(r,n,o,p.shared))):i.is(r)?r.data.visible&&h.push(...function(e,t,a,r){let n=[];if(void 0!==a.intensity){let o=J("intensity",e,t,a,r);o&&n.push(o)}if(void 0!==a.color){let o=function(e,t,a,r,n){let o=a[e]?a[e]:void 0,i=r[e];if(!i)return;let s=t[e],l=o?"string"==typeof o?n.getColor(o).clone():(new $).setRGB(o.r,o.g,o.b):s.clone(),u="string"==typeof i?n.getColor(i).clone():(new $).setRGB(i.r,i.g,i.b);if(l.equals(u))return;let d=s.clone();return{update:a=>{d.lerpColors(l,u,a),t[e]?.copy?.(d)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}("color",e,t,a,r);o&&n.push(o)}return n}(r,n,o,p.shared)):r instanceof u&&h.push(...function(e,t,a,r){let n=[],o="OrthographicCamera"===e.cameraType?t.orthographic?.zoom:t.perspective?.zoom,i="OrthographicCamera"===e.cameraType?a.orthographic?.zoom:a.perspective?.zoom;if(void 0!==i){let t=o??e.zoom,a=i;t!==a&&n.push({update:r=>{e.zoom=q.lerp(t,a,r),e.updateProjectionMatrix()},start:()=>{e.zoom=t,e.updateProjectionMatrix()},end:()=>{e.zoom=a,e.updateProjectionMatrix()}})}if(void 0!==a.targetOffset){let o=J("targetOffset",e,t,a,r);o&&n.push(o)}return n}(r,n,o,p.shared))),h.length?{update:e=>{h.forEach(t=>t.update(e))},start:e=>{h.forEach(t=>t.start?.(e))},end:e=>{h.forEach(t=>t.end?.(e))}}:void 0}function he(e,t){return{position(t){Object.assign(e.position,t),(void 0!==t.x||void 0!==t.y||void 0!==t.z)&&(e.updateMatrix(),e.resetBBoxNeedsUpdate(),e instanceof g&&e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"}))},rotation(t){let a=Object.keys(t)[0];e.rotation[a]=t[a]*q.DEG2RAD,(void 0!==t.x||void 0!==t.y||void 0!==t.z)&&(e.updateMatrix(),e.resetBBoxNeedsUpdate(),e instanceof g&&e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"}))},scale(t){Object.assign(e.scale,t),(void 0!==t.x||void 0!==t.y||void 0!==t.z)&&(e.updateMatrix(),e.resetBBoxNeedsUpdate(),e instanceof g&&e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"}))},shapeSize(a){e instanceof g&&(e.userData.value={...e.userData.value,...a},(void 0!==a.x||void 0!==a.y||void 0!==a.z)&&(e.updateGeometryInteractions({width:e.userData.value.x,height:e.userData.value.y,depth:e.userData.value.z},t.shared),e.resetBBoxNeedsUpdate(),e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"})))},material(a,r,n){n&&(Object.entries(n).forEach(([a,{start:n,end:o,t:i}])=>{let s=r.getValue(a);e instanceof y&&!Array.isArray(e.material)&&"alpha"===a&&"number"==typeof s&&s>0&&(e.material.transparent=!0),void 0!==s&&se(a,r,n,o,i,t.shared)}),e.dispatchEvent({type:"requestRender"}))},opacity(a){if(e instanceof y&&!Array.isArray(e.material)){let r=e.material.getLayersOfType("light")[0];if(void 0===r)return;e.material.transparent=!0,se("alphaOverride",r,{alphaOverride:a},{alphaOverride:a+1},0,t.shared),e.dispatchEvent({type:"requestRender"})}},light(t,a){(e instanceof n||e instanceof r||e instanceof o)&&(e[t]=a,e.dispatchEvent({type:"requestRender"}))},cloner(e){e.cloner?.update(t),e instanceof g&&e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"})},pathExtrusion(e,a){e.geometry.userData.parameters.extrusion={...e.geometry.userData.parameters.extrusion,...a},e.updateGeometryInteractions({extrusion:{...e.geometry.userData.parameters.extrusion}},t.shared),e.resetBBoxNeedsUpdate(),e.invalidateDownstreamBooleanData(),e.dispatchEvent({type:"requestRender"})},pathSnapping(t){e.userData.pathSnapping={...e.userData.pathSnapping,...t},e.updatePathSnapping(e.userData.pathSnapping),e.dispatchEvent({type:"requestRender"})}}}var fe={type:"beginState"};function ge(e){let t;if(5===e.easing){let{control1:a,control2:r}=e;t=`cubicBezier(\n\t\t\t${a[0]}, ${a[1]}, ${r[0]}, ${r[1]}\n\t\t)`}else if(6===e.easing){let{mass:a,stiffness:r,damping:n,velocity:o}=e;t=`spring( ${a}, ${r}, ${n}, ${o} )`}else{let a;switch(e.easing){case 0:default:a=E.linear;break;case 1:a=E.ease;break;case 2:a=E.easeIn;break;case 3:a=E.easeOut;break;case 4:a=E.easeInOut}let[r,n,o,i]=a;t=`cubicBezier( ${r}, ${n}, ${o}, ${i} )`}return{duration:Math.max(e.duration,1e-4),easing:t}}function me(e){let t={delay:0,loop:-1===e.repeat||e.repeat+1};if(0===e.repeat)t.direction="normal",t.rewind=!1;else switch(e.direction){case"pingpong":t.direction="alternate",t.rewind=!1;break;case"pingpong-rewind":t.direction="alternate",t.rewind=!0;break;default:t.direction="normal",t.rewind=!1}switch(t.delay=0,t.endDelay=0,t.startOnceDelay=0,t.pingPongDelayCorrection=0,t.pingPongEndDelayCorrection=0,e.delayDirection){case"start-once":t.startOnceDelay=e.delay;break;case"start":t.delay=e.delay;break;case"end":t.endDelay=e.delay;break;case"start-end":case void 0:t.delay=e.delay,t.endDelay=e.delay}return"alternate"===t.direction&&(t.delay/=2,t.endDelay/=2,"start"===e.delayDirection?(t.pingPongDelayCorrection=t.delay,"number"==typeof t.loop&&t.loop%2==0&&(t.pingPongEndDelayCorrection=t.delay)):"end"===e.delayDirection?"number"==typeof t.loop&&t.loop%2!=0&&(t.pingPongEndDelayCorrection=t.endDelay):"start-end"===e.delayDirection&&(t.pingPongDelayCorrection=t.delay,t.pingPongEndDelayCorrection=t.endDelay)),t}var ye={type:"completeState",isfromEntity:!1};function be(e,t){let a,r;if("string"==typeof t?(a=t,r=e.states?.[a]):null===t&&(a=null,r=e.data),void 0!==a&&void 0!==r)return{id:a,data:r}}var ve=class{constructor(e,t,a,r,n,o,i){if(this.object=e,this.data=r,this.sharedAssets=n,this.allowSlerp=o,this.page=i,this.targets={t:0},this.firstLoop=!0,this._changeBegan=!1,this._changeCompleted=!0,this.onChange=()=>{this.callback&&(this.callback.update(this.targets.t),this.object.requestRender()),0===this.targets.t||1===this.targets.t?this._changeCompleted||(this._changeCompleted=!0,this._changeBegan=!1,this.onChangeComplete()):(this._changeCompleted&&(this._changeCompleted=!1),this._changeBegan||(this._changeBegan=!0,this.onChangeBegin()))},this.onChangeBegin=()=>{this.object.reversibleToState=this.to.id;let e=this.targets.t>.5?this.from.id:this.to.id;this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=e,this.object.dispatchEvent({type:"beginState",state:e}),v(this.object)||this.object.traverseEntity(e=>{e!==this.object&&e instanceof u&&e.dispatchEvent(fe)})},this.onChangeComplete=()=>{this.firstLoop&&(this.onFirstLoop(),this.firstLoop=!1),this.object.reversibleToState=this.to.id;let e=this.targets.t<.5?this.from.id:this.to.id;this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=e,this.object.dispatchEvent({type:"completeState",state:e}),v(this.object)||this.object.traverseEntity(e=>{e!==this.object&&e instanceof u&&e.dispatchEvent(ye)})},this.onFirstLoop=()=>{this.useCurrentState&&(this.callback=ce(this.object,this.from.data,this.to.data,{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp))},void 0===t){let e=be(this.object,this.object.currentState===a?this.object.prevState:this.object.currentState);if(!e)throw new Error("Missing property");this.from=e}else{let e=be(this.object,t);if(!e)throw new Error("Missing property");this.from=e}if(void 0===a)throw new Error("Missing property");{let e=be(this.object,a);if(!e)throw new Error("Missing property");this.to=e}this.useCurrentState=void 0===t||void 0===a,this.params={targets:this.targets,t:1,autoplay:!1,...me(r),...ge(r),change:this.onChange},this.callback=ce(this.object,void 0===t?{}:this.from.data,void 0===a?{}:this.to.data,{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp)}get changeBegan(){return this._changeBegan}get changeCompleted(){return this._changeCompleted}};export{re as a,ne as b,de as c,pe as d,he as e,fe as f,ge as g,me as h,ye as i,be as j,ve as k};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{a as e}from"./runtime-chunk-WILQUYJ4.js";import{ea as t}from"./runtime-chunk-HKFPEE5F.js";import{h as a}from"./runtime-chunk-A7IMJ4FJ.js";import{c as s,e as o,f as i}from"./runtime-chunk-2PT2WH66.js";import{b as r}from"./runtime-chunk-VGEECQH4.js";import{Ea as n,w as d}from"./runtime-chunk-D3BWEUN6.js";import{Fc as c}from"./runtime-chunk-BVVSZMXD.js";var l=new c;function u(e,t,s=!1){let o=[],c=a=>{let s=a.data;delete a.states,a.currentState=null,a.reversibleToState=null,a.currentTransitionEvent=null;for(let e of s.states){let t={...e.data};a.states||(a.states={}),a.states[e.id]=r.patch(s,t)}p(e.scene,a,null,t,void 0!==s.events.find(e=>"Follow"===e.data.type||"LookAt"===e.data.type)),f(e)};e.scene.traverse2D(c),e.traverseChildren(r=>{if(s&&(r.rigidBody?.setTranslation(r.position0,!0),r.rigidBody?.setRotation(r.rotation0,!0),r.rigidBody?.setLinvel(l,!0),r.rigidBody?.setAngvel(l,!0)),!a.is(r))return;let u=r.uuid,f=r.data;if(delete r.states,r.uuid===d)return;let m=!1;o.some(t=>e.scene.find(u)?.isDescendantOf(t))?m=!0:!0===f.physics?.fusedBody&&"dynamic"===f.physics.rigidBody&&o.push(u),r.data=f,r.currentState=null,r.reversibleToState=null,r.currentTransitionEvent=null;for(let t of f.states){let a={...t.data};!0===e.data.globalPhysics.usePhysics&&f.physics&&("dynamic"===f.physics.rigidBody||m)&&(void 0!==t.data.position&&delete a.position,void 0!==t.data.rotation&&delete a.rotation,void 0!==t.data.hiddenMatrix&&delete a.hiddenMatrix),r.states||(r.states={}),r.states[t.id]=n.patch(f,a)}p(e.scene,r,null,t,void 0!==f.events.find(e=>"Follow"===e.data.type||"LookAt"===e.data.type)),i(r)&&r.frame&&(r.frame.traverse(e=>c(e)),r.uiCanvas?.applySize())}),f(e),e.frame&&(e.frame.traverse(e=>c(e)),e.uiCanvas?.applySize())}function f(e){e.traverseEntity(t=>{for(let a of t.data.events){let t=[];switch(a.data.type){case"Follow":case"MouseHover":case"Scroll":case"MouseDown":case"MouseUp":case"MousePress":case"KeyUp":case"KeyDown":case"KeyPress":case"Collision":t.push(...a.data.actions);break;case"GameControl":for(let e of Object.values(a.data.gameActions))t.push(...e);break;case"DragDrop":t.push(...a.data.dragDropActions.drag,...a.data.dragDropActions.drop);break;case"Conditional":t.push(...a.data.inActions,...a.data.outActions)}for(let a of t)if("Create"===a.data.type&&"Yes"===a.data.hideBase){let t=e.scene.find(a.data.object);t&&(t.visible=!1)}}})}function p(a,i,r,n,d=!1){if(a.markShadowsDirty(),i instanceof t&&!s(i)&&i.removeInteractionGeometry(n),o(i)?i.changeSelectedState(r,{shared:n},d):i.changeSelectedState(r,{scene:a,shared:n},d),i instanceof t&&i.updateGeometryGroupsIfNeeded(),i instanceof e&&i.updateCameraState(i.dataPatched,{scene:a,shared:n}),!o(i)){if(i.cloner){let e=!1;for(let t of i.cloner.children)t.playModeVisible=void 0,void 0!==t.transformOverride&&(t.transformOverride=void 0,e=!0);e&&a.addPendingUpdateCloner(i),i.cloner.syncInstanceMatrices()}i.updateVisible()}}export{u as a};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{h as e}from"./runtime-chunk-4KZXQGUQ.js";var t=null;function n(e){t=e}function r(){return t}function a(t){let n=t?.tracks.filter(e=>"vector"===e.ValueTypeName||"quaternion"===e.ValueTypeName).map(e=>e.times.length);if(n?.length){let t=e(n);return t&&t>2?t:2}return 2}export{a,n as b,r as c};
@@ -1 +0,0 @@
1
- )@d��i�m*�0�&��˥�`���N��f��v�k�tW���D d��-1B��8�GH*���,�V���N����ҫ[�;���t��
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- var e={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,timelineChangeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0,rewind:!0},n={duration:1e3,delay:0,endDelay:0,startOnceDelay:0,pingPongDelayCorrection:0,pingPongEndDelayCorrection:0,easing:"easeOutElastic(1, .5)",round:0},r=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],t={CSS:{},springs:{}};function a(e,n,r){return Math.min(Math.max(e,n),r)}function o(e,n){return e.indexOf(n)>-1}function i(e,n){return e.apply(null,n)}var u={arr:function(e){return Array.isArray(e)},obj:function(e){return o(Object.prototype.toString.call(e),"Object")},pth:function(e){return u.obj(e)&&Object.prototype.hasOwnProperty.call(e,"totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return!("isNode"in e)&&(e.nodeType||u.svg(e))},str:function(e){return"string"==typeof e},fnc:function(e){return"function"==typeof e},und:function(e){return typeof e>"u"},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return u.hex(e)||u.rgb(e)||u.hsl(e)},key:function(r){return!Object.prototype.hasOwnProperty.call(e,r)&&!Object.prototype.hasOwnProperty.call(n,r)&&"targets"!==r&&"keyframes"!==r}};function c(e){var n=/\(([^)]+)\)/.exec(e);return n?n[1].split(",").map(function(e){return parseFloat(e)}):[]}function l(e,n){var r=c(e),o=a(u.und(r[0])?1:r[0],.1,100),i=a(u.und(r[1])?100:r[1],.1,100),l=a(u.und(r[2])?10:r[2],.1,100),s=a(u.und(r[3])?0:r[3],.1,100),f=Math.sqrt(i/o),d=l/(2*Math.sqrt(i*o)),p=d<1?f*Math.sqrt(1-d*d):0,g=d<1?(d*f-s)/p:-s+f;function v(e){var r=n?n*e/1e3:e;return r=d<1?Math.exp(-r*d*f)*(1*Math.cos(p*r)+g*Math.sin(p*r)):(1+g*r)*Math.exp(-r*f),0===e||1===e?e:1-r}return n?v:function(){var n=t.springs[e];if(n)return n;for(var r=1/6,a=0,o=0;;)if(1===v(a+=r)){if(++o>=16)break}else o=0;var i=a*r*1e3;return t.springs[e]=i,i}}function s(e){return void 0===e&&(e=10),function(n){return Math.ceil(a(n,1e-6,1)*e)*(1/e)}}var f,d,p=function(){var e=.1;function n(e,n){return 1-3*n+3*e}function r(e,n){return 3*n-6*e}function t(e){return 3*e}function a(e,a,o){return((n(a,o)*e+r(a,o))*e+t(a))*e}function o(e,a,o){return 3*n(a,o)*e*e+2*r(a,o)*e+t(a)}return function(n,r,t,i){if(0<=n&&n<=1&&0<=t&&t<=1){var u=new Float32Array(11);if(n!==r||t!==i)for(var c=0;c<11;++c)u[c]=a(c*e,n,t);return function(c){return n===r&&t===i||0===c||1===c?c:a(function(r){for(var i=0,c=1;10!==c&&u[c]<=r;++c)i+=e;--c;var l=i+(r-u[c])/(u[c+1]-u[c])*e,s=o(l,n,t);return s>=.001?function(e,n,r,t){for(var i=0;i<4;++i){var u=o(n,r,t);if(0===u)return n;n-=(a(n,r,t)-e)/u}return n}(r,l,n,t):0===s?l:function(e,n,r,t,o){var i,u,c=0;do{(i=a(u=n+(r-n)/2,t,o)-e)>0?r=u:n=u}while(Math.abs(i)>1e-7&&++c<10);return u}(r,i,i+e,n,t)}(c),r,i)}}}}(),g=(f={linear:function(){return function(e){return e}}},d={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){for(var n,r=4;e<((n=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((3*n-2)/22-e,2)}},Elastic:function(e,n){void 0===e&&(e=1),void 0===n&&(n=.5);var r=a(e,1,10),t=a(n,.1,2);return function(e){return 0===e||1===e?e:-r*Math.pow(2,10*(e-1))*Math.sin((e-1-t/(2*Math.PI)*Math.asin(1/r))*(2*Math.PI)/t)}}},["Quad","Cubic","Quart","Quint","Expo"].forEach(function(e,n){d[e]=function(){return function(e){return Math.pow(e,n+2)}}}),Object.keys(d).forEach(function(e){var n=d[e];f["easeIn"+e]=n,f["easeOut"+e]=function(e,r){return function(t){return 1-n(e,r)(1-t)}},f["easeInOut"+e]=function(e,r){return function(t){return t<.5?n(e,r)(2*t)/2:1-n(e,r)(-2*t+2)/2}}}),f);function v(e,n){if(u.fnc(e))return e;var r=e.split("(")[0],t=g[r],a=c(e);switch(r){case"spring":return l(e,n);case"cubicBezier":return i(p,a);case"steps":return i(s,a);default:return i(t,a)}}function h(e){try{return document.querySelectorAll(e)}catch{return}}function m(e,n){for(var r=e.length,t=arguments.length>=2?arguments[1]:void 0,a=[],o=0;o<r;o++)if(o in e){var i=e[o];n.call(t,i,o,e)&&a.push(i)}return a}function y(e){return e.reduce(function(e,n){return e.concat(u.arr(n)?y(n):n)},[])}function b(e){return u.arr(e)?e:(u.str(e)&&(e=h(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function w(e,n){return e.some(function(e){return e===n})}function x(e){var n={};for(var r in e)n[r]=e[r];return n}function C(e,n){var r=x(e);for(var t in e)r[t]=Object.prototype.hasOwnProperty.call(n,t)?n[t]:e[t];return r}function M(e,n){var r=x(e);for(var t in n)r[t]=u.und(e[t])?n[t]:e[t];return r}function D(e){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(n)return n[1]}function P(e,n){return u.fnc(e)?e(n.target,n.id,n.total):e}function O(e,n){return e.getAttribute(n)}function k(e,n,r){if(w([r,"deg","rad","turn"],D(n)))return n;var a=t.CSS[n+r];if(!u.und(a))return a;var o=document.createElement(e.tagName),i=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;i.appendChild(o),o.style.position="absolute",o.style.width=100+r;var c=100/o.offsetWidth;i.removeChild(o);var l=c*parseFloat(n);return t.CSS[n+r]=l,l}function E(e,n,r){if(n in e.style){var t=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=e.style[n]||getComputedStyle(e).getPropertyValue(t)||"0";return r?k(e,a,r):a}}function I(e,n){return u.dom(e)&&!u.inp(e)&&(O(e,n)||u.svg(e)&&e[n])?"attribute":u.dom(e)&&w(r,n)?"transform":u.dom(e)&&"transform"!==n&&E(e,n)?"css":null!=e[n]?"object":void 0}function B(e){if(u.dom(e)){for(var n,r=e.style.transform||"",t=/(\w+)\(([^)]*)\)/g,a=new Map;n=t.exec(r);)a.set(n[1],n[2]);return a}}function A(e,n,r,t){switch(I(e,n)){case"transform":return function(e,n,r,t){var a=o(n,"scale")?1:0+function(e){return o(e,"translate")||"perspective"===e?"px":o(e,"rotate")||o(e,"skew")?"deg":void 0}(n),i=B(e).get(n)||a;return r&&(r.transforms.list.set(n,i),r.transforms.last=n),t?k(e,i,t):i}(e,n,t,r);case"css":return E(e,n,r);case"attribute":return O(e,n);default:return e[n]||0}}function S(e,n){var r=/^(\*=|\+=|-=)/.exec(e);if(!r)return e;var t=D(e)||0,a=parseFloat(n),o=parseFloat(e.replace(r[0],""));switch(r[0][0]){case"+":return a+o+t;case"-":return a-o+t;case"*":return a*o+t}}function T(e,n){if(u.col(e))return function(e){return u.rgb(e)?function(e){var n=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return n?"rgba("+n[1]+",1)":e}(e):u.hex(e)?function(e){var n=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,n,r,t){return n+n+r+r+t+t}),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return"rgba("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+",1)"}(e):u.hsl(e)?function(e){var n,r,t,a=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(a[1],10)/360,i=parseInt(a[2],10)/100,u=parseInt(a[3],10)/100,c=a[4]||1;function l(e,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(n-e)*r:r<.5?n:r<2/3?e+(n-e)*(2/3-r)*6:e}if(0==i)n=r=t=u;else{var s=u<.5?u*(1+i):u+i-u*i,f=2*u-s;n=l(f,s,o+1/3),r=l(f,s,o),t=l(f,s,o-1/3)}return"rgba("+255*n+","+255*r+","+255*t+","+c+")"}(e):void 0}(e);if(/\s/g.test(e))return e;var r=D(e),t=r?e.substr(0,e.length-r.length):e;return n?t+n:t}function F(e,n){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function N(e){for(var n,r=e.points,t=0,a=0;a<r.numberOfItems;a++){var o=r.getItem(a);a>0&&(t+=F(n,o)),n=o}return t}function j(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return function(e){return 2*Math.PI*O(e,"r")}(e);case"rect":return function(e){return 2*O(e,"width")+2*O(e,"height")}(e);case"line":return function(e){return F({x:O(e,"x1"),y:O(e,"y1")},{x:O(e,"x2"),y:O(e,"y2")})}(e);case"polyline":return N(e);case"polygon":return function(e){var n=e.points;return N(e)+F(n.getItem(n.numberOfItems-1),n.getItem(0))}(e)}}function L(e,n){var r=n||{},t=r.el||function(e){for(var n=e.parentNode;u.svg(n)&&u.svg(n.parentNode);)n=n.parentNode;return n}(e),a=t.getBoundingClientRect(),o=O(t,"viewBox"),i=a.width,c=a.height,l=r.viewBox||(o?o.split(" "):[0,0,i,c]);return{el:t,viewBox:l,x:l[0]/1,y:l[1]/1,w:i/l[2],h:c/l[3]}}function q(e,n){function r(r){void 0===r&&(r=0);var t=n+r>=1?n+r:0;return e.el.getPointAtLength(t)}var t=L(e.el,e.svg),a=r(),o=r(-1),i=r(1);switch(e.property){case"x":return(a.x-t.x)*t.w;case"y":return(a.y-t.y)*t.h;case"angle":return 180*Math.atan2(i.y-o.y,i.x-o.x)/Math.PI}}function $(e,n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,t=T(u.pth(e)?e.totalLength:e,n)+"";return{original:t,numbers:t.match(r)?t.match(r).map(Number):[0],strings:u.str(e)||n?t.split(r):[]}}function R(e){return m(e?y(u.arr(e)?e.map(b):b(e)):[],function(e,n,r){return r.indexOf(e)===n})}function U(e){var n=R(e);return n.map(function(e,r){return{target:e,id:r,total:n.length,transforms:{list:B(e)}}})}function X(e,n){var r=x(n);if(/^spring/.test(r.easing)&&(r.duration=l(r.easing)),u.arr(e)){var t=e.length;2!==t||u.obj(e[0])?u.fnc(n.duration)||(r.duration=n.duration/t):e={value:e}}var a=u.arr(e)?e:[e];return a.map(function(e,r){var t=u.obj(e)&&!u.pth(e)?e:{value:e};return u.und(t.delay)&&(t.delay=r?0:n.delay),u.und(t.endDelay)&&(t.endDelay=r===a.length-1?n.endDelay:0),t}).map(function(e){return M(e,r)})}var Y={css:function(e,n,r){return e.style[n]=r},attribute:function(e,n,r){return e.setAttribute(n,r)},object:function(e,n,r){return e[n]=r},transform:function(e,n,r,t,a){if(t.list.set(n,r),n===t.last||a){var o="";t.list.forEach(function(e,n){o+=n+"("+e+") "}),e.style.transform=o}}};function Z(e,n){U(e).forEach(function(e){for(var r in n){var t=P(n[r],e),a=e.target,o=D(t),i=A(a,r,o,e),u=S(T(t,o||D(i)),i),c=I(a,r);Y[c](a,r,u,e.transforms,!0)}})}function Q(e,n){return m(y(e.map(function(e){return n.map(function(n){return function(e,n){var r=I(e.target,n.name);if(r){var t=function(e,n){var r;return e.tweens.map(function(t){var a=function(e,n){var r={};for(var t in e){var a=P(e[t],n);u.arr(a)&&1===(a=a.map(function(e){return P(e,n)})).length&&(a=a[0]),r[t]=a}return r.duration=parseFloat(r.duration),r.delay=parseFloat(r.delay),r}(t,n),o=a.value,i=u.arr(o)?o[1]:o,c=D(i),l=A(n.target,e.name,c,n),s=r?r.to.original:l,f=u.arr(o)?o[0]:s,d=D(f)||D(l),p=c||d;return u.und(i)&&(i=s),a.from=$(f,p),a.to=$(S(i,f),p),a.start=r?r.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=v(a.easing,a.duration),a.isPath=u.pth(o),a.isColor=u.col(a.from.original),a.isColor&&(a.round=1),r=a,a})}(n,e),a=t[t.length-1];return{type:r,property:n.name,animatable:e,tweens:t,duration:a.end,delay:t[0].delay,endDelay:a.endDelay}}}(e,n)})})),function(e){return!u.und(e)})}function V(e,n){var r=e.length,t=function(e){return e.timelineOffset?e.timelineOffset:0},a={};return a.duration=r?Math.max.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0,a=e.pingPongEndDelayCorrection??0;return t(e)+n+r+a+e.duration*(e.loop??1)})):n.duration,a.delay=r?Math.min.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0;return t(e)+n+r+e.delay})):n.delay,a.endDelay=r?a.duration-Math.max.apply(Math,e.map(function(e){let n=e.startOnceDelay??0,r=e.pingPongDelayCorrection??0,a=e.pingPongEndDelayCorrection??0;return t(e)+n+r+e.duration*(e.loop??1)-e.endDelay-a})):n.endDelay,a}var z,H=0,G=[],W=[],J=function(){let e=0,n=!0;function r(e){let t=G.length;if(t){let a=0;for(;a<t;){let n=G[a];n.paused?(G.splice(a,1),t--):(n.tick(e),a++)}n&&(z=requestAnimationFrame(r))}else z&&(cancelAnimationFrame(z),z=null)}return{get isUsingInternalRaf(){return n},set isUsingInternalRaf(e){n=e},play:function(){e=performance.now(),z=requestAnimationFrame(r)},update:function(n){e+=n,r(e)}}}();function K(e){!J.isUsingInternalRaf||(document.hidden?(G.forEach(function(n){return n.pause(e.timeStamp)}),W=G.slice(0),_.running=G=[]):(W.forEach(function(n){return n.play(e.timeStamp)}),W=[]))}function _(r){void 0===r&&(r={});var t,o,i=0,c=0,l=0,s=0,f=null;function d(e){var n=window.Promise&&new Promise(function(e){return f=e});return e.finished=n,n}var p=function(r){var t=C(e,r),a=C(n,r),o=function(e,n){var r=[],t=n.keyframes;for(var a in t&&(n=M(function(e){for(var n=m(y(e.map(function(e){return Object.keys(e)})),function(e){return u.key(e)}).reduce(function(e,n){return e.indexOf(n)<0&&e.push(n),e},[]),r={},t=function(t){var a=n[t];r[a]=e.map(function(e){var n={};for(var r in e)u.key(r)?r==a&&(n.value=e[r]):n[r]=e[r];return n})},a=0;a<n.length;a++)t(a);return r}(t),n)),n)u.key(a)&&r.push({name:a,tweens:X(n[a],e)});return r}(a,r),i=U(r.targets),c=Q(i,o),l=V(c,a),s=H;return H++,M(t,{id:s,children:[],animatables:i,animations:c,duration:l.duration,delay:l.delay,endDelay:l.endDelay,startOnceDelay:a.startOnceDelay,pingPongDelayCorrection:a.pingPongDelayCorrection,pingPongEndDelayCorrection:a.pingPongEndDelayCorrection})}(r);function g(){var e=p.direction;"alternate"!==e&&(p.direction="normal"!==e?"normal":"reverse"),p.reversed=!p.reversed,o.forEach(function(e){(1===e.loop||e.loop%2==0)&&(e.reversed=p.reversed)})}function v(e,n,r=!1){n&&(p.reversed?n.seek(n.duration*n.loop-(e-n.timelineOffset-n.pingPongDelayCorrection),r):n.seek(e-n.timelineOffset-n.startOnceDelay-n.pingPongDelayCorrection,r))}function h(e){var n=0,r=p.animations,t=r.length;for("alternate"!==p.direction&&"alternate"===p.parent?.direction?!1===p.parent?.rewind&&!0===p.reversePlayback&&!1===p.rewind&&(e=p.parent?.reversed&&"alternate"===p.direction?p.duration-p.delay+p.endDelay-e:p.duration+p.delay-p.endDelay-e):x(!1,p.parent?.rewind,p.rewind,p.parent?.reversePlayback,p.reversePlayback)&&(e=p.parent?.reversed&&"alternate"===p.direction?p.duration-p.delay+p.endDelay-e:p.duration+p.delay-p.endDelay-e);n<t;){var o=r[n],i=o.animatable,u=o.tweens,c=u.length-1,l=u[c];let t;c&&(l=m(u,function(n){return e<n.end})[0]||l),t=p.parent?.reversed&&"alternate"===p.direction?a(e-l.start-l.endDelay,0,l.duration)/l.duration:a(e-l.start-l.delay,0,l.duration)/l.duration;for(var s=isNaN(t)?1:l.easing(t),f=l.to.strings,d=l.round,g=[],v=l.to.numbers.length,h=void 0,y=0;y<v;y++){var b=void 0;let e,n;"alternate"!==p.direction?!1===p.parent?.rewind&&!0===p.reversePlayback&&!1===p.rewind?(e=l.to.numbers[y],n=l.from.numbers[y]||0):(n=l.to.numbers[y],e=l.from.numbers[y]||0):x(!0,p.parent?.rewind,p.rewind,p.parent?.reversePlayback,p.reversePlayback)?(e=l.to.numbers[y],n=l.from.numbers[y]||0):(n=l.to.numbers[y],e=l.from.numbers[y]||0),b=l.isPath?q(l.value,s*n):e+s*(n-e),d&&(l.isColor&&y>2||(b=Math.round(b*d)/d)),g.push(b)}var w=f.length;if(w){h=f[0];for(var C=0;C<w;C++){var M=f[C+1],D=g[C];isNaN(D)||(h+=M?D+M:D+" ")}}else h=g[0];Y[o.type](i.target,o.property,h,i.transforms),o.currentValue=h,n++}}function b(e){p[e]&&!p.passThrough&&p[e](p)}d(p);let w={0:!1,1:!0,2:!1,3:!0,4:!1,5:!1,6:!1,7:!1,8:!1,9:!0,10:!0,11:!1,12:!1,13:!1,14:!0,15:!0,16:!1,17:!0,18:!0,19:!1,20:!1,21:!1,22:!0,23:!0,24:!1,25:!0,26:!1,27:!0,28:!1,29:!1,30:!1,31:!1};function x(e,n,r,t,a){return w[e<<4|n<<3|r<<2|t<<1|a]}function D(e,n=!1){var r=p.duration;let t=p.delay,u=r-p.endDelay;p.parent?.reversed&&"alternate"===p.direction&&(t=p.endDelay,u=r-p.delay);var c=function(e){return p.reversed?p.duration-e:e}(e);if(p.progress=a(c/r*100,0,100),n||(p.reversePlayback=c<p.currentTime),s&&function(e,n=!1){if(p.reversed)for(var r=s;r--;)v(e,o[r],n);else for(var t=0;t<s;t++)v(e,o[t],n)}(c,n),!p.began&&c>=t&&(p.began=!0),!p.loopBegan&&p.currentTime>0&&(p.loopBegan=!0,b("loopBegin")),(p.reversed||c>=0)&&c<=t&&0!==p.currentTime&&(h(0),b("change")),(c>=u&&p.currentTime!==r+p.pingPongDelayCorrection||!r)&&(h(r),b("change")),c>t&&c<u?(p.changeBegan||(p.changeBegan=!0,p.changeCompleted=!1,b("changeBegin")),h(c),b("change")):p.changeBegan?(p.changeCompleted=!0,p.changeBegan=!1,b("change"),s&&b("timelineChangeComplete")):p.began&&c>u&&b("changeComplete"),p.currentTime=a(c,0,r+p.pingPongDelayCorrection),p.began&&b("update"),e>=r)if(p.remaining&&!0!==p.remaining&&p.remaining--,p.remaining){i+=s?p.duration/_.speed:p.duration;for(let e of o)e.setStartTime(0),e.remaining=e.loop;b("loopComplete"),p.loopBegan=!1,"alternate"===p.direction?g():s&&(p.direction="normal",p.reversed=!1,o.forEach(function(e){return e.reversed=!1}))}else p.paused=!0,p.completed||(p.completed=!0,b("loopComplete"),b("complete"),!p.passThrough&&"Promise"in window&&(f(),d(p)))}return p.reset=function(){var e=p.direction;p.passThrough=!1,p.currentTime=0,p.progress=0,p.paused=!0,p.began=!1,p.loopBegan=!1,p.changeBegan=!1,p.completed=!1,p.changeCompleted=!1,p.reversed="reverse"===e,p.remaining=p.loop,o=p.children;for(var n=s=o.length;n--;)p.children[n].reset();h(p.reversed?p.duration:0)},p.setStartTime=function(e){i=e},p.set=function(e,n){return Z(e,n),p},p.tick=function(e){l=e,i||(i=l),D((l+(c-i))*_.speed)},p.seek=function(e,n=!1){D(e-i,n)},p.pause=function(e){p.paused=!0,s&&(t=e??performance.now())},p.play=function(e){!p.paused||(p.completed&&p.reset(),p.paused=!1,G.push(p),s&&void 0!==t&&(i+=(e??performance.now())-t),!z&&J.isUsingInternalRaf&&J.play())},p.reverse=function(e=0){g(),p.completed=!p.reversed,i=void 0,c=e},p.restart=function(){p.reset(),i=void 0,c=0,p.play()},p.destroy=function(){p.paused=!0;var e=G.indexOf(p);e>-1&&G.splice(e,1),(e=W.indexOf(p))>-1&&W.splice(e,1),p.children&&p.children.forEach(function(e){e.destroy&&e.destroy()}),p.animations=[],p.animatables=[],p.children=[],p.update=null,p.begin=null,p.complete=null,p.loopBegin=null,p.loopComplete=null,p.change=null,p.changeBegin=null,p.changeComplete=null,p.timelineChangeComplete=null,p.parent=null,f=null,o=[],s=0},p.reset(),p.autoplay&&p.play(),p}function ee(e,n){for(var r=n.length;r--;)w(e,n[r].animatable.target)&&n.splice(r,1)}_.version="3.2.0",_.speed=1,_.running=G,_.remove=function(e){for(var n=R(e),r=G.length;r--;){var t=G[r],a=t.animations,o=t.children;ee(n,a);for(var i=o.length;i--;){var u=o[i],c=u.animations;ee(n,c),!c.length&&!u.children.length&&o.splice(i,1)}!a.length&&!o.length&&t.pause()}},_.get=A,_.set=Z,_.convertPx=k,_.path=function(e,n){var r=u.str(e)?h(e)[0]:e,t=n||100;return function(e){return{property:e,el:r,svg:L(r),totalLength:j(r)*(t/100)}}},_.setDashoffset=function(e){var n=j(e);return e.setAttribute("stroke-dasharray",n),n},_.stagger=function(e,n){void 0===n&&(n={});var r=n.direction||"normal",t=n.easing?v(n.easing):null,a=n.grid,o=n.axis,i=n.from||0,c="first"===i,l="center"===i,s="last"===i,f=u.arr(e),d=parseFloat(f?e[0]:e),p=f?parseFloat(e[1]):0,g=D(f?e[1]:e)||0,h=n.start||0+(f?d:0),m=[],y=0;return function(e,n,u){if(c&&(i=0),l&&(i=(u-1)/2),s&&(i=u-1),!m.length){for(var v=0;v<u;v++){if(a){var b=l?(a[0]-1)/2:i%a[0],w=l?(a[1]-1)/2:Math.floor(i/a[0]),x=b-v%a[0],C=w-Math.floor(v/a[0]),M=Math.sqrt(x*x+C*C);"x"===o&&(M=-x),"y"===o&&(M=-C),m.push(M)}else m.push(Math.abs(i-v));y=Math.max.apply(Math,m)}t&&(m=m.map(function(e){return t(e/y)*y})),"reverse"===r&&(m=m.map(function(e){return o?e<0?-1*e:-e:Math.abs(y-e)}))}return h+(f?(p-d)/y:d)*(Math.round(100*m[n])/100)+g}},_.timeline=function(e){void 0===e&&(e={});var r=_(e);return r.duration=0,r.add=function(t,a){var o=G.indexOf(r),i=r.children;function c(e){e.passThrough=!0}o>-1&&G.splice(o,1);for(var l=0;l<i.length;l++)c(i[l]);var s=M(t,C(n,e));s.targets=s.targets||e.targets;var f=r.duration;s.autoplay=!1,s.timelineOffset=u.und(a)?f:S(a,f),c(r);var d=_(s);c(d),i.push(d),d.parent=r;var p=V(i,e);return r.delay=p.delay,r.endDelay=p.endDelay,r.duration=p.duration,!0===d.loop&&(r.duration=1/0),r.seek(0),r.reset(),r.autoplay&&r.play(),r},r},_.easing=v,_.penner=g,_.random=function(e,n){return Math.floor(Math.random()*(n-e+1))+e},_.removeAll=function(){G.forEach(function(e){e.destroy&&e.destroy()}),G=[],W=[],_.running=G,z&&(cancelAnimationFrame(z),z=null)},_.clearCache=function(){t.CSS={},t.springs={}},_.init=function(){typeof document<"u"&&(document.removeEventListener("visibilitychange",K),document.addEventListener("visibilitychange",K))},_.dispose=function(e){_.removeAll(),_.clearCache(),document.removeEventListener("visibilitychange",K)};var ne=_;export{ne as a};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{E as e,G as a,H as t,d as i,f as r,g as n,x as o,z as s}from"./runtime-chunk-D3BWEUN6.js";var l,u,d,c,f,h,p,m,g,b,y,w,A,D,v,B,k,_,z,S,x,O,j,C;function P(e,a=[0,0]){return[e&&!isNaN(e[0])?e[0]:a[0],e&&!isNaN(e[1])?e[1]:a[1]]}function R(e,i,r){switch(e){case 0:return"cubicBezier( 0, 0, 1, 1 )";case 1:return"cubicBezier( .25, .1, .25, 1 )";case 2:return"cubicBezier( .42, 0, 1, 1 )";case 3:return"cubicBezier( 0, 0, .58, 1 )";case 4:return"cubicBezier( .42, 0, .58, 1 )";case 7:return"cubicBezier( .25, 1, .5, 1 )";case 5:{let{control1:e,control2:a}=i??{...t.defaultData};return`cubicBezier( ${e[0]}, ${e[1]}, ${a[0]}, ${a[1]} )`}case 6:{let{mass:e,stiffness:t,damping:i,velocity:n}=r??{...a.defaultData},o=new N(e,t,i,n),s=o.solve(1);return()=>e=>o.solve(e)/s}case 8:return()=>e=>Math.floor(e)}}function E(e,a,t){return{id:a,fi:t,data:{id:a,path:e,keyframes:new n}}}(l||(l={})).emptyImage={data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQYV2NgYAAAAAMAAWgmWQ0AAAAASUVORK5CYII=",name:"empty"},(u||(u={})).is=function(e){return!0},(c=d||(d={})).defaultData={position:[0,0],scale:[1,1],rotation:0,shear:[0,0]},c.merge=function(e,a){return{position:a?.position??e.position,rotation:a?.rotation??e.rotation,scale:a?.scale??e.scale,shear:a?.shear??e.shear}},c.diff=function(e,a){return i({position:s.isEqual(e.position,a.position)?void 0:a.position,rotation:e.rotation===a.rotation?void 0:a.rotation,scale:s.isEqual(e.scale,a.scale)?void 0:a.scale,shear:e.shear&&a.shear&&s.isEqual(e.shear,a.shear)?void 0:a.shear})},(f||(f={})).defaultData={horizontalConstraint:0,verticalConstraint:0},(h||(h={})).defaultData={direction:"row",wrap:"unwrap",align:"top-left",gap:10,rowGap:10,autoGap:!1,autoRowGap:!1,leftPadding:8,rightPadding:8,topPadding:8,bottomPadding:8},(p||(p={})).defaultData={opacity:1,fill:{color:e.fromHexAndA(o,1),enabled:!0},stroke:{color:e.from0to1([0,0,0,1]),thickness:1,enabled:!1,mode:"inside"},layerBlur:{radius:2,enabled:!1},backgroundBlur:{radius:2,enabled:!1},dropShadow:{offset:[10,10],blurRadius:10,color:e.from0to1([0,0,0,1]),enabled:!1,spread:0},innerShadow:{offset:[10,10],blurRadius:10,color:e.from0to1([0,0,0,1]),enabled:!1,spread:0}},(g=m||(m={})).newEmpty=function(e,a){return{name:a}},g.patch=function(e,a){if(void 0===a)return e;let t={...e};return Object.assign(t,d.merge(t,a)),t=function(e,a){if(void 0===a)return e;let t={...e},i=["width","height","cornerRadius"];for(let e of i)e in t&&e in a&&void 0!==a[e]&&Object.assign(t,{[e]:a[e]});return t}(t,a),t=function(e,a){if(void 0===a)return e;let t={...e};return"fill"in t&&"fill"in a&&void 0!==a.fill&&Object.assign(t,{fill:{...t.fill,...a.fill}}),"stroke"in t&&"stroke"in a&&void 0!==a.stroke&&Object.assign(t,{stroke:{...t.stroke,...a.stroke}}),"layerBlur"in t&&"layerBlur"in a&&void 0!==a.layerBlur&&Object.assign(t,{layerBlur:{...t.layerBlur,...a.layerBlur}}),"backgroundBlur"in t&&"backgroundBlur"in a&&void 0!==a.backgroundBlur&&Object.assign(t,{backgroundBlur:{...t.backgroundBlur,...a.backgroundBlur}}),"dropShadow"in t&&"dropShadow"in a&&void 0!==a.dropShadow&&Object.assign(t,{dropShadow:{...t.dropShadow,...a.dropShadow}}),"innerShadow"in t&&"innerShadow"in a&&void 0!==a.innerShadow&&Object.assign(t,{innerShadow:{...t.innerShadow,...a.innerShadow}}),t}(t,a),t},g.toOps=function(e,a){let t,i=[];for(let[e,r]of Object.entries(a))"name"!==e&&(void 0===t&&(t={path:[],props:{},type:0},i.push(t)),t.props[e]=r);return i},(b||(b={})).defaultData={...d.defaultData,...f.defaultData,states:new n,events:new n,visible:!0,raycastLock:!1},(y||(y={})).defaultData={...b.defaultData,...p.defaultData},(w||(w={})).defaultData={cornerRadius:[0,0,0,0]},(A||(A={})).defaultData={...y.defaultData,type:"ellipse2d",width:100,height:100,name:"Ellipse"},(D||(D={})).defaultData={...y.defaultData,...w.defaultData,type:"rectangle2d",width:100,height:100,name:"Rectangle"},(v||(v={})).defaultData={...y.defaultData,type:"text2d",width:100,height:100,fontSize:12,lineHeight:1.2,letterSpacing:0,text:{textValue:"Hello world"},horizontalAlign:1,verticalAlign:1,textTransform:1,font:"Roboto_regular",name:"Text"},(B||(B={})).defaultData={...y.defaultData,type:"path2d",path:"",name:"Path"},(k||(k={})).is=function(e){return"ellipse2d"===e.type||"rectangle2d"===e.type||"text2d"===e.type||"vector2d"===e.type||"path2d"===e.type},(_||(_={})).defaultData={...b.defaultData,name:"Group",type:"group2d"},(z||(z={})).defaultData=()=>({...b.defaultData,...w.defaultData,...p.defaultData,name:"Frame",type:"frame2d",clipped:!0,width:200,height:200,fill:{color:e.fromHexAndA(4737101,1),enabled:!0},stroke:{color:e.fromHexAndA(0,1),thickness:1,enabled:!1,mode:"inside"},backgroundBlur:{radius:2,enabled:!1},layerBlur:{radius:2,enabled:!1}}),(e=>{e.defaultData=function(e){switch(e){case"rectangle2d":case"vector2d":return{...D.defaultData};case"ellipse2d":return{...A.defaultData};case"text2d":return{...v.defaultData};case"path2d":return{...B.defaultData};case"frame2d":return{...z.defaultData()};case"group2d":return{..._.defaultData}}},e.getPivot=function(e){return"width"in e&&"height"in e?["number"==typeof e.width?.5*e.width:0,"number"==typeof e.height?.5*e.height:0]:[0,0]},e.isResizeable=function(e){return"rectangle2d"===e.type||"ellipse2d"===e.type||"text2d"===e.type||"frame2d"===e.type},e.isAutoLayoutable=function(e){return"frame2d"===e.type&&void 0!==e.autoLayout},e.hasCorners=function(e){return"rectangle2d"===e.type||"frame2d"===e.type}})(S||(S={})),(O=x||(x={})).defaultData={name:"UI",type:"scene2d",objects:new r},O.emptyData=function(){return{type:"scene2d",objects:new r}},(j||(j={})).is=function(e){return e&&"number"==typeof e.x&&"number"==typeof e.y&&"number"==typeof e.z},(e=>{e.getControlsWithDefault=function(e,a){let t=[0,0],i=[1,1];if(e?.cubicControls)t=P(e.cubicControls.control1,t);else switch(e?.type){case 2:case 4:t=[.42,0];break;case 3:case 0:t=[0,0];break;case 1:t=[.25,.1];break;case 7:t=[.25,1]}if(a?.cubicControls)i=P(a.cubicControls.control2,i);else switch(a?.type){case 2:case 0:i=[1,1];break;case 3:case 4:i=[.58,1];break;case 1:i=[.25,1];break;case 7:i=[.5,1]}return{control1:t,control2:i}},e.defaultData=function(e,a){return{id:e,name:a,to:5,properties:new n}},e.createMaterialGroup=function(e){let a=new n;return e.forEach(({data:e,id:t,fi:i})=>{if("light"===e.type){let r=E(["material",`${e.category} lighting`],t,i);a.push(r)}else{let r=E(["material",e.type],t,i);a.push(r)}}),a},e.createName=function(e){return Object.entries(e).reduce((e,[a,t])=>("string"!=typeof t&&e.push({name:t.name}),e),[])},e.Presets=[{name:"Slide in",animationParams:{translateX:{value:[-20,0],easing:R(3),duration:1e3},opacity:{value:[0,1],easing:R(3),duration:1e3},endDelay:250,loop:!0}},{name:"Rotate",animationParams:{rotate:{value:[0,"1turn"],easing:R(5),duration:700},endDelay:250,loop:!0}},{name:"Scale Out",animationParams:{scale:{value:[1,1.5],easing:R(4),duration:1e3},endDelay:250,loop:!0}},{name:"Jump",animationParams:{translateY:[{value:0,duration:200,easing:"linear"},{value:-20,easing:"linear",duration:200},{value:0,easing:"linear",duration:100}],endDelay:500,loop:!0}},{name:"Jump Rotate",animationParams:{translateY:[{value:0,duration:200,easing:"linear"},{value:-20,easing:"linear",duration:200},{value:0,easing:"linear",duration:100}],rotate:{value:[0,"1turn"],easing:R(5),duration:500},endDelay:500,loop:!0}},{name:"Bounce",animationParams:{translateY:{value:["20px","-20px"],duration:575,easing:"easeOutQuad"},direction:"alternate",loop:!0}}]})(C||(C={}));var M=["x","y","z"],N=class{constructor(e=1,a=100,t=10,i=0){this.mass=e,this.stiffness=a,this.damping=t,this.initialVelocity=i,this.m_w0=Math.sqrt(a/e),this.m_zeta=t/(2*Math.sqrt(a*e)),this.m_zeta<1?(this.m_wd=this.m_w0*Math.sqrt(1-this.m_zeta*this.m_zeta),this.m_A=1,this.m_B=(this.m_zeta*this.m_w0-i)/this.m_wd):(this.m_wd=0,this.m_A=1,this.m_B=-i+this.m_w0)}solve(e){return 1-(this.m_zeta<1?Math.exp(-e*this.m_zeta*this.m_w0)*(this.m_A*Math.cos(this.m_wd*e)+this.m_B*Math.sin(this.m_wd*e)):(this.m_A+this.m_B*e)*Math.exp(-e*this.m_w0))}getDuration(){let e=.16666666666666666,a=0,t=0;for(;;)if(a+=e,1===this.solve(a)){if(t++,t>=16)break}else t=0;return a*e*1e3}};export{l as a,m as b,D as c,_ as d,S as e,x as f,P as g,R as h,M as i};
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{c as e}from"./runtime-chunk-TZCHGFVF.js";import{Ha as t,r}from"./runtime-chunk-D3BWEUN6.js";var i=new Map;function n(e,t){i.set(e,t)}var s=class{static get version(){return"1.3.8"}static toString(){return"JavaScript Expression Parser (JSEP) v"+s.version}static addUnaryOp(e){return s.max_unop_len=Math.max(e.length,s.max_unop_len),s.unary_ops[e]=1,s}static addBinaryOp(e,t,r){return s.max_binop_len=Math.max(e.length,s.max_binop_len),s.binary_ops[e]=t,r?s.right_associative.add(e):s.right_associative.delete(e),s}static addIdentifierChar(e){return s.additional_identifier_chars.add(e),s}static addLiteral(e,t){return s.literals[e]=t,s}static removeUnaryOp(e){return delete s.unary_ops[e],e.length===s.max_unop_len&&(s.max_unop_len=s.getMaxKeyLen(s.unary_ops)),s}static removeAllUnaryOps(){return s.unary_ops={},s.max_unop_len=0,s}static removeIdentifierChar(e){return s.additional_identifier_chars.delete(e),s}static removeBinaryOp(e){return delete s.binary_ops[e],e.length===s.max_binop_len&&(s.max_binop_len=s.getMaxKeyLen(s.binary_ops)),s.right_associative.delete(e),s}static removeAllBinaryOps(){return s.binary_ops={},s.max_binop_len=0,s}static removeLiteral(e){return delete s.literals[e],s}static removeAllLiterals(){return s.literals={},s}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new s(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return s.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!s.binary_ops[String.fromCharCode(e)]||s.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return s.isIdentifierStart(e)||s.isDecimalDigit(e)}throwError(e){let t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(s.hooks[e]){let r={context:this,node:t};return s.hooks.run(e,r),r.node}return t}searchHook(e){if(s.hooks[e]){let t={context:this};return s.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===s.SPACE_CODE||e===s.TAB_CODE||e===s.LF_CODE||e===s.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:s.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,r,i=[];for(;this.index<this.expr.length;)if(t=this.code,t===s.SEMCOL_CODE||t===s.COMMA_CODE)this.index++;else if(r=this.gobbleExpression())i.push(r);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return i}gobbleExpression(){let e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,s.max_binop_len),t=e.length;for(;t>0;){if(s.binary_ops.hasOwnProperty(e)&&(!s.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!s.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,r,i,n,o,a,h,l;if(o=this.gobbleToken(),!o||(t=this.gobbleBinaryOp(),!t))return o;for(n={value:t,prec:s.binaryPrecedence(t),right_a:s.right_associative.has(t)},a=this.gobbleToken(),a||this.throwError("Expected expression after "+t),i=[o,n,a];t=this.gobbleBinaryOp();){if(r=s.binaryPrecedence(t),0===r){this.index-=t.length;break}n={value:t,prec:r,right_a:s.right_associative.has(t)},l=t;let h=e=>n.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;i.length>2&&h(i[i.length-2]);)a=i.pop(),t=i.pop().value,o=i.pop(),e={type:s.BINARY_EXP,operator:t,left:o,right:a},i.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),i.push(n,e)}for(h=i.length-1,e=i[h];h>1;)e={type:s.BINARY_EXP,operator:i[h-1].value,left:i[h-2],right:e},h-=2;return e}gobbleToken(){let e,t,r,i;if(this.gobbleSpaces(),i=this.searchHook("gobble-token"),i)return this.runHook("after-token",i);if(e=this.code,s.isDecimalDigit(e)||e===s.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===s.SQUOTE_CODE||e===s.DQUOTE_CODE)i=this.gobbleStringLiteral();else if(e===s.OBRACK_CODE)i=this.gobbleArray();else{for(t=this.expr.substr(this.index,s.max_unop_len),r=t.length;r>0;){if(s.unary_ops.hasOwnProperty(t)&&(!s.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!s.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=r;let e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:s.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--r)}s.isIdentifierStart(e)?(i=this.gobbleIdentifier(),s.literals.hasOwnProperty(i.name)?i={type:s.LITERAL,value:s.literals[i.name],raw:i.name}:i.name===s.this_str&&(i={type:s.THIS_EXP})):e===s.OPAREN_CODE&&(i=this.gobbleGroup())}return i?(i=this.gobbleTokenProperty(i),this.runHook("after-token",i)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;for(;t===s.PERIOD_CODE||t===s.OBRACK_CODE||t===s.OPAREN_CODE||t===s.QUMARK_CODE;){let r;if(t===s.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==s.PERIOD_CODE)break;r=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===s.OBRACK_CODE?(e={type:s.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},this.gobbleSpaces(),t=this.code,t!==s.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===s.OPAREN_CODE?e={type:s.CALL_EXP,arguments:this.gobbleArguments(s.CPAREN_CODE),callee:e}:(t===s.PERIOD_CODE||r)&&(r&&this.index--,this.gobbleSpaces(),e={type:s.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),r&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e,t,r="";for(;s.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(this.code===s.PERIOD_CODE)for(r+=this.expr.charAt(this.index++);s.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);if(e=this.char,"e"===e||"E"===e){for(r+=this.expr.charAt(this.index++),e=this.char,("+"===e||"-"===e)&&(r+=this.expr.charAt(this.index++));s.isDecimalDigit(this.code);)r+=this.expr.charAt(this.index++);s.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+r+this.char+")")}return t=this.code,s.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+r+this.char+")"):(t===s.PERIOD_CODE||1===r.length&&r.charCodeAt(0)===s.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:s.LITERAL,value:parseFloat(r),raw:r}}gobbleStringLiteral(){let e="",t=this.index,r=this.expr.charAt(this.index++),i=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===r){i=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return i||this.throwError('Unclosed quote after "'+e+'"'),{type:s.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;for(s.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,s.isIdentifierPart(e));)this.index++;return{type:s.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){let t=[],r=!1,i=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let n=this.code;if(n===e){r=!0,this.index++,e===s.CPAREN_CODE&&i&&i>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(n===s.COMMA_CODE){if(this.index++,i++,i!==t.length)if(e===s.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===s.CBRACK_CODE)for(let e=t.length;e<i;e++)t.push(null)}else if(t.length!==i&&0!==i)this.throwError("Expected comma");else{let e=this.gobbleExpression();(!e||e.type===s.COMPOUND)&&this.throwError("Expected comma"),t.push(e)}}return r||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(s.CPAREN_CODE);if(this.code===s.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:s.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:s.ARRAY_EXP,elements:this.gobbleArguments(s.CBRACK_CODE)}}},o=new class{add(e,t,r){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][r?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}};Object.assign(s,{hooks:o,plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach(e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(s),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),s.max_unop_len=s.getMaxKeyLen(s.unary_ops),s.max_binop_len=s.getMaxKeyLen(s.binary_ops);var a=e=>new s(e).parse();Object.getOwnPropertyNames(s).forEach(e=>{void 0===a[e]&&"prototype"!==e&&(a[e]=s[e])}),a.Jsep=s;var h={name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;let r=t.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let n=this.gobbleExpression();if(n||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:i,alternate:n},r.operator&&e.binary_ops[r.operator]<=.9){let i=r;for(;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}};a.plugins.register(h);var l=["+","-","*","/","(",")","==","!=",">","<",">=","<=","and","or","!","%","^",","],c=["0","1","2","3","4","5","6","7","8","9","."],d=["sin","cos","tan","asin","acos","atan","atan2","sqrt","abs","log","exp","floor","ceil","round","min","max","random"];function p(e){return"string"==typeof e&&!isNaN(e)&&!isNaN(parseFloat(e))}function u(e,r,i="number"){let n,s,o="";for(let n=0;n<e.length;n++){let s=e[n];if("objType"in s&&"api"===s.objType){let e=JSON.parse(s.id),t=e[0],i=r.getUserAPI(t);if(void 0!==i&&"function"==typeof i.retrieveValue){let t=i.retrieveValue(e.slice(1));void 0!==t&&(o+=t)}continue}if("objType"in s&&"webhook"===s.objType){let e=JSON.parse(s.id),[t,i]=e,n=r.getUserWebhook(t);if(void 0!==n){let e=n.getParameterValue(i);void 0!==e&&(o+=e)}continue}if("objType"in s&&"aiAssistant"===s.objType){let e=r.openAIRealtime;if("objId"in s&&void 0!==s.objId){let t;if(r.scene.data.objects.traverse((e,r)=>{let i=r.events?.find(e=>e.id===s.objId);i&&(t=i)}),void 0!==t&&"AIAssistantListener"===t.data.type){let r=e?.computeAnalysisForListenerEvent(t.data);if(void 0!==r){o+=r;continue}}}o+=e?.voice??0;continue}if("id"in s){let a=e[n-1];if(n>0&&"id"in a)return void console.error("Two variables in a row",e);let h=r.getVariable(s.id),l=t.getDisplayedValue(h);"number"===i&&t.isTextValue(h)&&Array.isArray(h.textValue)&&1===h.textValue.length?l=parseFloat(l).toString():"boolean"===i&&t.isBoolean(h)?l=h?"true":"false":"boolean"===i&&t.isTextValue(h)&&!Array.isArray(h.textValue)&&(l='"'+l+'"'),o+=l;continue}"string"!==i?"and"!==s.name?"or"!==s.name?"True"!==s.name?"False"!==s.name?"boolean"!==i||p(s.name)||c.includes(s.name)||l.includes(s.name)||d.includes(s.name.replace(/\($/g,""))?o+=s.name:o+='"'+s.name+'"':o+="false":o+="true":o+="||":o+="&&":('"'!==s.name&&("+"!==s.name||s.escaped)&&(o+=s.name),"+"===s.name&&!s.escaped&&"\\"===o[o.length-1]&&(o=o.slice(0,-1)+s.name))}if("string"===i)return o;if(0===e.length){if("number"===i)return 0;if("boolean"===i)return!1}try{n=a(o)}catch(e){return void console.error(o,e)}try{s=f(n)}catch(e){console.error(o,n,e)}return s}function f(e){switch(e.type){case"BinaryExpression":switch(e.operator){case"==":return Number(f(e.left)===f(e.right));case"!=":return Number(f(e.left)!==f(e.right));case">":return Number(f(e.left)>f(e.right));case">=":return Number(f(e.left)>=f(e.right));case"<":return Number(f(e.left)<f(e.right));case"<=":return Number(f(e.left)<=f(e.right));case"+":return f(e.left)+f(e.right);case"-":return f(e.left)-f(e.right);case"*":return f(e.left)*f(e.right);case"/":return f(e.left)/f(e.right);case"%":return f(e.left)%f(e.right);case"&&":return f(e.left)&&f(e.right);case"||":return f(e.left)||f(e.right);case"^":return Math.pow(f(e.left),f(e.right));default:throw new Error("Unknown operator: "+e.operator)}case"UnaryExpression":switch(e.operator){case"-":return-f(e.argument);case"!":return Number(!f(e.argument));default:throw new Error("Unknown operator: "+e.operator)}case"Identifier":throw new Error("Unknown identifier: "+e.name);case"Literal":return e.value;case"CallExpression":if("Identifier"===e.callee.type){if("random"===e.callee.name){let t=0,r=1;if(e.arguments.length>=1)try{t=f(e.arguments[0])}catch(e){console.warn(e)}if(e.arguments.length>=2)try{r=f(e.arguments[1])}catch(e){console.warn(e)}return t=Math.min(r,t),r=Math.max(r,t),t+Math.random()*(r-t)}return Math[e.callee.name].apply(null,e.arguments.map(f))}throw new Error("Unknown node");default:throw new Error("Unknown node type: "+e.type)}}a.addBinaryOp("^",11,!0);var b={mousehover:!0,scroll:!0,dragdrop:!0,tracking:!0,resize:!0,conditional:!0,variables:!0,"api-services":!0,"ai-assistant":!0,textinputs:!0,audio:!0,video:!0,"create-destroy":!0,"scene-transition":!0,timeline:!0,transitions:!0,"misc-actions":!0},g=Object.keys(b),E={MouseHover:"mousehover",Scroll:"scroll",DragDrop:"dragdrop",Follow:"tracking",LookAt:"tracking",Resize:"resize",Conditional:"conditional",VariableChange:"variables",API:"api-services",WEBHOOK:"api-services",AIAssistantListener:"ai-assistant",AIAssistantTrigger:"ai-assistant"},x={Audio:"audio",Video:"video",Particles:"particles",Link:"misc-actions",Reset:"misc-actions",SwitchCamera:"misc-actions",ClearLocalStorage:"misc-actions",Create:"create-destroy",Destroy:"create-destroy",Transition:"transitions",Animation:"transitions",TimelineAnimation:"timeline",SceneTransition:"scene-transition",SetVariable:"variables",DynamicVariablePlay:"variables",UserAPI:"api-services"};function y(e){return"object"==typeof e&&null!==e}var m=class extends Error{};function _(e,t){void 0!==t&&t in b&&e.add(t)}function A(e,t){let r=new Set,i=e=>{if(void 0!==e){if(!Array.isArray(e))throw new m;for(let t of e){if(!y(t))throw new m;n(t.data)}}},n=e=>{if(!y(e)||"string"!=typeof e.type)throw new m;_(r,x[e.type]),"Conditional"===e.type&&(i(e.ifActions),i(e.elseActions))},s=e=>{if(!y(e)||"string"!=typeof e.type)throw new m;if(!0!==e.disabled){if(t?.(e.type),_(r,E[e.type]),i(e.actions),i(e.inActions),i(e.outActions),i(e.successActions),i(e.errorActions),void 0!==e.dragDropActions){if(!y(e.dragDropActions))throw new m;for(let t of Object.values(e.dragDropActions))i(t)}if(void 0!==e.gameActions){if(!y(e.gameActions))throw new m;for(let t of Object.values(e.gameActions))i(t)}if(void 0!==e.breakpoints){if(!Array.isArray(e.breakpoints))throw new m;for(let t of e.breakpoints){if(!y(t)||!y(t.data))throw new m;i(t.data.actions)}}}},o=e=>{if(!y(e))throw new m;(e=>{let t=e.events;if(void 0!==t)if(Array.isArray(t))for(let e of t){if(!y(e))throw new m;s(e.data)}else{if(!y(t))throw new m;for(let e of Object.values(t))s(e)}})(e),"Mesh"===e.type&&y(e.geometry)&&"InputGeometry"===e.geometry.type&&r.add("textinputs"),"Page"===e.type&&y(e.uiScene)&&a(e.uiScene.objects)},a=e=>{if(!y(e)||"function"!=typeof e.traverse)throw new m;e.traverse((e,t)=>{o(t)})},h=e=>{if(!y(e))throw new m;void 0!==e.data&&o(e.data);let t=e.children;if(void 0!==t){if(!Array.isArray(t))throw new m;for(let e of t)h(e)}};try{a(e.scene.objects);let t=e.shared;if(void 0!==t){if(!y(t))throw new m;let e=t.variables;if(void 0!==e){if(!Array.isArray(e))throw new m;for(let t of e){if(!y(t)||!y(t.data))throw new m;"dynamicVariableType"in t.data&&r.add("variables")}}let i=t.userAPIs;if(void 0!==i){if(!y(i))throw new m;for(let e of Object.values(i)){let t=y(e)?e.integration:void 0;y(t)&&"VoiceAssistant"===t.type?r.add("ai-assistant"):r.add("api-services")}}let n=t.userWebhooks;if(void 0!==n){if(!y(n))throw new m;Object.keys(n).length>0&&r.add("api-services")}let s=t.lib;if(void 0!==s){if(!y(s))throw new m;let e=s.components;if(void 0!==e){if(!y(e))throw new m;for(let t of Object.values(e)){if(!y(t))throw new m;void 0!==t.asset&&h(t.asset)}}}}}catch{return new Set(g)}return r}function C(e,t){if(void 0===t)return!0;if(0===t.expression.length)return!1;let r=u(t.expression,e,"boolean");return t.negate?!r:!!r}function O(t,n,s,o,a,h){let l={Audio:[],Video:[],Particles:[],Link:[],Destroy:[],Create:[],Reset:[],Transition:[],TimelineAnimation:[],SwitchCamera:[],Animation:[],SceneTransition:[],SetVariable:[],DynamicVariablePlay:[],ClearLocalStorage:[],UserAPI:[]},c=n=>({id:d,data:p})=>{try{if("Conditional"===p.type)return void(r[t.type].includes("Conditional")&&(p.ifActions.forEach(c({expression:p.condition,negate:!1})),p.elseActions.forEach(c({expression:p.condition,negate:!0}))));if(!r[t.type].includes(p.type))return;let u=function(e){return i.get(e)}(p.type);if(void 0===u)return void e(x[p.type]??"misc-actions",`a "${p.type}" action`);let f=u({id:d,data:p,object:h,page:s,shared:o,eventManager:a,eventType:t.type,actionCondition:n});null!=f&&p.type in l&&l[p.type].push(f)}catch(e){}};return n.forEach(c()),l}function w(e){Object.values(e).forEach(e=>{e.forEach(e=>{"function"==typeof e.dispose&&e.dispose()})})}export{u as a,n as b,E as c,A as d,C as e,O as f,w as g};
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{a as r}from"./runtime-chunk-JIIVUL2M.js";import"./runtime-chunk-QMMGYOLW.js";import"./runtime-chunk-YH55FWRI.js";import"./runtime-chunk-VAANBQKN.js";import"./runtime-chunk-HKFPEE5F.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as m}from"./runtime-chunk-A7IMJ4FJ.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-4KZXQGUQ.js";import"./runtime-chunk-VGEECQH4.js";import{a as n}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-D3BWEUN6.js";import"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";m.Cloner=r,n("cloners");
@@ -1 +0,0 @@
1
- import{a as e}from"./runtime-chunk-4GNBET46.js";import{a as t}from"./runtime-chunk-WWYY25M2.js";import{d as n}from"./runtime-chunk-BEWQ5BW5.js";import{ea as i}from"./runtime-chunk-HKFPEE5F.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{c as s,h as o}from"./runtime-chunk-A7IMJ4FJ.js";import"./runtime-chunk-2PT2WH66.js";import{d as r,f as a}from"./runtime-chunk-4KZXQGUQ.js";import"./runtime-chunk-VGEECQH4.js";import{a as p,d}from"./runtime-chunk-TZCHGFVF.js";import{Ba as l,Ca as c,Ja as h,K as u,i as m,j as f,wa as y}from"./runtime-chunk-D3BWEUN6.js";import{Oc as v,Sc as g,od as j}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var k=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=h.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 b(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 k&&r.isInstanceRoot&&r.expandInstanceChildren(e);let h=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[h];if(j=o.is(t)?t:null,null!==j){let e=b(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=b(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(h,0,j),j.parent===i?t<=h&&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;u.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(h,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),h+=1,D(e,t,n,j,y,a,p+1,d,c)}if(!d){let t=h;for(;;){let t=i.children[h];if(!o.is(t))break;e.pendingDeletes.add(t),h+=1}i.children.splice(t,h-t)}return!0}var E=(e,t,n)=>new k(e,t,n);d("Component",E),d("Instance",E),p("components");
@@ -1 +0,0 @@
1
- import{a as t,b as i}from"./runtime-chunk-DZNU62CT.js";import{f as a,g as s}from"./runtime-chunk-WGBR2HLR.js";import{e as o}from"./runtime-chunk-4KZXQGUQ.js";import"./runtime-chunk-VGEECQH4.js";import{a as n}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-D3BWEUN6.js";import{Ec as e,Fc as c,Oc as r,Pc as h}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var d=new c,p=new c,f=(new r,new c,new e,new c,new h,class{constructor(t,i,s,o,n){this.actionsIn=a(t,t.inActions,s,o,n,i),this.actionsOut=a(t,t.outActions,s,o,n,i)}disconnect(){s(this.actionsIn),s(this.actionsOut)}}),l=class extends f{constructor(t,i,a,s,o,n){super(i,a,s,o,n),this.id=t,this.data=i,this.object=a,this.stage="out",this.objects=[],this.onUpdateMatrixWorld=()=>{for(let t of this.objects)if(!t.visible)return;let t=d.setFromMatrixPosition(this.objects[0].matrixWorld),i=p.setFromMatrixPosition(this.objects[1].matrixWorld),a=t.distanceTo(i)<=this.distance?"in":"out";if(this.stage!==a){this.stage=a;let t="in"===a?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.object.currentTransitionEvent!==this&&(t.object.currentTransitionEvent=this),t.init()}),t.Transition.forEach(t=>t.play()),t.Animation.forEach(t=>t.play()),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=s.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,a,s,o,n){super(i,a,s,o,n),this.id=t,this.data=i,this.object=a,this.onBegin=({target:t,state:i})=>{this.toState!==i&&(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=>t.pause()),this.object.currentTransitionEvent=this,this.actionsOut.Transition.forEach(t=>t.play()),this.actionsOut.Animation.forEach(t=>t.play()),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()))},this.onComplete=({target:t,state:i})=>{this.toState===i&&(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=>t.pause()),this.actionsOut.Transition.forEach(t=>t.pause()),this.object.currentTransitionEvent=this,this.actionsIn.Transition.forEach(t=>t.play()),this.actionsIn.Animation.forEach(t=>t.play()),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()))};let{condition:e}=i;if(!e.object)throw new Error("Missing property");let c=s.find(e.object)??s.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(){o(this.actionsOut).forEach(t=>{this.actionsOut[t]?.length&&this.toObject.addEventListener("beginState",this.onBegin)}),o(this.actionsIn).forEach(t=>{this.actionsIn[t]?.length&&this.toObject.addEventListener("completeState",this.onComplete)})}disconnect(){super.disconnect(),o(this.actionsOut).forEach(t=>{this.actionsIn[t]?.length&&this.toObject.removeEventListener("beginState",this.onBegin)}),o(this.actionsIn).forEach(t=>{this.actionsIn[t]?.length&&this.toObject.removeEventListener("completeState",this.onComplete)})}},u=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(a=>{if(a.data?.events.length)for(let{id:s,data:o}of a.data.events)if(!o.disabled&&"Conditional"===o.type)try{let n;"Comparison"===o.condition.type||("Distance"===o.condition.type?n=new l(s,o,a,t,i,this.eventManager):"State"===o.condition.type&&(n=new E(s,o,a,t,i,this.eventManager))),n&&(this.eventsPerConditions[o.condition.type].push(n),(n.actionsIn.Video.length||n.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 u(t,i)),n("conditional");
@@ -1 +0,0 @@
1
- import{k as r}from"./runtime-chunk-MJYVLFQT.js";import"./runtime-chunk-A7IMJ4FJ.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-4KZXQGUQ.js";import"./runtime-chunk-VGEECQH4.js";import{a as i,d as m}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-D3BWEUN6.js";import"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";m("Hair",(i,m,n)=>new r(i,m,n)),i("hair");