@needle-tools/engine 6.0.0-alpha.5 → 6.0.0-alpha.6

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 (57) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{materialx-B3qY8vPU.js → materialx-Bd9BE6LR.js} +1 -1
  3. package/dist/{materialx-BwYvA-4x.umd.cjs → materialx-CzRx9AGf.umd.cjs} +2 -2
  4. package/dist/{materialx-CTPhpPxI.min.js → materialx-x1m4IJd1.min.js} +1 -1
  5. package/dist/{needle-engine.bundle-_kAszB-k.min.js → needle-engine.bundle-D6mZl1dR.min.js} +9 -9
  6. package/dist/{needle-engine.bundle-D3nBMgfk.umd.cjs → needle-engine.bundle-DOHf03pR.umd.cjs} +9 -9
  7. package/dist/{needle-engine.bundle-4xlWxOTF.js → needle-engine.bundle-Hu7ZAxEI.js} +550 -555
  8. package/dist/needle-engine.d.ts +14 -14
  9. package/dist/needle-engine.js +562 -562
  10. package/dist/needle-engine.min.js +1 -1
  11. package/dist/needle-engine.umd.cjs +1 -1
  12. package/dist/{vendor-BQUQwut5.js → vendor-BatPc34p.js} +50 -41
  13. package/dist/{vendor-BJviq-Oq.umd.cjs → vendor-CDN1hirK.umd.cjs} +1 -1
  14. package/dist/{vendor-CdNldo8c.min.js → vendor-T07c_9f_.min.js} +1 -1
  15. package/lib/engine/api.d.ts +1 -1
  16. package/lib/engine/api.js +1 -1
  17. package/lib/engine/api.js.map +1 -1
  18. package/lib/engine/engine_init.js +2 -2
  19. package/lib/engine/engine_init.js.map +1 -1
  20. package/lib/engine/engine_license.d.ts +7 -7
  21. package/lib/engine/engine_license.js +73 -73
  22. package/lib/engine/engine_license.js.map +1 -1
  23. package/lib/engine/engine_networking_blob.js +3 -3
  24. package/lib/engine/engine_networking_blob.js.map +1 -1
  25. package/lib/engine/engine_utils_qrcode.js +2 -2
  26. package/lib/engine/engine_utils_qrcode.js.map +1 -1
  27. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js +2 -2
  28. package/lib/engine/webcomponents/needle menu/needle-menu-spatial.js.map +1 -1
  29. package/lib/engine/webcomponents/needle menu/needle-menu.js +5 -5
  30. package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
  31. package/lib/engine/webcomponents/needle-engine.js +2 -2
  32. package/lib/engine/webcomponents/needle-engine.js.map +1 -1
  33. package/lib/engine/webcomponents/needle-engine.loading.js +2 -2
  34. package/lib/engine/webcomponents/needle-engine.loading.js.map +1 -1
  35. package/lib/engine/xr/TempXRContext.js +2 -2
  36. package/lib/engine/xr/TempXRContext.js.map +1 -1
  37. package/lib/engine-components/Renderer.d.ts +1 -1
  38. package/lib/engine-components/Renderer.js +2 -11
  39. package/lib/engine-components/Renderer.js.map +1 -1
  40. package/lib/engine-components/export/usdz/USDZExporter.js +4 -4
  41. package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
  42. package/package.json +2 -2
  43. package/plugins/common/license.js +4 -4
  44. package/plugins/license/cli.js +7 -4
  45. package/plugins/vite/license.js +4 -4
  46. package/src/engine/api.ts +1 -1
  47. package/src/engine/engine_init.ts +2 -2
  48. package/src/engine/engine_license.ts +70 -70
  49. package/src/engine/engine_networking_blob.ts +3 -3
  50. package/src/engine/engine_utils_qrcode.ts +2 -2
  51. package/src/engine/webcomponents/needle menu/needle-menu-spatial.ts +2 -2
  52. package/src/engine/webcomponents/needle menu/needle-menu.ts +5 -5
  53. package/src/engine/webcomponents/needle-engine.loading.ts +2 -2
  54. package/src/engine/webcomponents/needle-engine.ts +2 -2
  55. package/src/engine/xr/TempXRContext.ts +2 -2
  56. package/src/engine-components/Renderer.ts +4 -13
  57. package/src/engine-components/export/usdz/USDZExporter.ts +4 -4
@@ -1,10 +1,10 @@
1
1
  var _P = Object.defineProperty;
