@splinetool/runtime 2.0.59 → 2.0.60

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 (268) hide show
  1. package/build/{runtime-chunk-EPITBSWH.js → runtime-chunk-2VUO6A6S.js} +1 -1
  2. package/build/runtime-chunk-2VUO6A6S.js.br +0 -0
  3. package/build/runtime-chunk-2VUO6A6S.js.gz +0 -0
  4. package/build/{runtime-chunk-QSTRAO43.js → runtime-chunk-4LXRVOKN.js} +1 -1
  5. package/build/runtime-chunk-4LXRVOKN.js.br +0 -0
  6. package/build/runtime-chunk-4LXRVOKN.js.gz +0 -0
  7. package/build/{runtime-chunk-VWW23DE5.js → runtime-chunk-5HEMIRBS.js} +1 -1
  8. package/build/runtime-chunk-5HEMIRBS.js.br +0 -0
  9. package/build/runtime-chunk-5HEMIRBS.js.gz +0 -0
  10. package/build/{runtime-chunk-P2WZRCIB.js → runtime-chunk-6DV3OTS7.js} +1 -1
  11. package/build/runtime-chunk-6DV3OTS7.js.br +0 -0
  12. package/build/runtime-chunk-6DV3OTS7.js.gz +0 -0
  13. package/build/{runtime-chunk-TO7T7KNX.js → runtime-chunk-7ZOI4GS2.js} +1 -1
  14. package/build/runtime-chunk-7ZOI4GS2.js.br +0 -0
  15. package/build/runtime-chunk-7ZOI4GS2.js.gz +0 -0
  16. package/build/{runtime-chunk-I6C7UVT4.js → runtime-chunk-ANNLS4JN.js} +1 -1
  17. package/build/runtime-chunk-ANNLS4JN.js.br +0 -0
  18. package/build/runtime-chunk-ANNLS4JN.js.gz +0 -0
  19. package/build/{runtime-chunk-XZLVKFF3.js → runtime-chunk-C6VMU3GU.js} +1 -1
  20. package/build/runtime-chunk-C6VMU3GU.js.br +2 -0
  21. package/build/runtime-chunk-C6VMU3GU.js.gz +0 -0
  22. package/build/{runtime-chunk-5VGFSUYB.js → runtime-chunk-CDHH2MWM.js} +1 -1
  23. package/build/runtime-chunk-CDHH2MWM.js.br +0 -0
  24. package/build/runtime-chunk-CDHH2MWM.js.gz +0 -0
  25. package/build/{runtime-chunk-XQEURE23.js → runtime-chunk-CLMBU44E.js} +1 -1
  26. package/build/runtime-chunk-CLMBU44E.js.br +0 -0
  27. package/build/runtime-chunk-CLMBU44E.js.gz +0 -0
  28. package/build/{runtime-chunk-4EZ7O4A2.js → runtime-chunk-F4F4DE36.js} +1 -1
  29. package/build/runtime-chunk-F4F4DE36.js.br +0 -0
  30. package/build/runtime-chunk-F4F4DE36.js.gz +0 -0
  31. package/build/{runtime-chunk-IVOXIBX4.js → runtime-chunk-GDRQPAKL.js} +1 -1
  32. package/build/runtime-chunk-GDRQPAKL.js.br +0 -0
  33. package/build/runtime-chunk-GDRQPAKL.js.gz +0 -0
  34. package/build/{runtime-chunk-AIZLRXLL.js → runtime-chunk-HCCKNETD.js} +1 -1
  35. package/build/runtime-chunk-HCCKNETD.js.br +0 -0
  36. package/build/runtime-chunk-HCCKNETD.js.gz +0 -0
  37. package/build/{runtime-chunk-DJP4X7T7.js → runtime-chunk-I7STMTNN.js} +1 -1
  38. package/build/runtime-chunk-I7STMTNN.js.br +0 -0
  39. package/build/runtime-chunk-I7STMTNN.js.gz +0 -0
  40. package/build/{runtime-chunk-7LHQNWDR.js → runtime-chunk-KCZORYPV.js} +1 -1
  41. package/build/runtime-chunk-KCZORYPV.js.br +0 -0
  42. package/build/runtime-chunk-KCZORYPV.js.gz +0 -0
  43. package/build/{runtime-chunk-TC6GJGWK.js → runtime-chunk-KMKMRLPZ.js} +1 -1
  44. package/build/runtime-chunk-KMKMRLPZ.js.br +0 -0
  45. package/build/runtime-chunk-KMKMRLPZ.js.gz +0 -0
  46. package/build/runtime-chunk-L2NL5YXU.js +1 -0
  47. package/build/runtime-chunk-L2NL5YXU.js.br +0 -0
  48. package/build/runtime-chunk-L2NL5YXU.js.gz +0 -0
  49. package/build/{runtime-chunk-PYKTMGCQ.js → runtime-chunk-O4DZYPVY.js} +1 -1
  50. package/build/runtime-chunk-O4DZYPVY.js.br +0 -0
  51. package/build/runtime-chunk-O4DZYPVY.js.gz +0 -0
  52. package/build/{runtime-chunk-3HFXKICM.js → runtime-chunk-PH5UDZNB.js} +1 -1
  53. package/build/runtime-chunk-PH5UDZNB.js.br +0 -0
  54. package/build/runtime-chunk-PH5UDZNB.js.gz +0 -0
  55. package/build/{runtime-chunk-BDB2UM3E.js → runtime-chunk-RDUTWN6C.js} +1 -1
  56. package/build/runtime-chunk-RDUTWN6C.js.br +0 -0
  57. package/build/runtime-chunk-RDUTWN6C.js.gz +0 -0
  58. package/build/{runtime-chunk-EBU2DUYR.js → runtime-chunk-RYUGWEP5.js} +1 -1
  59. package/build/runtime-chunk-RYUGWEP5.js.br +0 -0
  60. package/build/runtime-chunk-RYUGWEP5.js.gz +0 -0
  61. package/build/{runtime-chunk-XNWWSHHX.js → runtime-chunk-SQBR3AHX.js} +1 -1
  62. package/build/runtime-chunk-SQBR3AHX.js.br +0 -0
  63. package/build/runtime-chunk-SQBR3AHX.js.gz +0 -0
  64. package/build/{runtime-chunk-E37PNLQA.js → runtime-chunk-UOMKVRCI.js} +1 -1
  65. package/build/runtime-chunk-UOMKVRCI.js.br +0 -0
  66. package/build/runtime-chunk-UOMKVRCI.js.gz +0 -0
  67. package/build/{runtime-chunk-VUKMNTOJ.js → runtime-chunk-VWWXB6IZ.js} +1 -1
  68. package/build/runtime-chunk-VWWXB6IZ.js.br +0 -0
  69. package/build/runtime-chunk-VWWXB6IZ.js.gz +0 -0
  70. package/build/{runtime-chunk-SIW5ZXXW.js → runtime-chunk-XNP6WVCD.js} +1 -1
  71. package/build/runtime-chunk-XNP6WVCD.js.br +0 -0
  72. package/build/runtime-chunk-XNP6WVCD.js.gz +0 -0
  73. package/build/{runtime-chunk-VDECEEUG.js → runtime-chunk-ZKUUHGUC.js} +1 -1
  74. package/build/runtime-chunk-ZKUUHGUC.js.br +0 -0
  75. package/build/runtime-chunk-ZKUUHGUC.js.gz +0 -0
  76. package/build/{runtime-classicRuntime-OVWGPV5L.js → runtime-classicRuntime-TNL7CBXM.js} +1 -1
  77. package/build/runtime-classicRuntime-TNL7CBXM.js.br +0 -0
  78. package/build/runtime-classicRuntime-TNL7CBXM.js.gz +0 -0
  79. package/build/{runtime-cloners-GLDMG7SA.js → runtime-cloners-27S6KWC6.js} +1 -1
  80. package/build/runtime-cloners-27S6KWC6.js.br +0 -0
  81. package/build/runtime-cloners-27S6KWC6.js.gz +0 -0
  82. package/build/{runtime-components-SUBSTZH6.js → runtime-components-I5KTSVLS.js} +1 -1
  83. package/build/runtime-components-I5KTSVLS.js.br +0 -0
  84. package/build/runtime-components-I5KTSVLS.js.gz +0 -0
  85. package/build/{runtime-createDestroy-T5DB5MO5.js → runtime-createDestroy-XNHOEIHE.js} +1 -1
  86. package/build/runtime-createDestroy-XNHOEIHE.js.br +0 -0
  87. package/build/runtime-createDestroy-XNHOEIHE.js.gz +0 -0
  88. package/build/{runtime-dragDrop-6GRP57ZZ.js → runtime-dragDrop-EJURHFDP.js} +1 -1
  89. package/build/runtime-dragDrop-EJURHFDP.js.br +0 -0
  90. package/build/runtime-dragDrop-EJURHFDP.js.gz +0 -0
  91. package/build/{runtime-gameControls-7RZEWGMS.js → runtime-gameControls-I3TDMKMM.js} +1 -1
  92. package/build/runtime-gameControls-I3TDMKMM.js.br +0 -0
  93. package/build/runtime-gameControls-I3TDMKMM.js.gz +0 -0
  94. package/build/{runtime-hair-IDVGMIQR.js → runtime-hair-7AF42ZEV.js} +1 -1
  95. package/build/runtime-hair-7AF42ZEV.js.br +3 -0
  96. package/build/runtime-hair-7AF42ZEV.js.gz +0 -0
  97. package/build/{runtime-mergeStaticGeometries-TCAO7L7W.js → runtime-mergeStaticGeometries-CMNXMJX7.js} +1 -1
  98. package/build/runtime-mergeStaticGeometries-CMNXMJX7.js.br +0 -0
  99. package/build/runtime-mergeStaticGeometries-CMNXMJX7.js.gz +0 -0
  100. package/build/{runtime-miscActions-D7OUBVXP.js → runtime-miscActions-RTMQTDT6.js} +1 -1
  101. package/build/runtime-miscActions-RTMQTDT6.js.br +0 -0
  102. package/build/runtime-miscActions-RTMQTDT6.js.gz +0 -0
  103. package/build/{runtime-mouseHover-5RWIPLPT.js → runtime-mouseHover-AHE6I6SV.js} +1 -1
  104. package/build/runtime-mouseHover-AHE6I6SV.js.br +0 -0
  105. package/build/runtime-mouseHover-AHE6I6SV.js.gz +0 -0
  106. package/build/{runtime-particles-T4ZTN4UA.js → runtime-particles-MXEQMI7Q.js} +1 -1
  107. package/build/runtime-particles-MXEQMI7Q.js.br +0 -0
  108. package/build/runtime-particles-MXEQMI7Q.js.gz +0 -0
  109. package/build/{runtime-paths-QF6FE2PG.js → runtime-paths-WLTC7OEB.js} +1 -1
  110. package/build/runtime-paths-WLTC7OEB.js.br +0 -0
  111. package/build/runtime-paths-WLTC7OEB.js.gz +0 -0
  112. package/build/{runtime-resize-RQQGNYE6.js → runtime-resize-BRWYWZFI.js} +1 -1
  113. package/build/runtime-resize-BRWYWZFI.js.br +0 -0
  114. package/build/runtime-resize-BRWYWZFI.js.gz +0 -0
  115. package/build/{runtime-sceneTransition-XCV5BL3O.js → runtime-sceneTransition-PGYKMLTK.js} +1 -1
  116. package/build/runtime-sceneTransition-PGYKMLTK.js.br +0 -0
  117. package/build/runtime-sceneTransition-PGYKMLTK.js.gz +0 -0
  118. package/build/{runtime-scroll-JSZN255S.js → runtime-scroll-HEM5F77X.js} +1 -1
  119. package/build/runtime-scroll-HEM5F77X.js.br +0 -0
  120. package/build/runtime-scroll-HEM5F77X.js.gz +0 -0
  121. package/build/runtime-shapeBlends-JI4R2FKK.js +1 -0
  122. package/build/runtime-shapeBlends-JI4R2FKK.js.br +0 -0
  123. package/build/runtime-shapeBlends-JI4R2FKK.js.gz +0 -0
  124. package/build/{runtime-text-Z6REPBDZ.js → runtime-text-5L7U2KWC.js} +1 -1
  125. package/build/runtime-text-5L7U2KWC.js.br +0 -0
  126. package/build/runtime-text-5L7U2KWC.js.gz +0 -0
  127. package/build/{runtime-textInputs-B2P5OPTX.js → runtime-textInputs-CQGDKOON.js} +1 -1
  128. package/build/runtime-textInputs-CQGDKOON.js.br +0 -0
  129. package/build/runtime-textInputs-CQGDKOON.js.gz +0 -0
  130. package/build/runtime-timeline-52BHDGT4.js +1 -0
  131. package/build/runtime-timeline-52BHDGT4.js.br +0 -0
  132. package/build/runtime-timeline-52BHDGT4.js.gz +0 -0
  133. package/build/{runtime-tracking-4VLKE7TU.js → runtime-tracking-IADDNMW6.js} +1 -1
  134. package/build/runtime-tracking-IADDNMW6.js.br +0 -0
  135. package/build/runtime-tracking-IADDNMW6.js.gz +0 -0
  136. package/build/{runtime-transitions-WZDU2JY3.js → runtime-transitions-SH4NJ2V6.js} +1 -1
  137. package/build/runtime-transitions-SH4NJ2V6.js.br +0 -0
  138. package/build/runtime-transitions-SH4NJ2V6.js.gz +0 -0
  139. package/build/{runtime-ui2d-BKCDVHFO.js → runtime-ui2d-DRSBXRJY.js} +1 -1
  140. package/build/runtime-ui2d-DRSBXRJY.js.br +0 -0
  141. package/build/runtime-ui2d-DRSBXRJY.js.gz +0 -0
  142. package/build/{runtime-vectorShapes-UFJ5IRPT.js → runtime-vectorShapes-EEWWEBRI.js} +1 -1
  143. package/build/runtime-vectorShapes-EEWWEBRI.js.br +0 -0
  144. package/build/runtime-vectorShapes-EEWWEBRI.js.gz +0 -0
  145. package/build/{runtime-webgpu-ROKCO67O.js → runtime-webgpu-6IDSZMOL.js} +1 -1
  146. package/build/runtime-webgpu-6IDSZMOL.js.br +0 -0
  147. package/build/runtime-webgpu-6IDSZMOL.js.gz +0 -0
  148. package/build/runtime.cjs +6 -6
  149. package/build/runtime.js +1 -1
  150. package/build/runtime.js.br +0 -0
  151. package/build/runtime.js.gz +0 -0
  152. package/build/runtime.standalone.js +1 -1
  153. package/build/runtime.standalone.js.br +0 -0
  154. package/build/runtime.standalone.js.gz +0 -0
  155. package/build/runtime.standalone.webgl.js +1 -1
  156. package/build/runtime.standalone.webgl.js.br +0 -0
  157. package/build/runtime.standalone.webgl.js.gz +0 -0
  158. package/build/runtime.standalone.webgpu.js +1 -1
  159. package/build/runtime.standalone.webgpu.js.br +0 -0
  160. package/build/runtime.standalone.webgpu.js.gz +0 -0
  161. package/build/runtime.standalone.webgpu.micro.js +1 -1
  162. package/build/runtime.standalone.webgpu.micro.js.br +0 -0
  163. package/build/runtime.standalone.webgpu.micro.js.gz +0 -0
  164. package/build/runtime.standalone.webgpu.min.js +1 -1
  165. package/build/runtime.standalone.webgpu.min.js.br +0 -0
  166. package/build/runtime.standalone.webgpu.min.js.gz +0 -0
  167. package/package.json +1 -1
  168. package/build/runtime-chunk-2HC35I2G.js +0 -1
  169. package/build/runtime-chunk-2HC35I2G.js.br +0 -0
  170. package/build/runtime-chunk-2HC35I2G.js.gz +0 -0
  171. package/build/runtime-chunk-3HFXKICM.js.br +0 -0
  172. package/build/runtime-chunk-3HFXKICM.js.gz +0 -0
  173. package/build/runtime-chunk-4EZ7O4A2.js.br +0 -0
  174. package/build/runtime-chunk-4EZ7O4A2.js.gz +0 -0
  175. package/build/runtime-chunk-5VGFSUYB.js.br +0 -0
  176. package/build/runtime-chunk-5VGFSUYB.js.gz +0 -0
  177. package/build/runtime-chunk-7LHQNWDR.js.br +0 -0
  178. package/build/runtime-chunk-7LHQNWDR.js.gz +0 -0
  179. package/build/runtime-chunk-AIZLRXLL.js.br +0 -0
  180. package/build/runtime-chunk-AIZLRXLL.js.gz +0 -0
  181. package/build/runtime-chunk-BDB2UM3E.js.br +0 -0
  182. package/build/runtime-chunk-BDB2UM3E.js.gz +0 -0
  183. package/build/runtime-chunk-DJP4X7T7.js.br +0 -0
  184. package/build/runtime-chunk-DJP4X7T7.js.gz +0 -0
  185. package/build/runtime-chunk-E37PNLQA.js.br +0 -0
  186. package/build/runtime-chunk-E37PNLQA.js.gz +0 -0
  187. package/build/runtime-chunk-EBU2DUYR.js.br +0 -0
  188. package/build/runtime-chunk-EBU2DUYR.js.gz +0 -0
  189. package/build/runtime-chunk-EPITBSWH.js.br +0 -0
  190. package/build/runtime-chunk-EPITBSWH.js.gz +0 -0
  191. package/build/runtime-chunk-I6C7UVT4.js.br +0 -0
  192. package/build/runtime-chunk-I6C7UVT4.js.gz +0 -0
  193. package/build/runtime-chunk-IVOXIBX4.js.br +0 -0
  194. package/build/runtime-chunk-IVOXIBX4.js.gz +0 -0
  195. package/build/runtime-chunk-P2WZRCIB.js.br +0 -0
  196. package/build/runtime-chunk-P2WZRCIB.js.gz +0 -0
  197. package/build/runtime-chunk-PYKTMGCQ.js.br +0 -0
  198. package/build/runtime-chunk-PYKTMGCQ.js.gz +0 -0
  199. package/build/runtime-chunk-QSTRAO43.js.br +0 -0
  200. package/build/runtime-chunk-QSTRAO43.js.gz +0 -0
  201. package/build/runtime-chunk-SIW5ZXXW.js.br +0 -0
  202. package/build/runtime-chunk-SIW5ZXXW.js.gz +0 -0
  203. package/build/runtime-chunk-TC6GJGWK.js.br +0 -0
  204. package/build/runtime-chunk-TC6GJGWK.js.gz +0 -0
  205. package/build/runtime-chunk-TO7T7KNX.js.br +0 -0
  206. package/build/runtime-chunk-TO7T7KNX.js.gz +0 -0
  207. package/build/runtime-chunk-VDECEEUG.js.br +0 -0
  208. package/build/runtime-chunk-VDECEEUG.js.gz +0 -0
  209. package/build/runtime-chunk-VUKMNTOJ.js.br +0 -0
  210. package/build/runtime-chunk-VUKMNTOJ.js.gz +0 -0
  211. package/build/runtime-chunk-VWW23DE5.js.br +0 -0
  212. package/build/runtime-chunk-VWW23DE5.js.gz +0 -0
  213. package/build/runtime-chunk-XNWWSHHX.js.br +0 -0
  214. package/build/runtime-chunk-XNWWSHHX.js.gz +0 -0
  215. package/build/runtime-chunk-XQEURE23.js.br +0 -0
  216. package/build/runtime-chunk-XQEURE23.js.gz +0 -0
  217. package/build/runtime-chunk-XZLVKFF3.js.br +0 -1
  218. package/build/runtime-chunk-XZLVKFF3.js.gz +0 -0
  219. package/build/runtime-classicRuntime-OVWGPV5L.js.br +0 -0
  220. package/build/runtime-classicRuntime-OVWGPV5L.js.gz +0 -0
  221. package/build/runtime-cloners-GLDMG7SA.js.br +0 -1
  222. package/build/runtime-cloners-GLDMG7SA.js.gz +0 -0
  223. package/build/runtime-components-SUBSTZH6.js.br +0 -0
  224. package/build/runtime-components-SUBSTZH6.js.gz +0 -0
  225. package/build/runtime-createDestroy-T5DB5MO5.js.br +0 -0
  226. package/build/runtime-createDestroy-T5DB5MO5.js.gz +0 -0
  227. package/build/runtime-dragDrop-6GRP57ZZ.js.br +0 -0
  228. package/build/runtime-dragDrop-6GRP57ZZ.js.gz +0 -0
  229. package/build/runtime-gameControls-7RZEWGMS.js.br +0 -0
  230. package/build/runtime-gameControls-7RZEWGMS.js.gz +0 -0
  231. package/build/runtime-hair-IDVGMIQR.js.br +0 -0
  232. package/build/runtime-hair-IDVGMIQR.js.gz +0 -0
  233. package/build/runtime-mergeStaticGeometries-TCAO7L7W.js.br +0 -0
  234. package/build/runtime-mergeStaticGeometries-TCAO7L7W.js.gz +0 -0
  235. package/build/runtime-miscActions-D7OUBVXP.js.br +0 -0
  236. package/build/runtime-miscActions-D7OUBVXP.js.gz +0 -0
  237. package/build/runtime-mouseHover-5RWIPLPT.js.br +0 -0
  238. package/build/runtime-mouseHover-5RWIPLPT.js.gz +0 -0
  239. package/build/runtime-particles-T4ZTN4UA.js.br +0 -0
  240. package/build/runtime-particles-T4ZTN4UA.js.gz +0 -0
  241. package/build/runtime-paths-QF6FE2PG.js.br +0 -0
  242. package/build/runtime-paths-QF6FE2PG.js.gz +0 -0
  243. package/build/runtime-resize-RQQGNYE6.js.br +0 -0
  244. package/build/runtime-resize-RQQGNYE6.js.gz +0 -0
  245. package/build/runtime-sceneTransition-XCV5BL3O.js.br +0 -0
  246. package/build/runtime-sceneTransition-XCV5BL3O.js.gz +0 -0
  247. package/build/runtime-scroll-JSZN255S.js.br +0 -0
  248. package/build/runtime-scroll-JSZN255S.js.gz +0 -0
  249. package/build/runtime-shapeBlends-WHOB5WSG.js +0 -1
  250. package/build/runtime-shapeBlends-WHOB5WSG.js.br +0 -0
  251. package/build/runtime-shapeBlends-WHOB5WSG.js.gz +0 -0
  252. package/build/runtime-text-Z6REPBDZ.js.br +0 -0
  253. package/build/runtime-text-Z6REPBDZ.js.gz +0 -0
  254. package/build/runtime-textInputs-B2P5OPTX.js.br +0 -0
  255. package/build/runtime-textInputs-B2P5OPTX.js.gz +0 -0
  256. package/build/runtime-timeline-7W6JEZK4.js +0 -1
  257. package/build/runtime-timeline-7W6JEZK4.js.br +0 -0
  258. package/build/runtime-timeline-7W6JEZK4.js.gz +0 -0
  259. package/build/runtime-tracking-4VLKE7TU.js.br +0 -0
  260. package/build/runtime-tracking-4VLKE7TU.js.gz +0 -0
  261. package/build/runtime-transitions-WZDU2JY3.js.br +0 -0
  262. package/build/runtime-transitions-WZDU2JY3.js.gz +0 -0
  263. package/build/runtime-ui2d-BKCDVHFO.js.br +0 -0
  264. package/build/runtime-ui2d-BKCDVHFO.js.gz +0 -0
  265. package/build/runtime-vectorShapes-UFJ5IRPT.js.br +0 -0
  266. package/build/runtime-vectorShapes-UFJ5IRPT.js.gz +0 -0
  267. package/build/runtime-webgpu-ROKCO67O.js.br +0 -0
  268. package/build/runtime-webgpu-ROKCO67O.js.gz +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splinetool/runtime",
