@needle-tools/engine 4.7.0-alpha → 4.7.0-next.4ec920e

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 (1064) hide show
  1. package/CHANGELOG.md +3768 -3768
  2. package/LICENSE.md +10 -10
  3. package/README.md +64 -64
  4. package/components.needle.json +1 -1
  5. package/dist/generateMeshBVH.worker-BaNp_Xtp.js +25 -0
  6. package/dist/{gltf-progressive-Bm9eEfgu.min.js → gltf-progressive-Bl4okF1b.min.js} +1 -1
  7. package/dist/{gltf-progressive-GjIqwSG3.js → gltf-progressive-DSpdn0QT.js} +2 -2
  8. package/dist/{gltf-progressive-Dn6o99rH.umd.cjs → gltf-progressive-P8b8a0qY.umd.cjs} +1 -1
  9. package/dist/{needle-engine.bundle-BEUFTdl6.min.js → needle-engine.bundle-C00XXoql.min.js} +63 -63
  10. package/dist/{needle-engine.bundle-CK8cQ3FX.umd.cjs → needle-engine.bundle-CaRf1SjI.umd.cjs} +57 -57
  11. package/dist/{needle-engine.bundle-CXtflnL6.js → needle-engine.bundle-DDM6UaI6.js} +640 -640
  12. package/dist/needle-engine.d.ts +130 -129
  13. package/dist/needle-engine.js +4 -4
  14. package/dist/needle-engine.min.js +1 -1
  15. package/dist/needle-engine.umd.cjs +1 -1
  16. package/dist/{postprocessing-8AQTeZsr.umd.cjs → postprocessing-CjW23fio.umd.cjs} +2 -2
  17. package/dist/{postprocessing-BkxN_08g.js → postprocessing-DYLNOL3W.js} +3 -3
  18. package/dist/{postprocessing-BDScN9yu.min.js → postprocessing-xYQWCHFu.min.js} +2 -2
  19. package/dist/{three-DMrv-4ar.umd.cjs → three-B_hneGZr.umd.cjs} +4 -4
  20. package/dist/{three-Bz6X1mrw.js → three-DrqIzZTH.js} +4198 -4198
  21. package/dist/{three-Boa-jOq-.min.js → three-DuDKwKB8.min.js} +33 -33
  22. package/dist/{three-examples-GggCDHv0.js → three-examples-B50TT3Iu.js} +5 -5
  23. package/dist/{three-examples-DuVhxqft.min.js → three-examples-DaDLBuy6.min.js} +14 -14
  24. package/dist/{three-examples-C7ryg8vN.umd.cjs → three-examples-X3OadjXB.umd.cjs} +3 -3
  25. package/dist/{three-mesh-ui-CY6Izc7C.min.js → three-mesh-ui-B3p3gyUz.min.js} +1 -1
  26. package/dist/{three-mesh-ui-CwlN0FUC.umd.cjs → three-mesh-ui-CQiIQIlA.umd.cjs} +1 -1
  27. package/dist/{three-mesh-ui-CLNOfsWn.js → three-mesh-ui-CxuWt7m-.js} +1 -1
  28. package/dist/{vendor-zxXa3Dmr.min.js → vendor-BlSxe9JJ.min.js} +3 -3
  29. package/dist/{vendor-BSD1RQIh.js → vendor-BmYIgaS1.js} +3 -3
  30. package/dist/{vendor-DHr4aqIZ.umd.cjs → vendor-Cavtu3CP.umd.cjs} +3 -3
  31. package/lib/asap/needle-asap.d.ts +1 -1
  32. package/lib/asap/needle-asap.js +95 -95
  33. package/lib/asap/sessiongranted.d.ts +3 -3
  34. package/lib/asap/sessiongranted.js +65 -65
  35. package/lib/asap/utils.d.ts +1 -1
  36. package/lib/asap/utils.js +3 -3
  37. package/lib/engine/analytics/index.d.ts +6 -6
  38. package/lib/engine/analytics/index.js +12 -12
  39. package/lib/engine/analytics/lcp.d.ts +3 -3
  40. package/lib/engine/analytics/lcp.js +34 -34
  41. package/lib/engine/api.d.ts +82 -82
  42. package/lib/engine/api.js +81 -81
  43. package/lib/engine/assets/index.d.ts +11 -11
  44. package/lib/engine/assets/index.js +47 -47
  45. package/lib/engine/assets/static.d.ts +1 -1
  46. package/lib/engine/assets/static.js +4 -4
  47. package/lib/engine/codegen/register_types.d.ts +1 -1
  48. package/lib/engine/codegen/register_types.js +300 -300
  49. package/lib/engine/debug/debug.d.ts +15 -15
  50. package/lib/engine/debug/debug.js +44 -44
  51. package/lib/engine/debug/debug_console.d.ts +2 -2
  52. package/lib/engine/debug/debug_console.js +307 -307
  53. package/lib/engine/debug/debug_overlay.d.ts +22 -22
  54. package/lib/engine/debug/debug_overlay.js +316 -316
  55. package/lib/engine/debug/debug_spatial_console.d.ts +2 -2
  56. package/lib/engine/debug/debug_spatial_console.js +390 -390
  57. package/lib/engine/debug/index.d.ts +2 -2
  58. package/lib/engine/debug/index.js +2 -2
  59. package/lib/engine/engine_addressables.d.ts +166 -166
  60. package/lib/engine/engine_addressables.js +608 -608
  61. package/lib/engine/engine_animation.d.ts +43 -43
  62. package/lib/engine/engine_animation.js +133 -133
  63. package/lib/engine/engine_application.d.ts +45 -45
  64. package/lib/engine/engine_application.js +104 -104
  65. package/lib/engine/engine_assetdatabase.d.ts +25 -25
  66. package/lib/engine/engine_assetdatabase.js +346 -346
  67. package/lib/engine/engine_audio.d.ts +4 -4
  68. package/lib/engine/engine_audio.js +23 -23
  69. package/lib/engine/engine_camera.d.ts +13 -13
  70. package/lib/engine/engine_camera.js +30 -30
  71. package/lib/engine/engine_components.d.ts +110 -110
  72. package/lib/engine/engine_components.js +374 -374
  73. package/lib/engine/engine_components_internal.d.ts +9 -9
  74. package/lib/engine/engine_components_internal.js +36 -36
  75. package/lib/engine/engine_constants.d.ts +10 -10
  76. package/lib/engine/engine_constants.js +41 -41
  77. package/lib/engine/engine_context.d.ts +475 -475
  78. package/lib/engine/engine_context.js +1673 -1672
  79. package/lib/engine/engine_context.js.map +1 -1
  80. package/lib/engine/engine_context_registry.d.ts +71 -71
  81. package/lib/engine/engine_context_registry.js +117 -117
  82. package/lib/engine/engine_coroutine.d.ts +35 -35
  83. package/lib/engine/engine_coroutine.js +52 -52
  84. package/lib/engine/engine_create_objects.d.ts +119 -119
  85. package/lib/engine/engine_create_objects.js +320 -320
  86. package/lib/engine/engine_default_parameters.d.ts +2 -2
  87. package/lib/engine/engine_default_parameters.js +3 -3
  88. package/lib/engine/engine_editor-sync.d.ts +21 -21
  89. package/lib/engine/engine_editor-sync.js +4 -4
  90. package/lib/engine/engine_fileloader.d.ts +2 -2
  91. package/lib/engine/engine_fileloader.js +8 -8
  92. package/lib/engine/engine_gameobject.d.ts +68 -68
  93. package/lib/engine/engine_gameobject.js +619 -619
  94. package/lib/engine/engine_generic_utils.d.ts +1 -1
  95. package/lib/engine/engine_generic_utils.js +13 -13
  96. package/lib/engine/engine_gizmos.d.ts +149 -149
  97. package/lib/engine/engine_gizmos.js +530 -530
  98. package/lib/engine/engine_gltf.d.ts +12 -12
  99. package/lib/engine/engine_gltf.js +15 -15
  100. package/lib/engine/engine_gltf_builtin_components.d.ts +11 -11
  101. package/lib/engine/engine_gltf_builtin_components.js +341 -341
  102. package/lib/engine/engine_hot_reload.d.ts +8 -8
  103. package/lib/engine/engine_hot_reload.js +197 -197
  104. package/lib/engine/engine_input.d.ts +362 -362
  105. package/lib/engine/engine_input.js +1294 -1294
  106. package/lib/engine/engine_input_utils.d.ts +2 -2
  107. package/lib/engine/engine_input_utils.js +22 -22
  108. package/lib/engine/engine_instancing.d.ts +19 -19
  109. package/lib/engine/engine_instancing.js +39 -39
  110. package/lib/engine/engine_license.d.ts +11 -11
  111. package/lib/engine/engine_license.js +369 -369
  112. package/lib/engine/engine_lifecycle_api.d.ts +83 -83
  113. package/lib/engine/engine_lifecycle_api.js +106 -106
  114. package/lib/engine/engine_lifecycle_functions_internal.d.ts +32 -32
  115. package/lib/engine/engine_lifecycle_functions_internal.js +146 -146
  116. package/lib/engine/engine_lightdata.d.ts +23 -23
  117. package/lib/engine/engine_lightdata.js +91 -91
  118. package/lib/engine/engine_loaders.callbacks.d.ts +97 -97
  119. package/lib/engine/engine_loaders.callbacks.js +86 -86
  120. package/lib/engine/engine_loaders.d.ts +48 -48
  121. package/lib/engine/engine_loaders.gltf.d.ts +13 -13
  122. package/lib/engine/engine_loaders.gltf.js +62 -62
  123. package/lib/engine/engine_loaders.js +337 -337
  124. package/lib/engine/engine_lods.d.ts +31 -31
  125. package/lib/engine/engine_lods.js +146 -146
  126. package/lib/engine/engine_mainloop_utils.d.ts +32 -32
  127. package/lib/engine/engine_mainloop_utils.js +466 -466
  128. package/lib/engine/engine_math.d.ts +114 -114
  129. package/lib/engine/engine_math.js +247 -247
  130. package/lib/engine/engine_modules.d.ts +36 -36
  131. package/lib/engine/engine_modules.js +85 -85
  132. package/lib/engine/engine_networking.d.ts +260 -260
  133. package/lib/engine/engine_networking.js +764 -764
  134. package/lib/engine/engine_networking_auto.d.ts +24 -24
  135. package/lib/engine/engine_networking_auto.js +310 -310
  136. package/lib/engine/engine_networking_blob.d.ts +48 -48
  137. package/lib/engine/engine_networking_blob.js +228 -228
  138. package/lib/engine/engine_networking_files.d.ts +35 -35
  139. package/lib/engine/engine_networking_files.js +172 -172
  140. package/lib/engine/engine_networking_files_default_components.d.ts +6 -6
  141. package/lib/engine/engine_networking_files_default_components.js +42 -42
  142. package/lib/engine/engine_networking_instantiate.d.ts +100 -100
  143. package/lib/engine/engine_networking_instantiate.js +345 -345
  144. package/lib/engine/engine_networking_peer.d.ts +15 -15
  145. package/lib/engine/engine_networking_peer.js +132 -132
  146. package/lib/engine/engine_networking_streams.d.ts +123 -123
  147. package/lib/engine/engine_networking_streams.js +645 -645
  148. package/lib/engine/engine_networking_types.d.ts +22 -22
  149. package/lib/engine/engine_networking_types.js +7 -7
  150. package/lib/engine/engine_networking_utils.d.ts +2 -2
  151. package/lib/engine/engine_networking_utils.js +20 -20
  152. package/lib/engine/engine_networking_websocket.d.ts +1 -1
  153. package/lib/engine/engine_networking_websocket.js +2 -2
  154. package/lib/engine/engine_patcher.d.ts +10 -10
  155. package/lib/engine/engine_patcher.js +142 -142
  156. package/lib/engine/engine_physics.d.ts +152 -152
  157. package/lib/engine/engine_physics.js +645 -645
  158. package/lib/engine/engine_physics.types.d.ts +40 -40
  159. package/lib/engine/engine_physics.types.js +33 -33
  160. package/lib/engine/engine_physics_rapier.d.ts +147 -147
  161. package/lib/engine/engine_physics_rapier.js +1433 -1433
  162. package/lib/engine/engine_playerview.d.ts +26 -26
  163. package/lib/engine/engine_playerview.js +64 -64
  164. package/lib/engine/engine_scenelighting.d.ts +71 -71
  165. package/lib/engine/engine_scenelighting.js +226 -226
  166. package/lib/engine/engine_serialization.d.ts +3 -3
  167. package/lib/engine/engine_serialization.js +3 -3
  168. package/lib/engine/engine_serialization_builtin_serializer.d.ts +72 -72
  169. package/lib/engine/engine_serialization_builtin_serializer.js +403 -403
  170. package/lib/engine/engine_serialization_core.d.ts +94 -94
  171. package/lib/engine/engine_serialization_core.js +607 -607
  172. package/lib/engine/engine_serialization_decorator.d.ts +23 -23
  173. package/lib/engine/engine_serialization_decorator.js +66 -66
  174. package/lib/engine/engine_setup.d.ts +1 -1
  175. package/lib/engine/engine_setup.js +2 -2
  176. package/lib/engine/engine_shaders.d.ts +53 -53
  177. package/lib/engine/engine_shaders.js +252 -252
  178. package/lib/engine/engine_shims.d.ts +4 -4
  179. package/lib/engine/engine_shims.js +24 -24
  180. package/lib/engine/engine_test_utils.d.ts +39 -39
  181. package/lib/engine/engine_test_utils.js +83 -83
  182. package/lib/engine/engine_texture.d.ts +28 -28
  183. package/lib/engine/engine_texture.js +64 -64
  184. package/lib/engine/engine_three_utils.d.ts +204 -204
  185. package/lib/engine/engine_three_utils.js +784 -784
  186. package/lib/engine/engine_time.d.ts +51 -51
  187. package/lib/engine/engine_time.js +82 -82
  188. package/lib/engine/engine_time_utils.d.ts +88 -88
  189. package/lib/engine/engine_time_utils.js +215 -215
  190. package/lib/engine/engine_tonemapping.d.ts +6 -6
  191. package/lib/engine/engine_tonemapping.js +197 -197
  192. package/lib/engine/engine_types.d.ts +578 -578
  193. package/lib/engine/engine_types.js +95 -95
  194. package/lib/engine/engine_typestore.d.ts +28 -28
  195. package/lib/engine/engine_typestore.js +55 -55
  196. package/lib/engine/engine_util_decorator.d.ts +13 -13
  197. package/lib/engine/engine_util_decorator.js +116 -116
  198. package/lib/engine/engine_utils.d.ts +248 -248
  199. package/lib/engine/engine_utils.js +1012 -1012
  200. package/lib/engine/engine_utils_format.d.ts +24 -24
  201. package/lib/engine/engine_utils_format.js +239 -239
  202. package/lib/engine/engine_utils_screenshot.d.ts +159 -159
  203. package/lib/engine/engine_utils_screenshot.js +522 -522
  204. package/lib/engine/engine_utils_screenshot.xr.d.ts +5 -5
  205. package/lib/engine/engine_utils_screenshot.xr.js +90 -90
  206. package/lib/engine/engine_xr.d.ts +1 -1
  207. package/lib/engine/engine_xr.js +1 -1
  208. package/lib/engine/export/gltf/Writers.d.ts +19 -19
  209. package/lib/engine/export/gltf/Writers.js +24 -24
  210. package/lib/engine/export/gltf/index.d.ts +11 -11
  211. package/lib/engine/export/gltf/index.js +123 -123
  212. package/lib/engine/export/index.d.ts +2 -2
  213. package/lib/engine/export/index.js +2 -2
  214. package/lib/engine/export/state.d.ts +7 -7
  215. package/lib/engine/export/state.js +17 -17
  216. package/lib/engine/export/utils.d.ts +2 -2
  217. package/lib/engine/export/utils.js +7 -7
  218. package/lib/engine/extensions/EXT_texture_exr.d.ts +8 -8
  219. package/lib/engine/extensions/EXT_texture_exr.js +32 -32
  220. package/lib/engine/extensions/NEEDLE_animator_controller_model.d.ts +122 -122
  221. package/lib/engine/extensions/NEEDLE_animator_controller_model.js +95 -95
  222. package/lib/engine/extensions/NEEDLE_components.d.ts +35 -35
  223. package/lib/engine/extensions/NEEDLE_components.js +220 -220
  224. package/lib/engine/extensions/NEEDLE_gameobject_data.d.ts +10 -10
  225. package/lib/engine/extensions/NEEDLE_gameobject_data.js +57 -57
  226. package/lib/engine/extensions/NEEDLE_lighting_settings.d.ts +37 -37
  227. package/lib/engine/extensions/NEEDLE_lighting_settings.js +157 -157
  228. package/lib/engine/extensions/NEEDLE_lightmaps.d.ts +18 -18
  229. package/lib/engine/extensions/NEEDLE_lightmaps.js +99 -99
  230. package/lib/engine/extensions/NEEDLE_persistent_assets.d.ts +11 -11
  231. package/lib/engine/extensions/NEEDLE_persistent_assets.js +63 -63
  232. package/lib/engine/extensions/NEEDLE_progressive.d.ts +1 -1
  233. package/lib/engine/extensions/NEEDLE_progressive.js +1 -1
  234. package/lib/engine/extensions/NEEDLE_render_objects.d.ts +13 -13
  235. package/lib/engine/extensions/NEEDLE_render_objects.js +159 -159
  236. package/lib/engine/extensions/NEEDLE_techniques_webgl.d.ts +38 -38
  237. package/lib/engine/extensions/NEEDLE_techniques_webgl.js +564 -564
  238. package/lib/engine/extensions/extension_resolver.d.ts +4 -4
  239. package/lib/engine/extensions/extension_resolver.js +1 -1
  240. package/lib/engine/extensions/extension_utils.d.ts +12 -12
  241. package/lib/engine/extensions/extension_utils.js +152 -152
  242. package/lib/engine/extensions/extensions.d.ts +32 -32
  243. package/lib/engine/extensions/extensions.js +107 -107
  244. package/lib/engine/extensions/index.d.ts +6 -6
  245. package/lib/engine/extensions/index.js +6 -6
  246. package/lib/engine/extensions/usage_tracker.d.ts +13 -13
  247. package/lib/engine/extensions/usage_tracker.js +65 -65
  248. package/lib/engine/js-extensions/Camera.d.ts +1 -1
  249. package/lib/engine/js-extensions/Camera.js +39 -39
  250. package/lib/engine/js-extensions/ExtensionUtils.d.ts +9 -9
  251. package/lib/engine/js-extensions/ExtensionUtils.js +67 -67
  252. package/lib/engine/js-extensions/Layers.d.ts +6 -6
  253. package/lib/engine/js-extensions/Layers.js +22 -22
  254. package/lib/engine/js-extensions/Object3D.d.ts +120 -120
  255. package/lib/engine/js-extensions/Object3D.js +136 -136
  256. package/lib/engine/js-extensions/RGBAColor.d.ts +23 -23
  257. package/lib/engine/js-extensions/RGBAColor.js +111 -111
  258. package/lib/engine/js-extensions/Vector.d.ts +3 -3
  259. package/lib/engine/js-extensions/Vector.js +13 -13
  260. package/lib/engine/js-extensions/index.d.ts +5 -5
  261. package/lib/engine/js-extensions/index.js +5 -5
  262. package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.d.ts +4 -4
  263. package/lib/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +79 -79
  264. package/lib/engine/shaders/shaderData.d.ts +55 -55
  265. package/lib/engine/shaders/shaderData.js +58 -58
  266. package/lib/engine/tests/test_utils.d.ts +2 -2
  267. package/lib/engine/tests/test_utils.js +53 -53
  268. package/lib/engine/webcomponents/WebXRButtons.d.ts +56 -56
  269. package/lib/engine/webcomponents/WebXRButtons.js +230 -230
  270. package/lib/engine/webcomponents/api.d.ts +5 -5
  271. package/lib/engine/webcomponents/api.js +4 -4
  272. package/lib/engine/webcomponents/buttons.d.ts +51 -51
  273. package/lib/engine/webcomponents/buttons.js +264 -264
  274. package/lib/engine/webcomponents/fonts.d.ts +9 -9
  275. package/lib/engine/webcomponents/fonts.js +32 -32
  276. package/lib/engine/webcomponents/icons.d.ts +9 -9
  277. package/lib/engine/webcomponents/icons.js +52 -52
  278. package/lib/engine/webcomponents/index.d.ts +1 -1
  279. package/lib/engine/webcomponents/index.js +1 -1
  280. package/lib/engine/webcomponents/logo-element.d.ts +10 -10
  281. package/lib/engine/webcomponents/logo-element.js +67 -67
  282. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.d.ts +37 -37
  283. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +513 -513
  284. package/lib/engine/webcomponents/needle menu/needle-menu.d.ts +155 -155
  285. package/lib/engine/webcomponents/needle menu/needle-menu.js +1029 -1029
  286. package/lib/engine/webcomponents/needle-button.d.ts +34 -34
  287. package/lib/engine/webcomponents/needle-button.js +161 -161
  288. package/lib/engine/webcomponents/needle-engine.ar-overlay.d.ts +21 -21
  289. package/lib/engine/webcomponents/needle-engine.ar-overlay.js +166 -166
  290. package/lib/engine/webcomponents/needle-engine.attributes.d.ts +69 -69
  291. package/lib/engine/webcomponents/needle-engine.attributes.js +1 -1
  292. package/lib/engine/webcomponents/needle-engine.d.ts +116 -116
  293. package/lib/engine/webcomponents/needle-engine.extras.d.ts +6 -6
  294. package/lib/engine/webcomponents/needle-engine.extras.js +13 -13
  295. package/lib/engine/webcomponents/needle-engine.js +821 -821
  296. package/lib/engine/webcomponents/needle-engine.loading.d.ts +44 -44
  297. package/lib/engine/webcomponents/needle-engine.loading.js +341 -341
  298. package/lib/engine/xr/NeedleXRController.d.ts +313 -313
  299. package/lib/engine/xr/NeedleXRController.js +1007 -1007
  300. package/lib/engine/xr/NeedleXRSession.d.ts +340 -340
  301. package/lib/engine/xr/NeedleXRSession.js +1463 -1463
  302. package/lib/engine/xr/NeedleXRSync.d.ts +22 -22
  303. package/lib/engine/xr/NeedleXRSync.js +188 -188
  304. package/lib/engine/xr/SceneTransition.d.ts +18 -18
  305. package/lib/engine/xr/SceneTransition.js +69 -69
  306. package/lib/engine/xr/TempXRContext.d.ts +34 -34
  307. package/lib/engine/xr/TempXRContext.js +187 -187
  308. package/lib/engine/xr/XRRig.d.ts +7 -7
  309. package/lib/engine/xr/XRRig.js +1 -1
  310. package/lib/engine/xr/api.d.ts +6 -6
  311. package/lib/engine/xr/api.js +6 -6
  312. package/lib/engine/xr/events.d.ts +66 -66
  313. package/lib/engine/xr/events.js +93 -93
  314. package/lib/engine/xr/internal.d.ts +12 -12
  315. package/lib/engine/xr/internal.js +25 -25
  316. package/lib/engine/xr/usdz.d.ts +12 -12
  317. package/lib/engine/xr/usdz.js +29 -29
  318. package/lib/engine/xr/utils.d.ts +11 -11
  319. package/lib/engine/xr/utils.js +34 -34
  320. package/lib/engine-components/AlignmentConstraint.d.ts +10 -10
  321. package/lib/engine-components/AlignmentConstraint.js +39 -39
  322. package/lib/engine-components/Animation.d.ts +156 -156
  323. package/lib/engine-components/Animation.js +508 -508
  324. package/lib/engine-components/AnimationCurve.d.ts +40 -40
  325. package/lib/engine-components/AnimationCurve.js +159 -159
  326. package/lib/engine-components/AnimationUtils.d.ts +8 -8
  327. package/lib/engine-components/AnimationUtils.js +27 -27
  328. package/lib/engine-components/AnimationUtilsAutoplay.d.ts +1 -1
  329. package/lib/engine-components/AnimationUtilsAutoplay.js +39 -39
  330. package/lib/engine-components/Animator.d.ts +217 -217
  331. package/lib/engine-components/Animator.js +354 -354
  332. package/lib/engine-components/AnimatorController.d.ts +227 -227
  333. package/lib/engine-components/AnimatorController.js +1152 -1152
  334. package/lib/engine-components/AudioListener.d.ts +33 -33
  335. package/lib/engine-components/AudioListener.js +86 -86
  336. package/lib/engine-components/AudioSource.d.ts +217 -217
  337. package/lib/engine-components/AudioSource.js +635 -635
  338. package/lib/engine-components/AvatarLoader.d.ts +80 -80
  339. package/lib/engine-components/AvatarLoader.js +231 -231
  340. package/lib/engine-components/AxesHelper.d.ts +32 -32
  341. package/lib/engine-components/AxesHelper.js +67 -67
  342. package/lib/engine-components/BasicIKConstraint.d.ts +9 -9
  343. package/lib/engine-components/BasicIKConstraint.js +43 -43
  344. package/lib/engine-components/BoxCollider.d.ts +2 -2
  345. package/lib/engine-components/BoxCollider.js +2 -2
  346. package/lib/engine-components/BoxHelperComponent.d.ts +47 -47
  347. package/lib/engine-components/BoxHelperComponent.js +102 -102
  348. package/lib/engine-components/Camera.d.ts +231 -231
  349. package/lib/engine-components/Camera.js +700 -700
  350. package/lib/engine-components/CameraUtils.d.ts +1 -1
  351. package/lib/engine-components/CameraUtils.js +121 -121
  352. package/lib/engine-components/CharacterController.d.ts +55 -55
  353. package/lib/engine-components/CharacterController.js +236 -236
  354. package/lib/engine-components/Collider.d.ts +188 -188
  355. package/lib/engine-components/Collider.js +369 -369
  356. package/lib/engine-components/Component.d.ts +792 -792
  357. package/lib/engine-components/Component.js +920 -920
  358. package/lib/engine-components/ContactShadows.d.ts +94 -94
  359. package/lib/engine-components/ContactShadows.js +453 -453
  360. package/lib/engine-components/DeleteBox.d.ts +19 -19
  361. package/lib/engine-components/DeleteBox.js +58 -58
  362. package/lib/engine-components/DeviceFlag.d.ts +16 -16
  363. package/lib/engine-components/DeviceFlag.js +47 -47
  364. package/lib/engine-components/DragControls.d.ts +170 -170
  365. package/lib/engine-components/DragControls.js +1421 -1421
  366. package/lib/engine-components/DropListener.d.ts +215 -215
  367. package/lib/engine-components/DropListener.js +642 -642
  368. package/lib/engine-components/Duplicatable.d.ts +35 -35
  369. package/lib/engine-components/Duplicatable.js +202 -202
  370. package/lib/engine-components/EventList.d.ts +54 -54
  371. package/lib/engine-components/EventList.js +232 -232
  372. package/lib/engine-components/EventTrigger.d.ts +33 -33
  373. package/lib/engine-components/EventTrigger.js +75 -75
  374. package/lib/engine-components/EventType.d.ts +22 -22
  375. package/lib/engine-components/EventType.js +23 -23
  376. package/lib/engine-components/Fog.d.ts +22 -22
  377. package/lib/engine-components/Fog.js +61 -61
  378. package/lib/engine-components/Gizmos.d.ts +17 -17
  379. package/lib/engine-components/Gizmos.js +64 -64
  380. package/lib/engine-components/GridHelper.d.ts +20 -20
  381. package/lib/engine-components/GridHelper.js +54 -54
  382. package/lib/engine-components/GroundProjection.d.ts +67 -67
  383. package/lib/engine-components/GroundProjection.js +343 -343
  384. package/lib/engine-components/Interactable.d.ts +12 -12
  385. package/lib/engine-components/Interactable.js +12 -12
  386. package/lib/engine-components/Joints.d.ts +19 -19
  387. package/lib/engine-components/Joints.js +51 -51
  388. package/lib/engine-components/LODGroup.d.ts +35 -35
  389. package/lib/engine-components/LODGroup.js +152 -152
  390. package/lib/engine-components/Light.d.ts +180 -180
  391. package/lib/engine-components/Light.js +535 -535
  392. package/lib/engine-components/LookAtConstraint.d.ts +19 -19
  393. package/lib/engine-components/LookAtConstraint.js +35 -35
  394. package/lib/engine-components/NeedleMenu.d.ts +50 -50
  395. package/lib/engine-components/NeedleMenu.js +92 -92
  396. package/lib/engine-components/NestedGltf.d.ts +25 -25
  397. package/lib/engine-components/NestedGltf.js +88 -88
  398. package/lib/engine-components/Networking.d.ts +54 -54
  399. package/lib/engine-components/Networking.js +112 -112
  400. package/lib/engine-components/OffsetConstraint.d.ts +14 -14
  401. package/lib/engine-components/OffsetConstraint.js +65 -65
  402. package/lib/engine-components/OrbitControls.d.ts +268 -268
  403. package/lib/engine-components/OrbitControls.js +1015 -1015
  404. package/lib/engine-components/PlayerColor.d.ts +19 -19
  405. package/lib/engine-components/PlayerColor.js +94 -94
  406. package/lib/engine-components/ReflectionProbe.d.ts +28 -28
  407. package/lib/engine-components/ReflectionProbe.js +204 -204
  408. package/lib/engine-components/Renderer.d.ts +153 -153
  409. package/lib/engine-components/Renderer.js +834 -834
  410. package/lib/engine-components/RendererInstancing.d.ts +140 -140
  411. package/lib/engine-components/RendererInstancing.js +744 -744
  412. package/lib/engine-components/RendererLightmap.d.ts +24 -24
  413. package/lib/engine-components/RendererLightmap.js +182 -182
  414. package/lib/engine-components/RigidBody.d.ts +155 -155
  415. package/lib/engine-components/RigidBody.js +517 -517
  416. package/lib/engine-components/SceneSwitcher.d.ts +263 -263
  417. package/lib/engine-components/SceneSwitcher.js +971 -971
  418. package/lib/engine-components/ScreenCapture.d.ts +144 -144
  419. package/lib/engine-components/ScreenCapture.js +547 -547
  420. package/lib/engine-components/ShadowCatcher.d.ts +33 -33
  421. package/lib/engine-components/ShadowCatcher.js +166 -166
  422. package/lib/engine-components/Skybox.d.ts +88 -88
  423. package/lib/engine-components/Skybox.js +469 -469
  424. package/lib/engine-components/SmoothFollow.d.ts +34 -34
  425. package/lib/engine-components/SmoothFollow.js +82 -82
  426. package/lib/engine-components/SpatialTrigger.d.ts +102 -102
  427. package/lib/engine-components/SpatialTrigger.js +225 -225
  428. package/lib/engine-components/SpectatorCamera.d.ts +111 -111
  429. package/lib/engine-components/SpectatorCamera.js +715 -715
  430. package/lib/engine-components/SphereCollider.d.ts +2 -2
  431. package/lib/engine-components/SphereCollider.js +2 -2
  432. package/lib/engine-components/SpriteRenderer.d.ts +132 -132
  433. package/lib/engine-components/SpriteRenderer.js +472 -472
  434. package/lib/engine-components/SyncedCamera.d.ts +41 -41
  435. package/lib/engine-components/SyncedCamera.js +199 -199
  436. package/lib/engine-components/SyncedRoom.d.ts +106 -106
  437. package/lib/engine-components/SyncedRoom.js +371 -371
  438. package/lib/engine-components/SyncedTransform.d.ts +94 -94
  439. package/lib/engine-components/SyncedTransform.js +331 -331
  440. package/lib/engine-components/TestRunner.d.ts +16 -16
  441. package/lib/engine-components/TestRunner.js +102 -102
  442. package/lib/engine-components/TransformGizmo.d.ts +75 -75
  443. package/lib/engine-components/TransformGizmo.js +209 -209
  444. package/lib/engine-components/VideoPlayer.d.ts +184 -184
  445. package/lib/engine-components/VideoPlayer.js +978 -978
  446. package/lib/engine-components/Voip.d.ts +67 -67
  447. package/lib/engine-components/Voip.js +360 -360
  448. package/lib/engine-components/api.d.ts +51 -51
  449. package/lib/engine-components/api.js +50 -50
  450. package/lib/engine-components/avatar/AvatarBlink_Simple.d.ts +11 -11
  451. package/lib/engine-components/avatar/AvatarBlink_Simple.js +76 -76
  452. package/lib/engine-components/avatar/AvatarEyeLook_Rotation.d.ts +14 -14
  453. package/lib/engine-components/avatar/AvatarEyeLook_Rotation.js +68 -68
  454. package/lib/engine-components/avatar/Avatar_Brain_LookAt.d.ts +29 -29
  455. package/lib/engine-components/avatar/Avatar_Brain_LookAt.js +121 -121
  456. package/lib/engine-components/avatar/Avatar_MouthShapes.d.ts +15 -15
  457. package/lib/engine-components/avatar/Avatar_MouthShapes.js +79 -79
  458. package/lib/engine-components/avatar/Avatar_MustacheShake.d.ts +9 -9
  459. package/lib/engine-components/avatar/Avatar_MustacheShake.js +29 -29
  460. package/lib/engine-components/codegen/components.d.ts +216 -216
  461. package/lib/engine-components/codegen/components.js +218 -218
  462. package/lib/engine-components/debug/LogStats.d.ts +5 -5
  463. package/lib/engine-components/debug/LogStats.js +18 -18
  464. package/lib/engine-components/export/gltf/GltfExport.d.ts +30 -30
  465. package/lib/engine-components/export/gltf/GltfExport.js +246 -246
  466. package/lib/engine-components/export/gltf/index.d.ts +1 -1
  467. package/lib/engine-components/export/gltf/index.js +1 -1
  468. package/lib/engine-components/export/index.d.ts +1 -1
  469. package/lib/engine-components/export/index.js +1 -1
  470. package/lib/engine-components/export/usdz/Extension.d.ts +22 -22
  471. package/lib/engine-components/export/usdz/Extension.js +1 -1
  472. package/lib/engine-components/export/usdz/ThreeUSDZExporter.d.ts +162 -162
  473. package/lib/engine-components/export/usdz/ThreeUSDZExporter.js +1789 -1789
  474. package/lib/engine-components/export/usdz/USDZExporter.d.ts +130 -130
  475. package/lib/engine-components/export/usdz/USDZExporter.js +663 -663
  476. package/lib/engine-components/export/usdz/extensions/Animation.d.ts +106 -106
  477. package/lib/engine-components/export/usdz/extensions/Animation.js +1071 -1071
  478. package/lib/engine-components/export/usdz/extensions/DocumentExtension.d.ts +5 -5
  479. package/lib/engine-components/export/usdz/extensions/DocumentExtension.js +6 -6
  480. package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.d.ts +10 -10
  481. package/lib/engine-components/export/usdz/extensions/NodeMaterialConverter.js +451 -451
  482. package/lib/engine-components/export/usdz/extensions/USDZText.d.ts +54 -54
  483. package/lib/engine-components/export/usdz/extensions/USDZText.js +203 -203
  484. package/lib/engine-components/export/usdz/extensions/USDZUI.d.ts +8 -8
  485. package/lib/engine-components/export/usdz/extensions/USDZUI.js +158 -158
  486. package/lib/engine-components/export/usdz/extensions/behavior/Actions.d.ts +30 -30
  487. package/lib/engine-components/export/usdz/extensions/behavior/Actions.js +88 -88
  488. package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.d.ts +10 -10
  489. package/lib/engine-components/export/usdz/extensions/behavior/AudioExtension.js +86 -86
  490. package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +28 -28
  491. package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.js +290 -290
  492. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +190 -190
  493. package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +1060 -1060
  494. package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.d.ts +135 -135
  495. package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js +548 -548
  496. package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.d.ts +7 -7
  497. package/lib/engine-components/export/usdz/extensions/behavior/PhysicsExtension.js +115 -115
  498. package/lib/engine-components/export/usdz/index.d.ts +3 -3
  499. package/lib/engine-components/export/usdz/index.js +2 -2
  500. package/lib/engine-components/export/usdz/utils/animationutils.d.ts +7 -7
  501. package/lib/engine-components/export/usdz/utils/animationutils.js +163 -163
  502. package/lib/engine-components/export/usdz/utils/quicklook.d.ts +2 -2
  503. package/lib/engine-components/export/usdz/utils/quicklook.js +43 -43
  504. package/lib/engine-components/particlesystem/ParticleSystem.d.ts +177 -177
  505. package/lib/engine-components/particlesystem/ParticleSystem.js +1176 -1176
  506. package/lib/engine-components/particlesystem/ParticleSystemModules.d.ts +526 -526
  507. package/lib/engine-components/particlesystem/ParticleSystemModules.js +1930 -1930
  508. package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.d.ts +25 -25
  509. package/lib/engine-components/particlesystem/ParticleSystemSubEmitter.js +87 -87
  510. package/lib/engine-components/particlesystem/api.d.ts +2 -2
  511. package/lib/engine-components/particlesystem/api.js +2 -2
  512. package/lib/engine-components/postprocessing/Effects/Antialiasing.d.ts +17 -17
  513. package/lib/engine-components/postprocessing/Effects/Antialiasing.js +52 -52
  514. package/lib/engine-components/postprocessing/Effects/BloomEffect.d.ts +46 -46
  515. package/lib/engine-components/postprocessing/Effects/BloomEffect.js +113 -113
  516. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.d.ts +11 -11
  517. package/lib/engine-components/postprocessing/Effects/ChromaticAberration.js +39 -39
  518. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.d.ts +23 -23
  519. package/lib/engine-components/postprocessing/Effects/ColorAdjustments.js +111 -111
  520. package/lib/engine-components/postprocessing/Effects/DepthOfField.d.ts +25 -25
  521. package/lib/engine-components/postprocessing/Effects/DepthOfField.js +104 -104
  522. package/lib/engine-components/postprocessing/Effects/EffectWrapper.d.ts +12 -12
  523. package/lib/engine-components/postprocessing/Effects/EffectWrapper.js +18 -18
  524. package/lib/engine-components/postprocessing/Effects/Pixelation.d.ts +11 -11
  525. package/lib/engine-components/postprocessing/Effects/Pixelation.js +32 -32
  526. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.d.ts +18 -18
  527. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.js +91 -91
  528. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.d.ts +70 -70
  529. package/lib/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.js +176 -176
  530. package/lib/engine-components/postprocessing/Effects/Sharpening.d.ts +18 -18
  531. package/lib/engine-components/postprocessing/Effects/Sharpening.js +127 -127
  532. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.d.ts +17 -17
  533. package/lib/engine-components/postprocessing/Effects/TiltShiftEffect.js +70 -70
  534. package/lib/engine-components/postprocessing/Effects/Tonemapping.d.ts +19 -19
  535. package/lib/engine-components/postprocessing/Effects/Tonemapping.js +94 -94
  536. package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.d.ts +13 -13
  537. package/lib/engine-components/postprocessing/Effects/Tonemapping.utils.js +51 -51
  538. package/lib/engine-components/postprocessing/Effects/Vignette.d.ts +15 -15
  539. package/lib/engine-components/postprocessing/Effects/Vignette.js +60 -60
  540. package/lib/engine-components/postprocessing/PostProcessingEffect.d.ts +90 -90
  541. package/lib/engine-components/postprocessing/PostProcessingEffect.js +168 -168
  542. package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +42 -42
  543. package/lib/engine-components/postprocessing/PostProcessingHandler.js +480 -480
  544. package/lib/engine-components/postprocessing/Volume.d.ts +90 -90
  545. package/lib/engine-components/postprocessing/Volume.js +385 -385
  546. package/lib/engine-components/postprocessing/VolumeParameter.d.ts +26 -26
  547. package/lib/engine-components/postprocessing/VolumeParameter.js +136 -136
  548. package/lib/engine-components/postprocessing/VolumeProfile.d.ts +15 -15
  549. package/lib/engine-components/postprocessing/VolumeProfile.js +60 -60
  550. package/lib/engine-components/postprocessing/index.d.ts +6 -6
  551. package/lib/engine-components/postprocessing/index.js +6 -6
  552. package/lib/engine-components/postprocessing/utils.d.ts +55 -55
  553. package/lib/engine-components/postprocessing/utils.js +119 -119
  554. package/lib/engine-components/timeline/PlayableDirector.d.ts +163 -163
  555. package/lib/engine-components/timeline/PlayableDirector.js +686 -686
  556. package/lib/engine-components/timeline/SignalAsset.d.ts +24 -24
  557. package/lib/engine-components/timeline/SignalAsset.js +130 -130
  558. package/lib/engine-components/timeline/TimelineModels.d.ts +89 -89
  559. package/lib/engine-components/timeline/TimelineModels.js +22 -22
  560. package/lib/engine-components/timeline/TimelineTracks.d.ts +110 -110
  561. package/lib/engine-components/timeline/TimelineTracks.js +879 -879
  562. package/lib/engine-components/timeline/index.d.ts +4 -4
  563. package/lib/engine-components/timeline/index.js +3 -3
  564. package/lib/engine-components/ui/BaseUIComponent.d.ts +48 -48
  565. package/lib/engine-components/ui/BaseUIComponent.js +170 -170
  566. package/lib/engine-components/ui/Button.d.ts +64 -64
  567. package/lib/engine-components/ui/Button.js +315 -315
  568. package/lib/engine-components/ui/Canvas.d.ts +74 -74
  569. package/lib/engine-components/ui/Canvas.js +407 -407
  570. package/lib/engine-components/ui/CanvasGroup.d.ts +19 -19
  571. package/lib/engine-components/ui/CanvasGroup.js +58 -58
  572. package/lib/engine-components/ui/EventSystem.d.ts +125 -125
  573. package/lib/engine-components/ui/EventSystem.js +765 -765
  574. package/lib/engine-components/ui/Graphic.d.ts +55 -55
  575. package/lib/engine-components/ui/Graphic.js +255 -255
  576. package/lib/engine-components/ui/Image.d.ts +35 -35
  577. package/lib/engine-components/ui/Image.js +116 -116
  578. package/lib/engine-components/ui/InputField.d.ts +42 -42
  579. package/lib/engine-components/ui/InputField.js +268 -268
  580. package/lib/engine-components/ui/Interfaces.d.ts +38 -38
  581. package/lib/engine-components/ui/Interfaces.js +12 -12
  582. package/lib/engine-components/ui/Layout.d.ts +84 -84
  583. package/lib/engine-components/ui/Layout.js +330 -330
  584. package/lib/engine-components/ui/Outline.d.ts +7 -7
  585. package/lib/engine-components/ui/Outline.js +20 -20
  586. package/lib/engine-components/ui/PointerEvents.d.ts +115 -115
  587. package/lib/engine-components/ui/PointerEvents.js +145 -145
  588. package/lib/engine-components/ui/RaycastUtils.d.ts +11 -11
  589. package/lib/engine-components/ui/RaycastUtils.js +67 -67
  590. package/lib/engine-components/ui/Raycaster.d.ts +30 -30
  591. package/lib/engine-components/ui/Raycaster.js +95 -95
  592. package/lib/engine-components/ui/RectTransform.d.ts +61 -61
  593. package/lib/engine-components/ui/RectTransform.js +356 -356
  594. package/lib/engine-components/ui/SpatialHtml.d.ts +8 -8
  595. package/lib/engine-components/ui/SpatialHtml.js +79 -79
  596. package/lib/engine-components/ui/Symbols.d.ts +1 -1
  597. package/lib/engine-components/ui/Symbols.js +1 -1
  598. package/lib/engine-components/ui/Text.d.ts +78 -78
  599. package/lib/engine-components/ui/Text.js +539 -539
  600. package/lib/engine-components/ui/Utils.d.ts +24 -24
  601. package/lib/engine-components/ui/Utils.js +90 -90
  602. package/lib/engine-components/ui/index.d.ts +1 -1
  603. package/lib/engine-components/ui/index.js +1 -1
  604. package/lib/engine-components/utils/EnvironmentScene.d.ts +5 -5
  605. package/lib/engine-components/utils/EnvironmentScene.js +205 -205
  606. package/lib/engine-components/utils/LookAt.d.ts +31 -31
  607. package/lib/engine-components/utils/LookAt.js +82 -82
  608. package/lib/engine-components/utils/OpenURL.d.ts +42 -42
  609. package/lib/engine-components/utils/OpenURL.js +119 -119
  610. package/lib/engine-components/webxr/Avatar.d.ts +25 -25
  611. package/lib/engine-components/webxr/Avatar.js +255 -255
  612. package/lib/engine-components/webxr/TeleportTarget.d.ts +7 -7
  613. package/lib/engine-components/webxr/TeleportTarget.js +7 -7
  614. package/lib/engine-components/webxr/WebARCameraBackground.d.ts +30 -30
  615. package/lib/engine-components/webxr/WebARCameraBackground.js +155 -155
  616. package/lib/engine-components/webxr/WebARSessionRoot.d.ts +98 -98
  617. package/lib/engine-components/webxr/WebARSessionRoot.js +770 -770
  618. package/lib/engine-components/webxr/WebXR.d.ts +232 -232
  619. package/lib/engine-components/webxr/WebXR.js +561 -561
  620. package/lib/engine-components/webxr/WebXRAvatar.d.ts +27 -27
  621. package/lib/engine-components/webxr/WebXRAvatar.js +44 -44
  622. package/lib/engine-components/webxr/WebXRImageTracking.d.ts +86 -86
  623. package/lib/engine-components/webxr/WebXRImageTracking.js +471 -471
  624. package/lib/engine-components/webxr/WebXRPlaneTracking.d.ts +92 -92
  625. package/lib/engine-components/webxr/WebXRPlaneTracking.js +500 -500
  626. package/lib/engine-components/webxr/WebXRRig.d.ts +32 -32
  627. package/lib/engine-components/webxr/WebXRRig.js +72 -72
  628. package/lib/engine-components/webxr/XRFlag.d.ts +38 -38
  629. package/lib/engine-components/webxr/XRFlag.js +139 -139
  630. package/lib/engine-components/webxr/controllers/XRControllerFollow.d.ts +47 -47
  631. package/lib/engine-components/webxr/controllers/XRControllerFollow.js +120 -120
  632. package/lib/engine-components/webxr/controllers/XRControllerModel.d.ts +43 -43
  633. package/lib/engine-components/webxr/controllers/XRControllerModel.js +352 -352
  634. package/lib/engine-components/webxr/controllers/XRControllerMovement.d.ts +78 -78
  635. package/lib/engine-components/webxr/controllers/XRControllerMovement.js +506 -506
  636. package/lib/engine-components/webxr/index.d.ts +3 -3
  637. package/lib/engine-components/webxr/index.js +3 -3
  638. package/lib/engine-components/webxr/types.d.ts +3 -3
  639. package/lib/engine-components/webxr/types.js +1 -1
  640. package/lib/engine-components-experimental/Presentation.d.ts +6 -6
  641. package/lib/engine-components-experimental/Presentation.js +9 -9
  642. package/lib/engine-components-experimental/api.d.ts +4 -4
  643. package/lib/engine-components-experimental/api.js +4 -4
  644. package/lib/engine-components-experimental/networking/PlayerSync.d.ts +156 -156
  645. package/lib/engine-components-experimental/networking/PlayerSync.js +377 -377
  646. package/lib/engine-schemes/api.d.ts +12 -12
  647. package/lib/engine-schemes/api.js +12 -12
  648. package/lib/engine-schemes/schemes.d.ts +7 -7
  649. package/lib/engine-schemes/schemes.js +19 -19
  650. package/lib/engine-schemes/synced-camera-model.d.ts +25 -25
  651. package/lib/engine-schemes/synced-camera-model.js +67 -67
  652. package/lib/engine-schemes/synced-transform-model.d.ts +31 -31
  653. package/lib/engine-schemes/synced-transform-model.js +66 -66
  654. package/lib/engine-schemes/transform.d.ts +12 -12
  655. package/lib/engine-schemes/transform.js +39 -39
  656. package/lib/engine-schemes/vec2.d.ts +10 -10
  657. package/lib/engine-schemes/vec2.js +25 -25
  658. package/lib/engine-schemes/vec3.d.ts +11 -11
  659. package/lib/engine-schemes/vec3.js +29 -29
  660. package/lib/engine-schemes/vec4.d.ts +12 -12
  661. package/lib/engine-schemes/vec4.js +33 -33
  662. package/lib/engine-schemes/vr-user-state-buffer.d.ts +37 -37
  663. package/lib/engine-schemes/vr-user-state-buffer.js +110 -110
  664. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.d.ts +6 -6
  665. package/lib/include/three/EXT_mesh_gpu_instancing_exporter.js +45 -45
  666. package/lib/needle-engine.d.ts +7 -7
  667. package/lib/needle-engine.js +64 -64
  668. package/package.json +2 -2
  669. package/plugins/common/buildinfo.js +64 -64
  670. package/plugins/common/cloud.js +1 -1
  671. package/plugins/common/config.cjs +31 -31
  672. package/plugins/common/config.js +35 -35
  673. package/plugins/common/files.js +31 -31
  674. package/plugins/common/generator.js +10 -10
  675. package/plugins/common/license.js +452 -452
  676. package/plugins/common/npm.js +15 -15
  677. package/plugins/common/timers.js +7 -7
  678. package/plugins/common/version.js +37 -37
  679. package/plugins/gltf-packer.mjs +1 -1
  680. package/plugins/next/alias.cjs +39 -39
  681. package/plugins/next/license.cjs +24 -24
  682. package/plugins/next/meshbvhworker.cjs +18 -18
  683. package/plugins/next/next.js +141 -141
  684. package/plugins/types/index.d.ts +2 -2
  685. package/plugins/types/license.d.ts +24 -24
  686. package/plugins/types/needleConfig.d.ts +27 -27
  687. package/plugins/types/next.d.ts +2 -2
  688. package/plugins/types/userconfig.d.ts +120 -120
  689. package/plugins/types/vite.d.ts +13 -13
  690. package/plugins/types/webmanifest.d.ts +32 -32
  691. package/plugins/vite/alias.js +174 -174
  692. package/plugins/vite/asap.js +251 -251
  693. package/plugins/vite/build-pipeline.js +371 -371
  694. package/plugins/vite/build.js +19 -19
  695. package/plugins/vite/buildinfo.js +41 -41
  696. package/plugins/vite/config.js +106 -106
  697. package/plugins/vite/copyfiles.js +138 -138
  698. package/plugins/vite/defines.js +70 -70
  699. package/plugins/vite/dependencies.js +232 -232
  700. package/plugins/vite/dependency-watcher.js +237 -237
  701. package/plugins/vite/drop-client.js +76 -76
  702. package/plugins/vite/drop.js +87 -87
  703. package/plugins/vite/editor-connection.js +124 -124
  704. package/plugins/vite/facebook-instant-games.js +102 -102
  705. package/plugins/vite/gzip.js +5 -5
  706. package/plugins/vite/imports-logger.js +143 -143
  707. package/plugins/vite/index.js +143 -143
  708. package/plugins/vite/license.js +56 -56
  709. package/plugins/vite/local-files.js +440 -440
  710. package/plugins/vite/meta.js +163 -163
  711. package/plugins/vite/npm.js +7 -7
  712. package/plugins/vite/peer.js +29 -29
  713. package/plugins/vite/poster-client.js +73 -73
  714. package/plugins/vite/poster.js +79 -79
  715. package/plugins/vite/pwa.js +604 -604
  716. package/plugins/vite/reload-client.js +15 -15
  717. package/plugins/vite/reload.js +351 -351
  718. package/plugins/vite/server.js +66 -66
  719. package/plugins/vite/transform-codegen.js +55 -55
  720. package/plugins/vite/transform.js +31 -31
  721. package/plugins/vite/vite-4.4-hack.js +31 -31
  722. package/src/asap/needle-asap.ts +111 -111
  723. package/src/asap/sessiongranted.ts +75 -75
  724. package/src/asap/utils.ts +4 -4
  725. package/src/engine/analytics/index.ts +10 -10
  726. package/src/engine/analytics/lcp.ts +35 -35
  727. package/src/engine/api.ts +82 -82
  728. package/src/engine/assets/index.ts +59 -59
  729. package/src/engine/assets/static.js +5 -5
  730. package/src/engine/codegen/register_types.ts +300 -300
  731. package/src/engine/debug/debug.ts +51 -51
  732. package/src/engine/debug/debug_console.ts +333 -333
  733. package/src/engine/debug/debug_overlay.ts +332 -332
  734. package/src/engine/debug/debug_spatial_console.ts +429 -429
  735. package/src/engine/debug/index.ts +1 -1
  736. package/src/engine/engine_addressables.ts +680 -680
  737. package/src/engine/engine_animation.ts +145 -145
  738. package/src/engine/engine_application.ts +113 -113
  739. package/src/engine/engine_assetdatabase.ts +389 -389
  740. package/src/engine/engine_audio.ts +24 -24
  741. package/src/engine/engine_camera.ts +39 -39
  742. package/src/engine/engine_components.ts +366 -366
  743. package/src/engine/engine_components_internal.ts +40 -40
  744. package/src/engine/engine_constants.ts +52 -52
  745. package/src/engine/engine_context.ts +1824 -1823
  746. package/src/engine/engine_context_registry.ts +129 -129
  747. package/src/engine/engine_coroutine.ts +54 -54
  748. package/src/engine/engine_create_objects.ts +411 -411
  749. package/src/engine/engine_default_parameters.ts +3 -3
  750. package/src/engine/engine_editor-sync.ts +28 -28
  751. package/src/engine/engine_fileloader.js +9 -9
  752. package/src/engine/engine_gameobject.ts +712 -712
  753. package/src/engine/engine_generic_utils.js +13 -13
  754. package/src/engine/engine_gizmos.ts +577 -577
  755. package/src/engine/engine_gltf.ts +29 -29
  756. package/src/engine/engine_gltf_builtin_components.ts +403 -403
  757. package/src/engine/engine_hot_reload.ts +210 -210
  758. package/src/engine/engine_input.ts +1500 -1500
  759. package/src/engine/engine_input_utils.ts +23 -23
  760. package/src/engine/engine_instancing.ts +45 -45
  761. package/src/engine/engine_license.ts +386 -386
  762. package/src/engine/engine_lifecycle_api.ts +113 -113
  763. package/src/engine/engine_lifecycle_functions_internal.ts +193 -193
  764. package/src/engine/engine_lightdata.ts +117 -117
  765. package/src/engine/engine_loaders.callbacks.ts +136 -136
  766. package/src/engine/engine_loaders.gltf.ts +82 -82
  767. package/src/engine/engine_loaders.ts +378 -378
  768. package/src/engine/engine_lods.ts +168 -168
  769. package/src/engine/engine_mainloop_utils.ts +472 -472
  770. package/src/engine/engine_math.ts +282 -282
  771. package/src/engine/engine_modules.ts +83 -83
  772. package/src/engine/engine_networking.ts +862 -862
  773. package/src/engine/engine_networking_auto.ts +352 -352
  774. package/src/engine/engine_networking_blob.ts +275 -275
  775. package/src/engine/engine_networking_files.ts +217 -217
  776. package/src/engine/engine_networking_files_default_components.ts +58 -58
  777. package/src/engine/engine_networking_instantiate.ts +419 -419
  778. package/src/engine/engine_networking_peer.ts +159 -159
  779. package/src/engine/engine_networking_streams.ts +713 -713
  780. package/src/engine/engine_networking_types.ts +24 -24
  781. package/src/engine/engine_networking_utils.ts +23 -23
  782. package/src/engine/engine_networking_websocket.ts +2 -2
  783. package/src/engine/engine_patcher.ts +199 -199
  784. package/src/engine/engine_physics.ts +783 -783
  785. package/src/engine/engine_physics.types.ts +46 -46
  786. package/src/engine/engine_physics_rapier.ts +1577 -1577
  787. package/src/engine/engine_playerview.ts +80 -80
  788. package/src/engine/engine_scenelighting.ts +294 -294
  789. package/src/engine/engine_serialization.ts +2 -2
  790. package/src/engine/engine_serialization_builtin_serializer.ts +473 -473
  791. package/src/engine/engine_serialization_core.ts +720 -720
  792. package/src/engine/engine_serialization_decorator.ts +80 -80
  793. package/src/engine/engine_setup.ts +1 -1
  794. package/src/engine/engine_shaders.ts +267 -267
  795. package/src/engine/engine_shims.ts +32 -32
  796. package/src/engine/engine_test_utils.ts +109 -109
  797. package/src/engine/engine_texture.ts +82 -82
  798. package/src/engine/engine_three_utils.ts +925 -925
  799. package/src/engine/engine_time.ts +94 -94
  800. package/src/engine/engine_time_utils.ts +237 -237
  801. package/src/engine/engine_tonemapping.ts +208 -208
  802. package/src/engine/engine_types.ts +730 -730
  803. package/src/engine/engine_typestore.ts +63 -63
  804. package/src/engine/engine_util_decorator.ts +136 -136
  805. package/src/engine/engine_utils.ts +1115 -1115
  806. package/src/engine/engine_utils_format.ts +273 -273
  807. package/src/engine/engine_utils_screenshot.ts +708 -708
  808. package/src/engine/engine_utils_screenshot.xr.ts +103 -103
  809. package/src/engine/export/gltf/Writers.ts +34 -34
  810. package/src/engine/export/gltf/index.ts +158 -158
  811. package/src/engine/export/index.ts +2 -2
  812. package/src/engine/export/state.ts +19 -19
  813. package/src/engine/export/utils.ts +9 -9
  814. package/src/engine/extensions/EXT_texture_exr.ts +50 -50
  815. package/src/engine/extensions/NEEDLE_animator_controller_model.ts +195 -195
  816. package/src/engine/extensions/NEEDLE_components.ts +268 -268
  817. package/src/engine/extensions/NEEDLE_gameobject_data.ts +81 -81
  818. package/src/engine/extensions/NEEDLE_lighting_settings.ts +185 -185
  819. package/src/engine/extensions/NEEDLE_lightmaps.ts +119 -119
  820. package/src/engine/extensions/NEEDLE_persistent_assets.ts +76 -76
  821. package/src/engine/extensions/NEEDLE_render_objects.ts +209 -209
  822. package/src/engine/extensions/NEEDLE_techniques_webgl.ts +640 -640
  823. package/src/engine/extensions/extension_resolver.ts +4 -4
  824. package/src/engine/extensions/extension_utils.ts +166 -166
  825. package/src/engine/extensions/extensions.ts +140 -140
  826. package/src/engine/extensions/index.ts +5 -5
  827. package/src/engine/extensions/usage_tracker.ts +100 -100
  828. package/src/engine/js-extensions/Camera.ts +37 -37
  829. package/src/engine/js-extensions/ExtensionUtils.ts +85 -85
  830. package/src/engine/js-extensions/Layers.ts +23 -23
  831. package/src/engine/js-extensions/Object3D.ts +296 -296
  832. package/src/engine/js-extensions/RGBAColor.ts +126 -126
  833. package/src/engine/js-extensions/Vector.ts +18 -18
  834. package/src/engine/js-extensions/index.ts +4 -4
  835. package/src/engine/physics/workers/mesh-bvh/GenerateMeshBVHWorker.js +125 -125
  836. package/src/engine/shaders/shaderData.ts +67 -67
  837. package/src/engine/tests/test_utils.ts +63 -63
  838. package/src/engine/webcomponents/WebXRButtons.ts +260 -260
  839. package/src/engine/webcomponents/api.ts +6 -6
  840. package/src/engine/webcomponents/buttons.ts +292 -292
  841. package/src/engine/webcomponents/fonts.ts +41 -41
  842. package/src/engine/webcomponents/icons.ts +57 -57
  843. package/src/engine/webcomponents/index.ts +1 -1
  844. package/src/engine/webcomponents/logo-element.ts +78 -78
  845. package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +573 -573
  846. package/src/engine/webcomponents/needle menu/needle-menu.ts +1118 -1118
  847. package/src/engine/webcomponents/needle-button.ts +181 -181
  848. package/src/engine/webcomponents/needle-engine.ar-overlay.ts +186 -186
  849. package/src/engine/webcomponents/needle-engine.attributes.ts +82 -82
  850. package/src/engine/webcomponents/needle-engine.extras.ts +16 -16
  851. package/src/engine/webcomponents/needle-engine.loading.ts +373 -373
  852. package/src/engine/webcomponents/needle-engine.ts +860 -860
  853. package/src/engine/xr/NeedleXRController.ts +1125 -1125
  854. package/src/engine/xr/NeedleXRSession.ts +1624 -1624
  855. package/src/engine/xr/NeedleXRSync.ts +220 -220
  856. package/src/engine/xr/SceneTransition.ts +78 -78
  857. package/src/engine/xr/TempXRContext.ts +216 -216
  858. package/src/engine/xr/XRRig.ts +9 -9
  859. package/src/engine/xr/api.ts +5 -5
  860. package/src/engine/xr/events.ts +102 -102
  861. package/src/engine/xr/internal.ts +34 -34
  862. package/src/engine/xr/usdz.ts +30 -30
  863. package/src/engine/xr/utils.ts +39 -39
  864. package/src/engine-components/AlignmentConstraint.ts +36 -36
  865. package/src/engine-components/Animation.ts +557 -557
  866. package/src/engine-components/AnimationCurve.ts +150 -150
  867. package/src/engine-components/AnimationUtils.ts +28 -28
  868. package/src/engine-components/AnimationUtilsAutoplay.ts +43 -43
  869. package/src/engine-components/Animator.ts +397 -397
  870. package/src/engine-components/AnimatorController.ts +1293 -1293
  871. package/src/engine-components/AudioListener.ts +92 -92
  872. package/src/engine-components/AudioSource.ts +644 -644
  873. package/src/engine-components/AvatarLoader.ts +263 -263
  874. package/src/engine-components/AxesHelper.ts +59 -59
  875. package/src/engine-components/BasicIKConstraint.ts +54 -54
  876. package/src/engine-components/BoxCollider.ts +1 -1
  877. package/src/engine-components/BoxHelperComponent.ts +114 -114
  878. package/src/engine-components/Camera.ts +719 -719
  879. package/src/engine-components/CameraUtils.ts +136 -136
  880. package/src/engine-components/CharacterController.ts +253 -253
  881. package/src/engine-components/Collider.ts +374 -374
  882. package/src/engine-components/Component.ts +1297 -1297
  883. package/src/engine-components/ContactShadows.ts +506 -506
  884. package/src/engine-components/DeleteBox.ts +62 -62
  885. package/src/engine-components/DeviceFlag.ts +46 -46
  886. package/src/engine-components/DragControls.ts +1623 -1623
  887. package/src/engine-components/DropListener.ts +713 -713
  888. package/src/engine-components/Duplicatable.ts +198 -198
  889. package/src/engine-components/EventList.ts +266 -266
  890. package/src/engine-components/EventTrigger.ts +74 -74
  891. package/src/engine-components/EventType.ts +22 -22
  892. package/src/engine-components/Fog.ts +60 -60
  893. package/src/engine-components/Gizmos.ts +56 -56
  894. package/src/engine-components/GridHelper.ts +48 -48
  895. package/src/engine-components/GroundProjection.ts +356 -356
  896. package/src/engine-components/Interactable.ts +14 -14
  897. package/src/engine-components/Joints.ts +52 -52
  898. package/src/engine-components/LODGroup.ts +153 -153
  899. package/src/engine-components/Light.ts +558 -558
  900. package/src/engine-components/LookAtConstraint.ts +25 -25
  901. package/src/engine-components/NeedleMenu.ts +84 -84
  902. package/src/engine-components/NestedGltf.ts +86 -86
  903. package/src/engine-components/Networking.ts +114 -114
  904. package/src/engine-components/OffsetConstraint.ts +60 -60
  905. package/src/engine-components/OrbitControls.ts +1074 -1074
  906. package/src/engine-components/PlayerColor.ts +103 -103
  907. package/src/engine-components/ReflectionProbe.ts +220 -220
  908. package/src/engine-components/Renderer.ts +903 -903
  909. package/src/engine-components/RendererInstancing.ts +855 -855
  910. package/src/engine-components/RendererLightmap.ts +198 -198
  911. package/src/engine-components/RigidBody.ts +526 -526
  912. package/src/engine-components/SceneSwitcher.ts +1030 -1030
  913. package/src/engine-components/ScreenCapture.ts +592 -592
  914. package/src/engine-components/ShadowCatcher.ts +172 -172
  915. package/src/engine-components/Skybox.ts +475 -475
  916. package/src/engine-components/SmoothFollow.ts +76 -76
  917. package/src/engine-components/SpatialTrigger.ts +229 -229
  918. package/src/engine-components/SpectatorCamera.ts +787 -787
  919. package/src/engine-components/SphereCollider.ts +1 -1
  920. package/src/engine-components/SpriteRenderer.ts +468 -468
  921. package/src/engine-components/SyncedCamera.ts +220 -220
  922. package/src/engine-components/SyncedRoom.ts +380 -380
  923. package/src/engine-components/SyncedTransform.ts +383 -383
  924. package/src/engine-components/TestRunner.ts +118 -118
  925. package/src/engine-components/TransformGizmo.ts +219 -219
  926. package/src/engine-components/VideoPlayer.ts +1025 -1025
  927. package/src/engine-components/Voip.ts +363 -363
  928. package/src/engine-components/api.ts +60 -60
  929. package/src/engine-components/avatar/AvatarBlink_Simple.ts +69 -69
  930. package/src/engine-components/avatar/AvatarEyeLook_Rotation.ts +63 -63
  931. package/src/engine-components/avatar/Avatar_Brain_LookAt.ts +139 -139
  932. package/src/engine-components/avatar/Avatar_MouthShapes.ts +83 -83
  933. package/src/engine-components/avatar/Avatar_MustacheShake.ts +31 -31
  934. package/src/engine-components/codegen/components.ts +217 -217
  935. package/src/engine-components/debug/LogStats.ts +21 -21
  936. package/src/engine-components/export/gltf/GltfExport.ts +265 -265
  937. package/src/engine-components/export/usdz/Extension.ts +24 -24
  938. package/src/engine-components/export/usdz/ThreeUSDZExporter.ts +2426 -2426
  939. package/src/engine-components/export/usdz/USDZExporter.ts +705 -705
  940. package/src/engine-components/export/usdz/extensions/Animation.ts +1204 -1204
  941. package/src/engine-components/export/usdz/extensions/DocumentExtension.ts +9 -9
  942. package/src/engine-components/export/usdz/extensions/NodeMaterialConverter.ts +532 -532
  943. package/src/engine-components/export/usdz/extensions/USDZText.ts +240 -240
  944. package/src/engine-components/export/usdz/extensions/USDZUI.ts +189 -189
  945. package/src/engine-components/export/usdz/extensions/behavior/Actions.ts +99 -99
  946. package/src/engine-components/export/usdz/extensions/behavior/AudioExtension.ts +102 -102
  947. package/src/engine-components/export/usdz/extensions/behavior/Behaviour.ts +320 -320
  948. package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +1225 -1225
  949. package/src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +646 -646
  950. package/src/engine-components/export/usdz/extensions/behavior/PhysicsExtension.ts +132 -132
  951. package/src/engine-components/export/usdz/index.ts +2 -2
  952. package/src/engine-components/export/usdz/utils/animationutils.ts +191 -191
  953. package/src/engine-components/export/usdz/utils/quicklook.ts +50 -50
  954. package/src/engine-components/particlesystem/ParticleSystem.ts +1287 -1287
  955. package/src/engine-components/particlesystem/ParticleSystemModules.ts +1765 -1765
  956. package/src/engine-components/particlesystem/ParticleSystemSubEmitter.ts +111 -111
  957. package/src/engine-components/particlesystem/api.ts +1 -1
  958. package/src/engine-components/postprocessing/Effects/Antialiasing.ts +57 -57
  959. package/src/engine-components/postprocessing/Effects/BloomEffect.ts +116 -116
  960. package/src/engine-components/postprocessing/Effects/ChromaticAberration.ts +37 -37
  961. package/src/engine-components/postprocessing/Effects/ColorAdjustments.ts +106 -106
  962. package/src/engine-components/postprocessing/Effects/DepthOfField.ts +103 -103
  963. package/src/engine-components/postprocessing/Effects/EffectWrapper.ts +25 -25
  964. package/src/engine-components/postprocessing/Effects/Pixelation.ts +32 -32
  965. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusion.ts +90 -90
  966. package/src/engine-components/postprocessing/Effects/ScreenspaceAmbientOcclusionN8.ts +192 -192
  967. package/src/engine-components/postprocessing/Effects/Sharpening.ts +143 -143
  968. package/src/engine-components/postprocessing/Effects/TiltShiftEffect.ts +61 -61
  969. package/src/engine-components/postprocessing/Effects/Tonemapping.ts +103 -103
  970. package/src/engine-components/postprocessing/Effects/Tonemapping.utils.ts +60 -60
  971. package/src/engine-components/postprocessing/Effects/Vignette.ts +59 -59
  972. package/src/engine-components/postprocessing/PostProcessingEffect.ts +192 -192
  973. package/src/engine-components/postprocessing/PostProcessingHandler.ts +560 -560
  974. package/src/engine-components/postprocessing/Volume.ts +426 -426
  975. package/src/engine-components/postprocessing/VolumeParameter.ts +158 -158
  976. package/src/engine-components/postprocessing/VolumeProfile.ts +61 -61
  977. package/src/engine-components/postprocessing/index.ts +5 -5
  978. package/src/engine-components/postprocessing/utils.ts +154 -154
  979. package/src/engine-components/timeline/PlayableDirector.ts +722 -722
  980. package/src/engine-components/timeline/SignalAsset.ts +144 -144
  981. package/src/engine-components/timeline/TimelineModels.ts +92 -92
  982. package/src/engine-components/timeline/TimelineTracks.ts +967 -967
  983. package/src/engine-components/timeline/index.ts +3 -3
  984. package/src/engine-components/ui/BaseUIComponent.ts +203 -203
  985. package/src/engine-components/ui/Button.ts +307 -307
  986. package/src/engine-components/ui/Canvas.ts +419 -419
  987. package/src/engine-components/ui/CanvasGroup.ts +54 -54
  988. package/src/engine-components/ui/EventSystem.ts +854 -854
  989. package/src/engine-components/ui/Graphic.ts +275 -275
  990. package/src/engine-components/ui/Image.ts +112 -112
  991. package/src/engine-components/ui/InputField.ts +321 -321
  992. package/src/engine-components/ui/Interfaces.ts +57 -57
  993. package/src/engine-components/ui/Layout.ts +334 -334
  994. package/src/engine-components/ui/Outline.ts +13 -13
  995. package/src/engine-components/ui/PointerEvents.ts +206 -206
  996. package/src/engine-components/ui/RaycastUtils.ts +69 -69
  997. package/src/engine-components/ui/Raycaster.ts +102 -102
  998. package/src/engine-components/ui/RectTransform.ts +375 -375
  999. package/src/engine-components/ui/SpatialHtml.ts +79 -79
  1000. package/src/engine-components/ui/Symbols.ts +1 -1
  1001. package/src/engine-components/ui/Text.ts +578 -578
  1002. package/src/engine-components/ui/Utils.ts +113 -113
  1003. package/src/engine-components/utils/EnvironmentScene.ts +245 -245
  1004. package/src/engine-components/utils/LookAt.ts +88 -88
  1005. package/src/engine-components/utils/OpenURL.ts +114 -114
  1006. package/src/engine-components/webxr/Avatar.ts +265 -265
  1007. package/src/engine-components/webxr/TeleportTarget.ts +9 -9
  1008. package/src/engine-components/webxr/WebARCameraBackground.ts +175 -175
  1009. package/src/engine-components/webxr/WebARSessionRoot.ts +880 -880
  1010. package/src/engine-components/webxr/WebXR.ts +585 -585
  1011. package/src/engine-components/webxr/WebXRAvatar.ts +66 -66
  1012. package/src/engine-components/webxr/WebXRImageTracking.ts +519 -519
  1013. package/src/engine-components/webxr/WebXRPlaneTracking.ts +570 -570
  1014. package/src/engine-components/webxr/WebXRRig.ts +77 -77
  1015. package/src/engine-components/webxr/XRFlag.ts +147 -147
  1016. package/src/engine-components/webxr/controllers/XRControllerFollow.ts +118 -118
  1017. package/src/engine-components/webxr/controllers/XRControllerModel.ts +373 -373
  1018. package/src/engine-components/webxr/controllers/XRControllerMovement.ts +550 -550
  1019. package/src/engine-components/webxr/index.ts +2 -2
  1020. package/src/engine-components/webxr/types.ts +3 -3
  1021. package/src/engine-components-experimental/Presentation.ts +12 -12
  1022. package/src/engine-components-experimental/api.ts +4 -4
  1023. package/src/engine-components-experimental/networking/PlayerSync.ts +401 -401
  1024. package/src/engine-schemes/COMPILE_SCHEMES.bat +3 -3
  1025. package/src/engine-schemes/COMPILE_TS.bat +11 -11
  1026. package/src/engine-schemes/README.md +1 -1
  1027. package/src/engine-schemes/api.ts +12 -12
  1028. package/src/engine-schemes/schemes.ts +28 -28
  1029. package/src/engine-schemes/synced-camera-model.ts +92 -92
  1030. package/src/engine-schemes/synced-transform-model.ts +90 -90
  1031. package/src/engine-schemes/syncedCamera.fbs +10 -10
  1032. package/src/engine-schemes/transform.ts +50 -50
  1033. package/src/engine-schemes/transforms.fbs +25 -25
  1034. package/src/engine-schemes/vec.fbs +19 -19
  1035. package/src/engine-schemes/vec2.ts +33 -33
  1036. package/src/engine-schemes/vec3.ts +38 -38
  1037. package/src/engine-schemes/vec4.ts +43 -43
  1038. package/src/engine-schemes/vr-user-state-buffer.ts +145 -145
  1039. package/src/engine-schemes/vrUserStateBuffer.fbs +17 -17
  1040. package/src/include/draco/draco_decoder.js +34 -34
  1041. package/src/include/ktx2/basis_transcoder.js +21 -21
  1042. package/src/include/needle/arial-msdf.json +1471 -1471
  1043. package/src/include/three/DragControls.js +231 -231
  1044. package/src/include/three/EXT_mesh_gpu_instancing_exporter.js +66 -66
  1045. package/src/needle-engine.ts +70 -70
  1046. package/dist/generateMeshBVH.worker-Cdfpaq5W.js +0 -25
  1047. package/src/engine-schemes/dist/api.js +0 -17
  1048. package/src/engine-schemes/dist/api.js.meta +0 -7
  1049. package/src/engine-schemes/dist/schemes.js +0 -25
  1050. package/src/engine-schemes/dist/schemes.js.meta +0 -7
  1051. package/src/engine-schemes/dist/synced-camera-model.js +0 -74
  1052. package/src/engine-schemes/dist/synced-camera-model.js.meta +0 -7
  1053. package/src/engine-schemes/dist/synced-transform-model.js +0 -73
  1054. package/src/engine-schemes/dist/synced-transform-model.js.meta +0 -7
  1055. package/src/engine-schemes/dist/transform.js +0 -46
  1056. package/src/engine-schemes/dist/transform.js.meta +0 -7
  1057. package/src/engine-schemes/dist/vec2.js +0 -32
  1058. package/src/engine-schemes/dist/vec2.js.meta +0 -7
  1059. package/src/engine-schemes/dist/vec3.js +0 -36
  1060. package/src/engine-schemes/dist/vec3.js.meta +0 -7
  1061. package/src/engine-schemes/dist/vec4.js +0 -40
  1062. package/src/engine-schemes/dist/vec4.js.meta +0 -7
  1063. package/src/engine-schemes/dist/vr-user-state-buffer.js +0 -110
  1064. package/src/engine-schemes/dist/vr-user-state-buffer.js.meta +0 -7
@@ -5,12 +5,12 @@ var e_ = (o) => {
5
5
  var rS = (o, t, e) => t in o ? oS(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
6
6
  var r = (o, t, e) => rS(o, typeof t != "symbol" ? t + "" : t, e), qf = (o, t, e) => t.has(o) || e_("Cannot " + e);
7
7
  var ue = (o, t, e) => (qf(o, t, "read from private field"), e ? e.call(o) : t.get(o)), mn = (o, t, e) => t.has(o) ? e_("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, e), gn = (o, t, e, i) => (qf(o, t, "write to private field"), i ? i.call(o, e) : t.set(o, e), e), Nl = (o, t, e) => (qf(o, t, "access private method"), e);
8
- import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as ls, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Iu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as is, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as mg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as zs, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as Jn, Group as jo, CylinderGeometry as w0, SphereGeometry as Lu, BoxGeometry as Ka, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as om, PointLight as gg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as Nc, BufferAttribute as _t, Raycaster as Du, Sphere as ju, ArrayCamera as fS, Plane as Hr, SkinnedMesh as Us, InterleavedBufferAttribute as P0, Skeleton as pS, Bone as mS, Source as gS, WebGLCubeRenderTarget as yS, CubeCamera as _S, AnimationClip as Bo, FileLoader as yg, TextureLoader as $a, PropertyBinding as Za, LinearSRGBColorSpace as Gs, ShaderChunk as ii, UniformsLib as bS, DataTexture as _g, RGBAFormat as Bu, EquirectangularReflectionMapping as Ns, SRGBColorSpace as qs, Clock as vS, NeutralToneMapping as Ja, AgXToneMapping as Fu, ACESFilmicToneMapping as zu, NoToneMapping as Dd, PCFSoftShadowMap$1 as wS, BasicNodeLibrary as xS, WebGLRenderTarget as ns, DepthTexture as O0, NearestFilter as jd, LoopRepeat as SS, LoopOnce as rm, AnimationMixer as bg, CompressedTexture as CS, FrontSide as Ho, Camera as PS, Frustum as t_, AudioListener as OS, PositionalAudio as kS, AudioLoader as am, EventDispatcher as vg, BackSide as Uu, MeshDepthMaterial as MS, CustomBlending as RS, MaxEquation as TS, AmbientLight as ES, HemisphereLight as AS, AlwaysStencilFunc as IS, GreaterEqualStencilFunc as LS, NotEqualStencilFunc as DS, GreaterStencilFunc as jS, LessEqualStencilFunc as BS, EqualStencilFunc as FS, LessStencilFunc as zS, NeverStencilFunc as i_, InvertStencilOp as US, DecrementWrapStencilOp as NS, IncrementWrapStencilOp as $S, DecrementStencilOp as WS, IncrementStencilOp as VS, ReplaceStencilOp as HS, ZeroStencilOp as GS, KeepStencilOp as qS, RawShaderMaterial as k0, GLSL3 as XS, AlwaysDepth as QS, GreaterEqualDepth as YS, GreaterDepth as KS, LessEqualDepth as ZS, LessDepth as JS, NotEqualDepth as eC, EqualDepth as tC, BatchedMesh as n_, MeshPhysicalMaterial as lm, LinearFilter as Bd, UnsignedByteType as iC, RingGeometry as nC, Line3 as sC, AdditiveBlending as M0, BoxHelper as oC, SpotLight as rC, DirectionalLightHelper as aC, CameraHelper as lC, LOD as cC, Triangle as hC, NormalBlending as dC, ReinhardToneMapping as wg, LinearToneMapping as xg, HalfFloatType as Xf, VideoTexture as uC, CubeTexture as fC, CompressedCubeTexture as pC, EquirectangularRefractionMapping as mC, VectorKeyframeTrack as gC, QuaternionKeyframeTrack as yC, Audio as _C, ShaderLib as Fd, UniformsUtils as R0, MirroredRepeatWrapping as s_, MeshNormalMaterial as bC, AudioContext as vC, PMREMGenerator$1 as wC } from "./three-Bz6X1mrw.js";
9
- import { createLoaders as Sg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-GjIqwSG3.js";
10
- import { GroundedSkybox as el, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Xs, TransformControlsGizmo as E0, EXRLoader as zd, RGBELoader as cm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Cg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-GggCDHv0.js";
11
- import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as o_, ByteBuffer as XC, v5 as r_, md5 as a_, SIZE_PREFIX_LENGTH as j0, Builder as Pg, createNoise4D as QC, Matrix4 as Qf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Ps, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as l_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-BSD1RQIh.js";
12
- import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Yf, __webpack_exports__FontLibrary as c_, ThreeMeshUI as h_ } from "./three-mesh-ui-CLNOfsWn.js";
13
- import { EffectAttribute as o1 } from "./postprocessing-BkxN_08g.js";
8
+ import { Vector2 as ae, Vector3 as w, Vector4 as ye, Quaternion as W, PlaneGeometry as ls, WebGLRenderer as Zr, PerspectiveCamera as ve, OrthographicCamera as Iu, Scene as ji, Mesh as G, Texture as Fe, Uniform$1 as tn, Color as re, ShaderMaterial as is, Box3 as Li, ShadowMaterial as b0, Euler as Ft, MeshStandardMaterial as yt, Box3Helper as aS, GridHelper as mg, Object3D as L, Material as Pe, Matrix3 as v0, Matrix4 as oe, Layers as Wo, Ray as Vo, MathUtils as zs, AxesHelper as Di, MeshBasicMaterial as Me, DoubleSide as Bi, BufferGeometry as Jn, Group as jo, CylinderGeometry as w0, SphereGeometry as Lu, BoxGeometry as Ka, SpriteMaterial as lS, Sprite as cS, Shape as hS, ExtrudeGeometry as dS, Fog as x0, DirectionalLight as om, PointLight as gg, EdgesGeometry as uS, LineSegments as S0, LineBasicMaterial as C0, Line as $c, BufferAttribute as _t, Raycaster as Du, Sphere as ju, ArrayCamera as fS, Plane as Hr, SkinnedMesh as Us, InterleavedBufferAttribute as P0, Skeleton as pS, Bone as mS, Source as gS, WebGLCubeRenderTarget as yS, CubeCamera as _S, AnimationClip as Bo, FileLoader as yg, TextureLoader as $a, PropertyBinding as Za, LinearSRGBColorSpace as Gs, ShaderChunk as ii, UniformsLib as bS, DataTexture as _g, RGBAFormat as Bu, EquirectangularReflectionMapping as Ns, SRGBColorSpace as qs, Clock as vS, NeutralToneMapping as Ja, AgXToneMapping as Fu, ACESFilmicToneMapping as zu, NoToneMapping as Dd, PCFSoftShadowMap$1 as wS, BasicNodeLibrary as xS, WebGLRenderTarget as ns, DepthTexture as O0, NearestFilter as jd, LoopRepeat as SS, LoopOnce as rm, AnimationMixer as bg, CompressedTexture as CS, FrontSide as Ho, Camera as PS, Frustum as t_, AudioListener as OS, PositionalAudio as kS, AudioLoader as am, EventDispatcher as vg, BackSide as Uu, MeshDepthMaterial as MS, CustomBlending as RS, MaxEquation as TS, AmbientLight as ES, HemisphereLight as AS, AlwaysStencilFunc as IS, GreaterEqualStencilFunc as LS, NotEqualStencilFunc as DS, GreaterStencilFunc as jS, LessEqualStencilFunc as BS, EqualStencilFunc as FS, LessStencilFunc as zS, NeverStencilFunc as i_, InvertStencilOp as US, DecrementWrapStencilOp as NS, IncrementWrapStencilOp as $S, DecrementStencilOp as WS, IncrementStencilOp as VS, ReplaceStencilOp as HS, ZeroStencilOp as GS, KeepStencilOp as qS, RawShaderMaterial as k0, GLSL3 as XS, AlwaysDepth as QS, GreaterEqualDepth as YS, GreaterDepth as KS, LessEqualDepth as ZS, LessDepth as JS, NotEqualDepth as eC, EqualDepth as tC, BatchedMesh as n_, MeshPhysicalMaterial as lm, LinearFilter as Bd, UnsignedByteType as iC, RingGeometry as nC, Line3 as sC, AdditiveBlending as M0, BoxHelper as oC, SpotLight as rC, DirectionalLightHelper as aC, CameraHelper as lC, LOD as cC, Triangle as hC, NormalBlending as dC, ReinhardToneMapping as wg, LinearToneMapping as xg, HalfFloatType as Xf, VideoTexture as uC, CubeTexture as fC, CompressedCubeTexture as pC, EquirectangularRefractionMapping as mC, VectorKeyframeTrack as gC, QuaternionKeyframeTrack as yC, Audio as _C, ShaderLib as Fd, UniformsUtils as R0, MirroredRepeatWrapping as s_, MeshNormalMaterial as bC, AudioContext as vC, PMREMGenerator$1 as wC } from "./three-DrqIzZTH.js";
9
+ import { createLoaders as Sg, getRaycastMesh as T0, LODsManager as pa, NEEDLE_progressive as Ze, addDracoAndKTX2Loaders as xC, configureLoader as SC, setKTX2TranscoderLocation as CC, setDracoDecoderLocation as PC } from "./gltf-progressive-DSpdn0QT.js";
10
+ import { GroundedSkybox as el, Font as OC, TextGeometry as kC, FontLoader as MC, GLTFLoader as Xs, TransformControlsGizmo as E0, EXRLoader as zd, RGBELoader as cm, Stats as RC, nodeFrame as TC, OrbitControls as A0, PositionalAudioHelper as EC, HorizontalBlurShader as AC, VerticalBlurShader as IC, GLTFExporter as I0, strToU8 as L0, zipSync as LC, XRControllerModelFactory as DC, XRHandMeshModel as jC, Line2 as BC, LineGeometry as FC, LineMaterial as zC, KTX2Loader as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as Cg, FBXLoader as D0, mergeVertices as HC } from "./three-examples-B50TT3Iu.js";
11
+ import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as o_, ByteBuffer as XC, v5 as r_, md5 as a_, SIZE_PREFIX_LENGTH as j0, Builder as Pg, createNoise4D as QC, Matrix4 as Qf, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as Ps, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as l_, WorkerBase as t1, MeshBVH as i1 } from "./vendor-BmYIgaS1.js";
12
+ import { __webpack_exports__default as Ee, __webpack_exports__Text as B0, __webpack_exports__Block as F0, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as Yf, __webpack_exports__FontLibrary as c_, ThreeMeshUI as h_ } from "./three-mesh-ui-CxuWt7m-.js";
13
+ import { EffectAttribute as o1 } from "./postprocessing-DYLNOL3W.js";
14
14
  const Kf = /* @__PURE__ */ new Map();
15
15
  function _i(o = ((t) => (t = globalThis.location) == null ? void 0 : t.hostname)()) {
16
16
  if (Kf.has(o)) return Kf.get(o);
@@ -179,7 +179,7 @@ function y1() {
179
179
  function _1(o) {
180
180
  return o = o.replace(/[^a-z0-9áéíóúñü \.,_-]/gim, ""), o.trim();
181
181
  }
182
- function $c(o, t, e = !0, i = !1) {
182
+ function Wc(o, t, e = !0, i = !1) {
183
183
  var n;
184
184
  if (t == null) return null;
185
185
  if (t.userData && t.userData.guid === o) return t;
@@ -191,12 +191,12 @@ function $c(o, t, e = !0, i = !1) {
191
191
  if (e) {
192
192
  if (t.scenes)
193
193
  for (const s in t.scenes) {
194
- const a = t.scenes[s], l = $c(o, a, e, i);
194
+ const a = t.scenes[s], l = Wc(o, a, e, i);
195
195
  if (l) return l;
196
196
  }
197
197
  if (t.children)
198
198
  for (const s in t.children) {
199
- const a = t.children[s], l = $c(o, a, e, i);
199
+ const a = t.children[s], l = Wc(o, a, e, i);
200
200
  if (l) return l;
201
201
  }
202
202
  }
@@ -230,26 +230,26 @@ function Wu(o, t) {
230
230
  t.pre_update_callbacks.push(s);
231
231
  });
232
232
  }
233
- const Fh = S("debugresolveurl"), b1 = "rel:";
233
+ const zh = S("debugresolveurl"), b1 = "rel:";
234
234
  function dL(o, t) {
235
235
  return Jr(o, t);
236
236
  }
237
237
  function Jr(o, t) {
238
238
  if (t === void 0)
239
- return Fh && console.warn("getPath: uri is undefined, returning uri", t), t;
239
+ return zh && console.warn("getPath: uri is undefined, returning uri", t), t;
240
240
  if (t.startsWith("./"))
241
241
  return t;
242
242
  if (t.startsWith("http"))
243
- return Fh && console.warn("getPath: uri is absolute, returning uri", t), t;
243
+ return zh && console.warn("getPath: uri is absolute, returning uri", t), t;
244
244
  if (o === void 0)
245
- return Fh && console.warn("getPath: source is undefined, returning uri", t), t;
245
+ return zh && console.warn("getPath: source is undefined, returning uri", t), t;
246
246
  t.startsWith(b1) && (t = t.substring(4));
247
247
  const e = o.lastIndexOf("/");
248
248
  if (e >= 0) {
249
249
  const i = o.substring(0, e + 1);
250
250
  for (; i.endsWith("/") && t.startsWith("/"); ) t = t.substring(1);
251
251
  const n = i + t;
252
- return Fh && console.log("source:", o, `changed uri
252
+ return zh && console.log("source:", o, `changed uri
253
253
  from`, t, `
254
254
  to `, n, `
255
255
  basePath: ` + i), n;
@@ -605,8 +605,8 @@ async function P1(o, t) {
605
605
  return b.src = y, b.style.width = "100%", b.style.height = "auto", b;
606
606
  }
607
607
  const W0 = S("debugdebug");
608
- let Wc = !1;
609
- (S("noerrors") || S("nooverlaymessages")) && (Wc = !0);
608
+ let Vc = !1;
609
+ (S("noerrors") || S("nooverlaymessages")) && (Vc = !0);
610
610
  const Zf = "needle_engine_global_error_container";
611
611
  var nn = /* @__PURE__ */ ((o) => (o[o.Log = 0] = "Log", o[o.Warn = 1] = "Warn", o[o.Error = 2] = "Error", o))(nn || {});
612
612
  function kg() {
@@ -633,13 +633,13 @@ const V0 = console.error, H0 = function(...o) {
633
633
  V0.apply(console, o), T1(o), Hn(2, o), um(...o);
634
634
  };
635
635
  function M1(o) {
636
- Wc = !o, o ? console.error = H0 : console.error = V0;
636
+ Vc = !o, o ? console.error = H0 : console.error = V0;
637
637
  }
638
638
  function SL(o) {
639
639
  return M1(o);
640
640
  }
641
641
  function R1() {
642
- Wc || (W0 && console.warn("Patch console", window.location.hostname), console.error = H0, window.addEventListener("error", (o) => {
642
+ Vc || (W0 && console.warn("Patch console", window.location.hostname), console.error = H0, window.addEventListener("error", (o) => {
643
643
  if (!o) return;
644
644
  const t = o.error;
645
645
  if (t === void 0) {
@@ -648,7 +648,7 @@ function R1() {
648
648
  }
649
649
  Hn(2, t, o.filename, o.lineno), um(o);
650
650
  }, !0), window.addEventListener("unhandledrejection", (o) => {
651
- Wc || o && (o.reason ? Hn(2, o.reason.message, o.reason.stack) : Hn(2, "unhandled rejection"), um(o));
651
+ Vc || o && (o.reason ? Hn(2, o.reason.message, o.reason.stack) : Hn(2, "unhandled rejection"), um(o));
652
652
  }));
653
653
  }
654
654
  let G0 = 0;
@@ -663,7 +663,7 @@ function T1(o) {
663
663
  }
664
664
  }
665
665
  function Hn(o, t, e, i) {
666
- if (Wc) return;
666
+ if (Vc) return;
667
667
  const n = fe.Current, s = (n == null ? void 0 : n.domElement) ?? document.querySelector("needle-engine");
668
668
  if (s) {
669
669
  if (Array.isArray(t)) {
@@ -677,7 +677,7 @@ function Hn(o, t, e, i) {
677
677
  !t || t.length <= 0 || E1(o, s, t);
678
678
  }
679
679
  }
680
- const vc = /* @__PURE__ */ new Map();
680
+ const wc = /* @__PURE__ */ new Map();
681
681
  function E1(o, t, e) {
682
682
  if (e == null) return;
683
683
  const i = I1(t);
@@ -687,20 +687,20 @@ function E1(o, t, e) {
687
687
  }
688
688
  e.length > 400 && (e = e.substring(0, 400) + "...");
689
689
  const n = e;
690
- if (vc.has(n))
690
+ if (wc.has(n))
691
691
  return;
692
692
  const s = L1(o, e);
693
693
  i.prepend(s);
694
694
  const a = () => {
695
- vc.delete(n), g_(s);
695
+ wc.delete(n), g_(s);
696
696
  };
697
- vc.set(n, a), setTimeout(a, 1e4);
697
+ wc.set(n, a), setTimeout(a, 1e4);
698
698
  }
699
699
  function CL() {
700
700
  W0 && console.log("Clearing messages");
701
- for (const o of vc.values())
701
+ for (const o of wc.values())
702
702
  o == null || o.call(o);
703
- vc.clear();
703
+ wc.clear();
704
704
  }
705
705
  const A1 = `
706
706
 
@@ -971,12 +971,12 @@ class X0 {
971
971
  this.x.reset(t == null ? void 0 : t.x), this.y.reset(t == null ? void 0 : t.y), this.z.reset(t == null ? void 0 : t.z);
972
972
  }
973
973
  }
974
- const yd = "needle:cameraController";
974
+ const _d = "needle:cameraController";
975
975
  function B1(o) {
976
- return o[yd];
976
+ return o[_d];
977
977
  }
978
978
  function __(o, t, e) {
979
- e ? o[yd] = t : o[yd] === t && (o[yd] = null);
979
+ e ? o[_d] = t : o[_d] === t && (o[_d] = null);
980
980
  }
981
981
  const fm = "needle:autofit";
982
982
  function F1(o) {
@@ -1072,7 +1072,7 @@ const W1 = new on(() => new w(), 100), V1 = new w();
1072
1072
  function Ke(o, t = null) {
1073
1073
  return t || (t = W1.get()), o ? o.parent ? (o.getWorldScale(t), t) : t.copy(o.scale) : t.set(0, 0, 0);
1074
1074
  }
1075
- function Vc(o, t) {
1075
+ function Hc(o, t) {
1076
1076
  if (!o) return;
1077
1077
  if (!o.parent) {
1078
1078
  o.scale.copy(t);
@@ -1304,7 +1304,7 @@ function tP(o, t, e) {
1304
1304
  const c = new w();
1305
1305
  c.set(a.x / n.x, a.y / n.y, a.z / n.z);
1306
1306
  const h = Math.min(c.x, c.y, c.z), d = (e == null ? void 0 : e.scale) !== !1;
1307
- if (d && Vc(o, Ke(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
1307
+ if (d && Hc(o, Ke(o).multiplyScalar(h)), (e == null ? void 0 : e.position) !== !1) {
1308
1308
  const u = new w();
1309
1309
  i.getCenter(u), u.y = i.min.y;
1310
1310
  const f = new w();
@@ -1342,21 +1342,21 @@ function ev(o, t, e, i) {
1342
1342
  const s = t;
1343
1343
  return s && (s.map ? n.color.set(1, 1, 1) : n.color.copyLinearToSRGB(s.color), n.emissive.copyLinearToSRGB(s.emissive), n.emissiveIntensity = s.emissiveIntensity, n.opacity = s.opacity, n.displacementScale = s.displacementScale, n.transparent = s.transparent, n.bumpMap = s.bumpMap, n.aoMap = s.aoMap, n.map = s.map, n.displacementMap = s.displacementMap, n.emissiveMap = s.emissiveMap, n.normalMap = s.normalMap, n.envMap = s.envMap, n.alphaMap = s.alphaMap, n.metalness = s.reflectivity, n.vertexColors = s.vertexColors, s.shininess && (n.roughness = 1 - Math.sqrt(s.shininess) / 10), n.needsUpdate = !0), e === void 0 ? o.material = n : i[e] = n, !0;
1344
1344
  }
1345
- let zh = !1;
1345
+ let Uh = !1;
1346
1346
  O1((...o) => {
1347
1347
  var t;
1348
1348
  z() && ((t = fe.Current) != null && t.isInXR) && (Wa(!0), tv("error", ...o));
1349
1349
  });
1350
1350
  function Wa(o) {
1351
1351
  if (o) {
1352
- if (zh) return;
1353
- zh = !0, sP();
1352
+ if (Uh) return;
1353
+ Uh = !0, sP();
1354
1354
  } else {
1355
- if (!zh) return;
1356
- zh = !1, oP();
1355
+ if (!Uh) return;
1356
+ Uh = !1, oP();
1357
1357
  }
1358
1358
  }
1359
- const wc = {
1359
+ const xc = {
1360
1360
  log: void 0,
1361
1361
  warn: void 0,
1362
1362
  error: void 0
@@ -1492,12 +1492,12 @@ class nP {
1492
1492
  let Jt = null;
1493
1493
  function sP() {
1494
1494
  Jt || (Jt = new nP()), Jt.onEnable();
1495
- for (const o in wc) {
1496
- wc[o] = console[o];
1495
+ for (const o in xc) {
1496
+ xc[o] = console[o];
1497
1497
  let t = !1;
1498
1498
  console[o] = function() {
1499
1499
  var e;
1500
- if ((e = wc[o]) == null || e.apply(console, arguments), !t)
1500
+ if ((e = xc[o]) == null || e.apply(console, arguments), !t)
1501
1501
  try {
1502
1502
  t = !0, tv(o, ...arguments);
1503
1503
  } finally {
@@ -1508,8 +1508,8 @@ function sP() {
1508
1508
  }
1509
1509
  function oP() {
1510
1510
  Jt == null || Jt.onDisable();
1511
- for (const o in wc)
1512
- console[o] = wc[o];
1511
+ for (const o in xc)
1512
+ console[o] = xc[o];
1513
1513
  }
1514
1514
  const $l = /* @__PURE__ */ new Map();
1515
1515
  function tv(o, ...t) {
@@ -1806,12 +1806,12 @@ qo('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUIL
1806
1806
  qo('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
1807
1807
  qo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.7.0-alpha";');
1808
1808
  qo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1809
- qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 23 2025 15:46:31 GMT+0200 (Central European Summer Time)";');
1810
- qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
1811
- const es = "4.7.0-alpha", Tg = "undefined", av = "Wed Jul 23 2025 15:46:31 GMT+0200 (Central European Summer Time)";
1809
+ qo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Wed Jul 23 2025 20:07:07 GMT+0000 (Coordinated Universal Time)";');
1810
+ qo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
1811
+ const es = "4.7.0-alpha", Tg = "undefined", av = "Wed Jul 23 2025 20:07:07 GMT+0000 (Coordinated Universal Time)";
1812
1812
  rv && console.log(`Engine version: ${es} (generator: ${Tg})
1813
1813
  Project built at ${av}`);
1814
- const _d = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", zo = "needle_isActiveInHierarchy", Sa = "builtin_components", bd = "needle_editor_guid";
1814
+ const cc = NEEDLE_PUBLIC_KEY, zo = "needle_isActiveInHierarchy", Sa = "builtin_components", bd = "needle_editor_guid";
1815
1815
  function qo(o) {
1816
1816
  try {
1817
1817
  (0, eval)(o);
@@ -2025,7 +2025,7 @@ class go extends PointerEvent {
2025
2025
  this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), ht && console.warn("Stop propagation...", this.pointerId, this.pointerType);
2026
2026
  }
2027
2027
  }
2028
- class Uh extends KeyboardEvent {
2028
+ class Nh extends KeyboardEvent {
2029
2029
  constructor(e, i, n) {
2030
2030
  super(e, n);
2031
2031
  r(this, "source");
@@ -2114,7 +2114,7 @@ class vP {
2114
2114
  const e = this.keysPressed[t.code];
2115
2115
  if (e && e.pressed) return;
2116
2116
  this.keysPressed[t.code] = { pressed: !0, frame: this.context.time.frameCount + 1, startFrame: this.context.time.frameCount + 1, key: t.key, code: t.code };
2117
- const i = new Uh("keydown", t, t);
2117
+ const i = new Nh("keydown", t, t);
2118
2118
  this.onDispatchEvent(i);
2119
2119
  });
2120
2120
  r(this, "onKeyPressed", (t) => {
@@ -2123,7 +2123,7 @@ class vP {
2123
2123
  const e = this.keysPressed[t.code];
2124
2124
  if (!e) return;
2125
2125
  e.pressed = !0, e.frame = this.context.time.frameCount + 1;
2126
- const i = new Uh("keypress", t, t);
2126
+ const i = new Nh("keypress", t, t);
2127
2127
  this.onDispatchEvent(i);
2128
2128
  });
2129
2129
  r(this, "onKeyUp", (t) => {
@@ -2132,7 +2132,7 @@ class vP {
2132
2132
  const e = this.keysPressed[t.code];
2133
2133
  if (!e) return;
2134
2134
  e.pressed = !1, e.frame = this.context.time.frameCount + 1;
2135
- const i = new Uh("keyup", t, t);
2135
+ const i = new Nh("keyup", t, t);
2136
2136
  this.onDispatchEvent(i);
2137
2137
  });
2138
2138
  r(this, "onWheelWindow", (t) => {
@@ -2226,7 +2226,7 @@ class vP {
2226
2226
  dispatchEvent(t) {
2227
2227
  var i, n, s, a;
2228
2228
  let e = !1;
2229
- if (t instanceof Uh) {
2229
+ if (t instanceof Nh) {
2230
2230
  const l = this._eventListeners[t.type];
2231
2231
  if (l)
2232
2232
  for (const c of l)
@@ -2715,7 +2715,7 @@ class xP {
2715
2715
  return this.gameObject.visible;
2716
2716
  }
2717
2717
  }
2718
- const ys = S("debugwebxr"), Nh = S("debugcustomgesture"), SP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", CP = "generic-trigger", PP = new W().setFromEuler(new Ft(zs.degToRad(0), zs.degToRad(-90), zs.degToRad(-90))), OP = new w(0.04, -0.04, 0);
2718
+ const ys = S("debugwebxr"), $h = S("debugcustomgesture"), SP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", CP = "generic-trigger", PP = new W().setFromEuler(new Ft(zs.degToRad(0), zs.degToRad(-90), zs.degToRad(-90))), OP = new w(0.04, -0.04, 0);
2719
2719
  class fv {
2720
2720
  constructor(t, e, i) {
2721
2721
  /** the Needle XR Session */
@@ -2813,10 +2813,10 @@ class fv {
2813
2813
  if (!this.emitPointerDownEvent || this.inputSource !== t.inputSource) return;
2814
2814
  this.onUpdateFrame(t.frame), this._hasSelectEvent = !0;
2815
2815
  const e = (n = this._layout) == null ? void 0 : n.selectComponentId, i = (l = (a = (s = this._layout) == null ? void 0 : s.components[e]) == null ? void 0 : a.gamepadIndices) == null ? void 0 : l.button;
2816
- i !== void 0 && (this._selectButtonIndex = i), !Nh && (ys && H.DrawDirection(this.rayWorldPosition, q(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(We.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
2816
+ i !== void 0 && (this._selectButtonIndex = i), !$h && (ys && H.DrawDirection(this.rayWorldPosition, q(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this.emitPointerEvent(We.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
2817
2817
  });
2818
2818
  r(this, "onSelectEnd", (t) => {
2819
- this.emitPointerUpEvent && (Nh || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
2819
+ this.emitPointerUpEvent && ($h || this.inputSource === t.inputSource && this.emitPointerEvent(We.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, t));
2820
2820
  });
2821
2821
  r(this, "onSequeezeStart", (t) => {
2822
2822
  var e, i, n;
@@ -3254,7 +3254,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
3254
3254
  const c = n !== this._selectButtonIndex && n !== this._squeezeButtonIndex;
3255
3255
  if (l != null && c) {
3256
3256
  let h = (e = this._layout) == null ? void 0 : e.gamepad[n];
3257
- this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ys || Nh) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
3257
+ this._isMxInk && n === 4 && (h = "stylus-touch"), this._isMxInk && n === 5 && (h = "stylus-tip"), (ys || $h) && console.log("Emitting pointer event", l, n, h, s.value, this.gamepad, this._layout), this.emitPointerEvent(l, n, h ?? "none", !1, null, s.value);
3258
3258
  }
3259
3259
  }
3260
3260
  if (this._isMetaQuestTouchController) {
@@ -3277,7 +3277,7 @@ Pinch: ${(s = this.getGesture("pinch")) == null ? void 0 : s.value.toFixed(3)}`)
3277
3277
  const u = this.states.pinch || new R_(), f = (0.02 + 0.01) * 1.5;
3278
3278
  u.value = 1 - (l - 0.02) / f;
3279
3279
  const m = l < 0.02 - 0.01, g = l > 0.02 + 0.01;
3280
- m && !u.pressed ? (Nh && console.log("pinch start", l), u.isDown = !0, u.isUp = !1, u.pressed = !0) : g && u.pressed ? (u.isDown = !1, u.isUp = !0, u.pressed = !1) : (u.isDown = !1, u.isUp = !1), this.states.pinch = u;
3280
+ m && !u.pressed ? ($h && console.log("pinch start", l), u.isDown = !0, u.isUp = !1, u.pressed = !0) : g && u.pressed ? (u.isDown = !1, u.isUp = !0, u.pressed = !1) : (u.isDown = !1, u.isUp = !1), this.states.pinch = u;
3281
3281
  }
3282
3282
  }
3283
3283
  }
@@ -3473,17 +3473,17 @@ function pv(o, t) {
3473
3473
  n.length = 0, I_(o, s, e), s.length > 0 && (Ta.has(t) || Ta.set(t, new Array()), Ta.get(t).push(...s));
3474
3474
  }
3475
3475
  }
3476
- const $h = new Array(), A_ = {
3476
+ const Wh = new Array(), A_ = {
3477
3477
  context: null
3478
3478
  };
3479
3479
  function I_(o, t, e) {
3480
3480
  var n, s;
3481
- $h.length = 0;
3481
+ Wh.length = 0;
3482
3482
  for (let a = 0; a < t.length; a++)
3483
- $h.push(t[a]);
3483
+ Wh.push(t[a]);
3484
3484
  let i = vm.get(o);
3485
- for (let a = 0; a < $h.length; a++) {
3486
- const l = $h[a];
3485
+ for (let a = 0; a < Wh.length; a++) {
3486
+ const l = Wh[a];
3487
3487
  let c = !0;
3488
3488
  if (i && i.has(l) && (c = !1), c)
3489
3489
  try {
@@ -3525,7 +3525,7 @@ function RP(o, t) {
3525
3525
  }, o ? new o_(o, t) : new o_(t);
3526
3526
  }
3527
3527
  async function L_() {
3528
- const o = await import("./vendor-BSD1RQIh.js").then((t) => t.bundler);
3528
+ const o = await import("./vendor-BmYIgaS1.js").then((t) => t.bundler);
3529
3529
  return console.log(o), o.default === void 0 ? o : o.default;
3530
3530
  }
3531
3531
  class TP {
@@ -3612,7 +3612,7 @@ class AP extends EP {
3612
3612
  var Nn = /* @__PURE__ */ ((o) => (o[o.OnConnection = 0] = "OnConnection", o[o.OnRoomJoin = 1] = "OnRoomJoin", o[o.Queued = 2] = "Queued", o[o.Immediate = 3] = "Immediate", o))(Nn || {});
3613
3613
  const D_ = "https://urls.needle.tools/default-networking-backend/index";
3614
3614
  let hi = "wss://networking.needle.tools/socket";
3615
- const Ci = !!S("debugnet"), Wh = !!(Ci || S("debugowner")), Vh = S("debugnetbin");
3615
+ const Ci = !!S("debugnet"), Vh = !!(Ci || S("debugowner")), Hh = S("debugnetbin");
3616
3616
  var IP = /* @__PURE__ */ ((o) => (o.ConnectionInfo = "connection-start-info", o))(IP || {}), se = /* @__PURE__ */ ((o) => (o.Join = "join-room", o.Leave = "leave-room", o.JoinedRoom = "joined-room", o.LeftRoom = "left-room", o.UserJoinedRoom = "user-joined-room", o.UserLeftRoom = "user-left-room", o.RoomStateSent = "room-state-sent", o))(se || {});
3617
3617
  class FL {
3618
3618
  constructor() {
@@ -3673,7 +3673,7 @@ class yv {
3673
3673
  return this._isWaitingForOwnershipResponseCallback !== null ? this : (this._isWaitingForOwnershipResponseCallback = this.waitForHasOwnershipRequestResponse.bind(this), this.connection.beginListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this.connection.send("request-has-owner", { guid: this.guid }), this);
3674
3674
  }
3675
3675
  waitForHasOwnershipRequestResponse(t) {
3676
- t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (Wh && console.log("request ownership", this.guid), this.requestOwnership()));
3676
+ t.guid === this.guid && (this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this._isOwned = t.value, t.value || (Vh && console.log("request ownership", this.guid), this.requestOwnership()));
3677
3677
  }
3678
3678
  requestOwnershipAsync() {
3679
3679
  return new Promise((t, e) => {
@@ -3689,7 +3689,7 @@ class yv {
3689
3689
  });
3690
3690
  }
3691
3691
  requestOwnership() {
3692
- return Wh && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
3692
+ return Vh && console.log("Request ownership", this.guid), this.connection.send("request-ownership", { guid: this.guid }), this;
3693
3693
  }
3694
3694
  freeOwnership() {
3695
3695
  return this.connection.send("remove-ownership", { guid: this.guid }), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null), this;
@@ -3698,10 +3698,10 @@ class yv {
3698
3698
  this.connection.stopListen("gained-ownership", this._gainSubscription), this.connection.stopListen("lost-ownership", this._lostSubscription), this.connection.stopListen("response-has-owner", this._hasOwnerResponse), this._isWaitingForOwnershipResponseCallback && (this.connection.stopListen("response-has-owner", this._isWaitingForOwnershipResponseCallback), this._isWaitingForOwnershipResponseCallback = null);
3699
3699
  }
3700
3700
  onGainedOwnership(t) {
3701
- t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (Wh && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
3701
+ t.guid === this.guid && (this._isOwned = !0, this.connection.connectionId === t.owner ? (Vh && console.log("GAINED OWNERSHIP", this.guid), this._hasOwnership = !0) : this._hasOwnership = !1);
3702
3702
  }
3703
3703
  onLostOwnership(t) {
3704
- t === this.guid && (Wh && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
3704
+ t === this.guid && (Vh && console.log("LOST OWNERSHIP", this.guid), this._hasOwnership = !1, this._isOwned = !1);
3705
3705
  }
3706
3706
  }
3707
3707
  class DP {
@@ -3838,7 +3838,7 @@ class DP {
3838
3838
  /** Send a binary message to the server (broadcasted to all connected users) */
3839
3839
  sendBinary(t) {
3840
3840
  var e;
3841
- Vh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
3841
+ Hh && console.log("<< send binary", this.context.time.frame, t.length / 1024 + " KB"), (e = this._ws) == null || e.send(t);
3842
3842
  }
3843
3843
  sendBufferedMessagesNow() {
3844
3844
  var i;
@@ -3955,7 +3955,7 @@ class DP {
3955
3955
  }
3956
3956
  console.debug(`⊡ Connecting to networking backend on
3957
3957
  ` + hi);
3958
- const s = await import("./vendor-BSD1RQIh.js").then((u) => u.index), a = ((h = s.default) == null ? void 0 : h.WebsocketBuilder) ?? s.WebsocketBuilder, l = ((d = s.default) == null ? void 0 : d.ExponentialBackoff) ?? s.ExponentialBackoff, c = new a(hi).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
3958
+ const s = await import("./vendor-BmYIgaS1.js").then((u) => u.index), a = ((h = s.default) == null ? void 0 : h.WebsocketBuilder) ?? s.WebsocketBuilder, l = ((d = s.default) == null ? void 0 : d.ExponentialBackoff) ?? s.ExponentialBackoff, c = new a(hi).withMaxRetries(10).withBackoff(new l(2e3, 4)).onOpen(() => {
3959
3959
  this._connectingToWebsocketPromise = null, this._ws = c, this.connected = !0, z() || Ci ? console.log(`⊞ Connected to networking backend
3960
3960
  ` + hi) : console.debug("⊞ Connected to networking backend", hi), n(!0), this.onSendQueued(Nn.OnConnection);
3961
3961
  }).onClose((u) => {
@@ -3990,7 +3990,7 @@ class DP {
3990
3990
  }
3991
3991
  }
3992
3992
  async handleIncomingBinaryMessage(t) {
3993
- Vh && console.log("<< bin", this.context.time.frame);
3993
+ Hh && console.log("<< bin", this.context.time.frame);
3994
3994
  const e = await t.arrayBuffer();
3995
3995
  var i = new Uint8Array(e);
3996
3996
  const n = new XC(i), s = n.getBufferIdentifier(), a = this._listenersBinary[s], l = kP(n), c = MP(l);
@@ -4017,7 +4017,7 @@ class DP {
4017
4017
  if (Ci && console.log(t), t) {
4018
4018
  this._isInRoom = !0;
4019
4019
  const c = t;
4020
- this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Vh || z()) && console.debug("Joined Needle Engine Room: " + c.room);
4020
+ this._currentRoomName = c.room, this._currentRoomViewId = c.viewId, this._currentRoomAllowEditing = c.allowEditing ?? !0, this._currentInRoom.length = 0, this._currentInRoom.push(...c.inRoom), (Hh || z()) && console.debug("Joined Needle Engine Room: " + c.room);
4021
4021
  const h = new URL(window.location.href);
4022
4022
  h.searchParams.has("room") && h.searchParams.delete("room"), h.searchParams.set("view", this._currentRoomViewId), console.debug(`Room view id: ${this._currentRoomViewId}
4023
4023
  ${h.href}`);
@@ -4026,7 +4026,7 @@ ${h.href}`);
4026
4026
  break;
4027
4027
  case "left-room":
4028
4028
  const a = t;
4029
- a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (Vh || z()) && console.debug("Left Needle Engine Room: " + a.room));
4029
+ a.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentRoomAllowEditing = !0, this._currentInRoom.length = 0, (Hh || z()) && console.debug("Left Needle Engine Room: " + a.room));
4030
4030
  break;
4031
4031
  case "user-joined-room":
4032
4032
  if (t.data) {
@@ -4086,7 +4086,7 @@ ${h.href}`);
4086
4086
  }
4087
4087
  }
4088
4088
  }
4089
- const xc = S("debugwebxr");
4089
+ const Sc = S("debugwebxr");
4090
4090
  class op {
4091
4091
  constructor(t, e) {
4092
4092
  r(this, "controllerStates", []);
@@ -4094,7 +4094,7 @@ class op {
4094
4094
  r(this, "context");
4095
4095
  r(this, "userStateEvtName");
4096
4096
  r(this, "onReceivedControllerState", (t) => {
4097
- xc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
4097
+ Sc && console.log(`XRSync: Received change for ${this.userId}: ${t.type} ${t.handedness}; tracked=${t.isTracking}`);
4098
4098
  let e = !1;
4099
4099
  for (let i = 0; i < this.controllerStates.length; i++)
4100
4100
  if (this.controllerStates[i].index === t.index) {
@@ -4115,7 +4115,7 @@ class op {
4115
4115
  let n = !1;
4116
4116
  for (let s = 0; s < t.controllers.length; s++)
4117
4117
  t.controllers[s].index === i.index && (n = !0);
4118
- n || (xc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
4118
+ n || (Sc && console.log(`XRSync: ${i.type} ${i.handedness} removed`, i.index), this.controllerStates.splice(e, 1), this.sendControllerRemoved(i));
4119
4119
  }
4120
4120
  for (const e of t.controllers)
4121
4121
  this.updateControllerStates(e);
@@ -4142,7 +4142,7 @@ class op {
4142
4142
  index: t.index,
4143
4143
  type: t.hand ? "hand" : "controller"
4144
4144
  };
4145
- this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), xc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
4145
+ this.controllerStates.push(i), this.context.connection.send(this.userStateEvtName, i), Sc && console.log(`XRSync: ${i.type} ${i.handedness} added`, i.index);
4146
4146
  }
4147
4147
  }
4148
4148
  }
@@ -4151,7 +4151,7 @@ class jP {
4151
4151
  r(this, "context");
4152
4152
  r(this, "onJoinedRoom", () => {
4153
4153
  if (this.context.connection.connectionId) {
4154
- this._states.has(this.context.connection.connectionId) || (xc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new op(this.context.connection.connectionId, this.context)));
4154
+ this._states.has(this.context.connection.connectionId) || (Sc && console.log("XRSync: Local user joined room", this.context.connection.connectionId), this._states.set(this.context.connection.connectionId, new op(this.context.connection.connectionId, this.context)));
4155
4155
  for (const t of this.context.connection.usersInRoom())
4156
4156
  this._states.has(t) || this._states.set(t, new op(t, this.context));
4157
4157
  }
@@ -4164,7 +4164,7 @@ class jP {
4164
4164
  });
4165
4165
  r(this, "onOtherUserJoinedRoom", (t) => {
4166
4166
  const e = t.userId;
4167
- this._states.has(e) || (xc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new op(e, this.context)));
4167
+ this._states.has(e) || (Sc && console.log("XRSync: Remote user joined room", e), this._states.set(e, new op(e, this.context)));
4168
4168
  });
4169
4169
  r(this, "onOtherUserLeftRoom", (t) => {
4170
4170
  const e = t.userId;
@@ -4252,7 +4252,7 @@ class j_ {
4252
4252
  return this._transitionPromise = t, t;
4253
4253
  }
4254
4254
  }
4255
- var ol = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(ol || {}), rh, wm;
4255
+ var ol = /* @__PURE__ */ ((o) => (o[o.Quad = 0] = "Quad", o[o.Cube = 1] = "Cube", o[o.Sphere = 2] = "Sphere", o[o.Cylinder = 3] = "Cylinder", o[o.RoundedCube = 10] = "RoundedCube", o))(ol || {}), ah, wm;
4256
4256
  class ta {
4257
4257
  /**
4258
4258
  * Creates a 3D text object
@@ -4262,10 +4262,10 @@ class ta {
4262
4262
  static createText(t, e) {
4263
4263
  let i = null;
4264
4264
  const n = (e == null ? void 0 : e.font) || FP((e == null ? void 0 : e.familyFamily) || null);
4265
- n instanceof OC ? i = Nl(this, rh, wm).call(this, t, n, e) : i == null && (i = new Jn());
4265
+ n instanceof OC ? i = Nl(this, ah, wm).call(this, t, n, e) : i == null && (i = new Jn());
4266
4266
  const s = (e == null ? void 0 : e.color) || 16777215, a = new G(i, (e == null ? void 0 : e.material) ?? new yt({ color: s }));
4267
4267
  return this.applyDefaultObjectOptions(a, e), n instanceof Promise ? n.then((l) => {
4268
- a.geometry = Nl(this, rh, wm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
4268
+ a.geometry = Nl(this, ah, wm).call(this, t, l, e), e != null && e.onGeometry && e.onGeometry(a);
4269
4269
  }) : e != null && e.onGeometry && e.onGeometry(a), a;
4270
4270
  }
4271
4271
  /**
@@ -4337,7 +4337,7 @@ class ta {
4337
4337
  t.receiveShadow = !0, t.castShadow = !0, e != null && e.name && (t.name = e.name), e != null && e.position && (Array.isArray(e.position) ? t.position.set(e.position[0], e.position[1], e.position[2]) : t.position.set(e.position.x, e.position.y, e.position.z)), e != null && e.rotation && (Array.isArray(e.rotation) ? t.rotation.set(e.rotation[0], e.rotation[1], e.rotation[2]) : t.rotation.set(e.rotation.x, e.rotation.y, e.rotation.z)), e != null && e.scale && (typeof e.scale == "number" ? t.scale.set(e.scale, e.scale, e.scale) : Array.isArray(e.scale) ? t.scale.set(e.scale[0], e.scale[1], e.scale[2]) : t.scale.set(e.scale.x, e.scale.y, e.scale.z)), (e == null ? void 0 : e.receiveShadow) != null && (t.receiveShadow = e.receiveShadow), (e == null ? void 0 : e.castShadow) != null && (t.castShadow = e.castShadow), e != null && e.parent && e.parent.add(t);
4338
4338
  }
4339
4339
  }
4340
- rh = new WeakSet(), wm = function(t, e, i) {
4340
+ ah = new WeakSet(), wm = function(t, e, i) {
4341
4341
  const n = (i == null ? void 0 : i.depth) || 0.1;
4342
4342
  return new kC(t, {
4343
4343
  font: e,
@@ -4349,7 +4349,7 @@ rh = new WeakSet(), wm = function(t, e, i) {
4349
4349
  bevelOffset: 0.01,
4350
4350
  bevelSize: 0.01
4351
4351
  });
4352
- }, mn(ta, rh);
4352
+ }, mn(ta, ah);
4353
4353
  function BP(o, t, e, i, n) {
4354
4354
  const s = new hS(), a = 1e-5, l = i - a;
4355
4355
  s.absarc(a, a, a, -Math.PI / 2, -Math.PI, !0), s.absarc(a, t - l * 2, a, Math.PI, Math.PI / 2, !0), s.absarc(o - l * 2, t - l * 2, a, Math.PI / 2, 0, !0), s.absarc(o - l * 2, a, a, 0, -Math.PI / 2, !0);
@@ -4363,7 +4363,7 @@ function BP(o, t, e, i, n) {
4363
4363
  });
4364
4364
  return c.scale(1, 1, 1 - i), c.center(), c.computeVertexNormals(), c;
4365
4365
  }
4366
- const Hh = /* @__PURE__ */ new Map();
4366
+ const Gh = /* @__PURE__ */ new Map();
4367
4367
  function FP(o) {
4368
4368
  let t = "";
4369
4369
  switch (o) {
@@ -4375,16 +4375,16 @@ function FP(o) {
4375
4375
  t = "https://raw.githubusercontent.com/mrdoob/three.js/master/examples/fonts/helvetiker_regular.typeface.json";
4376
4376
  break;
4377
4377
  }
4378
- if (Hh.has(t)) {
4379
- const n = Hh.get(t);
4378
+ if (Gh.has(t)) {
4379
+ const n = Gh.get(t);
4380
4380
  if (n) return n;
4381
4381
  }
4382
4382
  const e = new MC(), i = new Promise((n, s) => {
4383
4383
  e.load(t, (a) => {
4384
- Hh.set(t, a), n(a);
4384
+ Gh.set(t, a), n(a);
4385
4385
  }, void 0, s);
4386
4386
  });
4387
- return Hh.set(t, i), i;
4387
+ return Gh.set(t, i), i;
4388
4388
  }
4389
4389
  let rp = !1, ap = null;
4390
4390
  function zP(o, t) {
@@ -4421,7 +4421,7 @@ function B_(o, t) {
4421
4421
  function F_() {
4422
4422
  return new jo().add(ta.createPrimitive("Sphere", { material: new Me({ transparent: !0, opacity: 0.1 }) }));
4423
4423
  }
4424
- const Dc = class Dc {
4424
+ const jc = class jc {
4425
4425
  constructor(t, e, i) {
4426
4426
  r(this, "_session");
4427
4427
  r(this, "_mode");
@@ -4456,7 +4456,7 @@ const Dc = class Dc {
4456
4456
  const i = await navigator.xr.requestSession(t, e);
4457
4457
  return i.addEventListener("end", () => {
4458
4458
  this._active = null;
4459
- }), this._requestInFlight ? (this._requestInFlight = !1, this._active = new Dc(t, e, i), this._active) : (i.end(), null);
4459
+ }), this._requestInFlight ? (this._requestInFlight = !1, this._active = new jc(t, e, i), this._active) : (i.end(), null);
4460
4460
  }
4461
4461
  return null;
4462
4462
  }
@@ -4518,9 +4518,9 @@ const Dc = class Dc {
4518
4518
  }
4519
4519
  }
4520
4520
  };
4521
- r(Dc, "_active", null), r(Dc, "_requestInFlight", !1);
4522
- let rl = Dc;
4523
- var Hc;
4521
+ r(jc, "_active", null), r(jc, "_requestInFlight", !1);
4522
+ let rl = jc;
4523
+ var Gc;
4524
4524
  ((o) => {
4525
4525
  const t = [];
4526
4526
  function e() {
@@ -4540,7 +4540,7 @@ var Hc;
4540
4540
  a >= 0 && t.splice(a, 1);
4541
4541
  }
4542
4542
  o.unregisterExporter = n;
4543
- })(Hc || (Hc = {}));
4543
+ })(Gc || (Gc = {}));
4544
4544
  const et = S("debugwebxr"), z_ = S("stats");
4545
4545
  let lp = 0;
4546
4546
  function UP(o) {
@@ -4706,7 +4706,7 @@ const Qe = class Qe {
4706
4706
  this._newControllers.length = 0, this.controllers.length = 0;
4707
4707
  for (const c of this._xr_scripts)
4708
4708
  (s = c == null ? void 0 : c.onLeaveXR) == null || s.call(c, { xr: this });
4709
- (a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Vc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Wa(!1);
4709
+ (a = this.sync) == null || a.onExitXR(this), this.context.mainCamera && ((l = this._originalCameraParent) == null || l.add(this.context.mainCamera), this._originalCameraWorldPosition && vt(this.context.mainCamera, this._originalCameraWorldPosition), this._originalCameraWorldRotation && Mn(this.context.mainCamera, this._originalCameraWorldRotation), this._originalCameraWorldScale && Hc(this.context.mainCamera, this._originalCameraWorldScale)), this.context.requestSizeUpdate(), this._defaultRig.gameObject.removeFromParent(), Wa(!1);
4710
4710
  });
4711
4711
  r(this, "_didStart", !1);
4712
4712
  /** Called every frame by the engine */
@@ -5008,7 +5008,7 @@ const Qe = class Qe {
5008
5008
  if (await this.isARSupported())
5009
5009
  t = "immersive-ar";
5010
5010
  else
5011
- return Hc.exportAndOpen(), null;
5011
+ return Gc.exportAndOpen(), null;
5012
5012
  } else t == "ar" && (t = "immersive-ar");
5013
5013
  if (z() && S("debugxrpreroom"))
5014
5014
  return console.warn("Debug: Starting temporary XR session"), await rl.start(t, e || Qe.getDefaultSessionInit(t)), null;
@@ -5700,16 +5700,16 @@ class Le {
5700
5700
  static getLine(t) {
5701
5701
  let e = this.linesCache.pop();
5702
5702
  if (!e) {
5703
- e = new Nc();
5703
+ e = new $c();
5704
5704
  let i = e.geometry.getAttribute("position");
5705
- i || (i = new _t(new Float32Array(2 * 3), 3), e.geometry.setAttribute("position", i));
5705
+ i || (i = new _t(new Float32Array(6), 3), e.geometry.setAttribute("position", i));
5706
5706
  }
5707
5707
  return e.frustumCulled = !1, this.registerTimedObject(Z.Current, e, t, this.linesCache), e;
5708
5708
  }
5709
5709
  static getCircle(t) {
5710
5710
  let e = this.circlesCache.pop();
5711
5711
  if (!e) {
5712
- e = new Nc();
5712
+ e = new $c();
5713
5713
  let i = e.geometry.getAttribute("position");
5714
5714
  if (!i) {
5715
5715
  i = new _t(new Float32Array(hp * 3), 3), e.geometry.setAttribute("position", i);
@@ -5833,7 +5833,7 @@ class bv {
5833
5833
  this.object = t, this.distance = e, this.point = i;
5834
5834
  }
5835
5835
  }
5836
- const jc = class jc {
5836
+ const Bc = class Bc {
5837
5837
  constructor(t) {
5838
5838
  r(this, "context");
5839
5839
  r(this, "engine");
@@ -5918,14 +5918,14 @@ const jc = class jc {
5918
5918
  let n = t.targets;
5919
5919
  n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
5920
5920
  let s = t.results;
5921
- this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0, jc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
5921
+ this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), s || (this.defaultRaycastOptions.results || (this.defaultRaycastOptions.results = new Array()), s = this.defaultRaycastOptions.results), t.layerMask !== void 0 ? t.layerMask instanceof Wo ? i.layers.mask = t.layerMask.mask : i.layers.mask = t.layerMask : (i.layers.enableAll(), i.layers.disable(2)), ki && console.time("raycast"), s.length = 0, Bc._raycasting++, this.intersect(this.raycaster, n, s, t), s.sort((l, c) => l.distance - c.distance);
5922
5922
  const a = t.ignore;
5923
- return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), jc._raycasting--, ki && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", s != null && s.length ? [...s] : "nothing"), performance.mark("raycast.end"), performance.measure("raycast", "raycast.start", "raycast.end")), s;
5923
+ return a !== void 0 && a.length > 0 && (s = s.filter((l) => !a.includes(l.object))), Bc._raycasting--, ki && (console.timeEnd("raycast"), console.warn("#" + this.context.time.frame + ", hits:", s != null && s.length ? [...s] : "nothing"), performance.mark("raycast.end"), performance.measure("raycast", "raycast.start", "raycast.end")), s;
5924
5924
  }
5925
5925
  intersect(t, e, i, n) {
5926
5926
  var s, a, l;
5927
5927
  for (const c of e) {
5928
- if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof Nc)
5928
+ if (!c || c.visible === !1 || H.isGizmo(c) || n.lineThreshold !== void 0 && n.lineThreshold < 0 && c instanceof $c)
5929
5929
  continue;
5930
5930
  let h = !0;
5931
5931
  const d = c, u = d.geometry;
@@ -5952,7 +5952,7 @@ const jc = class jc {
5952
5952
  }
5953
5953
  intersectSphere(t, e, i, n, s, a, l, c) {
5954
5954
  let h = t && t.isMesh && t.layers.test(n) && !H.isGizmo(t);
5955
- h && (h = t.visible), h && (h = !(t instanceof Nc)), h && (h = !(t instanceof el));
5955
+ h && (h = t.visible), h && (h = !(t instanceof $c)), h && (h = !(t instanceof el));
5956
5956
  const d = t, u = d.geometry;
5957
5957
  if (h && c) {
5958
5958
  const f = c(t);
@@ -5983,12 +5983,12 @@ const jc = class jc {
5983
5983
  }
5984
5984
  }
5985
5985
  };
5986
- r(jc, "_raycasting", 0);
5987
- let Hd = jc;
5986
+ r(Bc, "_raycasting", 0);
5987
+ let Hd = Bc;
5988
5988
  function W_(o) {
5989
5989
  return !(o.index && o.index.array.length < 3);
5990
5990
  }
5991
- const ur = new ju(), Gh = new Hr(), QP = new v0();
5991
+ const ur = new ju(), qh = new Hr(), QP = new v0();
5992
5992
  function YP(o, t, e) {
5993
5993
  const i = o._computeIntersections;
5994
5994
  if (!i)
@@ -5998,12 +5998,12 @@ function YP(o, t, e) {
5998
5998
  const c = this, h = c.geometry.boundingSphere;
5999
5999
  if (h) {
6000
6000
  if (c instanceof el) {
6001
- Gh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), Gh.applyMatrix4(c.matrixWorld, QP);
6002
- const u = s.ray.intersectPlane(Gh, q());
6001
+ qh.setFromNormalAndCoplanarPoint(q(0, 1, 0), q(0, -c.position.y, 0)), qh.applyMatrix4(c.matrixWorld, QP);
6002
+ const u = s.ray.intersectPlane(qh, q());
6003
6003
  if (u) {
6004
6004
  ur.copy(h), ur.applyMatrix4(c.matrixWorld);
6005
6005
  const m = q(u).sub(s.ray.origin).length(), g = ur.radius * 0.5;
6006
- m < g && a.push({ distance: m, point: u, object: c, normal: Gh.normal.clone() });
6006
+ m < g && a.push({ distance: m, point: u, object: c, normal: qh.normal.clone() });
6007
6007
  }
6008
6008
  return;
6009
6009
  }
@@ -6085,7 +6085,7 @@ var Gd;
6085
6085
  o.runMeshBVHRaycast = t;
6086
6086
  let e = !1, i = null, n = null, s = null, a = null;
6087
6087
  function l() {
6088
- e || (e = !0, import("./vendor-BSD1RQIh.js").then((b) => b.index$1).then((b) => {
6088
+ e || (e = !0, import("./vendor-BmYIgaS1.js").then((b) => b.index$1).then((b) => {
6089
6089
  i = b.acceleratedRaycast, n = b.MeshBVH, s = b.StaticGeometryGenerator, a = b.computeBoundsTree;
6090
6090
  }).catch((b) => {
6091
6091
  (ki || z()) && console.error("Failed to load BVH library...", b.message);
@@ -6231,28 +6231,28 @@ function eO(o) {
6231
6231
  const tO = /* @__PURE__ */ new Set();
6232
6232
  function Cv(o, t, e = null, i) {
6233
6233
  if (i || (i = tO, i.clear()), !o) return i;
6234
- const n = o[Gc];
6234
+ const n = o[qc];
6235
6235
  if (n)
6236
6236
  for (const s of n)
6237
6237
  i.has(s) || (e == null ? void 0 : e.call(null, s)) !== !1 && (i.add(s), t && Cv(s, !0, e, i));
6238
6238
  return i;
6239
6239
  }
6240
6240
  function WL(o) {
6241
- return o[cc];
6241
+ return o[hc];
6242
6242
  }
6243
- const Fr = S("debugresourceusers") || S("debugmemory"), Gc = Symbol("needle-resource-users"), cc = Symbol("needle-resource-users-count");
6243
+ const Fr = S("debugresourceusers") || S("debugmemory"), qc = Symbol("needle-resource-users"), hc = Symbol("needle-resource-users-count");
6244
6244
  function Gt(o, t) {
6245
6245
  Eg(o, t, function(e, i) {
6246
- ia && !Hd.raycasting && (Xd(Gc, this, e, !1), Xd(Gc, this, i, !0));
6246
+ ia && !Hd.raycasting && (Xd(qc, this, e, !1), Xd(qc, this, i, !0));
6247
6247
  });
6248
6248
  }
6249
6249
  ia && (Gt(G.prototype, "material"), Gt(G.prototype, "geometry"), Gt(Pe.prototype, "map"), Gt(Pe.prototype, "bumpMap"), Gt(Pe.prototype, "alphaMap"), Gt(Pe.prototype, "normalMap"), Gt(Pe.prototype, "displacementMap"), Gt(Pe.prototype, "roughnessMap"), Gt(Pe.prototype, "metalnessMap"), Gt(Pe.prototype, "emissiveMap"), Gt(Pe.prototype, "specularMap"), Gt(Pe.prototype, "envMap"), Gt(Pe.prototype, "lightMap"), Gt(Pe.prototype, "aoMap"), Gt(Pe.prototype, "gradientMap"));
6250
6250
  function iO(o) {
6251
6251
  if (ia === !1) return;
6252
- const t = o[Gc];
6252
+ const t = o[qc];
6253
6253
  if (t)
6254
6254
  for (const e of t)
6255
- Xd(Gc, e, o, !1);
6255
+ Xd(qc, e, o, !1);
6256
6256
  }
6257
6257
  ia && Eg(Pe.prototype, "dispose", function() {
6258
6258
  iO(this);
@@ -6270,13 +6270,13 @@ function Xd(o, t, e, i) {
6270
6270
  if (n || (n = /* @__PURE__ */ new Set()), i) {
6271
6271
  if (t && !n.has(t)) {
6272
6272
  n.add(t);
6273
- let s = e[cc] || 0;
6274
- s += 1, e[cc] = s, Fr && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
6273
+ let s = e[hc] || 0;
6274
+ s += 1, e[hc] = s, Fr && console.warn(`🟢 Added user of "${e.type}"`, t, e, s, "users:", n);
6275
6275
  }
6276
6276
  } else if (t && n.has(t)) {
6277
6277
  n.delete(t);
6278
- let s = e[cc] || 0;
6279
- s > 0 && (s -= 1, e[cc] = s), Fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (qd.isLoading(e) || (qu && console.warn(`🔴 Removed all user of "${e.type}"`, e), vv() && Ie(e)));
6278
+ let s = e[hc] || 0;
6279
+ s > 0 && (s -= 1, e[hc] = s), Fr && console.warn(`🔴 Removed user of "${e.type}"`, t, e, s, "users:", n), s <= 0 && (qd.isLoading(e) || (qu && console.warn(`🔴 Removed all user of "${e.type}"`, e), vv() && Ie(e)));
6280
6280
  }
6281
6281
  e[o] = n;
6282
6282
  }
@@ -6315,7 +6315,7 @@ class Xu {
6315
6315
  }
6316
6316
  }
6317
6317
  r(Xu, "eventListeners", /* @__PURE__ */ new Map());
6318
- const qc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), Pv = Symbol("isUsingInstancing"), Ov = Symbol("instancingRenderer"), hc = Symbol("instancingAutoUpdateBounds");
6318
+ const Xc = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), Pv = Symbol("isUsingInstancing"), Ov = Symbol("instancingRenderer"), dc = Symbol("instancingAutoUpdateBounds");
6319
6319
  class On {
6320
6320
  /** Is this object rendered using a InstancedMesh */
6321
6321
  static isUsingInstancing(t) {
@@ -6329,12 +6329,12 @@ class On {
6329
6329
  }
6330
6330
  setAutoUpdateBounds(t, e) {
6331
6331
  const i = On.getRenderer(t);
6332
- i && (i[hc] = e);
6332
+ i && (i[dc] = e);
6333
6333
  }
6334
6334
  // TODO: change this so it does not set matrix world directly but some flag that is only used by instancing
6335
6335
  /** Mark an instanced object dirty so the instance matrix will be updated */
6336
6336
  static markDirty(t, e = !0) {
6337
- if (t && (this.isUsingInstancing(t) && (t[qc] = !0, t.matrixWorldNeedsUpdate = !0), e))
6337
+ if (t && (this.isUsingInstancing(t) && (t[Xc] = !0, t.matrixWorldNeedsUpdate = !0), e))
6338
6338
  for (const i of t.children)
6339
6339
  On.markDirty(i, !0);
6340
6340
  }
@@ -6374,7 +6374,7 @@ The script will be ignored. Please make sure your component extends "Behaviour"
6374
6374
  Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
6375
6375
  continue;
6376
6376
  }
6377
- e.context = o, Sc(e.gameObject), Fg(e, o);
6377
+ e.context = o, Cc(e.gameObject), Fg(e, o);
6378
6378
  } catch (e) {
6379
6379
  console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
6380
6380
  }
@@ -6391,14 +6391,14 @@ Did you add and remove a component in the same frame?`), je.splice(t, 1), t--;
6391
6391
  } catch (i) {
6392
6392
  console.error(i);
6393
6393
  }
6394
- e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), Sc(e.gameObject), e.activeAndEnabled && Ga(e.__internalAwake.bind(e)));
6394
+ e.__internalAwake !== void 0 && (e.gameObject || console.error("Calling awake for a component without a GameObject", e, e.gameObject), Cc(e.gameObject), e.activeAndEnabled && Ga(e.__internalAwake.bind(e)));
6395
6395
  } catch (e) {
6396
6396
  console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
6397
6397
  }
6398
6398
  for (let t = 0; t < je.length; t++)
6399
6399
  try {
6400
6400
  const e = je[t];
6401
- if (e.destroyed || e.enabled === !1 || (Sc(e.gameObject), e.activeAndEnabled === !1)) continue;
6401
+ if (e.destroyed || e.enabled === !1 || (Cc(e.gameObject), e.activeAndEnabled === !1)) continue;
6402
6402
  e.__internalEnable !== void 0 && (e.enabled = !0, Ga(e.__internalEnable.bind(e)));
6403
6403
  } catch (e) {
6404
6404
  console.error(e), Rs(je[t], o), je.splice(t, 1), t--;
@@ -6455,14 +6455,14 @@ function vd(o) {
6455
6455
  console.trace("Invalid call - no current context.");
6456
6456
  return;
6457
6457
  }
6458
- const t = dh(o);
6458
+ const t = uh(o);
6459
6459
  Mv(o, t, !0) || (Cm || z() ? console.error(`Error updating hierarchy
6460
6460
  Do you have circular references in your project? <a target="_blank" href="https://docs.needle.tools/circular-reference"> Click here for more information.`, o) : console.error('Failed to update active state in hierarchy of "' + o.name + '"', o), console.warn(" ↑ this error might be caused by circular references. Please make sure you don't have files with circular references (e.g. one GLB 1 is loading GLB 2 which is then loading GLB 1 again)."));
6461
6461
  }
6462
6462
  function Mv(o, t, e, i = 0) {
6463
6463
  if (i > 1e3)
6464
6464
  return console.warn("Hierarchy is too deep (> 1000 level) - will abort updating active state"), !1;
6465
- const n = dh(o);
6465
+ const n = uh(o);
6466
6466
  if (t && (t = n, t && o.parent)) {
6467
6467
  const c = o.parent;
6468
6468
  t = c[zo], t === void 0 && (c instanceof ji || (t = !0));
@@ -6477,10 +6477,10 @@ function Mv(o, t, e, i = 0) {
6477
6477
  Mv(c, t, e, i + 1) === !1 && (l = !1);
6478
6478
  return l;
6479
6479
  }
6480
- function Sc(o) {
6480
+ function Cc(o) {
6481
6481
  let t = !0, e = o, i = !1;
6482
6482
  for (; e && e; ) {
6483
- if (e.type === "Scene" && (i = !0), !dh(e)) {
6483
+ if (e.type === "Scene" && (i = !0), !uh(e)) {
6484
6484
  t = !1;
6485
6485
  break;
6486
6486
  }
@@ -6703,7 +6703,7 @@ function Iv(o, t) {
6703
6703
  }
6704
6704
  return null;
6705
6705
  }
6706
- const ch = S("gizmos"), bt = S("debugextension"), up = S("debugtypes");
6706
+ const hh = S("gizmos"), bt = S("debugextension"), up = S("debugtypes");
6707
6707
  class _O {
6708
6708
  constructor() {
6709
6709
  r(this, "_types", /* @__PURE__ */ new Map());
@@ -7323,7 +7323,7 @@ const Uv = new zt("addComponentIdProvider");
7323
7323
  function qa(o, t, e = !0) {
7324
7324
  o.userData || (o.userData = {}), o.userData.components || (o.userData.components = []), o.userData.components.push(t), t.gameObject = o, (t.guid === void 0 || t.guid === "invalid") && (t.guid = Uv.generateUUID()), $g(o), Gg(t, t.context);
7325
7325
  try {
7326
- e && t.__internalAwake && (Sc(o), t.activeAndEnabled && t.__internalAwake()), Xu.dispatchComponentLifecycleEvent("component-added", t);
7326
+ e && t.__internalAwake && (Cc(o), t.activeAndEnabled && t.__internalAwake()), Xu.dispatchComponentLifecycleEvent("component-added", t);
7327
7327
  } catch (i) {
7328
7328
  console.error(i);
7329
7329
  }
@@ -7399,11 +7399,11 @@ function Zu(o, t, e) {
7399
7399
  }
7400
7400
  return null;
7401
7401
  }
7402
- function hh(o, t, e, i = !0) {
7402
+ function dh(o, t, e, i = !0) {
7403
7403
  var n;
7404
7404
  e || (e = []), i && (e.length = 0), Ku(o, t, e, !1);
7405
7405
  for (let s = 0; s < ((n = o == null ? void 0 : o.children) == null ? void 0 : n.length); s++)
7406
- hh(o.children[s], t, e, !1);
7406
+ dh(o.children[s], t, e, !1);
7407
7407
  return e;
7408
7408
  }
7409
7409
  function Zd(o, t) {
@@ -7436,7 +7436,7 @@ function WO(o, t, e = void 0) {
7436
7436
  return console.error("Can not search object without any needle context or scene!!!"), t;
7437
7437
  "scene" in e && (e = e.scene);
7438
7438
  const i = e;
7439
- return i && hh(i, o, t, !1), t;
7439
+ return i && dh(i, o, t, !1), t;
7440
7440
  }
7441
7441
  function $g(o) {
7442
7442
  o && o.isObject3D === !0 && jO(o, L);
@@ -7472,7 +7472,7 @@ L.prototype.getComponentInChildren = function(o) {
7472
7472
  return Zu(this, o);
7473
7473
  };
7474
7474
  L.prototype.getComponentsInChildren = function(o, t) {
7475
- return hh(this, o, t);
7475
+ return dh(this, o, t);
7476
7476
  };
7477
7477
  L.prototype.getComponentInParent = function(o) {
7478
7478
  return Zd(this, o);
@@ -7482,7 +7482,7 @@ L.prototype.getComponentsInParent = function(o, t) {
7482
7482
  };
7483
7483
  Object.getOwnPropertyDescriptor(L.prototype, "activeSelf") || Object.defineProperty(L.prototype, "activeSelf", {
7484
7484
  get: function() {
7485
- return dh(this);
7485
+ return uh(this);
7486
7486
  },
7487
7487
  set: function(o) {
7488
7488
  Cd(this, o);
@@ -7517,7 +7517,7 @@ Object.getOwnPropertyDescriptor(L.prototype, "worldScale") || Object.definePrope
7517
7517
  return Ke(this);
7518
7518
  },
7519
7519
  set: function(o) {
7520
- Vc(this, o);
7520
+ Hc(this, o);
7521
7521
  }
7522
7522
  });
7523
7523
  Object.getOwnPropertyDescriptor(L.prototype, "worldForward") || Object.defineProperty(L.prototype, "worldForward", {
@@ -7624,7 +7624,7 @@ class cs {
7624
7624
  this.idProvider = t.idProvider, this.parent = t.parent, this.keepWorldPosition = t.keepWorldPosition, this.position = (e = t.position) == null ? void 0 : e.clone(), this.rotation = (i = t.rotation) == null ? void 0 : i.clone(), this.scale = (n = t.scale) == null ? void 0 : n.clone(), this.visible = t.visible, this.context = t.context, this.components = t.components;
7625
7625
  }
7626
7626
  }
7627
- function dh(o) {
7627
+ function uh(o) {
7628
7628
  return o.visible;
7629
7629
  }
7630
7630
  function Cd(o, t) {
@@ -7640,7 +7640,7 @@ function Wg(o) {
7640
7640
  return On.isUsingInstancing(o);
7641
7641
  }
7642
7642
  function $v(o, t) {
7643
- return $c(o, t, !0, !0);
7643
+ return Wc(o, t, !0, !0);
7644
7644
  }
7645
7645
  const Wv = Symbol("isDestroyed");
7646
7646
  function ll(o) {
@@ -7769,7 +7769,7 @@ function Hv(o, t, e, i, n, s) {
7769
7769
  const h = t.parent;
7770
7770
  if (h && h.add(c), e != null && e.position ? vt(c, e.position) : c.position.copy(t.position), e != null && e.rotation ? Mn(c, e.rotation) : c.quaternion.copy(t.quaternion), e != null && e.scale ? c.scale.copy(e.scale) : c.scale.copy(t.scale), e != null && e.parent && e.parent !== "scene") {
7771
7771
  let u = null;
7772
- if (typeof e.parent == "string" ? u = $c(e.parent, o.scene, !0) : u = e.parent, u) {
7772
+ if (typeof e.parent == "string" ? u = Wc(e.parent, o.scene, !0) : u = e.parent, u) {
7773
7773
  const f = e.keepWorldPosition === !0 ? u.attach : u.add;
7774
7774
  f ? f.call(u, c) : console.error("Invalid parent object", u, "received when instantiating:", t);
7775
7775
  } else console.warn("could not find parent:", e.parent);
@@ -8382,7 +8382,7 @@ class ek {
8382
8382
  e !== -1 && this.mixers.splice(e, 1);
8383
8383
  }
8384
8384
  }
8385
- class Xc {
8385
+ class Qc {
8386
8386
  /**
8387
8387
  * Tries to get the animation actions from an animation mixer.
8388
8388
  * @param mixer The animation mixer to get the actions from
@@ -8572,7 +8572,7 @@ irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
8572
8572
  #endif`
8573
8573
  );
8574
8574
  bS.lightmap.lightmapScaleOffset = { value: new ye(1, 1, 0, 0) };
8575
- const mp = S("debugprogressive"), qh = new Li(), Xh = new ju();
8575
+ const mp = S("debugprogressive"), Xh = new Li(), Qh = new ju();
8576
8576
  class sk {
8577
8577
  constructor(t) {
8578
8578
  r(this, "context");
@@ -8619,8 +8619,8 @@ class sk {
8619
8619
  const a = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
8620
8620
  if (mp && e.geometry.boundingSphere) {
8621
8621
  const d = e.geometry.boundingSphere;
8622
- Xh.copy(d), Xh.applyMatrix4(e.matrixWorld);
8623
- const u = Xh.center, f = Xh.radius, m = ["#76c43e", "#bcc43e", "#c4ac3e", "#c4673e", "#ff3e3e"];
8622
+ Qh.copy(d), Qh.applyMatrix4(e.matrixWorld);
8623
+ const u = Qh.center, f = Qh.radius, m = ["#76c43e", "#bcc43e", "#c4ac3e", "#c4673e", "#ff3e3e"];
8624
8624
  if (a)
8625
8625
  H.DrawWireSphere(u, f, m[s], 0.1);
8626
8626
  else {
@@ -8640,7 +8640,7 @@ TEX ` + i.texture_lod;
8640
8640
  ` + (b / n.lastScreenCoverage).toFixed(0) + ` dens
8641
8641
  ` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
8642
8642
  ` + (n.lastCentrality * 100).toFixed(1) + `% centr
8643
- ` + (qh.min.x.toFixed(2) + "-" + qh.max.x.toFixed(2) + "x" + qh.min.y.toFixed(2) + "-" + qh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
8643
+ ` + (Xh.min.x.toFixed(2) + "-" + Xh.max.x.toFixed(2) + "x" + Xh.min.y.toFixed(2) + "-" + Xh.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
8644
8644
  const x = t, k = x.worldForward, O = x.worldPosition, T = q(k).multiplyScalar(f * 0.7).add(u), U = T.distanceTo(O), E = m[Math.min(m.length - 1, Math.max(0, s))] + "88", I = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, A = t.isPerspectiveCamera ? Math.tan(t.fov * Math.PI / 180 / 2) : 1;
8645
8645
  H.DrawLabel(T, v, U * 0.012 * I * A, void 0, 16777215, E);
8646
8646
  }
@@ -8693,12 +8693,12 @@ class ak {
8693
8693
  }
8694
8694
  }
8695
8695
  new yg();
8696
- const uh = new Uint8Array(4);
8697
- uh[0] = 255;
8698
- uh[1] = 255;
8699
- uh[2] = 255;
8700
- uh[3] = 255;
8701
- const lk = new _g(uh, 1, 1, Bu);
8696
+ const fh = new Uint8Array(4);
8697
+ fh[0] = 255;
8698
+ fh[1] = 255;
8699
+ fh[2] = 255;
8700
+ fh[3] = 255;
8701
+ const lk = new _g(fh, 1, 1, Bu);
8702
8702
  function Hg(o, t = 1) {
8703
8703
  const e = "alpha" in o, i = t * t, n = new Uint8Array(4 * i), s = Math.floor(o.r * 255), a = Math.floor(o.g * 255), l = Math.floor(o.b * 255);
8704
8704
  for (let h = 0; h < i; h++) {
@@ -8777,7 +8777,7 @@ function fk(o) {
8777
8777
  }).join(""));
8778
8778
  }
8779
8779
  const _n = S("debugenvlight");
8780
- var Cc = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Trilight = 1] = "Trilight", o[o.Flat = 3] = "Flat", o[o.Custom = 4] = "Custom", o))(Cc || {}), Im = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(Im || {});
8780
+ var Pc = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Trilight = 1] = "Trilight", o[o.Flat = 3] = "Flat", o[o.Custom = 4] = "Custom", o))(Pc || {}), Im = /* @__PURE__ */ ((o) => (o[o.Skybox = 0] = "Skybox", o[o.Custom = 1] = "Custom", o))(Im || {});
8781
8781
  class pk {
8782
8782
  constructor(t) {
8783
8783
  r(this, "context");
@@ -8867,7 +8867,7 @@ class pk {
8867
8867
  var i;
8868
8868
  this.__currentReflectionId = t;
8869
8869
  const e = (i = this._sceneLightSettings) == null ? void 0 : i.get(t);
8870
- switch (_n && console.log("Enable reflection", t, e ? Cc[e.ambientMode] : "Unknown ambient mode", e), e == null ? void 0 : e.ambientMode) {
8870
+ switch (_n && console.log("Enable reflection", t, e ? Pc[e.ambientMode] : "Unknown ambient mode", e), e == null ? void 0 : e.ambientMode) {
8871
8871
  case 0:
8872
8872
  case 4:
8873
8873
  const n = this.internalGetReflection(t);
@@ -9224,22 +9224,22 @@ function bk(o) {
9224
9224
  var e;
9225
9225
  return ((e = o.classList) == null ? void 0 : e.contains("material-symbols-outlined")) || !1;
9226
9226
  }
9227
- const Qh = /* @__PURE__ */ new Map();
9227
+ const Yh = /* @__PURE__ */ new Map();
9228
9228
  async function lb(o) {
9229
9229
  const t = "Material Symbols Outlined";
9230
- if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready), Qh.has(o))
9231
- return Qh.get(o);
9230
+ if (document.fonts.check(`1em '${t}'`) || (console.log("Font not loaded yet"), await document.fonts.ready), Yh.has(o))
9231
+ return Yh.get(o);
9232
9232
  const e = document.createElement("canvas"), i = 48;
9233
9233
  e.width = i, e.height = i;
9234
9234
  const n = e.getContext("2d");
9235
9235
  if (n) {
9236
9236
  n.font = `${i}px '${t}'`, n.fillStyle = "black", n.fillText(o, 0, i);
9237
9237
  const s = e.toDataURL(), a = new Fe();
9238
- return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0, Qh.set(o, a), a;
9238
+ return a.name = o + " icon", a.image = new Image(), a.image.src = s, a.needsUpdate = !0, Yh.set(o, a), a;
9239
9239
  }
9240
- return Qh.set(o, null), null;
9240
+ return Yh.set(o, null), null;
9241
9241
  }
9242
- const Bc = class Bc {
9242
+ const Fc = class Fc {
9243
9243
  constructor() {
9244
9244
  r(this, "_fullscreenButton");
9245
9245
  r(this, "_muteButton");
@@ -9260,11 +9260,11 @@ const Bc = class Bc {
9260
9260
  * If you want to create a new factory and create new button instances instead of shared buttons, use `ButtonsFactory.create()` instead
9261
9261
  */
9262
9262
  static getOrCreate() {
9263
- return this._instance || (this._instance = new Bc()), this._instance;
9263
+ return this._instance || (this._instance = new Fc()), this._instance;
9264
9264
  }
9265
9265
  /** create a new buttons factory */
9266
9266
  static create() {
9267
- return new Bc();
9267
+ return new Fc();
9268
9268
  }
9269
9269
  /**
9270
9270
  * Get the fullscreen button (or undefined if it doesn't exist yet). Call {@link ButtonsFactory.createFullscreenButton} to get or create it
@@ -9383,8 +9383,8 @@ const Bc = class Bc {
9383
9383
  });
9384
9384
  }
9385
9385
  };
9386
- r(Bc, "_instance");
9387
- let Ls = Bc;
9386
+ r(Fc, "_instance");
9387
+ let Ls = Fc;
9388
9388
  function iu(o, t) {
9389
9389
  const e = (t == null ? void 0 : t.element) || document.head, i = Array.from(e.querySelectorAll(`link[rel=stylesheet][href*='${o}']`));
9390
9390
  if (i.length <= 0) {
@@ -9784,7 +9784,7 @@ class cb {
9784
9784
  t.use(), this.onclick();
9785
9785
  }
9786
9786
  }
9787
- const vr = "needle-menu", Pc = S("debugmenu"), hb = S("debugnoncommercial");
9787
+ const vr = "needle-menu", Oc = S("debugmenu"), hb = S("debugnoncommercial");
9788
9788
  let xk = class {
9789
9789
  constructor(t) {
9790
9790
  r(this, "_context");
@@ -9809,8 +9809,8 @@ let xk = class {
9809
9809
  a ? globalThis.open(n.onclick, l) : console.error("NeedleMenu: onclick is not a valid link", n.onclick);
9810
9810
  }
9811
9811
  }, this._menu.appendChild(s);
9812
- } else Pc && console.error("NeedleMenu: unknown postMessage event", e);
9813
- } else Pc && console.warn("NeedleMenu: unknown postMessage type", i, e);
9812
+ } else Oc && console.error("NeedleMenu: unknown postMessage event", e);
9813
+ } else Oc && console.warn("NeedleMenu: unknown postMessage type", i, e);
9814
9814
  }
9815
9815
  });
9816
9816
  r(this, "onStartXR", (t) => {
@@ -9895,7 +9895,7 @@ let xk = class {
9895
9895
  return this._menu.appendChild(t);
9896
9896
  }
9897
9897
  };
9898
- var ah;
9898
+ var lh;
9899
9899
  const Zy = class Zy extends HTMLElement {
9900
9900
  constructor() {
9901
9901
  var u, f, m, g, _, y;
@@ -9903,7 +9903,7 @@ const Zy = class Zy extends HTMLElement {
9903
9903
  r(this, "_domElement", null);
9904
9904
  r(this, "_context", null);
9905
9905
  r(this, "_sizeChangeInterval");
9906
- mn(this, ah, (e) => {
9906
+ mn(this, lh, (e) => {
9907
9907
  if (!e.defaultPrevented && e.target == this._domElement && e instanceof PointerEvent && e.button === 0 && this.root.classList.contains("open")) {
9908
9908
  const i = this.foldout.getBoundingClientRect(), n = e;
9909
9909
  n.clientX > i.left && n.clientX < i.right && n.clientY > i.top && n.clientY < i.bottom || this.root.classList.toggle("open", !1);
@@ -9932,7 +9932,7 @@ const Zy = class Zy extends HTMLElement {
9932
9932
  clearTimeout(this._timeoutHandle), this.root.classList.add("compact"), this.foldout.classList.add("floating-panel-style");
9933
9933
  return;
9934
9934
  }
9935
- const s = 20 * 2, a = n - s;
9935
+ const a = n - 40;
9936
9936
  if (!i && Math.abs(a - this._lastAvailableWidthChange) < 1) return;
9937
9937
  this._lastAvailableWidthChange = a, clearTimeout(this._timeoutHandle), this._timeoutHandle = setTimeout(() => {
9938
9938
  const h = c();
@@ -10348,7 +10348,7 @@ const Zy = class Zy extends HTMLElement {
10348
10348
  let l = 0;
10349
10349
  const c = (b, v) => {
10350
10350
  var x, k, O;
10351
- Pc && console.log("Set menu visible", v), a != null && a.isInAR && a.arOverlayElement ? b != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((x = this._domElement) == null ? void 0 : x.shadowRoot) && ((O = (k = this._domElement) == null ? void 0 : k.shadowRoot) == null || O.appendChild(this)), this.style.display = v ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
10351
+ Oc && console.log("Set menu visible", v), a != null && a.isInAR && a.arOverlayElement ? b != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((x = this._domElement) == null ? void 0 : x.shadowRoot) && ((O = (k = this._domElement) == null ? void 0 : k.shadowRoot) == null || O.appendChild(this)), this.style.display = v ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
10352
10352
  };
10353
10353
  let h = !1;
10354
10354
  new MutationObserver((b) => {
@@ -10364,7 +10364,7 @@ const Zy = class Zy extends HTMLElement {
10364
10364
  } finally {
10365
10365
  h = !1;
10366
10366
  }
10367
- }).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), Pc && this.___insertDebugOptions();
10367
+ }).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), Oc && this.___insertDebugOptions();
10368
10368
  }
10369
10369
  static create() {
10370
10370
  return document.createElement(vr, { is: vr });
@@ -10376,12 +10376,12 @@ const Zy = class Zy extends HTMLElement {
10376
10376
  connectedCallback() {
10377
10377
  window.addEventListener("resize", this.handleSizeChange), this.handleMenuVisible(), this._sizeChangeInterval = setInterval(() => this.handleSizeChange(void 0, !0), 5e3), setTimeout(() => {
10378
10378
  var e, i;
10379
- (e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", ue(this, ah));
10379
+ (e = this._domElement) == null || e.addEventListener("resize", this.handleSizeChange), (i = this._domElement) == null || i.addEventListener("click", ue(this, lh));
10380
10380
  }, 1);
10381
10381
  }
10382
10382
  disconnectedCallback() {
10383
10383
  var e, i;
10384
- window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", ue(this, ah));
10384
+ window.removeEventListener("resize", this.handleSizeChange), clearInterval(this._sizeChangeInterval), (e = this._domElement) == null || e.removeEventListener("resize", this.handleSizeChange), (i = this._context) == null || i.domElement.removeEventListener("click", ue(this, lh));
10385
10385
  }
10386
10386
  showNeedleLogo(e) {
10387
10387
  this._userRequestedLogoVisible = e, !(!e && (!Ws() || hb) && (console.warn("[Needle Engine] You need a PRO license to hide the Needle Engine logo in production."), !_i())) && this.___onSetLogoVisible(e);
@@ -10472,7 +10472,7 @@ const Zy = class Zy extends HTMLElement {
10472
10472
  * if we dont have any content and logo then we hide the menu
10473
10473
  */
10474
10474
  handleMenuVisible() {
10475
- Pc && console.log("Update VisibleState: Any Content?", this.hasAnyContent), this.hasAnyContent ? this.root.style.display = "" : this.root.style.display = "none", this.root.classList.toggle("has-options", this.hasAnyVisibleOptions), this.root.classList.toggle("has-no-options", !this.hasAnyVisibleOptions);
10475
+ Oc && console.log("Update VisibleState: Any Content?", this.hasAnyContent), this.hasAnyContent ? this.root.style.display = "" : this.root.style.display = "none", this.root.classList.toggle("has-options", this.hasAnyVisibleOptions), this.root.classList.toggle("has-no-options", !this.hasAnyVisibleOptions);
10476
10476
  }
10477
10477
  /** @returns true if we have any content OR a logo */
10478
10478
  get hasAnyContent() {
@@ -10512,7 +10512,7 @@ const Zy = class Zy extends HTMLElement {
10512
10512
  }), this.appendChild(i);
10513
10513
  }
10514
10514
  };
10515
- ah = new WeakMap();
10515
+ lh = new WeakMap();
10516
10516
  let su = Zy;
10517
10517
  customElements.get(vr) || customElements.define(vr, su);
10518
10518
  const nt = S("debugcontext"), Sk = S("stats"), Ck = S("debugactive"), Pk = S("debugframerate"), Ok = S("debugcoroutine"), XL = {};
@@ -11212,7 +11212,7 @@ Possible solutions:
11212
11212
  cl(this.scene, (b) => {
11213
11213
  const v = b;
11214
11214
  if (v != null && v.isCamera) {
11215
- if (Sc(v.gameObject), !v.activeAndEnabled) return;
11215
+ if (Cc(v.gameObject), !v.activeAndEnabled) return;
11216
11216
  if (v.tag === "MainCamera")
11217
11217
  return y = v, !0;
11218
11218
  y = v;
@@ -11447,8 +11447,8 @@ Target Framerate: ` + this.targetFrameRate)), this._dispatchReadyAfterFrame && (
11447
11447
  return !1;
11448
11448
  if (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Dd && qv(), this.composer && !this.isInXR) {
11449
11449
  t && "setMainCamera" in this.composer && ((e = this.composer.passes[0]) == null ? void 0 : e.mainCamera) != t && this.composer.setMainCamera(t);
11450
- const i = this.renderer.getClearColor(this._tempClearColor);
11451
- this._tempClearColor2.copy(i), this.renderer.setClearColor(i.convertSRGBToLinear()), this.composer.render(this.time.deltaTime), this.renderer.setClearColor(this._tempClearColor2);
11450
+ const i = this.renderer.getClearColor(this._tempClearColor), n = this.renderer.getClearAlpha();
11451
+ this._tempClearColor2.copy(i), this.renderer.setClearColor(i.convertSRGBToLinear(), this.renderer.getClearAlpha()), this.composer.render(this.time.deltaTime), this.renderer.setClearColor(this._tempClearColor2, n);
11452
11452
  } else t && (this.isInXR && Q.isMacOS() && this.renderer.clearDepth(), this.renderer.render(this.scene, t));
11453
11453
  return this._isRendering = !1, !0;
11454
11454
  }
@@ -11569,7 +11569,7 @@ function kk(o) {
11569
11569
  return o(!0);
11570
11570
  Kv.push(o);
11571
11571
  }
11572
- function Yh(o) {
11572
+ function Kh(o) {
11573
11573
  for (const t of Kv)
11574
11574
  try {
11575
11575
  t(o);
@@ -11579,7 +11579,7 @@ function Yh(o) {
11579
11579
  fe.registerCallback(me.ContextRegistered, (o) => {
11580
11580
  Tk(o.context), Rk(o.context), setTimeout(() => Ak(o.context), 2e3);
11581
11581
  });
11582
- let Uo, jm = !1, dc = "";
11582
+ let Uo, jm = !1, uc = "";
11583
11583
  async function Mk() {
11584
11584
  if (Uo) return Uo;
11585
11585
  if (ts === "basic")
@@ -11589,9 +11589,9 @@ async function Mk() {
11589
11589
  }).catch((e) => {
11590
11590
  Ti && console.error("License check failed", e);
11591
11591
  });
11592
- (t == null ? void 0 : t.status) === 200 ? (jm = !1, Ti && console.log("License check succeeded"), ts = "pro", Yh(!0)) : (t == null ? void 0 : t.status) === 403 ? (Yh(!1), jm = !0, dc = await t.text()) : (Yh(!1), Ti && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
11592
+ (t == null ? void 0 : t.status) === 200 ? (jm = !1, Ti && console.log("License check succeeded"), ts = "pro", Kh(!0)) : (t == null ? void 0 : t.status) === 403 ? (Kh(!1), jm = !0, uc = await t.text()) : (Kh(!1), Ti && console.log("License check failed with status " + (t == null ? void 0 : t.status)));
11593
11593
  } catch (o) {
11594
- Yh(!1), Ti && console.error("License check failed", o);
11594
+ Kh(!1), Ti && console.error("License check failed", o);
11595
11595
  }
11596
11596
  else Ti && console.log('Runtime license check is skipped because license is already applied as "' + ts + '"');
11597
11597
  }
@@ -11630,7 +11630,7 @@ async function Rk(o) {
11630
11630
  background-color: rgba(0,0,0,.3);
11631
11631
  text-shadow: 0 0 2px black;
11632
11632
  `;
11633
- const l = a.style.cssText, c = (dc == null ? void 0 : dc.length) > 1 ? dc : "This web application has been paused.<br/>You might be in violation of the Needle Engine terms of use.<br/>Please contact the Needle support if you think this is a mistake.";
11633
+ const l = a.style.cssText, c = (uc == null ? void 0 : uc.length) > 1 ? uc : "This web application has been paused.<br/>You might be in violation of the Needle Engine terms of use.<br/>Please contact the Needle support if you think this is a mistake.";
11634
11634
  return a.innerHTML = c, setInterval(() => {
11635
11635
  a.innerHTML !== c && (a.innerHTML = c), a.parentNode !== n && n.appendChild(a), n.style.cssText !== s && (n.style.cssText = s), a.style.cssText !== l && (a.style.cssText = l);
11636
11636
  }, 500), n;
@@ -11767,7 +11767,7 @@ async function Ak(o) {
11767
11767
  version: es,
11768
11768
  generator: Tg,
11769
11769
  build_time: av,
11770
- public_key: _d
11770
+ public_key: cc
11771
11771
  }, d = (i = navigator.sendBeacon) == null ? void 0 : i.call(navigator, c, JSON.stringify(h));
11772
11772
  Ti && console.debug("Sent beacon: " + d);
11773
11773
  }
@@ -11833,31 +11833,31 @@ function mb(o) {
11833
11833
  return o;
11834
11834
  }
11835
11835
  const No = S("debughotreload");
11836
- let Qc = !1;
11837
- const Oc = /* @__PURE__ */ new Map();
11836
+ let Yc = !1;
11837
+ const kc = /* @__PURE__ */ new Map();
11838
11838
  function YL() {
11839
- return Qc;
11839
+ return Yc;
11840
11840
  }
11841
11841
  function gb() {
11842
11842
  return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
11843
11843
  }
11844
11844
  function Lk(o) {
11845
11845
  var i;
11846
- if (Qc) {
11846
+ if (Yc) {
11847
11847
  No && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", o);
11848
11848
  return;
11849
11849
  }
11850
11850
  No && console.log("[Needle Engine] Registering hot reload instance", o);
11851
11851
  const e = o.constructor.name;
11852
- Oc.has(e) ? (i = Oc.get(e)) == null || i.push(o) : Oc.set(e, [o]);
11852
+ kc.has(e) ? (i = kc.get(e)) == null || i.push(o) : kc.set(e, [o]);
11853
11853
  }
11854
11854
  function Dk(o) {
11855
- if (Qc) {
11855
+ if (Yc) {
11856
11856
  No && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", o);
11857
11857
  return;
11858
11858
  }
11859
11859
  No && console.log("[Needle Engine] Unregistering hot reload instance", o);
11860
- const e = o.constructor.name, i = Oc.get(e);
11860
+ const e = o.constructor.name, i = kc.get(e);
11861
11861
  if (!i) return;
11862
11862
  const n = i.indexOf(o);
11863
11863
  n !== -1 && i.splice(n, 1);
@@ -11882,13 +11882,13 @@ function KL(o) {
11882
11882
  No && console.log("[HMR] Apply changes", o, Object.keys(o)), jk();
11883
11883
  for (const t of Object.keys(o))
11884
11884
  try {
11885
- Qc = !0;
11885
+ Yc = !0;
11886
11886
  const e = M.get(t);
11887
11887
  if (!e) {
11888
11888
  No && console.log("[HMR] Type not found: " + t);
11889
11889
  continue;
11890
11890
  }
11891
- const i = o[t], n = Oc.get(i.name);
11891
+ const i = o[t], n = kc.get(i.name);
11892
11892
  let s = "[Needle Engine] Updating type: " + t;
11893
11893
  const a = (n == null ? void 0 : n.length) ?? -1;
11894
11894
  a > 0 ? s += " x" + a : s += " (No instances registered)", console.log(s);
@@ -11925,7 +11925,7 @@ function KL(o) {
11925
11925
  if (No) console.error(e);
11926
11926
  else return !1;
11927
11927
  } finally {
11928
- Qc = !1, Hn(nn.Log, "Script changes applied (HMR)");
11928
+ Yc = !1, Hn(nn.Log, "Script changes applied (HMR)");
11929
11929
  }
11930
11930
  return !0;
11931
11931
  }
@@ -11960,7 +11960,7 @@ class C extends L {
11960
11960
  * @returns True if the GameObject is active
11961
11961
  */
11962
11962
  static isActiveSelf(e) {
11963
- return dh(e);
11963
+ return uh(e);
11964
11964
  }
11965
11965
  /**
11966
11966
  * Checks if the GameObject is active in the hierarchy (e.g. if any parent is invisible or not in the scene it will be false)
@@ -12183,7 +12183,7 @@ class C extends L {
12183
12183
  * @returns Array of components
12184
12184
  */
12185
12185
  static getComponentsInChildren(e, i, n = null) {
12186
- return hh(e, i, n ?? void 0);
12186
+ return dh(e, i, n ?? void 0);
12187
12187
  }
12188
12188
  /**
12189
12189
  * Gets a component of the specified type in the gameObject's parent hierarchy
@@ -13011,7 +13011,7 @@ class e2 {
13011
13011
  return !0;
13012
13012
  }
13013
13013
  }
13014
- class Kh {
13014
+ class Zh {
13015
13015
  constructor(t, e, i, n) {
13016
13016
  /** The name of the animation */
13017
13017
  r(this, "name");
@@ -13043,7 +13043,7 @@ function $k(o, t) {
13043
13043
  };
13044
13044
  }
13045
13045
  var _r = /* @__PURE__ */ ((o) => (o[o.If = 1] = "If", o[o.IfNot = 2] = "IfNot", o[o.Greater = 3] = "Greater", o[o.Less = 4] = "Less", o[o.Equals = 6] = "Equals", o[o.NotEqual = 7] = "NotEqual", o))(_r || {}), iw = /* @__PURE__ */ ((o) => (o[o.Float = 1] = "Float", o[o.Int = 3] = "Int", o[o.Bool = 4] = "Bool", o[o.Trigger = 9] = "Trigger", o))(iw || {});
13046
- const ct = S("debuganimatorcontroller"), Zh = S("debugrootmotion");
13046
+ const ct = S("debuganimatorcontroller"), Jh = S("debugrootmotion");
13047
13047
  class kn {
13048
13048
  constructor(t) {
13049
13049
  r(this, "_speed", 1);
@@ -13298,7 +13298,7 @@ class kn {
13298
13298
  const t = this._activeState.motion.action;
13299
13299
  if (!t) return null;
13300
13300
  const e = this._activeState.motion.clip.duration, i = e <= 0 ? 0 : Math.abs(t.time / e);
13301
- return new Kh(this._activeState, i, e, this._speed);
13301
+ return new Zh(this._activeState, i, e, this._speed);
13302
13302
  }
13303
13303
  /**
13304
13304
  * Gets the animation action currently playing.
@@ -13451,7 +13451,7 @@ Exit Time: ` + d, a.hasExitTime);
13451
13451
  i && this.setTimescale(i, e);
13452
13452
  let n = !1;
13453
13453
  if (e.motion.isLooping && i && (i.time >= i.getClip().duration ? (n = !0, i.reset(), i.time = 0, i.play()) : i.time <= 0 && i.timeScale < 0 && (n = !0, i.reset(), i.time = i.getClip().duration, i.play())), !n && e && !t && i && this.animator && e.behaviours) {
13454
- const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new Kh(this._activeState, l, a, this._speed);
13454
+ const a = i == null ? void 0 : i.getClip().duration, l = i.time / a, c = new Zh(this._activeState, l, a, this._speed);
13455
13455
  for (const h of e.behaviours)
13456
13456
  h.instance && ((s = h.instance.onStateUpdate) == null || s.call(h.instance, this.animator, c, 0));
13457
13457
  }
@@ -13483,7 +13483,7 @@ Exit Time: ` + d, a.hasExitTime);
13483
13483
  }
13484
13484
  }
13485
13485
  if ((d = this._activeState) != null && d.behaviours && this._activeState.motion.action) {
13486
- const v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new Kh(this._activeState, x, v, this._speed);
13486
+ const v = (u = this._activeState) == null ? void 0 : u.motion.clip.duration, x = this._activeState.motion.action.time / v, k = new Zh(this._activeState, x, v, this._speed);
13487
13487
  for (const O of this._activeState.behaviours)
13488
13488
  (m = (f = O.instance) == null ? void 0 : f.onStateExit) == null || m.call(O.instance, this.animator, k, n);
13489
13489
  }
@@ -13500,7 +13500,7 @@ Exit Time: ` + d, a.hasExitTime);
13500
13500
  c.isRunning() && c.stop(), c.reset(), c.enabled = !0, this.setTimescale(c, t);
13501
13501
  const v = t.motion.clip.duration;
13502
13502
  if (c.time = s ? 0 : i * v, c.timeScale < 0 && (c.time = v - c.time), c.clampWhenFinished = !0, c.setLoop(rm, 0), e > 0 ? c.fadeIn(e) : c.weight = 1, c.play(), this.rootMotionHandler && this.rootMotionHandler.onStart(c), this._activeStates.includes(t) || this._activeStates.push(t), this._activeState.behaviours) {
13503
- const x = new Kh(t, i, v, this._speed);
13503
+ const x = new Zh(t, i, v, this._speed);
13504
13504
  for (const k of this._activeState.behaviours)
13505
13505
  (b = (y = k.instance) == null ? void 0 : y.onStateEnter) == null || b.call(k.instance, this.animator, x, n);
13506
13506
  }
@@ -13655,7 +13655,7 @@ const Te = class Te {
13655
13655
  if (t.getClip() !== this.clip) return;
13656
13656
  Te.lastObjRotation[this.cacheId] || (Te.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
13657
13657
  const e = Te.lastObjRotation[this.cacheId];
13658
- if (Te.spaceRotation[this.cacheId].copy(e), Zh) {
13658
+ if (Te.spaceRotation[this.cacheId].copy(e), Jh) {
13659
13659
  const i = new Ft().setFromQuaternion(e);
13660
13660
  console.log("START", this.clip.name, $.toDegrees(i.y), this.root.position.z);
13661
13661
  }
@@ -13666,17 +13666,17 @@ const Te = class Te {
13666
13666
  handlePosition(t, e) {
13667
13667
  if (e) {
13668
13668
  const i = this.root;
13669
- Zh && i.add(new Di()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
13669
+ Jh && i.add(new Di()), Te.lastObjPosition[this.cacheId] || (Te.lastObjPosition[this.cacheId] = this.root.position.clone());
13670
13670
  const n = new w(), s = new w();
13671
13671
  this.positionWrapper = new bb(e, (a, l) => {
13672
13672
  const c = this.action.getEffectiveWeight();
13673
- return Zh && i.position.length() > 8 && i.position.set(0, i.position.y, 0), a > this._prevTime && (n.set(l[0], l[1], l[2]), n.sub(s), n.multiplyScalar(c), n.applyQuaternion(this.getClipRotationOffset()), n.applyQuaternion(i.quaternion), this.positionChange.copy(n)), s.fromArray(l), this._prevTime = a, l[0] = 0, l[1] = 0, l[2] = 0, l;
13673
+ return Jh && i.position.length() > 8 && i.position.set(0, i.position.y, 0), a > this._prevTime && (n.set(l[0], l[1], l[2]), n.sub(s), n.multiplyScalar(c), n.applyQuaternion(this.getClipRotationOffset()), n.applyQuaternion(i.quaternion), this.positionChange.copy(n)), s.fromArray(l), this._prevTime = a, l[0] = 0, l[1] = 0, l[2] = 0, l;
13674
13674
  });
13675
13675
  }
13676
13676
  }
13677
13677
  handleRotation(t, e) {
13678
13678
  if (e) {
13679
- if (Zh) {
13679
+ if (Jh) {
13680
13680
  const a = e.values, l = new Ft().setFromQuaternion(new W(a[0], a[1], a[2], a[3]));
13681
13681
  console.log(t.name, e.name, "FIRST ROTATION IN TRACK", $.toDegrees(l.y));
13682
13682
  const c = e.values.length - 4, h = new W().set(a[c], a[c + 1], a[c + 2], a[c + 3]), d = new Ft().setFromQuaternion(h);
@@ -14075,12 +14075,12 @@ const vb = Symbol("previous-visibility"), Cr = class Cr extends ns {
14075
14075
  };
14076
14076
  r(Cr, "_userSet", /* @__PURE__ */ new Set());
14077
14077
  let Xa = Cr;
14078
- var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor, fh = (o, t, e, i) => {
14078
+ var qk = Object.defineProperty, Xk = Object.getOwnPropertyDescriptor, ph = (o, t, e, i) => {
14079
14079
  for (var n = i > 1 ? void 0 : i ? Xk(t, e) : t, s = o.length - 1, a; s >= 0; s--)
14080
14080
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
14081
14081
  return i && n && qk(t, e, n), n;
14082
14082
  };
14083
- const Jh = S("debuggroundprojection");
14083
+ const ed = S("debuggroundprojection");
14084
14084
  class to extends D {
14085
14085
  constructor() {
14086
14086
  super(...arguments);
@@ -14123,7 +14123,7 @@ class to extends D {
14123
14123
  /** @internal */
14124
14124
  onEnable() {
14125
14125
  this.context.time.frameCount > 0 && this.applyOnAwake && this.updateAndCreate(), this._watcher || (this._watcher = new Fo(this.context.scene, "background"), this._watcher.subscribeWrite((e) => {
14126
- Jh && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
14126
+ ed && console.log("Background changed", this.context.scene.background), this._needsTextureUpdate = !0;
14127
14127
  }));
14128
14128
  }
14129
14129
  /** @internal */
@@ -14170,7 +14170,7 @@ class to extends D {
14170
14170
  let i = !0;
14171
14171
  const n = 0, s = e !== this._lastBackground || this._height !== this._lastHeight || this._radius !== this._lastRadius;
14172
14172
  if (!this._projection || s) {
14173
- Jh && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
14173
+ ed && console.log("Create/Update Ground Projection", e.name), (u = this._projection) == null || u.removeFromParent();
14174
14174
  try {
14175
14175
  this._projection = new el(e, this._height, this._radius, 64);
14176
14176
  } catch (f) {
@@ -14189,7 +14189,7 @@ class to extends D {
14189
14189
  const _ = Ke(this.gameObject).x;
14190
14190
  g.y = m + this._height * _ - n, g.z = f.min.z + (f.max.z - f.min.z) * 0.5, vt(this._projection, g);
14191
14191
  }
14192
- Jh && H.DrawWireBox3(f, 65280, 5);
14192
+ ed && H.DrawWireBox3(f, 65280, 5);
14193
14193
  }
14194
14194
  this.context.scene.backgroundBlurriness > 1e-3 && this._needsTextureUpdate && this.updateBlurriness(e, this.context.scene.backgroundBlurriness), this._lastBackground = e, this._lastHeight = this._height, this._lastRadius = this._radius, this._needsTextureUpdate = !1;
14195
14195
  }
@@ -14199,7 +14199,7 @@ class to extends D {
14199
14199
  if (!e)
14200
14200
  return;
14201
14201
  } else return;
14202
- this._needsTextureUpdate = !1, Jh && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new is({
14202
+ this._needsTextureUpdate = !1, ed && console.log("Update Blurriness", i), this._blurrynessShader ?? (this._blurrynessShader = new is({
14203
14203
  name: "GroundProjectionBlurriness",
14204
14204
  uniforms: {
14205
14205
  map: { value: e },
@@ -14214,19 +14214,19 @@ class to extends D {
14214
14214
  this._projection.material.transparent = (((s = this.context.xr) == null ? void 0 : s.isAR) === !0 && this.arBlending > 1e-6) ?? !1, this._projection.material.transparent ? this._blurrynessShader.uniforms.blending.value = this.arBlending : this._blurrynessShader.uniforms.blending.value = 0, this.context.isInPassThrough ? this._blurrynessShader.uniforms.alphaFactor.value = 0.95 : this._blurrynessShader.uniforms.alphaFactor.value = 1, n !== this._projection.material.transparent && (this._projection.material.needsUpdate = !0), this._projection.material.map = il.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
14215
14215
  }
14216
14216
  }
14217
- fh([
14217
+ ph([
14218
14218
  p()
14219
14219
  ], to.prototype, "applyOnAwake", 2);
14220
- fh([
14220
+ ph([
14221
14221
  p()
14222
14222
  ], to.prototype, "autoFit", 2);
14223
- fh([
14223
+ ph([
14224
14224
  p()
14225
14225
  ], to.prototype, "radius", 1);
14226
- fh([
14226
+ ph([
14227
14227
  p()
14228
14228
  ], to.prototype, "height", 1);
14229
- fh([
14229
+ ph([
14230
14230
  p()
14231
14231
  ], to.prototype, "arBlending", 1);
14232
14232
  const Qk = `
@@ -14479,7 +14479,7 @@ var j;
14479
14479
  t.ready = i;
14480
14480
  async function n() {
14481
14481
  if (t.MODULE) return t.MODULE;
14482
- const s = await import("./postprocessing-BkxN_08g.js").then((a) => a.index);
14482
+ const s = await import("./postprocessing-DYLNOL3W.js").then((a) => a.index);
14483
14483
  return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
14484
14484
  }
14485
14485
  t.load = n;
@@ -14494,13 +14494,13 @@ var j;
14494
14494
  t.ready = i;
14495
14495
  async function n() {
14496
14496
  if (t.MODULE) return t.MODULE;
14497
- const s = await import("./postprocessing-BkxN_08g.js").then((a) => a.N8AO);
14497
+ const s = await import("./postprocessing-DYLNOL3W.js").then((a) => a.N8AO);
14498
14498
  return t.MODULE = s, t.MAYBEMODULE = s, e.forEach((a) => a(s)), e.length = 0, s;
14499
14499
  }
14500
14500
  t.load = n;
14501
14501
  })(o.POSTPROCESSING_AO || (o.POSTPROCESSING_AO = {}));
14502
14502
  })(j || (j = {}));
14503
- var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Yg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Yg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}), uc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(uc || {});
14503
+ var Tt = /* @__PURE__ */ ((o) => (o[o.Average = 0] = "Average", o[o.Multiply = 1] = "Multiply", o[o.Minimum = 2] = "Minimum", o[o.Maximum = 3] = "Maximum", o))(Tt || {}), Yg = /* @__PURE__ */ ((o) => (o[o.Discrete = 0] = "Discrete", o[o.Continuous = 1] = "Continuous", o))(Yg || {}), it = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.FreezePositionX = 2] = "FreezePositionX", o[o.FreezePositionY = 4] = "FreezePositionY", o[o.FreezePositionZ = 8] = "FreezePositionZ", o[o.FreezePosition = 14] = "FreezePosition", o[o.FreezeRotationX = 16] = "FreezeRotationX", o[o.FreezeRotationY = 32] = "FreezeRotationY", o[o.FreezeRotationZ = 64] = "FreezeRotationZ", o[o.FreezeRotation = 112] = "FreezeRotation", o[o.FreezeAll = 126] = "FreezeAll", o))(it || {}), fc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.X = 2] = "X", o[o.Y = 4] = "Y", o[o.Z = 8] = "Z", o[o.All = -1] = "All", o))(fc || {});
14504
14504
  const Wt = function(o, t) {
14505
14505
  return function(e, i, n) {
14506
14506
  tM(e, i, n, o, t);
@@ -14933,8 +14933,8 @@ zi([
14933
14933
  let wt = bi;
14934
14934
  new w();
14935
14935
  new w();
14936
- const yo = S("debugsync"), Yc = "STRS";
14937
- gv(Yc, Es.getRootAsSyncedTransformModel);
14936
+ const yo = S("debugsync"), Kc = "STRS";
14937
+ gv(Kc, Es.getRootAsSyncedTransformModel);
14938
14938
  const Fn = new Pg();
14939
14939
  function sw(o, t, e = !0) {
14940
14940
  Fn.clear();
@@ -14943,13 +14943,13 @@ function sw(o, t, e = !0) {
14943
14943
  const n = t.worldPosition, s = t.worldEuler, a = t.gameObject.scale;
14944
14944
  Es.addTransform(Fn, nw.createTransform(Fn, n.x, n.y, n.z, s.x, s.y, s.z, a.x, a.y, a.z));
14945
14945
  const l = Es.endSyncedTransformModel(Fn);
14946
- return Fn.finish(l, Yc), Fn.asUint8Array();
14946
+ return Fn.finish(l, Kc), Fn.asUint8Array();
14947
14947
  }
14948
- let zm = 0, kc = 0;
14948
+ let zm = 0, Mc = 0;
14949
14949
  eM((o) => {
14950
14950
  var i;
14951
14951
  const e = ((i = o.connection.currentServerUrl) == null ? void 0 : i.includes("glitch")) ? 10 : 40;
14952
- kc = Math.floor(zm / e), zm = 0, yo && kc > 0 && console.log("Sync Transform Fast Interval", kc);
14952
+ Mc = Math.floor(zm / e), zm = 0, yo && Mc > 0 && console.log("Sync Transform Fast Interval", Mc);
14953
14953
  });
14954
14954
  class Ys extends D {
14955
14955
  constructor() {
@@ -15017,11 +15017,11 @@ class Ys extends D {
15017
15017
  }
15018
15018
  /** @internal */
15019
15019
  awake() {
15020
- yo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Yc, this.receivedDataCallback);
15020
+ yo && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new W(), this.lastPosition = new w(), this.lastRotation = new W(), this.lastScale = new w(), this.rb = C.getComponentInChildren(this.gameObject, wt), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new yv(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(se.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Kc, this.receivedDataCallback);
15021
15021
  }
15022
15022
  /** @internal */
15023
15023
  onDestroy() {
15024
- this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Yc, this.receivedDataCallback);
15024
+ this.syncDestroy && Tv(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(se.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(Kc, this.receivedDataCallback);
15025
15025
  }
15026
15026
  /**
15027
15027
  * Attempts to retrieve and apply the last known network state for this transform
@@ -15100,7 +15100,7 @@ class Ys extends D {
15100
15100
  this.rb && this.overridePhysics && this._wasKinematic !== void 0 && (yo && console.log("reset kinematic", this.rb.name, this._wasKinematic), this.rb.isKinematic = this._wasKinematic);
15101
15101
  const s = 10, a = this.rb || this.fastMode;
15102
15102
  if (this._needsUpdate && (this.context.time.frameCount % s === 0 || a)) {
15103
- if (zm++, a && kc > 0 && this.context.time.frameCount % kc !== 0) return;
15103
+ if (zm++, a && Mc > 0 && this.context.time.frameCount % Mc !== 0) return;
15104
15104
  yo && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
15105
15105
  const l = sw(this.guid, this, !!a);
15106
15106
  this.context.connection.sendBinary(l);
@@ -16143,7 +16143,7 @@ var bM = Object.defineProperty, ze = (o, t, e, i) => {
16143
16143
  (a = o[s]) && (n = a(t, e, n) || n);
16144
16144
  return n && bM(t, e, n), n;
16145
16145
  };
16146
- const Qi = S("debugorbit"), wp = S("freecam"), Gl = S("debugcamerafit"), ed = S("smoothcam"), vM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
16146
+ const Qi = S("debugorbit"), wp = S("freecam"), Gl = S("debugcamerafit"), td = S("smoothcam"), vM = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
16147
16147
  let xp;
16148
16148
  class au extends CustomEvent {
16149
16149
  constructor(t, e) {
@@ -16411,9 +16411,9 @@ class xe extends D {
16411
16411
  }
16412
16412
  }
16413
16413
  if (this._controls) {
16414
- if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? xp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, wp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof ed == "number" || ed === !0) {
16414
+ if (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((l) => l.used), this._controls.keys = this.enableKeys ? xp : vM, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.zoomSpeed = this.zoomSpeed, this._controls.zoomToCursor = this.zoomToCursor, this._controls.enableDamping = this.enableDamping, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle, this._controls.maxAzimuthAngle = this.maxAzimuthAngle, this._controls.minPolarAngle = this.minPolarAngle, this._controls.maxPolarAngle = this.maxPolarAngle, wp || (((s = (n = this._camera) == null ? void 0 : n.threeCamera) == null ? void 0 : s.type) === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom)), typeof td == "number" || td === !0) {
16415
16415
  this._controls.enableDamping = !0;
16416
- const l = typeof ed == "number" ? ed : 0.99;
16416
+ const l = typeof td == "number" ? td : 0.99;
16417
16417
  this._controls.dampingFactor = Math.max(1e-3, 1 - Math.min(1, l));
16418
16418
  }
16419
16419
  this.allowInterrupt || (this._lookTargetLerpActive && (this._controls.enablePan = !1), this._cameraLerpActive && (this._controls.enableRotate = !1, this._controls.autoRotate = !1), (this._lookTargetLerpActive || this._cameraLerpActive) && (this._controls.enableZoom = !1)), this.context.isInXR || (!wp && ((a = this.lookAtConstraint) != null && a.locked) && this.setLookTargetFromConstraint(0, this.lookAtConstraint01), this._controls.update(this.context.time.deltaTime), Qi && H.DrawWireSphere(this._controls.target, 0.1, 65280));
@@ -17862,7 +17862,7 @@ Incoming:`, this._incomingCalls), l;
17862
17862
  // }
17863
17863
  };
17864
17864
  r(Pr, "instances", /* @__PURE__ */ new Map());
17865
- let Mc = Pr;
17865
+ let Rc = Pr;
17866
17866
  class of extends vg {
17867
17867
  constructor(e, i) {
17868
17868
  super();
@@ -17917,8 +17917,8 @@ class of extends vg {
17917
17917
  });
17918
17918
  if (TM(e)) {
17919
17919
  const n = e;
17920
- e = n.context, i = Mc.getOrCreate(n.context, n.guid);
17921
- } else typeof i == "string" && (i = Mc.getOrCreate(e, i));
17920
+ e = n.context, i = Rc.getOrCreate(n.context, n.guid);
17921
+ } else typeof i == "string" && (i = Rc.getOrCreate(e, i));
17922
17922
  if (e) {
17923
17923
  if (!(e instanceof Z)) throw new Error("Failed to create NetworkedStreams because context is not an instance of Context");
17924
17924
  } else throw new Error("Failed to create NetworkedStreams because context is undefined");
@@ -17929,7 +17929,7 @@ class of extends vg {
17929
17929
  * Create a new NetworkedStreams instance
17930
17930
  */
17931
17931
  static create(e, i) {
17932
- const n = Mc.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
17932
+ const n = Rc.getOrCreate(e.context, i || e.context.connection.connectionId || e.guid);
17933
17933
  return new of(e.context, n);
17934
17934
  }
17935
17935
  startSendingStream(e) {
@@ -18447,7 +18447,7 @@ var qM = Object.defineProperty, ny = (o, t, e, i) => {
18447
18447
  (a = o[s]) && (n = a(t, e, n) || n);
18448
18448
  return n && qM(t, e, n), n;
18449
18449
  };
18450
- class ph extends D {
18450
+ class mh extends D {
18451
18451
  constructor() {
18452
18452
  super(...arguments);
18453
18453
  r(this, "length", 1);
@@ -18460,7 +18460,7 @@ class ph extends D {
18460
18460
  * If marked as a gizmo, it will only be shown when gizmos are enabled in the global parameters.
18461
18461
  */
18462
18462
  onEnable() {
18463
- if (this.isGizmo && !ch) return;
18463
+ if (this.isGizmo && !hh) return;
18464
18464
  this._axes || (this._axes = new Di(this.length)), this._axes.layers.disableAll(), this._axes.layers.set(this.layer), this.gameObject.add(this._axes);
18465
18465
  const e = this._axes.material;
18466
18466
  e && e.depthTest !== void 0 && (e.depthTest = this.depthTest);
@@ -18474,13 +18474,13 @@ class ph extends D {
18474
18474
  }
18475
18475
  ny([
18476
18476
  p()
18477
- ], ph.prototype, "length");
18477
+ ], mh.prototype, "length");
18478
18478
  ny([
18479
18479
  p()
18480
- ], ph.prototype, "depthTest");
18480
+ ], mh.prototype, "depthTest");
18481
18481
  ny([
18482
18482
  p()
18483
- ], ph.prototype, "isGizmo");
18483
+ ], mh.prototype, "isGizmo");
18484
18484
  class uw extends D {
18485
18485
  constructor() {
18486
18486
  super(...arguments);
@@ -18653,7 +18653,7 @@ vi([
18653
18653
  vi([
18654
18654
  p()
18655
18655
  ], Ui.prototype, "filter");
18656
- class mh extends Ui {
18656
+ class gh extends Ui {
18657
18657
  constructor() {
18658
18658
  super(...arguments);
18659
18659
  r(this, "radius", 0.5);
@@ -18682,10 +18682,10 @@ class mh extends Ui {
18682
18682
  vi([
18683
18683
  Wt(),
18684
18684
  p()
18685
- ], mh.prototype, "radius");
18685
+ ], gh.prototype, "radius");
18686
18686
  vi([
18687
18687
  p(w)
18688
- ], mh.prototype, "center");
18688
+ ], gh.prototype, "center");
18689
18689
  const sy = class fw extends Ui {
18690
18690
  constructor() {
18691
18691
  super(...arguments);
@@ -19196,10 +19196,10 @@ const Ob = S("debugdeletable"), Fa = class Fa extends Ks {
19196
19196
  }
19197
19197
  };
19198
19198
  r(Fa, "_instances", []);
19199
- let Kc = Fa;
19199
+ let Zc = Fa;
19200
19200
  class gw extends D {
19201
19201
  update() {
19202
- for (const t of Kc._instances) {
19202
+ for (const t of Zc._instances) {
19203
19203
  const e = this.gameObject;
19204
19204
  if (t.isInBox(e) === !0) {
19205
19205
  const n = C.getComponentInParent(this.gameObject, hf);
@@ -19828,7 +19828,7 @@ const Ru = class Ru {
19828
19828
  r(this, "_requireUpdateGroundPlane", !0);
19829
19829
  r(this, "_didDragOnGroundPlaneLastFrame", !1);
19830
19830
  this._camera = t;
19831
- const e = new Nc(Ru.geometry), i = e.material;
19831
+ const e = new $c(Ru.geometry), i = e.material;
19832
19832
  i.color = new re(0.4, 0.4, 0.4), e.layers.set(2), e.name = "line", e.scale.y = 1, this._groundLine = e;
19833
19833
  const n = new Lu(0.5, 22, 22), s = new Me({ color: i.color }), a = new G(n, s);
19834
19834
  a.visible = !1, a.layers.set(2), this._groundMarker = a;
@@ -19982,7 +19982,7 @@ var Mb;
19982
19982
  }
19983
19983
  o.onDetermineModelMimetype = e;
19984
19984
  })(Mb || (Mb = {}));
19985
- const Rc = S("debugfileformat");
19985
+ const Tc = S("debugfileformat");
19986
19986
  function oR(o) {
19987
19987
  switch ((o.split(".").pop() || o).toUpperCase()) {
19988
19988
  case "GLTF":
@@ -20012,7 +20012,7 @@ async function rR(o, t) {
20012
20012
  const a = o, l = new URL(a, globalThis.location.href);
20013
20013
  let c = null;
20014
20014
  const h = l.searchParams.get("filetype");
20015
- switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()), Rc && console.warn(`[Needle Engine] Try to use file extension to determine type: '${c}'`), c) {
20015
+ switch (h && (c = h.toUpperCase()), c != null && c.length || (c = (s = l.pathname.split(".").pop()) == null ? void 0 : s.toUpperCase()), Tc && console.warn(`[Needle Engine] Try to use file extension to determine type: '${c}'`), c) {
20016
20016
  case "GLTF":
20017
20017
  return "model/gltf+json";
20018
20018
  case "VRM":
@@ -20044,7 +20044,7 @@ async function rR(o, t) {
20044
20044
  }).catch((a) => null);
20045
20045
  if (n != null && n.ok) {
20046
20046
  const a = await n.arrayBuffer(), l = aR(i, a, n);
20047
- return Rc && console.log("[Needle Engine] Determined file type from header: " + l), l;
20047
+ return Tc && console.log("[Needle Engine] Determined file type from header: " + l), l;
20048
20048
  }
20049
20049
  return "unknown";
20050
20050
  }
@@ -20052,7 +20052,7 @@ function aR(o, t, e) {
20052
20052
  if (t.byteLength < 4)
20053
20053
  return "unknown";
20054
20054
  const i = new Uint8Array(t);
20055
- if (Rc && console.warn(`[Needle Engine] Trying to determine file type from binary data
20055
+ if (Tc && console.warn(`[Needle Engine] Trying to determine file type from binary data
20056
20056
  `, '"' + new TextDecoder().decode(t) + `"
20057
20057
  `, i), i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && (i[4] == 10 || i[4] === 2))
20058
20058
  return console.debug("GLTF detected"), "model/gltf+json";
@@ -20106,9 +20106,9 @@ function aR(o, t, e) {
20106
20106
  bytes: i
20107
20107
  });
20108
20108
  if (s)
20109
- return Rc && console.debug(`Mimetype callback returned: ${s}`), s;
20109
+ return Tc && console.debug(`Mimetype callback returned: ${s}`), s;
20110
20110
  }
20111
- if (z() || Rc) {
20111
+ if (z() || Tc) {
20112
20112
  const n = new TextDecoder().decode(t.slice(0, Math.min(t.byteLength, 32)));
20113
20113
  console.warn(`Could not determine file type.
20114
20114
 
@@ -20347,7 +20347,7 @@ class Ko extends D {
20347
20347
  break;
20348
20348
  }
20349
20349
  }
20350
- Xc.assignAnimationsFromFile(s, {
20350
+ Qc.assignAnimationsFromFile(s, {
20351
20351
  createAnimationComponent: (f) => sn(f, si)
20352
20352
  });
20353
20353
  const h = new cR({
@@ -20657,7 +20657,7 @@ class mR {
20657
20657
  }
20658
20658
  typeof window < "u" && window.addEventListener("unhandledrejection", (o) => {
20659
20659
  });
20660
- const bs = bt, td = "$___Export_Components", gR = "NEEDLE_components";
20660
+ const bs = bt, id = "$___Export_Components", gR = "NEEDLE_components";
20661
20661
  var _0;
20662
20662
  _0 = Sa;
20663
20663
  class yR {
@@ -20711,12 +20711,12 @@ class xw {
20711
20711
  serializeUserData(t, e) {
20712
20712
  var n;
20713
20713
  const i = (n = t.userData) == null ? void 0 : n.components;
20714
- return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[td] = i, !0);
20714
+ return !i || i.length <= 0 ? !1 : (delete t.userData.components, t[id] = i, !0);
20715
20715
  }
20716
20716
  afterSerializeUserData(t, e) {
20717
- if (t.type === "Scene" && bs && console.log("DONE", JSON.stringify(e)), t[td] === void 0) return;
20718
- const i = t[td];
20719
- delete t[td], i !== null && (t.userData.components = i);
20717
+ if (t.type === "Scene" && bs && console.log("DONE", JSON.stringify(e)), t[id] === void 0) return;
20718
+ const i = t[id];
20719
+ delete t[id], i !== null && (t.userData.components = i);
20720
20720
  }
20721
20721
  writeNode(t, e) {
20722
20722
  const i = this.writer.json.nodes.length;
@@ -20903,7 +20903,7 @@ fe.registerCallback(me.ContextCreated, (o) => {
20903
20903
  class Wm extends D {
20904
20904
  constructor() {
20905
20905
  super(...arguments);
20906
- r(this, "ambientMode", Cc.Skybox);
20906
+ r(this, "ambientMode", Pc.Skybox);
20907
20907
  r(this, "ambientLight");
20908
20908
  r(this, "ambientTrilight");
20909
20909
  r(this, "ambientIntensity", 1);
@@ -20940,13 +20940,13 @@ class Wm extends D {
20940
20940
  return 2.2 * $.lerp(0, 1.33, i);
20941
20941
  }
20942
20942
  onEnable() {
20943
- if (ka && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == Cc.Flat) {
20943
+ if (ka && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == Pc.Flat) {
20944
20944
  if (this.ambientLight && !this._ambientLightObj) {
20945
20945
  const e = this.calculateIntensityFactor(this.ambientLight);
20946
20946
  this._ambientLightObj = new ES(this.ambientLight, this.ambientIntensity * e), ka && console.log("Created ambient light", this.sourceId, this._ambientLightObj, this.ambientIntensity, e);
20947
20947
  }
20948
20948
  this._ambientLightObj && this.gameObject.add(this._ambientLightObj);
20949
- } else if (this.ambientMode === Cc.Trilight) {
20949
+ } else if (this.ambientMode === Pc.Trilight) {
20950
20950
  if (this.ambientTrilight) {
20951
20951
  const e = this.ambientTrilight[0], i = this.ambientTrilight[this.ambientTrilight.length - 1], n = this.calculateIntensityFactor(i);
20952
20952
  this._hemisphereLightObj = new AS(i, e, this.ambientIntensity * n), this.gameObject.add(this._hemisphereLightObj), ka && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, n);
@@ -21367,7 +21367,7 @@ function Cw(o) {
21367
21367
  }
21368
21368
  const kR = S("debugextensions");
21369
21369
  let du;
21370
- const MR = import("./three-examples-GggCDHv0.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (du = o.GLTFAnimationPointerExtension, du)).catch((o) => {
21370
+ const MR = import("./three-examples-B50TT3Iu.js").then((o) => o.GLTFLoaderAnimationPointer).then(async (o) => (du = o.GLTFAnimationPointerExtension, du)).catch((o) => {
21371
21371
  console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", o);
21372
21372
  }), Gr = new Array();
21373
21373
  function u2(o) {
@@ -21597,7 +21597,7 @@ const di = S("debuginstancing"), za = class za {
21597
21597
  autoUpdateInstanceMatrix(t) {
21598
21598
  const e = t.matrixWorld.multiplyMatrices.bind(t.matrixWorld), i = t.matrixWorld.clone(), n = (s, a) => {
21599
21599
  const l = e(s, a);
21600
- return (t[qc] || i.equals(l) === !1) && (i.copy(l), t[qc] = !0), l;
21600
+ return (t[Xc] || i.equals(l) === !1) && (i.copy(l), t[Xc] = !0), l;
21601
21601
  };
21602
21602
  t.matrixWorld.multiplyMatrices = n;
21603
21603
  }
@@ -21610,7 +21610,7 @@ r(za, "instance", new za()), /** This is the initial instance count when creatin
21610
21610
  * @returns The initial instance count
21611
21611
  * */
21612
21612
  r(za, "getStartInstanceCount", (t) => 4);
21613
- let Zc = za;
21613
+ let Jc = za;
21614
21614
  const Ua = class Ua {
21615
21615
  constructor(t, e) {
21616
21616
  /** The object that is being instanced */
@@ -21720,14 +21720,14 @@ class Rw {
21720
21720
  r(this, "_needUpdateBounds", !1);
21721
21721
  r(this, "_debugMaterial", null);
21722
21722
  r(this, "onBeforeRender", () => {
21723
- this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[hc] === !0 && (di === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
21723
+ this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[dc] === !0 && (di === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
21724
21724
  });
21725
21725
  r(this, "onAfterRender", () => {
21726
21726
  this._batchedMesh.layers.disableAll();
21727
21727
  });
21728
21728
  this.name = t, this.geometry = e, this.material = i, this._context = s, this._maxInstanceCount = Math.max(2, n), di && (this._debugMaterial = Ib());
21729
21729
  const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [e], n);
21730
- this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new n_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[hc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof k0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), di && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
21730
+ this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new n_(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh[dc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof k0 && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), s.pre_render_callbacks.push(this.onBeforeRender), s.post_render_callbacks.push(this.onAfterRender), di && console.log(`Instanced renderer created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${t}"`);
21731
21731
  }
21732
21732
  /** The three instanced mesh
21733
21733
  * @link https://threejs.org/docs/#api/en/objects/InstancedMesh
@@ -21847,7 +21847,7 @@ Max vertex count ${this._maxVertexCount} -> ${s}
21847
21847
  Max index count ${this._maxIndexCount} -> ${a}`);
21848
21848
  this._maxVertexCount = s, this._maxIndexCount = a;
21849
21849
  const l = new n_(i, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material);
21850
- l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[hc] = this._batchedMesh[hc], l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorldNeedsUpdate = this._batchedMesh.matrixWorldNeedsUpdate, l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorld.copy(this._batchedMesh.matrixWorld), l.matrix.copy(this._batchedMesh.matrix), this._batchedMesh.dispose(), this._batchedMesh.removeFromParent(), this._geometryIds.clear(), this._batchedMesh = l, this._maxInstanceCount = i;
21850
+ l.layers = this._batchedMesh.layers, l.castShadow = this._batchedMesh.castShadow, l.receiveShadow = this._batchedMesh.receiveShadow, l.visible = this._batchedMesh.visible, l[dc] = this._batchedMesh[dc], l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorldNeedsUpdate = this._batchedMesh.matrixWorldNeedsUpdate, l.matrixAutoUpdate = this._batchedMesh.matrixAutoUpdate, l.matrixWorld.copy(this._batchedMesh.matrixWorld), l.matrix.copy(this._batchedMesh.matrix), this._batchedMesh.dispose(), this._batchedMesh.removeFromParent(), this._geometryIds.clear(), this._batchedMesh = l, this._maxInstanceCount = i;
21851
21851
  const c = [...this._handles];
21852
21852
  this._handles = [];
21853
21853
  for (const u of c)
@@ -22029,7 +22029,7 @@ var AR = Object.defineProperty, no = (o, t, e, i) => {
22029
22029
  (a = o[s]) && (n = a(t, e, n) || n);
22030
22030
  return n && AR(t, e, n), n;
22031
22031
  };
22032
- const fc = S("debugrenderer"), Lb = S("debugskinnedmesh"), Db = S("noinstancing"), IR = S("wireframe");
22032
+ const pc = S("debugrenderer"), Lb = S("debugskinnedmesh"), Db = S("noinstancing"), IR = S("wireframe");
22033
22033
  class LR {
22034
22034
  constructor() {
22035
22035
  r(this, "path", null);
@@ -22099,7 +22099,7 @@ class DR {
22099
22099
  return this._changed;
22100
22100
  }
22101
22101
  set changed(t) {
22102
- t === !0 && fc && console.warn("SharedMaterials have changed: " + this._renderer.name, this), this._changed = t;
22102
+ t === !0 && pc && console.warn("SharedMaterials have changed: " + this._renderer.name, this), this._changed = t;
22103
22103
  }
22104
22104
  is(t) {
22105
22105
  return this._renderer === t;
@@ -22268,7 +22268,7 @@ const hs = class Rd extends D {
22268
22268
  this.enabled || this.setVisibility(!1);
22269
22269
  }
22270
22270
  awake() {
22271
- if (this._firstFrame = this.context.time.frame, fc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && fc && this.probeAnchor.add(new Di(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
22271
+ if (this._firstFrame = this.context.time.frame, pc && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && pc && this.probeAnchor.add(new Di(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
22272
22272
  for (const e of this.gameObject.children)
22273
22273
  this.context.addBeforeRenderListener(e, this.onBeforeRenderThree), e.layers.mask = this.gameObject.layers.mask;
22274
22274
  if (this.renderOrder !== void 0) {
@@ -22316,7 +22316,7 @@ const hs = class Rd extends D {
22316
22316
  }
22317
22317
  }
22318
22318
  } else
22319
- fc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
22319
+ pc && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
22320
22320
  }
22321
22321
  }
22322
22322
  /**
@@ -22341,7 +22341,7 @@ const hs = class Rd extends D {
22341
22341
  if (this._isInstancingEnabled === e) return e && (this._handles === void 0 || this._handles != null && this._handles.length > 0);
22342
22342
  if (this._isInstancingEnabled = e, e) {
22343
22343
  if (this.enableInstancing === void 0 && (this.enableInstancing = !0), this._handles === void 0) {
22344
- if (this._handles = Zc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
22344
+ if (this._handles = Jc.instance.setup(this, this.gameObject, this.context, null, { rend: this, foundMeshes: 0, useMatrixWorldAutoUpdate: this.useInstanceMatrixWorldAutoUpdate() }), this._handles)
22345
22345
  return C.markAsInstancedRendered(this.gameObject, !0), !0;
22346
22346
  } else if (this._handles !== null) {
22347
22347
  for (const i of this._handles)
@@ -22388,7 +22388,7 @@ const hs = class Rd extends D {
22388
22388
  onBeforeRender() {
22389
22389
  var e, i, n;
22390
22390
  if (this.gameObject) {
22391
- if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()), fc == this.name && this.gameObject instanceof G) {
22391
+ if (this._probeAnchorLastFrame !== this.probeAnchor && ((e = this._reflectionProbe) == null || e.onUnset(this), this.updateReflectionProbe()), pc == this.name && this.gameObject instanceof G) {
22392
22392
  this.gameObject.geometry.computeBoundingSphere();
22393
22393
  const s = q(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
22394
22394
  H.DrawWireSphere(s, this.gameObject.geometry.boundingSphere.radius, 56831);
@@ -22398,8 +22398,8 @@ const hs = class Rd extends D {
22398
22398
  this.applySettings(s);
22399
22399
  else
22400
22400
  this.applySettings(this.gameObject);
22401
- if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[qc] === !0) {
22402
- this.gameObject[qc] = !1;
22401
+ if (this.sharedMaterials.changed && (this.sharedMaterials.changed = !1, this.applyLightmapping()), (n = this._handles) != null && n.length && this.gameObject[Xc] === !0) {
22402
+ this.gameObject[Xc] = !1;
22403
22403
  for (let a = this._handles.length - 1; a >= 0; a--)
22404
22404
  this._handles[a].updateInstanceMatrix();
22405
22405
  this.gameObject.matrixWorldNeedsUpdate = !1;
@@ -22525,7 +22525,7 @@ var jR = Object.defineProperty, Ew = (o, t, e, i) => {
22525
22525
  (a = o[s]) && (n = a(t, e, n) || n);
22526
22526
  return n && jR(t, e, n), n;
22527
22527
  };
22528
- const id = S("debuggltfexport");
22528
+ const nd = S("debuggltfexport");
22529
22529
  class Aw extends Ks {
22530
22530
  constructor() {
22531
22531
  super(...arguments);
@@ -22540,7 +22540,7 @@ const uy = class Ma extends D {
22540
22540
  r(this, "ext");
22541
22541
  }
22542
22542
  async exportNow(e, i) {
22543
- id && console.log("Exporting objects as glTF", this.objects), e || (e = "scene"), (!this.objects || this.objects.length <= 0) && (this.objects = [this.context.scene]);
22543
+ nd && console.log("Exporting objects as glTF", this.objects), e || (e = "scene"), (!this.objects || this.objects.length <= 0) && (this.objects = [this.context.scene]);
22544
22544
  const n = {
22545
22545
  binary: this.binary,
22546
22546
  pivot: Ma.calculateCenter(this.objects),
@@ -22567,7 +22567,7 @@ const uy = class Ma extends D {
22567
22567
  animations: (i == null ? void 0 : i.animations) || Ma.collectAnimations(e),
22568
22568
  ...i
22569
22569
  }, a = new Array(), l = new L();
22570
- i != null && i.pivot && l.position.sub(i.pivot), id && console.log("EXPORT", e), e.forEach((d) => {
22570
+ i != null && i.pivot && l.position.sub(i.pivot), nd && console.log("EXPORT", e), e.forEach((d) => {
22571
22571
  d && $m(d) && (l.children.push(d), d.matrixAutoUpdate = !1, d.matrix.copy(d.matrixWorld), C.getComponentsInChildren(d, ln).forEach((u) => {
22572
22572
  C.isActiveInHierarchy(u.gameObject) && u.setInstancingEnabled(!1);
22573
22573
  }), d.traverse((u) => {
@@ -22581,7 +22581,7 @@ const uy = class Ma extends D {
22581
22581
  });
22582
22582
  const c = new Dv(l);
22583
22583
  return i != null && i.needleComponents && (this.ext = new xw()), this.ext && (this.ext.registerExport(n), this.ext.context = c), new Promise((d, u) => {
22584
- id && console.log("Starting glTF export.");
22584
+ nd && console.log("Starting glTF export.");
22585
22585
  try {
22586
22586
  n == null || n.parse(
22587
22587
  l,
@@ -22598,7 +22598,7 @@ const uy = class Ma extends D {
22598
22598
  } catch (f) {
22599
22599
  console.error(f), u(f);
22600
22600
  } finally {
22601
- a.forEach((f) => f()), id && console.log("Finished glTF export.");
22601
+ a.forEach((f) => f()), nd && console.log("Finished glTF export.");
22602
22602
  }
22603
22603
  });
22604
22604
  function h() {
@@ -22716,7 +22716,7 @@ class de {
22716
22716
  static start(t, e) {
22717
22717
  typeof e == "string" && (e = { parentScope: e });
22718
22718
  const i = new zR(t, e);
22719
- pc.set(t, i);
22719
+ mc.set(t, i);
22720
22720
  }
22721
22721
  /** Report progress for a formerly started scope.
22722
22722
  * @param scope The scope to report progress for.
@@ -22738,7 +22738,7 @@ class de {
22738
22738
  * Progress.report("export-usdz", { currentStep: 1, totalSteps: 10 });
22739
22739
  */
22740
22740
  static report(t, e) {
22741
- const i = pc.get(t);
22741
+ const i = mc.get(t);
22742
22742
  if (!i) {
22743
22743
  console.warn("Reporting progress for non-existing scope", t);
22744
22744
  return;
@@ -22749,11 +22749,11 @@ class de {
22749
22749
  * @remarks Will warn if any child scope is still running (progress < 1).
22750
22750
  */
22751
22751
  static end(t) {
22752
- const e = pc.get(t);
22753
- e && (e.end(), pc.delete(t));
22752
+ const e = mc.get(t);
22753
+ e && (e.end(), mc.delete(t));
22754
22754
  }
22755
22755
  }
22756
- const pc = /* @__PURE__ */ new Map();
22756
+ const mc = /* @__PURE__ */ new Map();
22757
22757
  class zR {
22758
22758
  constructor(t, e) {
22759
22759
  r(this, "scopeLabel");
@@ -22769,7 +22769,7 @@ class zR {
22769
22769
  r(this, "totalProgress", 0);
22770
22770
  r(this, "selfReports", 0);
22771
22771
  r(this, "totalReports", 0);
22772
- this.parentScope = e != null && e.parentScope ? pc.get(e.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + t, this.showLogs = (e == null ? void 0 : e.logTimings) ?? !!BR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
22772
+ this.parentScope = e != null && e.parentScope ? mc.get(e.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + t, this.showLogs = (e == null ? void 0 : e.logTimings) ?? !!BR, this.showLogs && console.time(this.scopeLabel), this.onProgress = e == null ? void 0 : e.onProgress;
22773
22773
  }
22774
22774
  report(t, e = !1) {
22775
22775
  if (t) {
@@ -22816,7 +22816,7 @@ function UR(o, t, e) {
22816
22816
  b.set(_, v);
22817
22817
  }
22818
22818
  return b.get(_);
22819
- }, s = o.colorNode ? nd(o.colorNode) : [], a = o.colorNode ? `color3f inputs:diffuseColor.connect = ${Ue}/${t}/${n(s.values().next().value)}.outputs:out>` : "", l = o.roughnessNode ? nd(o.roughnessNode) : [], c = o.roughnessNode ? `float inputs:roughness.connect = ${Ue}/${t}/${n(l.values().next().value)}.outputs:out>` : "", h = o.normalNode ? nd(o.normalNode) : [], d = o.normalNode ? `float3 inputs:normal.connect = ${Ue}/${t}/${n(h.values().next().value)}.outputs:out>` : "", u = o.metalnessNode ? nd(o.metalnessNode) : [], f = o.metalnessNode ? `float inputs:metallic.connect = ${Ue}/${t}/${n(u.values().next().value)}.outputs:out>` : "", m = /* @__PURE__ */ new Set([...s, ...l, ...h, ...u]), g = WR(m, t, e, n);
22819
+ }, s = o.colorNode ? sd(o.colorNode) : [], a = o.colorNode ? `color3f inputs:diffuseColor.connect = ${Ue}/${t}/${n(s.values().next().value)}.outputs:out>` : "", l = o.roughnessNode ? sd(o.roughnessNode) : [], c = o.roughnessNode ? `float inputs:roughness.connect = ${Ue}/${t}/${n(l.values().next().value)}.outputs:out>` : "", h = o.normalNode ? sd(o.normalNode) : [], d = o.normalNode ? `float3 inputs:normal.connect = ${Ue}/${t}/${n(h.values().next().value)}.outputs:out>` : "", u = o.metalnessNode ? sd(o.metalnessNode) : [], f = o.metalnessNode ? `float inputs:metallic.connect = ${Ue}/${t}/${n(u.values().next().value)}.outputs:out>` : "", m = /* @__PURE__ */ new Set([...s, ...l, ...h, ...u]), g = WR(m, t, e, n);
22820
22820
  return console.debug(g), `
22821
22821
 
22822
22822
  def Material "${t}" ${o.name ? `(
@@ -22839,7 +22839,7 @@ function UR(o, t, e) {
22839
22839
 
22840
22840
  }`;
22841
22841
  }
22842
- function nd(o) {
22842
+ function sd(o) {
22843
22843
  const t = (y) => {
22844
22844
  if (y.nodeType) return y.nodeType;
22845
22845
  switch (y.type) {
@@ -23434,13 +23434,13 @@ function Fw(o, t, e, i) {
23434
23434
  const l = { position: o.position, quaternion: o.quaternion, scale: o.scale };
23435
23435
  if (o.position.x === 0 && o.position.y === 0 && o.position.z === 0 && (l.position = null), o.quaternion.x === 0 && o.quaternion.y === 0 && o.quaternion.z === 0 && o.quaternion.w === 1 && (l.quaternion = null), o.scale.x === 1 && o.scale.y === 1 && o.scale.z === 1 && (l.scale = null), (o instanceof G || o instanceof Us) && (s = o.geometry, a = o.material), i && !i(o) && (s = void 0, a = void 0), (o instanceof G || o instanceof Us) && a && typeof a == "object" && (a instanceof yt || a instanceof Me || // material instanceof MeshPhysicalNodeMaterial ||
23436
23436
  a.isMeshPhysicalNodeMaterial || a instanceof Pe && a.type === "MeshLineMaterial")) {
23437
- const h = rd(o), d = o instanceof Us ? o : null;
23437
+ const h = ad(o), d = o instanceof Us ? o : null;
23438
23438
  n = new ni(o.uuid, h, l, s, a, void 0, d, o.animations);
23439
23439
  } else if (o instanceof ve || o instanceof Iu) {
23440
- const h = rd(o);
23440
+ const h = ad(o);
23441
23441
  n = new ni(o.uuid, h, l, void 0, void 0, o);
23442
23442
  } else {
23443
- const h = rd(o);
23443
+ const h = ad(o);
23444
23444
  n = new ni(o.uuid, h, l, void 0, void 0, void 0, void 0, o.animations);
23445
23445
  }
23446
23446
  if (n) {
@@ -23448,7 +23448,7 @@ function Fw(o, t, e, i) {
23448
23448
  for (const h of e.extensions)
23449
23449
  h.onExportObject && h.onExportObject.call(h, o, n, e);
23450
23450
  } else {
23451
- const h = rd(o), d = new ni(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
23451
+ const h = ad(o), d = new ni(o.uuid, h, { position: o.position, quaternion: o.quaternion, scale: o.scale });
23452
23452
  t && t.add(d), t = d;
23453
23453
  }
23454
23454
  for (const h of o.children)
@@ -23556,7 +23556,7 @@ async function Td(o, t, e = null) {
23556
23556
  }
23557
23557
  }
23558
23558
  }
23559
- let sd = null, qt = null, Ap, ba, od;
23559
+ let od = null, qt = null, Ap, ba, rd;
23560
23560
  async function ZR(o, t = 1 / 0, e = null, i = void 0) {
23561
23561
  Ap || (Ap = new ls(2, 2, 1, 1)), ba || (ba = new is({
23562
23562
  uniforms: {
@@ -23591,11 +23591,11 @@ async function ZR(o, t = 1 / 0, e = null, i = void 0) {
23591
23591
  }`
23592
23592
  }));
23593
23593
  const n = ba.uniforms;
23594
- n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), ba.defines.IS_SRGB = o.colorSpace == qs, ba.needsUpdate = !0, od || (od = new G(Ap, ba), od.frustumCulled = !1);
23594
+ n.blitTexture.value = o, n.flipY.value = !1, n.scale.value = new ye(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), ba.defines.IS_SRGB = o.colorSpace == qs, ba.needsUpdate = !0, rd || (rd = new G(Ap, ba), rd.frustumCulled = !1);
23595
23595
  const s = new ve(), a = new ji();
23596
- a.add(od), e || (e = sd = new Zr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
23596
+ a.add(rd), e || (e = od = new Zr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
23597
23597
  const l = Math.min(o.image.width, t), c = Math.min(o.image.height, t);
23598
- qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ns(l, c, { format: Bu, type: iC, minFilter: Bd, magFilter: Bd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s), sd && (sd.dispose(), sd = null);
23598
+ qt && (qt.width !== l || qt.height !== c) && (qt.dispose(), qt = null), qt || (qt = new ns(l, c, { format: Bu, type: iC, minFilter: Bd, magFilter: Bd })), e.setRenderTarget(qt), e.setSize(l, c), e.clear(), e.render(a, s), od && (od.dispose(), od = null);
23599
23599
  const h = new Uint8ClampedArray(qt.width * qt.height * 4);
23600
23600
  e.readRenderTargetPixels(qt, 0, 0, qt.width, qt.height, h);
23601
23601
  const d = new ImageData(h, qt.width, qt.height, void 0), u = await createImageBitmap(d, { premultiplyAlpha: "none" });
@@ -23643,7 +23643,7 @@ function nT(o, t) {
23643
23643
  let e = iT();
23644
23644
  return e += o, L0(e);
23645
23645
  }
23646
- function rd(o) {
23646
+ function ad(o) {
23647
23647
  return o.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + o.id;
23648
23648
  }
23649
23649
  function Bb(o) {
@@ -23695,9 +23695,9 @@ function he(o) {
23695
23695
  }
23696
23696
  function Fb(o) {
23697
23697
  const t = o.elements;
23698
- return `( ${ad(t, 0)}, ${ad(t, 4)}, ${ad(t, 8)}, ${ad(t, 12)} )`;
23698
+ return `( ${ld(t, 0)}, ${ld(t, 4)}, ${ld(t, 8)}, ${ld(t, 12)} )`;
23699
23699
  }
23700
- function ad(o, t) {
23700
+ function ld(o, t) {
23701
23701
  return `(${he(o[t + 0])}, ${he(o[t + 1])}, ${he(o[t + 2])}, ${he(o[t + 3])})`;
23702
23702
  }
23703
23703
  function sT(o, t = [], e = !0) {
@@ -24226,7 +24226,7 @@ class Mr {
24226
24226
  }
24227
24227
  }
24228
24228
  r(Mr, "global_id", 0);
24229
- const Fc = class Fc {
24229
+ const zc = class zc {
24230
24230
  constructor(t, e) {
24231
24231
  r(this, "id");
24232
24232
  r(this, "tokenId");
@@ -24253,18 +24253,18 @@ const Fc = class Fc {
24253
24253
  // extra info written as comment at the beginning of the action
24254
24254
  r(this, "comment");
24255
24255
  r(this, "animationName");
24256
- t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + Fc.global_id++;
24256
+ t && (this.affectedObjects = t), e ? this.id = e : this.id = "Action", this.id += "_" + zc.global_id++;
24257
24257
  }
24258
24258
  clone() {
24259
- const t = new Fc(), e = t.id;
24259
+ const t = new zc(), e = t.id;
24260
24260
  return Object.assign(t, this), t.id = e, t;
24261
24261
  }
24262
24262
  writeTo(t, e) {
24263
24263
  e.beginBlock(`def Preliminary_Action "${this.id}"`), this.comment && e.appendLine(`# ${this.comment}`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = Xm(this.affectedObjects, t)), e.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? e.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : e.appendLine(`double duration = ${this.duration} `)), this.easeType && e.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && e.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && e.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && e.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && e.appendLine(`token style = "${this.style}"`), this.type && e.appendLine(`token type = "${this.type}"`), this.front && e.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && e.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && e.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && e.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && e.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && e.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = Xm(this.xFormTarget, t)), e.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && e.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && e.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && e.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && e.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), e.closeBlock();
24264
24264
  }
24265
24265
  };
24266
- r(Fc, "global_id", 0);
24267
- let Ji = Fc;
24266
+ r(zc, "global_id", 0);
24267
+ let Ji = zc;
24268
24268
  class en {
24269
24269
  constructor(t, e, i) {
24270
24270
  r(this, "x", 0);
@@ -25059,7 +25059,7 @@ var fT = Object.defineProperty, He = (o, t, e, i) => {
25059
25059
  return n && fT(t, e, n), n;
25060
25060
  };
25061
25061
  const Wb = S("debugusdzbehaviours");
25062
- function gh(o) {
25062
+ function yh(o) {
25063
25063
  o && (o.getComponentInParent(ul) || (z() && console.debug('Raycaster on "' + o.name + '" was automatically added, because no raycaster was found in the parent hierarchy.'), o.addComponent(an)));
25064
25064
  }
25065
25065
  class Cl extends D {
@@ -25075,7 +25075,7 @@ class Cl extends D {
25075
25075
  r(this, "targetScale", new w());
25076
25076
  }
25077
25077
  start() {
25078
- gh(this.gameObject);
25078
+ yh(this.gameObject);
25079
25079
  }
25080
25080
  onPointerClick(e) {
25081
25081
  e.use(), this.coroutine && this.stopCoroutine(this.coroutine), this.relativeMotion ? this.coroutine = this.startCoroutine(this.moveRelative()) : this.coroutine = this.startCoroutine(this.moveToTarget());
@@ -25084,12 +25084,12 @@ class Cl extends D {
25084
25084
  if (!this.target || !this.object) return;
25085
25085
  const e = te(this.object).clone(), i = te(this.target).clone(), n = Oe(this.object).clone(), s = Oe(this.target).clone(), a = Ke(this.object).clone(), l = Ke(this.target).clone(), c = e.distanceTo(i), h = n.angleTo(s), d = a.distanceTo(l);
25086
25086
  if (c < 0.01 && h < 0.01 && d < 0.01) {
25087
- vt(this.object, i), Mn(this.object, s), Vc(this.object, l), this.coroutine = null;
25087
+ vt(this.object, i), Mn(this.object, s), Hc(this.object, l), this.coroutine = null;
25088
25088
  return;
25089
25089
  }
25090
25090
  let u = 0, f = 0;
25091
25091
  for (; u < 1; )
25092
- u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot), Vc(this.object, this.targetScale), yield;
25092
+ u += this.context.time.deltaTime / this.duration, u > 1 && (u = 1), f = u < 0.5 ? 4 * u * u * u : 1 - Math.pow(-2 * u + 2, 3) / 2, this.targetPos.lerpVectors(e, i, f), this.targetRot.slerpQuaternions(n, s, f), this.targetScale.lerpVectors(a, l, f), vt(this.object, this.targetPos), Mn(this.object, this.targetRot), Hc(this.object, this.targetScale), yield;
25093
25093
  this.coroutine = null;
25094
25094
  }
25095
25095
  *moveRelative() {
@@ -25138,7 +25138,7 @@ const pf = ($e = class extends D {
25138
25138
  }
25139
25139
  start() {
25140
25140
  var e;
25141
- this._objectsWithThisMaterial = this.objectsWithThisMaterial, gh(this.gameObject), z() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
25141
+ this._objectsWithThisMaterial = this.objectsWithThisMaterial, yh(this.gameObject), z() && this._objectsWithThisMaterial.length <= 0 && console.warn('ChangeMaterialOnClick: No objects found with material "' + ((e = this.materialToSwitch) == null ? void 0 : e.name) + '"');
25142
25142
  }
25143
25143
  onPointerEnter(e) {
25144
25144
  this.context.input.setCursor("pointer");
@@ -25229,7 +25229,7 @@ He([
25229
25229
  ], pf.prototype, "fadeDuration");
25230
25230
  let Vw = pf;
25231
25231
  var _e;
25232
- const yh = (_e = class extends D {
25232
+ const _h = (_e = class extends D {
25233
25233
  constructor() {
25234
25234
  super(...arguments);
25235
25235
  r(this, "target");
@@ -25244,7 +25244,7 @@ const yh = (_e = class extends D {
25244
25244
  r(this, "targetStateBeforeCreatingDocument", !1);
25245
25245
  }
25246
25246
  start() {
25247
- gh(this.gameObject);
25247
+ yh(this.gameObject);
25248
25248
  }
25249
25249
  onPointerClick(e) {
25250
25250
  e.use(), !this.toggleOnClick && this.hideSelf && (this.gameObject.visible = !1), this.target && (this.target.visible = this.toggleOnClick ? !this.target.visible : this.targetState);
@@ -25300,7 +25300,7 @@ const yh = (_e = class extends D {
25300
25300
  ));
25301
25301
  }
25302
25302
  const l = new Array();
25303
- this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), Jc.add(l, e);
25303
+ this.targetStateBeforeCreatingDocument || l.push(this.targetModel), this.stateBeforeCreatingDocument || l.push(n), this.toggleModel && l.push(this.toggleModel), eh.add(l, e);
25304
25304
  }
25305
25305
  }
25306
25306
  afterSerialize(e, i) {
@@ -25309,17 +25309,17 @@ const yh = (_e = class extends D {
25309
25309
  }, r(_e, "clonedToggleIndex", 0), r(_e, "wasVisible", Symbol("usdz_SetActiveOnClick_wasVisible")), r(_e, "toggleClone", Symbol("clone for toggling")), r(_e, "reverseToggleClone", Symbol("clone for reverse toggling")), _e);
25310
25310
  He([
25311
25311
  p(L)
25312
- ], yh.prototype, "target");
25312
+ ], _h.prototype, "target");
25313
25313
  He([
25314
25314
  p()
25315
- ], yh.prototype, "toggleOnClick");
25315
+ ], _h.prototype, "toggleOnClick");
25316
25316
  He([
25317
25317
  p()
25318
- ], yh.prototype, "targetState");
25318
+ ], _h.prototype, "targetState");
25319
25319
  He([
25320
25320
  p()
25321
- ], yh.prototype, "hideSelf");
25322
- let Hw = yh;
25321
+ ], _h.prototype, "hideSelf");
25322
+ let Hw = _h;
25323
25323
  const wn = class wn extends D {
25324
25324
  constructor() {
25325
25325
  super(...arguments);
@@ -25347,8 +25347,8 @@ const wn = class wn extends D {
25347
25347
  }
25348
25348
  };
25349
25349
  r(wn, "_fadeBehaviour"), r(wn, "_fadeObjects", []);
25350
- let Jc = wn;
25351
- class _h extends D {
25350
+ let eh = wn;
25351
+ class bh extends D {
25352
25352
  constructor() {
25353
25353
  super(...arguments);
25354
25354
  r(this, "target");
@@ -25372,13 +25372,13 @@ class _h extends D {
25372
25372
  }
25373
25373
  He([
25374
25374
  p()
25375
- ], _h.prototype, "target");
25375
+ ], bh.prototype, "target");
25376
25376
  He([
25377
25377
  p()
25378
- ], _h.prototype, "duration");
25378
+ ], bh.prototype, "duration");
25379
25379
  He([
25380
25380
  p()
25381
- ], _h.prototype, "motionType");
25381
+ ], bh.prototype, "motionType");
25382
25382
  class qr extends D {
25383
25383
  constructor() {
25384
25384
  super(...arguments);
@@ -25389,7 +25389,7 @@ class qr extends D {
25389
25389
  r(this, "trigger", "tap");
25390
25390
  }
25391
25391
  start() {
25392
- gh(this.gameObject);
25392
+ yh(this.gameObject);
25393
25393
  }
25394
25394
  ensureAudioSource() {
25395
25395
  if (!this.target) {
@@ -25471,7 +25471,7 @@ const my = (Dt = class extends D {
25471
25471
  return ((e = this.animator) == null ? void 0 : e.gameObject) || ((i = this.animation) == null ? void 0 : i.gameObject);
25472
25472
  }
25473
25473
  start() {
25474
- gh(this.gameObject);
25474
+ yh(this.gameObject);
25475
25475
  }
25476
25476
  onPointerClick(e) {
25477
25477
  var i;
@@ -25666,7 +25666,7 @@ He([
25666
25666
  p()
25667
25667
  ], my.prototype, "stateName");
25668
25668
  let pu = my;
25669
- class bh extends D {
25669
+ class vh extends D {
25670
25670
  constructor() {
25671
25671
  super(...arguments);
25672
25672
  r(this, "target");
@@ -25678,7 +25678,7 @@ class bh extends D {
25678
25678
  }
25679
25679
  He([
25680
25680
  p(L)
25681
- ], bh.prototype, "target");
25681
+ ], vh.prototype, "target");
25682
25682
  class mf extends D {
25683
25683
  constructor() {
25684
25684
  super(...arguments);
@@ -25686,9 +25686,9 @@ class mf extends D {
25686
25686
  }
25687
25687
  }
25688
25688
  He([
25689
- p(bh)
25689
+ p(vh)
25690
25690
  ], mf.prototype, "target");
25691
- class gf extends bh {
25691
+ class gf extends vh {
25692
25692
  constructor() {
25693
25693
  super(...arguments);
25694
25694
  r(this, "type", 1);
@@ -25843,11 +25843,11 @@ var pT = Object.defineProperty, mT = Object.getOwnPropertyDescriptor, St = (o, t
25843
25843
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
25844
25844
  return i && n && pT(t, e, n), n;
25845
25845
  };
25846
- const mu = S("debugspriterenderer"), gT = S("wireframe"), zc = class zc {
25846
+ const mu = S("debugspriterenderer"), gT = S("wireframe"), Uc = class Uc {
25847
25847
  static getOrCreateGeometry(t) {
25848
25848
  if (t.__cached_geometry) return t.__cached_geometry;
25849
- if (t.guid && zc.cache[t.guid])
25850
- return mu && console.log("Take cached geometry for sprite", t.guid), zc.cache[t.guid];
25849
+ if (t.guid && Uc.cache[t.guid])
25850
+ return mu && console.log("Take cached geometry for sprite", t.guid), Uc.cache[t.guid];
25851
25851
  const e = new Jn();
25852
25852
  t.__cached_geometry = e;
25853
25853
  const i = new Float32Array(t.triangles.length * 3), n = new Float32Array(t.triangles.length * 2);
@@ -25860,8 +25860,8 @@ const mu = S("debugspriterenderer"), gT = S("wireframe"), zc = class zc {
25860
25860
  return e.setAttribute("position", new _t(i, 3)), e.setAttribute("uv", new _t(n, 2)), t.guid && (this.cache[t.guid] = e), mu && console.log("Built sprite geometry", t, e), e;
25861
25861
  }
25862
25862
  };
25863
- r(zc, "cache", {});
25864
- let pl = zc;
25863
+ r(Uc, "cache", {});
25864
+ let pl = Uc;
25865
25865
  class yT {
25866
25866
  constructor() {
25867
25867
  r(this, "x");
@@ -25924,7 +25924,7 @@ St([
25924
25924
  yl()
25925
25925
  ], Zo.prototype, "vertices", 2);
25926
25926
  const jp = Symbol("spriteOwner");
25927
- class eh {
25927
+ class th {
25928
25928
  constructor() {
25929
25929
  r(this, "sprites");
25930
25930
  this.sprites = [];
@@ -25932,7 +25932,7 @@ class eh {
25932
25932
  }
25933
25933
  St([
25934
25934
  p(Zo)
25935
- ], eh.prototype, "sprites", 2);
25935
+ ], th.prototype, "sprites", 2);
25936
25936
  const gy = class Ym {
25937
25937
  // we don't assign anything here because it's used by the serialization system.
25938
25938
  // there's currently a limitation in the serializer when e.g. spriteSheet is already assigned it will not be overriden by the serializer
@@ -25943,7 +25943,7 @@ const gy = class Ym {
25943
25943
  }
25944
25944
  static create() {
25945
25945
  const t = new Ym();
25946
- return t.spriteSheet = new eh(), t;
25946
+ return t.spriteSheet = new th(), t;
25947
25947
  }
25948
25948
  clone() {
25949
25949
  const t = new Ym();
@@ -25953,7 +25953,7 @@ const gy = class Ym {
25953
25953
  * Set the sprite to be rendered in the currently assigned sprite sheet at the currently active index {@link index}
25954
25954
  */
25955
25955
  set sprite(t) {
25956
- t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new eh(), this.spriteSheet.sprites = [t], this.index = 0));
25956
+ t && (this.spriteSheet ? ((this.index === null || this.index === void 0) && (this.index = 0), this.spriteSheet.sprites[this.index] = t) : (this.spriteSheet = new th(), this.spriteSheet.sprites = [t], this.index = 0));
25957
25957
  }
25958
25958
  /** The currently active sprite */
25959
25959
  get sprite() {
@@ -25976,12 +25976,12 @@ const gy = class Ym {
25976
25976
  }
25977
25977
  };
25978
25978
  St([
25979
- p(eh)
25979
+ p(th)
25980
25980
  ], gy.prototype, "spriteSheet", 2);
25981
25981
  St([
25982
25982
  p()
25983
25983
  ], gy.prototype, "index", 2);
25984
- let Tc = gy;
25984
+ let Ec = gy;
25985
25985
  class Ni extends D {
25986
25986
  constructor() {
25987
25987
  super(...arguments);
@@ -26021,7 +26021,7 @@ class Ni extends D {
26021
26021
  */
26022
26022
  addSprite(e, i = !1) {
26023
26023
  var s, a;
26024
- if (this._spriteSheet || (this._spriteSheet = Tc.create()), !this._spriteSheet.spriteSheet) return -1;
26024
+ if (this._spriteSheet || (this._spriteSheet = Ec.create()), !this._spriteSheet.spriteSheet) return -1;
26025
26025
  (s = this._spriteSheet.spriteSheet) == null || s.sprites.push(e);
26026
26026
  const n = ((a = this._spriteSheet.spriteSheet) == null ? void 0 : a.sprites.length) - 1;
26027
26027
  return i && (this.spriteIndex = n), n;
@@ -26037,7 +26037,7 @@ class Ni extends D {
26037
26037
  if (typeof e == "number") {
26038
26038
  const i = Math.floor(e);
26039
26039
  this.spriteIndex = i;
26040
- } else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet = Tc.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
26040
+ } else e instanceof Zo ? (this._spriteSheet || (this._spriteSheet = Ec.create()), this._spriteSheet.sprite != e && (this._spriteSheet.sprite = e), this.updateSprite()) : e != this._spriteSheet && (this._spriteSheet = e, this.updateSprite());
26041
26041
  }
26042
26042
  /**
26043
26043
  * Set the index of the sprite to be rendered in the currently assigned sprite sheet
@@ -26058,7 +26058,7 @@ class Ni extends D {
26058
26058
  }
26059
26059
  /** @internal */
26060
26060
  awake() {
26061
- this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = Tc.create(), mu && console.log("Awake", this.name, this, this.sprite);
26061
+ this._currentSprite = void 0, this._spriteSheet ? this._spriteSheet = this._spriteSheet.clone() : this._spriteSheet = Ec.create(), mu && console.log("Awake", this.name, this, this.sprite);
26062
26062
  }
26063
26063
  /** @internal */
26064
26064
  start() {
@@ -26119,7 +26119,7 @@ St([
26119
26119
  p()
26120
26120
  ], Ni.prototype, "toneMapped", 2);
26121
26121
  St([
26122
- p(Tc)
26122
+ p(Ec)
26123
26123
  ], Ni.prototype, "sprite", 1);
26124
26124
  const Vb = S("debugwebxr"), _T = new oe().makeRotationY(Math.PI), ko = class ko extends D {
26125
26125
  constructor() {
@@ -26587,16 +26587,16 @@ function wT(o, t) {
26587
26587
  let e = t !== o;
26588
26588
  return !e && o && t && (Array.isArray(o) && Array.isArray(t) || typeof o == "object" && typeof t == "object") && (e = !0), e;
26589
26589
  }
26590
- const Ec = Symbol("AutoSyncHandler");
26590
+ const Ac = Symbol("AutoSyncHandler");
26591
26591
  function xT(o) {
26592
- if (o[Ec])
26593
- return o[Ec];
26592
+ if (o[Ac])
26593
+ return o[Ac];
26594
26594
  const t = yy.getOrCreateSyncer(o);
26595
- return t == null || t.init(o), o[Ec] = t, t;
26595
+ return t == null || t.init(o), o[Ac] = t, t;
26596
26596
  }
26597
26597
  function ST(o) {
26598
- const t = o[Ec];
26599
- t && (yy.removeSyncer(t), t.destroy(), delete o[Ec]);
26598
+ const t = o[Ac];
26599
+ t && (yy.removeSyncer(t), t.destroy(), delete o[Ac]);
26600
26600
  }
26601
26601
  const Xw = function(o = null) {
26602
26602
  return function(t, e) {
@@ -27808,7 +27808,7 @@ Ct([
27808
27808
  p(le)
27809
27809
  ], pt.prototype, "defaultAvatar");
27810
27810
  let vy = pt;
27811
- const ld = S("debugusdzbehaviours");
27811
+ const cd = S("debugusdzbehaviours");
27812
27812
  class Kw {
27813
27813
  constructor() {
27814
27814
  r(this, "behaviours", []);
@@ -27846,7 +27846,7 @@ class Kw {
27846
27846
  l instanceof Promise && e.push(l);
27847
27847
  }
27848
27848
  }, !1);
27849
- }), ld && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
27849
+ }), cd && console.log("onBeforeBuildDocument: all components", this.behaviourComponents), Promise.all(e);
27850
27850
  }
27851
27851
  onExportObject(t, e, i) {
27852
27852
  var n;
@@ -27857,7 +27857,7 @@ class Kw {
27857
27857
  for (const u of this.behaviourComponents)
27858
27858
  typeof u.afterCreateDocument == "function" && u.afterCreateDocument(this, t);
27859
27859
  this.behaviourComponentsCopy = this.behaviourComponents.slice(), this.behaviourComponents.length = 0, this.audioClipsCopy = this.audioClips.slice(), this.audioClips.length = 0;
27860
- const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = ld;
27860
+ const e = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = cd;
27861
27861
  let l = `graph LR
27862
27862
  `, c = "";
27863
27863
  function h(u) {
@@ -27953,7 +27953,7 @@ axisFormat %s
27953
27953
  n.add(f.uuid);
27954
27954
  else
27955
27955
  n.add(u.uuid);
27956
- ld && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
27956
+ cd && console.log("All Behavior trigger sources and action targets", e, i, n), this.targetUuids = new Set(n);
27957
27957
  }
27958
27958
  onAfterHierarchy(t, e) {
27959
27959
  var i;
@@ -27965,7 +27965,7 @@ axisFormat %s
27965
27965
  }
27966
27966
  }
27967
27967
  async onAfterSerialize(t) {
27968
- ld && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
27968
+ cd && console.log("onAfterSerialize behaviours", this.behaviourComponentsCopy);
27969
27969
  for (const e of this.behaviourComponentsCopy)
27970
27970
  typeof e.afterSerialize == "function" && (e.afterSerialize.constructor.name === "AsyncFunction" ? await e.afterSerialize(this, t) : e.afterSerialize(this, t));
27971
27971
  for (const { clipUrl: e, filesKey: i } of this.audioClipsCopy) {
@@ -27999,7 +27999,7 @@ class Zw {
27999
27999
  var f;
28000
28000
  c.beginBlock('def RealityKitComponent "Collider"', "{", !0), c.appendLine("uint group = 1"), c.appendLine('uniform token info:id = "RealityKit.Collider"'), c.appendLine("uint mask = 4294967295");
28001
28001
  const u = l.isTrigger ? "Trigger" : "Default";
28002
- if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof mh) {
28002
+ if (c.appendLine(`token type = "${u}"`), c.beginBlock('def RealityKitStruct "Shape"', "{", !0), l instanceof gh) {
28003
28003
  const m = l;
28004
28004
  c.appendLine('token shapeType = "Sphere"'), c.appendLine(`float radius = ${m.radius}`);
28005
28005
  } else if (l instanceof oy) {
@@ -28098,7 +28098,7 @@ class En extends D {
28098
28098
  const l = this._parentComponent.shadowComponent;
28099
28099
  l && (l == null || l.add(e), s = !0);
28100
28100
  }
28101
- this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), ch && e.add(new Di(0.5)), this.onAfterAddedToScene(), s && n1(), IT && console.warn("Added shadow component", this.shadowComponent);
28101
+ this.shadowComponent = e, i && i.shadowComponent && this.shadowComponent && i.shadowComponent.add(this.shadowComponent), hh && e.add(new Di(0.5)), this.onAfterAddedToScene(), s && n1(), IT && console.warn("Added shadow component", this.shadowComponent);
28102
28102
  }
28103
28103
  setShadowComponentOwner(e) {
28104
28104
  if (e && (e[Ri] === void 0 || e[Ri] === this) && (e[Ri] = this, e.children))
@@ -28127,7 +28127,7 @@ class vf extends En {
28127
28127
  super.awake();
28128
28128
  }
28129
28129
  }
28130
- var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor, vh = (o, t, e, i) => {
28130
+ var LT = Object.defineProperty, DT = Object.getOwnPropertyDescriptor, wh = (o, t, e, i) => {
28131
28131
  for (var n = i > 1 ? void 0 : i ? DT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
28132
28132
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
28133
28133
  return i && n && LT(t, e, n), n;
@@ -28147,7 +28147,7 @@ class BT {
28147
28147
  r(this, "height");
28148
28148
  }
28149
28149
  }
28150
- const bn = new w(), Kl = new oe(), cd = new W(), Ol = class Jw extends En {
28150
+ const bn = new w(), Kl = new oe(), hd = new W(), Ol = class Jw extends En {
28151
28151
  constructor() {
28152
28152
  super(...arguments);
28153
28153
  r(this, "_anchoredPosition");
@@ -28260,7 +28260,7 @@ const bn = new w(), Kl = new oe(), cd = new W(), Ol = class Jw extends En {
28260
28260
  this._lastUpdateFrame = this.context.time.frameCount;
28261
28261
  const i = this.shadowComponent;
28262
28262
  if (!i) return;
28263
- this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Up && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (cd.copy(this.gameObject.quaternion), cd.x *= -1, cd.z *= -1, Kl.makeRotationFromQuaternion(cd), i.matrix.premultiply(Kl)), bn.set(0, 0, 0), this.applyAnchoring(bn), (s = this.canvas) != null && s.screenspace ? bn.z += 0.1 : bn.z += 0.01, Kl.identity(), Kl.setPosition(bn.x, bn.y, bn.z), i.matrix.premultiply(Kl), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
28263
+ this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, Jw) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Up && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (i.rotation.y = Math.PI) : (i.matrix.identity(), i.matrixAutoUpdate = !1, bn.set(0, 0, 0), this.applyPivot(bn), i.matrix.setPosition(bn.x, bn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (hd.copy(this.gameObject.quaternion), hd.x *= -1, hd.z *= -1, Kl.makeRotationFromQuaternion(hd), i.matrix.premultiply(Kl)), bn.set(0, 0, 0), this.applyAnchoring(bn), (s = this.canvas) != null && s.screenspace ? bn.z += 0.1 : bn.z += 0.01, Kl.identity(), Kl.setPosition(bn.x, bn.y, bn.z), i.matrix.premultiply(Kl), i.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
28264
28264
  const n = !0;
28265
28265
  for (const a of Vg(this.gameObject, En, n, 1)) {
28266
28266
  if (a === this || !a.activeAndEnabled) continue;
@@ -28332,19 +28332,19 @@ const bn = new w(), Kl = new oe(), cd = new W(), Ol = class Jw extends En {
28332
28332
  return this._createdTextBlocks.push(i), i;
28333
28333
  }
28334
28334
  };
28335
- vh([
28335
+ wh([
28336
28336
  p(ae)
28337
28337
  ], Ol.prototype, "anchoredPosition", 1);
28338
- vh([
28338
+ wh([
28339
28339
  p(ae)
28340
28340
  ], Ol.prototype, "sizeDelta", 2);
28341
- vh([
28341
+ wh([
28342
28342
  p(ae)
28343
28343
  ], Ol.prototype, "pivot", 2);
28344
- vh([
28344
+ wh([
28345
28345
  p(ae)
28346
28346
  ], Ol.prototype, "anchorMin", 2);
28347
- vh([
28347
+ wh([
28348
28348
  p(ae)
28349
28349
  ], Ol.prototype, "anchorMax", 2);
28350
28350
  let as = Ol;
@@ -28353,7 +28353,7 @@ var FT = Object.defineProperty, ex = (o, t, e, i) => {
28353
28353
  (a = o[s]) && (n = a(t, e, n) || n);
28354
28354
  return n && FT(t, e, n), n;
28355
28355
  };
28356
- class wh extends D {
28356
+ class xh extends D {
28357
28357
  constructor() {
28358
28358
  super(...arguments);
28359
28359
  r(this, "effectColor");
@@ -28362,16 +28362,16 @@ class wh extends D {
28362
28362
  }
28363
28363
  ex([
28364
28364
  p(ce)
28365
- ], wh.prototype, "effectColor");
28365
+ ], xh.prototype, "effectColor");
28366
28366
  ex([
28367
28367
  p(ae)
28368
- ], wh.prototype, "effectDistance");
28368
+ ], xh.prototype, "effectDistance");
28369
28369
  var zT = Object.defineProperty, UT = Object.getOwnPropertyDescriptor, tx = (o, t, e, i) => {
28370
28370
  for (var n = i > 1 ? void 0 : i ? UT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
28371
28371
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
28372
28372
  return i && n && zT(t, e, n), n;
28373
28373
  };
28374
- const hd = {
28374
+ const dd = {
28375
28375
  backgroundColor: new re(1, 1, 1),
28376
28376
  backgroundOpacity: 1,
28377
28377
  borderColor: new re(1, 1, 1),
@@ -28406,7 +28406,7 @@ const wy = (Kn = class extends En {
28406
28406
  return this._alphaFactor;
28407
28407
  }
28408
28408
  onColorChanged() {
28409
- this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), hd.backgroundColor = this.sRGBColor, hd.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(hd, this._alphaFactor), this.uiObject.set(hd), this.markDirty());
28409
+ this.uiObject && (this.sRGBColor.copy(this._color), this.sRGBColor.convertLinearToSRGB(), dd.backgroundColor = this.sRGBColor, dd.backgroundOpacity = this._color.alpha * this._alphaFactor, this.applyEffects(dd, this._alphaFactor), this.uiObject.set(dd), this.markDirty());
28410
28410
  }
28411
28411
  // used via animations
28412
28412
  get m_Color() {
@@ -28462,7 +28462,7 @@ const wy = (Kn = class extends En {
28462
28462
  }
28463
28463
  applyEffects(e, i = 1) {
28464
28464
  var s;
28465
- const n = (s = this.gameObject) == null ? void 0 : s.getComponent(wh);
28465
+ const n = (s = this.gameObject) == null ? void 0 : s.getComponent(xh);
28466
28466
  n && (n.effectDistance && (e.borderWidth = Math.max(Math.abs(n.effectDistance.x), Math.abs(n.effectDistance.y))), n.effectColor && (e.borderColor = n.effectColor, e.borderOpacity = n.effectColor.alpha * i));
28467
28467
  }
28468
28468
  async setTexture(e) {
@@ -29036,11 +29036,11 @@ class $i extends D {
29036
29036
  }
29037
29037
  onEnable() {
29038
29038
  Gb && console.log(this.name, this), this._rectTransform = this.gameObject.getComponent(as);
29039
- const e = this.gameObject.getComponentInParent(th);
29039
+ const e = this.gameObject.getComponentInParent(ih);
29040
29040
  e && e.registerLayoutGroup(this), this._needsUpdate = !0;
29041
29041
  }
29042
29042
  onDisable() {
29043
- const e = this.gameObject.getComponentInParent(th);
29043
+ const e = this.gameObject.getComponentInParent(ih);
29044
29044
  e && e.unregisterLayoutGroup(this);
29045
29045
  }
29046
29046
  // for animation:
@@ -29402,7 +29402,7 @@ ds([
29402
29402
  ds([
29403
29403
  p()
29404
29404
  ], hn.prototype, "planeDistance", 2);
29405
- let th = hn;
29405
+ let ih = hn;
29406
29406
  var QT = Object.defineProperty, YT = Object.getOwnPropertyDescriptor, Sy = (o, t, e, i) => {
29407
29407
  for (var n = i > 1 ? void 0 : i ? YT(t, e) : t, s = o.length - 1, a; s >= 0; s--)
29408
29408
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
@@ -29456,7 +29456,7 @@ class cx {
29456
29456
  // TODO would probably be better to export each object instead of the entire Canvas
29457
29457
  // so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
29458
29458
  onExportObject(t, e, i) {
29459
- const n = C.getComponent(t, th);
29459
+ const n = C.getComponent(t, ih);
29460
29460
  if (n && n.enabled && n.renderMode === ax.WorldSpace) {
29461
29461
  const s = new xy(), a = C.getComponent(t, as), l = C.getComponent(t, Qr), c = new Array();
29462
29462
  if (a) {
@@ -29536,7 +29536,7 @@ class cx {
29536
29536
  t.index.needsUpdate = !0;
29537
29537
  }
29538
29538
  }
29539
- const mc = S("debugusdz");
29539
+ const gc = S("debugusdz");
29540
29540
  function KT(o, t) {
29541
29541
  var l;
29542
29542
  const e = [], i = C.getComponentsInChildren(o, $t), n = C.getComponentsInChildren(o, si), s = new Array(), a = new Array();
@@ -29553,10 +29553,10 @@ function KT(o, t) {
29553
29553
  else
29554
29554
  for (const c of i) {
29555
29555
  if (!c || !c.runtimeAnimatorController || !c.enabled) continue;
29556
- mc && console.log(c);
29556
+ gc && console.log(c);
29557
29557
  const h = [];
29558
29558
  for (const d of c.runtimeAnimatorController.enumerateActions()) {
29559
- mc && console.log(d);
29559
+ gc && console.log(d);
29560
29560
  const u = d.getClip();
29561
29561
  h.includes(u) || h.push(u);
29562
29562
  }
@@ -29572,13 +29572,13 @@ function KT(o, t) {
29572
29572
  }
29573
29573
  else
29574
29574
  for (const c of n) {
29575
- mc && console.log(c);
29575
+ gc && console.log(c);
29576
29576
  const h = [];
29577
29577
  for (const d of c.animations)
29578
29578
  h.includes(d) || h.push(d);
29579
29579
  e.push({ root: c.gameObject, clips: h });
29580
29580
  }
29581
- mc && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
29581
+ gc && (e == null ? void 0 : e.length) > 0 && console.log("USDZ Animation Clips without behaviours", e);
29582
29582
  for (const c of e)
29583
29583
  for (const h of c.clips)
29584
29584
  t.registerAnimation(c.root, h);
@@ -29586,7 +29586,7 @@ function KT(o, t) {
29586
29586
  }
29587
29587
  function ZT(o, t) {
29588
29588
  const e = C.getComponentsInChildren(o, Rn), i = C.getComponentsInChildren(o, qr), n = new Array(), s = new Array();
29589
- mc && console.log({ audioSources: e, playAudioOnClicks: i });
29589
+ gc && console.log({ audioSources: e, playAudioOnClicks: i });
29590
29590
  for (const a of i) {
29591
29591
  if (!a.target) continue;
29592
29592
  const l = e.indexOf(a.target);
@@ -29696,12 +29696,12 @@ const wi = (Is = class extends D {
29696
29696
  onEnable() {
29697
29697
  var n;
29698
29698
  const e = Q.supportsQuickLookAR(), i = Q.isiOS() || Q.isiPad();
29699
- !this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), Hc.registerExporter(this);
29699
+ !this.button && (xi || e || i) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = qb(this.context, e), this.link.addEventListener("message", this.lastCallback)), xi && Ve("USDZ Exporter enabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.addEventListener("click", this.onClickedOpenInARElement), Gc.registerExporter(this);
29700
29700
  }
29701
29701
  /** @internal */
29702
29702
  onDisable() {
29703
29703
  var e, i, n;
29704
- (e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), Hc.unregisterExporter(this);
29704
+ (e = this.button) == null || e.remove(), (i = this.link) == null || i.removeEventListener("message", this.lastCallback), xi && Ve("USDZ Exporter disabled: " + this.name), (n = document.getElementById("open-in-ar")) == null || n.removeEventListener("click", this.onClickedOpenInARElement), Gc.unregisterExporter(this);
29705
29705
  }
29706
29706
  /**
29707
29707
  * Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
@@ -29780,7 +29780,7 @@ const wi = (Is = class extends D {
29780
29780
  de.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: m })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, de.report("export-usdz", "auto export animations and audio sources");
29781
29781
  const g = new Array();
29782
29782
  this.autoExportAnimations && g.push(...KT(e, h)), f.find((R) => R.extensionName === "Audio") && this.autoExportAudioSources && g.push(...ZT(e)), c.debug = xi, c.pruneUnusedNodes = !tE;
29783
- const y = Zc.instance.objs.map((R) => R.batchedMesh);
29783
+ const y = Jc.instance.objs.map((R) => R.batchedMesh);
29784
29784
  c.keepObject = (R) => {
29785
29785
  let T = !0;
29786
29786
  const U = C.getComponent(R, ln);
@@ -29930,7 +29930,7 @@ var iE = Object.defineProperty, nE = Object.getOwnPropertyDescriptor, Cy = (o, t
29930
29930
  (a = o[s]) && (n = a(t, e, n) || n);
29931
29931
  return n && iE(t, e, n), n;
29932
29932
  };
29933
- class xh extends D {
29933
+ class Sh extends D {
29934
29934
  constructor() {
29935
29935
  super(...arguments);
29936
29936
  r(this, "_fog");
@@ -29968,13 +29968,13 @@ class xh extends D {
29968
29968
  }
29969
29969
  Cy([
29970
29970
  p()
29971
- ], xh.prototype, "near");
29971
+ ], Sh.prototype, "near");
29972
29972
  Cy([
29973
29973
  p()
29974
- ], xh.prototype, "far");
29974
+ ], Sh.prototype, "far");
29975
29975
  Cy([
29976
29976
  p(re)
29977
- ], xh.prototype, "color");
29977
+ ], Sh.prototype, "color");
29978
29978
  var sE = Object.defineProperty, Py = (o, t, e, i) => {
29979
29979
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
29980
29980
  (a = o[s]) && (n = a(t, e, n) || n);
@@ -29990,7 +29990,7 @@ class Rl extends D {
29990
29990
  r(this, "_boxHelper", null);
29991
29991
  }
29992
29992
  onEnable() {
29993
- this.isGizmo && !ch || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new oC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = Bg(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), Re.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
29993
+ this.isGizmo && !hh || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new oC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = Bg(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), Re.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
29994
29994
  }
29995
29995
  onDisable() {
29996
29996
  this._gizmoObject && this.gameObject.remove(this._gizmoObject);
@@ -30015,7 +30015,7 @@ var oE = Object.defineProperty, Oy = (o, t, e, i) => {
30015
30015
  (a = o[s]) && (n = a(t, e, n) || n);
30016
30016
  return n && oE(t, e, n), n;
30017
30017
  };
30018
- class Sh extends D {
30018
+ class Ch extends D {
30019
30019
  constructor() {
30020
30020
  super(...arguments);
30021
30021
  r(this, "isGizmo", !1);
@@ -30028,7 +30028,7 @@ class Sh extends D {
30028
30028
  }
30029
30029
  /** @internal */
30030
30030
  onEnable() {
30031
- if (this.isGizmo && !ch) return;
30031
+ if (this.isGizmo && !hh) return;
30032
30032
  const e = this.size, i = this.divisions;
30033
30033
  this.gridHelper || (this.gridHelper = new mg(e, i, this.color0 ?? new re(0.4, 0.4, 0.4), this.color1 ?? new re(0.6, 0.6, 0.6)), this.offset !== void 0 && (this.gridHelper.position.y += this.offset)), this.gridHelper && this.gameObject.add(this.gridHelper);
30034
30034
  }
@@ -30039,13 +30039,13 @@ class Sh extends D {
30039
30039
  }
30040
30040
  Oy([
30041
30041
  p()
30042
- ], Sh.prototype, "isGizmo");
30042
+ ], Ch.prototype, "isGizmo");
30043
30043
  Oy([
30044
30044
  p(re)
30045
- ], Sh.prototype, "color0");
30045
+ ], Ch.prototype, "color0");
30046
30046
  Oy([
30047
30047
  p(re)
30048
- ], Sh.prototype, "color1");
30048
+ ], Ch.prototype, "color1");
30049
30049
  var rE = Object.defineProperty, ky = (o, t, e, i) => {
30050
30050
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
30051
30051
  (a = o[s]) && (n = a(t, e, n) || n);
@@ -30376,28 +30376,28 @@ us([
30376
30376
  p()
30377
30377
  ], Wi.prototype, "shadowResolution", 1);
30378
30378
  new w(0, 0, 0);
30379
- var cE = Object.defineProperty, Ch = (o, t, e, i) => {
30379
+ var cE = Object.defineProperty, Ph = (o, t, e, i) => {
30380
30380
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
30381
30381
  (a = o[s]) && (n = a(t, e, n) || n);
30382
30382
  return n && cE(t, e, n), n;
30383
30383
  };
30384
30384
  const Vp = S("debuglods"), hE = S("nolods");
30385
- class Ph {
30385
+ class Oh {
30386
30386
  constructor() {
30387
30387
  r(this, "screenRelativeTransitionHeight");
30388
30388
  r(this, "distance");
30389
30389
  r(this, "renderers");
30390
30390
  }
30391
30391
  }
30392
- Ch([
30392
+ Ph([
30393
30393
  p()
30394
- ], Ph.prototype, "screenRelativeTransitionHeight");
30395
- Ch([
30394
+ ], Oh.prototype, "screenRelativeTransitionHeight");
30395
+ Ph([
30396
30396
  p()
30397
- ], Ph.prototype, "distance");
30398
- Ch([
30397
+ ], Oh.prototype, "distance");
30398
+ Ph([
30399
30399
  p(ln)
30400
- ], Ph.prototype, "renderers");
30400
+ ], Oh.prototype, "renderers");
30401
30401
  class dE {
30402
30402
  constructor(t) {
30403
30403
  r(this, "model");
@@ -30482,18 +30482,18 @@ class Cf extends D {
30482
30482
  }
30483
30483
  }
30484
30484
  }
30485
- Ch([
30485
+ Ph([
30486
30486
  p(w)
30487
30487
  ], Cf.prototype, "localReferencePoint");
30488
- Ch([
30489
- p(Ph)
30488
+ Ph([
30489
+ p(Oh)
30490
30490
  ], Cf.prototype, "lodModels");
30491
30491
  var uE = Object.defineProperty, fE = (o, t, e, i) => {
30492
30492
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
30493
30493
  (a = o[s]) && (n = a(t, e, n) || n);
30494
30494
  return n && uE(t, e, n), n;
30495
30495
  };
30496
- const dd = S("debugnestedgltf");
30496
+ const ud = S("debugnestedgltf");
30497
30497
  class Ry extends D {
30498
30498
  constructor() {
30499
30499
  super(...arguments);
@@ -30518,16 +30518,16 @@ class Ry extends D {
30518
30518
  async start() {
30519
30519
  var i, n, s, a, l;
30520
30520
  if (this._isLoadingOrDoneLoading) return;
30521
- dd && console.log(this, this.guid);
30521
+ ud && console.log(this, this.guid);
30522
30522
  const e = this.gameObject.parent;
30523
30523
  if (e) {
30524
30524
  this._isLoadingOrDoneLoading = !0;
30525
30525
  const c = new cs();
30526
30526
  c.idProvider = new zt(this.hash(this.guid)), c.parent = this.loadAssetInParent !== !1 ? e : this.gameObject, this.gameObject.updateMatrix();
30527
30527
  const h = this.gameObject.matrix;
30528
- dd && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
30528
+ ud && console.log("Load nested:", ((i = this.filePath) == null ? void 0 : i.url) ?? this.filePath, this.gameObject.position);
30529
30529
  const d = await ((s = (n = this.filePath) == null ? void 0 : n.instantiate) == null ? void 0 : s.call(this.filePath, c));
30530
- dd && console.log("Nested loaded:", ((a = this.filePath) == null ? void 0 : a.url) ?? this.filePath, d), d && this.loadAssetInParent !== !1 && (d.matrixAutoUpdate = !1, d.matrix.identity(), d.applyMatrix4(h), d.matrixAutoUpdate = !0, d.layers.disableAll(), d.layers.set(this.layer), this.dispatchEvent(new CustomEvent("loaded", { detail: { instance: d, assetReference: this.filePath } }))), dd && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
30530
+ ud && console.log("Nested loaded:", ((a = this.filePath) == null ? void 0 : a.url) ?? this.filePath, d), d && this.loadAssetInParent !== !1 && (d.matrixAutoUpdate = !1, d.matrix.identity(), d.applyMatrix4(h), d.matrixAutoUpdate = !0, d.layers.disableAll(), d.layers.set(this.layer), this.dispatchEvent(new CustomEvent("loaded", { detail: { instance: d, assetReference: this.filePath } }))), ud && console.log("Nested loading done:", ((l = this.filePath) == null ? void 0 : l.url) ?? this.filePath, d);
30531
30531
  }
30532
30532
  }
30533
30533
  /** @internal */
@@ -30702,7 +30702,7 @@ tr([
30702
30702
  tr([
30703
30703
  p()
30704
30704
  ], Ii.prototype, "weightedMode");
30705
- const ux = class gc {
30705
+ const ux = class yc {
30706
30706
  constructor() {
30707
30707
  r(this, "keys", []);
30708
30708
  }
@@ -30710,14 +30710,14 @@ const ux = class gc {
30710
30710
  * Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
30711
30711
  */
30712
30712
  static linearFromTo(t, e, i) {
30713
- const n = new gc(), s = new Ii();
30713
+ const n = new yc(), s = new Ii();
30714
30714
  s.time = 0, s.value = t;
30715
30715
  const a = new Ii();
30716
30716
  return a.time = i, a.value = e, n.keys.push(s, a), n;
30717
30717
  }
30718
30718
  /** Creates an animation curve with just one keyframe */
30719
30719
  static constant(t) {
30720
- const e = new gc(), i = new Ii();
30720
+ const e = new yc(), i = new Ii();
30721
30721
  return i.time = 0, i.value = t, e.keys.push(i), e;
30722
30722
  }
30723
30723
  /**
@@ -30725,7 +30725,7 @@ const ux = class gc {
30725
30725
  */
30726
30726
  clone() {
30727
30727
  var e;
30728
- const t = new gc();
30728
+ const t = new yc();
30729
30729
  return t.keys = ((e = this.keys) == null ? void 0 : e.map((i) => {
30730
30730
  const n = new Ii();
30731
30731
  return n.time = i.time, n.value = i.value, n.inTangent = i.inTangent, n.inWeight = i.inWeight, n.outTangent = i.outTangent, n.outWeight = i.outWeight, n.weightedMode = i.weightedMode, n;
@@ -30751,7 +30751,7 @@ const ux = class gc {
30751
30751
  if (e + 1 < this.keys.length) {
30752
30752
  const s = this.keys[e + 1];
30753
30753
  if (s.time < t) continue;
30754
- return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : gc.interpolateValue(t, i, s);
30754
+ return !isFinite(i.outTangent) || !isFinite(s.inTangent) ? i.value : yc.interpolateValue(t, i, s);
30755
30755
  } else
30756
30756
  return i.value;
30757
30757
  }
@@ -30771,7 +30771,7 @@ var _E = Object.defineProperty, P = (o, t, e, i) => {
30771
30771
  (a = o[s]) && (n = a(t, e, n) || n);
30772
30772
  return n && _E(t, e, n), n;
30773
30773
  };
30774
- const ud = S("debugparticles");
30774
+ const fd = S("debugparticles");
30775
30775
  var ks = /* @__PURE__ */ ((o) => (o[o.Billboard = 0] = "Billboard", o[o.Stretch = 1] = "Stretch", o[o.HorizontalBillboard = 2] = "HorizontalBillboard", o[o.VerticalBillboard = 3] = "VerticalBillboard", o[o.Mesh = 4] = "Mesh", o))(ks || {});
30776
30776
  class El {
30777
30777
  constructor() {
@@ -30812,8 +30812,8 @@ P([
30812
30812
  P([
30813
30813
  p()
30814
30814
  ], El.prototype, "colorKeys");
30815
- var ih = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(ih || {}), eg = /* @__PURE__ */ ((o) => (o[o.Sphere = 0] = "Sphere", o[o.SphereShell = 1] = "SphereShell", o[o.Hemisphere = 2] = "Hemisphere", o[o.HemisphereShell = 3] = "HemisphereShell", o[o.Cone = 4] = "Cone", o[o.Box = 5] = "Box", o[o.Mesh = 6] = "Mesh", o[o.ConeShell = 7] = "ConeShell", o[o.ConeVolume = 8] = "ConeVolume", o[o.ConeVolumeShell = 9] = "ConeVolumeShell", o[o.Circle = 10] = "Circle", o[o.CircleEdge = 11] = "CircleEdge", o[o.SingleSidedEdge = 12] = "SingleSidedEdge", o[o.MeshRenderer = 13] = "MeshRenderer", o[o.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", o[o.BoxShell = 15] = "BoxShell", o[o.BoxEdge = 16] = "BoxEdge", o[o.Donut = 17] = "Donut", o[o.Rectangle = 18] = "Rectangle", o[o.Sprite = 19] = "Sprite", o[o.SpriteRenderer = 20] = "SpriteRenderer", o))(eg || {});
30816
- const ro = class yc {
30815
+ var nh = /* @__PURE__ */ ((o) => (o[o.Local = 0] = "Local", o[o.World = 1] = "World", o[o.Custom = 2] = "Custom", o))(nh || {}), eg = /* @__PURE__ */ ((o) => (o[o.Sphere = 0] = "Sphere", o[o.SphereShell = 1] = "SphereShell", o[o.Hemisphere = 2] = "Hemisphere", o[o.HemisphereShell = 3] = "HemisphereShell", o[o.Cone = 4] = "Cone", o[o.Box = 5] = "Box", o[o.Mesh = 6] = "Mesh", o[o.ConeShell = 7] = "ConeShell", o[o.ConeVolume = 8] = "ConeVolume", o[o.ConeVolumeShell = 9] = "ConeVolumeShell", o[o.Circle = 10] = "Circle", o[o.CircleEdge = 11] = "CircleEdge", o[o.SingleSidedEdge = 12] = "SingleSidedEdge", o[o.MeshRenderer = 13] = "MeshRenderer", o[o.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", o[o.BoxShell = 15] = "BoxShell", o[o.BoxEdge = 16] = "BoxEdge", o[o.Donut = 17] = "Donut", o[o.Rectangle = 18] = "Rectangle", o[o.Sprite = 19] = "Sprite", o[o.SpriteRenderer = 20] = "SpriteRenderer", o))(eg || {});
30816
+ const ro = class _c {
30817
30817
  constructor() {
30818
30818
  r(this, "mode", "Constant");
30819
30819
  r(this, "constant");
@@ -30825,15 +30825,15 @@ const ro = class yc {
30825
30825
  r(this, "curveMultiplier");
30826
30826
  }
30827
30827
  static constant(t) {
30828
- const e = new yc();
30828
+ const e = new _c();
30829
30829
  return e.setConstant(t), e;
30830
30830
  }
30831
30831
  static betweenTwoConstants(t, e) {
30832
- const i = new yc();
30832
+ const i = new _c();
30833
30833
  return i.setMinMaxConstant(t, e), i;
30834
30834
  }
30835
30835
  static curve(t, e = 1) {
30836
- const i = new yc();
30836
+ const i = new _c();
30837
30837
  return i.setCurve(t, e), i;
30838
30838
  }
30839
30839
  setConstant(t) {
@@ -30847,7 +30847,7 @@ const ro = class yc {
30847
30847
  }
30848
30848
  clone() {
30849
30849
  var e, i, n;
30850
- const t = new yc();
30850
+ const t = new _c();
30851
30851
  return t.mode = this.mode, t.constant = this.constant, t.constantMin = this.constantMin, t.constantMax = this.constantMax, t.curve = (e = this.curve) == null ? void 0 : e.clone(), t.curveMin = (i = this.curveMin) == null ? void 0 : i.clone(), t.curveMax = (n = this.curveMax) == null ? void 0 : n.clone(), t.curveMultiplier = this.curveMultiplier, t;
30852
30852
  }
30853
30853
  evaluate(t, e) {
@@ -31253,7 +31253,7 @@ const at = (Pn = class {
31253
31253
  r(this, "_dir", new w());
31254
31254
  r(this, "_loopTime", 0);
31255
31255
  r(this, "_loopDirection", 1);
31256
- ud && console.log(this);
31256
+ fd && console.log(this);
31257
31257
  }
31258
31258
  // Emittershape start
31259
31259
  get type() {
@@ -31288,7 +31288,7 @@ const at = (Pn = class {
31288
31288
  if (i && (n *= this.system.worldScale.x), this.enabled) {
31289
31289
  switch (this.shapeType) {
31290
31290
  case 5:
31291
- ud && H.DrawWireBox(this.position, this.scale, 14540253, 1), this._vector.x = Math.random() * this.scale.x - this.scale.x / 2, this._vector.y = Math.random() * this.scale.y - this.scale.y / 2, this._vector.z = Math.random() * this.scale.z - this.scale.z / 2, this._vector.add(e);
31291
+ fd && H.DrawWireBox(this.position, this.scale, 14540253, 1), this._vector.x = Math.random() * this.scale.x - this.scale.x / 2, this._vector.y = Math.random() * this.scale.y - this.scale.y / 2, this._vector.z = Math.random() * this.scale.z - this.scale.z / 2, this._vector.add(e);
31292
31292
  break;
31293
31293
  case 4:
31294
31294
  this.randomConePoint(this.position, this.angle, n, this.radiusThickness, this.arc, this.arcMode, this._vector);
@@ -31335,7 +31335,7 @@ const at = (Pn = class {
31335
31335
  }
31336
31336
  this.randomizePosition(this._vector, this.randomPositionAmount);
31337
31337
  }
31338
- this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), ud && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
31338
+ this.applyRotation(this._vector), i && (this._vector.applyQuaternion(this.system.worldQuaternion), this._vector.add(this.system.worldPos)), fd && H.DrawSphere(this._vector, 0.03, 16711680, 0.5, !0);
31339
31339
  }
31340
31340
  getDirection(t, e) {
31341
31341
  var i;
@@ -31382,7 +31382,7 @@ const at = (Pn = class {
31382
31382
  this._dir.set(0, 0, 1);
31383
31383
  break;
31384
31384
  }
31385
- return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount), ud && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
31385
+ return this._space === 1 && this._dir.applyQuaternion(this.system.worldQuaternion), this.applyRotation(this._dir), this._dir.normalize(), this.spherizeDirection(this._dir, this.sphericalDirectionAmount), this.randomizeDirection(this._dir, this.randomDirectionAmount), fd && (H.DrawSphere(e, 0.01, 8925952, 0.5, !0), H.DrawDirection(e, this._dir, 8925952, 0.5, !0)), this._dir;
31386
31386
  }
31387
31387
  randomizePosition(t, e) {
31388
31388
  if (e <= 0) return;
@@ -32056,7 +32056,7 @@ P([
32056
32056
  P([
32057
32057
  p()
32058
32058
  ], Pt.prototype, "space");
32059
- const Oh = class px {
32059
+ const kh = class px {
32060
32060
  constructor() {
32061
32061
  r(this, "enabled");
32062
32062
  r(this, "curve");
@@ -32103,17 +32103,17 @@ const Oh = class px {
32103
32103
  };
32104
32104
  P([
32105
32105
  p()
32106
- ], Oh.prototype, "enabled");
32106
+ ], kh.prototype, "enabled");
32107
32107
  P([
32108
32108
  p(K)
32109
- ], Oh.prototype, "curve");
32109
+ ], kh.prototype, "curve");
32110
32110
  P([
32111
32111
  p()
32112
- ], Oh.prototype, "curveMultiplier");
32112
+ ], kh.prototype, "curveMultiplier");
32113
32113
  P([
32114
32114
  p()
32115
- ], Oh.prototype, "mode");
32116
- let mx = Oh;
32115
+ ], kh.prototype, "mode");
32116
+ let mx = kh;
32117
32117
  class Vi {
32118
32118
  constructor() {
32119
32119
  r(this, "enabled");
@@ -32166,7 +32166,7 @@ P([
32166
32166
  P([
32167
32167
  p()
32168
32168
  ], Vi.prototype, "zMultiplier");
32169
- class kh {
32169
+ class Mh {
32170
32170
  constructor() {
32171
32171
  r(this, "enabled");
32172
32172
  r(this, "range");
@@ -32179,13 +32179,13 @@ class kh {
32179
32179
  }
32180
32180
  P([
32181
32181
  p()
32182
- ], kh.prototype, "enabled");
32182
+ ], Mh.prototype, "enabled");
32183
32183
  P([
32184
32184
  p(ae)
32185
- ], kh.prototype, "range");
32185
+ ], Mh.prototype, "range");
32186
32186
  P([
32187
32187
  p(Al)
32188
- ], kh.prototype, "color");
32188
+ ], Mh.prototype, "color");
32189
32189
  new w(1, 1, 1);
32190
32190
  new w(0, 0, 1);
32191
32191
  class gx {
@@ -32333,7 +32333,7 @@ Ge([
32333
32333
  Ge([
32334
32334
  p()
32335
32335
  ], Ln.prototype, "lengthScale");
32336
- class fd {
32336
+ class pd {
32337
32337
  constructor(t, e = 1) {
32338
32338
  r(this, "_curve");
32339
32339
  r(this, "_factor");
@@ -32512,7 +32512,7 @@ class RE extends la {
32512
32512
  }
32513
32513
  }
32514
32514
  }
32515
- const pd = Symbol("startVelocity"), Zb = Symbol("gravityModifier"), qp = Symbol("gravitySpeed"), md = Symbol("velocity lerp factor"), sg = new w();
32515
+ const md = Symbol("startVelocity"), Zb = Symbol("gravityModifier"), qp = Symbol("gravitySpeed"), gd = Symbol("velocity lerp factor"), sg = new w();
32516
32516
  class TE extends la {
32517
32517
  constructor() {
32518
32518
  super(...arguments);
@@ -32524,26 +32524,26 @@ class TE extends la {
32524
32524
  const i = this.system.main.simulationSpeed;
32525
32525
  e.startSpeed = this.system.main.startSpeed.evaluate(Math.random(), Math.random());
32526
32526
  const n = this.system.shape.getDirection(e, e.position);
32527
- e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[pd] ? e[pd].copy(e.velocity) : e[pd] = e.velocity.clone();
32527
+ e.velocity.x = n.x * e.startSpeed, e.velocity.y = n.y * e.startSpeed, e.velocity.z = n.z * e.startSpeed, (a = this.system.inheritVelocity) != null && a.enabled && this.system.inheritVelocity.applyInitial(e.velocity), e[md] ? e[md].copy(e.velocity) : e[md] = e.velocity.clone();
32528
32528
  const s = this.system.main.gravityModifier.evaluate(Math.random(), Math.random());
32529
- e[Zb] = s * i, e[qp] = s * i * 0.5, e[md] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === ih.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
32529
+ e[Zb] = s * i, e[qp] = s * i * 0.5, e[gd] = Math.random(), (l = this.system.velocityOverLifetime) == null || l.init(e), this._gravityDirection.set(0, -1, 0), this.system.main.simulationSpace === nh.Local && this._gravityDirection.applyQuaternion(this.system.worldQuaternionInverted).normalize();
32530
32530
  }
32531
32531
  update(e, i) {
32532
32532
  var f;
32533
- const n = e[pd], s = e[Zb];
32533
+ const n = e[md], s = e[Zb];
32534
32534
  if (s !== 0) {
32535
32535
  const m = s * e[qp];
32536
32536
  sg.copy(this._gravityDirection).multiplyScalar(m), e[qp] += i * 0.05, n.add(sg);
32537
32537
  }
32538
32538
  e.velocity.copy(n);
32539
32539
  const a = e.age / e.life;
32540
- (f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[md]);
32540
+ (f = this.system.inheritVelocity) != null && f.enabled && this.system.inheritVelocity.applyCurrent(e.velocity, a, e[gd]);
32541
32541
  const l = this.system.noise;
32542
32542
  l.enabled && l.apply(0, e.position, e.velocity, i, e.age, e.life);
32543
32543
  const c = this.system.sizeBySpeed;
32544
- c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[md], e.size));
32544
+ c != null && c.enabled && (e.size = c.evaluate(e.velocity, a, e[gd], e.size));
32545
32545
  const h = this.system.colorBySpeed;
32546
- h != null && h.enabled && h.evaluate(e.velocity, e[md], e.color);
32546
+ h != null && h.enabled && h.evaluate(e.velocity, e[gd], e.color);
32547
32547
  const d = this.system.velocityOverLifetime;
32548
32548
  d.enabled && d.apply(e, 0, e.position, e.velocity, i, e.age, e.life);
32549
32549
  const u = this.system.limitVelocityOverLifetime;
@@ -32617,16 +32617,16 @@ class AE {
32617
32617
  return this.system.shape;
32618
32618
  }
32619
32619
  get startLife() {
32620
- return new fd(this.system.main.startLifetime);
32620
+ return new pd(this.system.main.startLifetime);
32621
32621
  }
32622
32622
  get startSpeed() {
32623
- return new fd(this.system.main.startSpeed);
32623
+ return new pd(this.system.main.startSpeed);
32624
32624
  }
32625
32625
  get startRotation() {
32626
- return new fd(this.system.main.startRotation);
32626
+ return new pd(this.system.main.startRotation);
32627
32627
  }
32628
32628
  get startSize() {
32629
- return new fd(this.system.main.startSize);
32629
+ return new pd(this.system.main.startSize);
32630
32630
  }
32631
32631
  /** start length is for trails */
32632
32632
  get startColor() {
@@ -32698,7 +32698,7 @@ class AE {
32698
32698
  return this.system.renderer.transparent;
32699
32699
  }
32700
32700
  get worldSpace() {
32701
- return this.system.main.simulationSpace === ih.World;
32701
+ return this.system.main.simulationSpace === nh.World;
32702
32702
  }
32703
32703
  }
32704
32704
  class IE {
@@ -32822,10 +32822,10 @@ const Ht = class Ad extends D {
32822
32822
  return this._container;
32823
32823
  }
32824
32824
  get worldspace() {
32825
- return this.main.simulationSpace === ih.World;
32825
+ return this.main.simulationSpace === nh.World;
32826
32826
  }
32827
32827
  get localspace() {
32828
- return this.main.simulationSpace === ih.Local;
32828
+ return this.main.simulationSpace === nh.Local;
32829
32829
  }
32830
32830
  get worldQuaternion() {
32831
32831
  return this.__worldQuaternion;
@@ -33039,7 +33039,7 @@ Ge([
33039
33039
  p(mx)
33040
33040
  ], Ht.prototype, "inheritVelocity");
33041
33041
  Ge([
33042
- p(kh)
33042
+ p(Mh)
33043
33043
  ], Ht.prototype, "colorBySpeed");
33044
33044
  Ge([
33045
33045
  p(ci)
@@ -33085,7 +33085,7 @@ function yx(o, t) {
33085
33085
  }
33086
33086
  return t;
33087
33087
  }
33088
- class nh extends D {
33088
+ class sh extends D {
33089
33089
  constructor() {
33090
33090
  super(...arguments);
33091
33091
  r(this, "_didAssignPlayerColor", !1);
@@ -33108,7 +33108,7 @@ class nh extends D {
33108
33108
  ;
33109
33109
  }
33110
33110
  assignUserColor(e) {
33111
- const i = nh.hashCode(e), n = nh.colorFromHashCode(i);
33111
+ const i = sh.hashCode(e), n = sh.colorFromHashCode(i);
33112
33112
  if (this.gameObject.type === "Mesh") {
33113
33113
  const s = this.gameObject;
33114
33114
  this.assignColor(n, e, s);
@@ -33134,7 +33134,7 @@ class nh extends D {
33134
33134
  return new re(i / 255, n / 255, s / 255);
33135
33135
  }
33136
33136
  }
33137
- const _c = S("debugpost");
33137
+ const bc = S("debugpost");
33138
33138
  let rg = null;
33139
33139
  function LE(o) {
33140
33140
  rg = o;
@@ -33153,7 +33153,7 @@ function DE(o) {
33153
33153
  let t = _x(o);
33154
33154
  if (!t)
33155
33155
  if (rg) {
33156
- _c && console.warn("Adding postprocessing manager to the scene.");
33156
+ bc && console.warn("Adding postprocessing manager to the scene.");
33157
33157
  const e = o.scene;
33158
33158
  t = sn(e, rg);
33159
33159
  } else
@@ -33182,10 +33182,10 @@ const gt = {
33182
33182
  };
33183
33183
  let tt = null;
33184
33184
  function jE(o) {
33185
- _c === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(j.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), tt.set(j.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), tt.set(j.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), tt.set(j.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), tt.set(j.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), tt.set(j.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), tt.set(j.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), tt.set(j.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), tt.set(j.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), tt.set(j.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), tt.set(j.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), tt.set(j.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
33185
+ bc === "verbose" && console.debug("Before ordering effects", [...o]), tt || (tt = /* @__PURE__ */ new Map(), tt.set(j.POSTPROCESSING.MODULE.NormalPass, gt.NormalPass), tt.set(j.POSTPROCESSING.MODULE.DepthDownsamplingPass, gt.DepthDownsamplingPass), tt.set(j.POSTPROCESSING.MODULE.SMAAEffect, gt.SMAA), tt.set(j.POSTPROCESSING.MODULE.SSAOEffect, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPostPass, gt.SSAO), tt.set(j.POSTPROCESSING_AO.MODULE.N8AOPass, gt.SSAO), tt.set(j.POSTPROCESSING.MODULE.TiltShiftEffect, gt.TiltShift), tt.set(j.POSTPROCESSING.MODULE.DepthOfFieldEffect, gt.DepthOfField), tt.set(j.POSTPROCESSING.MODULE.ChromaticAberrationEffect, gt.ChromaticAberration), tt.set(j.POSTPROCESSING.MODULE.BloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.SelectiveBloomEffect, gt.Bloom), tt.set(j.POSTPROCESSING.MODULE.VignetteEffect, gt.Vignette), tt.set(j.POSTPROCESSING.MODULE.PixelationEffect, gt.Pixelation), tt.set(j.POSTPROCESSING.MODULE.ToneMappingEffect, gt.ToneMapping), tt.set(j.POSTPROCESSING.MODULE.HueSaturationEffect, gt.HueSaturation), tt.set(j.POSTPROCESSING.MODULE.BrightnessContrastEffect, gt.BrightnessContrast)), o.sort((t, e) => {
33186
33186
  const i = typeof t.priority == "number" ? t.priority : tt.get(t.effect.constructor) ?? Number.NEGATIVE_INFINITY, n = typeof e.priority == "number" ? e.priority : tt.get(e.effect.constructor) ?? Number.NEGATIVE_INFINITY;
33187
- return i === Number.NEGATIVE_INFINITY ? (_c && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (_c && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
33188
- }), _c === "verbose" && console.debug("After ordering effects", [...o]);
33187
+ return i === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", t.constructor.name, t), 1) : n === Number.NEGATIVE_INFINITY ? (bc && console.warn("Unknown effect found: ", e.constructor.name, e), -1) : i - n;
33188
+ }), bc === "verbose" && console.debug("After ordering effects", [...o]);
33189
33189
  }
33190
33190
  var BE = Object.defineProperty, FE = Object.getOwnPropertyDescriptor, bx = (o, t, e, i) => {
33191
33191
  for (var n = FE(t, e), s = o.length - 1, a; s >= 0; s--)
@@ -33515,7 +33515,7 @@ KE([
33515
33515
  p(N)
33516
33516
  ], Tf.prototype, "intensity");
33517
33517
  Dn("ChromaticAberration", Tf);
33518
- var bc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Neutral = 1] = "Neutral", o[o.ACES = 2] = "ACES", o[o.AgX = 3] = "AgX", o[o.KhronosNeutral = 4] = "KhronosNeutral", o))(bc || {});
33518
+ var vc = /* @__PURE__ */ ((o) => (o[o.None = 0] = "None", o[o.Neutral = 1] = "Neutral", o[o.ACES = 2] = "ACES", o[o.AgX = 3] = "AgX", o[o.KhronosNeutral = 4] = "KhronosNeutral", o))(vc || {});
33519
33519
  const t0 = /* @__PURE__ */ new Map();
33520
33520
  function Qp(o) {
33521
33521
  switch (o) {
@@ -33583,7 +33583,7 @@ class Yr extends ft {
33583
33583
  }
33584
33584
  /** Set the tonemapping mode to e.g. "agx" */
33585
33585
  setMode(e) {
33586
- const i = bc[e];
33586
+ const i = vc[e];
33587
33587
  return i === void 0 ? (console.error("[PostProcessing] Invalid ToneMapping mode", e), this) : (this.mode.value = i, this);
33588
33588
  }
33589
33589
  get isToneMapping() {
@@ -33610,8 +33610,8 @@ class Yr extends ft {
33610
33610
  const a = Qp(s);
33611
33611
  i.mode = Id(a);
33612
33612
  }
33613
- i.name = "ToneMapping (" + bc[s] + ")", Yp && console.log("[PostProcessing] ToneMapping mode changed to", bc[s], e, i.mode);
33614
- }, Yp && console.log("[PostProcessing] Use ToneMapping", bc[this.mode.value], e, i.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), i;
33613
+ i.name = "ToneMapping (" + vc[s] + ")", Yp && console.log("[PostProcessing] ToneMapping mode changed to", vc[s], e, i.mode);
33614
+ }, Yp && console.log("[PostProcessing] Use ToneMapping", vc[this.mode.value], e, i.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), i;
33615
33615
  }
33616
33616
  onBeforeRender() {
33617
33617
  var e;
@@ -33695,7 +33695,7 @@ class ps extends ft {
33695
33695
  r(this, "focalLength", new N(0.2));
33696
33696
  r(this, "aperture", new N(20));
33697
33697
  r(this, "gaussianMaxRadius", new N());
33698
- r(this, "resolutionScale", new N(1 * 1 / window.devicePixelRatio));
33698
+ r(this, "resolutionScale", new N(1 / window.devicePixelRatio));
33699
33699
  r(this, "bokehScale", new N());
33700
33700
  }
33701
33701
  get typeName() {
@@ -33789,7 +33789,7 @@ sA([
33789
33789
  p(N)
33790
33790
  ], Af.prototype, "granularity");
33791
33791
  Dn("PixelationEffect", Af);
33792
- var oA = Object.defineProperty, Mh = (o, t, e, i) => {
33792
+ var oA = Object.defineProperty, Rh = (o, t, e, i) => {
33793
33793
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
33794
33794
  (a = o[s]) && (n = a(t, e, n) || n);
33795
33795
  return n && oA(t, e, n), n;
@@ -33844,19 +33844,19 @@ class sr extends ft {
33844
33844
  return a.push(i), a.push(n), a.push(s), a;
33845
33845
  }
33846
33846
  }
33847
- Mh([
33847
+ Rh([
33848
33848
  p(N)
33849
33849
  ], sr.prototype, "intensity");
33850
- Mh([
33850
+ Rh([
33851
33851
  p(N)
33852
33852
  ], sr.prototype, "falloff");
33853
- Mh([
33853
+ Rh([
33854
33854
  p(N)
33855
33855
  ], sr.prototype, "samples");
33856
- Mh([
33856
+ Rh([
33857
33857
  p(N)
33858
33858
  ], sr.prototype, "color");
33859
- Mh([
33859
+ Rh([
33860
33860
  p(N)
33861
33861
  ], sr.prototype, "luminanceInfluence");
33862
33862
  Dn("ScreenSpaceAmbientOcclusion", sr);
@@ -34378,7 +34378,7 @@ var fA = Object.defineProperty, Sx = (o, t, e, i) => {
34378
34378
  return n && fA(t, e, n), n;
34379
34379
  };
34380
34380
  const mr = S("debugpost");
34381
- class Rh extends D {
34381
+ class Th extends D {
34382
34382
  constructor() {
34383
34383
  super(...arguments);
34384
34384
  r(this, "sharedProfile");
@@ -34526,15 +34526,15 @@ class Rh extends D {
34526
34526
  c.active = e.value, this.scheduleRecreate();
34527
34527
  return;
34528
34528
  }
34529
- if (!gd.has(a)) {
34529
+ if (!yd.has(a)) {
34530
34530
  const h = new Array();
34531
- gd.set(a, h);
34531
+ yd.set(a, h);
34532
34532
  const d = Object.keys(c);
34533
34533
  for (const u of d)
34534
34534
  c[u] instanceof N && h.push(u);
34535
34535
  }
34536
- if (gd.has(a)) {
34537
- const h = l.toLowerCase(), d = gd.get(a);
34536
+ if (yd.has(a)) {
34537
+ const h = l.toLowerCase(), d = yd.get(a);
34538
34538
  for (const u of d)
34539
34539
  if (u.toLowerCase() === h) {
34540
34540
  const f = c[u];
@@ -34559,12 +34559,12 @@ class Rh extends D {
34559
34559
  }
34560
34560
  Sx([
34561
34561
  yl(Iy)
34562
- ], Rh.prototype, "sharedProfile");
34562
+ ], Th.prototype, "sharedProfile");
34563
34563
  Sx([
34564
34564
  yl()
34565
- ], Rh.prototype, "multisampling");
34566
- const gd = /* @__PURE__ */ new Map();
34567
- LE(Rh);
34565
+ ], Th.prototype, "multisampling");
34566
+ const yd = /* @__PURE__ */ new Map();
34567
+ LE(Th);
34568
34568
  async function By(o) {
34569
34569
  const { NeedleEngineWebComponent: t } = await Promise.resolve().then(() => NI);
34570
34570
  t.observedAttributes.includes(o) || t.observedAttributes.push(o);
@@ -35757,7 +35757,7 @@ class CA extends is {
35757
35757
  this.offset = this.offset.set(0, 0), this.zoom = 1, this.needsUpdate = !0;
35758
35758
  }
35759
35759
  }
35760
- var PA = Object.defineProperty, OA = Object.getOwnPropertyDescriptor, Th = (o, t, e, i) => {
35760
+ var PA = Object.defineProperty, OA = Object.getOwnPropertyDescriptor, Eh = (o, t, e, i) => {
35761
35761
  for (var n = i > 1 ? void 0 : i ? OA(t, e) : t, s = o.length - 1, a; s >= 0; s--)
35762
35762
  (a = o[s]) && (n = (i ? a(t, e, n) : a(n)) || n);
35763
35763
  return i && n && PA(t, e, n), n;
@@ -36041,19 +36041,19 @@ class ua extends D {
36041
36041
  // private openWindowToSelectCamera(){
36042
36042
  // }
36043
36043
  }
36044
- Th([
36044
+ Eh([
36045
36045
  p()
36046
36046
  ], ua.prototype, "allowStartOnClick", 2);
36047
- Th([
36047
+ Eh([
36048
36048
  p()
36049
36049
  ], ua.prototype, "autoConnect", 2);
36050
- Th([
36050
+ Eh([
36051
36051
  p(xt)
36052
36052
  ], ua.prototype, "videoPlayer", 1);
36053
- Th([
36053
+ Eh([
36054
36054
  p()
36055
36055
  ], ua.prototype, "device", 2);
36056
- Th([
36056
+ Eh([
36057
36057
  p()
36058
36058
  ], ua.prototype, "deviceName", 2);
36059
36059
  var kA = Object.defineProperty, Mx = (o, t, e, i) => {
@@ -36160,7 +36160,7 @@ Mx([
36160
36160
  Mx([
36161
36161
  p(ce)
36162
36162
  ], Lf.prototype, "shadowColor");
36163
- var MA = Object.defineProperty, Eh = (o, t, e, i) => {
36163
+ var MA = Object.defineProperty, Ah = (o, t, e, i) => {
36164
36164
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36165
36165
  (a = o[s]) && (n = a(t, e, n) || n);
36166
36166
  return n && MA(t, e, n), n;
@@ -36360,20 +36360,20 @@ const Kr = class extends D {
36360
36360
  this.context.domElement.removeEventListener("dragover", this.onDragOverEvent), this.context.domElement.removeEventListener("drop", this.onDrop);
36361
36361
  }
36362
36362
  };
36363
- Eh([
36363
+ Ah([
36364
36364
  Xw(Kr.prototype.urlChangedSyncField),
36365
36365
  p(URL)
36366
36366
  ], Kr.prototype, "url");
36367
- Eh([
36367
+ Ah([
36368
36368
  p()
36369
36369
  ], Kr.prototype, "allowDrop");
36370
- Eh([
36370
+ Ah([
36371
36371
  p()
36372
36372
  ], Kr.prototype, "background");
36373
- Eh([
36373
+ Ah([
36374
36374
  p()
36375
36375
  ], Kr.prototype, "environment");
36376
- Eh([
36376
+ Ah([
36377
36377
  p()
36378
36378
  ], Kr.prototype, "allowNetworking");
36379
36379
  let Fy = Kr;
@@ -36396,13 +36396,13 @@ var AA = Object.defineProperty, Df = (o, t, e, i) => {
36396
36396
  (a = o[s]) && (n = a(t, e, n) || n);
36397
36397
  return n && AA(t, e, n), n;
36398
36398
  }, Ar;
36399
- const Ah = (Ar = class extends D {
36399
+ const Ih = (Ar = class extends D {
36400
36400
  constructor() {
36401
36401
  super(...arguments);
36402
36402
  r(this, "target", null);
36403
36403
  r(this, "followFactor", 0.1);
36404
36404
  r(this, "rotateFactor", 0.1);
36405
- r(this, "positionAxes", uc.All);
36405
+ r(this, "positionAxes", fc.All);
36406
36406
  r(this, "flipForward", !1);
36407
36407
  r(this, "_firstUpdate", !0);
36408
36408
  }
@@ -36416,7 +36416,7 @@ const Ah = (Ar = class extends D {
36416
36416
  if (!(!this.target || this.target === this.gameObject)) {
36417
36417
  if (this.followFactor > 0) {
36418
36418
  const i = te(this.target), n = this._firstUpdate || e ? 1 : $.clamp01(this.context.time.deltaTime * this.followFactor), s = this.worldPosition;
36419
- this.positionAxes & uc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & uc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & uc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
36419
+ this.positionAxes & fc.X && (s.x = $.lerp(s.x, i.x, n)), this.positionAxes & fc.Y && (s.y = $.lerp(s.y, i.y, n)), this.positionAxes & fc.Z && (s.z = $.lerp(s.z, i.z, n)), this.worldPosition = s;
36420
36420
  }
36421
36421
  if (this.rotateFactor > 0) {
36422
36422
  const i = Oe(this.target);
@@ -36430,23 +36430,23 @@ const Ah = (Ar = class extends D {
36430
36430
  }, r(Ar, "_invertForward", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ar);
36431
36431
  Df([
36432
36432
  p(L)
36433
- ], Ah.prototype, "target");
36433
+ ], Ih.prototype, "target");
36434
36434
  Df([
36435
36435
  p()
36436
- ], Ah.prototype, "followFactor");
36436
+ ], Ih.prototype, "followFactor");
36437
36437
  Df([
36438
36438
  p()
36439
- ], Ah.prototype, "rotateFactor");
36439
+ ], Ih.prototype, "rotateFactor");
36440
36440
  Df([
36441
36441
  p()
36442
- ], Ah.prototype, "positionAxes");
36443
- let zy = Ah;
36444
- var IA = Object.defineProperty, Ih = (o, t, e, i) => {
36442
+ ], Ih.prototype, "positionAxes");
36443
+ let zy = Ih;
36444
+ var IA = Object.defineProperty, Lh = (o, t, e, i) => {
36445
36445
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
36446
36446
  (a = o[s]) && (n = a(t, e, n) || n);
36447
36447
  return n && IA(t, e, n), n;
36448
36448
  };
36449
- const Ac = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
36449
+ const Ic = S("debugspatialtrigger"), o0 = new Wo(), r0 = new Wo();
36450
36450
  function LA(o, t) {
36451
36451
  return o0.mask = o, r0.mask = t, o0.test(r0);
36452
36452
  }
@@ -36467,7 +36467,7 @@ class Hs extends D {
36467
36467
  * @internal
36468
36468
  */
36469
36469
  start() {
36470
- Ac && console.log(this.name, this.triggerMask, this);
36470
+ Ic && console.log(this.name, this.triggerMask, this);
36471
36471
  }
36472
36472
  /**
36473
36473
  * Checks for intersections with spatial triggers and fires appropriate events
@@ -36492,7 +36492,7 @@ class Hs extends D {
36492
36492
  */
36493
36493
  onEnterTrigger(e) {
36494
36494
  var i;
36495
- Ac && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
36495
+ Ic && console.log("ENTER TRIGGER", this.name, e.name, this, e), e.raiseOnEnterEvent(this), (i = this.onEnter) == null || i.invoke();
36496
36496
  }
36497
36497
  /**
36498
36498
  * Handles trigger exit events.
@@ -36500,7 +36500,7 @@ class Hs extends D {
36500
36500
  */
36501
36501
  onExitTrigger(e) {
36502
36502
  var i;
36503
- Ac && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
36503
+ Ic && console.log("EXIT TRIGGER", this.name, e.name), e.raiseOnExitEvent(this), (i = this.onExit) == null || i.invoke();
36504
36504
  }
36505
36505
  /**
36506
36506
  * Handles trigger stay events.
@@ -36511,16 +36511,16 @@ class Hs extends D {
36511
36511
  e.raiseOnStayEvent(this), (i = this.onStay) == null || i.invoke();
36512
36512
  }
36513
36513
  }
36514
- Ih([
36514
+ Lh([
36515
36515
  p()
36516
36516
  ], Hs.prototype, "triggerMask");
36517
- Ih([
36517
+ Lh([
36518
36518
  p(Se)
36519
36519
  ], Hs.prototype, "onEnter");
36520
- Ih([
36520
+ Lh([
36521
36521
  p(Se)
36522
36522
  ], Hs.prototype, "onStay");
36523
- Ih([
36523
+ Lh([
36524
36524
  p(Se)
36525
36525
  ], Hs.prototype, "onExit");
36526
36526
  var Fs;
@@ -36535,14 +36535,14 @@ const Tx = (Fs = class extends D {
36535
36535
  * Initializes the trigger and logs debug info if enabled
36536
36536
  */
36537
36537
  start() {
36538
- Ac && console.log(this.name, this.triggerMask, this);
36538
+ Ic && console.log(this.name, this.triggerMask, this);
36539
36539
  }
36540
36540
  /**
36541
36541
  * Registers this trigger in the global registry and sets up debug visualization if enabled
36542
36542
  */
36543
36543
  onEnable() {
36544
36544
  var e;
36545
- Fs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Ks), (e = this.boxHelper) == null || e.showHelper(null, Ac));
36545
+ Fs.triggers.push(this), this.boxHelper || (this.boxHelper = C.addComponent(this.gameObject, Ks), (e = this.boxHelper) == null || e.showHelper(null, Ic));
36546
36546
  }
36547
36547
  /**
36548
36548
  * Removes this trigger from the global registry when disabled
@@ -36588,7 +36588,7 @@ const Tx = (Fs = class extends D {
36588
36588
  }
36589
36589
  }, /** Global registry of all active spatial triggers in the scene */
36590
36590
  r(Fs, "triggers", []), Fs);
36591
- Ih([
36591
+ Lh([
36592
36592
  p()
36593
36593
  ], Tx.prototype, "triggerMask");
36594
36594
  let Uy = Tx;
@@ -37431,7 +37431,7 @@ class Lx extends D {
37431
37431
  }
37432
37432
  awake() {
37433
37433
  if (this.useFlatbuffers)
37434
- this.context.connection.beginListenBinary(Yc, (e) => {
37434
+ this.context.connection.beginListenBinary(Kc, (e) => {
37435
37435
  });
37436
37436
  else {
37437
37437
  this.models = [];
@@ -37990,7 +37990,7 @@ const JA = S("mutetimeline"), kr = class kr extends zf {
37990
37990
  }
37991
37991
  };
37992
37992
  r(kr, "_audioBuffers", /* @__PURE__ */ new Map());
37993
- let sh = kr;
37993
+ let oh = kr;
37994
37994
  class vu extends zf {
37995
37995
  constructor() {
37996
37996
  super(...arguments);
@@ -38044,7 +38044,7 @@ class Vy extends zf {
38044
38044
  console.log("no source object, removing model", i, s), this.models.splice(i, 1);
38045
38045
  continue;
38046
38046
  } else {
38047
- const a = C.getComponent(s.sourceObject, oh);
38047
+ const a = C.getComponent(s.sourceObject, rh);
38048
38048
  this.timelines.push(a), a && s.updateDirector && (a.playOnAwake = !1);
38049
38049
  }
38050
38050
  }
@@ -38438,7 +38438,7 @@ const Hy = (Do = class extends D {
38438
38438
  }
38439
38439
  } else if (a.type === Ki.Audio) {
38440
38440
  if (!a.clips || a.clips.length <= 0) continue;
38441
- const h = new sh();
38441
+ const h = new oh();
38442
38442
  h.director = this, h.track = a, h.audioSource = a.outputs.find((d) => d instanceof Rn), this._audioTracks.push(h), e || (e = (s = this.context.mainCameraComponent) == null ? void 0 : s.gameObject.addComponent(Io)), h.listener = e.listener;
38443
38443
  for (let d = 0; d < a.clips.length; d++) {
38444
38444
  const u = a.clips[d];
@@ -38494,7 +38494,7 @@ Fx([
38494
38494
  Fx([
38495
38495
  p()
38496
38496
  ], Hy.prototype, "extrapolationMode");
38497
- let oh = Hy;
38497
+ let rh = Hy;
38498
38498
  var tI = Object.defineProperty, Uf = (o, t, e, i) => {
38499
38499
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
38500
38500
  (a = o[s]) && (n = a(t, e, n) || n);
@@ -38597,7 +38597,7 @@ class jl extends D {
38597
38597
  /** @internal */
38598
38598
  onEnable() {
38599
38599
  var e;
38600
- if (!(this.isGizmo && !ch) && this.context.mainCamera && (this._control || (this._control = new NC(this.context.mainCamera, this.context.renderer.domElement), this._control.enabled = !0, this._control.getRaycaster().layers.set(2), this._control.size = 1, ("_root" in this._control ? this._control._root : this._control).traverse((n) => {
38600
+ if (!(this.isGizmo && !hh) && this.context.mainCamera && (this._control || (this._control = new NC(this.context.mainCamera, this.context.renderer.domElement), this._control.enabled = !0, this._control.getRaycaster().layers.set(2), this._control.size = 1, ("_root" in this._control ? this._control._root : this._control).traverse((n) => {
38601
38601
  const s = n;
38602
38602
  if (s.layers.set(2), s) {
38603
38603
  const a = s.material;
@@ -38654,7 +38654,7 @@ class Gy {
38654
38654
  Nf([
38655
38655
  p(Fe)
38656
38656
  ], Gy.prototype, "texture", 2);
38657
- let Lh = class extends xf {
38657
+ let Dh = class extends xf {
38658
38658
  constructor() {
38659
38659
  super(...arguments);
38660
38660
  r(this, "_sprite");
@@ -38695,10 +38695,10 @@ let Lh = class extends xf {
38695
38695
  };
38696
38696
  Nf([
38697
38697
  p(Gy)
38698
- ], Lh.prototype, "sprite", 1);
38698
+ ], Dh.prototype, "sprite", 1);
38699
38699
  Nf([
38700
38700
  p()
38701
- ], Lh.prototype, "pixelsPerUnitMultiplier", 2);
38701
+ ], Dh.prototype, "pixelsPerUnitMultiplier", 2);
38702
38702
  class qy extends xf {
38703
38703
  constructor() {
38704
38704
  super(...arguments);
@@ -38835,7 +38835,7 @@ class ar extends D {
38835
38835
  this._requestedAnimatorTrigger = e, yield, yield, this._requestedAnimatorTrigger == e && ((i = this.animator) == null || i.setTrigger(e));
38836
38836
  }
38837
38837
  init() {
38838
- this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject, Lh), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
38838
+ this._isInit || (this._isInit = !0, this._image = C.getComponent(this.gameObject, Dh), this._image && (this.stateSetup(this._image), this.interactable ? this._image.setState("normal") : this._image.setState("disabled")));
38839
38839
  }
38840
38840
  stateSetup(e) {
38841
38841
  var m, g, _, y, b;
@@ -38911,7 +38911,7 @@ var aI = Object.defineProperty, $f = (o, t, e, i) => {
38911
38911
  };
38912
38912
  const mo = S("debuginputfield");
38913
38913
  var X;
38914
- const Dh = (X = class extends D {
38914
+ const jh = (X = class extends D {
38915
38915
  constructor() {
38916
38916
  super(...arguments);
38917
38917
  r(this, "textComponent");
@@ -39058,17 +39058,17 @@ const Dh = (X = class extends D {
39058
39058
  }, r(X, "active", null), r(X, "activeTime", -1), r(X, "htmlField", null), r(X, "htmlFieldFocused", !1), X);
39059
39059
  $f([
39060
39060
  p(ai)
39061
- ], Dh.prototype, "textComponent");
39061
+ ], jh.prototype, "textComponent");
39062
39062
  $f([
39063
39063
  p(ai)
39064
- ], Dh.prototype, "placeholder");
39064
+ ], jh.prototype, "placeholder");
39065
39065
  $f([
39066
39066
  p(Se)
39067
- ], Dh.prototype, "onValueChanged");
39067
+ ], jh.prototype, "onValueChanged");
39068
39068
  $f([
39069
39069
  p(Se)
39070
- ], Dh.prototype, "onEndEdit");
39071
- let zx = Dh;
39070
+ ], jh.prototype, "onEndEdit");
39071
+ let zx = jh;
39072
39072
  var lI = Object.defineProperty, Ux = (o, t, e, i) => {
39073
39073
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39074
39074
  (a = o[s]) && (n = a(t, e, n) || n);
@@ -39319,7 +39319,7 @@ var dI = Object.defineProperty, Vf = (o, t, e, i) => {
39319
39319
  (a = o[s]) && (n = a(t, e, n) || n);
39320
39320
  return n && dI(t, e, n), n;
39321
39321
  }, Ir;
39322
- const jh = (Ir = class extends D {
39322
+ const Bh = (Ir = class extends D {
39323
39323
  constructor() {
39324
39324
  super(...arguments);
39325
39325
  r(this, "target");
@@ -39360,23 +39360,23 @@ const jh = (Ir = class extends D {
39360
39360
  }, r(Ir, "flipYQuat", new W().setFromAxisAngle(new w(0, 1, 0), Math.PI)), Ir);
39361
39361
  Vf([
39362
39362
  p(L)
39363
- ], jh.prototype, "target");
39363
+ ], Bh.prototype, "target");
39364
39364
  Vf([
39365
39365
  p()
39366
- ], jh.prototype, "invertForward");
39366
+ ], Bh.prototype, "invertForward");
39367
39367
  Vf([
39368
39368
  p()
39369
- ], jh.prototype, "keepUpDirection");
39369
+ ], Bh.prototype, "keepUpDirection");
39370
39370
  Vf([
39371
39371
  p()
39372
- ], jh.prototype, "copyTargetRotation");
39373
- let Nx = jh;
39372
+ ], Bh.prototype, "copyTargetRotation");
39373
+ let Nx = Bh;
39374
39374
  var uI = Object.defineProperty, Qy = (o, t, e, i) => {
39375
39375
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39376
39376
  (a = o[s]) && (n = a(t, e, n) || n);
39377
39377
  return n && uI(t, e, n), n;
39378
39378
  };
39379
- class Bh extends D {
39379
+ class Fh extends D {
39380
39380
  constructor() {
39381
39381
  super(...arguments);
39382
39382
  r(this, "url");
@@ -39428,13 +39428,13 @@ class Bh extends D {
39428
39428
  }
39429
39429
  Qy([
39430
39430
  p()
39431
- ], Bh.prototype, "url");
39431
+ ], Fh.prototype, "url");
39432
39432
  Qy([
39433
39433
  p()
39434
- ], Bh.prototype, "mode");
39434
+ ], Fh.prototype, "mode");
39435
39435
  Qy([
39436
39436
  p()
39437
- ], Bh.prototype, "clickable");
39437
+ ], Fh.prototype, "clickable");
39438
39438
  var fI = Object.defineProperty, Bl = (o, t, e, i) => {
39439
39439
  for (var n = void 0, s = o.length - 1, a; s >= 0; s--)
39440
39440
  (a = o[s]) && (n = a(t, e, n) || n);
@@ -39576,7 +39576,7 @@ function Wx(o) {
39576
39576
  const b = l.getRenderTarget(), v = l.getClearColor(new re()), x = l.getClearAlpha(), k = i.scene.background, O = "aspect" in a ? a.aspect : null;
39577
39577
  try {
39578
39578
  const U = o.render_events !== !1, E = new Array();
39579
- U && (hh(i.scene, ln, E), E.forEach((B) => {
39579
+ U && (dh(i.scene, ln, E), E.forEach((B) => {
39580
39580
  var V;
39581
39581
  if (B == null || B.onBeforeRender(), B.isInstancingActive && B.instances)
39582
39582
  for (let J = 0; J < ((V = B.instances) == null ? void 0 : V.length); J++) {
@@ -40469,20 +40469,20 @@ M.add("Avatar_MouthShapes", rf);
40469
40469
  M.add("Avatar_MustacheShake", lw);
40470
40470
  M.add("AvatarBlink_Simple", bl);
40471
40471
  M.add("AvatarEyeLook_Rotation", dw);
40472
- M.add("AxesHelper", ph);
40472
+ M.add("AxesHelper", mh);
40473
40473
  M.add("BasicIKConstraint", uw);
40474
40474
  M.add("BoxHelperComponent", Ks);
40475
40475
  M.add("Camera", Ai);
40476
40476
  M.add("CharacterController", vl);
40477
40477
  M.add("CharacterControllerInput", Qo);
40478
40478
  M.add("Collider", Ui);
40479
- M.add("SphereCollider", mh);
40479
+ M.add("SphereCollider", gh);
40480
40480
  M.add("BoxCollider", oy);
40481
40481
  M.add("MeshCollider", oa);
40482
40482
  M.add("CapsuleCollider", Go);
40483
40483
  M.add("ContactShadows", cf);
40484
40484
  M.add("LogStats", pw);
40485
- M.add("DeleteBox", Kc);
40485
+ M.add("DeleteBox", Zc);
40486
40486
  M.add("Deletable", gw);
40487
40487
  M.add("DeviceFlag", ry);
40488
40488
  M.add("DragControls", Ea);
@@ -40496,18 +40496,18 @@ M.add("VariantAction", Ww);
40496
40496
  M.add("ChangeTransformOnClick", Cl);
40497
40497
  M.add("ChangeMaterialOnClick", Vw);
40498
40498
  M.add("SetActiveOnClick", Hw);
40499
- M.add("HideOnStart", Jc);
40500
- M.add("EmphasizeOnClick", _h);
40499
+ M.add("HideOnStart", eh);
40500
+ M.add("EmphasizeOnClick", bh);
40501
40501
  M.add("PlayAudioOnClick", qr);
40502
40502
  M.add("PlayAnimationOnClick", pu);
40503
- M.add("PreliminaryAction", bh);
40503
+ M.add("PreliminaryAction", vh);
40504
40504
  M.add("PreliminaryTrigger", mf);
40505
40505
  M.add("VisibilityAction", gf);
40506
40506
  M.add("TapGestureTrigger", Gw);
40507
40507
  M.add("USDZExporter", Vs);
40508
- M.add("Fog", xh);
40508
+ M.add("Fog", Sh);
40509
40509
  M.add("BoxGizmo", Rl);
40510
- M.add("GridHelper", Sh);
40510
+ M.add("GridHelper", Ch);
40511
40511
  M.add("GroundProjectedEnv", to);
40512
40512
  M.add("UsageMarker", hf);
40513
40513
  M.add("Interactable", mw);
@@ -40524,7 +40524,7 @@ M.add("CameraTargetReachedEvent", au);
40524
40524
  M.add("OrbitControls", xe);
40525
40525
  M.add("ParticleSystemRenderer", Ln);
40526
40526
  M.add("ParticleSystem", gu);
40527
- M.add("PlayerColor", nh);
40527
+ M.add("PlayerColor", sh);
40528
40528
  M.add("Antialiasing", Mf);
40529
40529
  M.add("BloomEffect", Dy);
40530
40530
  M.add("ChromaticAberration", Tf);
@@ -40538,7 +40538,7 @@ M.add("SharpeningEffect", If);
40538
40538
  M.add("TiltShiftEffect", ao);
40539
40539
  M.add("ToneMappingEffect", Yr);
40540
40540
  M.add("Vignette", Dl);
40541
- M.add("Volume", Rh);
40541
+ M.add("Volume", Th);
40542
40542
  M.add("ReflectionProbe", uu);
40543
40543
  M.add("Renderer", ln);
40544
40544
  M.add("MeshRenderer", uf);
@@ -40558,28 +40558,28 @@ M.add("SyncedRoom", gs);
40558
40558
  M.add("SyncedTransform", Ys);
40559
40559
  M.add("TestRunner", Ix);
40560
40560
  M.add("TestSimulateUserData", Lx);
40561
- M.add("PlayableDirector", oh);
40561
+ M.add("PlayableDirector", rh);
40562
40562
  M.add("SignalReceiver", Ff);
40563
40563
  M.add("AnimationTrackHandler", Wy);
40564
- M.add("AudioTrackHandler", sh);
40564
+ M.add("AudioTrackHandler", oh);
40565
40565
  M.add("SignalTrackHandler", vu);
40566
40566
  M.add("ControlTrackHandler", Vy);
40567
40567
  M.add("TransformGizmo", jl);
40568
40568
  M.add("BaseUIComponent", En);
40569
40569
  M.add("UIRootComponent", vf);
40570
40570
  M.add("Button", ar);
40571
- M.add("Canvas", th);
40571
+ M.add("Canvas", ih);
40572
40572
  M.add("CanvasGroup", Qr);
40573
40573
  M.add("EventSystem", yi);
40574
40574
  M.add("Graphic", wf);
40575
40575
  M.add("MaskableGraphic", xf);
40576
- M.add("Image", Lh);
40576
+ M.add("Image", Dh);
40577
40577
  M.add("RawImage", qy);
40578
40578
  M.add("InputField", zx);
40579
40579
  M.add("VerticalLayoutGroup", sx);
40580
40580
  M.add("HorizontalLayoutGroup", ox);
40581
40581
  M.add("GridLayoutGroup", rx);
40582
- M.add("Outline", wh);
40582
+ M.add("Outline", xh);
40583
40583
  M.add("ObjectRaycaster", an);
40584
40584
  M.add("GraphicRaycaster", Zg);
40585
40585
  M.add("SpatialGrabRaycaster", fl);
@@ -40588,7 +40588,7 @@ M.add("SpatialHtml", Wf);
40588
40588
  M.add("Text", ai);
40589
40589
  M.add("EnvironmentScene", Xy);
40590
40590
  M.add("LookAt", Nx);
40591
- M.add("OpenURL", Bh);
40591
+ M.add("OpenURL", Fh);
40592
40592
  M.add("VideoPlayer", xt);
40593
40593
  M.add("Voip", sa);
40594
40594
  M.add("Avatar", Xr);
@@ -40607,7 +40607,7 @@ M.add("XRFlag", xn);
40607
40607
  M.add("PlayerSync", Yw);
40608
40608
  M.add("PlayerState", Xn);
40609
40609
  M.add("PresentationMode", PI);
40610
- const Ic = bt, OI = S("debugtypestore");
40610
+ const Lc = bt, OI = S("debugtypestore");
40611
40611
  OI && console.log(M);
40612
40612
  function kI(o, t) {
40613
40613
  const i = MO(o, t);
@@ -40653,13 +40653,13 @@ const cg = Symbol("original-component-name"), wa = /* @__PURE__ */ new Map();
40653
40653
  function hg(o, t, e, i) {
40654
40654
  if (t === null || !o) return;
40655
40655
  const n = o.guid, s = o.guid;
40656
- s != null && s.length && (wa.has(s) || (Ic && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), wa.set(s, new zt(s))));
40656
+ s != null && s.length && (wa.has(s) || (Lc && console.log('Creating InstanceIdProvider with key "' + s + '" for object ' + o.name), wa.set(s, new zt(s))));
40657
40657
  const a = s && wa.get(s) || t;
40658
40658
  if (o.guid = a.generateUUID(), n && n !== "invalid" && (e[n] = o.guid), o && o.userData && o.userData.components)
40659
40659
  for (const l of o.userData.components) {
40660
40660
  if (l === null) continue;
40661
40661
  const c = l.guid;
40662
- c ? wa.has(c) || (Ic && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[cg]), wa.set(c, new zt(c))) : Ic && console.warn("Can not create IdProvider: component " + l[cg] + " has no guid", l.guid);
40662
+ c ? wa.has(c) || (Lc && console.log('Creating InstanceIdProvider with key "' + c + '" for component ' + l[cg]), wa.set(c, new zt(c))) : Lc && console.warn("Can not create IdProvider: component " + l[cg] + " has no guid", l.guid);
40663
40663
  const h = wa.get(c) || t, d = l.guid;
40664
40664
  l.guid = h.generateUUID(), d && d !== "invalid" && (e[d] = l.guid), l.resolveGuids && i.push(l);
40665
40665
  }
@@ -40683,7 +40683,7 @@ async function dg(o, t, e, i) {
40683
40683
  const m = new f();
40684
40684
  m.sourceId = o.gltfId, al(m, u, o.implementationInformation), m.context = o.context, "guid" in u && (m[bd] = u.guid), m[cg] = u.name, qa(t, m, !1), e.push({ instance: m, compData: u, obj: t }), m.isCamera && o.context && o.context.mainCamera === null && m.tag === "MainCamera" && o.context.setCurrentCamera(m), ((l = (a = (s = o.context) == null ? void 0 : s.physics) == null ? void 0 : a.engine) == null ? void 0 : l.isInitialized) === !1 && (m.isCollider || m.isRigidbody) && ((h = (c = o.context) == null ? void 0 : c.physics.engine) == null || h.initialize());
40685
40685
  } else
40686
- Ic && console.debug("unknown component: " + u.name), tc.includes(u.name) || tc.push(u.name);
40686
+ Lc && console.debug("unknown component: " + u.name), tc.includes(u.name) || tc.push(u.name);
40687
40687
  } catch (f) {
40688
40688
  console.error(u.name + " - " + f.message, f);
40689
40689
  }
@@ -40703,7 +40703,7 @@ This could mean you forgot to add a npmdef to your ExportInfo
40703
40703
  }
40704
40704
  function TI(o, t) {
40705
40705
  const { instance: e, compData: i, obj: n } = o;
40706
- t.object = n, t.target = e, Mm(e, i, t), Ic && console.debug("add " + i.name, i, e);
40706
+ t.object = n, t.target = e, Mm(e, i, t), Lc && console.debug("add " + i.name, i, e);
40707
40707
  }
40708
40708
  class Vx {
40709
40709
  createBuiltinComponents(t, e, i, n, s) {
@@ -40768,7 +40768,7 @@ async function AI(o, t, e, i) {
40768
40768
  if (n instanceof Cg) {
40769
40769
  typeof t != "string" && (t = new TextDecoder().decode(t));
40770
40770
  const l = n.parse(t);
40771
- return await Lc(n, o, e, l, i, s);
40771
+ return await Dc(n, o, e, l, i, s);
40772
40772
  }
40773
40773
  if (!(n instanceof Xs)) {
40774
40774
  if (n.parse === void 0) {
@@ -40776,14 +40776,14 @@ async function AI(o, t, e, i) {
40776
40776
  return;
40777
40777
  }
40778
40778
  const l = n.parse(t, e);
40779
- return await Lc(n, o, e, l, i, s);
40779
+ return await Dc(n, o, e, l, i, s);
40780
40780
  }
40781
40781
  return new Promise((l, c) => {
40782
40782
  try {
40783
40783
  let h = e.split("?")[0].trimEnd();
40784
40784
  const d = h.split("/");
40785
40785
  d.length > 0 && d[d.length - 1] !== "" && d.pop(), h = d.join("/"), h.endsWith("/") || (h += "/"), n.resourcePath = h, n.parse(t, "", async (u) => {
40786
- const f = await Lc(n, o, e, u, i, s);
40786
+ const f = await Dc(n, o, e, u, i, s);
40787
40787
  l(f);
40788
40788
  }, (u) => {
40789
40789
  console.error('Loading asset at "' + e + `" failed
@@ -40802,12 +40802,12 @@ async function qx(o, t, e, i, n) {
40802
40802
  const { componentsExtension: a } = Xx(s, o);
40803
40803
  if (!(s instanceof Xs)) {
40804
40804
  const l = await s.loadAsync(t, n);
40805
- return await Lc(s, o, t, l, i, a);
40805
+ return await Dc(s, o, t, l, i, a);
40806
40806
  }
40807
40807
  return new Promise((l, c) => {
40808
40808
  try {
40809
40809
  s.load(t, async (h) => {
40810
- const d = await Lc(s, o, e, h, i, a);
40810
+ const d = await Dc(s, o, e, h, i, a);
40811
40811
  l(d);
40812
40812
  }, (h) => {
40813
40813
  n == null || n.call(s, h);
@@ -40824,7 +40824,7 @@ function Xx(o, t) {
40824
40824
  const e = Pw(o);
40825
40825
  return o instanceof Xs && Xg(o, t), { componentsExtension: e };
40826
40826
  }
40827
- async function Lc(o, t, e, i, n, s) {
40827
+ async function Dc(o, t, e, i, n, s) {
40828
40828
  var a;
40829
40829
  if (Hx && console.warn("Loaded", e, i), i == null)
40830
40830
  return console.error(`Loaded model is null '${e}' - please make sure the loader is registered correctly`), {
@@ -40997,7 +40997,7 @@ function Yx(o) {
40997
40997
  const i = o.index / t + sc / t;
40998
40998
  return $.clamp01(i);
40999
40999
  }
41000
- const Uc = class Uc {
41000
+ const Nc = class Nc {
41001
41001
  /**
41002
41002
  * Creates a new loading view
41003
41003
  * @param owner the element that will contain the loading view (should be the NeedleEngineHTMLElement)
@@ -41022,7 +41022,7 @@ const Uc = class Uc {
41022
41022
  if (Sr && console.warn("Begin Loading"), !this._loadingElement) {
41023
41023
  for (let i = 0; i < e.children.length; i++) {
41024
41024
  const n = e.children[i];
41025
- if (n.classList.contains(Uc.LoadingContainerClassName)) {
41025
+ if (n.classList.contains(Nc.LoadingContainerClassName)) {
41026
41026
  if (!this._allowCustomLoadingElement) {
41027
41027
  Sr && console.warn("Remove custom loading container"), e.removeChild(n);
41028
41028
  continue;
@@ -41072,7 +41072,7 @@ const Uc = class Uc {
41072
41072
  const g = this._element.getAttribute("loading-background");
41073
41073
  g ? this._loadingElement.style.background = g : this._loadingElement.style.backgroundColor = "transparent", this._loadingElement.style.display = "flex", this._loadingElement.style.alignItems = "center", this._loadingElement.style.justifyContent = "center", this._loadingElement.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), this._loadingElement.style.flexDirection = "column", this._loadingElement.style.pointerEvents = "none", this._loadingElement.style.color = "white", this._loadingElement.style.fontFamily = 'system-ui, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"', this._loadingElement.style.fontSize = "1rem", e === "light" ? this._loadingElement.style.color = "rgba(0,0,0,.6)" : this._loadingElement.style.color = "rgba(255,255,255,.3)";
41074
41074
  }
41075
- const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ?? Uc.LoadingContainerClassName;
41075
+ const n = ((f = this._loadingElementOptions) == null ? void 0 : f.className) ?? Nc.LoadingContainerClassName;
41076
41076
  if (this._loadingElement.classList.add(n), (m = this._loadingElementOptions) != null && m.additionalClasses)
41077
41077
  for (const g of this._loadingElementOptions.additionalClasses)
41078
41078
  this._loadingElement.classList.add(g);
@@ -41120,8 +41120,8 @@ const Uc = class Uc {
41120
41120
  CLICK HERE TO GET A LICENSE`, i.style.cursor = "pointer", i.style.userSelect = "none", i.style.textAlign = "center", i.style.pointerEvents = "all", i.addEventListener("click", () => window.open("https://needle.tools/pricing", "_self")), i.style.opacity = "0", t.appendChild(i), !z() && Uo && (d0 && console.log("Waiting for runtime license check"), await Uo, e = Ws()), !e && (i.style.transition = "opacity .5s ease-in-out", i.style.opacity = "1");
41121
41121
  }
41122
41122
  };
41123
- r(Uc, "LoadingContainerClassName", "loading");
41124
- let ug = Uc;
41123
+ r(Nc, "LoadingContainerClassName", "loading");
41124
+ let ug = Nc;
41125
41125
  cv(Vx);
41126
41126
  const Ae = S("debugwebcomponent"), f0 = "needle-engine", Kx = "vr", Zx = "desktop", FI = [Qx, Kx, Zx], oc = "ar-session-active", rc = "desktop-session-active", zI = [
41127
41127
  "public-key",
@@ -41369,7 +41369,7 @@ changed from "`, i, '" to "', n, '"'), this.onLoad();
41369
41369
  break;
41370
41370
  }
41371
41371
  case "public-key": {
41372
- n != _d && this.setPublicKey();
41372
+ n != cc && this.setPublicKey();
41373
41373
  break;
41374
41374
  }
41375
41375
  case "version": {
@@ -41522,7 +41522,7 @@ Needle Engine: finished loading ` + i + `
41522
41522
  }
41523
41523
  }
41524
41524
  setPublicKey() {
41525
- _d.length > 0 && this.setAttribute("public-key", _d);
41525
+ cc && cc.length > 0 && this.setAttribute("public-key", cc);
41526
41526
  }
41527
41527
  setVersion() {
41528
41528
  es.length > 0 && this.setAttribute("version", es);
@@ -42439,10 +42439,10 @@ class x2 {
42439
42439
  {
42440
42440
  let y = null;
42441
42441
  if (c.endsWith(".hdr")) {
42442
- const b = (await import("./three-examples-GggCDHv0.js").then((v) => v.RGBELoader$1)).RGBELoader;
42442
+ const b = (await import("./three-examples-B50TT3Iu.js").then((v) => v.RGBELoader$1)).RGBELoader;
42443
42443
  y = new b();
42444
42444
  } else if (c.endsWith(".exr")) {
42445
- const b = (await import("./three-examples-GggCDHv0.js").then((v) => v.EXRLoader$1)).EXRLoader;
42445
+ const b = (await import("./three-examples-B50TT3Iu.js").then((v) => v.EXRLoader$1)).EXRLoader;
42446
42446
  y = new b();
42447
42447
  }
42448
42448
  if (y) {
@@ -42507,7 +42507,7 @@ class GI {
42507
42507
  }
42508
42508
  onBeforeExport(t) {
42509
42509
  t.context.animations.mixers.forEach((e) => {
42510
- const i = Xc.tryGetActionsFromMixer(e);
42510
+ const i = Qc.tryGetActionsFromMixer(e);
42511
42511
  if (i)
42512
42512
  for (let n = 0; n < i.length; n++) {
42513
42513
  const s = i[n];
@@ -42529,7 +42529,7 @@ class GI {
42529
42529
  }
42530
42530
  function qI(o, t, e) {
42531
42531
  o.animations.mixers.forEach((n) => {
42532
- const s = Xc.tryGetActionsFromMixer(n);
42532
+ const s = Qc.tryGetActionsFromMixer(n);
42533
42533
  if (s)
42534
42534
  for (let a = 0; a < s.length; a++) {
42535
42535
  const c = s[a].getClip();
@@ -42537,12 +42537,12 @@ function qI(o, t, e) {
42537
42537
  }
42538
42538
  }), Array.isArray(t) || (t = [t]);
42539
42539
  for (const n of t)
42540
- Xc.tryGetAnimationClipsFromObjectHierarchy(n, e);
42540
+ Qc.tryGetAnimationClipsFromObjectHierarchy(n, e);
42541
42541
  const i = new Set(e);
42542
42542
  return Array.from(i);
42543
42543
  }
42544
42544
  const y0 = "needle-button", sm = z();
42545
- var Lr, Dr, jr, Kt, Ms, Ya, ml, tS, iS, lh;
42545
+ var Lr, Dr, jr, Kt, Ms, Ya, ml, tS, iS, ch;
42546
42546
  class eS extends HTMLElement {
42547
42547
  constructor() {
42548
42548
  super();
@@ -42556,10 +42556,10 @@ class eS extends HTMLElement {
42556
42556
  /** If AR or VR is requested we create and use the webxr button factory to create a button with default behaviour */
42557
42557
  mn(this, Ms);
42558
42558
  mn(this, Ya);
42559
- mn(this, lh, (e) => {
42559
+ mn(this, ch, (e) => {
42560
42560
  sm && console.log("Needle Button clicked"), !e.defaultPrevented && ue(this, Kt) && ue(this, Kt).click();
42561
42561
  });
42562
- this.removeEventListener("click", ue(this, lh)), this.addEventListener("click", ue(this, lh));
42562
+ this.removeEventListener("click", ue(this, ch)), this.addEventListener("click", ue(this, ch));
42563
42563
  }
42564
42564
  attributeChangedCallback(e, i, n) {
42565
42565
  Nl(this, ml, tS).call(this);
@@ -42614,7 +42614,7 @@ Lr = new WeakMap(), Dr = new WeakMap(), jr = new WeakMap(), Kt = new WeakMap(),
42614
42614
  `), ue(this, Dr).innerHTML = ue(this, Kt).innerHTML, ue(this, Dr).style.cssText = "display: flex; align-items: center; justify-content: center;", ue(this, Kt).innerHTML = ue(this, Dr).outerHTML, ue(this, Lr).innerHTML = ue(this, Kt).outerHTML, ue(this, Lr).prepend(ue(this, jr)), iu(Dm, { element: ue(this, Lr) }), (n = ue(this, Ya)) == null || n.disconnect(), ue(this, Ya) ?? gn(this, Ya, new MutationObserver(() => Nl(this, ml, iS).call(this))), ue(this, Ya).observe(ue(this, Kt), { attributes: !0 }), sm && console.log("Needle Button updated");
42615
42615
  }, iS = function() {
42616
42616
  ue(this, Kt) && (ue(this, Kt).style.display === "none" ? this.style.display = "none" : this.style.display === "none" && (this.style.display = ""));
42617
- }, lh = new WeakMap(), r(eS, "observedAttributes", ["ar", "vr", "quicklook"]);
42617
+ }, ch = new WeakMap(), r(eS, "observedAttributes", ["ar", "vr", "quicklook"]);
42618
42618
  typeof window < "u" && !window.customElements.get(y0) && window.customElements.define(y0, eS);
42619
42619
  const ac = S("debugavatar");
42620
42620
  class nS {
@@ -42665,7 +42665,7 @@ class XI {
42665
42665
  if (typeof e == "string") {
42666
42666
  if (i = await this.loadAvatar(t, e), !i) {
42667
42667
  const s = new cs();
42668
- i = C.instantiate($c(e, t.scene), s);
42668
+ i = C.instantiate(Wc(e, t.scene), s);
42669
42669
  }
42670
42670
  } else i = e;
42671
42671
  if (!i)
@@ -42795,7 +42795,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42795
42795
  AudioExtension: Sl,
42796
42796
  AudioListener: Io,
42797
42797
  AudioSource: Rn,
42798
- AudioTrackHandler: sh,
42798
+ AudioTrackHandler: oh,
42799
42799
  Avatar: Xr,
42800
42800
  AvatarBlink_Simple: bl,
42801
42801
  AvatarEyeLook_Rotation: dw,
@@ -42806,7 +42806,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42806
42806
  Avatar_MouthShapes: rf,
42807
42807
  Avatar_MustacheShake: lw,
42808
42808
  Avatar_POI: $o,
42809
- AxesHelper: ph,
42809
+ AxesHelper: mh,
42810
42810
  BaseUIComponent: En,
42811
42811
  BasicIKConstraint: uw,
42812
42812
  BehaviorExtension: Kw,
@@ -42819,7 +42819,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42819
42819
  CallInfo: Mo,
42820
42820
  Camera: Ai,
42821
42821
  CameraTargetReachedEvent: au,
42822
- Canvas: th,
42822
+ Canvas: ih,
42823
42823
  CanvasGroup: Qr,
42824
42824
  CapsuleCollider: Go,
42825
42825
  ChangeMaterialOnClick: Vw,
@@ -42829,13 +42829,13 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42829
42829
  ChromaticAberration: Tf,
42830
42830
  Collider: Ui,
42831
42831
  ColorAdjustments: ca,
42832
- ColorBySpeedModule: kh,
42832
+ ColorBySpeedModule: Mh,
42833
42833
  ColorOverLifetimeModule: Ey,
42834
42834
  ContactShadows: cf,
42835
42835
  ControlTrackHandler: Vy,
42836
42836
  CustomBranding: Ml,
42837
42837
  Deletable: gw,
42838
- DeleteBox: Kc,
42838
+ DeleteBox: Zc,
42839
42839
  DepthOfField: ps,
42840
42840
  DeviceFlag: ry,
42841
42841
  DocumentExtension: QI,
@@ -42844,7 +42844,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42844
42844
  Duplicatable: bw,
42845
42845
  EffectWrapper: yu,
42846
42846
  EmissionModule: nr,
42847
- EmphasizeOnClick: _h,
42847
+ EmphasizeOnClick: bh,
42848
42848
  EnvironmentScene: Xy,
42849
42849
  EventList: Se,
42850
42850
  EventListEvent: Kg,
@@ -42852,28 +42852,28 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42852
42852
  EventTrigger: hy,
42853
42853
  FieldWithDefault: LR,
42854
42854
  FixedJoint: hx,
42855
- Fog: xh,
42855
+ Fog: Sh,
42856
42856
  GltfExport: Iw,
42857
42857
  GltfExportBox: Aw,
42858
42858
  Gradient: El,
42859
42859
  Graphic: wf,
42860
42860
  GraphicRaycaster: Zg,
42861
- GridHelper: Sh,
42861
+ GridHelper: Ch,
42862
42862
  GridLayoutGroup: rx,
42863
42863
  GroundProjectedEnv: to,
42864
42864
  GroupActionModel: Mr,
42865
- HideOnStart: Jc,
42865
+ HideOnStart: eh,
42866
42866
  HingeJoint: Sf,
42867
42867
  HorizontalLayoutGroup: ox,
42868
- Image: Lh,
42868
+ Image: Dh,
42869
42869
  InheritVelocityModule: mx,
42870
42870
  InputField: zx,
42871
42871
  InstanceHandle: fu,
42872
- InstancingHandler: Zc,
42872
+ InstancingHandler: Jc,
42873
42873
  Interactable: mw,
42874
42874
  Keyframe: Ii,
42875
42875
  LODGroup: Cf,
42876
- LODModel: Ph,
42876
+ LODModel: Oh,
42877
42877
  Light: Wi,
42878
42878
  LimitVelocityOverLifetimeModule: Pt,
42879
42879
  LogStats: pw,
@@ -42891,9 +42891,9 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42891
42891
  NoiseModule: ke,
42892
42892
  ObjectRaycaster: an,
42893
42893
  OffsetConstraint: Tl,
42894
- OpenURL: Bh,
42894
+ OpenURL: Fh,
42895
42895
  OrbitControls: xe,
42896
- Outline: wh,
42896
+ Outline: xh,
42897
42897
  Padding: kl,
42898
42898
  ParticleBurst: ig,
42899
42899
  ParticleSubEmitter: gx,
@@ -42903,11 +42903,11 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42903
42903
  PixelationEffect: Af,
42904
42904
  PlayAnimationOnClick: pu,
42905
42905
  PlayAudioOnClick: qr,
42906
- PlayableDirector: oh,
42907
- PlayerColor: nh,
42906
+ PlayableDirector: rh,
42907
+ PlayerColor: sh,
42908
42908
  PointerEventData: sf,
42909
42909
  PostProcessingHandler: xx,
42910
- PreliminaryAction: bh,
42910
+ PreliminaryAction: vh,
42911
42911
  PreliminaryTrigger: mf,
42912
42912
  RawImage: qy,
42913
42913
  Rect: BT,
@@ -42942,11 +42942,11 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42942
42942
  SpatialTrigger: Uy,
42943
42943
  SpatialTriggerReceiver: Hs,
42944
42944
  SpectatorCamera: Ny,
42945
- SphereCollider: mh,
42945
+ SphereCollider: gh,
42946
42946
  Sprite: Zo,
42947
- SpriteData: Tc,
42947
+ SpriteData: Ec,
42948
42948
  SpriteRenderer: Ni,
42949
- SpriteSheet: eh,
42949
+ SpriteSheet: th,
42950
42950
  SubEmitterSystem: og,
42951
42951
  SyncedCamera: Ax,
42952
42952
  SyncedRoom: gs,
@@ -42979,7 +42979,7 @@ const P2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42979
42979
  Vignette: Dl,
42980
42980
  VisibilityAction: gf,
42981
42981
  Voip: sa,
42982
- Volume: Rh,
42982
+ Volume: Th,
42983
42983
  VolumeParameter: N,
42984
42984
  VolumeProfile: Iy,
42985
42985
  WebARCameraBackground: Hf,
@@ -43057,14 +43057,14 @@ fe.registerCallback(me.ContextCreated, (o) => {
43057
43057
  for (const e of o.files)
43058
43058
  C.foreachComponent(e.file.scene, (n) => {
43059
43059
  if (n.enabled !== !1) {
43060
- if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof oh && n.playOnAwake === !0)
43060
+ if (n instanceof si && n.playAutomatically || n instanceof $t || n instanceof rh && n.playOnAwake === !0)
43061
43061
  return !0;
43062
43062
  if (n instanceof si)
43063
43063
  return n.playAutomatically = !0, !0;
43064
- if (n instanceof oh)
43064
+ if (n instanceof rh)
43065
43065
  return n.playOnAwake = !0, !0;
43066
43066
  }
43067
- }, !0) !== !0 && Xc.assignAnimationsFromFile(e.file, {
43067
+ }, !0) !== !0 && Qc.assignAnimationsFromFile(e.file, {
43068
43068
  createAnimationComponent: (n, s) => sn(n, si)
43069
43069
  });
43070
43070
  });
@@ -43072,7 +43072,7 @@ class KI extends t1 {
43072
43072
  constructor() {
43073
43073
  super(new Worker(new URL(
43074
43074
  /* @vite-ignore */
43075
- "/generateMeshBVH.worker-Cdfpaq5W.js",
43075
+ "/generateMeshBVH.worker-BaNp_Xtp.js",
43076
43076
  import.meta.url
43077
43077
  ), { type: "module" })), this.name = "GenerateMeshBVHWorker";
43078
43078
  }
@@ -43125,17 +43125,17 @@ export {
43125
43125
  Ji as ActionModel,
43126
43126
  QO as Addressables,
43127
43127
  tf as AlignmentConstraint,
43128
- Cc as AmbientMode,
43128
+ Pc as AmbientMode,
43129
43129
  si as Animation,
43130
43130
  kf as AnimationCurve,
43131
43131
  py as AnimationExtension,
43132
43132
  Wy as AnimationTrackHandler,
43133
- Xc as AnimationUtils,
43133
+ Qc as AnimationUtils,
43134
43134
  $t as Animator,
43135
43135
  _r as AnimatorConditionMode,
43136
43136
  kn as AnimatorController,
43137
43137
  iw as AnimatorControllerParameterType,
43138
- Kh as AnimatorStateInfo,
43138
+ Zh as AnimatorStateInfo,
43139
43139
  Mf as Antialiasing,
43140
43140
  rs as Application,
43141
43141
  ZP as AssetDatabase,
@@ -43143,7 +43143,7 @@ export {
43143
43143
  Sl as AudioExtension,
43144
43144
  Io as AudioListener,
43145
43145
  Rn as AudioSource,
43146
- sh as AudioTrackHandler,
43146
+ oh as AudioTrackHandler,
43147
43147
  Xr as Avatar,
43148
43148
  bl as AvatarBlink_Simple,
43149
43149
  dw as AvatarEyeLook_Rotation,
@@ -43154,8 +43154,8 @@ export {
43154
43154
  rf as Avatar_MouthShapes,
43155
43155
  lw as Avatar_MustacheShake,
43156
43156
  $o as Avatar_POI,
43157
- uc as Axes,
43158
- ph as AxesHelper,
43157
+ fc as Axes,
43158
+ mh as AxesHelper,
43159
43159
  av as BUILD_TIME,
43160
43160
  En as BaseUIComponent,
43161
43161
  uw as BasicIKConstraint,
@@ -43172,7 +43172,7 @@ export {
43172
43172
  Mo as CallInfo,
43173
43173
  Ai as Camera,
43174
43174
  au as CameraTargetReachedEvent,
43175
- th as Canvas,
43175
+ ih as Canvas,
43176
43176
  Qr as CanvasGroup,
43177
43177
  Go as CapsuleCollider,
43178
43178
  Vw as ChangeMaterialOnClick,
@@ -43187,7 +43187,7 @@ export {
43187
43187
  AM as Collision,
43188
43188
  Yg as CollisionDetectionMode,
43189
43189
  ca as ColorAdjustments,
43190
- kh as ColorBySpeedModule,
43190
+ Mh as ColorBySpeedModule,
43191
43191
  Ey as ColorOverLifetimeModule,
43192
43192
  ZL as Component,
43193
43193
  D as Component$1,
@@ -43205,7 +43205,7 @@ export {
43205
43205
  Vm as CustomShader,
43206
43206
  Im as DefaultReflectionMode,
43207
43207
  gw as Deletable,
43208
- Kc as DeleteBox,
43208
+ Zc as DeleteBox,
43209
43209
  ps as DepthOfField,
43210
43210
  ry as DeviceFlag,
43211
43211
  Q as DeviceUtilities,
@@ -43216,7 +43216,7 @@ export {
43216
43216
  bw as Duplicatable,
43217
43217
  yu as EffectWrapper,
43218
43218
  nr as EmissionModule,
43219
- _h as EmphasizeOnClick,
43219
+ bh as EmphasizeOnClick,
43220
43220
  ug as EngineLoadingView,
43221
43221
  Xy as EnvironmentScene,
43222
43222
  Se as EventList,
@@ -43229,7 +43229,7 @@ export {
43229
43229
  d2 as FileSpawnModel,
43230
43230
  sR as File_Event,
43231
43231
  hx as FixedJoint,
43232
- xh as Fog,
43232
+ Sh as Fog,
43233
43233
  Re as FrameEvent,
43234
43234
  Tg as GENERATOR,
43235
43235
  C as GameObject,
@@ -43240,16 +43240,16 @@ export {
43240
43240
  wf as Graphic,
43241
43241
  Zg as GraphicRaycaster,
43242
43242
  il as Graphics,
43243
- Sh as GridHelper,
43243
+ Ch as GridHelper,
43244
43244
  rx as GridLayoutGroup,
43245
43245
  to as GroundProjectedEnv,
43246
43246
  Mr as GroupActionModel,
43247
43247
  ey as HideFlags,
43248
- Jc as HideOnStart,
43248
+ eh as HideOnStart,
43249
43249
  Sf as HingeJoint,
43250
43250
  ox as HorizontalLayoutGroup,
43251
43251
  VL as HostData,
43252
- Lh as Image,
43252
+ Dh as Image,
43253
43253
  Jd as ImageReference,
43254
43254
  ZO as ImageReferenceSerializer,
43255
43255
  mx as InheritVelocityModule,
@@ -43258,7 +43258,7 @@ export {
43258
43258
  We as InputEvents,
43259
43259
  zx as InputField,
43260
43260
  fu as InstanceHandle,
43261
- Zc as InstancingHandler,
43261
+ Jc as InstancingHandler,
43262
43262
  On as InstancingUtil,
43263
43263
  cO as InstantiateEvent,
43264
43264
  zt as InstantiateIdProvider,
@@ -43269,7 +43269,7 @@ export {
43269
43269
  DL as KeyEventArgs,
43270
43270
  Ii as Keyframe,
43271
43271
  Cf as LODGroup,
43272
- Ph as LODModel,
43272
+ Oh as LODModel,
43273
43273
  zL as LeftRoomResponse,
43274
43274
  Wi as Light,
43275
43275
  mk as LightData,
@@ -43288,7 +43288,7 @@ export {
43288
43288
  uf as MeshRenderer,
43289
43289
  K as MinMaxCurve,
43290
43290
  Al as MinMaxGradient,
43291
- Uh as NEKeyboardEvent,
43291
+ Nh as NEKeyboardEvent,
43292
43292
  go as NEPointerEvent,
43293
43293
  eS as NeedleButtonElement,
43294
43294
  Mb as NeedleEngineModelLoader,
@@ -43311,12 +43311,12 @@ export {
43311
43311
  Tl as OffsetConstraint,
43312
43312
  ep as OneEuroFilter,
43313
43313
  X0 as OneEuroFilterXYZ,
43314
- Bh as OpenURL,
43314
+ Fh as OpenURL,
43315
43315
  xe as OrbitControls,
43316
- wh as Outline,
43316
+ xh as Outline,
43317
43317
  LP as OwnershipEvent,
43318
43318
  yv as OwnershipModel,
43319
- _d as PUBLIC_KEY,
43319
+ cc as PUBLIC_KEY,
43320
43320
  kl as Padding,
43321
43321
  ig as ParticleBurst,
43322
43322
  gx as ParticleSubEmitter,
@@ -43324,7 +43324,7 @@ export {
43324
43324
  la as ParticleSystemBaseBehaviour,
43325
43325
  Ln as ParticleSystemRenderer,
43326
43326
  eg as ParticleSystemShapeType,
43327
- Mc as PeerHandle,
43327
+ Rc as PeerHandle,
43328
43328
  TP as PeerNetworking,
43329
43329
  Hd as Physics,
43330
43330
  Zw as PhysicsExtension,
@@ -43332,8 +43332,8 @@ export {
43332
43332
  Af as PixelationEffect,
43333
43333
  pu as PlayAnimationOnClick,
43334
43334
  qr as PlayAudioOnClick,
43335
- oh as PlayableDirector,
43336
- nh as PlayerColor,
43335
+ rh as PlayableDirector,
43336
+ sh as PlayerColor,
43337
43337
  Xn as PlayerState,
43338
43338
  PT as PlayerStateEvent,
43339
43339
  Yw as PlayerSync,
@@ -43344,7 +43344,7 @@ export {
43344
43344
  ft as PostProcessingEffect,
43345
43345
  gt as PostProcessingEffectOrder,
43346
43346
  xx as PostProcessingHandler,
43347
- bh as PreliminaryAction,
43347
+ vh as PreliminaryAction,
43348
43348
  mf as PreliminaryTrigger,
43349
43349
  wr as PreviewHelper,
43350
43350
  ol as PrimitiveType,
@@ -43395,13 +43395,13 @@ export {
43395
43395
  Uy as SpatialTrigger,
43396
43396
  Hs as SpatialTriggerReceiver,
43397
43397
  Ny as SpectatorCamera,
43398
- mh as SphereCollider,
43398
+ gh as SphereCollider,
43399
43399
  bv as SphereIntersection,
43400
43400
  IM as SphereOverlapResult,
43401
43401
  Zo as Sprite,
43402
- Tc as SpriteData,
43402
+ Ec as SpriteData,
43403
43403
  Ni as SpriteRenderer,
43404
- eh as SpriteSheet,
43404
+ th as SpriteSheet,
43405
43405
  e2 as StateMachineBehaviour,
43406
43406
  rw as StreamEndedEvent,
43407
43407
  LM as StreamReceivedEvent,
@@ -43450,7 +43450,7 @@ export {
43450
43450
  Dl as Vignette,
43451
43451
  gf as VisibilityAction,
43452
43452
  sa as Voip,
43453
- Rh as Volume,
43453
+ Th as Volume,
43454
43454
  N as VolumeParameter,
43455
43455
  Iy as VolumeProfile,
43456
43456
  GL as WaitForFrames,
@@ -43496,7 +43496,7 @@ export {
43496
43496
  K1 as copyTexture,
43497
43497
  $k as createMotion,
43498
43498
  Ci as debugNet,
43499
- Wh as debugOwner,
43499
+ Vh as debugOwner,
43500
43500
  ZR as decompressGpuTexture,
43501
43501
  $u as deepClone,
43502
43502
  ss as delay,
@@ -43528,7 +43528,7 @@ export {
43528
43528
  Zu as getComponentInChildren,
43529
43529
  Zd as getComponentInParent,
43530
43530
  Ku as getComponents,
43531
- hh as getComponentsInChildren,
43531
+ dh as getComponentsInChildren,
43532
43532
  Ng as getComponentsInParent,
43533
43533
  FR as getFormattedDate,
43534
43534
  Bt as getIconElement,
@@ -43563,7 +43563,7 @@ export {
43563
43563
  bP as invokeXRSessionEnd,
43564
43564
  _P as invokeXRSessionStart,
43565
43565
  VO as isActiveInHierarchy,
43566
- dh as isActiveSelf,
43566
+ uh as isActiveSelf,
43567
43567
  gL as isAndroidDevice,
43568
43568
  Y1 as isAnimationAction,
43569
43569
  TM as isComponent,
@@ -43668,7 +43668,7 @@ export {
43668
43668
  Y0 as setWorldQuaternionXYZW,
43669
43669
  Q1 as setWorldRotation,
43670
43670
  Hu as setWorldRotationXYZ,
43671
- Vc as setWorldScale,
43671
+ Hc as setWorldScale,
43672
43672
  Gu as showBalloonError,
43673
43673
  Ve as showBalloonMessage,
43674
43674
  we as showBalloonWarning,
@@ -43681,7 +43681,7 @@ export {
43681
43681
  kP as tryCastBinary,
43682
43682
  aR as tryDetermineMimetypeFromBinary,
43683
43683
  rR as tryDetermineMimetypeFromURL,
43684
- $c as tryFindObject,
43684
+ Wc as tryFindObject,
43685
43685
  MP as tryGetGuid,
43686
43686
  Dk as unregisterHotReloadType,
43687
43687
  N0 as unwatchWrite,