2
2
  var bP = (s, e, t) => e in s ? _P(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
3
  var Xb = (s, e, t) => bP(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { Vector2 as ee, Vector3 as w, Vector4 as ve, Quaternion as U, Box3 as li, ShadowMaterial as ix, Euler as Be, PlaneGeometry as zn, WebGLRenderer as ca, PerspectiveCamera as pe, OrthographicCamera as Df, Scene as zi, Mesh as V, Texture as ke, Uniform as an, Color as oe, ShaderMaterial as ps, MeshStandardMaterial as Tt, Box3Helper as vP, GridHelper as nx, Object3D as E, Material as Pe, Matrix3 as Hy, Matrix4 as Z, Layers as Xo, PropertyBinding as ml, AnimationClip as Yt, KeyframeTrack as wP, FileLoader as sx, BufferGeometry as In, TextureLoader as Jr, MeshBasicMaterial as Le, DoubleSide as Ni, Group as Ln, CylinderGeometry as ox, SphereGeometry as qy, BoxGeometry as gl, SpriteMaterial as xP, Sprite as SP, Shape as CP, ExtrudeGeometry as PP, Ray as ms, CubeUVReflectionMapping as cn, LinearSRGBColorSpace as Ys, ShaderChunk as ai, Sphere as Fh, DataTexture as Xy, RGBAFormat as Ff, EquirectangularReflectionMapping as Vs, SRGBColorSpace as Ks, PMREMGenerator as kP, NeutralToneMapping as yl, AgXToneMapping as Bf, ACESFilmicToneMapping as jf, NoToneMapping as Nu, AxesHelper as ji, MathUtils as Gs, Fog as rx, DirectionalLight as bg, PointLight as Qy, PCFShadowMap as OP, BasicNodeLibrary as TP, WebGLRenderTarget as gs, DepthTexture as ax, NearestFilter as $u, EdgesGeometry as RP, LineSegments as vg, LineBasicMaterial as Wu, Line as ph, BufferAttribute as lt, Raycaster as Yy, ArrayCamera as EP, Plane as Rl, SkinnedMesh as zo, InterleavedBufferAttribute as lx, Skeleton as MP, Bone as AP, Audio as cx, AudioListener as hx, WebGLCubeRenderTarget as IP, CubeCamera as LP, LoopRepeat as DP, LoopOnce as wg, AnimationMixer as Ky, InterpolateLinear as FP, InterpolateDiscrete as BP, InterpolateSmooth as jP, QuaternionKeyframeTrack as Ec, BooleanKeyframeTrack as Qb, VectorKeyframeTrack as Mc, ColorKeyframeTrack as Yb, NumberKeyframeTrack as Qp, AudioContext as dx, CompressedTexture as UP, FrontSide as Qo, Camera as zP, Frustum as Kb, PositionalAudio as NP, AudioLoader as $P, BackSide as Uf, EquirectangularRefractionMapping as Zy, CubeTexture as Jy, CompressedCubeTexture as ux, MeshDepthMaterial as WP, CustomBlending as VP, MaxEquation as GP, AlwaysStencilFunc as HP, GreaterEqualStencilFunc as qP, NotEqualStencilFunc as XP, GreaterStencilFunc as QP, LessEqualStencilFunc as YP, EqualStencilFunc as KP, LessStencilFunc as ZP, NeverStencilFunc as Zb, InvertStencilOp as JP, DecrementWrapStencilOp as ek, IncrementWrapStencilOp as tk, DecrementStencilOp as ik, IncrementStencilOp as nk, ReplaceStencilOp as sk, ZeroStencilOp as ok, KeepStencilOp as rk, AmbientLight as ak, HemisphereLight as lk, Loader as ck, GLSL3 as hk, AlwaysDepth as dk, GreaterEqualDepth as uk, GreaterDepth as fk, LessEqualDepth as pk, LessDepth as mk, NotEqualDepth as gk, EqualDepth as yk, RawShaderMaterial as fx, BatchedMesh as Jb, LinearFilter as Vu, UnsignedByteType as _k, MeshPhysicalMaterial as ev, RingGeometry as bk, Line3 as vk, AdditiveBlending as px, LoadingManager as mx, BoxHelper as wk, SpotLight as xk, DirectionalLightHelper as Sk, CameraHelper as Ck, LOD as Pk, Triangle as kk, NormalBlending as Ok, ReinhardToneMapping as e_, LinearToneMapping as t_, EventDispatcher as i_, VideoTexture as Tk, CatmullRomCurve3 as Rk, MirroredRepeatWrapping as tv, ShaderLib as Gu, UniformsUtils as gx, MeshNormalMaterial as Ek, HalfFloatType as Yp, Source as Mk } from "./three-core.js";
4
+ import { Vector2 as ee, Vector3 as w, Vector4 as ve, Quaternion as z, Box3 as li, ShadowMaterial as ix, Euler as Be, PlaneGeometry as Un, WebGLRenderer as ca, PerspectiveCamera as pe, OrthographicCamera as Df, Scene as Ui, Mesh as V, Texture as ke, Uniform as an, Color as oe, ShaderMaterial as ps, MeshStandardMaterial as Tt, Box3Helper as vP, GridHelper as nx, Object3D as E, Material as Pe, Matrix3 as Hy, Matrix4 as Z, Layers as Xo, PropertyBinding as ml, AnimationClip as Yt, KeyframeTrack as wP, FileLoader as sx, BufferGeometry as In, TextureLoader as Jr, MeshBasicMaterial as Le, DoubleSide as Ni, Group as Ln, CylinderGeometry as ox, SphereGeometry as qy, BoxGeometry as gl, SpriteMaterial as xP, Sprite as SP, Shape as CP, ExtrudeGeometry as PP, Ray as ms, CubeUVReflectionMapping as cn, LinearSRGBColorSpace as Ys, ShaderChunk as ai, Sphere as Fh, DataTexture as Xy, RGBAFormat as Ff, EquirectangularReflectionMapping as Vs, SRGBColorSpace as Ks, PMREMGenerator as kP, NeutralToneMapping as yl, AgXToneMapping as Bf, ACESFilmicToneMapping as jf, NoToneMapping as Nu, AxesHelper as ji, MathUtils as Gs, Fog as rx, DirectionalLight as bg, PointLight as Qy, PCFShadowMap as OP, BasicNodeLibrary as TP, WebGLRenderTarget as gs, DepthTexture as ax, NearestFilter as $u, EdgesGeometry as RP, LineSegments as vg, LineBasicMaterial as Wu, Line as ph, BufferAttribute as lt, Raycaster as Yy, ArrayCamera as EP, Plane as Rl, SkinnedMesh as Uo, InterleavedBufferAttribute as lx, Skeleton as MP, Bone as AP, Audio as cx, AudioListener as hx, WebGLCubeRenderTarget as IP, CubeCamera as LP, LoopRepeat as DP, LoopOnce as wg, AnimationMixer as Ky, InterpolateLinear as FP, InterpolateDiscrete as BP, InterpolateSmooth as jP, QuaternionKeyframeTrack as Ec, BooleanKeyframeTrack as Qb, VectorKeyframeTrack as Mc, ColorKeyframeTrack as Yb, NumberKeyframeTrack as Qp, AudioContext as dx, CompressedTexture as zP, FrontSide as Qo, Camera as UP, Frustum as Kb, PositionalAudio as NP, AudioLoader as $P, BackSide as zf, EquirectangularRefractionMapping as Zy, CubeTexture as Jy, CompressedCubeTexture as ux, MeshDepthMaterial as WP, CustomBlending as VP, MaxEquation as GP, AlwaysStencilFunc as HP, GreaterEqualStencilFunc as qP, NotEqualStencilFunc as XP, GreaterStencilFunc as QP, LessEqualStencilFunc as YP, EqualStencilFunc as KP, LessStencilFunc as ZP, NeverStencilFunc as Zb, InvertStencilOp as JP, DecrementWrapStencilOp as ek, IncrementWrapStencilOp as tk, DecrementStencilOp as ik, IncrementStencilOp as nk, ReplaceStencilOp as sk, ZeroStencilOp as ok, KeepStencilOp as rk, AmbientLight as ak, HemisphereLight as lk, Loader as ck, GLSL3 as hk, AlwaysDepth as dk, GreaterEqualDepth as uk, GreaterDepth as fk, LessEqualDepth as pk, LessDepth as mk, NotEqualDepth as gk, EqualDepth as yk, RawShaderMaterial as fx, BatchedMesh as Jb, LinearFilter as Vu, UnsignedByteType as _k, MeshPhysicalMaterial as ev, RingGeometry as bk, Line3 as vk, AdditiveBlending as px, LoadingManager as mx, BoxHelper as wk, SpotLight as xk, DirectionalLightHelper as Sk, CameraHelper as Ck, LOD as Pk, Triangle as kk, NormalBlending as Ok, ReinhardToneMapping as e_, LinearToneMapping as t_, EventDispatcher as i_, VideoTexture as Tk, CatmullRomCurve3 as Rk, MirroredRepeatWrapping as tv, ShaderLib as Gu, UniformsUtils as gx, MeshNormalMaterial as Ek, HalfFloatType as Yp, Source as Mk } from "./three-core.js";
5
5
  import { createLoaders as n_, LODsManager as vr, NEEDLE_progressive as qe, getRaycastMesh as yx, calculateMeshLODLevel as Ak, getLODColor as Ik, addDracoAndKTX2Loaders as Lk, configureLoader as Dk, setKTX2TranscoderLocation as Fk, setDracoDecoderLocation as Bk } from "./gltf-progressive-B7lOWdLe.js";
6
- import { GroundedSkybox as _l, Font as jk, TextGeometry as Uk, FontLoader as zk, GLTFLoader as Zs, EXRLoader as s_, HDRLoader as _x, Stats as Nk, nodeFrame as Oi, TransformControlsGizmo as iv, OrbitControls as $k, PositionalAudioHelper as Wk, HorizontalBlurShader as Vk, VerticalBlurShader as Gk, GLTFExporter as bx, strToU8 as vx, zipSync as Hk, XRControllerModelFactory as qk, Line2 as Xk, LineGeometry as Qk, LineMaterial as Yk, OBJLoader as o_, FBXLoader as wx, TransformControls as Kk, InteractiveGroup as Zk, HTMLMesh as Jk, VertexNormalsHelper as eO, mergeVertices as tO } from "./three-examples.js";
7
- import { v5 as xg, ByteBuffer as iO, fetchProfile as nO, MotionController as sO, SIZE_PREFIX_LENGTH as xx, Builder as r_, attachNeedleIdsToLoadedGltf as oO, createNoise4D as rO, Matrix4 as Kp, BatchedParticleRenderer as aO, ParticleSystem as lO, RenderMode as Ds, ConstantColor as cO, Vector4 as hO, ConstantValue as dO, TrailParticle as nv, deriveInstanceId as Zp, PROJECT_DOCUMENT_KEY as uO, isProjectDocument as fO, applyDef as pO, applyOver as mO, evaluateProjectDocument as gO, resolveMaterialEntity as yO, createOverApplyState as _O, reportProjectIssues as bO, resolveDocumentRemoteSrc as vO, splitPath as wO, WorkerBase as xO, MeshBVH as SO } from "./vendor-BQUQwut5.js";
6
+ import { GroundedSkybox as _l, Font as jk, TextGeometry as zk, FontLoader as Uk, GLTFLoader as Zs, EXRLoader as s_, HDRLoader as _x, Stats as Nk, nodeFrame as Oi, TransformControlsGizmo as iv, OrbitControls as $k, PositionalAudioHelper as Wk, HorizontalBlurShader as Vk, VerticalBlurShader as Gk, GLTFExporter as bx, strToU8 as vx, zipSync as Hk, XRControllerModelFactory as qk, Line2 as Xk, LineGeometry as Qk, LineMaterial as Yk, OBJLoader as o_, FBXLoader as wx, TransformControls as Kk, InteractiveGroup as Zk, HTMLMesh as Jk, VertexNormalsHelper as eO, mergeVertices as tO } from "./three-examples.js";
7
+ import { v5 as xg, ByteBuffer as iO, fetchProfile as nO, MotionController as sO, SIZE_PREFIX_LENGTH as xx, Builder as r_, attachNeedleIdsToLoadedGltf as oO, createNoise4D as rO, Matrix4 as Kp, BatchedParticleRenderer as aO, ParticleSystem as lO, RenderMode as Ds, ConstantColor as cO, Vector4 as hO, ConstantValue as dO, TrailParticle as nv, deriveInstanceId as Zp, PROJECT_DOCUMENT_KEY as uO, isProjectDocument as fO, applyDef as pO, applyOver as mO, evaluateProjectDocument as gO, resolveMaterialEntity as yO, createOverApplyState as _O, reportProjectIssues as bO, resolveDocumentRemoteSrc as vO, splitPath as wO, WorkerBase as xO, MeshBVH as SO } from "./vendor-BatPc34p.js";
8
8
  import { __webpack_exports__default as Me, __webpack_exports__Text as Sx, __webpack_exports__update as CO, __webpack_exports__Block as Cx, SimpleStateBehavior as PO, __webpack_exports__Inline as Jp, __webpack_exports__FontLibrary as sv, ThreeMeshUI as ov } from "./three-mesh-ui-CkQrFn5S.js";
9
9
  const rv = typeof window < "u" ? window.location.search.includes("debugcontext") : !1;
10
10
  var de = /* @__PURE__ */ ((s) => (s.ContextRegistered = "ContextRegistered", s.ContextCreationStart = "ContextCreationStart", s.ContextCreated = "ContextCreated", s.ContextFirstFrameRendered = "ContextFirstFrameRendered", s.ContextDestroying = "ContextDestroying", s.ContextDestroyed = "ContextDestroyed", s.MissingCamera = "MissingCamera", s.ContextClearing = "ContextClearing", s.ContextCleared = "ContextCleared", s))(de || {});
@@ -123,12 +123,12 @@ Example: ${i} will show an onscreen console window.`
123
123
  console.groupEnd();
124
124
  }
125
125
  }, 100);
126
- function zf() {
126
+ function Uf() {
127
127
  return new URLSearchParams(globalThis.location?.search);
128
128
  }
129
129
  function x(s) {
130
130
  Ir && !Sg.includes(s) && Sg.push(s);
131
- const e = zf();
131
+ const e = Uf();
132
132
  if (e.has(s)) {
133
133
  const t = e.get(s);
134
134
  if (t) {
@@ -140,11 +140,11 @@ function x(s) {
140
140
  }
141
141
  Ir = x("help");
142
142
  function c5(s, e) {
143
- const t = zf();
143
+ const t = Uf();
144
144
  t.has(s) ? t.set(s, e) : t.append(s, e), document.location.search = t.toString();
145
145
  }
146
146
  function Hu(s, e, t = !0) {
147
- const i = zf();
147
+ const i = Uf();
148
148
  i.has(s) ? e === null ? i.delete(s) : i.set(s, e) : e !== null && i.append(s, e), t ? TO(s, i) : Px(s, i);
149
149
  }
150
150
  function av(s, e, t) {
@@ -349,7 +349,7 @@ function l_(s, e) {
349
349
  s[Fa] = new No(s, ["x", "y"]);
350
350
  else if (s instanceof w)
351
351
  s[Fa] = new No(s, ["x", "y", "z"]);
352
- else if (s instanceof ve || s instanceof U)
352
+ else if (s instanceof ve || s instanceof z)
353
353
  s[Fa] = new No(s, ["x", "y", "z", "w"]);
354
354
  else
355
355
  return !1;
@@ -567,7 +567,7 @@ function jO(s) {
567
567
  Pg.push(s);
568
568
  }
569
569
  let im = !1;
570
- function UO(...s) {
570
+ function zO(...s) {
571
571
  if (!im) {
572
572
  im = !0;
573
573
  try {
@@ -579,18 +579,18 @@ function UO(...s) {
579
579
  im = !1;
580
580
  }
581
581
  }
582
- const Rx = console.error, zO = function(...s) {
582
+ const Rx = console.error, UO = function(...s) {
583
583
  Rx.apply(console, s), WO(s), Fr(2, s, {}), $O(...s);
584
584
  };
585
585
  function NO(s) {
586
- c_ = !s, s ? console.error = zO : console.error = Rx;
586
+ c_ = !s, s ? console.error = UO : console.error = Rx;
587
587
  }
588
588
  function C5(s) {
589
589
  return NO(s);
590
590
  }
591
591
  let Ex = 0;
592
592
  function $O(...s) {
593
- Ex += 1, UO(...s);
593
+ Ex += 1, zO(...s);
594
594
  }
595
595
  function WO(s) {
596
596
  if (Array.isArray(s))
@@ -1046,7 +1046,7 @@ function nT(s, e, t) {
1046
1046
  const i = s.length(), n = e.length(), o = B.lerp(i, n, t);
1047
1047
  return s.lerp(e, t).normalize().multiplyScalar(o);
1048
1048
  }
1049
- const om = new U(), Ix = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI);
1049
+ const om = new z(), Ix = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI);
1050
1050
  function O5(s, e) {
1051
1051
  s.lookAt(e), s.quaternion.multiply(Ix);
1052
1052
  }
@@ -1066,7 +1066,7 @@ function $f(s, e, t = !0, i = !1) {
1066
1066
  }
1067
1067
  function T5(s, e, t, i = 1) {
1068
1068
  if (t) {
1069
- const n = z(0, 0, 0), o = e.x / window.innerWidth * 2 - 1, r = -(e.y / window.innerHeight) * 2 + 1;
1069
+ const n = U(0, 0, 0), o = e.x / window.innerWidth * 2 - 1, r = -(e.y / window.innerHeight) * 2 + 1;
1070
1070
  n.set(
1071
1071
  o,
1072
1072
  r,
@@ -1080,7 +1080,7 @@ function T5(s, e, t, i = 1) {
1080
1080
  return null;
1081
1081
  }
1082
1082
  const sT = new dn(() => new w(), 100);
1083
- function z(s, e, t) {
1083
+ function U(s, e, t) {
1084
1084
  const i = sT.get();
1085
1085
  return i.set(0, 0, 0), s instanceof w ? i.copy(s) : Array.isArray(s) ? i.set(s[0], s[1], s[2]) : s instanceof DOMPointReadOnly ? i.set(s.x, s.y, s.z) : typeof s == "number" ? (i.x = s, i.y = e !== void 0 ? e : i.x, i.z = t !== void 0 ? t : i.x) : typeof s == "object" && (i.x = s.x, i.y = s.y, i.z = s.z), i;
1086
1086
  }
@@ -1089,10 +1089,10 @@ function rT(s) {
1089
1089
  const e = oT.get();
1090
1090
  return s ? e.copy(s) : e.set(0, 0, 0), e;
1091
1091
  }
1092
- const aT = new dn(() => new U(), 100);
1092
+ const aT = new dn(() => new z(), 100);
1093
1093
  function Mi(s, e, t, i) {
1094
1094
  const n = aT.get();
1095
- return n.identity(), s instanceof U ? n.copy(s) : s instanceof DOMPointReadOnly ? n.set(s.x, s.y, s.z, s.w) : typeof s == "number" && e !== void 0 && t !== void 0 && i !== void 0 ? n.set(s, e, t, i) : typeof s == "object" && "x" in s && "y" in s && "z" in s && "w" in s && n.set(s.x, s.y, s.z, s.w), n;
1095
+ return n.identity(), s instanceof z ? n.copy(s) : s instanceof DOMPointReadOnly ? n.set(s.x, s.y, s.z, s.w) : typeof s == "number" && e !== void 0 && t !== void 0 && i !== void 0 ? n.set(s, e, t, i) : typeof s == "object" && "x" in s && "y" in s && "z" in s && "w" in s && n.set(s.x, s.y, s.z, s.w), n;
1096
1096
  }
1097
1097
  const h_ = new dn(() => new w(), 100), gv = /* @__PURE__ */ Symbol("lastMatrixWorldUpdateKey");
1098
1098
  function le(s, e = null, t = !0) {
@@ -1108,7 +1108,7 @@ function bl(s, e, t, i) {
1108
1108
  const n = h_.get();
1109
1109
  return n.set(e, t, i), un(s, n), s;
1110
1110
  }
1111
- const Qu = new dn(() => new U(), 100), Gr = new U(), rm = new U();
1111
+ const Qu = new dn(() => new z(), 100), Gr = new z(), rm = new z();
1112
1112
  function Ie(s, e = null) {
1113
1113
  if (!s) return Qu.get().identity();
1114
1114
  const t = e ?? Qu.get();
@@ -1138,11 +1138,11 @@ function mh(s, e) {
1138
1138
  const t = cT;
1139
1139
  s.parent.getWorldScale(t), s.scale.copy(e), s.scale.divide(t);
1140
1140
  }
1141
- const hT = new w(), yv = new U();
1141
+ const hT = new w(), yv = new z();
1142
1142
  function R5(s) {
1143
1143
  return Ie(s, yv), hT.set(0, 0, 1).applyQuaternion(yv);
1144
1144
  }
1145
- const dT = new dn(() => new w(), 100), _v = new U();
1145
+ const dT = new dn(() => new w(), 100), _v = new z();
1146
1146
  function uT(s, e) {
1147
1147
  return e || (e = dT.get().set(0, 0, 1)), Ie(s, _v), e.applyQuaternion(_v);
1148
1148
  }
@@ -1241,7 +1241,7 @@ class ea {
1241
1241
  static _blitMaterial;
1242
1242
  static _mesh;
1243
1243
  static get planeGeometry() {
1244
- return this._planeGeometry ??= new zn(2, 2, 1, 1);
1244
+ return this._planeGeometry ??= new Un(2, 2, 1, 1);
1245
1245
  }
1246
1246
  static get renderer() {
1247
1247
  return this._renderer ??= new ca({ antialias: !1, alpha: !0 });
@@ -1253,7 +1253,7 @@ class ea {
1253
1253
  return this._orthographicCam ??= new Df();
1254
1254
  }
1255
1255
  static get scene() {
1256
- return this._scene ??= new zi();
1256
+ return this._scene ??= new Ui();
1257
1257
  }
1258
1258
  static get blitMaterial() {
1259
1259
  return this._blitMaterial ??= new Yu();
@@ -1446,7 +1446,7 @@ function jx(s, e, t, i) {
1446
1446
  let bd = !1;
1447
1447
  function wT() {
1448
1448
  jO((...s) => {
1449
- R() && ce.Current?.isInXR && (Xc(!0), Ux("error", ...s));
1449
+ R() && ce.Current?.isInXR && (Xc(!0), zx("error", ...s));
1450
1450
  });
1451
1451
  }
1452
1452
  function Xc(s) {
@@ -1599,7 +1599,7 @@ function ST() {
1599
1599
  console[s] = function() {
1600
1600
  if (Qc[s]?.apply(console, arguments), !e)
1601
1601
  try {
1602
- e = !0, Ux(s, ...arguments);
1602
+ e = !0, zx(s, ...arguments);
1603
1603
  } finally {
1604
1604
  e = !1;
1605
1605
  }
@@ -1612,7 +1612,7 @@ function CT() {
1612
1612
  console[s] = Qc[s];
1613
1613
  }
1614
1614
  const lc = /* @__PURE__ */ new Map();
1615
- function Ux(s, ...e) {
1615
+ function zx(s, ...e) {
1616
1616
  try {
1617
1617
  switch (lc.clear(), s) {
1618
1618
  case "log":
@@ -1667,7 +1667,7 @@ function Ux(s, ...e) {
1667
1667
  if (o instanceof ee) return `(${i(o.x)}, ${i(o.y)})`;
1668
1668
  if (o instanceof w) return `(${i(o.x)}, ${i(o.y)}, ${i(o.z)})`;
1669
1669
  if (o instanceof ve) return `(${i(o.x)}, ${i(o.y)}, ${i(o.z)}, ${i(o.w)})`;
1670
- if (o instanceof U) return `(${i(o.x)}, ${i(o.y)}, ${i(o.z)}, ${i(o.w)})`;
1670
+ if (o instanceof z) return `(${i(o.x)}, ${i(o.y)}, ${i(o.z)}, ${i(o.w)})`;
1671
1671
  if (o instanceof Pe || o instanceof ke) return o.name;
1672
1672
  if (o instanceof Hy) return `[${o.elements.join(", ")}]`;
1673
1673
  if (o instanceof Z) return `[${o.elements.join(", ")}]`;
@@ -1710,7 +1710,7 @@ function Bh(s, e) {
1710
1710
  $e(s, { ...e, type: ln.Error });
1711
1711
  }
1712
1712
  let _i, wr = null, us = null, cc = !1, xv = null;
1713
- const zx = "terminal", Eg = x("console");
1713
+ const Ux = "terminal", Eg = x("console");
1714
1714
  let vd, wd;
1715
1715
  function Ku() {
1716
1716
  if (vd === void 0)
@@ -1757,7 +1757,7 @@ function RT() {
1757
1757
  $x(), us && (us.setAttribute("error", "true"), us.innerText = "🤬");
1758
1758
  }
1759
1759
  function ET() {
1760
- us && (us.removeAttribute("error"), us.innerText = zx);
1760
+ us && (us.removeAttribute("error"), us.innerText = Ux);
1761
1761
  }
1762
1762
  function MT(s = !1) {
1763
1763
  if (_i !== void 0 || cc) return;
@@ -1776,7 +1776,7 @@ function MT(s = !1) {
1776
1776
  }), t && console.warn("🌵 ?console=network: vConsole's fetch proxy is enabled — WebAssembly streaming (e.g. gaussian splats) will fail on this page");
1777
1777
  const i = globalThis["needle:codegen_files"];
1778
1778
  if (i && i.length > 0 && _i.addPlugin(AT()), _i.addPlugin(FT()), _i.addPlugin(BT()), wr = XT(), wr && (wr[PT] = wr.parentElement, wr.style.position = "absolute", wr.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), _i.setSwitchPosition(20, 30), us = qT(), us) {
1779
- us.innerText = zx, us.addEventListener("click", ET);
1779
+ us.innerText = Ux, us.addEventListener("click", ET);
1780
1780
  const n = document.createElement("style"), o = 40;
1781
1781
  n.innerHTML = `
1782
1782
  #__vconsole .vc-switch {
@@ -1949,7 +1949,7 @@ function BT() {
1949
1949
  let t = `<div style='${Mg}'>`;
1950
1950
  const i = jT();
1951
1951
  i.length > 0 && (t += `<h3 style='${xr}'>General GPU Info</h3>`, t += is(i, !1));
1952
- const n = zT();
1952
+ const n = UT();
1953
1953
  n.length > 0 && (t += `<h3 style='${xr}'>WebGL</h3>`, t += is(n, !1));
1954
1954
  const o = NT();
1955
1955
  o.length > 0 && (t += `<h3 style='${xr}'>WebGL 2 Features</h3>`, t += is(o, !1));
@@ -1973,12 +1973,12 @@ function jT() {
1973
1973
  const l = Gx();
1974
1974
  if (l) {
1975
1975
  s.push({ label: "GPU", value: l.renderer }), s.push({ label: "Driver", value: l.vendor }), s.push({ label: "ANGLE", value: l.angle || "Not detected" });
1976
- const c = UT(l.renderer);
1976
+ const c = zT(l.renderer);
1977
1977
  c && (c.manufacturer && s.push({ label: "Manufacturer", value: c.manufacturer }), c.cardVersion && s.push({ label: "Card Version", value: c.cardVersion }), c.brand && s.push({ label: "Brand", value: c.brand }), s.push({ label: "Integrated", value: c.integrated ? "Yes" : "No" }), c.layer && s.push({ label: "WebGL Layer", value: c.layer }));
1978
1978
  }
1979
1979
  return s;
1980
1980
  }
1981
- function UT(s) {
1981
+ function zT(s) {
1982
1982
  if (!s) return null;
1983
1983
  const e = (c, h) => {
1984
1984
  const d = h.match(c);
@@ -1995,7 +1995,7 @@ function UT(s) {
1995
1995
  card: i
1996
1996
  };
1997
1997
  }
1998
- function zT() {
1998
+ function UT() {
1999
1999
  const s = [], e = Gx();
2000
2000
  return e && (s.push({ label: "📊 WebGL Version", value: e.version }), s.push({ label: "🎮 WebGL 2 Available", value: Vx() })), s;
2001
2001
  }
@@ -2372,14 +2372,14 @@ ir('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
2372
2372
  ir('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
2373
2373
  ir('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
2374
2374
  ir('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
2375
- ir('globalThis["__NEEDLE_ENGINE_VERSION__"] = "6.0.0-alpha.5";');
2375
+ ir('globalThis["__NEEDLE_ENGINE_VERSION__"] = "6.0.0-alpha.6";');
2376
2376
  ir('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
2377
- ir('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Oct 05 2026 13:00:42 GMT+0000 (Coordinated Universal Time)";');
2377
+ ir('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue Oct 06 2026 10:27:28 GMT+0000 (Coordinated Universal Time)";');
2378
2378
  ir('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
2379
- const vi = "6.0.0-alpha.5", gh = "undefined", Zu = "Mon Oct 05 2026 13:00:42 GMT+0000 (Coordinated Universal Time)";
2379
+ const vi = "6.0.0-alpha.6", gh = "undefined", Zu = "Tue Oct 06 2026 10:27:28 GMT+0000 (Coordinated Universal Time)";
2380
2380
  qx && console.log(`Engine version: ${vi} (generator: ${gh})
2381
2381
  Project built at ${Zu}`);
2382
- const Br = NEEDLE_PUBLIC_KEY, zs = "needle_isActiveInHierarchy", Ba = "builtin_components", $o = "needle_editor_guid";
2382
+ const Br = NEEDLE_PUBLIC_KEY, Us = "needle_isActiveInHierarchy", Ba = "builtin_components", $o = "needle_editor_guid";
2383
2383
  function ir(s) {
2384
2384
  try {
2385
2385
  (0, eval)(s);
@@ -2781,9 +2781,9 @@ function vu(s, e, t) {
2781
2781
  return i.add(n), n;
2782
2782
  }
2783
2783
  const wu = [];
2784
- let Ui = "", Yc = "";
2784
+ let zi = "", Yc = "";
2785
2785
  if (Ce)
2786
- if (console.log("License Type: " + Ui), Yc) {
2786
+ if (console.log("License Type: " + zi), Yc) {
2787
2787
  console.log("License JWT: " + Yc);
2788
2788
  try {
2789
2789
  const s = JSON.parse(atob(Yc.split(".")[1].replace(/-/g, "+").replace(/_/g, "/")));
@@ -2794,7 +2794,7 @@ if (Ce)
2794
2794
  } else
2795
2795
  console.log("License JWT: (none)");
2796
2796
  function Hs() {
2797
- switch (Ui) {
2797
+ switch (zi) {
2798
2798
  case "pro":
2799
2799
  case "enterprise":
2800
2800
  return !0;
@@ -2802,10 +2802,10 @@ function Hs() {
2802
2802
  return !1;
2803
2803
  }
2804
2804
  function Hf() {
2805
- return Ui === "indie";
2805
+ return zi === "indie";
2806
2806
  }
2807
2807
  function b_() {
2808
- return Ui === "edu";
2808
+ return zi === "edu";
2809
2809
  }
2810
2810
  function Dn() {
2811
2811
  return Hs() || Hf() || b_();
@@ -2893,7 +2893,7 @@ async function fR() {
2893
2893
  }
2894
2894
  }
2895
2895
  const e = await uR(s);
2896
- e ? (Ui = e, Ce && console.log("License type set from verified JWT: " + e), Ac(Dn())) : (Ui = "basic", Ce && s && console.warn("JWT verification failed — license reset to basic"));
2896
+ e ? (zi = e, Ce && console.log("License type set from verified JWT: " + e), Ac(Dn())) : (zi = "basic", Ce && s && console.warn("JWT verification failed — license reset to basic"));
2897
2897
  }
2898
2898
  var ct;
2899
2899
  ((s) => {
@@ -3148,7 +3148,7 @@ var ct;
3148
3148
  }
3149
3149
  })(ct || (ct = {}));
3150
3150
  function pR() {
3151
- Ui === "" && (Ui = "basic"), Fg = fR(), nf = mR(), ct.init(), ce.registerCallback(de.ContextRegistered, (s) => {
3151
+ zi === "" && (zi = "basic"), Fg = fR(), nf = mR(), ct.init(), ce.registerCallback(de.ContextRegistered, (s) => {
3152
3152
  yR(s.context), gR(s.context), vu(s.context, () => bR(s.context), 2e3);
3153
3153
  }), ce.registerCallback(de.ContextCreated, (s) => {
3154
3154
  ct.attachContextLossMonitor(s.context), ct.attachPerformanceMonitor(s.context);
@@ -3157,18 +3157,18 @@ function pR() {
3157
3157
  let nf, Bg = !1, jg = "";
3158
3158
  async function mR() {
3159
3159
  if (nf) return nf;
3160
- if (Fg && await Fg, Ui === "basic")
3160
+ if (Fg && await Fg, zi === "basic")
3161
3161
  try {
3162
3162
  const s = "https://needle.tools/api/v1/needle-engine/check?location=" + encodeURIComponent(window.location.href) + "&version=" + vi + "&generator=" + encodeURIComponent(gh), e = await fetch(s, {
3163
3163
  method: "GET"
3164
3164
  }).catch((t) => {
3165
3165
  Ce && console.error("License check failed", t);
3166
3166
  });
3167
- e?.status === 200 ? (Bg = !1, Ce && console.log("License check succeeded"), Ui = "pro", Ac(!0)) : e?.status === 403 ? (Ac(!1), Bg = !0, jg = await e.text()) : (Ac(!1), Ce && console.log("License check failed with status " + e?.status));
3167
+ e?.status === 200 ? (Bg = !1, Ce && console.log("License check succeeded"), zi = "pro", Ac(!0)) : e?.status === 403 ? (Ac(!1), Bg = !0, jg = await e.text()) : (Ac(!1), Ce && console.log("License check failed with status " + e?.status));
3168
3168
  } catch (s) {
3169
3169
  Ac(!1), Ce && console.error("License check failed", s);
3170
3170
  }
3171
- else Ce && console.log('Runtime license check is skipped because license is already applied as "' + Ui + '"');
3171
+ else Ce && console.log('Runtime license check is skipped because license is already applied as "' + zi + '"');
3172
3172
  }
3173
3173
  async function gR(s) {
3174
3174
  function e() {
@@ -3227,11 +3227,11 @@ async function yR(s) {
3227
3227
  async function cm(s) {
3228
3228
  let e = !1;
3229
3229
  s.domElement.addEventListener("ready", () => e = !0), await nf?.catch(() => {
3230
- }), !(Hs() || Hf()) && (Dn() === !1 && _R(), e ? Ug(s) : s.domElement.addEventListener("ready", () => {
3231
- Ug(s);
3230
+ }), !(Hs() || Hf()) && (Dn() === !1 && _R(), e ? zg(s) : s.domElement.addEventListener("ready", () => {
3231
+ zg(s);
3232
3232
  }));
3233
3233
  }
3234
- function Ug(s) {
3234
+ function zg(s) {
3235
3235
  const e = `
3236
3236
  position: relative;
3237
3237
  display: block;
@@ -3243,7 +3243,7 @@ function Ug(s) {
3243
3243
  padding: 10px;
3244
3244
  padding-left: 30px;
3245
3245
  `;
3246
- if (Ui === "edu")
3246
+ if (zi === "edu")
3247
3247
  navigator.webdriver ? console.log("This project is supported by Needle for Education – https://needle.tools") : console.log("%c This project is supported by Needle for Education – https://needle.tools", e);
3248
3248
  else
3249
3249
  return;
@@ -3280,7 +3280,7 @@ function Ug(s) {
3280
3280
  }, 1e3);
3281
3281
  b_() && vu(s, () => {
3282
3282
  clearInterval(o), t?.remove(), vu(s, () => {
3283
- s.domElement.parentNode && Ug(s);
3283
+ s.domElement.parentNode && zg(s);
3284
3284
  }, 1e3 * 60 * 5);
3285
3285
  }, 2e4);
3286
3286
  }
@@ -3318,7 +3318,7 @@ async function bR(s) {
3318
3318
  const e = "https://needle.tools/api/v1/needle-engine/ping";
3319
3319
  if (e) {
3320
3320
  const t = window.location.href.split("?")[0], n = {
3321
- license: Ui,
3321
+ license: zi,
3322
3322
  url: t,
3323
3323
  hostname: window.location.hostname,
3324
3324
  pathname: window.location.pathname,
@@ -3596,7 +3596,7 @@ function iS(s, e, t) {
3596
3596
  t?.saveInRoom === !1 && (i.dontSave = !0), e.send("instance-destroyed", i, ns.Queued);
3597
3597
  }
3598
3598
  const xu = [];
3599
- function U5(s) {
3599
+ function z5(s) {
3600
3600
  return xu.push(s), () => {
3601
3601
  const e = xu.indexOf(s);
3602
3602
  e >= 0 && xu.splice(e, 1);
@@ -3617,7 +3617,7 @@ function PR(s) {
3617
3617
  }
3618
3618
  });
3619
3619
  }
3620
- class z5 {
3620
+ class U5 {
3621
3621
  /** File to download */
3622
3622
  filename;
3623
3623
  /** Checksum to verify its the correct file */
@@ -3671,7 +3671,7 @@ function nS(s, e, t, i) {
3671
3671
  if (l.guid) {
3672
3672
  sf && console.log("[Local] new instance", "gameobject:", r?.guid);
3673
3673
  const c = new kR(n.guid, l.guid);
3674
- c.seed = a, e.deleteOnDisconnect === !0 && (c.deleteStateOnDisconnect = !0), o && (o.position && (Array.isArray(o.position) ? c.position = { x: o.position[0], y: o.position[1], z: o.position[2] } : c.position = { x: o.position.x, y: o.position.y, z: o.position.z }), o.rotation && (o.rotation instanceof Be ? o.rotation = new U().setFromEuler(o.rotation) : o.rotation instanceof Array && (o.rotation = new U().fromArray(o.rotation)), c.rotation = { x: o.rotation.x, y: o.rotation.y, z: o.rotation.z, w: o.rotation.w }), o.scale && (Array.isArray(o.scale) ? c.scale = { x: o.scale[0], y: o.scale[1], z: o.scale[2] } : c.scale = { x: o.scale.x, y: o.scale.y, z: o.scale.z })), c.position || (c.position = { x: l.position.x, y: l.position.y, z: l.position.z }), c.rotation || (c.rotation = { x: l.quaternion.x, y: l.quaternion.y, z: l.quaternion.z, w: l.quaternion.w }), c.scale || (c.scale = { x: l.scale.x, y: l.scale.y, z: l.scale.z }), c.visible = n.visible, o?.parent && (typeof o.parent == "string" ? c.parent = o.parent : o.parent?.guid ? c.parent = o.parent.guid : o.parent instanceof zi ? c.parent = "scene" : console.warn("Unsupported parent type in sync instantiate options: " + o.parent?.name)), c.hostData = t, i === !1 && (c.dontSave = !0), !e?.context?.connection && R() && console.debug("Object will be instantiated but it will not be synced: not connected", n.guid), e.context.connection.isInRoom && ja.push(new WeakRef(l)), e?.context?.connection.send("new-instance-created", c);
3674
+ c.seed = a, e.deleteOnDisconnect === !0 && (c.deleteStateOnDisconnect = !0), o && (o.position && (Array.isArray(o.position) ? c.position = { x: o.position[0], y: o.position[1], z: o.position[2] } : c.position = { x: o.position.x, y: o.position.y, z: o.position.z }), o.rotation && (o.rotation instanceof Be ? o.rotation = new z().setFromEuler(o.rotation) : o.rotation instanceof Array && (o.rotation = new z().fromArray(o.rotation)), c.rotation = { x: o.rotation.x, y: o.rotation.y, z: o.rotation.z, w: o.rotation.w }), o.scale && (Array.isArray(o.scale) ? c.scale = { x: o.scale[0], y: o.scale[1], z: o.scale[2] } : c.scale = { x: o.scale.x, y: o.scale.y, z: o.scale.z })), c.position || (c.position = { x: l.position.x, y: l.position.y, z: l.position.z }), c.rotation || (c.rotation = { x: l.quaternion.x, y: l.quaternion.y, z: l.quaternion.z, w: l.quaternion.w }), c.scale || (c.scale = { x: l.scale.x, y: l.scale.y, z: l.scale.z }), c.visible = n.visible, o?.parent && (typeof o.parent == "string" ? c.parent = o.parent : o.parent?.guid ? c.parent = o.parent.guid : o.parent instanceof Ui ? c.parent = "scene" : console.warn("Unsupported parent type in sync instantiate options: " + o.parent?.name)), c.hostData = t, i === !1 && (c.dontSave = !0), !e?.context?.connection && R() && console.debug("Object will be instantiated but it will not be synced: not connected", n.guid), e.context.connection.isInRoom && ja.push(new WeakRef(l)), e?.context?.connection.send("new-instance-created", c);
3675
3675
  } else console.warn("Missing guid, can not send new instance event", l);
3676
3676
  }
3677
3677
  return r;
@@ -3690,7 +3690,7 @@ function RR(s) {
3690
3690
  return;
3691
3691
  }
3692
3692
  const o = new so();
3693
- i.position && (o.position = new w(i.position.x, i.position.y, i.position.z)), i.rotation && (o.rotation = new U(i.rotation.x, i.rotation.y, i.rotation.z, i.rotation.w)), i.scale && (o.scale = new w(i.scale.x, i.scale.y, i.scale.z)), o.parent = i.parent, i.seed && (o.idProvider = new xt(i.seed)), o.visible = i.visible, o.context = s, sf && s.alias && console.log("[Remote] instantiate in: " + s.alias);
3693
+ i.position && (o.position = new w(i.position.x, i.position.y, i.position.z)), i.rotation && (o.rotation = new z(i.rotation.x, i.rotation.y, i.rotation.z, i.rotation.w)), i.scale && (o.scale = new w(i.scale.x, i.scale.y, i.scale.z)), o.parent = i.parent, i.seed && (o.idProvider = new xt(i.seed)), o.visible = i.visible, o.context = s, sf && s.alias && console.log("[Remote] instantiate in: " + s.alias);
3694
3694
  const r = Zo(n, o);
3695
3695
  if (ja.push(new WeakRef(r)), r) {
3696
3696
  i.parent === "scene" && s.scene.add(r), sf && console.log("[Remote] new instance", "gameobject:", r?.guid, n);
@@ -3757,7 +3757,7 @@ const jh = x("gizmos"), Rt = x("debugextension"), v_ = x("debugresolvedependenci
3757
3757
  async function w_(s, e) {
3758
3758
  v_ && console.log(s, e);
3759
3759
  const t = [];
3760
- zg(LR, s, e, t);
3760
+ Ug(LR, s, e, t);
3761
3761
  const i = await Promise.all(t);
3762
3762
  return typeof e == "string" && i.length === 1 ? i[0] : i;
3763
3763
  }
@@ -3767,7 +3767,7 @@ function DR(s, e) {
3767
3767
  function FR(s, e) {
3768
3768
  s["needle:identifier"] = e;
3769
3769
  }
3770
- function zg(s, e, t, i) {
3770
+ function Ug(s, e, t, i) {
3771
3771
  if (typeof t == "object" && t !== void 0 && t !== null)
3772
3772
  for (const n of Object.keys(t)) {
3773
3773
  const o = t[n];
@@ -3796,9 +3796,9 @@ function zg(s, e, t, i) {
3796
3796
  break;
3797
3797
  }
3798
3798
  }
3799
- typeof a == "object" && zg(s, e, a, i);
3799
+ typeof a == "object" && Ug(s, e, a, i);
3800
3800
  }
3801
- else typeof o == "object" && zg(s, e, o, i);
3801
+ else typeof o == "object" && Ug(s, e, o, i);
3802
3802
  }
3803
3803
  else if (typeof t == "string") {
3804
3804
  const n = Bv(s, e, t);
@@ -3881,7 +3881,7 @@ class jR {
3881
3881
  }
3882
3882
  }
3883
3883
  const ss = x("debugserializer");
3884
- class UR {
3884
+ class zR {
3885
3885
  register(e, t) {
3886
3886
  if (this.typeMap.has(e)) {
3887
3887
  const i = this.typeMap.get(e);
@@ -3922,7 +3922,7 @@ class UR {
3922
3922
  ss && console.warn("No serializer found for " + i, e, e.name, e.constructor.name);
3923
3923
  }
3924
3924
  }
3925
- const of = new UR();
3925
+ const of = new zR();
3926
3926
  class Vi {
3927
3927
  name;
3928
3928
  // register<T>(c: Constructor<T> | Constructor<T>[])
@@ -3987,7 +3987,7 @@ class Xf {
3987
3987
  this.root = e;
3988
3988
  }
3989
3989
  }
3990
- function zR(s) {
3990
+ function UR(s) {
3991
3991
  return s && typeof s == "object" && (typeof s.$serializedTypes == "object" || typeof s.onBeforeDeserialize == "function" || typeof s.onBeforeDeserializeMember == "function" || typeof s.onAfterDeserializeMember == "function" || typeof s.onAfterDeserialize == "function");
3992
3992
  }
3993
3993
  function NR(s, e) {
@@ -4743,7 +4743,7 @@ class _s extends EventTarget {
4743
4743
  }
4744
4744
  };
4745
4745
  }
4746
- class Uv {
4746
+ class zv {
4747
4747
  _listeners = /* @__PURE__ */ new Map();
4748
4748
  emit(e, t) {
4749
4749
  const i = this._listeners.get(e);
@@ -4819,7 +4819,7 @@ function* nE(s) {
4819
4819
  for (s.then(() => e = !1), s.catch(() => e = !1); e; )
4820
4820
  yield;
4821
4821
  }
4822
- var Uh = /* @__PURE__ */ ((s) => (s[s.Quad = 0] = "Quad", s[s.Cube = 1] = "Cube", s[s.Sphere = 2] = "Sphere", s[s.Cylinder = 3] = "Cylinder", s[s.RoundedCube = 10] = "RoundedCube", s))(Uh || {});
4822
+ var zh = /* @__PURE__ */ ((s) => (s[s.Quad = 0] = "Quad", s[s.Cube = 1] = "Cube", s[s.Sphere = 2] = "Sphere", s[s.Cylinder = 3] = "Cylinder", s[s.RoundedCube = 10] = "RoundedCube", s))(zh || {});
4823
4823
  class ha {
4824
4824
  /**
4825
4825
  * Creates a 3D text object
@@ -4837,7 +4837,7 @@ class ha {
4837
4837
  }
4838
4838
  static #t(e, t, i) {
4839
4839
  const n = i?.depth || 0.1;
4840
- return new Uk(e, {
4840
+ return new zk(e, {
4841
4841
  font: t,
4842
4842
  size: 1,
4843
4843
  depth: n,
@@ -4863,7 +4863,7 @@ class ha {
4863
4863
  case "Quad":
4864
4864
  case 0:
4865
4865
  {
4866
- const o = new zn(1, 1, 1, 1), r = t?.material ?? new Tt({ color: n });
4866
+ const o = new Un(1, 1, 1, 1), r = t?.material ?? new Tt({ color: n });
4867
4867
  t?.texture && "map" in r && (r.map = t.texture), i = new V(o, r), i.name = "Quad";
4868
4868
  }
4869
4869
  break;
@@ -4957,7 +4957,7 @@ function oE(s) {
4957
4957
  const n = Pd.get(e);
4958
4958
  if (n) return n;
4959
4959
  }
4960
- const t = new zk(), i = new Promise((n, o) => {
4960
+ const t = new Uk(), i = new Promise((n, o) => {
4961
4961
  t.load(e, (r) => {
4962
4962
  Pd.set(e, r), n(r);
4963
4963
  }, void 0, o);
@@ -4979,17 +4979,17 @@ function rE(s, e) {
4979
4979
  const t = Nv();
4980
4980
  t.name = "ShaderBall-Placeholder";
4981
4981
  const i = t.children[0];
4982
- i?.type === "Mesh" && zv(i, e), s.add(t);
4982
+ i?.type === "Mesh" && Uv(i, e), s.add(t);
4983
4983
  }
4984
4984
  fm.then((t) => {
4985
4985
  s.children.forEach((o) => {
4986
4986
  o.name === "ShaderBall-Placeholder" && s.remove(o);
4987
4987
  });
4988
4988
  const i = t.clone(), n = i.children[0];
4989
- n?.type === "Mesh" && (n.geometry.attributes.tangent || n.geometry.computeTangents(), zv(n, e)), s.add(i);
4989
+ n?.type === "Mesh" && (n.geometry.attributes.tangent || n.geometry.computeTangents(), Uv(n, e)), s.add(i);
4990
4990
  });
4991
4991
  }
4992
- function zv(s, e) {
4992
+ function Uv(s, e) {
4993
4993
  if (e?.color || e?.material || e?.texture) {
4994
4994
  const i = e?.material ?? s.material?.clone() ?? new Tt();
4995
4995
  e.color && "color" in i && i.color instanceof oe && i.color.set(e.color), e?.texture && "map" in i && (i.map = e.texture), s.material = i;
@@ -5116,7 +5116,7 @@ class W5 {
5116
5116
  this.key = e.key, this.keyType = e.type, this.source = e;
5117
5117
  }
5118
5118
  }
5119
- var Ur = /* @__PURE__ */ ((s) => (s[s.Early = -100] = "Early", s[s.Default = 0] = "Default", s[s.Late = 100] = "Late", s))(Ur || {});
5119
+ var zr = /* @__PURE__ */ ((s) => (s[s.Early = -100] = "Early", s[s.Default = 0] = "Default", s[s.Late = 100] = "Late", s))(zr || {});
5120
5120
  class aE {
5121
5121
  /** This is a list of event listeners per event type (e.g. pointerdown, pointerup, keydown...). Each entry contains a priority and list of listeners.
5122
5122
  * That way users can control if they want to receive events before or after other listeners (e.g subscribe to pointer events before the EventSystem receives them) - this allows certain listeners to be always invoked first (or last) and stop propagation
@@ -5688,7 +5688,7 @@ class aE {
5688
5688
  this.convertScreenspaceToRaycastSpace(r);
5689
5689
  const a = this.tempFarPlaneVector.set(r.x, r.y, 1);
5690
5690
  r.unproject(o), a.unproject(o);
5691
- const l = o.worldUp || z(0, 1, 0).applyQuaternion(Ie(o));
5691
+ const l = o.worldUp || U(0, 1, 0).applyQuaternion(Ie(o));
5692
5692
  this.tempLookMatrix.lookAt(a, r, l), n.position.set(r.x, r.y, r.z), n.quaternion.setFromRotationMatrix(this.tempLookMatrix);
5693
5693
  }
5694
5694
  return n;
@@ -6007,7 +6007,7 @@ TEX ` + i.texture_lod;
6007
6007
  ` + (n.lastScreenCoverage * 100).toFixed(1) + `% cov
6008
6008
  ` + (n.lastCentrality * 100).toFixed(1) + `% centr
6009
6009
  ` + (Od.min.x.toFixed(2) + "-" + Od.max.x.toFixed(2) + "x" + Od.min.y.toFixed(2) + "-" + Od.max.y.toFixed(2)) + " scr"), n.lastScreenCoverage > 0.1) {
6010
- const y = e, g = y.worldForward, _ = y.worldPosition, C = z(g).multiplyScalar(c * 0.7).add(l), P = C.distanceTo(_), T = h[Math.min(h.length - 1, Math.max(0, o))] + "88", I = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, F = e.isPerspectiveCamera ? Math.tan(e.fov * Math.PI / 180 / 2) : 1;
6010
+ const y = e, g = y.worldForward, _ = y.worldPosition, C = U(g).multiplyScalar(c * 0.7).add(l), P = C.distanceTo(_), T = h[Math.min(h.length - 1, Math.max(0, o))] + "88", I = this.context.domHeight > 0 ? screen.height / this.context.domHeight : 1, F = e.isPerspectiveCamera ? Math.tan(e.fov * Math.PI / 180 / 2) : 1;
6011
6011
  j.DrawLabel(C, b, P * 0.012 * I * F, void 0, 16777215, T);
6012
6012
  }
6013
6013
  }
@@ -6039,7 +6039,7 @@ class fE {
6039
6039
  this._url = e;
6040
6040
  }
6041
6041
  async start() {
6042
- const e = await import("./vendor-BQUQwut5.js").then((o) => o.index), t = e.default?.WebsocketBuilder ?? e.WebsocketBuilder, i = e.default?.ExponentialBackoff ?? e.ExponentialBackoff, n = new t(this._url).withMaxRetries(10).withBackoff(new i(2e3, 4)).onOpen(() => {
6042
+ const e = await import("./vendor-BatPc34p.js").then((o) => o.index), t = e.default?.WebsocketBuilder ?? e.WebsocketBuilder, i = e.default?.ExponentialBackoff ?? e.ExponentialBackoff, n = new t(this._url).withMaxRetries(10).withBackoff(new i(2e3, 4)).onOpen(() => {
6043
6043
  this._ws = n, this.onOpen?.();
6044
6044
  }).onClose(() => {
6045
6045
  this.onClose?.();
@@ -6082,7 +6082,7 @@ function dc(s) {
6082
6082
  }
6083
6083
  const L = {
6084
6084
  MaterialX: dc(
6085
- () => import("./materialx-B3qY8vPU.js")
6085
+ () => import("./materialx-Bd9BE6LR.js")
6086
6086
  ),
6087
6087
  RAPIER_PHYSICS: dc(
6088
6088
  () => import("./rapier-B3oL1ap-.js")
@@ -6094,7 +6094,7 @@ const L = {
6094
6094
  () => import("./postprocessing-BPL7lzln.js").then((s) => s.N8AO)
6095
6095
  ),
6096
6096
  PEERJS: dc(
6097
- () => import("./vendor-BQUQwut5.js").then((s) => s.bundler)
6097
+ () => import("./vendor-BatPc34p.js").then((s) => s.bundler)
6098
6098
  )
6099
6099
  };
6100
6100
  let S_;
@@ -6862,12 +6862,12 @@ function CE(s) {
6862
6862
  }
6863
6863
  }), Hv.set(s, e)), e;
6864
6864
  }
6865
- const zh = new Uint8Array(4);
6866
- zh[0] = 255;
6867
- zh[1] = 255;
6868
- zh[2] = 255;
6869
- zh[3] = 255;
6870
- const PE = new Xy(zh, 1, 1, Ff);
6865
+ const Uh = new Uint8Array(4);
6866
+ Uh[0] = 255;
6867
+ Uh[1] = 255;
6868
+ Uh[2] = 255;
6869
+ Uh[3] = 255;
6870
+ const PE = new Xy(Uh, 1, 1, Ff);
6871
6871
  function C_(s, e = 1) {
6872
6872
  const t = "alpha" in s, i = e * e, n = new Uint8Array(4 * i), o = Math.floor(s.r * 255), r = Math.floor(s.g * 255), a = Math.floor(s.b * 255);
6873
6873
  for (let c = 0; c < i; c++) {
@@ -7590,14 +7590,14 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
7590
7590
  this.restoreTonemapping(), this._handler?.dispose(), this._handler = null, this._composer = null, this._effects.length = 0;
7591
7591
  }
7592
7592
  }
7593
- const zr = [], ku = [];
7593
+ const Ur = [], ku = [];
7594
7594
  var qg;
7595
7595
  ((s) => {
7596
7596
  function e(i, n) {
7597
7597
  const o = { name: n?.name, priority: n?.priority ?? 0, callback: i };
7598
- return zr.push(o), zr.sort((r, a) => r.priority === a.priority ? 0 : r.priority > a.priority ? -1 : 1), () => {
7599
- const r = zr.indexOf(o);
7600
- r >= 0 && zr.splice(r, 1);
7598
+ return Ur.push(o), Ur.sort((r, a) => r.priority === a.priority ? 0 : r.priority > a.priority ? -1 : 1), () => {
7599
+ const r = Ur.indexOf(o);
7600
+ r >= 0 && Ur.splice(r, 1);
7601
7601
  };
7602
7602
  }
7603
7603
  s.onCreateCustomModelLoader = e;
@@ -7609,7 +7609,7 @@ var qg;
7609
7609
  }
7610
7610
  s.onDetermineModelMimetype = t;
7611
7611
  })(qg || (qg = {}));
7612
- const gm = "Gaussian Splat Loader", UE = x("debugsplats") || x("debugsplatsort") || x("debugspatsort"), zE = (() => {
7612
+ const gm = "Gaussian Splat Loader", zE = x("debugsplats") || x("debugsplatsort") || x("debugspatsort"), UE = (() => {
7613
7613
  const s = x("splatcull"), e = typeof s == "number" ? s : typeof s == "string" ? parseFloat(s) : NaN;
7614
7614
  return Number.isFinite(e) && e > 0 ? Math.min(Math.PI, e * (Math.PI / 180)) : void 0;
7615
7615
  })(), NE = {
@@ -7659,9 +7659,9 @@ const cf = [
7659
7659
  // at 45 fps against target 60 must never go blurry (device log 2026-07-29).
7660
7660
  { lodRenderScale: 3.5, lodSplatScale: 0.35, maxPixelRadius: 0.5, maxStdDevCap: Math.sqrt(6), foveate: 0.45, minAlphaFloor: 10 / 255, resolutionScale: 0.75 },
7661
7661
  { lodRenderScale: 3.5, lodSplatScale: 0.35, maxPixelRadius: 0.5, maxStdDevCap: Math.sqrt(6), foveate: 0.45, minAlphaFloor: 10 / 255, resolutionScale: 0.6 }
7662
- ], Ua = cf.length - 1;
7662
+ ], za = cf.length - 1;
7663
7663
  function mS(s, e) {
7664
- const t = Math.max(0, Math.min(Ua, Math.round(e))), i = cf[t];
7664
+ const t = Math.max(0, Math.min(za, Math.round(e))), i = cf[t];
7665
7665
  return {
7666
7666
  ...s,
7667
7667
  lodRenderScale: s.lodRenderScale * i.lodRenderScale,
@@ -7691,9 +7691,9 @@ function KE(s, e, t) {
7691
7691
  let n = i.level;
7692
7692
  e.streaming && (i.lastStreamingTime = Math.max(i.lastStreamingTime, t));
7693
7693
  const o = t - i.lastStreamingTime >= Jv || t - i.lastChangeTime >= XE;
7694
- i.fpsBeforeStep !== null && t - i.lastChangeTime >= Zv && o && (e.smoothedFps < i.fpsBeforeStep * e0 ? R() && console.debug(`[SplatQuality] conditions collapsed since the degradation (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — discarding the measurement, keeping level ${n}`) : e.smoothedFps < i.fpsBeforeStep * qE ? (n = i.stepFromLevel ?? Math.max(0, n - 1), i.downBackoffUntil = t + fc, i.stepFromLevel !== null && i.level - i.stepFromLevel > 1 && (i.jumpBackoffUntil = t + fc), R() && console.debug(`[SplatQuality] degradation bought no fps (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — reverting to level ${n}, backing off ${fc}s`)) : R() && console.debug(`[SplatQuality] degradation bought fps (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — keeping level ${n}`), i.fpsBeforeStep = null, i.stepFromLevel = null), i.fpsBeforeProbe !== null && t - i.lastChangeTime >= Zv && o && (e.smoothedFps < i.fpsBeforeProbe * e0 ? (n = Math.min(Ua, n + 1), R() && console.debug(`[SplatQuality] conditions collapsed during recovery probe (${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — restoring level ${n}`)) : e.smoothedFps < i.fpsBeforeProbe * YE ? (n = Math.min(Ua, n + 1), i.upBackoffUntil = t + fc, R() && console.debug(`[SplatQuality] recovery probe cost fps (${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — restoring level ${n}, backing off ${fc}s`)) : R() && console.debug(`[SplatQuality] recovery probe kept (fps ${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}), level ${n}`), i.fpsBeforeProbe = null);
7694
+ i.fpsBeforeStep !== null && t - i.lastChangeTime >= Zv && o && (e.smoothedFps < i.fpsBeforeStep * e0 ? R() && console.debug(`[SplatQuality] conditions collapsed since the degradation (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — discarding the measurement, keeping level ${n}`) : e.smoothedFps < i.fpsBeforeStep * qE ? (n = i.stepFromLevel ?? Math.max(0, n - 1), i.downBackoffUntil = t + fc, i.stepFromLevel !== null && i.level - i.stepFromLevel > 1 && (i.jumpBackoffUntil = t + fc), R() && console.debug(`[SplatQuality] degradation bought no fps (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — reverting to level ${n}, backing off ${fc}s`)) : R() && console.debug(`[SplatQuality] degradation bought fps (${i.fpsBeforeStep.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — keeping level ${n}`), i.fpsBeforeStep = null, i.stepFromLevel = null), i.fpsBeforeProbe !== null && t - i.lastChangeTime >= Zv && o && (e.smoothedFps < i.fpsBeforeProbe * e0 ? (n = Math.min(za, n + 1), R() && console.debug(`[SplatQuality] conditions collapsed during recovery probe (${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — restoring level ${n}`)) : e.smoothedFps < i.fpsBeforeProbe * YE ? (n = Math.min(za, n + 1), i.upBackoffUntil = t + fc, R() && console.debug(`[SplatQuality] recovery probe cost fps (${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}) — restoring level ${n}, backing off ${fc}s`)) : R() && console.debug(`[SplatQuality] recovery probe kept (fps ${i.fpsBeforeProbe.toFixed(1)} → ${e.smoothedFps.toFixed(1)}), level ${n}`), i.fpsBeforeProbe = null);
7695
7695
  const r = e.smoothedFps < e.targetFps * VE, a = e.smoothedFps >= e.targetFps * GE, l = t - i.lastChangeTime >= WE;
7696
- r ? (i.goodStreak = 0, l && t >= i.downBackoffUntil && n === i.level && i.fpsBeforeStep === null && i.fpsBeforeProbe === null && n < Ua ? (!(cf[n + 1].resolutionScale < cf[n].resolutionScale) || e.smoothedFps < e.targetFps * t0) && (i.fpsBeforeStep = e.smoothedFps, i.stepFromLevel = n, n++) : l && t < i.downBackoffUntil && t >= i.jumpBackoffUntil && e.smoothedFps < e.targetFps * t0 && n === i.level && i.fpsBeforeStep === null && i.fpsBeforeProbe === null && n < Ua && (i.fpsBeforeStep = e.smoothedFps, i.stepFromLevel = n, n = Ua)) : a ? (i.goodStreak++, i.goodStreak >= HE && l && i.fpsBeforeProbe === null && n > 0 && (n--, i.goodStreak = 0)) : i.goodStreak = 0;
7696
+ r ? (i.goodStreak = 0, l && t >= i.downBackoffUntil && n === i.level && i.fpsBeforeStep === null && i.fpsBeforeProbe === null && n < za ? (!(cf[n + 1].resolutionScale < cf[n].resolutionScale) || e.smoothedFps < e.targetFps * t0) && (i.fpsBeforeStep = e.smoothedFps, i.stepFromLevel = n, n++) : l && t < i.downBackoffUntil && t >= i.jumpBackoffUntil && e.smoothedFps < e.targetFps * t0 && n === i.level && i.fpsBeforeStep === null && i.fpsBeforeProbe === null && n < za && (i.fpsBeforeStep = e.smoothedFps, i.stepFromLevel = n, n = za)) : a ? (i.goodStreak++, i.goodStreak >= HE && l && i.fpsBeforeProbe === null && n > 0 && (n--, i.goodStreak = 0)) : i.goodStreak = 0;
7697
7697
  const c = n === i.level && i.fpsBeforeStep === null && i.fpsBeforeProbe === null;
7698
7698
  i.stableStreak = c ? i.stableStreak + 1 : 0, c && !r && n > 0 && i.stableStreak >= QE && l && t >= i.upBackoffUntil && t - i.lastStreamingTime >= Jv && (i.fpsBeforeProbe = e.smoothedFps, i.stableStreak = 0, n--), n !== i.level && (R() && console.debug(`[SplatQuality] adaptation level ${i.level} → ${n} (fps ${e.smoothedFps.toFixed(1)}/${e.targetFps}${n > i.level ? ", verifying fps gain" : i.fpsBeforeProbe !== null ? ", probing recovery" : ""})`), i.level = n, i.lastChangeTime = t, k_(i));
7699
7699
  }
@@ -7707,7 +7707,7 @@ const ZE = 1500;
7707
7707
  function JE(s, e) {
7708
7708
  e.resumeQuietUntil !== 0 && performance.now() >= e.resumeQuietUntil && (e.renderer.pauseWork = !1, e.resumeQuietUntil = 0, R() && console.debug("[SplatQuality] calm resume over — splat work resumed"));
7709
7709
  const t = s.time.time, i = gS(s, e);
7710
- if (i && (e.lastStreamingTime = Math.max(e.lastStreamingTime, t)), t - e.lastEvalTime < $E || (e.lastEvalTime = t, UE && eM(s, e), s.time.frameCount < 60)) return;
7710
+ if (i && (e.lastStreamingTime = Math.max(e.lastStreamingTime, t)), t - e.lastEvalTime < $E || (e.lastEvalTime = t, zE && eM(s, e), s.time.frameCount < 60)) return;
7711
7711
  const n = s.isInXR;
7712
7712
  let o = (n ? s.xrSession?.frameRate : void 0) ?? 60;
7713
7713
  n && s.xrFrameRateLimit > 0 && (o = Math.min(o, s.xrFrameRateLimit)), KE(s, { smoothedFps: s.time.smoothedFps, targetFps: o, streaming: i }, t);
@@ -7741,7 +7741,7 @@ const tM = new w(), iM = new w();
7741
7741
  function nM(s, e) {
7742
7742
  s.minSortIntervalMs = e.minSortIntervalMs, s.numLodFetchers = e.fetchers, s.lodRenderScale = e.lodRenderScale;
7743
7743
  const t = D.isiOS() ? 2 / 3 : 1;
7744
- s.lodSplatScale = e.lodSplatScale * t, s.sortCullHalfAngle = zE ?? e.sortCullHalfAngle, s.maxStdDev = e.maxStdDev, s.maxPixelRadius = e.maxPixelRadius, s.coneFoveate = e.coneFoveate, s.behindFoveate = e.behindFoveate, s.minAlpha = e.minAlpha, e.maxPagedSplats > 0 && !s.pager && (s.maxPagedSplats = e.maxPagedSplats), s.pager && (s.pager.numFetchers = e.fetchers), yS = e.xrFramebufferScale;
7744
+ s.lodSplatScale = e.lodSplatScale * t, s.sortCullHalfAngle = UE ?? e.sortCullHalfAngle, s.maxStdDev = e.maxStdDev, s.maxPixelRadius = e.maxPixelRadius, s.coneFoveate = e.coneFoveate, s.behindFoveate = e.behindFoveate, s.minAlpha = e.minAlpha, e.maxPagedSplats > 0 && !s.pager && (s.maxPagedSplats = e.maxPagedSplats), s.pager && (s.pager.numFetchers = e.fetchers), yS = e.xrFramebufferScale;
7745
7745
  }
7746
7746
  let yS;
7747
7747
  function i0() {
@@ -7799,7 +7799,7 @@ function rM(s) {
7799
7799
  return !/^(blob:|data:)/i.test(s);
7800
7800
  }
7801
7801
  function aM() {
7802
- zr.some((s) => s.name === gm) || qg.onCreateCustomModelLoader((s) => {
7802
+ Ur.some((s) => s.name === gm) || qg.onCreateCustomModelLoader((s) => {
7803
7803
  switch (s.mimetype) {
7804
7804
  case "model/ply":
7805
7805
  case "model/spz":
@@ -7810,7 +7810,7 @@ function aM() {
7810
7810
  const e = s.mimetype, t = s.context, i = {
7811
7811
  name: gm,
7812
7812
  loadAsync: async (n, o) => {
7813
- const r = await import("./vendor-BQUQwut5.js").then((p) => p.spark_module);
7813
+ const r = await import("./vendor-BatPc34p.js").then((p) => p.spark_module);
7814
7814
  if (oM(t, r.SparkRenderer), e === "model/rad" && rM(n))
7815
7815
  return new r.SplatMesh({ url: n, paged: !0 });
7816
7816
  Ya.set(t, (Ya.get(t) ?? 0) + 1);
@@ -7859,7 +7859,7 @@ function aM() {
7859
7859
  return null;
7860
7860
  }, { name: gm });
7861
7861
  }
7862
- const sl = new Z().makeRotationY(Math.PI), sn = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI), lM = x("debugwebxr");
7862
+ const sl = new Z().makeRotationY(Math.PI), sn = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI), lM = x("debugwebxr");
7863
7863
  class cM {
7864
7864
  priority = -1e5;
7865
7865
  gameObject;
@@ -7876,7 +7876,7 @@ class cM {
7876
7876
  }
7877
7877
  }
7878
7878
  }
7879
- const Rs = x("debugwebxr"), Md = x("debugcustomgesture"), hM = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", dM = "generic-trigger", uM = new U().setFromEuler(new Be(Gs.degToRad(0), Gs.degToRad(-90), Gs.degToRad(-90))), fM = new w(0.04, -0.04, 0);
7879
+ const Rs = x("debugwebxr"), Md = x("debugcustomgesture"), hM = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", dM = "generic-trigger", uM = new z().setFromEuler(new Be(Gs.degToRad(0), Gs.degToRad(-90), Gs.degToRad(-90))), fM = new w(0.04, -0.04, 0);
7880
7880
  class bS {
7881
7881
  /** the Needle XR Session */
7882
7882
  xr;
@@ -8008,19 +8008,19 @@ class bS {
8008
8008
  /** Grip position in grip space */
8009
8009
  _gripPosition = new w();
8010
8010
  /** Grip rotation in grip space */
8011
- _gripQuaternion = new U();
8011
+ _gripQuaternion = new z();
8012
8012
  _linearVelocity = new w();
8013
8013
  _rayPositionRaw = new w();
8014
- _rayRotationRaw = new U();
8014
+ _rayRotationRaw = new z();
8015
8015
  /** ray matrix in grip space */
8016
8016
  _rayMatrix = new Z();
8017
8017
  /** Ray position in rig space */
8018
8018
  _rayPosition = new w();
8019
8019
  /** Ray rotation in rig space */
8020
- _rayQuaternion = new U();
8020
+ _rayQuaternion = new z();
8021
8021
  /** Grip position in rig space */
8022
8022
  get gripPosition() {
8023
- return z(this._gripPosition);
8023
+ return U(this._gripPosition);
8024
8024
  }
8025
8025
  /** Grip rotation in rig space */
8026
8026
  get gripQuaternion() {
@@ -8033,11 +8033,11 @@ class bS {
8033
8033
  * @link https://developer.mozilla.org/en-US/docs/Web/API/XRPose/linearVelocity
8034
8034
  */
8035
8035
  get gripLinearVelocity() {
8036
- return z(this._linearVelocity).applyQuaternion(sn);
8036
+ return U(this._linearVelocity).applyQuaternion(sn);
8037
8037
  }
8038
8038
  /** Ray position in rig space */
8039
8039
  get rayPosition() {
8040
- return z(this._rayPosition);
8040
+ return U(this._rayPosition);
8041
8041
  }
8042
8042
  /** Ray rotation in rig space */
8043
8043
  get rayQuaternion() {
@@ -8045,17 +8045,17 @@ class bS {
8045
8045
  }
8046
8046
  /** Controller grip position in worldspace */
8047
8047
  get gripWorldPosition() {
8048
- return z(this._gripWorldPosition);
8048
+ return U(this._gripWorldPosition);
8049
8049
  }
8050
8050
  _gripWorldPosition = new w();
8051
8051
  /** Controller grip rotation in wordspace */
8052
8052
  get gripWorldQuaternion() {
8053
8053
  return Mi(this._gripWorldQuaternion);
8054
8054
  }
8055
- _gripWorldQuaternion = new U();
8055
+ _gripWorldQuaternion = new z();
8056
8056
  /** Controller ray position in worldspace (this value is calculated once per frame by default - call `updateRayWorldPosition` to force an update) */
8057
8057
  get rayWorldPosition() {
8058
- return z(this._rayWorldPosition);
8058
+ return U(this._rayWorldPosition);
8059
8059
  }
8060
8060
  _rayWorldPosition = new w();
8061
8061
  /** Recalculates the ray world position */
@@ -8067,9 +8067,9 @@ class bS {
8067
8067
  get rayWorldQuaternion() {
8068
8068
  return Mi(this._rayWorldQuaternion);
8069
8069
  }
8070
- _rayWorldQuaternion = new U();
8070
+ _rayWorldQuaternion = new z();
8071
8071
  get pinchPosition() {
8072
- return z(this._pinchPosition);
8072
+ return U(this._pinchPosition);
8073
8073
  }
8074
8074
  _pinchPosition = new w();
8075
8075
  /** Recalculates the ray world quaternion */
@@ -8079,7 +8079,7 @@ class bS {
8079
8079
  }
8080
8080
  /** The controller ray in worldspace */
8081
8081
  get ray() {
8082
- return this._ray.origin.copy(this.rayWorldPosition), this._ray.direction.copy(z(0, 0, 1).applyQuaternion(this.rayWorldQuaternion)), this._ray;
8082
+ return this._ray.origin.copy(this.rayWorldPosition), this._ray.direction.copy(U(0, 0, 1).applyQuaternion(this.rayWorldQuaternion)), this._ray;
8083
8083
  }
8084
8084
  _ray;
8085
8085
  /** Recalculated once per update */
@@ -8093,7 +8093,7 @@ class bS {
8093
8093
  if (this._hand_wristDotUp !== void 0) return this._hand_wristDotUp;
8094
8094
  const e = this.handObject?.joints.wrist;
8095
8095
  if (e) {
8096
- const t = z(0, 1, 0).applyQuaternion(e.quaternion), i = z(0, 1, 0).dot(t);
8096
+ const t = U(0, 1, 0).applyQuaternion(e.quaternion), i = U(0, 1, 0).dot(t);
8097
8097
  return this._hand_wristDotUp = i;
8098
8098
  }
8099
8099
  }
@@ -8154,7 +8154,7 @@ class bS {
8154
8154
  this.onUpdateFrame(e), this.updateInputEvents(), this.onUpdateMove();
8155
8155
  }
8156
8156
  onRenderDebug() {
8157
- j.DrawSphere(this.rayWorldPosition, 3e-3), j.DrawDirection(this.rayWorldPosition, z(0, 0, 10).applyQuaternion(this.rayWorldQuaternion));
8157
+ j.DrawSphere(this.rayWorldPosition, 3e-3), j.DrawDirection(this.rayWorldPosition, U(0, 0, 10).applyQuaternion(this.rayWorldQuaternion));
8158
8158
  const t = (this.inputSource.gripSpace ? this.gripWorldPosition : this.object.worldPosition).sub(this.object.worldForward.multiplyScalar(0.1)), i = this.inputSource.profiles.join(`
8159
8159
  `);
8160
8160
  let n = `Controller[${this.index}] (${this.inputSource.targetRayMode}, ${this.side})
@@ -8190,13 +8190,13 @@ Layout: `;
8190
8190
  let i = null, n = null, o = null, r = null;
8191
8191
  if (t) {
8192
8192
  const h = t.transform;
8193
- this._rayMatrix.fromArray(h.matrix).premultiply(sl), this._rayMatrix.decompose(this._rayPosition, this._rayQuaternion, z(1, 1, 1)), o = z(h.position), r = Mi(h.orientation), this._rayPositionRaw.copy(o), this._rayRotationRaw.copy(r);
8193
+ this._rayMatrix.fromArray(h.matrix).premultiply(sl), this._rayMatrix.decompose(this._rayPosition, this._rayQuaternion, U(1, 1, 1)), o = U(h.position), r = Mi(h.orientation), this._rayPositionRaw.copy(o), this._rayRotationRaw.copy(r);
8194
8194
  }
8195
8195
  if (this.inputSource.gripSpace) {
8196
8196
  const h = e.getPose(this.inputSource.gripSpace, this.xr.referenceSpace);
8197
8197
  if (h) {
8198
8198
  const d = h.transform;
8199
- if (i = z(d.position), n = Mi(d.orientation), this._gripMatrix.fromArray(d.matrix).premultiply(sl), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, z(1, 1, 1)), "linearVelocity" in h && h.linearVelocity) {
8199
+ if (i = U(d.position), n = Mi(d.orientation), this._gripMatrix.fromArray(d.matrix).premultiply(sl), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, U(1, 1, 1)), "linearVelocity" in h && h.linearVelocity) {
8200
8200
  const u = h.linearVelocity;
8201
8201
  this._linearVelocity.set(u.x, u.y, u.z);
8202
8202
  }
@@ -8214,7 +8214,7 @@ Layout: `;
8214
8214
  }
8215
8215
  h || (this._object.position.copy(this._rayPosition), this._object.quaternion.copy(this._rayQuaternion).multiply(sn));
8216
8216
  const p = a.get("middle-finger-metacarpal"), m = p && this.getHandJointPose(p, e);
8217
- m && (this._gripMatrix.fromArray(m.transform.matrix).premultiply(sl), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, z(1, 1, 1)), i = z().copy(m.transform.position), n = Mi().copy(m.transform.orientation), n.multiply(uM), i.add(z(fM).applyQuaternion(n)));
8217
+ m && (this._gripMatrix.fromArray(m.transform.matrix).premultiply(sl), this._gripMatrix.decompose(this._gripPosition, this._gripQuaternion, U(1, 1, 1)), i = U().copy(m.transform.position), n = Mi().copy(m.transform.orientation), n.multiply(uM), i.add(U(fM).applyQuaternion(n)));
8218
8218
  } else this.inputSource.gripSpace && this.targetRayMode === "transient-pointer" && i && n ? (this._object.position.copy(i), this._object.quaternion.copy(n).multiply(sn)) : o && r && (this._object.position.copy(o), this._object.quaternion.copy(r).multiply(sn));
8219
8219
  Rs && (o && r && (this._raySpaceObject?.position.copy(o), this._raySpaceObject?.quaternion.copy(r).multiply(sn)), i && n && (this._gripSpaceObject?.position.copy(i), this._gripSpaceObject?.quaternion.copy(n).multiply(sn)));
8220
8220
  const l = this.xr.context.mainCamera?.parent, c = l ? Ie(l) : void 0;
@@ -8407,7 +8407,7 @@ Layout: `;
8407
8407
  if (!this.emitPointerDownEvent || this.inputSource !== e.inputSource) return;
8408
8408
  this.onUpdateFrame(e.frame), this._hasSelectEvent = !0;
8409
8409
  const t = this._layout?.selectComponentId, i = this._layout?.components[t]?.gamepadIndices?.button;
8410
- i !== void 0 && (this._selectButtonIndex = i), this._selectIsActive = !0, !Md && (Rs && j.DrawDirection(this.rayWorldPosition, z(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this._selectCompleted = !1, this.emitPointerEvent(Ae.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, e));
8410
+ i !== void 0 && (this._selectButtonIndex = i), this._selectIsActive = !0, !Md && (Rs && j.DrawDirection(this.rayWorldPosition, U(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 16711680, 10), this._selectCompleted = !1, this.emitPointerEvent(Ae.PointerDown, this._selectButtonIndex || 0, "xr-standard-trigger", !0, e));
8411
8411
  };
8412
8412
  onSelect = (e) => {
8413
8413
  this.inputSource === e.inputSource && (this._selectCompleted = !0);
@@ -8419,7 +8419,7 @@ Layout: `;
8419
8419
  this._selectCompleted = !1, this.emitPointerEvent(Ae.PointerUp, this._selectButtonIndex || 0, "xr-standard-trigger", !0, e, void 0, t);
8420
8420
  };
8421
8421
  onSqueezeStart = (e) => {
8422
- this.emitPointerDownEvent && this.inputSource === e.inputSource && (this._squeezeButtonIndex = this._layout?.components["xr-standard-squeeze"]?.gamepadIndices?.button, this._squeezeButtonIndex !== void 0 && (Rs && j.DrawDirection(this.rayWorldPosition, z(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this._squeezeIsActive = !0, this._squeezeCompleted = !1, this.emitPointerEvent(Ae.PointerDown, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, e)));
8422
+ this.emitPointerDownEvent && this.inputSource === e.inputSource && (this._squeezeButtonIndex = this._layout?.components["xr-standard-squeeze"]?.gamepadIndices?.button, this._squeezeButtonIndex !== void 0 && (Rs && j.DrawDirection(this.rayWorldPosition, U(0, 0.01, 1).applyQuaternion(this.rayWorldQuaternion), 255, 10), this._squeezeIsActive = !0, this._squeezeCompleted = !1, this.emitPointerEvent(Ae.PointerDown, this._squeezeButtonIndex || 0, "xr-standard-squeeze", !0, e)));
8423
8423
  };
8424
8424
  onSqueeze = (e) => {
8425
8425
  this.inputSource === e.inputSource && (this._squeezeCompleted = !0);
@@ -8488,7 +8488,7 @@ Layout: `;
8488
8488
  }
8489
8489
  _didMoveLastFrame = !1;
8490
8490
  _lastPointerMovePosition = new w();
8491
- _lastPointerMoveQuaternion = new U();
8491
+ _lastPointerMoveQuaternion = new z();
8492
8492
  onUpdateMove() {
8493
8493
  if (!this.emitPointerMoveEvent) return;
8494
8494
  let e = !1;
@@ -8660,7 +8660,7 @@ class o0 {
8660
8660
  depthTest: !1,
8661
8661
  fog: !1,
8662
8662
  side: Ni
8663
- }), this._fadeToColorQuad = new V(new zn(10, 10), this._fadeToColorMaterial);
8663
+ }), this._fadeToColorQuad = new V(new Un(10, 10), this._fadeToColorMaterial);
8664
8664
  }
8665
8665
  dispose() {
8666
8666
  this._fadeToColorQuad.geometry.dispose(), this._fadeToColorMaterial.dispose();
@@ -8740,7 +8740,7 @@ class Sl {
8740
8740
  this._mode = e, this._init = t, this._session = i, this._session.addEventListener("end", this.onEnd), this._renderer = new ca({ alpha: !0, antialias: !0 }), this._renderer.outputColorSpace = "srgb", this._renderer.setPixelRatio(Math.min(2, window.devicePixelRatio)), this._renderer.setSize(window.innerWidth, window.innerHeight, !0), D.isNeedleAppClip() && window.requestAnimationFrame(() => {
8741
8741
  const n = Math.min(2, window.devicePixelRatio), o = Math.floor(window.innerWidth * n), r = Math.floor(window.innerHeight * n);
8742
8742
  this._renderer.domElement.width = o, this._renderer.domElement.height = r;
8743
- }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new pe(), this._scene = new zi(), this._scene.fog = new rx(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
8743
+ }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new pe(), this._scene = new Ui(), this._scene.fog = new rx(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
8744
8744
  }
8745
8745
  end() {
8746
8746
  return this._session ? this._session.end() : Promise.resolve();
@@ -8800,7 +8800,7 @@ class Sl {
8800
8800
  d?.length && (e = d, R() && console.debug("[XR] Using custom loading logo from license:", e));
8801
8801
  }
8802
8802
  }
8803
- const t = this._logoObject = new V(new zn(1, 1, 1, 1), new Le({ transparent: !0, side: 2 }));
8803
+ const t = this._logoObject = new V(new Un(1, 1, 1, 1), new Le({ transparent: !0, side: 2 }));
8804
8804
  t.scale.multiplyScalar(this._logoScale * window.devicePixelRatio), t.renderOrder = 1e3, t.material.opacity = 0, this._scene.add(t);
8805
8805
  const i = document.createElement("canvas"), n = i.getContext("2d"), o = new Image(), r = (h) => {
8806
8806
  if (!n) return;
@@ -8835,7 +8835,7 @@ class Sl {
8835
8835
  color: 2236962,
8836
8836
  metalness: 1,
8837
8837
  roughness: 0.8
8838
- }), p = Uh.Sphere, m = ha.createPrimitive(p, { material: u });
8838
+ }), p = zh.Sphere, m = ha.createPrimitive(p, { material: u });
8839
8839
  m.position.x = B.random(-50, 50), m.position.y = B.random(-2, 50), m.position.z = B.random(-50, 50), m.rotation.x = B.random(0, Math.PI * 2), m.rotation.y = B.random(0, Math.PI * 2), m.rotation.z = B.random(0, Math.PI * 2), m.scale.multiplyScalar(0.5 + Math.random() * 10);
8840
8840
  const b = m.position.distanceTo(this._camera.position) - m.scale.x;
8841
8841
  b < 10 && (m.position.z += 5, m.position.multiplyScalar(1 + 1 / b)), this._roomFlyObjects.push(m), this._scene.add(m);
@@ -9469,8 +9469,8 @@ class G {
9469
9469
  */
9470
9470
  getUserOffsetInRig() {
9471
9471
  const e = this.context.mainCamera?.position;
9472
- if (!e || !this.rig) return z(0, 0, 0);
9473
- const t = z(e);
9472
+ if (!e || !this.rig) return U(0, 0, 0);
9473
+ const t = U(e);
9474
9474
  return t.x *= -1, t.z *= -1, t.applyQuaternion(Mi(this.rig.gameObject.quaternion)), t;
9475
9475
  }
9476
9476
  updateActiveXRRig() {
@@ -9523,7 +9523,7 @@ class G {
9523
9523
  convertHitTestResult(e) {
9524
9524
  const t = this.context.renderer.xr.getReferenceSpace(), i = t && e.getPose(t);
9525
9525
  if (i) {
9526
- const n = z(i.transform.position), o = Mi(i.transform.orientation), r = this.context.mainCamera;
9526
+ const n = U(i.transform.position), o = Mi(i.transform.orientation), r = this.context.mainCamera;
9527
9527
  if (r?.parent !== this._cameraRenderParent && n.applyMatrix4(sl), r?.parent) {
9528
9528
  n.applyMatrix4(r.parent.matrixWorld), o.multiply(sn);
9529
9529
  const a = Ie(r.parent);
@@ -9535,7 +9535,7 @@ class G {
9535
9535
  }
9536
9536
  /** convert a XRRigidTransform from XR session space to threejs / Needle Engine XR space */
9537
9537
  convertSpace(e) {
9538
- const t = z(e.position);
9538
+ const t = U(e.position);
9539
9539
  t.applyMatrix4(sl);
9540
9540
  const i = Mi(e.orientation);
9541
9541
  return i.premultiply(sn), { position: t, quaternion: i };
@@ -9561,7 +9561,7 @@ class G {
9561
9561
  */
9562
9562
  _mainCamera = null;
9563
9563
  constructor(e, t, i, n) {
9564
- CM(e, n.init), this.session = t, this.mode = e, this.context = i, (Ye || x("console")) && Xc(!0), this._xr_scripts = [...n.scripts], this._xr_update_scripts = this._xr_scripts.filter((l) => typeof l.onUpdateXR == "function"), this._controllerAdded = n.controller_added, this._controllerRemoved = n.controller_removed, no(this.onBefore, De.LateUpdate), this.context.pre_render_callbacks.push(this.onBeforeRender), this.context.post_render_callbacks.push(this.onAfterRender), this.context.addBeforeRenderListener(this.context.scene, this.syncCameraCullingMask), (n.init.optionalFeatures?.includes("hit-test") || n.init.requiredFeatures?.includes("hit-test")) && t.requestReferenceSpace("viewer").then((l) => t.requestHitTestSource?.call(t, { space: l })?.then((c) => this._viewerHitTestSource = c).catch((c) => console.error(c))).catch((l) => console.error(l)), this.context.mainCamera && (this._originalCameraWorldPosition = le(this.context.mainCamera, new w()), this._originalCameraWorldRotation = Ie(this.context.mainCamera, new U()), this._originalCameraWorldScale = it(this.context.mainCamera, new w()), this._originalCameraParent = this.context.mainCamera.parent, this.context.mainCamera instanceof pe && (this.context.mainCamera[Ad] = this.context.mainCamera.fov)), this._defaultRig = new cM(), this.context.scene.add(this._defaultRig.gameObject), this.addRig(this._defaultRig);
9564
+ CM(e, n.init), this.session = t, this.mode = e, this.context = i, (Ye || x("console")) && Xc(!0), this._xr_scripts = [...n.scripts], this._xr_update_scripts = this._xr_scripts.filter((l) => typeof l.onUpdateXR == "function"), this._controllerAdded = n.controller_added, this._controllerRemoved = n.controller_removed, no(this.onBefore, De.LateUpdate), this.context.pre_render_callbacks.push(this.onBeforeRender), this.context.post_render_callbacks.push(this.onAfterRender), this.context.addBeforeRenderListener(this.context.scene, this.syncCameraCullingMask), (n.init.optionalFeatures?.includes("hit-test") || n.init.requiredFeatures?.includes("hit-test")) && t.requestReferenceSpace("viewer").then((l) => t.requestHitTestSource?.call(t, { space: l })?.then((c) => this._viewerHitTestSource = c).catch((c) => console.error(c))).catch((l) => console.error(l)), this.context.mainCamera && (this._originalCameraWorldPosition = le(this.context.mainCamera, new w()), this._originalCameraWorldRotation = Ie(this.context.mainCamera, new z()), this._originalCameraWorldScale = it(this.context.mainCamera, new w()), this._originalCameraParent = this.context.mainCamera.parent, this.context.mainCamera instanceof pe && (this.context.mainCamera[Ad] = this.context.mainCamera.fov)), this._defaultRig = new cM(), this.context.scene.add(this._defaultRig.gameObject), this.addRig(this._defaultRig);
9565
9565
  for (let l = 0; l < t.inputSources.length; l++) {
9566
9566
  const c = t.inputSources[l];
9567
9567
  if (!c.handedness) {
@@ -9763,11 +9763,11 @@ class G {
9763
9763
  if (this._didStart = !0, this.mode === "immersive-vr") {
9764
9764
  const o = Wi(this.context.scene.children);
9765
9765
  if (o) {
9766
- const r = o.getSize(z());
9766
+ const r = o.getSize(U());
9767
9767
  if (r.length() > 0) {
9768
9768
  const a = this._defaultRig.gameObject;
9769
9769
  a.position.set(o.min.x + r.x * 0.5, o.min.y, o.max.z + r.z * 0.5 + 1.5);
9770
- const l = o.getCenter(z());
9770
+ const l = o.getCenter(U());
9771
9771
  l.y = a.position.y, a.lookAt(l);
9772
9772
  }
9773
9773
  }
@@ -10011,7 +10011,7 @@ ${o.hand ? "hand" : "ctrl"} ${o.inputSource.handedness}[${o.index}] con:${o.conn
10011
10011
  this._camera && this._previousCameraParent && this._previousCameraParent.add(this._camera), this._previousCameraParent = null, this._camera instanceof pe && this.originalCameraNearPlane != null && (this._camera.near = this.originalCameraNearPlane, this.originalCameraNearPlane = void 0);
10012
10012
  }
10013
10013
  _viewerPose;
10014
- _transformOrientation = new U();
10014
+ _transformOrientation = new z();
10015
10015
  _transformPosition = new w();
10016
10016
  internalUpdateState() {
10017
10017
  const e = this.context.renderer.xr.getReferenceSpace();
@@ -10691,10 +10691,10 @@ class jM {
10691
10691
  });
10692
10692
  i.add(n), i["needle:use_eventsystem"] = !0;
10693
10693
  const o = new c0(this._context, () => t.click());
10694
- return cl(i, o), new UM(this, e, t, i, n);
10694
+ return cl(i, o), new zM(this, e, t, i, n);
10695
10695
  }
10696
10696
  }
10697
- class UM {
10697
+ class zM {
10698
10698
  menu;
10699
10699
  root;
10700
10700
  htmlbutton;
@@ -11638,10 +11638,10 @@ class wh extends Gf {
11638
11638
  }), this.appendChild(t);
11639
11639
  }
11640
11640
  }
11641
- var zM = Object.defineProperty, xe = (s, e, t, i) => {
11641
+ var UM = Object.defineProperty, xe = (s, e, t, i) => {
11642
11642
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
11643
11643
  (r = s[o]) && (n = r(e, t, n) || n);
11644
- return n && zM(e, t, n), n;
11644
+ return n && UM(e, t, n), n;
11645
11645
  };
11646
11646
  const tt = x("debugcontext"), NM = x("stats"), $M = x("debugactive"), WM = x("debugframerate"), VM = x("debugcoroutine"), J5 = {};
11647
11647
  class e4 {
@@ -12061,7 +12061,7 @@ const _e = class Se {
12061
12061
  get events() {
12062
12062
  return this._events;
12063
12063
  }
12064
- _events = new Uv();
12064
+ _events = new zv();
12065
12065
  /** @deprecated AssetDatabase is deprecated */
12066
12066
  assets;
12067
12067
  lights = new Array();
@@ -12109,7 +12109,7 @@ const _e = class Se {
12109
12109
  _isVisible = !1;
12110
12110
  _stats = NM ? new Nk() : null;
12111
12111
  constructor(e) {
12112
- this.name = e?.name || "", this.alias = e?.alias, this.domElement = e?.domElement || document.body, this.hash = e?.hash, e?.renderer && (this.renderer = e.renderer, this.isManagedExternally = !0), e?.runInBackground !== void 0 && (this.runInBackground = e.runInBackground), e?.scene ? this.scene = e.scene : this.scene = new zi(), this._fallbackCamera && !this._fallbackCamera.parent && this.scene.add(this._fallbackCamera), e?.camera && (this._mainCamera = e.camera), this._application = new _s(this), this._time = new DE(), this._input = new aE(this), this._physics = new xh(this), this._postprocessing = new jE(this), this._connection = new af(this), this.assets = new JM(), this.sceneLighting = new ME(this), this.addressables = new XR(this), this.lightmaps = new cE(this), this.players = new SE(this), this.menu = new Jc(this), this.lodsManager = new hE(this), this._animations = new KT(this), this.accessibility = new Ju(this);
12112
+ this.name = e?.name || "", this.alias = e?.alias, this.domElement = e?.domElement || document.body, this.hash = e?.hash, e?.renderer && (this.renderer = e.renderer, this.isManagedExternally = !0), e?.runInBackground !== void 0 && (this.runInBackground = e.runInBackground), e?.scene ? this.scene = e.scene : this.scene = new Ui(), this._fallbackCamera && !this._fallbackCamera.parent && this.scene.add(this._fallbackCamera), e?.camera && (this._mainCamera = e.camera), this._application = new _s(this), this._time = new DE(), this._input = new aE(this), this._physics = new xh(this), this._postprocessing = new jE(this), this._connection = new af(this), this.assets = new JM(), this.sceneLighting = new ME(this), this.addressables = new XR(this), this.lightmaps = new cE(this), this.players = new SE(this), this.menu = new Jc(this), this.lodsManager = new hE(this), this._animations = new KT(this), this.accessibility = new Ju(this);
12113
12113
  const t = () => this._needsUpdateSize = !0;
12114
12114
  window.addEventListener("resize", t), this._disposeCallbacks.push(() => window.removeEventListener("resize", t));
12115
12115
  const i = new ResizeObserver((n) => this._needsUpdateSize = !0);
@@ -12225,7 +12225,7 @@ const _e = class Se {
12225
12225
  * or when the web component is removed from the DOM
12226
12226
  */
12227
12227
  clear() {
12228
- ce.dispatchCallback(de.ContextClearing, this), Xn(this, de.ContextClearing), $i(this.scene, !0, !0), this.scene = new zi(), this._fallbackCamera = null, this._mainCamera = null, this.addressables?.dispose(), this.lightmaps?.clear(), this.accessibility?.clear(), this.resetSubsystems(), this.isManagedExternally || this.renderer && (this.renderer.renderLists.dispose(), this.renderer.state.reset(), this.renderer.resetState()), ce.dispatchCallback(de.ContextCleared, this);
12228
+ ce.dispatchCallback(de.ContextClearing, this), Xn(this, de.ContextClearing), $i(this.scene, !0, !0), this.scene = new Ui(), this._fallbackCamera = null, this._mainCamera = null, this.addressables?.dispose(), this.lightmaps?.clear(), this.accessibility?.clear(), this.resetSubsystems(), this.isManagedExternally || this.renderer && (this.renderer.renderLists.dispose(), this.renderer.state.reset(), this.renderer.resetState()), ce.dispatchCallback(de.ContextCleared, this);
12229
12229
  }
12230
12230
  /**
12231
12231
  * Resets the **runtime execution state** of the context — NOT your application:
@@ -12272,7 +12272,7 @@ const _e = class Se {
12272
12272
  /** Shared between {@link clear} and {@link resetRuntimeState}: disposes the physics world,
12273
12273
  * clears the render listeners, replaces the event bus and empties the lights list. */
12274
12274
  resetSubsystems() {
12275
- this.physics?.engine?.dispose(), this._onBeforeRenderListeners.clear(), this._onAfterRenderListeners.clear(), this._events.clear(), this._events = new Uv(), this.lights.length = 0;
12275
+ this.physics?.engine?.dispose(), this._onBeforeRenderListeners.clear(), this._onAfterRenderListeners.clear(), this._events.clear(), this._events = new zv(), this.lights.length = 0;
12276
12276
  }
12277
12277
  /**
12278
12278
  * Dispose all allocated resources and clears the scene. This is automatically called e.g. when the `<needle-engine>` component is removed from the DOM.
@@ -13097,7 +13097,7 @@ class he extends oe {
13097
13097
  return new he(e);
13098
13098
  }
13099
13099
  }
13100
- const qt = new w(), d0 = new w(), u0 = new U(), HM = x("debuggizmos"), Sn = 8947848, Sm = 32;
13100
+ const qt = new w(), d0 = new w(), u0 = new z(), HM = x("debuggizmos"), Sn = 8947848, Sm = 32;
13101
13101
  class j {
13102
13102
  constructor() {
13103
13103
  }
@@ -13360,9 +13360,9 @@ class yi {
13360
13360
  let i = t.geometry.getAttribute("position");
13361
13361
  if (!i) {
13362
13362
  i = new lt(new Float32Array(Sm * 3), 3), t.geometry.setAttribute("position", i);
13363
- const n = z(0, 1, 0), o = z(0, 0, 1), r = z(o);
13363
+ const n = U(0, 1, 0), o = U(0, 0, 1), r = U(o);
13364
13364
  r.cross(n).normalize();
13365
- const a = z(r), l = Math.PI * 2 / (Sm - 1);
13365
+ const a = U(r), l = Math.PI * 2 / (Sm - 1);
13366
13366
  for (let c = 0; c < Sm + 1; c++) {
13367
13367
  const h = l * c;
13368
13368
  n.copy(a).multiplyScalar(Math.cos(h) * 1), r.copy(o).multiplyScalar(Math.sin(h) * 1);
@@ -13686,19 +13686,19 @@ function KM(s, e, t) {
13686
13686
  const l = this, c = l.geometry.boundingSphere;
13687
13687
  if (c) {
13688
13688
  if (l instanceof _l) {
13689
- Dd.setFromNormalAndCoplanarPoint(z(0, 1, 0), z(0, -l.position.y, 0)), Dd.applyMatrix4(l.matrixWorld, YM);
13690
- const d = o.ray.intersectPlane(Dd, z());
13689
+ Dd.setFromNormalAndCoplanarPoint(U(0, 1, 0), U(0, -l.position.y, 0)), Dd.applyMatrix4(l.matrixWorld, YM);
13690
+ const d = o.ray.intersectPlane(Dd, U());
13691
13691
  if (d) {
13692
13692
  Cr.copy(c), Cr.applyMatrix4(l.matrixWorld);
13693
- const p = z(d).sub(o.ray.origin).length(), m = Cr.radius * 0.5;
13693
+ const p = U(d).sub(o.ray.origin).length(), m = Cr.radius * 0.5;
13694
13694
  p < m && r.push({ distance: p, point: d, object: l, normal: Dd.normal.clone() });
13695
13695
  }
13696
13696
  return;
13697
13697
  }
13698
13698
  Cr.copy(c), Cr.applyMatrix4(l.matrixWorld);
13699
- const h = o.ray.intersectSphere(Cr, z());
13699
+ const h = o.ray.intersectSphere(Cr, U());
13700
13700
  if (h) {
13701
- const d = z(h).sub(o.ray.origin), u = d.length();
13701
+ const d = U(h).sub(o.ray.origin), u = d.length();
13702
13702
  if (u > Cr.radius) {
13703
13703
  const p = d.clone().normalize();
13704
13704
  r.push({ distance: u, point: h, object: l, normal: p });
@@ -13793,7 +13793,7 @@ var df;
13793
13793
  s.runMeshBVHRaycast = t;
13794
13794
  let i = !1, n = null, o = null, r = null, a = null;
13795
13795
  function l() {
13796
- i || (i = !0, import("./vendor-BQUQwut5.js").then((_) => _.index$1).then((_) => {
13796
+ i || (i = !0, import("./vendor-BatPc34p.js").then((_) => _.index$1).then((_) => {
13797
13797
  n = _.acceleratedRaycast, o = _.MeshBVH, r = _.StaticGeometryGenerator, a = _.computeBoundsTree;
13798
13798
  }).catch((_) => {
13799
13799
  (ri || R()) && console.error("Failed to load BVH library...", _.message);
@@ -13896,9 +13896,9 @@ function Ne(s) {
13896
13896
  qr && console.warn("Object is marked as not disposable", s);
13897
13897
  return;
13898
13898
  }
13899
- if (typeof s == "object" && (s[ES] = !0), s instanceof zi)
13899
+ if (typeof s == "object" && (s[ES] = !0), s instanceof Ui)
13900
13900
  Ne(s.environment), Ne(s.background), Ne(s.customDepthMaterial), Ne(s.customDistanceMaterial);
13901
- else if (s instanceof zo)
13901
+ else if (s instanceof Uo)
13902
13902
  Ne(s.geometry), Ne(s.material), Ne(s.skeleton), Ne(s.bindMatrix), Ne(s.bindMatrixInverse), Ne(s.customDepthMaterial), Ne(s.customDistanceMaterial), s.visible = !1;
13903
13903
  else if (s instanceof V)
13904
13904
  Ne(s.geometry), Ne(s.material), Ne(s.customDepthMaterial), Ne(s.customDistanceMaterial), s.visible = !1;
@@ -14123,7 +14123,7 @@ function ta(s, e, t) {
14123
14123
  if (e instanceof Set)
14124
14124
  return lA(e, t);
14125
14125
  if (!(e instanceof WeakMap || e instanceof WeakSet)) {
14126
- if (zR(e) && e.$serializedTypes)
14126
+ if (UR(e) && e.$serializedTypes)
14127
14127
  return cA(e, t);
14128
14128
  if (iy(e))
14129
14129
  return hA(s, e, t);
@@ -14351,7 +14351,7 @@ function mA() {
14351
14351
  const s = new Z(), e = new w(0, 0, 0), t = new w(0, 1, 0);
14352
14352
  Object.getOwnPropertyDescriptor(E.prototype, "worldForward") || Object.defineProperty(E.prototype, "worldForward", {
14353
14353
  get: function() {
14354
- return z().set(0, 0, 1).applyQuaternion(Ie(this));
14354
+ return U().set(0, 0, 1).applyQuaternion(Ie(this));
14355
14355
  },
14356
14356
  set: function(i) {
14357
14357
  const n = Mi().setFromRotationMatrix(s.lookAt(e.set(0, 0, 0), i, t.set(0, 1, 0)));
@@ -14359,11 +14359,11 @@ function mA() {
14359
14359
  }
14360
14360
  }), Object.getOwnPropertyDescriptor(E.prototype, "worldRight") || Object.defineProperty(E.prototype, "worldRight", {
14361
14361
  get: function() {
14362
- return z().set(1, 0, 0).applyQuaternion(Ie(this));
14362
+ return U().set(1, 0, 0).applyQuaternion(Ie(this));
14363
14363
  }
14364
14364
  }), Object.getOwnPropertyDescriptor(E.prototype, "worldUp") || Object.defineProperty(E.prototype, "worldUp", {
14365
14365
  get: function() {
14366
- return z().set(0, 1, 0).applyQuaternion(Ie(this));
14366
+ return U().set(0, 1, 0).applyQuaternion(Ie(this));
14367
14367
  }
14368
14368
  }), Object.getOwnPropertyDescriptor(E.prototype, "contains") || Object.defineProperty(E.prototype, "contains", {
14369
14369
  value: function(i) {
@@ -14402,7 +14402,7 @@ function rl(s, e) {
14402
14402
  return typeof e == "number" && (e = e > 0.5), s.visible = e, s.visible;
14403
14403
  }
14404
14404
  function yA(s) {
14405
- return s[zs] || A_(s);
14405
+ return s[Us] || A_(s);
14406
14406
  }
14407
14407
  function _A(s, e) {
14408
14408
  s[AS] = e;
@@ -14461,7 +14461,7 @@ function sy(s, e = !0, t = !0) {
14461
14461
  t && n.removeFromParent();
14462
14462
  }
14463
14463
  function bs(s, e, t = !0) {
14464
- return US(s, e, t);
14464
+ return zS(s, e, t);
14465
14465
  }
14466
14466
  function* jS(s, e, t = !1, i = 999, n = 0) {
14467
14467
  if (s?.userData.components && !(n > i)) {
@@ -14472,7 +14472,7 @@ function* jS(s, e, t = !1, i = 999, n = 0) {
14472
14472
  yield* jS(o, e, !0, i, n + 1);
14473
14473
  }
14474
14474
  }
14475
- function US(s, e, t, i = 0) {
14475
+ function zS(s, e, t, i = 0) {
14476
14476
  if (s) {
14477
14477
  if (s.isObject3D, i > 1e3) {
14478
14478
  console.warn("Failed to iterate components: too many levels");
@@ -14491,7 +14491,7 @@ function US(s, e, t, i = 0) {
14491
14491
  for (let o = 0; o < s.children.length; o++) {
14492
14492
  const r = s.children[o];
14493
14493
  if (!r) continue;
14494
- const a = US(r, e, t, n);
14494
+ const a = zS(r, e, t, n);
14495
14495
  if (a !== void 0) return a;
14496
14496
  }
14497
14497
  }
@@ -14504,7 +14504,7 @@ function Zo(s, e) {
14504
14504
  e != null && (e.x !== void 0 ? (t = new so(), t.position = e) : t = e);
14505
14505
  let i = K.Current;
14506
14506
  t?.context && (i = t.context), Tu && i.alias && console.log("context", i.alias), t && !t.idProvider && (t.idProvider = new xt(Date.now()));
14507
- const n = [], o = {}, r = {}, a = zS(i, s, t, n, o, r);
14507
+ const n = [], o = {}, r = {}, a = US(i, s, t, n, o, r);
14508
14508
  a && (sA(o), xA(r, o), wA(o)), Tu && (Rg(s, !0), Rg(a, !0));
14509
14509
  const l = {};
14510
14510
  for (const c in o) {
@@ -14537,7 +14537,7 @@ function Zo(s, e) {
14537
14537
  }
14538
14538
  return a;
14539
14539
  }
14540
- function zS(s, e, t, i, n, o) {
14540
+ function US(s, e, t, i, n, o) {
14541
14541
  if (!e || e[Di] || e instanceof cx || e instanceof hx || e.hideFlags & Js.DontInstantiate)
14542
14542
  return null;
14543
14543
  const r = e.userData;
@@ -14563,7 +14563,7 @@ function zS(s, e, t, i, n, o) {
14563
14563
  l.worldPosition = t.position;
14564
14564
  else l.position.copy(e.position);
14565
14565
  if (t?.rotation) {
14566
- if (t.rotation instanceof U)
14566
+ if (t.rotation instanceof z)
14567
14567
  l.worldQuaternion = t.rotation;
14568
14568
  else if (t.rotation instanceof Be)
14569
14569
  l.worldQuaternion = Mi().setFromEuler(t.rotation);
@@ -14598,7 +14598,7 @@ function zS(s, e, t, i, n, o) {
14598
14598
  }
14599
14599
  t && (t.position = void 0, t.rotation = void 0, t.scale = void 0, t.parent = void 0, t.visible = void 0);
14600
14600
  for (const d in e.children) {
14601
- const u = e.children[d], p = zS(s, u, t, i, n, o);
14601
+ const u = e.children[d], p = US(s, u, t, i, n, o);
14602
14602
  p && (n[p.uuid] = { original: u, clone: p }, l.add(p));
14603
14603
  }
14604
14604
  return l;
@@ -14802,11 +14802,11 @@ function gf(s, e, t, i = 0) {
14802
14802
  const n = Nh(s);
14803
14803
  if (e && (e = n, e && s.parent && i === 0)) {
14804
14804
  const l = s.parent;
14805
- e = l[zs], e === void 0 && (l instanceof zi || (e = !0));
14805
+ e = l[Us], e === void 0 && (l instanceof Ui || (e = !0));
14806
14806
  }
14807
- const r = s[zs] !== e;
14807
+ const r = s[Us] !== e;
14808
14808
  if (r) {
14809
- s[zs] = e, SA && console.warn("ACTIVE CHANGE", { name: s.name, activeSelf: n, visible: s.visible, activeInHierarchy: e, changed: r, go: s });
14809
+ s[Us] = e, SA && console.warn("ACTIVE CHANGE", { name: s.name, activeSelf: n, visible: s.visible, activeInHierarchy: e, changed: r, go: s });
14810
14810
  {
14811
14811
  const l = s.userData?.components;
14812
14812
  if (l) {
@@ -14833,7 +14833,7 @@ function gf(s, e, t, i = 0) {
14833
14833
  let c = !0;
14834
14834
  for (let h = 0, d = a.length; h < d; h++) {
14835
14835
  const u = a[h];
14836
- u[zs] !== !1 && gf(u, !1, t, i + 1) === !1 && (c = !1);
14836
+ u[Us] !== !1 && gf(u, !1, t, i + 1) === !1 && (c = !1);
14837
14837
  }
14838
14838
  return c;
14839
14839
  }
@@ -14857,7 +14857,7 @@ function ih(s) {
14857
14857
  }
14858
14858
  i = i.parent;
14859
14859
  }
14860
- s[zs] = e && t;
14860
+ s[Us] = e && t;
14861
14861
  }
14862
14862
  const ll = /* @__PURE__ */ new Map(), WS = /* @__PURE__ */ Symbol("prewarmFlag"), yf = /* @__PURE__ */ Symbol("waitingForPrewarm"), ay = x("debugprewarm");
14863
14863
  function kA(s, e) {
@@ -15076,7 +15076,7 @@ function $h(s, e, t, i = !0) {
15076
15076
  return t || (t = []), i && (t.length = 0), QS(s, e, t), t;
15077
15077
  }
15078
15078
  function ep(s, e, t = !1) {
15079
- if (t === !1 && s[zs] === !1) return null;
15079
+ if (t === !1 && s[Us] === !1) return null;
15080
15080
  const i = Jo(s, e);
15081
15081
  if (t === !1 && (i?.enabled === !1 || i?.activeAndEnabled === !1)) return null;
15082
15082
  if (i) return i;
@@ -15195,7 +15195,7 @@ function a4() {
15195
15195
  function P0() {
15196
15196
  return globalThis.NEEDLE_HOT_RELOAD_ENABLED === !0;
15197
15197
  }
15198
- function UA(s) {
15198
+ function zA(s) {
15199
15199
  if (Ph) {
15200
15200
  Ho && console.warn("[Needle Engine] Hot reloading is in progress, not registering instance", s);
15201
15201
  return;
@@ -15204,7 +15204,7 @@ function UA(s) {
15204
15204
  const t = s.constructor.name;
15205
15205
  nh.has(t) ? nh.get(t)?.push(s) : nh.set(t, [s]);
15206
15206
  }
15207
- function zA(s) {
15207
+ function UA(s) {
15208
15208
  if (Ph) {
15209
15209
  Ho && console.warn("[Needle Engine] Hot reloading is in progress, not unregistering instance", s);
15210
15210
  return;
@@ -15710,11 +15710,11 @@ class A {
15710
15710
  }
15711
15711
  get __isActiveInHierarchy() {
15712
15712
  if (!this.gameObject) return !1;
15713
- const e = this.gameObject[zs];
15713
+ const e = this.gameObject[Us];
15714
15714
  return e === void 0 ? !0 : e;
15715
15715
  }
15716
15716
  set __isActiveInHierarchy(e) {
15717
- this.gameObject && (this.gameObject[zs] = e);
15717
+ this.gameObject && (this.gameObject[Us] = e);
15718
15718
  }
15719
15719
  /**
15720
15720
  * Reference to the GameObject this component is attached to
@@ -15838,7 +15838,7 @@ class A {
15838
15838
  }
15839
15839
  /** @internal */
15840
15840
  constructor(e) {
15841
- this.__didAwake = !1, this.__didStart = !1, this.__didCompleteStart = !1, this.__inEnableOrDisableCallback = !1, this.__didEnable = !1, this.__isEnabled = void 0, this.__destroyed = !1, this._internalInit(e), P0() && UA(this);
15841
+ this.__didAwake = !1, this.__didStart = !1, this.__didCompleteStart = !1, this.__inEnableOrDisableCallback = !1, this.__didEnable = !1, this.__isEnabled = void 0, this.__destroyed = !1, this._internalInit(e), P0() && zA(this);
15842
15842
  }
15843
15843
  /** @internal */
15844
15844
  __internalNewInstanceCreated(e) {
@@ -15891,7 +15891,7 @@ class A {
15891
15891
  }
15892
15892
  /** @internal */
15893
15893
  __internalDestroy() {
15894
- this.__destroyed || (this.__destroyed = !0, this.__didAwake && (this.onDestroy?.call(this), this.__destroyCleanups?.dispose(), this.dispatchEvent(new CustomEvent("destroyed", { detail: this }))), BA(this), P0() && zA(this));
15894
+ this.__destroyed || (this.__destroyed = !0, this.__didAwake && (this.onDestroy?.call(this), this.__destroyCleanups?.dispose(), this.dispatchEvent(new CustomEvent("destroyed", { detail: this }))), BA(this), P0() && UA(this));
15895
15895
  }
15896
15896
  /**
15897
15897
  * Controls whether this component is enabled
@@ -16498,12 +16498,12 @@ function KS(s) {
16498
16498
  return s === "rotation" ? "quaternion" : s;
16499
16499
  }
16500
16500
  function ZA(s, e) {
16501
- return s === "quaternion" || s === "rotation" ? Ec : s === "visible" ? Qb : s === "position" || s === "scale" ? Mc : s === "color" || s === "emissive" ? Yb : e instanceof w ? Mc : e instanceof U ? Ec : e instanceof oe ? Yb : e instanceof Be ? Ec : typeof e == "boolean" ? Qb : typeof e == "number" ? Qp : Array.isArray(e) ? e.length === 4 ? Ec : e.length === 3 ? Mc : e.length === 2 ? Mc : Qp : Qp;
16501
+ return s === "quaternion" || s === "rotation" ? Ec : s === "visible" ? Qb : s === "position" || s === "scale" ? Mc : s === "color" || s === "emissive" ? Yb : e instanceof w ? Mc : e instanceof z ? Ec : e instanceof oe ? Yb : e instanceof Be ? Ec : typeof e == "boolean" ? Qb : typeof e == "number" ? Qp : Array.isArray(e) ? e.length === 4 ? Ec : e.length === 3 ? Mc : e.length === 2 ? Mc : Qp : Qp;
16502
16502
  }
16503
16503
  function JA(s, e) {
16504
16504
  if (Array.isArray(s)) {
16505
16505
  if (e === "rotation" && s.length === 3) {
16506
- const t = new U().setFromEuler(new Be(s[0], s[1], s[2]));
16506
+ const t = new z().setFromEuler(new Be(s[0], s[1], s[2]));
16507
16507
  return [t.x, t.y, t.z, t.w];
16508
16508
  }
16509
16509
  return s;
@@ -16511,10 +16511,10 @@ function JA(s, e) {
16511
16511
  if (typeof s == "number") return [s];
16512
16512
  if (typeof s == "boolean") return [s ? 1 : 0];
16513
16513
  if (s instanceof w) return [s.x, s.y, s.z];
16514
- if (s instanceof U) return [s.x, s.y, s.z, s.w];
16514
+ if (s instanceof z) return [s.x, s.y, s.z, s.w];
16515
16515
  if (s instanceof oe) return [s.r, s.g, s.b];
16516
16516
  if (s instanceof Be) {
16517
- const t = new U().setFromEuler(s);
16517
+ const t = new z().setFromEuler(s);
16518
16518
  return [t.x, t.y, t.z, t.w];
16519
16519
  }
16520
16520
  return typeof s == "object" && s !== null && "x" in s && "y" in s ? "w" in s ? [s.x, s.y, s.z, s.w] : "z" in s ? [s.x, s.y, s.z] : [s.x, s.y] : [Number(s)];
@@ -16560,7 +16560,7 @@ function oI(s) {
16560
16560
  return Ii.NotEqual;
16561
16561
  }
16562
16562
  }
16563
- class U_ {
16563
+ class z_ {
16564
16564
  _name;
16565
16565
  _parameters = [];
16566
16566
  _states = [];
@@ -16573,7 +16573,7 @@ class U_ {
16573
16573
  * @param name - Optional name for the controller
16574
16574
  */
16575
16575
  static create(e) {
16576
- return new U_(e);
16576
+ return new z_(e);
16577
16577
  }
16578
16578
  constructor(e) {
16579
16579
  this._name = e ?? "AnimatorController";
@@ -16810,7 +16810,7 @@ const Ft = x("debuganimatorcontroller"), Bd = x("debugrootmotion"), ZS = class l
16810
16810
  * ```
16811
16811
  */
16812
16812
  static build(e) {
16813
- return new U_(e);
16813
+ return new z_(e);
16814
16814
  }
16815
16815
  /**
16816
16816
  * Plays an animation state by name or hash.
@@ -17350,13 +17350,13 @@ class yt {
17350
17350
  rotationWrapper = null;
17351
17351
  context;
17352
17352
  positionChange = new w();
17353
- rotationChange = new U();
17353
+ rotationChange = new z();
17354
17354
  constructor(e, t, i, n, o) {
17355
- if (this.context = e, this.root = t, this.clip = i, yt.firstKeyframeRotation[this.cacheId] || (yt.firstKeyframeRotation[this.cacheId] = new U()), o) {
17355
+ if (this.context = e, this.root = t, this.clip = i, yt.firstKeyframeRotation[this.cacheId] || (yt.firstKeyframeRotation[this.cacheId] = new z()), o) {
17356
17356
  const r = o.values;
17357
17357
  yt.firstKeyframeRotation[this.cacheId].set(r[0], r[1], r[2], r[3]);
17358
17358
  }
17359
- yt.spaceRotation[this.cacheId] || (yt.spaceRotation[this.cacheId] = new U()), yt.effectiveSpaceRotation[this.cacheId] || (yt.effectiveSpaceRotation[this.cacheId] = new U()), yt.clipOffsetRotation[this.cacheId] = new U(), o && yt.clipOffsetRotation[this.cacheId].set(o.values[0], o.values[1], o.values[2], o.values[3]).invert(), this.handlePosition(i, n), this.handleRotation(i, o);
17359
+ yt.spaceRotation[this.cacheId] || (yt.spaceRotation[this.cacheId] = new z()), yt.effectiveSpaceRotation[this.cacheId] || (yt.effectiveSpaceRotation[this.cacheId] = new z()), yt.clipOffsetRotation[this.cacheId] = new z(), o && yt.clipOffsetRotation[this.cacheId].set(o.values[0], o.values[1], o.values[2], o.values[3]).invert(), this.handlePosition(i, n), this.handleRotation(i, o);
17360
17360
  }
17361
17361
  onStart(e) {
17362
17362
  if (e.getClip() !== this.clip) return;
@@ -17382,17 +17382,17 @@ class yt {
17382
17382
  });
17383
17383
  }
17384
17384
  }
17385
- static identityQuaternion = new U();
17385
+ static identityQuaternion = new z();
17386
17386
  handleRotation(e, t) {
17387
17387
  if (t) {
17388
17388
  if (Bd) {
17389
- const r = t.values, a = new Be().setFromQuaternion(new U(r[0], r[1], r[2], r[3]));
17389
+ const r = t.values, a = new Be().setFromQuaternion(new z(r[0], r[1], r[2], r[3]));
17390
17390
  console.log(e.name, t.name, "FIRST ROTATION IN TRACK", B.toDegrees(a.y));
17391
- const l = t.values.length - 4, c = new U().set(r[l], r[l + 1], r[l + 2], r[l + 3]), h = new Be().setFromQuaternion(c);
17391
+ const l = t.values.length - 4, c = new z().set(r[l], r[l + 1], r[l + 2], r[l + 3]), h = new Be().setFromQuaternion(c);
17392
17392
  console.log(e.name, t.name, "LAST ROTATION IN TRACK", B.toDegrees(h.y));
17393
17393
  }
17394
17394
  let i = 0;
17395
- const n = new U(), o = new U();
17395
+ const n = new z(), o = new z();
17396
17396
  this.rotationWrapper = new T0(t, (r, a) => (r > i && (o.set(a[0], a[1], a[2], a[3]), n.invert(), o.multiply(n), this.rotationChange.copy(o)), n.fromArray(a), i = r, a[0] = 0, a[1] = 0, a[2] = 0, a[3] = 1, a));
17397
17397
  }
17398
17398
  }
@@ -17409,7 +17409,7 @@ class lI {
17409
17409
  handler = [];
17410
17410
  root;
17411
17411
  basePosition = new w();
17412
- baseQuaternion = new U();
17412
+ baseQuaternion = new z();
17413
17413
  baseRotation = new Be();
17414
17414
  constructor(e) {
17415
17415
  this.controller = e;
@@ -17431,7 +17431,7 @@ class lI {
17431
17431
  t.onBeforeUpdate(e);
17432
17432
  }
17433
17433
  summedPosition = new w();
17434
- summedRotation = new U();
17434
+ summedRotation = new z();
17435
17435
  onAfterUpdate(e) {
17436
17436
  if (!(e <= 0)) {
17437
17437
  this.root.position.copy(this.basePosition), this.root.quaternion.copy(this.baseQuaternion), this.summedPosition.set(0, 0, 0), this.summedRotation.set(0, 0, 0, 1);
@@ -18322,7 +18322,7 @@ class vI extends Vi {
18322
18322
  if (e instanceof ke && t.type === $s) {
18323
18323
  let i = e;
18324
18324
  const n = cy.get(i)?.deref();
18325
- n && (i = n), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof UP && (i.isCompressedTexture = !1, i.format = Ff);
18325
+ n && (i = n), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof zP && (i.isCompressedTexture = !1, i.format = Ff);
18326
18326
  const o = i.image, r = new $s(o.width, o.height, {
18327
18327
  colorSpace: Ys
18328
18328
  });
@@ -18655,7 +18655,7 @@ class oo extends A {
18655
18655
  }
18656
18656
  }), l = a.min.y;
18657
18657
  if (l < 1 / 0) {
18658
- const c = z();
18658
+ const c = U();
18659
18659
  c.x = a.min.x + (a.max.x - a.min.x) * 0.5;
18660
18660
  const h = it(this.gameObject).x;
18661
18661
  c.y = l + this._height * h - o, c.z = a.min.z + (a.max.z - a.min.z) * 0.5, un(this._projection, c);
@@ -18833,7 +18833,7 @@ function DI(s) {
18833
18833
  fov: s.fov
18834
18834
  };
18835
18835
  }
18836
- var FI = Object.defineProperty, z_ = (s, e, t, i) => {
18836
+ var FI = Object.defineProperty, U_ = (s, e, t, i) => {
18837
18837
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
18838
18838
  (r = s[o]) && (n = r(e, t, n) || n);
18839
18839
  return n && FI(e, t, n), n;
@@ -18852,13 +18852,13 @@ class Ml extends A {
18852
18852
  t && (t.worldPosition = e);
18853
18853
  }
18854
18854
  }
18855
- z_([
18855
+ U_([
18856
18856
  f()
18857
18857
  ], Ml.prototype, "constraintActive");
18858
- z_([
18858
+ U_([
18859
18859
  f()
18860
18860
  ], Ml.prototype, "locked");
18861
- z_([
18861
+ U_([
18862
18862
  f(E)
18863
18863
  ], Ml.prototype, "sources");
18864
18864
  let Xr = class {
@@ -18995,7 +18995,7 @@ function BI(s, e, t, i, n) {
18995
18995
  if (!l || !l.get) {
18996
18996
  this[r] = this[o];
18997
18997
  const c = this[o];
18998
- if (c instanceof ee || c instanceof w || c instanceof ve || c instanceof U) {
18998
+ if (c instanceof ee || c instanceof w || c instanceof ve || c instanceof z) {
18999
18999
  const h = this[o];
19000
19000
  l_(h, () => {
19001
19001
  this.onValidate(o);
@@ -19047,12 +19047,12 @@ const f4 = function(s) {
19047
19047
  });
19048
19048
  };
19049
19049
  };
19050
- var jI = Object.defineProperty, UI = Object.getOwnPropertyDescriptor, Gi = (s, e, t, i) => {
19051
- for (var n = i > 1 ? void 0 : i ? UI(e, t) : e, o = s.length - 1, r; o >= 0; o--)
19050
+ var jI = Object.defineProperty, zI = Object.getOwnPropertyDescriptor, Gi = (s, e, t, i) => {
19051
+ for (var n = i > 1 ? void 0 : i ? zI(e, t) : e, o = s.length - 1, r; o >= 0; o--)
19052
19052
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
19053
19053
  return i && n && jI(e, t, n), n;
19054
19054
  };
19055
- class zI {
19055
+ class UI {
19056
19056
  get isDirty() {
19057
19057
  return this.positionChanged || this.rotationChanged;
19058
19058
  }
@@ -19115,7 +19115,7 @@ class zI {
19115
19115
  this._positionWatch?.revoke(), this._rotationWatch?.revoke();
19116
19116
  }
19117
19117
  }
19118
- const Pi = class za extends A {
19118
+ const Pi = class Ua extends A {
19119
19119
  get isRigidbody() {
19120
19120
  return !0;
19121
19121
  }
@@ -19208,7 +19208,7 @@ const Pi = class za extends A {
19208
19208
  this._watch = void 0, this._propertiesChanged = !1;
19209
19209
  }
19210
19210
  onEnable() {
19211
- this._watch || (this._watch = new zI(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), De.LateUpdate), R() && (globalThis.NEEDLE_USE_RAPIER === !1 ? console.warn("RAPIER physics are disabled in your build. Enable them by setting NEEDLE_USE_RAPIER to true in your build config: Rigidbody could not be created.") : L.RAPIER_PHYSICS.ready().then(async () => {
19211
+ this._watch || (this._watch = new UI(this.gameObject, this.context)), this._watch.start(!0, !0), this.startCoroutine(this.beforePhysics(), De.LateUpdate), R() && (globalThis.NEEDLE_USE_RAPIER === !1 ? console.warn("RAPIER physics are disabled in your build. Enable them by setting NEEDLE_USE_RAPIER to true in your build config: Rigidbody could not be created.") : L.RAPIER_PHYSICS.ready().then(async () => {
19212
19212
  await a_(3), this.activeAndEnabled && !this.context.physics.engine?.getBody(this) && console.warn(`Rigidbody could not be created. Ensure "${this.name}" has a Collider component.`);
19213
19213
  }));
19214
19214
  }
@@ -19219,7 +19219,7 @@ const Pi = class za extends A {
19219
19219
  this.context.physics.engine?.removeBody(this);
19220
19220
  }
19221
19221
  onValidate(e) {
19222
- this._propertiesChanged = !0, e === "autoMass" && !this.autoMass && R() && !za._didWarnAutoMass && (za._didWarnAutoMass = !0, console.warn("[Rigidbody] autoMass disabled — consider using Collider.density instead of setting mass explicitly. Density scales naturally with collider size."));
19222
+ this._propertiesChanged = !0, e === "autoMass" && !this.autoMass && R() && !Ua._didWarnAutoMass && (Ua._didWarnAutoMass = !0, console.warn("[Rigidbody] autoMass disabled — consider using Collider.density instead of setting mass explicitly. Density scales naturally with collider size."));
19223
19223
  }
19224
19224
  static _didWarnAutoMass = !1;
19225
19225
  // need to do this right before updating physics to prevent rendered object glitching through physical bodies
@@ -19323,9 +19323,9 @@ const Pi = class za extends A {
19323
19323
  }
19324
19324
  captureVelocity() {
19325
19325
  const e = this.gameObject.matrixWorld;
19326
- za.tempPosition.setFromMatrixPosition(e);
19327
- const t = za.tempPosition.sub(this._lastPosition);
19328
- this._lastPosition.copy(za.tempPosition), this._smoothedVelocity.lerp(t, this.context.time.deltaTime / 0.1);
19326
+ Ua.tempPosition.setFromMatrixPosition(e);
19327
+ const t = Ua.tempPosition.sub(this._lastPosition);
19328
+ this._lastPosition.copy(Ua.tempPosition), this._smoothedVelocity.lerp(t, this.context.time.deltaTime / 0.1);
19329
19329
  }
19330
19330
  };
19331
19331
  Gi([
@@ -19465,7 +19465,7 @@ class vs extends A {
19465
19465
  receivedDataCallback = null;
19466
19466
  /** @internal */
19467
19467
  awake() {
19468
- Po && console.log("[SyncedTransform] new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new U(), this._targetScale = new w(), this.lastPosition = new w(), this.lastRotation = new U(), this.lastScale = new w(), this.rb = k.getComponentInChildren(this.gameObject, ht), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new vE(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(re.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Oh, this.receivedDataCallback);
19468
+ Po && console.log("[SyncedTransform] new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new w(), this._targetRotation = new z(), this._targetScale = new w(), this.lastPosition = new w(), this.lastRotation = new z(), this.lastScale = new w(), this.rb = k.getComponentInChildren(this.gameObject, ht), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new vE(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(re.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(Oh, this.receivedDataCallback);
19469
19469
  }
19470
19470
  /** @internal */
19471
19471
  onDestroy() {
@@ -19494,7 +19494,7 @@ class vs extends A {
19494
19494
  const o = t.rotation();
19495
19495
  o && (this.tempEuler.set(o.x(), o.y(), o.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) && Fx(this.gameObject, this.tempEuler));
19496
19496
  const r = t.scale();
19497
- r && (i === 0 ? this.gameObject.scale.set(r.x(), r.y(), r.z()) : (this.interpolateScale && this._targetScale.set(r.x(), r.y(), r.z()), (!this.interpolateScale || !this._receivedDataBefore) && (this.gameObject.worldScale = z(r.x(), r.y(), r.z()))));
19497
+ r && (i === 0 ? this.gameObject.scale.set(r.x(), r.y(), r.z()) : (this.interpolateScale && this._targetScale.set(r.x(), r.y(), r.z()), (!this.interpolateScale || !this._receivedDataBefore) && (this.gameObject.worldScale = U(r.x(), r.y(), r.z()))));
19498
19498
  }
19499
19499
  this._receivedDataBefore = !0;
19500
19500
  }
@@ -19710,7 +19710,7 @@ class jn extends Th {
19710
19710
  if (!this.targets) return null;
19711
19711
  e ??= new El(), e.targets = this.targets, e.results = this.raycastHits, e.useAcceleratedRaycast = !0;
19712
19712
  const t = e.testObject;
19713
- this.ignoreSkinnedMeshes && (e.testObject = (n) => n instanceof zo ? "continue in children" : t ? t(n) : !0);
19713
+ this.ignoreSkinnedMeshes && (e.testObject = (n) => n instanceof Uo ? "continue in children" : t ? t(n) : !0);
19714
19714
  const i = this.context.physics.raycast(e);
19715
19715
  return e.testObject = t, i;
19716
19716
  }
@@ -20205,7 +20205,7 @@ var GI = Object.defineProperty, HI = Object.getOwnPropertyDescriptor, Re = (s, e
20205
20205
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
20206
20206
  return i && n && GI(e, t, n), n;
20207
20207
  };
20208
- const Bt = x("debugorbit"), Tm = x("freecam"), qI = x("debugcamerafit"), Ud = x("smoothcam"), XI = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
20208
+ const Bt = x("debugorbit"), Tm = x("freecam"), qI = x("debugcamerafit"), zd = x("smoothcam"), XI = { LEFT: "", UP: "", RIGHT: "", BOTTOM: "" };
20209
20209
  let Rm;
20210
20210
  class xf extends CustomEvent {
20211
20211
  constructor(e, t) {
@@ -20416,7 +20416,7 @@ class ye extends A {
20416
20416
  this._controls.stopListenToKeyEvents();
20417
20417
  } catch {
20418
20418
  }
20419
- this._syncedTransform = k.getComponent(this.gameObject, vs) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: Ur.Early }), this.context.input.addEventListener("pointerdown", this._onPointerDownLate, { queue: Ur.Late }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: Ur.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: Ur.Late });
20419
+ this._syncedTransform = k.getComponent(this.gameObject, vs) ?? void 0, this.context.pre_render_callbacks.push(this.__onPreRender), this._activePointerEvents = [], this.context.input.addEventListener("pointerdown", this._onPointerDown, { queue: zr.Early }), this.context.input.addEventListener("pointerdown", this._onPointerDownLate, { queue: zr.Late }), this.context.input.addEventListener("pointerup", this._onPointerUp, { queue: zr.Early }), this.context.input.addEventListener("pointerup", this._onPointerUpLate, { queue: zr.Late });
20420
20420
  }
20421
20421
  /** @internal */
20422
20422
  onDisable() {
@@ -20534,11 +20534,11 @@ class ye extends A {
20534
20534
  }
20535
20535
  }
20536
20536
  if (this.targetBounds) {
20537
- const i = this.targetBounds.worldPosition, n = z(this.targetBounds.worldScale).multiplyScalar(0.5), o = z(i).sub(n), r = z(i).add(n);
20537
+ const i = this.targetBounds.worldPosition, n = U(this.targetBounds.worldScale).multiplyScalar(0.5), o = U(i).sub(n), r = U(i).add(n);
20538
20538
  if (this._lookTargetLerpActive)
20539
20539
  this._lookTargetEndPosition.clamp(o, r);
20540
20540
  else {
20541
- const a = this._controls.target, l = z(a).clamp(o, r).sub(a);
20541
+ const a = this._controls.target, l = U(a).clamp(o, r).sub(a);
20542
20542
  l.multiplyScalar(Math.min(1, this.context.time.deltaTime / 0.1)), a.add(l), this._cameraObject?.position.add(l);
20543
20543
  }
20544
20544
  Bt && j.DrawWireBox(i, n.multiplyScalar(2), 16755200);
@@ -20546,9 +20546,9 @@ class ye extends A {
20546
20546
  if (this._controls) {
20547
20547
  this.debugLog && (this._controls.domElement = this.context.renderer.domElement);
20548
20548
  const i = 1 / (this.context.focusRectSettings?.zoom || 1);
20549
- if (this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((n) => n.used), this._controls.keys = this.enableKeys ? Rm : XI, 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.panSpeed = i, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle ?? 1 / 0, this._controls.maxAzimuthAngle = this.maxAzimuthAngle ?? 1 / 0, this._controls.minPolarAngle = this.minPolarAngle ?? 0, this._controls.maxPolarAngle = this.maxPolarAngle ?? Math.PI, Tm || (this._camera?.threeCamera?.type === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom ?? 0, this._controls.maxDistance = this.maxZoom ?? 1 / 0, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom ?? 0, this._controls.maxZoom = this.maxZoom ?? 1 / 0)), typeof Ud == "number" || Ud === !0) {
20549
+ if (this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent && !this.context.isInXR && !this._activePointerEvents.some((n) => n.used), this._controls.keys = this.enableKeys ? Rm : XI, 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.panSpeed = i, this._controls.enableRotate = this.enableRotate, this._controls.minAzimuthAngle = this.minAzimuthAngle ?? 1 / 0, this._controls.maxAzimuthAngle = this.maxAzimuthAngle ?? 1 / 0, this._controls.minPolarAngle = this.minPolarAngle ?? 0, this._controls.maxPolarAngle = this.maxPolarAngle ?? Math.PI, Tm || (this._camera?.threeCamera?.type === "PerspectiveCamera" ? (this._controls.minDistance = this.minZoom ?? 0, this._controls.maxDistance = this.maxZoom ?? 1 / 0, this._controls.minZoom = 0, this._controls.maxZoom = 1 / 0) : (this._controls.minDistance = 0, this._controls.maxDistance = 1 / 0, this._controls.minZoom = this.minZoom ?? 0, this._controls.maxZoom = this.maxZoom ?? 1 / 0)), typeof zd == "number" || zd === !0) {
20550
20550
  this._controls.enableDamping = !0;
20551
- const n = typeof Ud == "number" ? Ud : 0.99;
20551
+ const n = typeof zd == "number" ? zd : 0.99;
20552
20552
  this._controls.dampingFactor = Math.max(1e-3, 1 - Math.min(1, n));
20553
20553
  }
20554
20554
  if (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 && (!Tm && this.lookAtTarget && !this._lookTargetLerpActive && (this.lockLookAtTarget ? this.setLookTargetFromConstraint(this.lookAtConstraint01) : this._didApplyLookAtTarget || (this._didApplyLookAtTarget = !0, this.setLookTargetFromConstraint(1))), this._controls.update(this.context.time.deltaTime), Bt)) {
@@ -20581,9 +20581,9 @@ class ye extends A {
20581
20581
  return (R() || Bt) && console.warn("[OrbitControls] setCameraAndLookTarget target is not an Object3D or Camera"), !1;
20582
20582
  e instanceof wi && (e = e.gameObject);
20583
20583
  const i = e.worldPosition, n = e.worldForward;
20584
- e instanceof zP && (Bt && console.debug("[OrbitControls] setCameraAndLookTarget flip forward direction for camera"), n.multiplyScalar(-1));
20584
+ e instanceof UP && (Bt && console.debug("[OrbitControls] setCameraAndLookTarget flip forward direction for camera"), n.multiplyScalar(-1));
20585
20585
  const o = new ms(i, n);
20586
- return Bt && j.DrawRay(o.origin, o.direction, 16711680, 10), this.setTargetFromRaycast(o, t) || this.setLookTargetPosition(o.at(2, z()), t), this.setCameraTargetPosition(i, t), !0;
20586
+ return Bt && j.DrawRay(o.origin, o.direction, 16711680, 10), this.setTargetFromRaycast(o, t) || this.setLookTargetPosition(o.at(2, U()), t), this.setCameraTargetPosition(i, t), !0;
20587
20587
  }
20588
20588
  /** Moves the camera to position smoothly.
20589
20589
  * @param position The position in local space of the controllerObject to move the camera to. If null the camera will stop lerping to the target.
@@ -21826,7 +21826,7 @@ class sL {
21826
21826
  if (!(r.times.length <= 0)) {
21827
21827
  if (r.name.endsWith(n))
21828
21828
  this.rootStartPosition = new w().fromArray(r.values, 0), this.rootEndPosition = new w().fromArray(r.values, r.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition), Mn && console.log(this.rootPositionOffset);
21829
- else if (r.name.endsWith(o) && (this.rootStartQuaternion = new U().fromArray(r.values, 0), this.rootEndQuaternion = new U().fromArray(r.values, r.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), Mn)) {
21829
+ else if (r.name.endsWith(o) && (this.rootStartQuaternion = new z().fromArray(r.values, 0), this.rootEndQuaternion = new z().fromArray(r.values, r.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), Mn)) {
21830
21830
  const a = new Be().setFromQuaternion(this.rootQuaternionOffset);
21831
21831
  console.log("ROT", a);
21832
21832
  }
@@ -21907,7 +21907,7 @@ class Cf extends Al {
21907
21907
  this.target && (this._animator = k.getComponent(this.target, Gt) ?? null, this._animator && Si.setObjectAnimated(this._animator.gameObject, this, !0));
21908
21908
  for (const e of this.models) {
21909
21909
  const t = e.asset, i = t.position, n = t.rotation;
21910
- i && i.x !== void 0 && (i.isVector3 || (t.position = new w(i.x, i.y, i.z)), n.isQuaternion || (t.rotation = new U(n.x, n.y, n.z, n.w)));
21910
+ i && i.x !== void 0 && (i.isVector3 || (t.position = new w(i.x, i.y, i.z)), n.isQuaternion || (t.rotation = new z(n.x, n.y, n.z, n.w)));
21911
21911
  }
21912
21912
  this.ensureTrackOffsets();
21913
21913
  }
@@ -21917,19 +21917,19 @@ class Cf extends Al {
21917
21917
  const e = this.trackOffset.position;
21918
21918
  e && (e.isVector3 || (this.trackOffset.position = new w(e.x, e.y, e.z)));
21919
21919
  const t = this.trackOffset.rotation;
21920
- t && (t.isQuaternion || (this.trackOffset.rotation = new U(t.x, t.y, t.z, t.w)));
21920
+ t && (t.isQuaternion || (this.trackOffset.rotation = new z(t.x, t.y, t.z, t.w)));
21921
21921
  }
21922
21922
  }
21923
21923
  _useclipOffsets = !0;
21924
21924
  _totalOffsetPosition = new w();
21925
- _totalOffsetRotation = new U();
21925
+ _totalOffsetRotation = new z();
21926
21926
  _totalOffsetPosition2 = new w();
21927
- _totalOffsetRotation2 = new U();
21927
+ _totalOffsetRotation2 = new z();
21928
21928
  _summedPos = new w();
21929
21929
  _tempPos = new w();
21930
- _summedRot = new U();
21931
- _tempRot = new U();
21932
- _clipRotQuat = new U();
21930
+ _summedRot = new z();
21931
+ _tempRot = new z();
21932
+ _clipRotQuat = new z();
21933
21933
  evaluate(e) {
21934
21934
  if (this.track.muted || !this.mixer) return;
21935
21935
  this.bind(), this._totalOffsetPosition.set(0, 0, 0), this._totalOffsetRotation.set(0, 0, 0, 1), this._totalOffsetPosition2.set(0, 0, 0), this._totalOffsetRotation2.set(0, 0, 0, 1);
@@ -21995,7 +21995,7 @@ class Cf extends Al {
21995
21995
  this.mixer.update(e);
21996
21996
  }
21997
21997
  createRotationInterpolant(e, t, i) {
21998
- const n = i.createInterpolant.bind(i), o = new U();
21998
+ const n = i.createInterpolant.bind(i), o = new z();
21999
21999
  this.ensureTrackOffsets();
22000
22000
  const r = this.trackOffset?.rotation;
22001
22001
  i.createInterpolant = () => {
@@ -22928,12 +22928,12 @@ const hL = {
22928
22928
  }
22929
22929
  ]
22930
22930
  };
22931
- class X_ extends zi {
22931
+ class X_ extends Ui {
22932
22932
  constructor(e) {
22933
22933
  super(), this.position.y = -3.5;
22934
22934
  const t = new gl();
22935
22935
  t.deleteAttribute("uv");
22936
- const i = new Tt({ metalness: 0, side: Uf }), n = new Tt({ metalness: 0 }), o = e == "legacy" ? hL : dL, r = new Qy(16777215, o.topLight.intensity, 28, 2);
22936
+ const i = new Tt({ metalness: 0, side: zf }), n = new Tt({ metalness: 0 }), o = e == "legacy" ? hL : dL, r = new Qy(16777215, o.topLight.intensity, 28, 2);
22937
22937
  r.position.set(...o.topLight.position), this.add(r);
22938
22938
  const a = new V(t, i);
22939
22939
  a.position.set(...o.room.position), a.scale.set(...o.room.scale), this.add(a);
@@ -22975,7 +22975,7 @@ function uL() {
22975
22975
  }
22976
22976
  }
22977
22977
  const o = cl(t, i, !0);
22978
- return t.position.x = 0, t.position.y = 1, t.position.z = 2, s.context.domElement?.cameraControls != !1 && U0(s.context, o), o;
22978
+ return t.position.x = 0, t.position.y = 1, t.position.z = 2, s.context.domElement?.cameraControls != !1 && z0(s.context, o), o;
22979
22979
  }), ce.registerCallback(de.ContextCreated, (s) => {
22980
22980
  if (!s.context.mainCamera) {
22981
22981
  oh && console.log("Will not auto-fit because a default camera exists");
@@ -22986,11 +22986,11 @@ function uL() {
22986
22986
  oh && console.log("Will not auto-fit because a camera controller exists");
22987
22987
  return;
22988
22988
  }
22989
- U0(s.context);
22989
+ z0(s.context);
22990
22990
  }
22991
22991
  }));
22992
22992
  }
22993
- function U0(s, e) {
22993
+ function z0(s, e) {
22994
22994
  e = e ?? s.mainCameraComponent;
22995
22995
  const t = e?.gameObject;
22996
22996
  if (oh && console.log("Creating default camera controls", e?.name), t) {
@@ -23396,7 +23396,7 @@ class ut extends A {
23396
23396
  const l = this.context.mainCameraComponent?.gameObject || this.context.mainCamera;
23397
23397
  l?.removeFromParent();
23398
23398
  const c = this.gameObject.removeFromParent();
23399
- $i(this.context.scene, !0, !0), this.context.scene = new zi(), this.context.scene.add(c), l && this.context.scene.add(l);
23399
+ $i(this.context.scene, !0, !0), this.context.scene = new Ui(), this.context.scene.add(c), l && this.context.scene.add(l);
23400
23400
  }
23401
23401
  if (e.asset.parent ? this._currentSceneAsset = Zo(e.asset, { parent: this.gameObject }) : (this._currentSceneAsset = e.asset, k.add(e.asset, this.gameObject)), this.useSceneLighting && this.context.sceneLighting.enable(e), this.useSceneBackground) {
23402
23402
  const l = this.context.lightmaps.tryGetSkybox(e.url);
@@ -23404,7 +23404,7 @@ class ut extends A {
23404
23404
  }
23405
23405
  if (this.useHistory && t >= 0) {
23406
23406
  let l = t.toString();
23407
- if (this.useSceneName && (e instanceof E ? l = e.name : e instanceof se && e.asset?.name ? l = e.asset.name : e.url && (l = z0(e.url))), this.queryParameterName?.length)
23407
+ if (this.useSceneName && (e instanceof E ? l = e.name : e instanceof se && e.asset?.name ? l = e.asset.name : e.url && (l = U0(e.url))), this.queryParameterName?.length)
23408
23408
  Hu(this.queryParameterName, l, this.useHistory);
23409
23409
  else {
23410
23410
  const c = history.state, h = this.guid + "::" + t;
@@ -23452,7 +23452,7 @@ class ut extends A {
23452
23452
  const r = [];
23453
23453
  if (o instanceof E) r.push(o.name);
23454
23454
  else {
23455
- o.url && r.push(z0(o.url));
23455
+ o.url && r.push(U0(o.url));
23456
23456
  const a = o.asset;
23457
23457
  a instanceof E && a.name && r.push(a.name);
23458
23458
  }
@@ -23576,7 +23576,7 @@ Mt([
23576
23576
  Mt([
23577
23577
  f(ne)
23578
23578
  ], ut.prototype, "sceneLoaded");
23579
- function z0(s) {
23579
+ function U0(s) {
23580
23580
  const t = s.split("/").pop()?.split(".").shift();
23581
23581
  return t?.length ? t : s;
23582
23582
  }
@@ -23805,14 +23805,14 @@ const aC = function(s = null) {
23805
23805
  OL(this), c.call(this);
23806
23806
  };
23807
23807
  };
23808
- }, zd = /* @__PURE__ */ new Map();
23808
+ }, Ud = /* @__PURE__ */ new Map();
23809
23809
  function rp(s, e, t) {
23810
23810
  const i = t?.format === void 0 ? s : `${s}|format=${t.format}`;
23811
- if (zd.has(i))
23812
- return zd.get(i);
23811
+ if (Ud.has(i))
23812
+ return Ud.get(i);
23813
23813
  const n = new URL(s, window.location.href), o = TL(n, e, t);
23814
- return zd.set(i, o), o.finally(() => {
23815
- zd.delete(i);
23814
+ return Ud.set(i, o), o.finally(() => {
23815
+ Ud.delete(i);
23816
23816
  }), o;
23817
23817
  }
23818
23818
  async function TL(s, e, t) {
@@ -24653,7 +24653,7 @@ class sr extends A {
24653
24653
  animator;
24654
24654
  lookForward = !0;
24655
24655
  awake() {
24656
- this._currentRotation = new U();
24656
+ this._currentRotation = new z();
24657
24657
  }
24658
24658
  update() {
24659
24659
  const e = this.context.input;
@@ -24728,7 +24728,7 @@ function ds(s, e) {
24728
24728
  s.layers[fC] = e;
24729
24729
  }
24730
24730
  const q0 = /* @__PURE__ */ Symbol("DidPatchLayers");
24731
- function UL() {
24731
+ function zL() {
24732
24732
  const s = Xo.prototype;
24733
24733
  if (s[q0]) return;
24734
24734
  s[q0] = !0;
@@ -24737,10 +24737,10 @@ function UL() {
24737
24737
  return this[fC] === !1 ? !1 : e.call(this, t);
24738
24738
  };
24739
24739
  }
24740
- var zL = Object.defineProperty, Ll = (s, e, t, i) => {
24740
+ var UL = Object.defineProperty, Ll = (s, e, t, i) => {
24741
24741
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
24742
24742
  (r = s[o]) && (n = r(e, t, n) || n);
24743
- return n && zL(e, t, n), n;
24743
+ return n && UL(e, t, n), n;
24744
24744
  };
24745
24745
  const Ra = x("debugcontactshadows");
24746
24746
  y_((s) => {
@@ -24857,7 +24857,7 @@ const pa = class Bc extends A {
24857
24857
  if (this.shadowsRoot.parent !== this.gameObject && this.gameObject.add(this.shadowsRoot), this.depthMaterial && this.horizontalBlurMaterial && this.verticalBlurMaterial && this.planeMaterial)
24858
24858
  return;
24859
24859
  Ra && console.log("Create ContactShadows on " + this.gameObject.name, this), this.shadowsRoot.name = "ContactShadows Root", this.shadowGroup.name = "ContactShadows Group", this.gameObject.add(this.shadowsRoot), this.shadowsRoot.add(this.shadowGroup), this.renderTarget = new gs(this.textureSize, this.textureSize), this.renderTarget.texture.generateMipmaps = !1, this.renderTargetBlur = new gs(this.textureSize, this.textureSize), this.renderTargetBlur.texture.generateMipmaps = !1;
24860
- const e = new zn(1, 1).rotateX(Math.PI / 2);
24860
+ const e = new Un(1, 1).rotateX(Math.PI / 2);
24861
24861
  this.gameObject instanceof V && (console.warn("ContactShadows can not be added to a Mesh. Please add it to a Group or an empty Object"), ds(this.gameObject, !1));
24862
24862
  const t = this.planeMaterial = new Le({
24863
24863
  map: this.renderTarget.texture,
@@ -24872,7 +24872,7 @@ const pa = class Bc extends A {
24872
24872
  depthWrite: !0,
24873
24873
  stencilWrite: !0,
24874
24874
  colorWrite: !1,
24875
- side: Uf
24875
+ side: zf
24876
24876
  });
24877
24877
  i.name = "ContactShadows Occluder", this.occluderMesh = new V(this.plane.geometry, i).translateY(-1e-4), this.occluderMesh.renderOrder = -100, this.occluderMesh.layers.set(2), this.shadowsRoot.add(this.occluderMesh), this.blurPlane = new V(e), this.blurPlane.visible = !1, this.shadowGroup.add(this.blurPlane);
24878
24878
  const n = 0, o = 1;
@@ -25072,7 +25072,7 @@ class hp {
25072
25072
  }
25073
25073
  }
25074
25074
  class tb {
25075
- _savedQuat = new U();
25075
+ _savedQuat = new z();
25076
25076
  init(e) {
25077
25077
  this._savedQuat.copy(e.gameObject.worldQuaternion);
25078
25078
  }
@@ -25148,9 +25148,9 @@ class GL {
25148
25148
  this._eulerCache.setFromQuaternion(i, "XYZ"), t & 1 && (this._eulerCache.x = this._startEuler.x), t & 2 && (this._eulerCache.y = this._startEuler.y), t & 4 && (this._eulerCache.z = this._startEuler.z), Am.setFromEuler(this._eulerCache), this.useLocalSpace ? e.quaternion.copy(Am) : e.worldQuaternion = Am, e.updateMatrix();
25149
25149
  }
25150
25150
  }
25151
- const Am = new U();
25151
+ const Am = new z();
25152
25152
  class _C {
25153
- _startQuat = new U();
25153
+ _startQuat = new z();
25154
25154
  _axis;
25155
25155
  constructor(e) {
25156
25156
  this._axis = e.clone().normalize();
@@ -25171,7 +25171,7 @@ class _C {
25171
25171
  e.updateMatrix();
25172
25172
  }
25173
25173
  }
25174
- const Gd = new U(), Pr = new U();
25174
+ const Gd = new z(), Pr = new z();
25175
25175
  class bC {
25176
25176
  constructor(e) {
25177
25177
  this.plane = e;
@@ -25555,7 +25555,7 @@ $n([
25555
25555
  f(ne)
25556
25556
  ], bn.prototype, "dragEnded");
25557
25557
  let Ja = bn;
25558
- const Hd = new U(), K0 = new w(), Z0 = new w(), J0 = new w(), qd = new w(), Xd = new w();
25558
+ const Hd = new z(), K0 = new w(), Z0 = new w(), J0 = new w(), qd = new w(), Xd = new w();
25559
25559
  class qL {
25560
25560
  handlerA;
25561
25561
  handlerB;
@@ -25567,7 +25567,7 @@ class qL {
25567
25567
  _followObject;
25568
25568
  _manipulatorObject;
25569
25569
  _deviceMode;
25570
- _followObjectStartWorldQuaternion = new U();
25570
+ _followObjectStartWorldQuaternion = new z();
25571
25571
  _gridSnapConstraint = new eb(0);
25572
25572
  _keepRotationConstraint = new tb();
25573
25573
  /** GrabPointPlaneConstraint returned by the active strategy (if any); used to sync snapResolution. */
@@ -25619,7 +25619,7 @@ class qL {
25619
25619
  this.handlerA.rebaseGrabPointToPointer(), this.handlerB.rebaseGrabPointToPointer(), this.handlerA.recenter(), this.handlerB.recenter(), this._manipulatorObject.removeFromParent(), this._followObject.removeFromParent(), this._manipulatorObject.destroy(), this._followObject.destroy();
25620
25620
  }
25621
25621
  _manipulatorPosOffset = new w();
25622
- _manipulatorRotOffset = new U();
25622
+ _manipulatorRotOffset = new z();
25623
25623
  /** Scale ratio between current two-hand distance and initial distance. Updated in alignManipulator(). */
25624
25624
  _currentScaleRatio = 1;
25625
25625
  /** World-scale of the dragged object captured at drag start. Used to apply scale directly. */
@@ -25712,7 +25712,7 @@ class qL {
25712
25712
  l.lerp(n.worldPosition, a), i.worldPosition = l;
25713
25713
  const c = i.worldQuaternion;
25714
25714
  if (c.slerp(n.worldQuaternion, a), i.worldQuaternion = c, !r) {
25715
- const h = z(
25715
+ const h = U(
25716
25716
  this._initialWorldScale.x * this._currentScaleRatio,
25717
25717
  this._initialWorldScale.y * this._currentScaleRatio,
25718
25718
  this._initialWorldScale.z * this._currentScaleRatio
@@ -25754,12 +25754,12 @@ class XL {
25754
25754
  const l = a[0];
25755
25755
  if (this._draggedOverObject === l.object ? this._draggedOverObjectDuration += e.context.time.deltaTime : (this._draggedOverObject = l.object, this._draggedOverObjectDuration = 0), l.face) {
25756
25756
  r = !0, this._hasLastSurfaceHitPoint = !0, this._lastSurfaceHitPoint.copy(l.point);
25757
- const c = z(l.normal || l.face.normal).applyQuaternion(l.object.worldQuaternion), h = this._draggedOverObjectDuration >= 0.15, d = e.totalMovement.length() >= 1e-3;
25757
+ const c = U(l.normal || l.face.normal).applyQuaternion(l.object.worldQuaternion), h = this._draggedOverObjectDuration >= 0.15, d = e.totalMovement.length() >= 1e-3;
25758
25758
  if (!(h || d))
25759
25759
  return null;
25760
25760
  if (this._draggedOverObjectLastSetUp !== this._draggedOverObject || this._draggedOverObjectLastNormal.dot(c) < 0.999999 || e.context.time.time - this._lastSurfacePlaneRefreshTime >= 1) {
25761
25761
  this._lastSurfacePlaneRefreshTime = e.context.time.time, this._draggedOverObjectLastSetUp = this._draggedOverObject, this._draggedOverObjectLastNormal.copy(c);
25762
- const m = z(), b = z();
25762
+ const m = U(), b = U();
25763
25763
  e.bounds.getCenter(m), e.bounds.getSize(b), m.sub(b.multiplyScalar(0.5).multiply(c));
25764
25764
  const y = m.dot(c);
25765
25765
  e.hitPointInLocalSpace.copy(c).multiplyScalar(y), e.hitNormalInLocalSpace.copy(l.face.normal), e.dragPlane.setFromNormalAndCoplanarPoint(c, l.point);
@@ -25789,7 +25789,7 @@ class QL {
25789
25789
  * getConstraints call). Updated by onTwoPointerScaleUpdate to keep bounds grounded. */
25790
25790
  _heightLock = null;
25791
25791
  initialize(e, t, i) {
25792
- const n = z(0, 1, 0);
25792
+ const n = U(0, 1, 0);
25793
25793
  e.gameObject?.parent && n.transformDirection(e.gameObject.parent.matrixWorld), e.dragPlane.setFromNormalAndCoplanarPoint(n, t), this.xzPlane.copy(e.dragPlane), this._inFallback = !1;
25794
25794
  }
25795
25795
  reset() {
@@ -25817,7 +25817,7 @@ class QL {
25817
25817
  e.gameObject ? e.gameObject.worldPosition : t.origin,
25818
25818
  this._fallbackAnchor
25819
25819
  )) : this._inFallback && i > 0.2 && (this._inFallback = !1), this._inFallback) {
25820
- const n = z(t.direction.x, 0, t.direction.z);
25820
+ const n = U(t.direction.x, 0, t.direction.z);
25821
25821
  n.lengthSq() > 1e-6 && n.normalize(), e.dragPlane.setFromNormalAndCoplanarPoint(n, this._fallbackAnchor);
25822
25822
  } else
25823
25823
  e.dragPlane.copy(this.xzPlane);
@@ -25921,8 +25921,8 @@ class Dm {
25921
25921
  _grabStartDistance = 0;
25922
25922
  _deviceMode;
25923
25923
  _followObjectStartPosition = new w();
25924
- _followObjectStartQuaternion = new U();
25925
- _followObjectStartWorldQuaternion = new U();
25924
+ _followObjectStartQuaternion = new z();
25925
+ _followObjectStartWorldQuaternion = new z();
25926
25926
  _lastDragPosRigSpace;
25927
25927
  _tempVec = new w();
25928
25928
  _tempMat = new Z();
@@ -26086,7 +26086,7 @@ class Dm {
26086
26086
  if (this._followObject.position.copy(this._followObjectStartPosition), l || this._followObject.quaternion.copy(this._followObjectStartQuaternion), r && this._grabStartDistance > 0.5) {
26087
26087
  const _ = this._hitPointInLocalSpace.clone();
26088
26088
  _.applyQuaternion(this._followObject.quaternion);
26089
- const v = z(this._followObjectStartPosition).add(_).normalize(), C = Math.max(0.1, d * this._grabStartDistance);
26089
+ const v = U(this._followObjectStartPosition).add(_).normalize(), C = Math.max(0.1, d * this._grabStartDistance);
26090
26090
  this._followObject.position.copy(v.multiplyScalar(C)).sub(_);
26091
26091
  } else
26092
26092
  this._followObject.position.multiplyScalar(d);
@@ -26095,7 +26095,7 @@ class Dm {
26095
26095
  if (this._snapContext.gameObject = this.gameObject, this._currentStrategy.update(this._snapContext, p, i, t) === null) return;
26096
26096
  if (this._currentStrategy.requiresPlaneIntersection && p.intersectPlane(this._dragPlane, this._tempVec)) {
26097
26097
  this._followObject.worldPosition = this._tempVec, this._followObject.updateMatrix(), this._followObject.updateMatrixWorld(!0);
26098
- const _ = z(this._hitPointInLocalSpace);
26098
+ const _ = U(this._hitPointInLocalSpace);
26099
26099
  this._followObject.localToWorld(_), fs && j.DrawLine(_, this._tempVec, 65535, 0, !1), this._followObject.worldPosition = this._tempVec.multiplyScalar(2).sub(_), this._followObject.updateMatrix();
26100
26100
  }
26101
26101
  this._gridSnapConstraint.snapGridResolution = this.settings.snapGridResolution, this._grabPointPlaneConstraint && (this._grabPointPlaneConstraint.snapResolution = this.settings.snapGridResolution), vC(this._followObject, this._activeConstraints);
@@ -26131,7 +26131,7 @@ class Dm {
26131
26131
  setPlaneViewAligned(e, t) {
26132
26132
  if (!this._followObject.parent)
26133
26133
  return !1;
26134
- const i = this._followObject.parent.worldForward, n = z(0, 1, 0), o = i, r = n.angleTo(o), a = 0.5;
26134
+ const i = this._followObject.parent.worldForward, n = U(0, 1, 0), o = i, r = n.angleTo(o), a = 0.5;
26135
26135
  return t && (r > Math.PI / 2 + a || r < Math.PI / 2 - a) ? this._dragPlane.setFromNormalAndCoplanarPoint(n, e) : this._dragPlane.setFromNormalAndCoplanarPoint(i, e), !0;
26136
26136
  }
26137
26137
  }
@@ -26174,7 +26174,7 @@ var ah;
26174
26174
  opacity: 0.4
26175
26175
  }));
26176
26176
  c.position.y = 0.5, l.scale.y = 0.01, l.add(c);
26177
- const h = new V(new zn(1, 1, 1, 1), new Le({
26177
+ const h = new V(new Un(1, 1, 1, 1), new Le({
26178
26178
  color: 34,
26179
26179
  transparent: !0,
26180
26180
  opacity: 0.05,
@@ -26194,10 +26194,10 @@ var ah;
26194
26194
  }
26195
26195
  s.removePreview = i;
26196
26196
  })(ah || (ah = {}));
26197
- const Ue = x("debugfileformat");
26197
+ const ze = x("debugfileformat");
26198
26198
  function xC(s) {
26199
26199
  const e = s.split(".").pop() || s;
26200
- switch (Ue && console.warn(`[Needle Engine] Try to use file extension to determine type: '${e}'`), e.toUpperCase()) {
26200
+ switch (ze && console.warn(`[Needle Engine] Try to use file extension to determine type: '${e}'`), e.toUpperCase()) {
26201
26201
  case "GLTF":
26202
26202
  return "model/gltf+json";
26203
26203
  case "VRM":
@@ -26273,7 +26273,7 @@ async function iD(s, e) {
26273
26273
  }).catch((o) => null);
26274
26274
  if (n?.ok) {
26275
26275
  const o = await n.arrayBuffer(), r = nD(i, o, n);
26276
- return Ue && console.log("[Needle Engine] Determined file type from header: " + r), r;
26276
+ return ze && console.log("[Needle Engine] Determined file type from header: " + r), r;
26277
26277
  }
26278
26278
  return "unknown";
26279
26279
  }
@@ -26281,32 +26281,32 @@ function nD(s, e, t) {
26281
26281
  if (e.byteLength < 4)
26282
26282
  return "unknown";
26283
26283
  const i = new Uint8Array(e);
26284
- Ue && Ue && console.warn(`[Needle Engine] Trying to determine file type from binary data
26284
+ ze && ze && console.warn(`[Needle Engine] Trying to determine file type from binary data
26285
26285
  `, '"' + new TextDecoder().decode(e) + `"
26286
26286
  `, i);
26287
26287
  const n = new TextDecoder().decode(e).replace(/\s/g, "");
26288
26288
  if (n[0] === "{" && n[1] === '"')
26289
- return Ue && console.debug("GLTF detected"), "model/gltf+json";
26289
+ return ze && console.debug("GLTF detected"), "model/gltf+json";
26290
26290
  if (i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && (i[4] == 10 || i[4] === 2))
26291
- return Ue && console.debug("GLTF .bin detected"), "model/gltf+json";
26291
+ return ze && console.debug("GLTF .bin detected"), "model/gltf+json";
26292
26292
  if (i[0] == 103 && i[1] == 108 && i[2] == 84 && i[3] == 70 && i[4] == 98)
26293
- return Ue && console.debug("GLB detected"), "model/gltf-binary";
26293
+ return ze && console.debug("GLB detected"), "model/gltf-binary";
26294
26294
  if (i[0] == 80 && i[1] == 75 && i[2] == 3 && i[3] == 4)
26295
- return Ue && console.debug("USDZ detected"), "model/vnd.usdz+zip";
26295
+ return ze && console.debug("USDZ detected"), "model/vnd.usdz+zip";
26296
26296
  if (i[0] == 80 && i[1] == 88 && i[2] == 82 && i[3] == 45 && i[4] == 85 && i[5] == 83 && i[6] == 68 && i[7] == 67)
26297
- return Ue && console.debug("Binary USD detected"), "model/vnd.usd";
26297
+ return ze && console.debug("Binary USD detected"), "model/vnd.usd";
26298
26298
  if (i[0] == 35 && i[1] == 117 && i[2] == 115 && i[3] == 100 && i[4] == 97)
26299
- return Ue && console.debug("ASCII USD detected"), "model/vnd.usda";
26299
+ return ze && console.debug("ASCII USD detected"), "model/vnd.usda";
26300
26300
  if (i[0] == 75 && i[1] == 97 && i[2] == 121 && i[3] == 100 && i[4] == 97 && i[5] == 114 && i[6] == 97 && i[7] == 32)
26301
- return Ue && console.debug("Binary FBX detected"), "model/fbx";
26301
+ return ze && console.debug("Binary FBX detected"), "model/fbx";
26302
26302
  if (i[0] == 59 && i[1] == 32 && i[2] == 70 && i[3] == 66 && i[4] == 88 && i[5] == 32)
26303
- return Ue && console.debug("ASCII FBX detected"), "model/fbx";
26303
+ return ze && console.debug("ASCII FBX detected"), "model/fbx";
26304
26304
  if (i[0] == 35 && i[1] == 32 && i[2] == 66 && i[3] == 108 && i[4] == 101 && i[5] == 110 && i[6] == 100 && i[7] == 101 && i[8] == 114 && i[9] == 32)
26305
- return Ue && console.debug("OBJ detected"), "model/obj";
26305
+ return ze && console.debug("OBJ detected"), "model/obj";
26306
26306
  if (i[0] == 35 && i[1] == 32 && i[2] == 65 && i[3] == 108 && i[4] == 105 && i[5] == 97 && i[6] == 115 && i[7] == 32 && i[8] == 79 && i[9] == 66 && i[10] == 74)
26307
- return Ue && console.debug("OBJ detected"), "model/obj";
26307
+ return ze && console.debug("OBJ detected"), "model/obj";
26308
26308
  if (i[0] == 112 && i[1] == 108 && i[2] == 121 && (i[3] == 10 || i[3] == 13))
26309
- return Ue && console.debug("PLY detected"), "model/ply";
26309
+ return ze && console.debug("PLY detected"), "model/ply";
26310
26310
  for (const o of ku) {
26311
26311
  const r = o({
26312
26312
  url: s,
@@ -26315,13 +26315,13 @@ function nD(s, e, t) {
26315
26315
  bytes: i
26316
26316
  });
26317
26317
  if (r)
26318
- return Ue && console.debug(`Mimetype callback returned: ${r}`), r;
26318
+ return ze && console.debug(`Mimetype callback returned: ${r}`), r;
26319
26319
  }
26320
26320
  if (t.headers.has("content-type")) {
26321
26321
  const o = t.headers.get("content-type");
26322
26322
  if (o?.startsWith("image/"))
26323
- return Ue && console.debug("Image detected, not a model file"), "unsupported";
26324
- switch (Ue && console.debug("Content-Type: " + o), o) {
26323
+ return ze && console.debug("Image detected, not a model file"), "unsupported";
26324
+ switch (ze && console.debug("Content-Type: " + o), o) {
26325
26325
  case "model/gltf+json":
26326
26326
  case "model/gltf-binary":
26327
26327
  case "model/vrm":
@@ -26339,14 +26339,14 @@ function nD(s, e, t) {
26339
26339
  }
26340
26340
  }
26341
26341
  if (i[0] == 118 && i[1] == 32 || i[0] == 102 && i[1] == 32)
26342
- return Ue && console.debug("OBJ detected (the file has no header and starts with vertex or face)"), "obj";
26342
+ return ze && console.debug("OBJ detected (the file has no header and starts with vertex or face)"), "obj";
26343
26343
  if (i[0] == 35 && i[1] == 32 && i[2] == 70 && i[3] == 105 && i[4] == 108 && i[5] == 101 && i[6] == 32 && i[7] == 101 && i[8] == 120 && i[9] == 112 && i[10] == 111 && i[11] == 114 && i[12] == 116 && i[13] == 101 && i[14] == 100 && i[15] == 32 && i[16] == 98 && i[17] == 121 && i[18] == 32 && i[19] == 90 && i[20] == 66 && i[21] == 114 && i[22] == 117 && i[23] == 115 && i[24] == 104)
26344
- return Ue && console.debug("OBJ detected (exported by ZBrush)"), "obj";
26344
+ return ze && console.debug("OBJ detected (exported by ZBrush)"), "obj";
26345
26345
  if (i[0] == 109 && i[1] == 116 && i[2] == 108 && i[3] == 108 && i[4] == 105 && i[5] == 98)
26346
- return Ue && console.debug("OBJ detected (mtllib)"), "obj";
26347
- if (R() || Ue) {
26346
+ return ze && console.debug("OBJ detected (mtllib)"), "obj";
26347
+ if (R() || ze) {
26348
26348
  const o = new TextDecoder().decode(e.slice(0, Math.min(e.byteLength, 32)));
26349
- Ue && console.warn(`Could not determine file type.
26349
+ ze && console.warn(`Could not determine file type.
26350
26350
 
26351
26351
  Consider registering a custom loader via the 'onCreateCustomModelLoader' callback: 'NeedleEngineModelLoader.onCreateCustomModelLoader(args => { })'
26352
26352
 
@@ -26354,7 +26354,7 @@ Content-Type: "${t.headers.get("content-type")}"
26354
26354
  "Text: "${o}"
26355
26355
  Binary:`, i);
26356
26356
  } else
26357
- Ue && console.debug("Could not determine file type from binary data");
26357
+ ze && console.debug("Could not determine file type from binary data");
26358
26358
  return "unknown";
26359
26359
  }
26360
26360
  const Fm = x("debugstencil");
@@ -26501,7 +26501,7 @@ class lD {
26501
26501
  this.meshToOriginalCallbacks.set(e, t);
26502
26502
  }
26503
26503
  }
26504
- const Uo = new lD();
26504
+ const zo = new lD();
26505
26505
  class qo {
26506
26506
  _overrides = [];
26507
26507
  _defines = {};
@@ -26532,8 +26532,8 @@ class qo {
26532
26532
  * ```
26533
26533
  */
26534
26534
  static get(e) {
26535
- let t = Uo.getBlock(e);
26536
- return t || (t = new qo(e), Uo.setBlock(e, t), uD(e, t)), t;
26535
+ let t = zo.getBlock(e);
26536
+ return t || (t = new qo(e), zo.setBlock(e, t), uD(e, t)), t;
26537
26537
  }
26538
26538
  /**
26539
26539
  * Checks if an object has any property overrides
@@ -26541,7 +26541,7 @@ class qo {
26541
26541
  * @returns True if the object has a property block with overrides
26542
26542
  */
26543
26543
  static hasOverrides(e) {
26544
- const t = Uo.getBlock(e);
26544
+ const t = zo.getBlock(e);
26545
26545
  return t ? t.hasOverrides() : !1;
26546
26546
  }
26547
26547
  /**
@@ -26549,7 +26549,7 @@ class qo {
26549
26549
  * After calling dispose, this property block should not be used.
26550
26550
  */
26551
26551
  dispose() {
26552
- this._object && Uo.deleteBlock(this._object), this._overrides = [], this._object = null;
26552
+ this._object && zo.deleteBlock(this._object), this._overrides = [], this._object = null;
26553
26553
  }
26554
26554
  setOverride(e, t, i) {
26555
26555
  const n = this._overrides.find((o) => o.name === e);
@@ -26726,9 +26726,9 @@ class qo {
26726
26726
  }
26727
26727
  const Iu = /* @__PURE__ */ Symbol("originalValues"), Lu = /* @__PURE__ */ Symbol("savedTextureTransforms");
26728
26728
  function nb(s) {
26729
- let e = Uo.getBlock(s);
26729
+ let e = zo.getBlock(s);
26730
26730
  if (e) return { block: e, owner: s };
26731
- if (s.parent && s.parent.type === "Group" && (e = Uo.getBlock(s.parent), e))
26731
+ if (s.parent && s.parent.type === "Group" && (e = zo.getBlock(s.parent), e))
26732
26732
  return { block: e, owner: s.parent };
26733
26733
  }
26734
26734
  const dl = /* @__PURE__ */ Symbol("beforeRenderingFlag"), _y = /* @__PURE__ */ new WeakMap(), by = /* @__PURE__ */ new WeakMap(), cD = function(s, e, t, i) {
@@ -26827,8 +26827,8 @@ function uD(s, e) {
26827
26827
  }) : (s.type === "Mesh" || s.type === "SkinnedMesh") && sw(s, s, e);
26828
26828
  }
26829
26829
  function sw(s, e, t) {
26830
- if (!Uo.isHooked(s, e)) {
26831
- if (Uo.addHook(s, e), s["needle:materialPropertyBlock"] = t, !s.onBeforeRender)
26830
+ if (!zo.isHooked(s, e)) {
26831
+ if (zo.addHook(s, e), s["needle:materialPropertyBlock"] = t, !s.onBeforeRender)
26832
26832
  s.onBeforeRender = iw;
26833
26833
  else {
26834
26834
  const i = s.onBeforeRender;
@@ -27214,14 +27214,14 @@ class sb {
27214
27214
  const rw = "NEEDLE_gameobject_data", vD = {
27215
27215
  Default: 0,
27216
27216
  "Ignore Raycast": 2
27217
- }, Yd = /* @__PURE__ */ new Map(), Um = 8, Kd = 31;
27217
+ }, Yd = /* @__PURE__ */ new Map(), zm = 8, Kd = 31;
27218
27218
  function wD(s) {
27219
27219
  if (typeof s == "number" && isFinite(s)) return s;
27220
27220
  if (typeof s == "string" && s.length > 0) {
27221
27221
  const e = vD[s];
27222
27222
  if (e !== void 0) return e;
27223
27223
  let t = Yd.get(s);
27224
- return t === void 0 && (t = Math.min(Um + Yd.size, Kd), Um + Yd.size > Kd && console.warn(`[NEEDLE_gameobject_data] more than ${Kd - Um + 1} named layers — "${s}" shares index ${Kd}`), Yd.set(s, t)), t;
27224
+ return t === void 0 && (t = Math.min(zm + Yd.size, Kd), zm + Yd.size > Kd && console.warn(`[NEEDLE_gameobject_data] more than ${Kd - zm + 1} named layers — "${s}" shares index ${Kd}`), Yd.set(s, t)), t;
27225
27225
  }
27226
27226
  return 0;
27227
27227
  }
@@ -27435,7 +27435,7 @@ class kD {
27435
27435
  this.objectToWorldMatrix.copy(e.matrixWorld), lf(this.objectToWorldMatrix, this.objectToWorld), this.worldToObjectMatrix.copy(e.matrixWorld).invert(), lf(this.worldToObjectMatrix, this.worldToObject);
27436
27436
  }
27437
27437
  }
27438
- class ze extends fx {
27438
+ class Ue extends fx {
27439
27439
  identifier;
27440
27440
  onBeforeRenderSceneCallback = this.onBeforeRenderScene.bind(this);
27441
27441
  clone() {
@@ -27507,7 +27507,7 @@ class ze extends fx {
27507
27507
  }
27508
27508
  onUpdateUniforms(e, t) {
27509
27509
  const i = K.Current;
27510
- if (e && (ze.viewProjection && this.uniforms[this._viewProjectionName] && (ze.viewProjection.copy(e.projectionMatrix).multiply(e.matrixWorldInverse), lf(ze.viewProjection, ze._viewProjectionValues)), ze.viewMatrix && this.uniforms[this._viewMatrixName] && (ze.viewMatrix.copy(e.matrixWorldInverse), lf(ze.viewMatrix, ze._viewMatrixValues)), this.uniforms[ze._worldSpaceCameraPosName] && ze._worldSpaceCameraPos.setFromMatrixPosition(e.matrixWorld)), this.uniforms._TimeParameters && (this.uniforms._TimeParameters.value = i.sceneLighting.timeVec4), this.uniforms._Time) {
27510
+ if (e && (Ue.viewProjection && this.uniforms[this._viewProjectionName] && (Ue.viewProjection.copy(e.projectionMatrix).multiply(e.matrixWorldInverse), lf(Ue.viewProjection, Ue._viewProjectionValues)), Ue.viewMatrix && this.uniforms[this._viewMatrixName] && (Ue.viewMatrix.copy(e.matrixWorldInverse), lf(Ue.viewMatrix, Ue._viewMatrixValues)), this.uniforms[Ue._worldSpaceCameraPosName] && Ue._worldSpaceCameraPos.setFromMatrixPosition(e.matrixWorld)), this.uniforms._TimeParameters && (this.uniforms._TimeParameters.value = i.sceneLighting.timeVec4), this.uniforms._Time) {
27511
27511
  const a = this.uniforms._Time.value;
27512
27512
  a.x = i.sceneLighting.timeVec4.x / 20, a.y = i.sceneLighting.timeVec4.x, a.z = i.sceneLighting.timeVec4.x * 2, a.w = i.sceneLighting.timeVec4.x * 3;
27513
27513
  }
@@ -27525,12 +27525,12 @@ class ze extends fx {
27525
27525
  }
27526
27526
  const n = i.mainLight;
27527
27527
  if (n) {
27528
- const a = le(n.gameObject, ze._mainLightPosition);
27529
- this.uniforms._MainLightPosition = { value: a.normalize() }, ze._mainLightColor.set(n.color.r, n.color.g, n.color.b, 0), this.uniforms._MainLightColor = { value: ze._mainLightColor };
27528
+ const a = le(n.gameObject, Ue._mainLightPosition);
27529
+ this.uniforms._MainLightPosition = { value: a.normalize() }, Ue._mainLightColor.set(n.color.r, n.color.g, n.color.b, 0), this.uniforms._MainLightColor = { value: Ue._mainLightColor };
27530
27530
  const l = n.intensity;
27531
- ze._lightData.z = l, this.uniforms.unity_LightData = { value: ze._lightData };
27531
+ Ue._lightData.z = l, this.uniforms.unity_LightData = { value: Ue._lightData };
27532
27532
  }
27533
- if (e && (ze.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = ze._viewProjectionValues), ze.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = ze._viewMatrixValues), this.uniforms[ze._worldSpaceCameraPosName] && (this.uniforms[ze._worldSpaceCameraPosName] = { value: ze._worldSpaceCameraPos }), i.mainCameraComponent)) {
27533
+ if (e && (Ue.viewProjection && this.uniforms[this._viewProjectionName] && (this.uniforms[this._viewProjectionName].value = Ue._viewProjectionValues), Ue.viewMatrix && this.uniforms[this._viewMatrixName] && (this.uniforms[this._viewMatrixName].value = Ue._viewMatrixValues), this.uniforms[Ue._worldSpaceCameraPosName] && (this.uniforms[Ue._worldSpaceCameraPosName] = { value: Ue._worldSpaceCameraPos }), i.mainCameraComponent)) {
27534
27534
  if (this.uniforms._ProjectionParams) {
27535
27535
  const a = this.uniforms._ProjectionParams.value;
27536
27536
  a.x = 1, a.y = i.mainCameraComponent.nearClipPlane, a.z = i.mainCameraComponent.farClipPlane, a.w = 1 / a.z, this.uniforms._ProjectionParams.value = a;
@@ -27650,7 +27650,7 @@ class OD {
27650
27650
  }
27651
27651
  }
27652
27652
  }
27653
- const m = new ze(
27653
+ const m = new Ue(
27654
27654
  this.identifier,
27655
27655
  {
27656
27656
  name: t.name ?? "",
@@ -27668,7 +27668,7 @@ class OD {
27668
27668
  m.side = Ni;
27669
27669
  break;
27670
27670
  case 1:
27671
- m.side = Uf;
27671
+ m.side = zf;
27672
27672
  break;
27673
27673
  case 2:
27674
27674
  m.side = Qo;
@@ -27733,7 +27733,7 @@ function CC(s) {
27733
27733
  }
27734
27734
  const TD = x("debugextensions");
27735
27735
  let kf;
27736
- const RD = import("./vendor-BQUQwut5.js").then((s) => s.index$2).then(async (s) => (kf = s.GLTFAnimationPointerExtension, kf)).catch((s) => {
27736
+ const RD = import("./vendor-BatPc34p.js").then((s) => s.index$2).then(async (s) => (kf = s.GLTFAnimationPointerExtension, kf)).catch((s) => {
27737
27737
  console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three-animationpointer for full KHR_animation support", s);
27738
27738
  }), sa = new Array();
27739
27739
  function y4(s) {
@@ -27778,7 +27778,7 @@ function MD(s, e, t) {
27778
27778
  for (const i of sa)
27779
27779
  i.onLoaded && i.onLoaded(s, e, t);
27780
27780
  }
27781
- const kt = x("debuginstancing"), AD = kt === "lods", zm = x("debugprogressive") === "colors" || AD;
27781
+ const kt = x("debuginstancing"), AD = kt === "lods", Um = x("debugprogressive") === "colors" || AD;
27782
27782
  function Sy(s, e, t, i) {
27783
27783
  return s.lodsManager.manager?.trackLoadingPromise(e, t, i), i;
27784
27784
  }
@@ -28033,7 +28033,7 @@ class Ro {
28033
28033
  return this.name ? `${this.name} (BatchedMesh)` : "BatchedMesh";
28034
28034
  }
28035
28035
  constructor(e, t, i, n, o, r = !1) {
28036
- this.name = e, this.geometry = t, this.material = i, this._context = o, this._mirrored = r, this._maxInstanceCount = Math.max(2, n), kt && (this._debugMaterial = lw(zm));
28036
+ this.name = e, this.geometry = t, this.material = i, this._context = o, this._mirrored = r, this._maxInstanceCount = Math.max(2, n), kt && (this._debugMaterial = lw(Um));
28037
28037
  const a = this.tryEstimateVertexCountSize(this._maxInstanceCount, [t], n);
28038
28038
  this._maxVertexCount = a.vertexCount, this._maxIndexCount = a.indexCount, this._batchedMesh = new Jb(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh.name = this.getBatchedMeshName(), this.applyBatchTransform(this._batchedMesh), this._batchedMesh[Lc] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof fx && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), o.pre_render_callbacks.push(this.onBeforeRender), o.post_render_callbacks.push(this.onAfterRender), kt && console.log(`Instanced renderer (${this.name}) created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${e}"`);
28039
28039
  }
@@ -28173,7 +28173,7 @@ class Ro {
28173
28173
  Mesh: "${this.name}${e.name?.length ? "/" + e.name : ""}" (${u.vertexCount.toLocaleString()} vertices, ${u.indexCount.toLocaleString()} indices)
28174
28174
  Max count ${this._maxInstanceCount.toLocaleString()} → ${o.toLocaleString()}
28175
28175
  Max vertex count ${this._maxVertexCount.toLocaleString()} -> ${l.toLocaleString()}
28176
- Max index count ${this._maxIndexCount.toLocaleString()} -> ${c.toLocaleString()}`), this._debugMaterial = lw(zm);
28176
+ Max index count ${this._maxIndexCount.toLocaleString()} -> ${c.toLocaleString()}`), this._debugMaterial = lw(Um);
28177
28177
  } else R() && console.debug(`[Instancing] Growing Buffer
28178
28178
  Mesh: "${this.name}${e.name?.length ? "/" + e.name : ""}"
28179
28179
  Max count ${this._maxInstanceCount} → ${o}
@@ -28246,7 +28246,7 @@ Vertices: ${this._currentVertexCount.toLocaleString()}/${this._maxVertexCount.to
28246
28246
  Indices: ${this._currentIndexCount.toLocaleString()}/${this._maxIndexCount.toLocaleString()}`);
28247
28247
  }
28248
28248
  updateDebugLODColor(e) {
28249
- if (!zm || e.__instanceIndex < 0) return;
28249
+ if (!Um || e.__instanceIndex < 0) return;
28250
28250
  const t = e.currentMeshLOD ?? e.geometry.userData?.LODS?.level ?? 0;
28251
28251
  this._batchedMesh.setColorAt(e.__instanceIndex, Ik(t, Ro.debugLODColor));
28252
28252
  }
@@ -28543,17 +28543,12 @@ const xs = class jc extends A {
28543
28543
  // private customShaderHandler: RendererCustomShader | undefined = undefined;
28544
28544
  // private _materialProperties: Array<MaterialProperties> | undefined = undefined;
28545
28545
  _lightmaps;
28546
- /** Get the mesh Object3D for this renderer
28547
- * Warn: if this is a multimaterial object it will return the first mesh only
28546
+ /** Get the mesh Object3D for this renderer
28547
+ * Warn: if this is a multimaterial object it will return the first submesh only (same as `sharedMeshes[0]`), use {@link sharedMeshes} to get all of them
28548
28548
  * @returns a mesh object3D.
28549
28549
  * */
28550
28550
  get sharedMesh() {
28551
- if (this.gameObject.type === "Mesh")
28552
- return this.gameObject;
28553
- if (this.gameObject.type === "SkinnesMesh")
28554
- return this.gameObject;
28555
- if (this.gameObject.type === "Group")
28556
- return this.gameObject.children[0];
28551
+ return this.sharedMeshes[0];
28557
28552
  }
28558
28553
  _sharedMeshes = [];
28559
28554
  /** Get all the mesh Object3D for this renderer
@@ -28746,7 +28741,7 @@ const xs = class jc extends A {
28746
28741
  if (this.gameObject) {
28747
28742
  if ((this._probeAnchorLastFrame !== this.probeAnchor || this._reflectionProbe?.activeAndEnabled === !1) && (this._reflectionProbe?.unapply(this.gameObject), this.updateReflectionProbe()), Wa == this.name && this.gameObject instanceof V) {
28748
28743
  this.gameObject.geometry.computeBoundingSphere();
28749
- const e = z(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
28744
+ const e = U(this.gameObject.geometry.boundingSphere.center).applyMatrix4(this.gameObject.matrixWorld);
28750
28745
  j.DrawWireSphere(e, this.gameObject.geometry.boundingSphere.radius, 56831);
28751
28746
  }
28752
28747
  if (this.isMultiMaterialObject(this.gameObject) && this.gameObject.children?.length > 0)
@@ -28866,7 +28861,7 @@ class RC extends up {
28866
28861
  onAfterRender() {
28867
28862
  if (super.onAfterRender(), this._needUpdateBoundingSphere) {
28868
28863
  for (const e of this.sharedMeshes)
28869
- if (e instanceof zo) {
28864
+ if (e instanceof Uo) {
28870
28865
  this._needUpdateBoundingSphere = !1;
28871
28866
  try {
28872
28867
  const t = e.geometry, i = yx(e);
@@ -28878,8 +28873,8 @@ class RC extends up {
28878
28873
  }
28879
28874
  if (hw) {
28880
28875
  for (const e of this.sharedMeshes)
28881
- if (e instanceof zo && e.boundingSphere) {
28882
- const t = z(e.boundingSphere.center).applyMatrix4(e.matrixWorld);
28876
+ if (e instanceof Uo && e.boundingSphere) {
28877
+ const t = U(e.boundingSphere.center).applyMatrix4(e.matrixWorld);
28883
28878
  j.DrawWireSphere(t, e.boundingSphere.radius, "red");
28884
28879
  }
28885
28880
  }
@@ -28894,7 +28889,7 @@ var Cy = /* @__PURE__ */ ((s) => (s[s.Off = 0] = "Off", s[s.On = 1] = "On", s[s.
28894
28889
  return n && jD(e, t, n), n;
28895
28890
  };
28896
28891
  const si = x("debugdroplistener");
28897
- class UD extends CustomEvent {
28892
+ class zD extends CustomEvent {
28898
28893
  /**
28899
28894
  * Creates a new added event with the provided details
28900
28895
  * @param detail Information about the added object
@@ -28903,7 +28898,7 @@ class UD extends CustomEvent {
28903
28898
  super("object-added", { detail: e });
28904
28899
  }
28905
28900
  }
28906
- const zD = "blob";
28901
+ const UD = "blob";
28907
28902
  class or extends A {
28908
28903
  dropArea;
28909
28904
  fitIntoVolume = !1;
@@ -29050,7 +29045,7 @@ class or extends A {
29050
29045
  */
29051
29046
  async addFromFiles(e, t) {
29052
29047
  if (si && console.log("Add files", e), !!Array.isArray(e) && e.length) {
29053
- this.deleteDropEvent(), this.removePreviouslyAddedObjects(), Hu(zD, null), this._abort?.abort("New files dropped"), this._abort = new AbortController();
29048
+ this.deleteDropEvent(), this.removePreviouslyAddedObjects(), Hu(UD, null), this._abort?.abort("New files dropped"), this._abort = new AbortController();
29054
29049
  for (const i of e) {
29055
29050
  if (!i) continue;
29056
29051
  if (i.type.startsWith("image/")) {
@@ -29120,7 +29115,7 @@ class or extends A {
29120
29115
  }
29121
29116
  }
29122
29117
  Si.autoplayAnimations(n);
29123
- const d = new UD({
29118
+ const d = new zD({
29124
29119
  sender: this,
29125
29120
  gltf: n,
29126
29121
  model: n,
@@ -29270,7 +29265,7 @@ const fp = class EC extends A {
29270
29265
  }
29271
29266
  this.object.visible = !1;
29272
29267
  const e = this.gameObject.getComponent(Ja);
29273
- e && (e.enabled = !1), this._startPosition = this.object.position?.clone() ?? new w(0, 0, 0), this._startQuaternion = this.object.quaternion?.clone() ?? new U(0, 0, 0, 1);
29268
+ e && (e.enabled = !1), this._startPosition = this.object.position?.clone() ?? new w(0, 0, 0), this._startQuaternion = this.object.quaternion?.clone() ?? new z(0, 0, 0, 1);
29274
29269
  }
29275
29270
  this.gameObject.getComponentInParent(jn) || this.gameObject.addComponent(jn);
29276
29271
  }
@@ -29402,7 +29397,7 @@ class AC {
29402
29397
  const a = new Array(), l = new Array(), c = new Array();
29403
29398
  for (let p = 0; p < e.count; p++) {
29404
29399
  e.getMatrixAt(p, r);
29405
- let m = new w(), b = new U(), y = new w();
29400
+ let m = new w(), b = new z(), y = new w();
29406
29401
  r.decompose(m, b, y), a.push(m.x, m.y, m.z), l.push(b.x, b.y, b.z, b.w), c.push(y.x, y.y, y.z);
29407
29402
  }
29408
29403
  const h = new Float32Array(a), d = new Float32Array(l), u = new Float32Array(c);
@@ -29461,7 +29456,7 @@ var HD = Object.defineProperty, jC = (s, e, t, i) => {
29461
29456
  return n && HD(e, t, n), n;
29462
29457
  };
29463
29458
  const Jd = x("debuggltfexport");
29464
- class UC extends Qt {
29459
+ class zC extends Qt {
29465
29460
  sceneRoot;
29466
29461
  }
29467
29462
  const cb = class Va extends A {
@@ -29582,7 +29577,7 @@ jC([
29582
29577
  jC([
29583
29578
  f(E)
29584
29579
  ], cb.prototype, "objects");
29585
- let zC = cb;
29580
+ let UC = cb;
29586
29581
  function qD() {
29587
29582
  typeof globalThis !== void 0 && !("OffscreenCanvas" in globalThis) && (globalThis.OffscreenCanvas = class {
29588
29583
  canvas;
@@ -29646,7 +29641,7 @@ class fe {
29646
29641
  static start(e, t) {
29647
29642
  typeof t == "string" && (t = { parentScope: t });
29648
29643
  const i = new YD(e, t);
29649
- Uc.set(e, i);
29644
+ zc.set(e, i);
29650
29645
  }
29651
29646
  /** Report progress for a formerly started scope.
29652
29647
  * @param scope The scope to report progress for.
@@ -29669,7 +29664,7 @@ class fe {
29669
29664
  * Progress.report("export-usdz", { currentStep: 1, totalSteps: 10 });
29670
29665
  */
29671
29666
  static report(e, t) {
29672
- const i = Uc.get(e);
29667
+ const i = zc.get(e);
29673
29668
  if (!i) {
29674
29669
  console.warn("Reporting progress for non-existing scope", e);
29675
29670
  return;
@@ -29680,11 +29675,11 @@ class fe {
29680
29675
  * @remarks Will warn if any child scope is still running (progress < 1).
29681
29676
  */
29682
29677
  static end(e) {
29683
- const t = Uc.get(e);
29684
- t && (t.end(), Uc.delete(e));
29678
+ const t = zc.get(e);
29679
+ t && (t.end(), zc.delete(e));
29685
29680
  }
29686
29681
  }
29687
- const Uc = /* @__PURE__ */ new Map();
29682
+ const zc = /* @__PURE__ */ new Map();
29688
29683
  class YD {
29689
29684
  scopeLabel;
29690
29685
  parentScope;
@@ -29700,7 +29695,7 @@ class YD {
29700
29695
  selfReports = 0;
29701
29696
  totalReports = 0;
29702
29697
  constructor(e, t) {
29703
- this.parentScope = t?.parentScope ? Uc.get(t.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + e, this.showLogs = t?.logTimings ?? !!XD, this.showLogs && console.time(this.scopeLabel), this.onProgress = t?.onProgress;
29698
+ this.parentScope = t?.parentScope ? zc.get(t.parentScope) : void 0, this.parentScope && (this.parentScope.childScopes.push(this), this.parentDepth = this.parentScope.parentDepth + 1), this.scopeLabel = " ".repeat(this.parentDepth * 2) + e, this.showLogs = t?.logTimings ?? !!XD, this.showLogs && console.time(this.scopeLabel), this.onProgress = t?.onProgress;
29704
29699
  }
29705
29700
  report(e, t = !1) {
29706
29701
  if (e) {
@@ -30012,7 +30007,7 @@ function WC(s) {
30012
30007
  }
30013
30008
  return t;
30014
30009
  }
30015
- const i2 = new w(), n2 = new U(), s2 = new w(1, 1, 1);
30010
+ const i2 = new w(), n2 = new z(), s2 = new w(1, 1, 1);
30016
30011
  class wt {
30017
30012
  static USDObject_export_id = 0;
30018
30013
  uuid;
@@ -30034,7 +30029,7 @@ class wt {
30034
30029
  this.transform = null;
30035
30030
  return;
30036
30031
  }
30037
- const t = new w(), i = new U(), n = new w();
30032
+ const t = new w(), i = new z(), n = new w();
30038
30033
  e.decompose(t, i, n), this.transform = { position: t, quaternion: i, scale: n };
30039
30034
  }
30040
30035
  /** @deprecated Use `transform`, or `getMatrix()` if you really need the matrix */
@@ -30279,7 +30274,7 @@ let a2 = class {
30279
30274
  fe.report("export-usdz", "Invoking onBeforeBuildDocument"), await Du(i, "onBeforeBuildDocument"), fe.report("export-usdz", "Done onBeforeBuildDocument"), fe.report("export-usdz", "Reparent bones to common ancestor");
30280
30275
  const a = [], l = /* @__PURE__ */ new Set();
30281
30276
  e?.traverse((g) => {
30282
- if (!(!t.exportInvisible && !g.visible) && g instanceof zo) {
30277
+ if (!(!t.exportInvisible && !g.visible) && g instanceof Uo) {
30283
30278
  const _ = g.skeleton.bones, v = $C(_);
30284
30279
  if (v) {
30285
30280
  const C = { object: g, originalParent: g.parent, newParent: v };
@@ -30357,9 +30352,9 @@ function GC(s, e, t, i) {
30357
30352
  if (!t.exportInvisible && !s.visible) return;
30358
30353
  let n, o, r;
30359
30354
  const a = { position: s.position, quaternion: s.quaternion, scale: s.scale };
30360
- if (s.position.x === 0 && s.position.y === 0 && s.position.z === 0 && (a.position = null), s.quaternion.x === 0 && s.quaternion.y === 0 && s.quaternion.z === 0 && s.quaternion.w === 1 && (a.quaternion = null), s.scale.x === 1 && s.scale.y === 1 && s.scale.z === 1 && (a.scale = null), (s instanceof V || s instanceof zo) && (o = s.geometry, r = s.material), i && !i(s) && (o = void 0, r = void 0), (s instanceof V || s instanceof zo) && r && typeof r == "object" && (r instanceof Tt || r instanceof Le || // material instanceof MeshPhysicalNodeMaterial ||
30355
+ if (s.position.x === 0 && s.position.y === 0 && s.position.z === 0 && (a.position = null), s.quaternion.x === 0 && s.quaternion.y === 0 && s.quaternion.z === 0 && s.quaternion.w === 1 && (a.quaternion = null), s.scale.x === 1 && s.scale.y === 1 && s.scale.z === 1 && (a.scale = null), (s instanceof V || s instanceof Uo) && (o = s.geometry, r = s.material), i && !i(s) && (o = void 0, r = void 0), (s instanceof V || s instanceof Uo) && r && typeof r == "object" && (r instanceof Tt || r instanceof Le || // material instanceof MeshPhysicalNodeMaterial ||
30361
30356
  r.isMeshPhysicalNodeMaterial || r instanceof Pe && r.type === "MeshLineMaterial")) {
30362
- const l = nu(s), c = s instanceof zo ? s : null;
30357
+ const l = nu(s), c = s instanceof Uo ? s : null;
30363
30358
  n = new wt(s.uuid, l, a, o, r, void 0, c, s.animations);
30364
30359
  } else if (s instanceof pe || s instanceof Df) {
30365
30360
  const l = nu(s);
@@ -30483,7 +30478,7 @@ async function Du(s, e, t = null) {
30483
30478
  }
30484
30479
  let tu = null, ii = null, Nm, Ia, iu;
30485
30480
  async function c2(s, e = 1 / 0, t = null, i = void 0) {
30486
- Nm || (Nm = new zn(2, 2, 1, 1)), Ia || (Ia = new ps({
30481
+ Nm || (Nm = new Un(2, 2, 1, 1)), Ia || (Ia = new ps({
30487
30482
  uniforms: {
30488
30483
  blitTexture: new an(s),
30489
30484
  flipY: new an(!1),
@@ -30517,7 +30512,7 @@ async function c2(s, e = 1 / 0, t = null, i = void 0) {
30517
30512
  }));
30518
30513
  const n = Ia.uniforms;
30519
30514
  n.blitTexture.value = s, n.flipY.value = !1, n.scale.value = new ve(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), Ia.defines.IS_SRGB = s.colorSpace == Ks, Ia.needsUpdate = !0, iu || (iu = new V(Nm, Ia), iu.frustumCulled = !1);
30520
- const o = new pe(), r = new zi();
30515
+ const o = new pe(), r = new Ui();
30521
30516
  r.add(iu), t || (t = tu = new ca({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
30522
30517
  const a = Math.min(s.image.width, e), l = Math.min(s.image.height, e);
30523
30518
  ii && (ii.width !== a || ii.height !== l) && (ii.dispose(), ii = null), ii || (ii = new gs(a, l, { format: Ff, type: _k, minFilter: Vu, magFilter: Vu })), t.setRenderTarget(ii), t.setSize(a, l), t.clear(), t.render(r, o), tu && (tu.dispose(), tu = null);
@@ -31441,7 +31436,7 @@ class Ke {
31441
31436
  * @param generateScale
31442
31437
  */
31443
31438
  *getValues(e, t = !0, i = !0, n = !0) {
31444
- const o = new w(), r = new U(), a = new w(1, 1, 1), l = this.target, c = t ? this.pos?.createInterpolant() : void 0, h = i ? this.rot?.createInterpolant() : void 0, d = n ? this.scale?.createInterpolant() : void 0;
31439
+ const o = new w(), r = new z(), a = new w(1, 1, 1), l = this.target, c = t ? this.pos?.createInterpolant() : void 0, h = i ? this.rot?.createInterpolant() : void 0, d = n ? this.scale?.createInterpolant() : void 0;
31445
31440
  c || o.set(l.position.x, l.position.y, l.position.z), h || r.set(l.quaternion.x, l.quaternion.y, l.quaternion.z, l.quaternion.w), d || a.set(l.scale.x, l.scale.y, l.scale.z);
31446
31441
  const u = (m, b) => {
31447
31442
  const y = m;
@@ -31970,7 +31965,7 @@ class Bl extends A {
31970
31965
  relativeMotion = !1;
31971
31966
  coroutine = null;
31972
31967
  targetPos = new w();
31973
- targetRot = new U();
31968
+ targetRot = new z();
31974
31969
  targetScale = new w();
31975
31970
  onEnable() {
31976
31971
  this.context.accessibility.updateElement(this, {
@@ -33166,7 +33161,7 @@ class An extends A {
33166
33161
  // move objects into a temporary scene while placing (which is not rendered) so that the components won't be disabled during this process
33167
33162
  // e.g. we want the avatar to still be updated while placing
33168
33163
  // another possibly solution would be to ensure from this component that the Rig is *also* not disabled while placing
33169
- _placementScene = new zi();
33164
+ _placementScene = new Ui();
33170
33165
  /** the reticles used for placement */
33171
33166
  _reticle = [];
33172
33167
  /** reference-space hit poses, in sync with the reticles — captured while placing when {@link useXRAnchor}
@@ -33203,10 +33198,10 @@ class An extends A {
33203
33198
  this._reparentedComponents.length = 0, this._reparentedComponents.push({ comp: this, originalObject: this.gameObject }), k.addComponent(t, this);
33204
33199
  for (const i of this._reticle)
33205
33200
  $i(i);
33206
- this._reticle.length = 0, this._isPlacing = !0, this.context.input.addEventListener("pointerup", this.onPlaceScene, { queue: Ur.Early });
33201
+ this._reticle.length = 0, this._isPlacing = !0, this.context.input.addEventListener("pointerup", this.onPlaceScene, { queue: zr.Early });
33207
33202
  }
33208
33203
  onLeaveXR() {
33209
- this.context.input.removeEventListener("pointerup", this.onPlaceScene, { queue: Ur.Early }), this.onRevertSceneChanges(), this._anchor = null, this._pendingAnchorPose = null, An._hasPlaced = !1, this._rigPlacementMatrix = void 0;
33204
+ this.context.input.removeEventListener("pointerup", this.onPlaceScene, { queue: zr.Early }), this.onRevertSceneChanges(), this._anchor = null, this._pendingAnchorPose = null, An._hasPlaced = !1, this._rigPlacementMatrix = void 0;
33210
33205
  }
33211
33206
  onUpdateXR(e) {
33212
33207
  if (e.xr.isTrackingImages) {
@@ -33266,7 +33261,7 @@ class An extends A {
33266
33261
  this._reticle[t] = o, o.matrixAutoUpdate = !1, o.visible = !1;
33267
33262
  }
33268
33263
  if (o.lastPos = o.lastPos || i.position.clone(), o.lastQuat = o.lastQuat || i.quaternion.clone(), o.position.copy(o.lastPos.lerp(i.position, this.context.time.deltaTime / 0.1)), o.lastPos.copy(o.position), o.quaternion.copy(o.lastQuat.slerp(i.quaternion, this.context.time.deltaTime / 0.05)), o.lastQuat.copy(o.quaternion), o.scale.set(n, n, n), this.customReticle && this.applyViewBasedTransform(o), o.updateMatrix(), o.visible = !0, o.parent !== this.context.scene && this.context.scene.add(o), this._placementStartTime < 0 && (this._placementStartTime = this.context.time.realtimeSinceStartup), this.autoPlace)
33269
- if (this.upVec.set(0, 1, 0).applyQuaternion(o.quaternion), this.upVec.dot(z(0, 1, 0)) > 0.9) {
33264
+ if (this.upVec.set(0, 1, 0).applyQuaternion(o.quaternion), this.upVec.dot(U(0, 1, 0)) > 0.9) {
33270
33265
  let a = o["autoplace:timer"] || 0;
33271
33266
  a >= 1 ? (o.visible = !1, this.onPlaceScene(null)) : (a += this.context.time.deltaTime, o["autoplace:timer"] = a);
33272
33267
  } else
@@ -33841,7 +33836,7 @@ jl([
33841
33836
  jl([
33842
33837
  f()
33843
33838
  ], lo.prototype, "createQRCodeButton");
33844
- const U2 = x("debugavatar");
33839
+ const z2 = x("debugavatar");
33845
33840
  class bt extends A {
33846
33841
  /**
33847
33842
  * Get an avatar marker by index from the global list of avatar markers.
@@ -33877,7 +33872,7 @@ class bt extends A {
33877
33872
  avatar;
33878
33873
  /** @internal */
33879
33874
  awake() {
33880
- bt.instances.push(this), U2 && console.log(this);
33875
+ bt.instances.push(this), z2 && console.log(this);
33881
33876
  for (const e of bt._onNewAvatarMarkerAdded)
33882
33877
  e({ avatarMarker: this, gameObject: this.gameObject });
33883
33878
  }
@@ -33895,14 +33890,14 @@ class bt extends A {
33895
33890
  return this.connectionId === this.context.connection.connectionId;
33896
33891
  }
33897
33892
  }
33898
- var z2 = Object.defineProperty, N2 = (s, e, t, i) => {
33893
+ var U2 = Object.defineProperty, N2 = (s, e, t, i) => {
33899
33894
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
33900
33895
  (r = s[o]) && (n = r(e, t, n) || n);
33901
- return n && z2(e, t, n), n;
33896
+ return n && U2(e, t, n), n;
33902
33897
  };
33903
33898
  const Ga = x("debugxrflags"), n1 = x("disablexrflags");
33904
33899
  n1 && console.warn("XRFlags are disabled");
33905
- var Us = /* @__PURE__ */ ((s) => (s[s.Never = 0] = "Never", s[s.Browser = 1] = "Browser", s[s.AR = 2] = "AR", s[s.VR = 4] = "VR", s[s.FirstPerson = 8] = "FirstPerson", s[s.ThirdPerson = 16] = "ThirdPerson", s[s.All = 4294967295] = "All", s))(Us || {});
33900
+ var zs = /* @__PURE__ */ ((s) => (s[s.Never = 0] = "Never", s[s.Browser = 1] = "Browser", s[s.AR = 2] = "AR", s[s.VR = 4] = "VR", s[s.FirstPerson = 8] = "FirstPerson", s[s.ThirdPerson = 16] = "ThirdPerson", s[s.All = 4294967295] = "All", s))(zs || {});
33906
33901
  class bi {
33907
33902
  static Global = new bi();
33908
33903
  Mask = 17;
@@ -33972,7 +33967,7 @@ var $2 = Object.defineProperty, pb = (s, e, t, i) => {
33972
33967
  (r = s[o]) && (n = r(e, t, n) || n);
33973
33968
  return n && $2(e, t, n), n;
33974
33969
  };
33975
- const bc = x("debugwebxr"), xw = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI);
33970
+ const bc = x("debugwebxr"), xw = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI);
33976
33971
  class aa extends A {
33977
33972
  head;
33978
33973
  leftHand;
@@ -34073,7 +34068,7 @@ class aa extends A {
34073
34068
  else {
34074
34069
  const e = new E();
34075
34070
  e.name = "Head";
34076
- const t = ha.createPrimitive(Uh.Cube);
34071
+ const t = ha.createPrimitive(zh.Cube);
34077
34072
  e.add(t), this.gameObject.add(e), this.head = new se("", this.sourceId, e), bc && console.log("Create head", e);
34078
34073
  }
34079
34074
  if (this.rightHand)
@@ -34417,7 +34412,7 @@ class mn extends A {
34417
34412
  onHandleMovement(e, t) {
34418
34413
  const i = e.getStick("xr-standard-thumbstick");
34419
34414
  if (i.x != 0 || i.y != 0) {
34420
- const n = z(i.x, 0, i.y);
34415
+ const n = U(i.x, 0, i.y);
34421
34416
  n.multiplyScalar(this.context.time.deltaTimeUnscaled * this.movementSpeed);
34422
34417
  const o = it(t);
34423
34418
  n.multiplyScalar(o.x), n.applyQuaternion(e.xr.poseOrientation), n.y = 0, n.applyQuaternion(t.worldQuaternion), R() && Number.isNaN(n.x) && console.error("Stick movement resulted in NaN", { stick: i, vec: n }), t.position.add(n), t.updateWorldMatrix(!1, !1);
@@ -34454,7 +34449,7 @@ class mn extends A {
34454
34449
  this._didTeleport = !0;
34455
34450
  const n = this.context.physics.raycastFromRay(e.ray)[0];
34456
34451
  if (n && n.object instanceof _l) {
34457
- const r = n.normal?.dot(z(0, 1, 0));
34452
+ const r = n.normal?.dot(U(0, 1, 0));
34458
34453
  if (r !== void 0 && r < 0.4)
34459
34454
  return;
34460
34455
  }
@@ -34464,7 +34459,7 @@ class mn extends A {
34464
34459
  const r = t.worldPosition;
34465
34460
  this._plane.setFromNormalAndCoplanarPoint(new w(0, 1, 0), r);
34466
34461
  const a = e.ray;
34467
- o = r.clone(), this._plane.intersectLine(new vk(a.origin, z(a.direction).multiplyScalar(1e4).add(a.origin)), o), o.distanceTo(r) > t.scale.x * 10 && (o = null);
34462
+ o = r.clone(), this._plane.intersectLine(new vk(a.origin, U(a.direction).multiplyScalar(1e4).add(a.origin)), o), o.distanceTo(r) > t.scale.x * 10 && (o = null);
34468
34463
  }
34469
34464
  if (o) {
34470
34465
  if (this.useTeleportTarget && !k.getComponentInParent(n.object, mb))
@@ -34535,7 +34530,7 @@ class mn extends A {
34535
34530
  if (c || (c = l[0]), n && (n.controller = i, n.hit = c), this._hitDistances[t] = c?.distance || null, c) {
34536
34531
  this._lastHitDistances[t] = c.distance;
34537
34532
  const h = e.rigScale ?? 1;
34538
- Xm && (j.DrawWireSphere(c.point, 0.025 * h, 16711680), j.DrawLabel(z(0, 0.2, 0).add(c.point), c.object.name, 0.02, 0)), n || (n = this.createHitPointObject(), this._hitDiscs[t] = n), n.hit = c, n.visible = c.distance > h * 0.05;
34533
+ Xm && (j.DrawWireSphere(c.point, 0.025 * h, 16711680), j.DrawLabel(U(0, 0.2, 0).add(c.point), c.object.name, 0.02, 0)), n || (n = this.createHitPointObject(), this._hitDiscs[t] = n), n.hit = c, n.visible = c.distance > h * 0.05;
34539
34534
  let d = 0.01 * (h + c.distance);
34540
34535
  const u = i.getButton("primary")?.pressed;
34541
34536
  u && (d *= 1.1), n.scale.set(d, d, d), n.layers.set(2);
@@ -34557,8 +34552,8 @@ class mn extends A {
34557
34552
  return uy(e) || e.isUI === !0 ? !0 : e.isScene ? !1 : e.parent ? this.isObjectWithInteractiveComponent(e.parent, t + 1) : !1;
34558
34553
  }
34559
34554
  updateHitPointerPosition(e, t, i) {
34560
- const n = z(e.rayWorldPosition);
34561
- n.add(z(0, 0, i - 0.01).applyQuaternion(e.rayWorldQuaternion)), t.position.lerp(n, this.context.time.deltaTimeUnscaled / 0.05);
34555
+ const n = U(e.rayWorldPosition);
34556
+ n.add(U(0, 0, i - 0.01).applyQuaternion(e.rayWorldQuaternion)), t.position.lerp(n, this.context.time.deltaTimeUnscaled / 0.05);
34562
34557
  }
34563
34558
  hitPointRaycastFilter = (e) => e.type === "SkinnedMesh" ? "continue in children" : !0;
34564
34559
  /** create an object to visualize hit points in the scene */
@@ -34762,7 +34757,7 @@ const vc = x("debugwebxr"), Y2 = x("debugusdz"), Ct = class Ha extends A {
34762
34757
  if (!this.isActiveWebXR) return;
34763
34758
  vc && console.log("WebXR onEnterXR"), this._previousXRState = bi.Global.Mask;
34764
34759
  const t = e.xr.isVR;
34765
- if (bi.Global.Set(t ? Us.VR : Us.AR), e.xr.isAR) {
34760
+ if (bi.Global.Set(t ? zs.VR : zs.AR), e.xr.isAR) {
34766
34761
  let i = k.findObjectOfType(An, this.context, !1);
34767
34762
  if (!i)
34768
34763
  if (this.usePlacementReticle) {
@@ -35173,7 +35168,7 @@ Cx.prototype.interactable = {
35173
35168
  this.interactable = s;
35174
35169
  }
35175
35170
  };
35176
- class Un extends A {
35171
+ class zn extends A {
35177
35172
  /** Is this object on the root of the UI hierarchy ? */
35178
35173
  isRoot() {
35179
35174
  return this.Root?.gameObject === this.gameObject;
@@ -35226,7 +35221,7 @@ class Un extends A {
35226
35221
  if (!e) return;
35227
35222
  this.removeShadowComponent();
35228
35223
  const i = this.isRoot() ? this.gameObject : this.gameObject.parent;
35229
- if (this._parentComponent = k.getComponentInParent(i, Un), !this._parentComponent) {
35224
+ if (this._parentComponent = k.getComponentInParent(i, zn), !this._parentComponent) {
35230
35225
  console.warn(`Component "${this.name}" doesn't have a UI parent anywhere. Do you have an UI element outside a Canvas? UI components must be a child of a Canvas component`, this);
35231
35226
  return;
35232
35227
  }
@@ -35262,7 +35257,7 @@ class Un extends A {
35262
35257
  this.shadowComponent && (this.shadowComponent.interactable = e);
35263
35258
  }
35264
35259
  }
35265
- class wp extends Un {
35260
+ class wp extends zn {
35266
35261
  awake() {
35267
35262
  super.awake();
35268
35263
  }
@@ -35283,7 +35278,7 @@ class tF {
35283
35278
  width;
35284
35279
  height;
35285
35280
  }
35286
- const Pn = new w(), wc = new Z(), au = new U(), Ul = class c1 extends Un {
35281
+ const Pn = new w(), wc = new Z(), au = new z(), zl = class c1 extends zn {
35287
35282
  get parent() {
35288
35283
  return this._parentRectTransform;
35289
35284
  }
@@ -35383,7 +35378,7 @@ const Pn = new w(), wc = new Z(), au = new U(), Ul = class c1 extends Un {
35383
35378
  if (!t) return;
35384
35379
  this.gameObject.parent ? this._parentRectTransform = k.getComponentInParent(this.gameObject.parent, c1) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Ym && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (t.rotation.y = Math.PI) : (t.matrix.identity(), t.matrixAutoUpdate = !1, Pn.set(0, 0, 0), this.applyPivot(Pn), t.matrix.setPosition(Pn.x, Pn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (au.copy(this.gameObject.quaternion), au.x *= -1, au.z *= -1, wc.makeRotationFromQuaternion(au), t.matrix.premultiply(wc)), Pn.set(0, 0, 0), this.applyAnchoring(Pn), this.canvas?.screenspace ? Pn.z += 0.1 : Pn.z += 0.01, wc.identity(), wc.setPosition(Pn.x, Pn.y, Pn.z), t.matrix.premultiply(wc), t.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
35385
35380
  const i = !0;
35386
- for (const n of jS(this.gameObject, Un, i, 1)) {
35381
+ for (const n of jS(this.gameObject, zn, i, 1)) {
35387
35382
  if (n === this || !n.activeAndEnabled) continue;
35388
35383
  const o = n;
35389
35384
  o.onParentRectTransformChanged && o.onParentRectTransformChanged(this);
@@ -35464,20 +35459,20 @@ const Pn = new w(), wc = new Z(), au = new U(), Ul = class c1 extends Un {
35464
35459
  };
35465
35460
  ed([
35466
35461
  f(ee)
35467
- ], Ul.prototype, "anchoredPosition", 1);
35462
+ ], zl.prototype, "anchoredPosition", 1);
35468
35463
  ed([
35469
35464
  f(ee)
35470
- ], Ul.prototype, "sizeDelta", 2);
35465
+ ], zl.prototype, "sizeDelta", 2);
35471
35466
  ed([
35472
35467
  f(ee)
35473
- ], Ul.prototype, "pivot", 2);
35468
+ ], zl.prototype, "pivot", 2);
35474
35469
  ed([
35475
35470
  f(ee)
35476
- ], Ul.prototype, "anchorMin", 2);
35471
+ ], zl.prototype, "anchorMin", 2);
35477
35472
  ed([
35478
35473
  f(ee)
35479
- ], Ul.prototype, "anchorMax", 2);
35480
- let ws = Ul;
35474
+ ], zl.prototype, "anchorMax", 2);
35475
+ let ws = zl;
35481
35476
  var iF = Object.defineProperty, h1 = (s, e, t, i) => {
35482
35477
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
35483
35478
  (r = s[o]) && (n = r(e, t, n) || n);
@@ -35503,7 +35498,7 @@ const Or = {
35503
35498
  backgroundOpacity: 1,
35504
35499
  borderColor: new oe(1, 1, 1),
35505
35500
  borderOpacity: 1
35506
- }, yb = class zc extends Un {
35501
+ }, yb = class Uc extends zn {
35507
35502
  get isGraphic() {
35508
35503
  return !0;
35509
35504
  }
@@ -35596,14 +35591,14 @@ const Or = {
35596
35591
  static textureCache = /* @__PURE__ */ new Map();
35597
35592
  async setTexture(e) {
35598
35593
  if (this.setOptions({ backgroundOpacity: 0 }), e) {
35599
- if (zc.textureCache.has(e))
35600
- e = zc.textureCache.get(e);
35594
+ if (Uc.textureCache.has(e))
35595
+ e = Uc.textureCache.get(e);
35601
35596
  else if (!e.isRenderTargetTexture) {
35602
35597
  const t = e.clone();
35603
- t.colorSpace = Ys, zc.textureCache.set(e, t), e = t;
35598
+ t.colorSpace = Ys, Uc.textureCache.set(e, t), e = t;
35604
35599
  }
35605
35600
  this.setOptions({ backgroundImage: e, borderRadius: 0, backgroundOpacity: this.color.alpha, backgroundSize: "stretch" }), qe.assignTextureLOD(e, 0).then((t) => {
35606
- t instanceof ke && (e && zc.textureCache.set(e, t), this.setOptions({ backgroundImage: t }), this.markDirty());
35601
+ t instanceof ke && (e && Uc.textureCache.set(e, t), this.setOptions({ backgroundImage: t }), this.markDirty());
35607
35602
  });
35608
35603
  } else
35609
35604
  this.setOptions({ backgroundImage: void 0, borderRadius: 0, backgroundOpacity: this.color.alpha });
@@ -36144,7 +36139,7 @@ var uF = Object.defineProperty, ft = (s, e, t, i) => {
36144
36139
  return n && uF(e, t, n), n;
36145
36140
  };
36146
36141
  const Ow = x("debuguilayout");
36147
- class zl {
36142
+ class Ul {
36148
36143
  left = 0;
36149
36144
  right = 0;
36150
36145
  top = 0;
@@ -36158,16 +36153,16 @@ class zl {
36158
36153
  }
36159
36154
  ft([
36160
36155
  f()
36161
- ], zl.prototype, "left");
36156
+ ], Ul.prototype, "left");
36162
36157
  ft([
36163
36158
  f()
36164
- ], zl.prototype, "right");
36159
+ ], Ul.prototype, "right");
36165
36160
  ft([
36166
36161
  f()
36167
- ], zl.prototype, "top");
36162
+ ], Ul.prototype, "top");
36168
36163
  ft([
36169
36164
  f()
36170
- ], zl.prototype, "bottom");
36165
+ ], Ul.prototype, "bottom");
36171
36166
  class qi extends A {
36172
36167
  _rectTransform = null;
36173
36168
  get rectTransform() {
@@ -36226,7 +36221,7 @@ ft([
36226
36221
  f()
36227
36222
  ], qi.prototype, "spacing");
36228
36223
  ft([
36229
- f(zl)
36224
+ f(Ul)
36230
36225
  ], qi.prototype, "padding");
36231
36226
  ft([
36232
36227
  f()
@@ -36490,7 +36485,7 @@ const Zm = x("debuguilayout"), gn = class y1 extends wp {
36490
36485
  *_updateRenderSettingsDelayed() {
36491
36486
  if (yield, this._updateRenderSettingsRoutine = void 0, this.shadowComponent) {
36492
36487
  this.onUpdateRenderMode(), wf(this.shadowComponent, this);
36493
- for (const e of k.getComponentsInChildren(this.gameObject, Un))
36488
+ for (const e of k.getComponentsInChildren(this.gameObject, zn))
36494
36489
  wf(e.shadowComponent, this);
36495
36490
  }
36496
36491
  }
@@ -36579,7 +36574,7 @@ class la extends A {
36579
36574
  _buffer = [];
36580
36575
  applyChangesNow() {
36581
36576
  this._buffer.length = 0;
36582
- for (const e of k.getComponentsInChildren(this.gameObject, Un, this._buffer)) {
36577
+ for (const e of k.getComponentsInChildren(this.gameObject, zn, this._buffer)) {
36583
36578
  const t = e;
36584
36579
  t.setAlphaFactor && t.setAlphaFactor(this._alpha);
36585
36580
  }
@@ -36615,7 +36610,7 @@ class _1 {
36615
36610
  if (!k.isActiveInHierarchy(d)) {
36616
36611
  const u = k.isActiveSelf(d);
36617
36612
  k.setActive(d, !0);
36618
- const p = k.getComponent(d, Un);
36613
+ const p = k.getComponent(d, zn);
36619
36614
  p && (p.onEnable(), l.push(() => {
36620
36615
  p.onDisable();
36621
36616
  }));
@@ -36919,7 +36914,7 @@ const ki = class Ar extends A {
36919
36914
  }
36920
36915
  jt && $e("Progressive Loading: " + n.length), await Promise.all(n), jt && $e("Progressive Loading: done"), fe.end("export-usdz-textures");
36921
36916
  const r = bi.Global.Mask;
36922
- bi.Global.Set(Us.AR);
36917
+ bi.Global.Set(zs.AR);
36923
36918
  const a = new a2(), l = new db(this.quickLookCompatible);
36924
36919
  let c;
36925
36920
  const h = [];
@@ -37010,10 +37005,10 @@ const ki = class Ar extends A {
37010
37005
  return this.customBranding && Object.assign(e, this.customBranding), Hs() || (console.log("Custom Quicklook banner text requires pro license: https://needle.tools/pricing"), e.callToAction = "Close", e.checkoutTitle = "🌵 Made with Needle", e.checkoutSubtitle = "_"), (e.callToAction?.length || e.checkoutTitle?.length || e.checkoutSubtitle?.length) && (e.callToAction?.length || (e.callToAction = "\0"), e.checkoutTitle?.length || (e.checkoutTitle = "\0"), e.checkoutSubtitle?.length || (e.checkoutSubtitle = "\0")), this.dispatchEvent(new CustomEvent("quicklook-overlay", { detail: e })), e;
37011
37006
  }
37012
37007
  static invertForwardMatrix = new Z().makeRotationY(Math.PI);
37013
- static invertForwardQuaternion = new U().setFromEuler(new Be(0, Math.PI, 0));
37008
+ static invertForwardQuaternion = new z().setFromEuler(new Be(0, Math.PI, 0));
37014
37009
  _rootSessionRootWasAppliedTo = null;
37015
37010
  _rootPositionBeforeExport = new w();
37016
- _rootRotationBeforeExport = new U();
37011
+ _rootRotationBeforeExport = new z();
37017
37012
  _rootScaleBeforeExport = new w();
37018
37013
  getARScaleAndTarget() {
37019
37014
  if (!this.objectToExport) return { scale: 1, _invertForward: !1, target: this.gameObject, sessionRoot: null };
@@ -37315,8 +37310,8 @@ async function P1(s, e, t, i) {
37315
37310
  }
37316
37311
  async function k1(s, e, t) {
37317
37312
  const i = await iD(s, { useExtension: !0 }) || "unknown";
37318
- LF && console.debug(`Determined file type: '${i}' for url '${s}'`, { registeredModelLoaderCallbacks: zr });
37319
- for (const n of zr) {
37313
+ LF && console.debug(`Determined file type: '${i}' for url '${s}'`, { registeredModelLoaderCallbacks: Ur });
37314
+ for (const n of Ur) {
37320
37315
  const { callback: o } = n, r = o({ context: e, url: s, mimetype: i });
37321
37316
  if (r instanceof Promise && await r, r)
37322
37317
  return console.debug(`Using custom loader (${n.name || "unnamed"}) for ${i} at '${s}'${DF ? `
@@ -37397,7 +37392,7 @@ async function wb(s, e, t, i, n) {
37397
37392
  });
37398
37393
  }
37399
37394
  async function O1(s, e, t, i, n) {
37400
- if (UF(e), e.split("?")[0].toLowerCase().endsWith(".json")) {
37395
+ if (zF(e), e.split("?")[0].toLowerCase().endsWith(".json")) {
37401
37396
  const a = await fetch(e).then((l) => l.ok ? l.text() : null).catch(() => null);
37402
37397
  if (a !== null) {
37403
37398
  const l = await P1(s, a, e, n);
@@ -37468,7 +37463,7 @@ async function hh(s, e, t, i, n, o) {
37468
37463
  scenes: [a]
37469
37464
  };
37470
37465
  } else Array.isArray(i.scenes) === !1 && console.error(`[Needle Engine] The loaded model object does not have a scenes property '${t}' - please make sure the loader is registered correctly and three.js is not imported multiple times.`);
37471
- return t.includes("?") && (t = t.split("?")[0]), zF(s, i), tR(i) && (BF(i), MD(t, i, e), await Ko().createBuiltinComponents(e, t, i, n, o || void 0)), i.scene && await jF(i.scene, e, e.mainCamera), i;
37466
+ return t.includes("?") && (t = t.split("?")[0]), UF(s, i), tR(i) && (BF(i), MD(t, i, e), await Ko().createBuiltinComponents(e, t, i, n, o || void 0)), i.scene && await jF(i.scene, e, e.mainCamera), i;
37472
37467
  }
37473
37468
  function BF(s) {
37474
37469
  const e = s.parser;
@@ -37491,14 +37486,14 @@ async function jF(s, e, t) {
37491
37486
  console.warn(i?.message || i);
37492
37487
  }
37493
37488
  }
37494
- function UF(s) {
37489
+ function zF(s) {
37495
37490
  if (new URL(s, window.location.href).href.startsWith("file://")) {
37496
37491
  const t = `Hi - it looks like you are trying to load a local file which will not work. You need to use a webserver to serve your files.
37497
37492
  Please refer to the documentation on <a href="https://fwd.needle.tools/needle-engine/docs/local-server">https://docs.needle.tools</a> or ask for help in our <a href="https://discord.needle.tools">discord community</a>`;
37498
37493
  $e(t), console.warn(t);
37499
37494
  }
37500
37495
  }
37501
- function zF(s, e) {
37496
+ function UF(s, e) {
37502
37497
  if ("scenes" in e) {
37503
37498
  for (const t of e.scenes)
37504
37499
  if (t && !t.animations?.length)
@@ -38284,7 +38279,7 @@ class Vl extends A {
38284
38279
  a.projectPoint(e, c), e.copy(c);
38285
38280
  }
38286
38281
  this.affectPosition && un(this.gameObject, e);
38287
- const n = new Be(this.rotationOffset.x, this.rotationOffset.y, this.rotationOffset.z), o = new U().setFromEuler(n);
38282
+ const n = new Be(this.rotationOffset.x, this.rotationOffset.y, this.rotationOffset.z), o = new z().setFromEuler(n);
38288
38283
  this.affectRotation && ys(this.gameObject, t.multiply(o));
38289
38284
  const r = new w();
38290
38285
  this.from.getWorldDirection(r).multiplyScalar(50), this.levelLookDirection && (r.y = 0), this.alignLookDirection && this.gameObject.lookAt(r);
@@ -38982,7 +38977,7 @@ const pt = class Gc {
38982
38977
  {
38983
38978
  const l = a.index;
38984
38979
  if (l) {
38985
- const c = e.mesh_normal, h = l.getX(c * 3), d = l.getX(c * 3 + 1), u = l.getX(c * 3 + 2), p = a.getAttribute("position"), m = z(), b = z(), y = z();
38980
+ const c = e.mesh_normal, h = l.getX(c * 3), d = l.getX(c * 3 + 1), u = l.getX(c * 3 + 2), p = a.getAttribute("position"), m = U(), b = U(), y = U();
38986
38981
  m.fromBufferAttribute(p, h), b.fromBufferAttribute(p, d), y.fromBufferAttribute(p, u), m.sub(b), y.sub(b), m.cross(y), this._dir.copy(m).multiplyScalar(-1);
38987
38982
  const g = Ie(r);
38988
38983
  this._dir.applyQuaternion(g);
@@ -38997,7 +38992,7 @@ const pt = class Gc {
38997
38992
  }
38998
38993
  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), cu && (j.DrawSphere(t, 0.01, 8925952, 0.5, !0), j.DrawDirection(t, this._dir, 8925952, 0.5, !0)), this._dir;
38999
38994
  }
39000
- static _randomQuat = new U();
38995
+ static _randomQuat = new z();
39001
38996
  static _tempVec = new w();
39002
38997
  randomizePosition(e, t) {
39003
38998
  if (t <= 0) return;
@@ -39795,7 +39790,7 @@ class D1 {
39795
39790
  emitterType;
39796
39791
  emitterProbability;
39797
39792
  //private matrix_ = new Matrix4();
39798
- q_ = new U();
39793
+ q_ = new z();
39799
39794
  v_ = new w();
39800
39795
  v2_ = new w();
39801
39796
  _emitterMatrix = new Kp();
@@ -39887,14 +39882,14 @@ class Vn extends A {
39887
39882
  const i = new Le();
39888
39883
  i.copy(t), e ? this.trailMaterial = i : this.particleMaterial = i;
39889
39884
  }
39890
- t.map && (t.map.colorSpace = Ys, t.map.premultiplyAlpha = !1), e && t.side === Qo && (t = t.clone(), t.side = Uf, e ? this.trailMaterial = t : this.particleMaterial = t);
39885
+ t.map && (t.map.colorSpace = Ys, t.map.premultiplyAlpha = !1), e && t.side === Qo && (t = t.clone(), t.side = zf, e ? this.trailMaterial = t : this.particleMaterial = t);
39891
39886
  }
39892
39887
  return t && !sB && t._didRequestTextureLOD === void 0 && (t._didRequestTextureLOD = 0, oB && console.log("Load material LOD", t.name), qe.assignTextureLOD(t, 0)), t;
39893
39888
  }
39894
39889
  getMesh(e) {
39895
39890
  let t = null;
39896
39891
  if (!t && (this.particleMesh instanceof V && (t = this.particleMesh.geometry), t === null)) {
39897
- t = new zn(1, 1);
39892
+ t = new Un(1, 1);
39898
39893
  const n = t.attributes.uv;
39899
39894
  for (let o = 0; o < n.count; o++)
39900
39895
  n.setX(o, 1 - n.getX(o));
@@ -40064,7 +40059,7 @@ class uB extends ma {
40064
40059
  this.system.sizeOverLifetime.enabled && (n *= this.system.sizeOverLifetime.evaluate(i, void 0, e[Aw]).x);
40065
40060
  let o = 1;
40066
40061
  this.system.renderer.renderMode !== Fs.Mesh && (o = this.system.worldScale.x / this.system.cameraScale);
40067
- const r = z(e.startSize).multiplyScalar(n * o);
40062
+ const r = U(e.startSize).multiplyScalar(n * o);
40068
40063
  if (e.size.set(r.x, r.y, r.z), this.system.localspace) {
40069
40064
  const a = F1(this.system, dB);
40070
40065
  e.size.x *= a.x, e.size.y *= a.y, e.size.z *= a.z;
@@ -40371,11 +40366,11 @@ const ei = class ju extends A {
40371
40366
  get localspace() {
40372
40367
  return this.main.simulationSpace === Ah.Local;
40373
40368
  }
40374
- __worldQuaternion = new U();
40369
+ __worldQuaternion = new z();
40375
40370
  get worldQuaternion() {
40376
40371
  return this.__worldQuaternion;
40377
40372
  }
40378
- _worldQuaternionInverted = new U();
40373
+ _worldQuaternionInverted = new z();
40379
40374
  get worldQuaternionInverted() {
40380
40375
  return this._worldQuaternionInverted;
40381
40376
  }
@@ -40466,8 +40461,8 @@ const ei = class ju extends A {
40466
40461
  set subEmitterSystems(e) {
40467
40462
  for (let t = 0; t < e.length; t++) {
40468
40463
  const i = e[t];
40469
- if (!(i instanceof Uy)) {
40470
- const n = new Uy();
40464
+ if (!(i instanceof zy)) {
40465
+ const n = new zy();
40471
40466
  wl(n, i), e[t] = n;
40472
40467
  }
40473
40468
  }
@@ -40613,7 +40608,7 @@ Qe([
40613
40608
  f(Qi)
40614
40609
  ], ei.prototype, "sizeBySpeed");
40615
40610
  let Ef = ei;
40616
- class Uy {
40611
+ class zy {
40617
40612
  particleSystem;
40618
40613
  emitProbability = 1;
40619
40614
  properties;
@@ -40803,12 +40798,12 @@ var wB = Object.defineProperty, xB = (s, e, t, i) => {
40803
40798
  (r = s[o]) && (n = r(e, t, n) || n);
40804
40799
  return n && wB(e, t, n), n;
40805
40800
  };
40806
- const SB = x("debugpost"), zy = {};
40801
+ const SB = x("debugpost"), Uy = {};
40807
40802
  function Gn(s, e) {
40808
- zy[s] = e;
40803
+ Uy[s] = e;
40809
40804
  }
40810
40805
  function CB(s) {
40811
- return s.__type in zy ? zy[s.__type] : (SB && s.__type && console.warn("Unknown postprocessing type", s.__type, s), St);
40806
+ return s.__type in Uy ? Uy[s.__type] : (SB && s.__type && console.warn("Unknown postprocessing type", s.__type, s), St);
40812
40807
  }
40813
40808
  class Ab {
40814
40809
  components = [];
@@ -40981,7 +40976,7 @@ function AB(s) {
40981
40976
  return 0;
40982
40977
  }
40983
40978
  }
40984
- function Uu(s) {
40979
+ function zu(s) {
40985
40980
  switch (s) {
40986
40981
  case t_:
40987
40982
  return L.POSTPROCESSING.MODULE.ToneMappingMode.LINEAR;
@@ -41033,14 +41028,14 @@ class Xl extends St {
41033
41028
  }
41034
41029
  this._tonemappingEffect?.dispose();
41035
41030
  const e = rg(this.mode.value), t = this._tonemappingEffect = new L.POSTPROCESSING.MODULE.ToneMappingEffect({
41036
- mode: Uu(e)
41031
+ mode: zu(e)
41037
41032
  });
41038
41033
  return this.mode.onValueChanged = (i) => {
41039
41034
  if (typeof i == "string")
41040
- i = pS(i), t.mode = Uu(i);
41035
+ i = pS(i), t.mode = zu(i);
41041
41036
  else {
41042
41037
  const n = rg(i);
41043
- t.mode = Uu(n);
41038
+ t.mode = zu(n);
41044
41039
  }
41045
41040
  t.name = "ToneMapping (" + Hc[i] + ")", ag && console.log("[PostProcessing] ToneMapping mode changed to", Hc[i], e, t.mode);
41046
41041
  }, ag && console.log("[PostProcessing] Use ToneMapping", Hc[this.mode.value], e, t.mode, "renderer.tonemapping: " + this.context.renderer.toneMapping), t;
@@ -41190,7 +41185,7 @@ class Mf extends St {
41190
41185
  return this.effect;
41191
41186
  }
41192
41187
  }
41193
- var jB = Object.defineProperty, UB = (s, e, t, i) => {
41188
+ var jB = Object.defineProperty, zB = (s, e, t, i) => {
41194
41189
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
41195
41190
  (r = s[o]) && (n = r(e, t, n) || n);
41196
41191
  return n && jB(e, t, n), n;
@@ -41218,14 +41213,14 @@ class Lp extends St {
41218
41213
  e !== this._lastDpr && (this._lastDpr = e, this._effect.granularity = this.granularity.value * e, Bw && console.debug(`[PixelationEffect] DPR changed to ${e}, updating granularity: raw=${this.granularity.value}, effective=${this._effect.granularity}`));
41219
41214
  }
41220
41215
  }
41221
- UB([
41216
+ zB([
41222
41217
  f(W)
41223
41218
  ], Lp.prototype, "granularity");
41224
41219
  Gn("PixelationEffect", Lp);
41225
- var zB = Object.defineProperty, cd = (s, e, t, i) => {
41220
+ var UB = Object.defineProperty, cd = (s, e, t, i) => {
41226
41221
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
41227
41222
  (r = s[o]) && (n = r(e, t, n) || n);
41228
- return n && zB(e, t, n), n;
41223
+ return n && UB(e, t, n), n;
41229
41224
  };
41230
41225
  class ur extends St {
41231
41226
  get typeName() {
@@ -41407,7 +41402,7 @@ function WB(s) {
41407
41402
  return i === Number.NEGATIVE_INFINITY ? (fu && console.warn("Unknown effect found: ", e.constructor.name, e), 1) : n === Number.NEGATIVE_INFINITY ? (fu && console.warn("Unknown effect found: ", t.constructor.name, t), -1) : i - n;
41408
41403
  }), fu === "verbose" && console.debug("After ordering effects", [...s]);
41409
41404
  }
41410
- var VB = Object.defineProperty, GB = Object.getOwnPropertyDescriptor, U1 = (s, e, t, i) => {
41405
+ var VB = Object.defineProperty, GB = Object.getOwnPropertyDescriptor, z1 = (s, e, t, i) => {
41411
41406
  for (var n = GB(e, t), o = s.length - 1, r; o >= 0; o--)
41412
41407
  (r = s[o]) && (n = r(e, t, n) || n);
41413
41408
  return n && VB(e, t, n), n;
@@ -41446,10 +41441,10 @@ class Dp extends St {
41446
41441
  // return this.effect.uniforms.get("threshold")!.value;
41447
41442
  // }
41448
41443
  }
41449
- U1([
41444
+ z1([
41450
41445
  f()
41451
41446
  ], Dp.prototype, "amount");
41452
- U1([
41447
+ z1([
41453
41448
  f()
41454
41449
  ], Dp.prototype, "radius");
41455
41450
  function HB() {
@@ -41600,7 +41595,7 @@ Db([
41600
41595
  f(W)
41601
41596
  ], Yl.prototype, "center");
41602
41597
  Gn("Vignette", Yl);
41603
- var QB = Object.defineProperty, z1 = (s, e, t, i) => {
41598
+ var QB = Object.defineProperty, U1 = (s, e, t, i) => {
41604
41599
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
41605
41600
  (r = s[o]) && (n = r(e, t, n) || n);
41606
41601
  return n && QB(e, t, n), n;
@@ -41752,10 +41747,10 @@ class Fp extends A {
41752
41747
  }, 200);
41753
41748
  }
41754
41749
  }
41755
- z1([
41750
+ U1([
41756
41751
  dt(Ab)
41757
41752
  ], Fp.prototype, "sharedProfile");
41758
- z1([
41753
+ U1([
41759
41754
  dt()
41760
41755
  ], Fp.prototype, "multisampling");
41761
41756
  const pu = /* @__PURE__ */ new Map(), He = x("debugnetworkingstreams");
@@ -42595,7 +42590,7 @@ class o3 {
42595
42590
  const e = this._videos[this._videos.length - 1];
42596
42591
  if (!e) return;
42597
42592
  if (this._isInScreenspaceMode = !0, !this._screenspaceModeQuad) {
42598
- if (this._screenspaceModeQuad = ha.createPrimitive(Uh.Quad, {
42593
+ if (this._screenspaceModeQuad = ha.createPrimitive(zh.Quad, {
42599
42594
  material: new a3(e)
42600
42595
  }), !this._screenspaceModeQuad) return;
42601
42596
  this._screenspaceModeQuad.geometry.scale(2, 2, 2);
@@ -42759,7 +42754,7 @@ var l3 = Object.defineProperty, c3 = Object.getOwnPropertyDescriptor, hd = (s, e
42759
42754
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
42760
42755
  return i && n && l3(e, t, n), n;
42761
42756
  };
42762
- const Ut = x("debugscreensharing");
42757
+ const zt = x("debugscreensharing");
42763
42758
  var G1 = /* @__PURE__ */ ((s) => (s[s.Screen = 0] = "Screen", s[s.Camera = 1] = "Camera", s[s.Canvas = 2] = "Canvas", s[s.Microphone = 3] = "Microphone", s))(G1 || {});
42764
42759
  class ba extends A {
42765
42760
  allowStartOnClick = !0;
@@ -42847,7 +42842,7 @@ class ba extends A {
42847
42842
  _currentMode = 0;
42848
42843
  /** @internal */
42849
42844
  awake() {
42850
- typeof this.device == "number" && (this.device = G1[this.device]), Ut && console.log("Screensharing", this.name, this), fn.registerWaitForAllowAudio(() => {
42845
+ typeof this.device == "number" && (this.device = G1[this.device]), zt && console.log("Screensharing", this.name, this), fn.registerWaitForAllowAudio(() => {
42851
42846
  this._videoPlayer && this._currentStream && this._currentMode === 2 && (this._videoPlayer.playInBackground = !0, this._videoPlayer.setVideo(this._currentStream));
42852
42847
  }), this._net = new Bp(this);
42853
42848
  }
@@ -42945,17 +42940,17 @@ class ba extends A {
42945
42940
  }
42946
42941
  }
42947
42942
  close() {
42948
- this._requestOpen = !1, this._currentStream && (Ut && console.warn("Close current stream / disposing resources, stream was active?", this._currentStream.active), this._net?.stopSendingStream(this._currentStream), Rn(this._currentStream), this._currentMode = 0, this._currentStream = null);
42943
+ this._requestOpen = !1, this._currentStream && (zt && console.warn("Close current stream / disposing resources, stream was active?", this._currentStream.active), this._net?.stopSendingStream(this._currentStream), Rn(this._currentStream), this._currentMode = 0, this._currentStream = null);
42949
42944
  }
42950
42945
  setStream(e, t) {
42951
42946
  if (e === this._currentStream || (this.close(), !e)) return;
42952
42947
  this._currentStream = e, this._requestOpen = !0, this._currentMode = t;
42953
42948
  const i = this.device !== "Microphone", n = t === 1;
42954
- i ? (this._videoPlayer || this._ensureVideoPlayer(), this._videoPlayer ? this._videoPlayer.setVideo(e) : console.error("No video player assigned for video stream")) : (this._audioSource || (this._audioSource = new fn(), this._audioSource.spatialBlend = 0, this._audioSource.volume = 1, this.gameObject.addComponent(this._audioSource)), n || (Ut && console.log("PLAY", e.getAudioTracks()), this._audioSource.volume = 1, this._audioSource?.play(e))), n && this._net?.startSendingStream(e), n && (this._videoPlayer && (this._videoPlayer.muted = !0), this._audioSource?.stop());
42949
+ i ? (this._videoPlayer || this._ensureVideoPlayer(), this._videoPlayer ? this._videoPlayer.setVideo(e) : console.error("No video player assigned for video stream")) : (this._audioSource || (this._audioSource = new fn(), this._audioSource.spatialBlend = 0, this._audioSource.volume = 1, this.gameObject.addComponent(this._audioSource)), n || (zt && console.log("PLAY", e.getAudioTracks()), this._audioSource.volume = 1, this._audioSource?.play(e))), n && this._net?.startSendingStream(e), n && (this._videoPlayer && (this._videoPlayer.muted = !0), this._audioSource?.stop());
42955
42950
  for (const o of e.getTracks())
42956
42951
  o.addEventListener("ended", () => {
42957
- Ut && console.log("Track ended", o), this.close();
42958
- }), Ut && o.kind === "video" && console.log(n ? "Video →" : "Video ←", o.getSettings());
42952
+ zt && console.log("Track ended", o), this.close();
42953
+ }), zt && o.kind === "video" && console.log(n ? "Video →" : "Video ←", o.getSettings());
42959
42954
  }
42960
42955
  onReceiveStream = (e) => {
42961
42956
  e.stream?.active === !0 && this.setStream(
@@ -42965,44 +42960,44 @@ class ba extends A {
42965
42960
  );
42966
42961
  };
42967
42962
  onCallEnded = (e) => {
42968
- Ut && console.log("CALL ENDED", this.isReceiving, this?.screenspace), this.isReceiving && (this.screenspace = !1);
42963
+ zt && console.log("CALL ENDED", this.isReceiving, this?.screenspace), this.isReceiving && (this.screenspace = !1);
42969
42964
  };
42970
42965
  async tryShareUserCamera(e, t) {
42971
42966
  const i = (await navigator.mediaDevices.enumerateDevices()).filter((o) => o.kind === "videoinput");
42972
- Ut && console.log(`Request camera. These are your kind:videoinput devices:
42967
+ zt && console.log(`Request camera. These are your kind:videoinput devices:
42973
42968
  `, i);
42974
42969
  let n = !1;
42975
42970
  for (const o of i)
42976
42971
  try {
42977
42972
  if (!this._requestOpen) {
42978
- Ut && console.log("Camera selection cancelled");
42973
+ zt && console.log("Camera selection cancelled");
42979
42974
  break;
42980
42975
  }
42981
42976
  if (o.kind !== "videoinput") {
42982
- Ut && console.log("Skipping non-video device", o);
42977
+ zt && console.log("Skipping non-video device", o);
42983
42978
  continue;
42984
42979
  }
42985
42980
  const r = o.deviceId;
42986
42981
  if (t?.deviceId != null || t?.deviceFilter != null) {
42987
42982
  if (t?.deviceId !== void 0 && r !== t.deviceId) {
42988
- Ut && console.log("Skipping device due to options.deviceId: " + o.label + "; " + o.deviceId);
42983
+ zt && console.log("Skipping device due to options.deviceId: " + o.label + "; " + o.deviceId);
42989
42984
  continue;
42990
42985
  }
42991
42986
  if (t?.deviceFilter && t.deviceFilter(o) === !1) {
42992
- Ut && console.log("Skipping device due to options.deviceFilter: " + o.label + "; " + o.deviceId);
42987
+ zt && console.log("Skipping device due to options.deviceFilter: " + o.label + "; " + o.deviceId);
42993
42988
  continue;
42994
42989
  }
42995
42990
  } else if (this.deviceFilter)
42996
42991
  if (this.deviceFilter(o) === !1) {
42997
- Ut && console.log("Skipping device due to ScreenShare.deviceFilter: " + o.label + "; " + o.deviceId);
42992
+ zt && console.log("Skipping device due to ScreenShare.deviceFilter: " + o.label + "; " + o.deviceId);
42998
42993
  continue;
42999
- } else Ut && console.log("Selected device by filter", o);
42994
+ } else zt && console.log("Selected device by filter", o);
43000
42995
  else if (this.deviceName) {
43001
42996
  const c = o.label.toLowerCase(), h = this.deviceName.toLowerCase(), d = c.includes(h), u = o.deviceId === this.deviceName;
43002
42997
  if (!d && !u) {
43003
- Ut && console.log("Skipping device due to ScreenShare.deviceName: " + o.label + "; " + o.deviceId);
42998
+ zt && console.log("Skipping device due to ScreenShare.deviceName: " + o.label + "; " + o.deviceId);
43004
42999
  continue;
43005
- } else Ut && console.log("Selected device by name", o);
43000
+ } else zt && console.log("Selected device by name", o);
43006
43001
  }
43007
43002
  e.video !== !1 && ((typeof e.video > "u" || typeof e.video == "boolean") && (e.video = {}), e.video.deviceId = r), n = !0;
43008
43003
  const l = await navigator.mediaDevices.getUserMedia(e).catch((c) => (console.error("Failed to get user media", c), null));
@@ -43012,7 +43007,7 @@ class ba extends A {
43012
43007
  l,
43013
43008
  1
43014
43009
  /* Sending */
43015
- ), Ut && console.log("Selected camera", o)) : (Rn(l), Ut && console.log("Camera selection cancelled"));
43010
+ ), zt && console.log("Selected camera", o)) : (Rn(l), zt && console.log("Camera selection cancelled"));
43016
43011
  break;
43017
43012
  } catch (r) {
43018
43013
  if (r.message === "Failed to allocate videosource" || r.message === "Could not start video source") {
@@ -43117,14 +43112,14 @@ const va = class H1 extends A {
43117
43112
  const t = this._referencePointDir.dot(this.context.mainCamera.worldForward) > 0.2;
43118
43113
  if (d3 && this.referencePoint) {
43119
43114
  const i = this.gameObject.worldPosition;
43120
- j.DrawArrow(z(i), i.sub(this._referencePointDir), t ? 16711680 : 65280), j.DrawWireSphere(this.referencePoint.worldPosition, 0.05, 255);
43115
+ j.DrawArrow(U(i), i.sub(this._referencePointDir), t ? 16711680 : 65280), j.DrawWireSphere(this.referencePoint.worldPosition, 0.05, 255);
43121
43116
  }
43122
43117
  t ? this.updateAlpha(this.minAlpha, this.fadeDuration) : this.updateAlpha(1, this.fadeDuration);
43123
43118
  }
43124
43119
  // private readonly rendererMaterials = new WeakMap<Renderer, Array<MaterialWithState>>();
43125
43120
  // private readonly rendererMaterialsOriginal = new WeakMap<Renderer, Array<Material>>();
43126
43121
  updateDirection() {
43127
- this.referencePoint ??= this.context.scene, this._referencePointVector.copy(this.gameObject.worldPosition.sub(this.referencePoint.worldPosition)), this._distance = this._referencePointVector.length(), this._referencePointDir.copy(this._referencePointVector).multiply(z(1, 0.5, 1)).normalize();
43122
+ this.referencePoint ??= this.context.scene, this._referencePointVector.copy(this.gameObject.worldPosition.sub(this.referencePoint.worldPosition)), this._distance = this._referencePointVector.length(), this._referencePointDir.copy(this._referencePointVector).multiply(U(1, 0.5, 1)).normalize();
43128
43123
  }
43129
43124
  /**
43130
43125
  * Update the alpha of the object's materials towards the target alpha over the given duration.
@@ -43190,7 +43185,7 @@ class jp extends A {
43190
43185
  if (this.gameObject instanceof V)
43191
43186
  this.gameObject instanceof V && this.gameObject.material && (this.gameObject.material = this.gameObject.material.clone(), this.targetMesh = this.gameObject, this.targetMesh.receiveShadow = !0);
43192
43187
  else {
43193
- const e = ha.createPrimitive(Uh.Quad, {
43188
+ const e = ha.createPrimitive(zh.Quad, {
43194
43189
  name: "ShadowCatcher",
43195
43190
  material: new Tt({
43196
43191
  // HACK heuristic to get approx. the same colors out as with the current default ShadowCatcher material
@@ -43277,7 +43272,7 @@ X1([
43277
43272
  X1([
43278
43273
  f(he)
43279
43274
  ], jp.prototype, "shadowColor");
43280
- var p3 = Object.defineProperty, Up = (s, e, t, i) => {
43275
+ var p3 = Object.defineProperty, zp = (s, e, t, i) => {
43281
43276
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
43282
43277
  (r = s[o]) && (n = r(e, t, n) || n);
43283
43278
  return n && p3(e, t, n), n;
@@ -43289,7 +43284,7 @@ const dd = class Q1 extends A {
43289
43284
  positionAxes = Dc.All;
43290
43285
  /** When true, rotates 180° around Y axis (useful for mirrored setups) */
43291
43286
  flipForward = !1;
43292
- static _invertForward = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI);
43287
+ static _invertForward = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI);
43293
43288
  _firstUpdate = !0;
43294
43289
  /**
43295
43290
  * Update the position and rotation of the GameObject to follow the target.
@@ -43317,16 +43312,16 @@ const dd = class Q1 extends A {
43317
43312
  }
43318
43313
  }
43319
43314
  };
43320
- Up([
43315
+ zp([
43321
43316
  f(E)
43322
43317
  ], dd.prototype, "target");
43323
- Up([
43318
+ zp([
43324
43319
  f()
43325
43320
  ], dd.prototype, "followFactor");
43326
- Up([
43321
+ zp([
43327
43322
  f()
43328
43323
  ], dd.prototype, "rotateFactor");
43329
- Up([
43324
+ zp([
43330
43325
  f()
43331
43326
  ], dd.prototype, "positionAxes");
43332
43327
  let Fb = dd;
@@ -43335,9 +43330,9 @@ var m3 = Object.defineProperty, ud = (s, e, t, i) => {
43335
43330
  (r = s[o]) && (n = r(e, t, n) || n);
43336
43331
  return n && m3(e, t, n), n;
43337
43332
  };
43338
- const uh = x("debugspatialtrigger"), Uw = new Xo(), zw = new Xo();
43333
+ const uh = x("debugspatialtrigger"), zw = new Xo(), Uw = new Xo();
43339
43334
  function g3(s, e) {
43340
- return Uw.mask = s, zw.mask = e, Uw.test(zw);
43335
+ return zw.mask = s, Uw.mask = e, zw.test(Uw);
43341
43336
  }
43342
43337
  class Qs extends A {
43343
43338
  triggerMask = 0;
@@ -43406,7 +43401,7 @@ ud([
43406
43401
  ud([
43407
43402
  f(ne)
43408
43403
  ], Qs.prototype, "onExit");
43409
- const Y1 = class zu extends A {
43404
+ const Y1 = class Uu extends A {
43410
43405
  /** Global registry of all active spatial triggers in the scene */
43411
43406
  static triggers = [];
43412
43407
  triggerMask;
@@ -43422,13 +43417,13 @@ const Y1 = class zu extends A {
43422
43417
  * Registers this trigger in the global registry and sets up debug visualization if enabled
43423
43418
  */
43424
43419
  onEnable() {
43425
- zu.triggers.push(this), this.boxHelper || (this.boxHelper = k.addComponent(this.gameObject, Qt), this.boxHelper?.showHelper(null, uh));
43420
+ Uu.triggers.push(this), this.boxHelper || (this.boxHelper = k.addComponent(this.gameObject, Qt), this.boxHelper?.showHelper(null, uh));
43426
43421
  }
43427
43422
  /**
43428
43423
  * Removes this trigger from the global registry when disabled
43429
43424
  */
43430
43425
  onDisable() {
43431
- zu.triggers.splice(zu.triggers.indexOf(this), 1);
43426
+ Uu.triggers.splice(Uu.triggers.indexOf(this), 1);
43432
43427
  }
43433
43428
  /**
43434
43429
  * Tests if an object is inside this trigger's box
@@ -43643,8 +43638,8 @@ class jb extends A {
43643
43638
  const e = this._mode === 0;
43644
43639
  for (const t of bt.instances)
43645
43640
  if (t.avatar && "isLocalAvatar" in t.avatar && "flags" in t.avatar) {
43646
- let i = Us.All;
43647
- this.isSpectatingSelf && (i = e && t.avatar.isLocalAvatar ? Us.FirstPerson : Us.ThirdPerson);
43641
+ let i = zs.All;
43642
+ this.isSpectatingSelf && (i = e && t.avatar.isLocalAvatar ? zs.FirstPerson : zs.ThirdPerson);
43648
43643
  const n = t.avatar.flags;
43649
43644
  if (!n) continue;
43650
43645
  for (const o of n)
@@ -43660,7 +43655,7 @@ class jb extends A {
43660
43655
  const t = e.avatar.flags;
43661
43656
  if (!t) continue;
43662
43657
  for (const i of t)
43663
- "isLocalAvatar" in e.avatar && e.avatar?.isLocalAvatar ? i.UpdateVisible(Us.FirstPerson) : i.UpdateVisible(Us.ThirdPerson);
43658
+ "isLocalAvatar" in e.avatar && e.avatar?.isLocalAvatar ? i.UpdateVisible(zs.FirstPerson) : i.UpdateVisible(zs.ThirdPerson);
43664
43659
  }
43665
43660
  }
43666
43661
  }
@@ -43731,7 +43726,7 @@ class b3 {
43731
43726
  }
43732
43727
  }
43733
43728
  }
43734
- const v3 = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI);
43729
+ const v3 = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI);
43735
43730
  class w3 {
43736
43731
  context;
43737
43732
  spectator;
@@ -43900,7 +43895,7 @@ var P3 = Object.defineProperty, k3 = Object.getOwnPropertyDescriptor, Zl = (s, e
43900
43895
  const Nw = x("debugsplines");
43901
43896
  class eo {
43902
43897
  position = new w();
43903
- rotation = new U();
43898
+ rotation = new z();
43904
43899
  tangentIn = new w();
43905
43900
  tangentOut = new w();
43906
43901
  }
@@ -43908,7 +43903,7 @@ Zl([
43908
43903
  dt(w)
43909
43904
  ], eo.prototype, "position", 2);
43910
43905
  Zl([
43911
- dt(U)
43906
+ dt(z)
43912
43907
  ], eo.prototype, "rotation", 2);
43913
43908
  Zl([
43914
43909
  dt(w)
@@ -44593,7 +44588,7 @@ C) Set "joinRandomRoom" to true`), !1) : (mu && console.log("Join " + this.roomN
44593
44588
  return null;
44594
44589
  }
44595
44590
  setRandomRoomUrlParameter() {
44596
- const e = zf(), t = this.generateRoomName();
44591
+ const e = Uf(), t = this.generateRoomName();
44597
44592
  x(this.urlParameterName) ? e.set(this.urlParameterName, t) : e.append(this.urlParameterName, t), Px(t, e);
44598
44593
  }
44599
44594
  generateRoomName() {
@@ -44943,11 +44938,11 @@ ec([
44943
44938
  ec([
44944
44939
  f(ne)
44945
44940
  ], mr.prototype, "onSpeakingChanged", 2);
44946
- function U3() {
44941
+ function z3() {
44947
44942
  const s = x("testwindowcount") || 0;
44948
- s && s > 0 && z3(s);
44943
+ s && s > 0 && U3(s);
44949
44944
  }
44950
- function z3(s) {
44945
+ function U3(s) {
44951
44946
  if (x("testwindow")) return null;
44952
44947
  const e = new URL(window.location.href);
44953
44948
  av(e.searchParams, B3, 1), av(e.searchParams, "testwindow", 1);
@@ -44980,7 +44975,7 @@ function z3(s) {
44980
44975
  }
44981
44976
  class J1 extends A {
44982
44977
  awake() {
44983
- U3();
44978
+ z3();
44984
44979
  }
44985
44980
  }
44986
44981
  class eP extends A {
@@ -45043,7 +45038,7 @@ class N3 {
45043
45038
  }
45044
45039
  }
45045
45040
  }
45046
- var $3 = Object.defineProperty, zp = (s, e, t, i) => {
45041
+ var $3 = Object.defineProperty, Up = (s, e, t, i) => {
45047
45042
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
45048
45043
  (r = s[o]) && (n = r(e, t, n) || n);
45049
45044
  return n && $3(e, t, n), n;
@@ -45169,16 +45164,16 @@ class tc extends A {
45169
45164
  this.enabled && e.keyCode === 16 && this.disableSnapping();
45170
45165
  };
45171
45166
  }
45172
- zp([
45167
+ Up([
45173
45168
  f()
45174
45169
  ], tc.prototype, "isGizmo");
45175
- zp([
45170
+ Up([
45176
45171
  f()
45177
45172
  ], tc.prototype, "translationSnap");
45178
- zp([
45173
+ Up([
45179
45174
  f()
45180
45175
  ], tc.prototype, "rotationSnapAngle");
45181
- zp([
45176
+ Up([
45182
45177
  f()
45183
45178
  ], tc.prototype, "scaleSnap");
45184
45179
  var W3 = Object.defineProperty, V3 = Object.getOwnPropertyDescriptor, Np = (s, e, t, i) => {
@@ -45186,16 +45181,16 @@ var W3 = Object.defineProperty, V3 = Object.getOwnPropertyDescriptor, Np = (s, e
45186
45181
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
45187
45182
  return i && n && W3(e, t, n), n;
45188
45183
  };
45189
- class Ub {
45184
+ class zb {
45190
45185
  texture = null;
45191
45186
  rect;
45192
45187
  }
45193
45188
  Np([
45194
45189
  f(ke)
45195
- ], Ub.prototype, "texture", 2);
45190
+ ], zb.prototype, "texture", 2);
45196
45191
  let fd = class extends Sp {
45197
45192
  set image(e) {
45198
- this.sprite || (this.sprite = new Ub()), this.sprite.texture = e, this.onAfterCreated();
45193
+ this.sprite || (this.sprite = new zb()), this.sprite.texture = e, this.onAfterCreated();
45199
45194
  }
45200
45195
  get image() {
45201
45196
  return this.sprite ? this.sprite.texture : null;
@@ -45228,12 +45223,12 @@ let fd = class extends Sp {
45228
45223
  }
45229
45224
  };
45230
45225
  Np([
45231
- f(Ub)
45226
+ f(zb)
45232
45227
  ], fd.prototype, "sprite", 1);
45233
45228
  Np([
45234
45229
  f()
45235
45230
  ], fd.prototype, "pixelsPerUnitMultiplier", 2);
45236
- class zb extends Sp {
45231
+ class Ub extends Sp {
45237
45232
  get mainTexture() {
45238
45233
  return this._mainTexture;
45239
45234
  }
@@ -45247,7 +45242,7 @@ class zb extends Sp {
45247
45242
  }
45248
45243
  Np([
45249
45244
  f(ke)
45250
- ], zb.prototype, "mainTexture", 1);
45245
+ ], Ub.prototype, "mainTexture", 1);
45251
45246
  var G3 = Object.defineProperty, H3 = Object.getOwnPropertyDescriptor, Ki = (s, e, t, i) => {
45252
45247
  for (var n = i > 1 ? void 0 : i ? H3(e, t) : e, o = s.length - 1, r; o >= 0; o--)
45253
45248
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
@@ -45642,7 +45637,7 @@ const md = class nP extends A {
45642
45637
  invertForward = !1;
45643
45638
  keepUpDirection = !0;
45644
45639
  copyTargetRotation = !1;
45645
- static flipYQuat = new U().setFromAxisAngle(new w(0, 1, 0), Math.PI);
45640
+ static flipYQuat = new z().setFromAxisAngle(new w(0, 1, 0), Math.PI);
45646
45641
  /** @internal */
45647
45642
  onBeforeRender() {
45648
45643
  let e = this.target;
@@ -45854,9 +45849,9 @@ class ic extends A {
45854
45849
  /** @internal */
45855
45850
  lateUpdate() {
45856
45851
  this.updateDistance();
45857
- const e = this.useFullPage ? this._ndc_x : this.context.input.mousePositionRC.x, t = this.useFullPage ? this._ndc_y : this.context.input.mousePositionRC.y, i = this.context.mainCamera, n = i.worldPosition, o = z(e, t, 1).unproject(i);
45852
+ const e = this.useFullPage ? this._ndc_x : this.context.input.mousePositionRC.x, t = this.useFullPage ? this._ndc_y : this.context.input.mousePositionRC.y, i = this.context.mainCamera, n = i.worldPosition, o = U(e, t, 1).unproject(i);
45858
45853
  o.sub(n).normalize();
45859
- const r = z(o).multiplyScalar(this._distance).add(n);
45854
+ const r = U(o).multiplyScalar(this._distance).add(n);
45860
45855
  let a = r;
45861
45856
  if (this.damping > 0) {
45862
45857
  const l = this.gameObject.worldPosition;
@@ -45950,7 +45945,7 @@ var ij = Object.defineProperty, wa = (s, e, t, i) => {
45950
45945
  (r = s[o]) && (n = r(e, t, n) || n);
45951
45946
  return n && ij(e, t, n), n;
45952
45947
  };
45953
- typeof window < "u" && import("./vendor-BQUQwut5.js").then((s) => s.scrollTimeline);
45948
+ typeof window < "u" && import("./vendor-BatPc34p.js").then((s) => s.scrollTimeline);
45954
45949
  const Es = x("debugscroll");
45955
45950
  class fo extends A {
45956
45951
  target = null;
@@ -46243,22 +46238,22 @@ let vt = class extends A {
46243
46238
  l && (n = l.width, o = l.height, r = t / n, a = i / o), vt._tempProjectionMatrix.copy(e.projectionMatrix), vt._tempProjectionMatrixInverse.copy(e.projectionMatrixInverse);
46244
46239
  const c = e.view, h = e.zoom, d = e.aspect, u = e.fov;
46245
46240
  e.view = null, e.zoom = 1, e.fov = this.referenceFieldOfView, e.updateProjectionMatrix();
46246
- const p = this.gameObject.worldPosition, m = this.gameObject.worldScale, b = e.worldPosition, y = b.distanceTo(p), g = Math.max(m.x, m.y, m.z), _ = z(b).sub(p);
46241
+ const p = this.gameObject.worldPosition, m = this.gameObject.worldScale, b = e.worldPosition, y = b.distanceTo(p), g = Math.max(m.x, m.y, m.z), _ = U(b).sub(p);
46247
46242
  if (y < g) {
46248
46243
  (this.debug || So) && console.warn("[ViewBox] Moving camera out of bounds", y, "<", g);
46249
- const $ = z(_);
46244
+ const $ = U(_);
46250
46245
  $.y *= 1e-8, $.normalize();
46251
46246
  const Q = g - y, te = b.add($.multiplyScalar(Q));
46252
46247
  e.worldPosition = te.lerp(b, 1 - this.context.time.deltaTime);
46253
46248
  }
46254
- const v = z(p);
46249
+ const v = U(p);
46255
46250
  e.worldToLocal(v), e.lookAt(p), e.updateMatrixWorld();
46256
46251
  const C = this.referenceFieldOfView * Math.PI / 180, P = 2 * Math.tan(C / 2) * y, T = P * e.aspect, I = this.projectBoxIntoCamera(e, 1), F = I.maxX - I.minX, N = I.maxY - I.minY, H = this.fit(
46257
46252
  F * e.aspect,
46258
46253
  N,
46259
46254
  T / r,
46260
46255
  P / a
46261
- ) / (P * 0.5), M = z(p);
46256
+ ) / (P * 0.5), M = U(p);
46262
46257
  M.project(e), this.context.focusRectSettings.offsetX = M.x, this.context.focusRectSettings.offsetY = M.y, this.context.focusRectSettings.zoom = H, this.context.focusRect || this.context.setCameraFocusRect(this.context.domElement), e.view = c, e.zoom = h, e.aspect = d, e.fov = u, e.projectionMatrix.copy(vt._tempProjectionMatrix), e.projectionMatrixInverse.copy(vt._tempProjectionMatrixInverse);
46263
46258
  };
46264
46259
  /**
@@ -46270,14 +46265,14 @@ let vt = class extends A {
46270
46265
  }
46271
46266
  projectBoxIntoCamera(s, e) {
46272
46267
  const t = 0.5 * e, i = [
46273
- z(-t, -t, -t),
46274
- z(t, -t, -t),
46275
- z(-t, t, -t),
46276
- z(t, t, -t),
46277
- z(-t, -t, t),
46278
- z(t, -t, t),
46279
- z(-t, t, t),
46280
- z(t, t, t)
46268
+ U(-t, -t, -t),
46269
+ U(t, -t, -t),
46270
+ U(-t, t, -t),
46271
+ U(t, t, -t),
46272
+ U(-t, -t, t),
46273
+ U(t, -t, t),
46274
+ U(-t, t, t),
46275
+ U(t, t, t)
46281
46276
  ];
46282
46277
  let n = Number.POSITIVE_INFINITY, o = Number.NEGATIVE_INFINITY, r = Number.POSITIVE_INFINITY, a = Number.NEGATIVE_INFINITY;
46283
46278
  for (let l = 0; l < i.length; l++) {
@@ -46320,7 +46315,7 @@ class _r extends A {
46320
46315
  useGripSpace = !1;
46321
46316
  resetTransformAfterXRSession = !0;
46322
46317
  _startPosition = new w();
46323
- _startRotation = new U();
46318
+ _startRotation = new z();
46324
46319
  _startScale = new w();
46325
46320
  /** @internal */
46326
46321
  onEnterXR(e) {
@@ -46338,7 +46333,7 @@ class _r extends A {
46338
46333
  this.controlVisibility && (this.gameObject.visible = !1);
46339
46334
  return;
46340
46335
  }
46341
- this.controlVisibility && (this.gameObject.visible = !0), this.useGripSpace || t.targetRayMode === "transient-pointer" ? (this.gameObject.worldPosition = t.gripWorldPosition, this.gameObject.worldQuaternion = t.gripWorldQuaternion, this.gameObject.worldScale = z(t.xr.rigScale, t.xr.rigScale, t.xr.rigScale).multiply(this._startScale)) : (this.gameObject.worldPosition = t.rayWorldPosition, this.gameObject.worldQuaternion = t.rayWorldQuaternion, this.gameObject.worldScale = z(t.xr.rigScale, t.xr.rigScale, t.xr.rigScale).multiply(this._startScale));
46336
+ this.controlVisibility && (this.gameObject.visible = !0), this.useGripSpace || t.targetRayMode === "transient-pointer" ? (this.gameObject.worldPosition = t.gripWorldPosition, this.gameObject.worldQuaternion = t.gripWorldQuaternion, this.gameObject.worldScale = U(t.xr.rigScale, t.xr.rigScale, t.xr.rigScale).multiply(this._startScale)) : (this.gameObject.worldPosition = t.rayWorldPosition, this.gameObject.worldQuaternion = t.rayWorldQuaternion, this.gameObject.worldScale = U(t.xr.rigScale, t.xr.rigScale, t.xr.rigScale).multiply(this._startScale));
46342
46337
  }
46343
46338
  }
46344
46339
  /** @internal */
@@ -46411,7 +46406,7 @@ function cj(s, e) {
46411
46406
  if (t.has(s))
46412
46407
  return;
46413
46408
  t.add(s), $w.set(e, t), console.debug("Initialize texture for camera feed");
46414
- const i = new Le(), n = new zn(), o = new zi();
46409
+ const i = new Le(), n = new Un(), o = new Ui();
46415
46410
  o.add(new V(n, i));
46416
46411
  const r = new pe();
46417
46412
  i.map = e, s.render(o, r);
@@ -46653,7 +46648,7 @@ void main() {
46653
46648
  return this.threeTexture;
46654
46649
  }
46655
46650
  });
46656
- const d = new V(new zn(2, 2), h);
46651
+ const d = new V(new Un(2, 2), h);
46657
46652
  return Tg(d, !1), d.geometry.deleteAttribute("normal"), d.renderOrder = -1e6, d.setTexture = function(u) {
46658
46653
  h.uniforms.t2D.value = u;
46659
46654
  }, d;
@@ -46688,7 +46683,7 @@ class qp extends A {
46688
46683
  backgroundPlane;
46689
46684
  threeTexture;
46690
46685
  forceTextureInitialization = (function() {
46691
- const e = new Le(), t = new zn(), i = new zi();
46686
+ const e = new Le(), t = new Un(), i = new Ui();
46692
46687
  i.add(new V(t, e));
46693
46688
  const n = new pe();
46694
46689
  return function(r, a) {
@@ -46886,7 +46881,7 @@ class Lh {
46886
46881
  t && (t *= Math.max(1, i)), t === void 0 || t >= 1 ? (e.position.copy(this._position), e.quaternion.copy(this._rotation)) : (t = Math.max(0, Math.min(1, t)), e.position.lerp(this._position, t), e.quaternion.slerp(this._rotation, t));
46887
46882
  }
46888
46883
  static _positionBuffer = new dn(() => new w(), 20);
46889
- static _rotationBuffer = new dn(() => new U(), 20);
46884
+ static _rotationBuffer = new dn(() => new z(), 20);
46890
46885
  _position;
46891
46886
  _rotation;
46892
46887
  ensureTransformData() {
@@ -47534,7 +47529,7 @@ class wj extends A {
47534
47529
  }
47535
47530
  }
47536
47531
  function xj() {
47537
- O.add("AlignmentConstraint", ap), O.add("Animation", hi), O.add("Animator", Gt), O.add("AudioListener", Bo), O.add("AudioSource", fn), O.add("AxesHelper", Xh), O.add("BasicIKConstraint", dC), O.add("BoxHelperComponent", Qt), O.add("Camera", wi), O.add("CharacterController", Il), O.add("CharacterControllerInput", sr), O.add("SphereCollider", Qh), O.add("BoxCollider", Z_), O.add("MeshCollider", fa), O.add("CapsuleCollider", er), O.add("ContactShadows", lp), O.add("LogStats", pC), O.add("DeleteBox", Qr), O.add("Deletable", gC), O.add("DeviceFlag", J_), O.add("DragControls", Ja), O.add("DropListener", or), O.add("Duplicatable", MC), O.add("EventListEvent", JS), O.add("EventTrigger", lb), O.add("GltfExportBox", UC), O.add("GltfExport", zC), O.add("VariantAction", YC), O.add("ChangeTransformOnClick", Bl), O.add("ChangeMaterialOnClick", KC), O.add("SetActiveOnClick", ZC), O.add("HideOnStart", Tn), O.add("EmphasizeOnClick", Zh), O.add("PlayAudioOnClick", oa), O.add("PlayAnimationOnClick", Tf), O.add("PreliminaryAction", Jh), O.add("PreliminaryTrigger", gp), O.add("VisibilityAction", yp), O.add("TapGestureTrigger", JC), O.add("USDZExporter", Xs), O.add("Fog", id), O.add("GaussianSplat", $l), O.add("BoxGizmo", Wl), O.add("GridHelper", nd), O.add("GroundProjectedEnv", oo), O.add("UsageMarker", cp), O.add("Interactable", mC), O.add("FixedJoint", R1), O.add("HingeJoint", Pp), O.add("Light", Jt), O.add("LODGroup", kb), O.add("LookAtConstraint", Ml), O.add("NeedleMenu", lo), O.add("NestedGltf", od), O.add("Networking", E1), O.add("OffsetConstraint", Vl), O.add("CameraTargetReachedEvent", xf), O.add("OrbitControls", ye), O.add("ParticleSystemRenderer", Vn), O.add("ParticleSystem", Ef), O.add("Attractor", ld), O.add("PlayerColor", Ih), O.add("Antialiasing", Ep), O.add("BloomEffect", Lb), O.add("ChromaticAberration", Ap), O.add("ColorAdjustments", ga), O.add("DepthOfField", Ps), O.add("EffectWrapper", Mf), O.add("PixelationEffect", Lp), O.add("ScreenSpaceAmbientOcclusion", ur), O.add("ScreenSpaceAmbientOcclusionN8", ks), O.add("SharpeningEffect", Dp), O.add("TiltShiftEffect", uo), O.add("ToneMappingEffect", Xl), O.add("Vignette", Yl), O.add("Volume", Fp), O.add("ReflectionProbe", To), O.add("Renderer", Ci), O.add("MeshRenderer", up), O.add("SkinnedMeshRenderer", RC), O.add("Rigidbody", ht), O.add("SceneSwitcher", ut), O.add("ScreenCapture", ba), O.add("SeeThrough", q1), O.add("ShadowCatcher", jp), O.add("RemoteSkybox", lC), O.add("SmoothFollow", Fb), O.add("SpatialTriggerReceiver", Qs), O.add("SpatialTrigger", Bb), O.add("SpectatorCamera", jb), O.add("SplineContainer", Jl), O.add("SplineWalker", Hn), O.add("SpriteRenderer", Hi), O.add("SyncedCamera", Z1), O.add("SyncedRoom", Os), O.add("SyncedTransform", vs), O.add("TestRunner", J1), O.add("TestSimulateUserData", eP), O.add("PlayableDirector", Rh), O.add("SignalReceiver", Ol), O.add("TimelineAnimationTrack", Cf), O.add("TimelineAudioTrack", jo), O.add("TimelineMarkerTrack", V_), O.add("SignalTrackHandler", Pf), O.add("TimelineActivationTrack", G_), O.add("TimelineControlTrack", H_), O.add("TransformGizmo", tc), O.add("BaseUIComponent", Un), O.add("UIRootComponent", wp), O.add("Button", yr), O.add("Canvas", Mh), O.add("CanvasGroup", la), O.add("EventSystem", xi), O.add("Graphic", xp), O.add("MaskableGraphic", Sp), O.add("Image", fd), O.add("RawImage", zb), O.add("InputField", tP), O.add("VerticalLayoutGroup", f1), O.add("HorizontalLayoutGroup", p1), O.add("GridLayoutGroup", m1), O.add("Outline", td), O.add("ObjectRaycaster", jn), O.add("GraphicRaycaster", $_), O.add("SpatialGrabRaycaster", kl), O.add("RectTransform", ws), O.add("SpatialHtml", Wp), O.add("Text", fi), O.add("EnvironmentScene", X_), O.add("LookAt", sP), O.add("OpenURL", gd), O.add("VideoPlayer", Et), O.add("Voip", mr), O.add("ClickThrough", $b), O.add("CursorFollow", ic), O.add("HoverAnimation", to), O.add("ScrollFollow", fo), O.add("ViewBox", vt), O.add("Avatar", aa), O.add("XRControllerFollow", _r), O.add("XRControllerModel", tr), O.add("XRControllerMovement", mn), O.add("TeleportTarget", mb), O.add("WebARCameraBackground", qp), O.add("WebARSessionRoot", An), O.add("WebXR", gb), O.add("AvatarMarker", bt), O.add("WebXRImageTracking", yd), O.add("WebXRPlaneTracking", br), O.add("XRRig", Vb), O.add("XRFlag", ls), O.add("PlayerSync", i1), O.add("PlayerState", Li), O.add("PresentationMode", wj);
47532
+ O.add("AlignmentConstraint", ap), O.add("Animation", hi), O.add("Animator", Gt), O.add("AudioListener", Bo), O.add("AudioSource", fn), O.add("AxesHelper", Xh), O.add("BasicIKConstraint", dC), O.add("BoxHelperComponent", Qt), O.add("Camera", wi), O.add("CharacterController", Il), O.add("CharacterControllerInput", sr), O.add("SphereCollider", Qh), O.add("BoxCollider", Z_), O.add("MeshCollider", fa), O.add("CapsuleCollider", er), O.add("ContactShadows", lp), O.add("LogStats", pC), O.add("DeleteBox", Qr), O.add("Deletable", gC), O.add("DeviceFlag", J_), O.add("DragControls", Ja), O.add("DropListener", or), O.add("Duplicatable", MC), O.add("EventListEvent", JS), O.add("EventTrigger", lb), O.add("GltfExportBox", zC), O.add("GltfExport", UC), O.add("VariantAction", YC), O.add("ChangeTransformOnClick", Bl), O.add("ChangeMaterialOnClick", KC), O.add("SetActiveOnClick", ZC), O.add("HideOnStart", Tn), O.add("EmphasizeOnClick", Zh), O.add("PlayAudioOnClick", oa), O.add("PlayAnimationOnClick", Tf), O.add("PreliminaryAction", Jh), O.add("PreliminaryTrigger", gp), O.add("VisibilityAction", yp), O.add("TapGestureTrigger", JC), O.add("USDZExporter", Xs), O.add("Fog", id), O.add("GaussianSplat", $l), O.add("BoxGizmo", Wl), O.add("GridHelper", nd), O.add("GroundProjectedEnv", oo), O.add("UsageMarker", cp), O.add("Interactable", mC), O.add("FixedJoint", R1), O.add("HingeJoint", Pp), O.add("Light", Jt), O.add("LODGroup", kb), O.add("LookAtConstraint", Ml), O.add("NeedleMenu", lo), O.add("NestedGltf", od), O.add("Networking", E1), O.add("OffsetConstraint", Vl), O.add("CameraTargetReachedEvent", xf), O.add("OrbitControls", ye), O.add("ParticleSystemRenderer", Vn), O.add("ParticleSystem", Ef), O.add("Attractor", ld), O.add("PlayerColor", Ih), O.add("Antialiasing", Ep), O.add("BloomEffect", Lb), O.add("ChromaticAberration", Ap), O.add("ColorAdjustments", ga), O.add("DepthOfField", Ps), O.add("EffectWrapper", Mf), O.add("PixelationEffect", Lp), O.add("ScreenSpaceAmbientOcclusion", ur), O.add("ScreenSpaceAmbientOcclusionN8", ks), O.add("SharpeningEffect", Dp), O.add("TiltShiftEffect", uo), O.add("ToneMappingEffect", Xl), O.add("Vignette", Yl), O.add("Volume", Fp), O.add("ReflectionProbe", To), O.add("Renderer", Ci), O.add("MeshRenderer", up), O.add("SkinnedMeshRenderer", RC), O.add("Rigidbody", ht), O.add("SceneSwitcher", ut), O.add("ScreenCapture", ba), O.add("SeeThrough", q1), O.add("ShadowCatcher", jp), O.add("RemoteSkybox", lC), O.add("SmoothFollow", Fb), O.add("SpatialTriggerReceiver", Qs), O.add("SpatialTrigger", Bb), O.add("SpectatorCamera", jb), O.add("SplineContainer", Jl), O.add("SplineWalker", Hn), O.add("SpriteRenderer", Hi), O.add("SyncedCamera", Z1), O.add("SyncedRoom", Os), O.add("SyncedTransform", vs), O.add("TestRunner", J1), O.add("TestSimulateUserData", eP), O.add("PlayableDirector", Rh), O.add("SignalReceiver", Ol), O.add("TimelineAnimationTrack", Cf), O.add("TimelineAudioTrack", jo), O.add("TimelineMarkerTrack", V_), O.add("SignalTrackHandler", Pf), O.add("TimelineActivationTrack", G_), O.add("TimelineControlTrack", H_), O.add("TransformGizmo", tc), O.add("BaseUIComponent", zn), O.add("UIRootComponent", wp), O.add("Button", yr), O.add("Canvas", Mh), O.add("CanvasGroup", la), O.add("EventSystem", xi), O.add("Graphic", xp), O.add("MaskableGraphic", Sp), O.add("Image", fd), O.add("RawImage", Ub), O.add("InputField", tP), O.add("VerticalLayoutGroup", f1), O.add("HorizontalLayoutGroup", p1), O.add("GridLayoutGroup", m1), O.add("Outline", td), O.add("ObjectRaycaster", jn), O.add("GraphicRaycaster", $_), O.add("SpatialGrabRaycaster", kl), O.add("RectTransform", ws), O.add("SpatialHtml", Wp), O.add("Text", fi), O.add("EnvironmentScene", X_), O.add("LookAt", sP), O.add("OpenURL", gd), O.add("VideoPlayer", Et), O.add("Voip", mr), O.add("ClickThrough", $b), O.add("CursorFollow", ic), O.add("HoverAnimation", to), O.add("ScrollFollow", fo), O.add("ViewBox", vt), O.add("Avatar", aa), O.add("XRControllerFollow", _r), O.add("XRControllerModel", tr), O.add("XRControllerMovement", mn), O.add("TeleportTarget", mb), O.add("WebARCameraBackground", qp), O.add("WebARSessionRoot", An), O.add("WebXR", gb), O.add("AvatarMarker", bt), O.add("WebXRImageTracking", yd), O.add("WebXRPlaneTracking", br), O.add("XRRig", Vb), O.add("XRFlag", ls), O.add("PlayerSync", i1), O.add("PlayerState", Li), O.add("PresentationMode", wj);
47538
47533
  }
47539
47534
  const Ve = x("debugphysics"), pg = x("debugcolliderplacement"), mg = x("debugcollisions"), Sj = x("showcolliders"), gu = x("debugraycasts"), cP = /* @__PURE__ */ Symbol("needle component");
47540
47535
  function nn(s) {
@@ -47543,7 +47538,7 @@ function nn(s) {
47543
47538
  function gg(s, e) {
47544
47539
  s[cP] = e ? new WeakRef(e) : null;
47545
47540
  }
47546
- const zt = /* @__PURE__ */ Symbol("physics body"), Hw = /* @__PURE__ */ Symbol("rigidbody");
47541
+ const Ut = /* @__PURE__ */ Symbol("physics body"), Hw = /* @__PURE__ */ Symbol("rigidbody");
47547
47542
  function Cj() {
47548
47543
  Ve && console.log("Use Rapier", !0, globalThis.NEEDLE_USE_RAPIER), QM((s) => (Ve && console.log("Construct rapier physics backend"), new fh(s)));
47549
47544
  }
@@ -47551,10 +47546,10 @@ class fh {
47551
47546
  debugRenderColliders = !1;
47552
47547
  debugRenderRaycasts = !1;
47553
47548
  removeBody(e) {
47554
- if (Ve && console.log("REMOVE BODY", e?.name, e[zt]), !e) return;
47549
+ if (Ve && console.log("REMOVE BODY", e?.name, e[Ut]), !e) return;
47555
47550
  this.validate();
47556
- const t = e[zt];
47557
- if (e[zt] = null, t && this.world) {
47551
+ const t = e[Ut];
47552
+ if (e[Ut] = null, t && this.world) {
47558
47553
  const i = this.entryLookup.get(e);
47559
47554
  if (i) {
47560
47555
  this.entryLookup.delete(e);
@@ -47586,7 +47581,7 @@ class fh {
47586
47581
  }
47587
47582
  }
47588
47583
  setColliderEnabled(e, t) {
47589
- const i = e[zt];
47584
+ const i = e[Ut];
47590
47585
  return i ? (i.setEnabled(t), Ve && console.log("SET COLLIDER ENABLED", e.name, t), !0) : !1;
47591
47586
  }
47592
47587
  updateBody(e, t, i) {
@@ -47594,13 +47589,13 @@ class fh {
47594
47589
  if (e.isCollider === !0)
47595
47590
  console.warn("TODO: implement updating collider position");
47596
47591
  else {
47597
- const n = e, o = n[zt];
47592
+ const n = e, o = n[Ut];
47598
47593
  o && this.syncPhysicsBody(n.gameObject, o, t, i);
47599
47594
  }
47600
47595
  }
47601
47596
  updateProperties(e) {
47602
47597
  if (this.validate(), e.isCollider) {
47603
- const t = e, i = t[zt];
47598
+ const t = e, i = t[Ut];
47604
47599
  i && (this.internalUpdateColliderProperties(t, i), t.sharedMaterial && this.updatePhysicsMaterial(t));
47605
47600
  } else {
47606
47601
  const t = e, i = this.internal_getRigidbody(t);
@@ -47787,7 +47782,7 @@ class fh {
47787
47782
  return this._world;
47788
47783
  }
47789
47784
  _tempPosition = new w();
47790
- _tempQuaternion = new U();
47785
+ _tempQuaternion = new z();
47791
47786
  _tempScale = new w();
47792
47787
  _tempMatrix = new Z();
47793
47788
  static _didLoadPhysicsEngine = !1;
@@ -47913,7 +47908,7 @@ class fh {
47913
47908
  }
47914
47909
  updatePhysicsMaterial(e) {
47915
47910
  if (!e) return;
47916
- const t = e.sharedMaterial, i = e[zt];
47911
+ const t = e.sharedMaterial, i = e[Ut];
47917
47912
  if (i && t) {
47918
47913
  if (t.bounciness !== void 0 && i.setRestitution(t.bounciness), t.bounceCombine !== void 0)
47919
47914
  switch (t.bounceCombine) {
@@ -47949,7 +47944,7 @@ class fh {
47949
47944
  }
47950
47945
  /** Get the rapier body for a Needle component */
47951
47946
  getBody(e) {
47952
- return e ? e[zt] : null;
47947
+ return e ? e[Ut] : null;
47953
47948
  }
47954
47949
  /** Get the Needle Engine component for a rapier object */
47955
47950
  getComponent(e) {
@@ -48005,7 +48000,7 @@ class fh {
48005
48000
  e.attachedRigidbody?.autoMass === !1 ? t.setMass(1e-6) : e.density != null && t.setDensity(e.density);
48006
48001
  try {
48007
48002
  const r = this.world.createCollider(t, n);
48008
- return gg(r, e), e[zt] = r, r.setActiveEvents(L.RAPIER_PHYSICS.MODULE.ActiveEvents.COLLISION_EVENTS), r.setActiveCollisionTypes(L.RAPIER_PHYSICS.MODULE.ActiveCollisionTypes.ALL), this.registerEntry(e, r), this.updateColliderCollisionGroups(e), Ve && console.log("Created collider", e.name, r), r;
48003
+ return gg(r, e), e[Ut] = r, r.setActiveEvents(L.RAPIER_PHYSICS.MODULE.ActiveEvents.COLLISION_EVENTS), r.setActiveCollisionTypes(L.RAPIER_PHYSICS.MODULE.ActiveCollisionTypes.ALL), this.registerEntry(e, r), this.updateColliderCollisionGroups(e), Ve && console.log("Created collider", e.name, r), r;
48009
48004
  } catch (r) {
48010
48005
  return console.error('Error creating collider "' + e.name + `"
48011
48006
  Error:`, r), null;
@@ -48017,7 +48012,7 @@ Error:`, r), null;
48017
48012
  * @param collider - The collider to update.
48018
48013
  */
48019
48014
  updateColliderCollisionGroups(e) {
48020
- const t = e[zt], i = e.membership;
48015
+ const t = e[Ut], i = e.membership;
48021
48016
  let n = 0;
48022
48017
  if (i == null)
48023
48018
  n = 65535;
@@ -48042,13 +48037,13 @@ Error:`, r), null;
48042
48037
  let i = null;
48043
48038
  if (e.attachedRigidbody) {
48044
48039
  const n = e.attachedRigidbody;
48045
- if (i = n[zt], !i) {
48040
+ if (i = n[Ut], !i) {
48046
48041
  const o = n.isKinematic && !pg;
48047
48042
  Ve && console.log("Create rigidbody", o);
48048
48043
  const r = o ? L.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased() : L.RAPIER_PHYSICS.MODULE.RigidBodyDesc.dynamic(), a = le(e.attachedRigidbody.gameObject);
48049
48044
  r.setTranslation(a.x, a.y, a.z), r.setRotation(Ie(e.attachedRigidbody.gameObject)), r.centerOfMass = new L.RAPIER_PHYSICS.MODULE.Vector3(n.centerOfMass.x, n.centerOfMass.y, n.centerOfMass.z), i = this.world.createRigidBody(r), this.registerEntry(n, i);
48050
48045
  }
48051
- gg(i, n), n[zt] = i, this.internalUpdateRigidbodyProperties(n, i), this.getRigidbodyRelativeMatrix(e.gameObject, n.gameObject, t), e[Hw] = i;
48046
+ gg(i, n), n[Ut] = i, this.internalUpdateRigidbodyProperties(n, i), this.getRigidbodyRelativeMatrix(e.gameObject, n.gameObject, t), e[Hw] = i;
48052
48047
  } else {
48053
48048
  const n = L.RAPIER_PHYSICS.MODULE.RigidBodyDesc.kinematicPositionBased(), o = le(e.gameObject);
48054
48049
  n.setTranslation(o.x, o.y, o.z), n.setRotation(Ie(e.gameObject)), i = this.world.createRigidBody(n), t.identity(), gg(i, null);
@@ -48056,7 +48051,7 @@ Error:`, r), null;
48056
48051
  return i;
48057
48052
  }
48058
48053
  internal_getRigidbody(e) {
48059
- return e.isCollider === !0 ? e[Hw] : e[zt];
48054
+ return e.isCollider === !0 ? e[Hw] : e[Ut];
48060
48055
  }
48061
48056
  internalUpdateColliderProperties(e, t) {
48062
48057
  const i = t.shape;
@@ -48226,7 +48221,7 @@ Error:`, r), null;
48226
48221
  async addFixedJoint(e, t) {
48227
48222
  if (this._isInitialized || await this.initialize(), !this.world)
48228
48223
  return console.error("Physics world not initialized"), null;
48229
- const i = e[zt], n = t[zt];
48224
+ const i = e[Ut], n = t[Ut];
48230
48225
  if (!i || !n)
48231
48226
  return console.error("Cannot create fixed joint: one or both physics bodies are not initialized"), null;
48232
48227
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
@@ -48242,7 +48237,7 @@ Error:`, r), null;
48242
48237
  async addHingeJoint(e, t, i, n) {
48243
48238
  if (this._isInitialized || await this.initialize(), !this.world)
48244
48239
  return console.error("Physics world not initialized"), null;
48245
- const o = e[zt], r = t[zt];
48240
+ const o = e[Ut], r = t[Ut];
48246
48241
  if (!o || !r)
48247
48242
  return console.error("Cannot create hinge joint: one or both physics bodies are not initialized"), null;
48248
48243
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix);
@@ -49574,10 +49569,10 @@ const jj = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
49574
49569
  __proto__: null,
49575
49570
  NeedleEngineWebComponent: pP
49576
49571
  }, Symbol.toStringTag, { value: "Module" }));
49577
- function Uj() {
49572
+ function zj() {
49578
49573
  typeof window > "u" || (window.customElements.get("needle-engine") || window.customElements.define("needle-engine", pP), window.customElements.get("needle-button") || window.customElements.define("needle-button", Tj), window.customElements.get("needle-logo-element") || window.customElements.define("needle-logo-element", Yf), window.customElements.get("needle-menu") || window.customElements.define("needle-menu", wh));
49579
49574
  }
49580
- function zj() {
49575
+ function Uj() {
49581
49576
  if (G.isARSupported(), D.isiOS()) {
49582
49577
  const s = G.getAppClipLaunchUrl();
49583
49578
  try {
@@ -49600,7 +49595,7 @@ function zj() {
49600
49595
  }
49601
49596
  let Zw = !1;
49602
49597
  function P4() {
49603
- Zw || g_ || (Zw = !0, qD(), PI(), eE(), hI(), yL(), fS(), UL(), kj(), mA(), Oj(), xj(), IF(), setTimeout(pI, 1e3), uL(), cL(), EL(), vL(), Cj(), zj(), wT(), pR(), Uj());
49598
+ Zw || g_ || (Zw = !0, qD(), PI(), eE(), hI(), yL(), fS(), zL(), kj(), mA(), Oj(), xj(), IF(), setTimeout(pI, 1e3), uL(), cL(), EL(), vL(), Cj(), Uj(), wT(), pR(), zj());
49604
49599
  }
49605
49600
  const Nj = new rS();
49606
49601
  function mP(s, e, t) {
@@ -49930,7 +49925,7 @@ class Dh {
49930
49925
  const t = e.mainCameraComponent, i = e.renderer, n = e.scene, o = t.threeCamera;
49931
49926
  if (typeof i[Tc] == "boolean" && (i.autoClear = i[Tc]), i[Tc] = i.autoClear, typeof i[Rc] == "number" && (i.toneMapping = i[Rc]), i[Rc] = i.toneMapping, i.toneMapping != Nu && !this._effects.find((d) => d instanceof L.POSTPROCESSING.MODULE.ToneMappingEffect)) {
49932
49927
  const d = new L.POSTPROCESSING.MODULE.ToneMappingEffect();
49933
- d.name = `ToneMapping (${i.toneMapping})`, d.mode = Uu(i.toneMapping), this._effects.push({
49928
+ d.name = `ToneMapping (${i.toneMapping})`, d.mode = zu(i.toneMapping), this._effects.push({
49934
49929
  typeName: "ToneMapping",
49935
49930
  effect: d,
49936
49931
  priority: Pt.ToneMapping
@@ -50436,7 +50431,7 @@ const T4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50436
50431
  AvatarMarker: bt,
50437
50432
  AxesHelper: Xh,
50438
50433
  AxisRotationConstraint: _C,
50439
- BaseUIComponent: Un,
50434
+ BaseUIComponent: zn,
50440
50435
  BasicIKConstraint: dC,
50441
50436
  BehaviorExtension: a1,
50442
50437
  BehaviorModel: Kt,
@@ -50485,8 +50480,8 @@ const T4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50485
50480
  FixedRotationAxesConstraint: GL,
50486
50481
  Fog: id,
50487
50482
  GaussianSplat: $l,
50488
- GltfExport: zC,
50489
- GltfExportBox: UC,
50483
+ GltfExport: UC,
50484
+ GltfExportBox: zC,
50490
50485
  GrabPointPlaneConstraint: hp,
50491
50486
  Gradient: Gl,
50492
50487
  Graphic: xp,
@@ -50533,7 +50528,7 @@ const T4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50533
50528
  OpenURL: gd,
50534
50529
  OrbitControls: ye,
50535
50530
  Outline: td,
50536
- Padding: zl,
50531
+ Padding: Ul,
50537
50532
  ParticleBurst: Fy,
50538
50533
  ParticleSubEmitter: D1,
50539
50534
  ParticleSystem: Ef,
@@ -50549,7 +50544,7 @@ const T4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50549
50544
  PostProcessingHandler: Dh,
50550
50545
  PreliminaryAction: Jh,
50551
50546
  PreliminaryTrigger: gp,
50552
- RawImage: zb,
50547
+ RawImage: Ub,
50553
50548
  Rect: tF,
50554
50549
  RectTransform: ws,
50555
50550
  ReflectionProbe: To,
@@ -50594,7 +50589,7 @@ const T4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50594
50589
  SpriteData: ch,
50595
50590
  SpriteRenderer: Hi,
50596
50591
  SpriteSheet: Eh,
50597
- SubEmitterSystem: Uy,
50592
+ SubEmitterSystem: zy,
50598
50593
  SyncedCamera: Z1,
50599
50594
  SyncedRoom: Os,
50600
50595
  SyncedTransform: vs,
@@ -50716,6 +50711,7 @@ const e5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
50716
50711
  }, Symbol.toStringTag, { value: "Module" }));
50717
50712
  export {
50718
50713
  Ig as $componentName,
50714
+ Hs as $jVksoCHS,
50719
50715
  I5 as $physicsKey,
50720
50716
  be as ActionBuilder,
50721
50717
  w2 as ActionCollection,
@@ -50731,7 +50727,7 @@ export {
50731
50727
  Gt as Animator,
50732
50728
  Ii as AnimatorConditionMode,
50733
50729
  Ns as AnimatorController,
50734
- U_ as AnimatorControllerBuilder,
50730
+ z_ as AnimatorControllerBuilder,
50735
50731
  Za as AnimatorControllerParameterType,
50736
50732
  Fd as AnimatorStateInfo,
50737
50733
  Ep as Antialiasing,
@@ -50750,7 +50746,7 @@ export {
50750
50746
  Xh as AxesHelper,
50751
50747
  _C as AxisRotationConstraint,
50752
50748
  Zu as BUILD_TIME,
50753
- Un as BaseUIComponent,
50749
+ zn as BaseUIComponent,
50754
50750
  dC as BasicIKConstraint,
50755
50751
  a1 as BehaviorExtension,
50756
50752
  Kt as BehaviorModel,
@@ -50796,7 +50792,7 @@ export {
50796
50792
  ce as ContextRegistry,
50797
50793
  ic as CursorFollow,
50798
50794
  Nl as CustomBranding,
50799
- ze as CustomShader,
50795
+ Ue as CustomShader,
50800
50796
  Vg as DefaultReflectionMode,
50801
50797
  gC as Deletable,
50802
50798
  Qr as DeleteBox,
@@ -50817,7 +50813,7 @@ export {
50817
50813
  Zh as EmphasizeOnClick,
50818
50814
  pl as EngineLoadingView,
50819
50815
  X_ as EnvironmentScene,
50820
- Uv as EventBus,
50816
+ zv as EventBus,
50821
50817
  ne as EventList,
50822
50818
  JS as EventListEvent,
50823
50819
  xi as EventSystem,
@@ -50836,8 +50832,8 @@ export {
50836
50832
  k as GameObject,
50837
50833
  $l as GaussianSplat,
50838
50834
  j as Gizmos,
50839
- zC as GltfExport,
50840
- UC as GltfExportBox,
50835
+ UC as GltfExport,
50836
+ zC as GltfExportBox,
50841
50837
  hp as GrabPointPlaneConstraint,
50842
50838
  Gl as Gradient,
50843
50839
  xp as Graphic,
@@ -50853,14 +50849,14 @@ export {
50853
50849
  Pp as HingeJoint,
50854
50850
  p1 as HorizontalLayoutGroup,
50855
50851
  lF as HorizontalWrapMode,
50856
- z5 as HostData,
50852
+ U5 as HostData,
50857
50853
  to as HoverAnimation,
50858
50854
  fd as Image,
50859
50855
  Bs as ImageReference,
50860
50856
  KR as ImageReferenceSerializer,
50861
50857
  L1 as InheritVelocityModule,
50862
50858
  aE as Input,
50863
- Ur as InputEventQueue,
50859
+ zr as InputEventQueue,
50864
50860
  Ae as InputEvents,
50865
50861
  tP as InputField,
50866
50862
  ul as InstanceHandle,
@@ -50872,6 +50868,7 @@ export {
50872
50868
  mC as Interactable,
50873
50869
  If as InternalScreenshotUtils,
50874
50870
  H5 as JoinedRoomResponse,
50871
+ Dn as KLnyx,
50875
50872
  tb as KeepRotationConstraint,
50876
50873
  VL as KeepScaleConstraint,
50877
50874
  W5 as KeyEventArgs,
@@ -50930,7 +50927,7 @@ export {
50930
50927
  bE as OwnershipEvent,
50931
50928
  vE as OwnershipModel,
50932
50929
  Br as PUBLIC_KEY,
50933
- zl as Padding,
50930
+ Ul as Padding,
50934
50931
  Fy as ParticleBurst,
50935
50932
  D1 as ParticleSubEmitter,
50936
50933
  Ef as ParticleSystem,
@@ -50963,14 +50960,14 @@ export {
50963
50960
  Jh as PreliminaryAction,
50964
50961
  gp as PreliminaryTrigger,
50965
50962
  ah as PreviewHelper,
50966
- Uh as PrimitiveType,
50963
+ zh as PrimitiveType,
50967
50964
  fe as Progress,
50968
50965
  Ox as PromiseAllWithErrors,
50969
50966
  hv as PromiseErrorResult,
50970
50967
  TB as QualityLevel,
50971
50968
  he as RGBAColor,
50972
50969
  fh as RapierPhysics,
50973
- zb as RawImage,
50970
+ Ub as RawImage,
50974
50971
  El as RaycastOptions,
50975
50972
  tF as Rect,
50976
50973
  ws as RectTransform,
@@ -51033,7 +51030,7 @@ export {
51033
51030
  d4 as StateMachineBehaviour,
51034
51031
  N1 as StreamEndedEvent,
51035
51032
  KB as StreamReceivedEvent,
51036
- Uy as SubEmitterSystem,
51033
+ zy as SubEmitterSystem,
51037
51034
  Z1 as SyncedCamera,
51038
51035
  Os as SyncedRoom,
51039
51036
  vs as SyncedTransform,
@@ -51107,13 +51104,12 @@ export {
51107
51104
  ls as XRFlag,
51108
51105
  Vb as XRRig,
51109
51106
  bi as XRState,
51110
- Us as XRStateFlag,
51107
+ zs as XRStateFlag,
51108
+ Hf as _$sHuA,
51111
51109
  Zj as __Ignore,
51112
- Dn as __Pekxq,
51113
51110
  n4 as __internalNotifyObjectDestroyed,
51114
51111
  KE as __internalStepGaussianSplatAdaptation,
51115
- Hs as _fncZ,
51116
- zs as activeInHierarchyFieldName,
51112
+ Us as activeInHierarchyFieldName,
51117
51113
  mS as adaptGaussianSplatQuality,
51118
51114
  Cg as addAttributeChangeCallback,
51119
51115
  qs as addComponent,
@@ -51191,8 +51187,8 @@ export {
51191
51187
  CE as getSceneData,
51192
51188
  rT as getTempColor,
51193
51189
  Mi as getTempQuaternion,
51194
- z as getTempVector,
51195
- zf as getUrlParams,
51190
+ U as getTempVector,
51191
+ Uf as getUrlParams,
51196
51192
  _T as getVisibleInCustomShadowRendering,
51197
51193
  uT as getWorldDirection,
51198
51194
  Dx as getWorldEuler,
@@ -51253,7 +51249,7 @@ export {
51253
51249
  RO as makeIdFromRandomWords,
51254
51250
  pn as makeNameSafe,
51255
51251
  _A as markAsInstancedRendered,
51256
- Ua as maxGaussianSplatAdaptationLevel,
51252
+ za as maxGaussianSplatAdaptationLevel,
51257
51253
  S5 as microphonePermissionsGranted,
51258
51254
  a5 as nameof,
51259
51255
  OO as nameofFactory,
@@ -51270,7 +51266,7 @@ export {
51270
51266
  F5 as onDestroy,
51271
51267
  Jx as onInitialized,
51272
51268
  y_ as onStart,
51273
- U5 as onSyncDestroy,
51269
+ z5 as onSyncDestroy,
51274
51270
  OR as onSyncInstantiate,
51275
51271
  cR as onUpdate,
51276
51272
  SS as onXRSessionEnd,
@@ -51288,7 +51284,7 @@ export {
51288
51284
  Gn as registerCustomEffectType,
51289
51285
  kC as registerExportExtensions,
51290
51286
  xy as registerExtensions,
51291
- UA as registerHotReloadType,
51287
+ zA as registerHotReloadType,
51292
51288
  oR as registerLoader,
51293
51289
  MR as registerPrefabProvider,
51294
51290
  DS as registerPrototypeExtensions,
@@ -51300,7 +51296,6 @@ export {
51300
51296
  A5 as removePatch,
51301
51297
  P_ as resolveGaussianSplatQuality,
51302
51298
  io as resolveUrl,
51303
- Hf as sUknx,
51304
51299
  EO as sanitizeString,
51305
51300
  uj as saveImage,
51306
51301
  S4 as screenshot,
@@ -51350,7 +51345,7 @@ export {
51350
51345
  qu as tryFindObject,
51351
51346
  tD as tryGetExtensionFromUrl,
51352
51347
  uE as tryGetGuid,
51353
- zA as unregisterHotReloadType,
51348
+ UA as unregisterHotReloadType,
51354
51349
  N5 as unregisterPrefabProvider,
51355
51350
  kx as unwatchWrite,
51356
51351
  ZO as useForAutoFit,