3
- "version": "2.0.59",
3
+ "version": "2.0.60",
4
4
  "description": "Spline is a collaborative design platform for creating production-ready interactive experiences in multiple dimensions. © 2026 Spline, Inc.",
5
5
  "keywords": [
6
6
  "spline",
@@ -1 +0,0 @@
1
- import{e,g as t,j as r}from"./runtime-chunk-3HFXKICM.js";import{a,b as n}from"./runtime-chunk-HD7WF3XN.js";import{c as i,e as s,f as o}from"./runtime-chunk-4EZ7O4A2.js";import{a as l}from"./runtime-chunk-EBU2DUYR.js";import{b as u}from"./runtime-chunk-SIW5ZXXW.js";import{Y as d,aa as c,ba as p,ha as h,i as f,ia as g}from"./runtime-chunk-TC6GJGWK.js";import{v as m}from"./runtime-chunk-PYKTMGCQ.js";import{d as b,e as y}from"./runtime-chunk-RTLL6WIB.js";import{c as v,d as w,e as S}from"./runtime-chunk-2PT2WH66.js";import{A as j,B as A,G as V,H as M,M as D,N as R,O as k,P as x,Q as E,R as O,ca as C,la as B,oa as G,z as P}from"./runtime-chunk-K3UQCG3P.js";import{Cc as N,Dc as I,Ec as F,Fc as z,Oc as T,Pc as q,Tc as W}from"./runtime-chunk-BVVSZMXD.js";var L=Math.fround,U=[.01,100],X=[.01,1e4],H=[.01,1e3],K=[.01,1e3];function Q(e,[t,r]){return Math.min(Math.max(e,t),r)}function Y(e,t,r,a,n){e=Q(e,U),t=Q(t,X),r=Q(r,H),a=Q(a,K);let i=Math.sqrt(t/e),s=r/(2*Math.sqrt(t*e)),o=s<1?i*Math.sqrt(1-s*s):0,l=s<1?(s*i-a)/o:-a+i;return e=>{let t=void 0!==n?n*e:e;return t=s<1?Math.exp(-t*s*i)*(1*Math.cos(o*t)+l*Math.sin(o*t)):(1+l*t)*Math.exp(-t*i),0===e||1===e?e:1-t}}var Z=L(.001),J=L(1e-7),$=L(.1);function _(e,t){return L(L(1-L(3*t))+L(3*e))}function ee(e,t){return L(L(3*t)-L(6*e))}function te(e){return L(3*e)}function re(e,t,r){return L(L(L(L(L(_(t,r)*e)+ee(t,r))*e)+te(t))*e)}function ae(e,t,r){let a=L(L(L(3*_(t,r))*e)*e),n=L(L(2*ee(t,r))*e);return L(L(a+n)+te(t))}var ne=e=>e;function ie(e,t,r,a){if(e=L(e),t=L(t),r=L(r),a=L(a),e<0||e>1||r<0||r>1||e===t&&r===a)return ne;let n=new Float32Array(11);for(let t=0;t<11;t++)n[t]=re(L(t*$),e,r);return i=>0===(i=L(i))||1===i?i:re((t=>{let a=0,i=1;for(;10!==i&&n[i]<=t;)a=L(a+$),i+=1;i-=1;let s=L(L(t-n[i])/L(n[i+1]-n[i])),o=L(a+L(s*$)),l=ae(o,e,r);return l>=Z?function(e,t,r,a){for(let n=0;n<4;n++){let n=ae(t,r,a);if(0===n)return t;let i=L(re(t,r,a)-e);t=L(t-L(i/n))}return t}(t,o,e,r):0===l?o:function(e,t,r,a,n){let i,s=0,o=0;do{s=L(t+L(L(r-t)/2)),i=L(re(s,a,n)-e),i>0?r=s:t=s,o+=1}while(Math.abs(i)>J&&o<10);return s}(t,a,L(a+$),e,r)})(i),t,a)}var se=L(1.70158);function oe(e,t,r){switch(e.easing){case 0:default:return r;case 1:return ie(.25,.1,.25,1)(r);case 2:return ie(.42,0,1,1)(r);case 3:return ie(0,0,.58,1)(r);case 4:return ie(.42,0,.58,1)(r);case 7:return ie(.25,1,.5,1)(r);case 8:return Math.floor(r);case 5:{let{control1:t,control2:a}=e;return t&&a?ie(t[0],t[1],a[0],a[1])(r):r}case 6:{let{mass:a,stiffness:n,damping:i,velocity:s}=e;return void 0===a||void 0===n||void 0===i||void 0===s?r:L(Y(a,n,i,s,t)(r))}}}L(se+1);var le=Math.fround,ue=class{constructor(e,t,r){this.apply=t,this.onStart=r,this.isPlaying=!1,this.isReversed=!1,this.endTime=0,this.startTime=0,this.isFirstLerpAfterStart=!1,this.config=e,this.duration=function(e,t){if(6!==e.easing)return t;let{mass:r,stiffness:a,damping:n,velocity:i}=e;return void 0===r||void 0===a||void 0===n||void 0===i?t:function(e,t,r,a){let n=.16666666666666666,i=0,s=0,o=Y(e,t,r,a);for(let e=0;e<1e5;e++)if(i+=n,1===o(i)){if(s+=1,s>=16)break}else s=0;return L(i*n)}(r,a,n,i)}(e.ease,le(e.duration/1e3)),this.delay=le(e.delay/1e3),this.currentRepeat=e.repeat}get repeatDirection(){return this.overrideDirection??this.config.direction}get isPingpong(){let e=this.repeatDirection;return"pingpong"===e||"pingpong-rewind"===e}get actualDelayDirection(){return this.isReversed?"start"===this.config.delayDirection?"end":"end"===this.config.delayDirection?"start":this.config.delayDirection:this.config.delayDirection}start(e){this.isPlaying=!0,this.currentRepeat=this.config.repeat,this.isFirstLerpAfterStart=!0,this.startTime=e,this.onStart?.()}endAfterCurrentPass(){this.currentRepeat<0&&(this.currentRepeat=0)}stop(){this.isPlaying=!1}rearm(){this.onStart?.()}seek(e){this.lerp(e)}update(e){if(!this.isPlaying)return;let t=a(e,this.startTime),r=0;if(this.isFirstLerpAfterStart||!this.isPingpong){let e=this.actualDelayDirection;if("start-once"===this.config.delayDirection&&this.isFirstLerpAfterStart||"start"===e||"start-end"===e){if(t<this.delay)return;r=this.delay}}t=le(t-r);let i=0===this.duration?1:Math.min(Math.max(le(t/this.duration),0),1);if(this.lerp(i),!this.isPlaying||1!==i)return;let s=this.actualDelayDirection;if("end"===s||"start-end"===s){if(t<le(this.duration+this.delay))return;this.endTime=n(this.startTime,le(le(r+this.duration)+this.delay))}else this.endTime=n(this.startTime,le(r+this.duration));this.isFirstLerpAfterStart=!1,0!==this.currentRepeat?(this.currentRepeat>0&&(this.currentRepeat-=1),this.isPingpong?this.isReversed=!this.isReversed:this.lerp(0),this.startTime=e,this.onStart?.()):this.stop()}lerp(e){"pingpong-rewind"===this.repeatDirection&&this.isReversed?(e=le(1-e),e=this.ease(e),e=le(1-e)):e=this.ease(e),this.apply(e)}ease(e){return oe(this.config.ease,this.duration,e)}},{degToRad:de,radToDeg:ce}=N,pe=new z,he=new z,fe=new F;function ge(e,t,r,a,n,i){let s=void 0!==r[e]?r[e]:void 0,o=a[e];if(null==o)return;let l=null!=s?"string"==typeof s?Number(n.getVariable(s)??0):s:t[e],u="string"==typeof o?Number(n.getVariable(o)??0):o;return l!==u?{update:r=>{let a=N.lerp(l,u,r);t[e]=i?Math.trunc(a):a},start:()=>{t[e]=l},end:()=>{t[e]=u}}:void 0}function me(e,t,r,a,n,i){let s=r[e]?r[e]:void 0,o=a[e];if(!o)return;let l=t[e],u=[...s??l].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e),d=[...o].map(e=>"string"==typeof e?Number(n.getVariable(e)??0):e);return u.length!==d.length||b(u,d)?void 0:{update:r=>{u.forEach((a,n)=>{let s=N.lerp(a,d[n],r);t[e][n]=i?Math.trunc(s):s})},start:()=>{Object.assign(t[e],u)},end:()=>{Object.assign(t[e],d)}}}function be(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function ye(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?be(new z,i,n):o.clone(),u=be(new z,s,n);return l.equals(u)?void 0:{update:e=>{o.lerpVectors(l,u,e)},start:()=>{o.copy(l)},end:()=>{o.copy(u)}}}function ve(e,t,r){return t.forEach((t,a)=>{e.setComponent(a,"string"==typeof t?Number(r.getVariable(t)??0):t)}),e}function we(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=!(o instanceof I),u=o instanceof I?o:(new I).fromArray(o),d=i?ve(new I,i,n):u.clone(),c=ve(new I,s,n);return d.equals(c)?void 0:{update:r=>{u.lerpVectors(d,c,r),l&&(t[e]=u.toArray())},start:()=>{u.copy(d),l&&(t[e]=u.toArray())},end:()=>{u.copy(c),l&&(t[e]=u.toArray())}}}function Se(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=new f(o.r,o.g,o.b,o.a),u=i?"string"==typeof i?n.getColor(i).clone():new f(i.r,i.g,i.b,i.a):l.clone(),d="string"==typeof s?n.getColor(s).clone():new f(s.r,s.g,s.b,s.a);return u.equals(d)?void 0:{update:r=>{l.lerpColors(u,d,r);let a=N.lerp(u.a,d.a,r);l.a=a,t[e]={r:l.r,g:l.g,b:l.b,a:l.a}},start:()=>{l.copy(u)},end:()=>{l.copy(d)}}}function je(e,t,r,a,n){return"number"==typeof t[e]?ge(e,t,r??{},a,n):Array.isArray(t[e])?me(e,t,r??{},a,n):void 0}function Ae(e,t){if(e)for(let[r,a]of Object.entries(t)){let t=e[r];if(Array.isArray(t)&&Array.isArray(a)){let e=Math.min(t.length,a.length);for(let r=0;r<e;r++)t[r]=a[r]}else e[r]=a}}function Ve(e,t,r,a){let n={};if(!t||!r)return n;for(let i of e){let e=t[i],s=r[i];if("number"==typeof e&&"number"==typeof s)n[i]=N.lerp(e,s,a);else if(Array.isArray(e)&&Array.isArray(s)){let t=Math.min(e.length,s.length);n[i]=Array.from({length:t},(t,r)=>N.lerp(e[r],s[r],a))}}return n}function Me(e,t,r,a,n){let i=e.getValue(a);if(void 0!==i){if("colors"===a)return function(e,t,r,a="colors"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i.map(e=>e.toArray()),o=r[a];for(let e=0;e<i.length;++e){let t=[...s[e]],r=[...o[e]];A.isEqual(t,r)||n.push({update:a=>{i[e].fromArray(A.lerp(t,r,a))},start:()=>{i[e].fromArray(t)},end:()=>{i[e].fromArray(r)}})}return n.length?n:void 0}(e,t,r,a);if(Array.isArray(i))return"steps"===a?function(e,t,r,a="steps"){if(!e.hasValue(a)||!(a in r))return;let n=[],i=e.getValue(a),s=t?t[a]:i,o=r[a];return b(s,o)||n.push({update:t=>{let r=[...i];for(let e=0;e<i.length;++e){let a=s[e],n=o[e];r[e]=N.lerp(a,n,t)}e.setValue(a,r)},start:()=>{e.setValue(a,s)},end:()=>{e.setValue(a,o)}}),n.length?n:void 0}(e,t,r,a):void 0;if("number"==typeof i)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:e.getValue(a),s=r[a],o="string"==typeof i?Number(n.getVariable(i)??0):i,l="string"==typeof s?Number(n.getVariable(s)??0):s;return{update:t=>{e.setValue(a,N.lerp(o,l,t))},start:()=>{e.setValue(a,o)},end:()=>{e.setValue(a,l)}}}(e,t,r,a,n);if("boolean"!=typeof i){if(i instanceof I)return function(e,t,r,a){if(!e.hasValue(a)||!(a in r))return;let n=e.getValue(a),i=t?(new I).fromArray(t[a]):n.clone(),s=(new I).fromArray(r[a]);return i.equals(s)?void 0:{update:e=>{n.lerpVectors(i,s,e)},start:()=>{n.copy(i)},end:()=>{n.copy(s)}}}(e,t,r,a);if(i instanceof z)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=e.getValue(a),s=t?t[a]:void 0,o=r[a],l=s?be(new z,s,n):i.clone(),u=be(new z,o,n);return l.equals(u)?void 0:{update:e=>{i.lerpVectors(l,u,e)},start:()=>{i.copy(l)},end:()=>{i.copy(u)}}}(e,t,r,a,n);if(i instanceof f)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():new f(s.r,s.g,s.b,s.a);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if(i instanceof W)return function(e,t,r,a,n){if(!e.hasValue(a)||!(a in r))return;let i=t?t[a]:void 0,s=r[a],o=e.getValue(a),l=i?"string"==typeof i?n.color(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.color(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:t=>{e.getValue(a)!==d&&e.setValue(a,d),d.lerpColors(l,u,t)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}(e,t,r,a,n);if("isTexture"in i)return function(e,t,r,a="texture",n){if(!e.hasValue(a)||!(a in r))return;let i=e=>Number("string"==typeof e?n?.getVariable(e)??0:e??0),s=e.getNode("rotation"),o=t?i(t[a]?.rotation):(s?.value??0)*N.RAD2DEG,l=i(r[a]?.rotation);if(s&&Math.abs(o-l)>1e-9)return{update:e=>{s.value=N.lerp(o,l,e)*N.DEG2RAD},start:()=>{s.value=o*N.DEG2RAD},end:()=>{s.value=l*N.DEG2RAD}};let u=function(e){let t=e.getNode("mat");if("function"==typeof t?.updateMatrix)return t;let r=e.getValue("mat");return"function"==typeof r?.updateMatrix?r:void 0}(e);if(!u)return;let d=t?t[a]:u,c=r[a],p=[...d.repeat],h=[...d.offset],f=[...c.repeat],g=[...c.offset],m=d.rotation??0,b=c.rotation??0;return P.isEqual(p,f)&&P.isEqual(h,g)&&m===b?void 0:{update:e=>{u.repeat=P.lerp(p,f,e),u.offset=P.lerp(h,g,e),u.rotation=N.lerp(m,b,e),u.updateMatrix()},start:()=>{u.repeat=[...p],u.offset=[...h],u.rotation=m,u.updateMatrix()},end:()=>{u.repeat=[...f],u.offset=[...g],u.rotation=b,u.updateMatrix()}}}(e,t,r,a,n)}}}function De(e,t,r,a){let n=[],i=d(r,a)||!!t.layers&&d(t,a);n.push(function(e,t){return{update:()=>{e.setTransparent(t)}}}(e,i)),function(e,t,r){let a=e.ensureRainbowNoiseCompiled;if("function"==typeof a)for(let n of[...e.layers]){if("rainbow"!==n.type)continue;let i=t.layers?.data(n.uuid),s=r.layers.data(n.uuid);(c(i?.noiseStrength)||c(s?.noiseStrength))&&a.call(e,n.uuid)}}(e,t,r);for(let i of e.layers){let e=t.layers?.data(i.uuid),s=r.layers.data(i.uuid);if(!s||"light"!==i.type&&(!(i.visible??1)||!(s.visible??1)))continue;let o=p[i.type]??[],l=i.getNames().filter(e=>!o.includes(e)&&!C.some(t=>e.includes(t)));for(let t of l)try{let r=Me(i,e,s,t,a);r&&(Array.isArray(r)?n.push(...r):n.push(r))}catch(e){console.error(`lerpMaterial: unexpected material layer for ${t}`,e)}}return n}function Re(e,t,r,a,n,i){let s=Me(t,r,a,e,i);!s||(Array.isArray(s)?s.forEach(e=>e.update(n)):s.update(n))}new q;var ke=new z,xe=new q;var Ee=[["radial",R],["linear",k],["grid",x],["toObject",E],["randomnessObject",O]];function Oe(e,t,r,a){if(!e)return{};let n=Ve(["count"],t,r,a);void 0!==n.count&&(n.count=Math.trunc(n.count));for(let[i,s]of Ee){if(!e[i])continue;let o=Ve(s,t[i],r[i],a);Object.keys(o).length&&(n[i]=o)}return n}function Ce(e,t){if(e){void 0!==t.count&&(e.count=t.count);for(let[r]of Ee){let a=t[r];a&&Ae(e[r],a)}}}function Be(a,n,d,c,p){let f=[];return a.data.visible&&f.push(...function(e,t,r,a,n){let i,l,u,d,c,p,h,f,g=[];if(S(e)?(i=we("position",e,t,r,n),i&&g.push(i),u=ge("rotation",e,t,r,n),u&&g.push(u),d=we("shear",e,t,r,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},p=ge("slide",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),p&&g.push(p),h=ge("offset",f,t.pathSnapping??e.updatedPathSnapping??e.dataPatched.pathSnapping,r.pathSnapping??e.dataPatched.pathSnapping,n),h&&g.push(h),!p&&!h&&(i=ye("position",e,t,r,n),i&&g.push(i),l=ye("scale",e,t,r,n),l&&g.push(l),u=function(e,t,r,a,n){let i=t?.rotation?t.rotation.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*N.DEG2RAD):void 0,s=r.rotation?.map(e=>("string"==typeof e?Number(n.getVariable(e)??0):e)*N.DEG2RAD);if(!s)return;let o=i?(new z).fromArray(i):(new z).setFromEuler(e.rotation),l=(new z).fromArray(s);if(o.equals(l))return;let u=ke.subVectors(l,o);if(a&&u.toArray().every(e=>Math.abs(e)<2*Math.PI)){let t=(new F).setFromEuler(xe.setFromVector3(o)),r=(new F).setFromEuler(xe.setFromVector3(l));return{update:a=>{!function(e,t,r,a){if(0===a)return r.copy(e);if(1===a)return r.copy(t);let n=e.w*t.w+e.x*t.x+e.y*t.y+e.z*t.z;if(n>=1)return r.copy(e);let i=1-n*n;if(i<=Number.EPSILON){let n=1-a;return r.w=n*e.w+a*t.w,r.x=n*e.x+a*t.x,r.y=n*e.y+a*t.y,r.z=n*e.z+a*t.z,r.normalize(),r}let s=Math.sqrt(i),o=Math.atan2(s,n),l=Math.sin((1-a)*o)/s,u=Math.sin(a*o)/s;r.w=e.w*l+t.w*u,r.x=e.x*l+t.x*u,r.y=e.y*l+t.y*u,r.z=e.z*l+t.z*u}(t,r,e.quaternion,a)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}return{update:t=>{ke.lerpVectors(o,l,t),e.rotation.setFromVector3(ke)},start:()=>{e.rotation.setFromVector3(o)},end:()=>{e.rotation.setFromVector3(l)}}}(e,t,r,a,n),u&&g.push(u),c=function(e,t,r,a){let n=r[e]?r[e]:void 0,i=a[e];if(!i)return;let s=t[e],o=n?(new T).fromArray(n):s.clone(),l=new z,u=new F,d=new z;o.decompose(l,u,d);let c=(new T).fromArray(i),p=new z,h=new F,f=new z;return c.decompose(p,h,f),o.equals(c)?void 0:{update:e=>{fe.slerpQuaternions(u,h,e),pe.lerpVectors(l,p,e),he.lerpVectors(d,f,e),s.compose(pe,fe,he)},start:()=>{s.compose(l,u,d)},end:()=>{s.compose(p,h,f)}}}("hiddenMatrix",e,t,r),c&&g.push(c))),i||l||u||c||p||h){let r=S(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)&&o(e.parent)&&e.invalidateDownstreamBooleanData(!0),e.updatePathSnapping(Object.assign({},t.pathSnapping,f))};g.push({update:r,start:r,end:r})}return g}(a,n,d,p,c.shared)),S(a)?f.push(...function(a,n,i,s,o){let l,u,d,c,p,h,f,g,m,b,y,v,w,S,j,A=[];if("width"in a&&(l=ge("width",a,n,i,o),l&&A.push(l)),"height"in a&&(u=ge("height",a,n,i,o),u&&A.push(u)),a instanceof e||a instanceof r){let t={...n.fill},r={...i.fill};void 0!==t.enabled&&t.enabled!==r.enabled&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.fill.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),d=Se("color",a.fill,t,r,o),d&&A.push(d)}if(a instanceof e){let t={...n.stroke},r={...i.stroke};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.stroke.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),c=Se("color",a.stroke,t,r,o),c&&A.push(c),p=ge("thickness",a.stroke,t,r,o),p&&A.push(p)}if(a instanceof e){let t={...n.dropShadow},r={...i.dropShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.dropShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),h=Se("color",a.dropShadow,t,r,o),h&&A.push(h),f=ge("blurRadius",a.dropShadow,t,r,o),f&&A.push(f),m=ge("spread",a.dropShadow,t,r,o),m&&A.push(m),g=we("offset",a.dropShadow,t,r,o),g&&A.push(g)}if(a instanceof e){let t={...n.innerShadow},r={...i.innerShadow};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.innerShadow.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,color:{...t.color,a:0}}),r.enabled||Object.assign(r,{enabled:!0,color:{...r.color,a:0}})),b=Se("color",a.innerShadow,t,r,o),b&&A.push(b),y=ge("blurRadius",a.innerShadow,t,r,o),y&&A.push(y),w=ge("spread",a.innerShadow,t,r,o),w&&A.push(w),v=we("offset",a.innerShadow,t,r,o),v&&A.push(v)}if(a instanceof e||a instanceof r){let t={...n.backgroundBlur},r={...i.backgroundBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.backgroundBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),S=ge("radius",a.backgroundBlur,t,r,o),S&&A.push(S)}if(a instanceof e){let t={...n.layerBlur},r={...i.layerBlur};(t.enabled||r.enabled)&&(A.push(function(t){return{update:()=>{t instanceof e&&(t.layerBlur.enabled=!0)}}}(a)),t.enabled||Object.assign(t,{enabled:!0,radius:0}),r.enabled||Object.assign(r,{enabled:!0,radius:0})),j=ge("radius",a.layerBlur,t,r,o),j&&A.push(j)}if(a instanceof r||a instanceof t){let e=me("cornerRadius",a,n,i,o);e&&A.push(e)}return A}(a,n,d,0,c.shared)):(a.data.visible&&f.push(...function(e,t,r,a){let n=[];if(!("cloner"in r)||!e.cloner)return n;let i=e.cloner,s="cloner"in t?t.cloner:{},o=r.cloner;D.forEach(e=>{let t;t="count"===e?ge("count",i.parameters,s,o,a.shared,!0):je(e,i.parameters,s??{},o,a.shared),t&&n.push(t)});let l=function(e,t,r,a){if("radial"!==e.parameters.type)return;let n=t.radial,i=r.radial;if(!i)return;let s=e.parameters.radial,o=[];return R.forEach(e=>{let t=je(e,s,n??{},i,a);t&&o.push(t)}),o}(i,s,o,a.shared);l?.length&&n.push(...l);let u=function(e,t,r,a){if("linear"!==e.parameters.type)return;let n=t.linear,i=r.linear;if(!i)return;let s=[],o=e.parameters.linear;return k.forEach(e=>{let t=je(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);u?.length&&n.push(...u);let d=function(e,t,r,a){if("grid"!==e.parameters.type)return;let n=t.grid,i=r.grid;if(!i)return;let s=[],o=e.parameters.grid;return x.forEach(e=>{let t;t="count"===e?me(e,o,n??{},i,a,!0):je(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);d?.length&&n.push(...d);let c=function(e,t,r,a){if("toObject"!==e.parameters.type)return;let n=t.toObject,i=r.toObject;if(!i)return;let s=[],o=e.parameters.toObject;return E.forEach(e=>{let t;t="count"===e?ge(e,o,n??{},i,a,!0):je(e,o,n??{},i,a),t&&s.push(t)}),s}(i,s,o,a.shared);c?.length&&n.push(...c);let p=function(e,t,r,a){if(!e.parameters.randomness)return;let n=t.randomnessObject,i=r.randomnessObject;if(!i)return;let s=[],o=e.parameters.randomnessObject;return O.forEach(e=>{let t=je(e,o,n??{},i,a);t&&s.push(t)}),s}(i,s,o,a.shared);return p?.length&&n.push(...p),n.length&&n.push({update:()=>{i.update(a)}}),n}(a,n,d,c)),a instanceof m?(a instanceof g&&a.data.visible&&f.push(...function(e,t,r,a){let n=[];if(!("geometry"in r)||v(e))return n;let i=e.geometry.userData.parameters,s="geometry"in t?t.geometry:{},o=r.geometry;if(e instanceof u){let t=function(e,t,r,a){if(void 0===r.scaleBaked)return;let n=(t.scaleBaked??e.appliedGeometrySize??e.data.geometry.scaleBaked).map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e),i=r.scaleBaked.map(e=>"string"==typeof e?Number(a.shared.getVariable(e)??0):e);if(j.isEqual(n,i))return;let s=[];return s.push({update:t=>{e.updateGeometryInteractions({scaleBaked:[N.lerp(n[0],i[0],t),N.lerp(n[1],i[1],t),N.lerp(n[2],i[2],t)]},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},start:()=>{e.updateGeometryInteractions({scaleBaked:n},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)},end:()=>{e.updateGeometryInteractions({scaleBaked:i},a.shared),e.invalidateDownstreamBooleanData(),e.refreshAttachedClonersInteractions(a)}}),s}(e,s,o,a);t&&n.push(...t)}else{let t={},r=e.appliedGeometrySize;if(Object.assign(t,y(i,G),r?{width:r[0],height:r[1],depth:r[2]}:{},y(s,G)),G.forEach(e=>{let r=je(e,t,s,o,a.shared);r&&n.push(r)}),w(e)){Object.assign(t,{extrusion:{...i.extrusion}});let e=function(e,t,r,a){if(!r.extrusion)return;let n=e.extrusion,i=t.extrusion??{},s=r.extrusion,o=[];return B.forEach(e=>{let t=je(e,n,i,s,a);t&&o.push(t)}),o}(t,s,o,a.shared);e&&n.push(...e)}n.length&&n.push({update:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},start:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)},end:r=>{e.updateGeometryInteractions(t,a.shared),e.updateGeometryGroupsIfNeeded(),e.refreshAttachedClonersInteractions(a)}})}return n}(a,n,d,c)),a.data.visible&&!(a instanceof h&&a.materialOverride)&&f.push(...function(e,t,r,a){let n=[];if(Array.isArray(e.material)){if(!("materials"in r)||!r.materials)return n;let i="materials"in t&&t.materials?t.materials:[],s=r.materials;e.material.forEach((e,t)=>{if(!s[t])return;let r=i[t]??{},o=s[t];"string"==typeof r||"string"==typeof o||n.push(...De(e,r,o,a))})}else{if(!("material"in r)||!r.material)return n;let i="material"in t&&t.material?t.material:{},s=r.material;if("string"==typeof i||"string"==typeof s)return n;n.push(...De(e.material,i,s,a))}return n}(a,n,d,c.shared))):i.is(a)?a.data.visible&&f.push(...function(e,t,r,a){let n=[];if(void 0!==r.intensity){let i=ge("intensity",e,t,r,a);i&&n.push(i)}if(void 0!==r.color){let i=function(e,t,r,a,n){let i=r[e]?r[e]:void 0,s=a[e];if(!s)return;let o=t[e],l=i?"string"==typeof i?n.getColor(i).clone():(new W).setRGB(i.r,i.g,i.b):o.clone(),u="string"==typeof s?n.getColor(s).clone():(new W).setRGB(s.r,s.g,s.b);if(l.equals(u))return;let d=o.clone();return{update:r=>{d.lerpColors(l,u,r),t[e]?.copy?.(d)},start:()=>{d.copy(l)},end:()=>{d.copy(u)}}}("color",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared)):a instanceof l&&f.push(...function(e,t,r,a){let n=[],i="OrthographicCamera"===e.cameraType?t.orthographic?.zoom:t.perspective?.zoom,s="OrthographicCamera"===e.cameraType?r.orthographic?.zoom:r.perspective?.zoom;if(void 0!==s){let t=i??e.zoom,r=s;t!==r&&n.push({update:a=>{e.zoom=N.lerp(t,r,a),e.updateProjectionMatrix()},start:()=>{e.zoom=t,e.updateProjectionMatrix()},end:()=>{e.zoom=r,e.updateProjectionMatrix()}})}if(void 0!==r.targetOffset){let i=ge("targetOffset",e,t,r,a);i&&n.push(i)}return n}(a,n,d,c.shared))),f.length?{update:e=>{f.forEach(t=>t.update(e))},start:e=>{f.forEach(t=>t.start?.(e))},end:e=>{f.forEach(t=>t.end?.(e))}}:void 0}var Ge={type:"beginState"};function Pe(e){if(5===e.easing){let{control1:t,control2:r}=e;return{easing:5,control1:t??M.defaultData.control1,control2:r??M.defaultData.control2}}if(6===e.easing){let{mass:t,stiffness:r,damping:a,velocity:n}=e;return{easing:6,mass:t??V.defaultData.mass,stiffness:r??V.defaultData.stiffness,damping:a??V.defaultData.damping,velocity:n??V.defaultData.velocity}}return{easing:e.easing}}function Ne(e){return{delay:e.delay,delayDirection:e.delayDirection??"start-end",direction:e.direction??"normal",repeat:e.repeat}}var Ie={type:"completeState",isfromEntity:!1};function Fe(e,t){let r,a;if("string"==typeof t?(r=t,a=e.states?.[r]):null===t&&(r=null,a=e.data),void 0!==r&&void 0!==a)return{id:r,data:a}}var ze=["position","rotation","scale","shear","hiddenMatrix"],Te=new Set;function qe(e){if(e.length<2)return Te;let t=new Set,[r,...a]=e;for(let e of ze){let n=r[e];void 0!==n&&a.every(t=>b(t[e],n))&&t.add(e)}return t}var We=class{constructor(e,t,r,a,n,i,s,o={},l=()=>Te){var u;this.object=e,this.fromRef=t,this.toRef=r,this.data=a,this.sharedAssets=n,this.allowSlerp=i,this.page=s,this.hooks=o,this.inert=l,this.builtReversed=!1,this.startStateId=null,this.buildCallback=()=>{this.builtReversed=this.runner.isReversed,this.startStateId=S(this.object)?null:this.object.transitionState.state,this.callback=Be(this.object,{},function(e,t){if(0===t.size)return e;let r={...e};for(let e of t)delete r[e];return r}(this.end.data,this.inert()),{scene:this.page.scene,shared:this.sharedAssets},this.allowSlerp)},this.onChange=e=>{this.builtReversed!==this.runner.isReversed&&this.buildCallback(),this.callback&&(this.callback.update(e),this.object.requestRender()),this.writeState(e)},this.runner=new ue({duration:(u=a).duration,ease:Pe(u),...Ne(u)},this.onChange,this.buildCallback),this.rebind()}rebind(){let{fromRef:e,toRef:t}=this;if(void 0===e){let e=Fe(this.object,this.object.currentState===t?this.object.prevState:this.object.currentState);if(!e)throw new Error("Missing property");this.from=e}else{let t=Fe(this.object,e);if(!t)throw new Error("Missing property");this.from=t}if(void 0===t)throw new Error("Missing property");let r=Fe(this.object,t);if(!r)throw new Error("Missing property");this.to=r,this.buildCallback()}refresh(){this.buildCallback()}get endpointData(){return[this.from.data,this.to.data]}get targetStateId(){return this.builtReversed?this.from.id:this.to.id}get start(){return this.builtReversed?this.to:this.from}get end(){return this.builtReversed?this.from:this.to}writeState(e){if(0===e||S(this.object))return;let t=1===e,r=e>.5?this.targetStateId:this.startStateId,a=this.object.transitionState;a.settled===t&&a.state===r||(this.object.transitionState={settled:t,state:r},this.object.reversibleToState=this.end.id,this.object.prevState!==this.object.currentState&&(this.object.prevState=this.object.currentState),this.object.currentState=r,this.object.dispatchEvent({type:"transitionState",settled:t,state:r}),this.object.dispatchEvent({type:t?"completeState":"beginState",state:r}),this.object.traverseEntity(e=>{e!==this.object&&e instanceof l&&e.dispatchEvent(t?Ie:Ge)}),t?this.hooks.onComplete?.(r):this.hooks.onBegin?.(r))}};export{oe as a,ue as b,Ve as c,Oe as d,Ce as e,Re as f,Ge as g,Pe as h,Ne as i,Ie as j,Fe as k,Te as l,qe as m,We as n};
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
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
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
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- G ��8�Kw��ٶT��!�(�u�C�n9�2,�F}��~e��B t&�u���-K�=� �V^�b���p{�l~��J���}ɭ���x �U�ag 9��Gݔ�n!l�v��1��k�I2��(�&���
Binary file
@@ -1 +0,0 @@
1
- W`�ø�۴������f��5��!����i�~��k�m��ȩ�Il�!$�CP�G�����yС/x�B�}rc�v�|��/��д^�q8���.x�����,Е�/wv*��a|O$V!6~�������v=(Vp�ޟ`(���}�������p�L+9%vh�P�tζ��!x�/L�k)�o4����_>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{k as m}from"./runtime-chunk-VUKMNTOJ.js";import"./runtime-chunk-XNWWSHHX.js";import"./runtime-chunk-7LHQNWDR.js";import"./runtime-chunk-XZLVKFF3.js";import"./runtime-chunk-SIW5ZXXW.js";import"./runtime-chunk-E37PNLQA.js";import"./runtime-chunk-XQEURE23.js";import"./runtime-chunk-QSTRAO43.js";import"./runtime-chunk-TC6GJGWK.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import"./runtime-chunk-PYKTMGCQ.js";import"./runtime-chunk-RTLL6WIB.js";import"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-EFBUAWKV.js";import{a as n,f as r}from"./runtime-chunk-TZCHGFVF.js";import"./runtime-chunk-K3UQCG3P.js";import"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";r("ShapeBlendGeometry",(n,r,t)=>new m(n,r,t)),n("shape-blends");
Binary file
Binary file
@@ -1 +0,0 @@
1
- import{a as e,c as t,d as i,e as a,f as n,g as s,j as r}from"./runtime-chunk-2HC35I2G.js";import"./runtime-chunk-3HFXKICM.js";import"./runtime-chunk-NTUTXO7Q.js";import"./runtime-chunk-HD7WF3XN.js";import{a as o}from"./runtime-chunk-VDECEEUG.js";import{a as l}from"./runtime-chunk-GGSUJEGZ.js";import{a as h,b as c}from"./runtime-chunk-EPITBSWH.js";import"./runtime-chunk-4EZ7O4A2.js";import"./runtime-chunk-FTVQTRM7.js";import{a as d}from"./runtime-chunk-EBU2DUYR.js";import"./runtime-chunk-SIW5ZXXW.js";import"./runtime-chunk-E37PNLQA.js";import"./runtime-chunk-QSTRAO43.js";import{aa as u,ga as p,ia as f}from"./runtime-chunk-TC6GJGWK.js";import"./runtime-chunk-4YV3EXSU.js";import"./runtime-chunk-NSD7DU3P.js";import{b as m,e as y}from"./runtime-chunk-M6FFVLT6.js";import{v as g}from"./runtime-chunk-PYKTMGCQ.js";import"./runtime-chunk-RTLL6WIB.js";import{d as v}from"./runtime-chunk-2PT2WH66.js";import"./runtime-chunk-EFBUAWKV.js";import{a as k}from"./runtime-chunk-TZCHGFVF.js";import{A as x,B as D,D as T,E,Ea as j,Ja as b,Ka as C,La as O,la as A,p as I,ua as w,z as M}from"./runtime-chunk-K3UQCG3P.js";import{Bc as F,Cc as S}from"./runtime-chunk-BVVSZMXD.js";import"./runtime-chunk-ML3Z74BL.js";var _=Math.fround;function B(e){return"pingpong"===e||"pingpong-rewind"===e}var N=class{constructor(e){this.config=e,this.effectiveCycleDuration=this.cycleDuration(0)}layout(e){let{config:t}=this;if(B(t.direction)&&e%2==1)return{startDelay:0,endDelay:0};switch(t.delayDirection){case"start-once":return 0===e?{startDelay:t.delay,endDelay:0}:{startDelay:0,endDelay:0};case"start":return{startDelay:t.delay,endDelay:0};case"end":return{startDelay:0,endDelay:t.delay};default:return{startDelay:t.delay,endDelay:t.delay}}}cycleDuration(e){let{config:t}=this,{startDelay:i,endDelay:a}=this.layout(e);return _(t.duration+i+a)}get totalDuration(){let{config:e}=this;if(-1===e.repeat)return 1/0;let t=0;for(let i=0;i<=e.repeat;i++)t=_(t+this.cycleDuration(i));return t}isFinished(e){return e>=this.totalDuration}resolve(e){let t,i,{config:a}=this,n=_(e);if("start-once"===a.delayDirection){let e=_(a.delay+a.duration);if(n<e)t=0,i=n;else{let s=_(n-e);t=1+Math.floor(_(s/a.duration)),i=_(s%a.duration)}}else if(B(a.direction)){let e=this.cycleDuration(0),s=_(e+a.duration),r=Math.floor(_(n/s)),o=_(n%s);o<e?(t=2*r,i=o):(t=2*r+1,i=_(o-e))}else{let e=this.cycleDuration(0);t=Math.floor(_(n/e)),i=_(n%e)}if(-1!==a.repeat&&t>=a.repeat+1)return null;let s,{startDelay:r}=this.layout(t),o=B(a.direction)&&t%2==1,l=r,h=_(l+a.duration);if(i<l)s=o?a.duration:0;else if(i>=h)s=o?0:a.duration;else{let e=_(i-l);s=o?_(a.duration-e):e}return{cycleIndex:t,localTime:s,isReverse:o}}},G=Math.fround;function P(e){return[...e].sort((e,t)=>e.time-t.time)}function U(e){return{easing:e.type,control1:b(e.cubicControls?.control1,[0,0]),control2:b(e.cubicControls?.control2,[1,1]),...e.springParameters}}function L(e,t){let i=[];for(let a of e??[]){let e=t(a.data);void 0!==e&&i.push({time:a.data.time,ease:U(a.data.easing),value:e})}return{keyframes:P(i)}}function z(t,i){if(0===t.keyframes.length)return;let{index0:a,index1:n,t:s}=function(t,i){if(0===t.length)throw new Error("sampleKeyframes requires at least one keyframe");if(i<=t[0].time)return{index0:0,index1:0,t:1};let{found:a,index:n}=function(e,t){let i=e.length,a=0,n=i;for(;a<n;){let s=a+Math.floor(i/2),r=e[s].time;if(r<t)a=s+1;else{if(!(r>t))return{found:!0,index:s};n=s}i=n-a}return{found:!1,index:a}}(t,i);if(a)return{index0:n,index1:n,t:1};if(n>=t.length){let e=t.length-1;return{index0:e,index1:e,t:1}}let s=n-1,r=n,o=t[s].time,l=t[r].time;if(l===o)return{index0:s,index1:r,t:.5};let h=G(l-o),c={...t[s].ease,control2:t[r].ease.control2};return{index0:s,index1:r,t:e(c,h,G(G(i-o)/h))}}(t.keyframes,i),r=t.read;if(r&&r.index0===a&&r.index1===n&&r.t===s)return;let o={index0:a,index1:n,from:t.keyframes[a].value,to:t.keyframes[n].value,t:s};return t.read=o,o}function R(e){e.read=void 0}function V(e,t,i){return e+(t-e)*i}function K(e,t,i){!e||(e[t]={...e[t],...i})}function W(e,s,r,l,u,p,m){let y=()=>{m.transform=!0,m.bounds=!0,m.boolean=!0,m.render=!0};switch(e.on){case"position":case"scale":{let t=z(e.track,r);if(!t)return;let i=V(t.from,t.to,t.t);return s[e.on][e.axis]=i,K(p,e.on,{[e.axis]:i}),void y()}case"rotation":{let t=z(e.track,r);if(!t)return;let i=V(t.from,t.to,t.t);return s.rotation[e.axis]=i*S.DEG2RAD,K(p,"rotation",{[e.axis]:i}),void y()}case"shapeSize":{let t=z(e.track,r);if(!(t&&s instanceof f))return;let i=V(t.from,t.to,t.t);return s.userData.value={...s.userData.value,[e.axis]:i},K(p,"shapeSize",{[e.axis]:i}),m.size=!0,m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"opacity":{let t=z(e.track,r);if(!t||!(s instanceof g)||Array.isArray(s.material))return;let i=s.material.getLayersOfType("light")[0];if(void 0===i)return;let a=S.lerp(t.from,t.to,t.t);return s.material.transparent=!0,n("alphaOverride",i,{alphaOverride:a},{alphaOverride:a+1},0,l.shared),p&&(p.opacity=a),void(m.render=!0)}case"material":{let t=z(e.track,r);if(!t||0===Object.keys(t.from).length||0===Object.keys(t.to).length)return;let{layer:i}=e,a={};for(let e in i.data){if(!(e in t.from)||!(e in t.to))continue;let r=X(t.from[e],t.to[e],t.t,u);if(void 0===r)continue;a[e]=r;let o=i.getValue(e);void 0!==o&&("alpha"===e&&"number"==typeof o&&o>0&&s instanceof g&&!Array.isArray(s.material)&&(s.material.transparent=!0),n(e,i,t.from,t.to,t.t,l.shared))}return K(p,"material",{[i.uuid]:a}),void(m.render=!0)}case"light":{let t=z(e.track,r);if(!t||!(s instanceof h||s instanceof o||s instanceof c))return;let i=X(t.from,t.to,t.t,u);return s[e.field]=i,K(p,"light",{[e.field]:i}),void(m.render=!0)}case"camera":{let t=z(e.track,r);if(!(t&&s instanceof d))return;let i=V(t.from,t.to,t.t);return s[e.field]=i,void K(p,"camera",{[e.field]:i})}case"cloner":{let t=z(e.track,r);if(!t)return;let n=s.cloner?.parameters,o=i(n,t.from,t.to,t.t);return a(n,o),K(p,"cloner",o),m.cloner=!0,m.boolean=!0,void(m.render=!0)}case"pathExtrusion":{let i=z(e.track,r);if(!i||!v(s))return;let a=t(A,i.from,i.to,i.t),n=s.geometry.userData.parameters;return n.extrusion={...n.extrusion,...a},K(p,"pathExtrusion",a),s.updateGeometryInteractions({extrusion:{...n.extrusion}},l.shared),m.bounds=!0,m.boolean=!0,void(m.render=!0)}case"pathSnapping":{let i=z(e.track,r);if(!i)return;let a=s,n=t(w,i.from,i.to,i.t);return a.userData.pathSnapping={...a.userData.pathSnapping,...n},K(p,"pathSnapping",n),a.updatePathSnapping(a.userData.pathSnapping),void(m.render=!0)}}}function X(e,t,i,a){if("string"==typeof e&&a&&(e=a.color(e)),"string"==typeof t&&a&&(t=a.color(t)),"number"==typeof e)return S.lerp(e,t,i);if(E.is(e))return E.lerp(e,t,i);if(T.is(e))return T.lerp(e,t,i);if(Array.isArray(e))return(e.length>t.length?t:e).map((a,n)=>{if(Array.isArray(a)){let a=e[n].length>t[n].length?t[n].length:e[n].length;return(4===a?D:3===a?x:M).lerp(e[n],t[n],i)}return S.lerp(e[n],t[n],i)});if("object"==typeof e&&null!==e){let n={};for(let s in e){let r=X(e[s],t[s],i,a);void 0!==r&&(n[s]=r)}return n}}var H=new Map,Q=new Map,Z=class extends F{constructor(e,t,i,a,n,s,r){super(),this.id=e,this.data=t,this.scene=i,this.sharedAssets=a,this.object=n,this.eventType=s,this.actionCondition=r,this.evaluators=[],this.elapsed=0,this.lastTime=null,this.direction=1,this._playing=!1,this._finished=!1,this.hasPlayedOnce=!1,this.pauseOnNextCycleEnd=!1,this.lastCycleIndex=0;try{let e=j.findTimeline(this.scene.data.objects,this.data.timeline),t=e.duration;this.animatedObjectIds=Object.keys(e.objectTimelines),this.animatedObjectIds.forEach(n=>{let s=this.scene.find(n);if(!s)return;let r=e.objectTimelines[n];!r||this.evaluators.push(function(e,t,i,a,n){let s=function(e,t){let i=[];return C.groupKeyframes(t.keyframes).forEach(t=>{let a=t.path?.[0],n=t.path[1],s=()=>L(t.keyframes,e=>e.value);switch(a){case"position":case"rotation":case"scale":return void(n&&O.includes(n)&&i.push({on:a,axis:n,track:s()}));case"shape size":return void(n&&O.includes(n)&&"geometry"in e&&i.push({on:"shapeSize",axis:n,track:s()}));case"path extrusion":return void(v(e)&&i.push({on:"pathExtrusion",track:L(t.keyframes,e=>e.value)}));case"path snapping":return void(e.data.pathSnapping&&i.push({on:"pathSnapping",track:L(t.keyframes,e=>e.value)}));case"material":return void("Mesh"===e.type&&"material"in e&&function(e,t){let i=p(e.material)?e.material:void 0,a=t.layerId;if(!i||!a)return[];let n=t.keyframes.some(e=>u(e.data.value?.noiseStrength)),s=i.ensureRainbowNoiseCompiled,r=e=>{n&&"function"==typeof s&&s.call(i,e)},o=e=>"data"in e?[{on:"material",layer:e,track:L(t.keyframes,e=>e.value)}]:[];r(a);let l=i.getLayerByUuid(a);if(l)return o(l);let h=t.path[1];for(let e of i.getLayersOfType(h))r(e.uuid);return(i.getLayersOfType(h)??[]).flatMap(o)}(e,t).forEach(e=>i.push(e)));case"opacity":return void("Mesh"===e.type&&"material"in e&&i.push({on:"opacity",track:s()}));case"cloner":return void i.push({on:"cloner",track:L(t.keyframes,e=>e.value)});case"camera":return void(e instanceof d&&i.push({on:"camera",field:"zoom",track:s()}));case"light":return void((e instanceof h||e instanceof o||e instanceof c)&&i.push({on:"light",field:t.path[1],track:L(t.keyframes,e=>e.value)}))}}),i}(e,t);return{duration:i,evaluate(t,i){e.resetBBoxNeedsUpdate();let r={transform:!1,size:!1,cloner:!1,bounds:!1,boolean:!1,render:!1};for(let o of s)W(o,e,t,a,n,i,r);!function(e,t,i){if(t.size&&e instanceof f){let{x:t,y:a,z:n}=e.userData.value;e.updateGeometryInteractions({width:t,height:a,depth:n},i.shared)}t.cloner&&e.cloner?.update(i),t.transform&&e.updateMatrix(),t.bounds&&e.resetBBoxNeedsUpdate(),t.boolean&&e instanceof f&&e.invalidateDownstreamBooleanData(),t.render&&e.dispatchEvent({type:"requestRender"})}(e,r,a)},invalidate(){for(let e of s)R(e.track)}}}(s,{...r},t,{scene:i,shared:a},this.sharedAssets))}),this.schedule=new N((l=this.data,{duration:t,delay:_(l.delay/1e3),delayDirection:l.delayDirection??"start-end",direction:l.direction??"normal",repeat:l.repeat}))}catch(e){throw new Error("Missing property")}var l;n&&(Q.has(n.uuid)?Q.get(n.uuid).push(this):Q.set(n.uuid,[this])),H.set(e,this)}get playing(){return this._playing}get finished(){return this._finished}get paused(){return!this._playing}update(e){null!==this.lastTime&&(this.elapsed=Math.max(0,this.elapsed+(e-this.lastTime)*this.direction)),this.lastTime=e,this.applyAtElapsed()}applyAtElapsed(){if(-1===this.direction&&0===this.elapsed)return void this.pause();let e=this.schedule.resolve(this.elapsed);if(e){if(e.cycleIndex!==this.lastCycleIndex&&(this.lastCycleIndex=e.cycleIndex,this.pauseOnNextCycleEnd))return this.pauseOnNextCycleEnd=!1,void this.pause();for(let t of this.evaluators)t.evaluate(e.localTime)}else 1===this.direction&&this.schedule.isFinished(this.elapsed)&&this.finish()}finish(){this.pause(),this._finished=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(r)})}startTicking(){this._playing=!0,this.lastTime=null;for(let e of this.evaluators)e.invalidate();l.add(this)}play(){let e=void 0!==this.eventType&&I(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&this.paused&&this.elapsed>0&&!this._finished;if(void 0!==this.eventType&&I(this.eventType)&&"Once"===this.data.runMode&&this.hasPlayedOnce&&!e||void 0===this.eventType&&this._finished)return!1;this.hasPlayedOnce=!0,this.animatedObjectIds.forEach(e=>{let t=this.scene.find(e);t instanceof d&&t.dispatchEvent(s)}),!e&&(0===this.elapsed||this._finished)&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.startTicking()}pause(){this._playing=!1,this.lastTime=null,l.remove(this)}stop(){this.pause(),this.elapsed=0,this.lastCycleIndex=0,this.applyAtElapsed(),this._finished=!1}seek(e){let t=this.schedule.totalDuration;this.elapsed=e*(Number.isFinite(t)?t:this.schedule.effectiveCycleDuration);for(let e of this.evaluators)e.invalidate();this.applyAtElapsed()}toggle(e){let t=e??-1===this.direction;this._playing&&this.direction===(t?1:-1)?t&&(this.pauseOnNextCycleEnd=!1):(t?(this._finished&&(this.elapsed=0,this.lastCycleIndex=0,this._finished=!1),this.direction=1,this.pauseOnNextCycleEnd=!1):(this.direction=this.schedule.resolve(this.elapsed)?.isReverse?1:-1,this.pauseOnNextCycleEnd=!0),this.startTicking())}playFromCurrent(){this.toggle(!0)}reverseFromCurrent(){this.toggle(!1)}dispose(){this.pause()}},J=class{constructor(e){this.data=e}dispatch(){this.data.playTimeline?this.pauseTimeline(this.data.playTimeline):this.data.object?this.pauseAllTimelinesFromObject(this.data.object):this.pauseAllTimelines()}pauseTimeline(e){let t=this.getTimelineActions(e);!t.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>{e[this.data.interaction]()}),this.disposeDelay()},this.data.delay)):t.forEach(e=>{e[this.data.interaction]()}))}getTimelineActions(e){let t=H.get(e);return t?[t]:[...H.values()].filter(t=>t.data.timeline===e)}pauseAllTimelinesFromObject(e){let t=Q.get(e);!t?.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{t.forEach(e=>e[this.data.interaction]()),this.disposeDelay()},this.data.delay)):t.forEach(e=>e[this.data.interaction]()))}pauseAllTimelines(){let e=[...Q.values()];!e.length||(this.data.delay>0?(this.disposeDelay(),this.timeoutId=window.setTimeout(()=>{e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}),this.disposeDelay()},this.data.delay)):e.forEach(e=>{e.forEach(e=>{e[this.data.interaction]()})}))}disposeDelay(){clearTimeout(this.timeoutId),delete this.timeoutId}dispose(){clearTimeout(this.timeoutId),delete this.timeoutId}},Y=class{constructor(e,t,i,a,n,s,r){this.data=t;let o="interaction"in t?t.interaction:"play";if("play"===o||void 0===o)this.interaction=new Z(e,t,i,a,n,s,r);else{if("pause"!==o&&"stop"!==o)throw new Error("Missing property");this.interaction=new J(t)}}get playing(){return this.interaction instanceof Z&&this.interaction.playing}get finished(){return!(this.interaction instanceof Z)||this.interaction.finished}get paused(){return!(this.interaction instanceof Z)||this.interaction.paused}play(){if(this.interaction instanceof Z)return this.interaction.play();this.interaction.dispatch()}stop(){this.interaction instanceof Z&&this.interaction.stop()}seek(e){this.interaction instanceof Z&&this.interaction.seek(e)}toggle(e){this.interaction instanceof Z?this.interaction.toggle(e):this.interaction.dispatch()}playFromCurrent(){this.interaction instanceof Z?this.interaction.playFromCurrent():this.interaction.dispatch()}dispatchConditional(){this.interaction instanceof Z?y(this.interaction.sharedAssets,this.interaction.actionCondition)&&this.interaction.playFromCurrent():this.interaction.dispatch()}reverseFromCurrent(){this.interaction instanceof Z&&this.interaction.reverseFromCurrent()}dispose(){this.interaction.dispose()}};m("TimelineAnimation",({id:e,data:t,page:i,shared:a,object:n,eventType:s,actionCondition:r})=>new Y(e,t,i.scene,a,n,s,r)),k("timeline");
Binary file
Binary file
Binary file
Binary file