@needle-tools/engine 4.8.1 → 4.8.2-alpha

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.
@@ -1,5 +1,5 @@
1
- import { Vector2 as J, Vector3 as b, Vector4 as de, Quaternion as $, PlaneGeometry as Nn, WebGLRenderer as hr, PerspectiveCamera as pe, OrthographicCamera as Md, Scene as bi, Mesh as H, Texture as Te, Uniform$1 as Ui, Color as se, ShaderMaterial as jn, Box3 as yi, ShadowMaterial as ab, Euler as Tt, MeshStandardMaterial as ct, Box3Helper as qw, GridHelper as rm, Object3D as M, Material as _e, Matrix3 as lb, Matrix4 as te, Layers as lo, Ray as co, MathUtils as gs, AxesHelper as _i, MeshBasicMaterial as we, DoubleSide as vi, BufferGeometry as In, Group as no, CylinderGeometry as cb, SphereGeometry as Rd, BoxGeometry as la, SpriteMaterial as Xw, Sprite as Qw, Shape as Yw, ExtrudeGeometry as Kw, Fog as hb, DirectionalLight as Zf, PointLight as am, EdgesGeometry as Zw, LineSegments as db, LineBasicMaterial as ub, Line as Zl, BufferAttribute as ht, Raycaster as Td, Sphere as Ed, ArrayCamera as Jw, Plane as tr, SkinnedMesh as ys, InterleavedBufferAttribute as fb, Skeleton as ex, Bone as tx, Source as ix, WebGLCubeRenderTarget as nx, CubeCamera as sx, AnimationClip as so, FileLoader as lm, TextureLoader as Qr, PropertyBinding as ca, LinearSRGBColorSpace as Ss, ShaderChunk as Vt, UniformsLib as ox, DataTexture as cm, RGBAFormat as Ad, EquirectangularReflectionMapping as _s, SRGBColorSpace as Cs, Clock as rx, NeutralToneMapping as ha, AgXToneMapping as Id, ACESFilmicToneMapping as Ld, NoToneMapping as Vh, PCFSoftShadowMap$1 as ax, BasicNodeLibrary as lx, WebGLRenderTarget as Bn, DepthTexture as pb, NearestFilter as Hh, LoopRepeat as cx, LoopOnce as Jf, AnimationMixer as hm, CompressedTexture as hx, FrontSide as ho, Camera as dx, Frustum as Gg, AudioListener as ux, PositionalAudio as fx, AudioLoader as ep, EventDispatcher as dm, BackSide as Dd, MeshDepthMaterial as px, CustomBlending as mx, MaxEquation as gx, AmbientLight as yx, HemisphereLight as _x, AlwaysStencilFunc as bx, GreaterEqualStencilFunc as vx, NotEqualStencilFunc as wx, GreaterStencilFunc as xx, LessEqualStencilFunc as Sx, EqualStencilFunc as Cx, LessStencilFunc as Px, NeverStencilFunc as qg, InvertStencilOp as Ox, DecrementWrapStencilOp as kx, IncrementWrapStencilOp as Mx, DecrementStencilOp as Rx, IncrementStencilOp as Tx, ReplaceStencilOp as Ex, ZeroStencilOp as Ax, KeepStencilOp as Ix, RawShaderMaterial as mb, GLSL3 as Lx, AlwaysDepth as Dx, GreaterEqualDepth as jx, GreaterDepth as Bx, LessEqualDepth as Fx, LessDepth as zx, NotEqualDepth as Ux, EqualDepth as Nx, BatchedMesh as Xg, MeshPhysicalMaterial as tp, LinearFilter as Gh, UnsignedByteType as $x, RingGeometry as Wx, Line3 as Vx, AdditiveBlending as gb, BoxHelper as Hx, SpotLight as Gx, DirectionalLightHelper as qx, CameraHelper as Xx, LOD as Qx, Triangle as Yx, NormalBlending as Kx, ReinhardToneMapping as um, LinearToneMapping as fm, HalfFloatType as Nu, VideoTexture as Zx, CubeTexture as Jx, CompressedCubeTexture as eS, EquirectangularRefractionMapping as tS, VectorKeyframeTrack as iS, QuaternionKeyframeTrack as nS, Audio as sS, ShaderLib as qh, UniformsUtils as yb, MirroredRepeatWrapping as Qg, MeshNormalMaterial as oS, AudioContext as rS, PMREMGenerator$1 as aS } from "./three-DrqIzZTH.js";
2
- import { createLoaders as pm, getRaycastMesh as _b, LODsManager as Or, NEEDLE_progressive as We, addDracoAndKTX2Loaders as lS, configureLoader as cS, setKTX2TranscoderLocation as hS, setDracoDecoderLocation as dS } from "./gltf-progressive-CqwFE7bV.js";
1
+ import { Vector2 as J, Vector3 as b, Vector4 as de, Quaternion as $, PlaneGeometry as Nn, WebGLRenderer as dr, PerspectiveCamera as pe, OrthographicCamera as Md, Scene as bi, Mesh as H, Texture as Te, Uniform$1 as Ui, Color as se, ShaderMaterial as jn, Box3 as yi, ShadowMaterial as ab, Euler as Tt, MeshStandardMaterial as ct, Box3Helper as qw, GridHelper as rm, Object3D as M, Material as _e, Matrix3 as lb, Matrix4 as te, Layers as lo, Ray as co, MathUtils as gs, AxesHelper as _i, MeshBasicMaterial as we, DoubleSide as vi, BufferGeometry as In, Group as no, CylinderGeometry as cb, SphereGeometry as Rd, BoxGeometry as la, SpriteMaterial as Xw, Sprite as Qw, Shape as Yw, ExtrudeGeometry as Kw, Fog as hb, DirectionalLight as Zf, PointLight as am, EdgesGeometry as Zw, LineSegments as db, LineBasicMaterial as ub, Line as Zl, BufferAttribute as ht, Raycaster as Td, Sphere as Ed, ArrayCamera as Jw, Plane as ir, SkinnedMesh as ys, InterleavedBufferAttribute as fb, Skeleton as ex, Bone as tx, Source as ix, WebGLCubeRenderTarget as nx, CubeCamera as sx, AnimationClip as so, FileLoader as lm, TextureLoader as Qr, PropertyBinding as ca, LinearSRGBColorSpace as Ss, ShaderChunk as Vt, UniformsLib as ox, DataTexture as cm, RGBAFormat as Ad, EquirectangularReflectionMapping as _s, SRGBColorSpace as Cs, Clock as rx, NeutralToneMapping as ha, AgXToneMapping as Id, ACESFilmicToneMapping as Ld, NoToneMapping as Vh, PCFSoftShadowMap$1 as ax, BasicNodeLibrary as lx, WebGLRenderTarget as Bn, DepthTexture as pb, NearestFilter as Hh, LoopRepeat as cx, LoopOnce as Jf, AnimationMixer as hm, CompressedTexture as hx, FrontSide as ho, Camera as dx, Frustum as Gg, AudioListener as ux, PositionalAudio as fx, AudioLoader as ep, EventDispatcher as dm, BackSide as Dd, MeshDepthMaterial as px, CustomBlending as mx, MaxEquation as gx, AmbientLight as yx, HemisphereLight as _x, AlwaysStencilFunc as bx, GreaterEqualStencilFunc as vx, NotEqualStencilFunc as wx, GreaterStencilFunc as xx, LessEqualStencilFunc as Sx, EqualStencilFunc as Cx, LessStencilFunc as Px, NeverStencilFunc as qg, InvertStencilOp as Ox, DecrementWrapStencilOp as kx, IncrementWrapStencilOp as Mx, DecrementStencilOp as Rx, IncrementStencilOp as Tx, ReplaceStencilOp as Ex, ZeroStencilOp as Ax, KeepStencilOp as Ix, RawShaderMaterial as mb, GLSL3 as Lx, AlwaysDepth as Dx, GreaterEqualDepth as jx, GreaterDepth as Bx, LessEqualDepth as Fx, LessDepth as zx, NotEqualDepth as Ux, EqualDepth as Nx, BatchedMesh as Xg, MeshPhysicalMaterial as tp, LinearFilter as Gh, UnsignedByteType as $x, RingGeometry as Wx, Line3 as Vx, AdditiveBlending as gb, BoxHelper as Hx, SpotLight as Gx, DirectionalLightHelper as qx, CameraHelper as Xx, LOD as Qx, Triangle as Yx, NormalBlending as Kx, ReinhardToneMapping as um, LinearToneMapping as fm, HalfFloatType as Nu, VideoTexture as Zx, CubeTexture as Jx, CompressedCubeTexture as eS, EquirectangularRefractionMapping as tS, VectorKeyframeTrack as iS, QuaternionKeyframeTrack as nS, Audio as sS, ShaderLib as qh, UniformsUtils as yb, MirroredRepeatWrapping as Qg, MeshNormalMaterial as oS, AudioContext as rS, PMREMGenerator$1 as aS } from "./three-DrqIzZTH.js";
2
+ import { createLoaders as pm, getRaycastMesh as _b, LODsManager as Io, NEEDLE_progressive as We, addDracoAndKTX2Loaders as lS, configureLoader as cS, setKTX2TranscoderLocation as hS, setDracoDecoderLocation as dS } from "./gltf-progressive-Do1XJNMG.js";
3
3
  import { GroundedSkybox as da, Font as uS, TextGeometry as fS, FontLoader as pS, GLTFLoader as Ps, TransformControlsGizmo as bb, EXRLoader as Xh, RGBELoader as ip, Stats as mS, nodeFrame as gS, OrbitControls as vb, PositionalAudioHelper as yS, HorizontalBlurShader as _S, VerticalBlurShader as bS, GLTFExporter as wb, strToU8 as xb, zipSync as vS, XRControllerModelFactory as wS, XRHandMeshModel as xS, Line2 as SS, LineGeometry as CS, LineMaterial as PS, KTX2Loader as OS, TransformControls as kS, InteractiveGroup as MS, HTMLMesh as RS, VertexNormalsHelper as TS, OBJLoader as mm, FBXLoader as Sb, mergeVertices as ES } from "./three-examples-BIuXQPSf.js";
4
4
  import { fetchProfile as AS, MotionController as IS, $70d766613f57b014$export$2e2bcd8739ae039 as Yg, ByteBuffer as LS, v5 as Kg, md5 as Zg, SIZE_PREFIX_LENGTH as Cb, Builder as gm, createNoise4D as DS, Matrix4 as $u, BatchedParticleRenderer as jS, ParticleSystem as BS, RenderMode as as, ConstantColor as FS, Vector4 as zS, ConstantValue as US, TrailParticle as Jg, WorkerBase as NS, MeshBVH as $S } from "./vendor-CGONwIc0.js";
5
5
  import { __webpack_exports__default as Ce, __webpack_exports__Text as Pb, __webpack_exports__Block as Ob, __webpack_exports__update as WS, SimpleStateBehavior as VS, __webpack_exports__Inline as Wu, __webpack_exports__FontLibrary as ey, ThreeMeshUI as ty } from "./three-mesh-ui-D6Mz5Yl7.js";
@@ -100,10 +100,10 @@ class Vi {
100
100
  return this._index++, this._cache.length <= e && (this._cache[e] = this._factory()), this._cache[e];
101
101
  }
102
102
  }
103
- let Uo = !1;
103
+ let No = !1;
104
104
  const np = new Array();
105
105
  typeof window < "u" && setTimeout(() => {
106
- if (Uo) {
106
+ if (No) {
107
107
  const s = {}, e = new URL(window.location.href), t = new URL(e);
108
108
  t.searchParams.append("console", "");
109
109
  const i = t.toString().replace(/=$|=(?=&)/g, "");
@@ -116,10 +116,10 @@ typeof window < "u" && setTimeout(() => {
116
116
  Append any of these parameters to the URL to enable specific debug options.
117
117
  Example: ${i} will show an onscreen console window.`
118
118
  );
119
- const n = Uo === !0 ? "" : ` (containing "${Uo}")`;
119
+ const n = No === !0 ? "" : ` (containing "${No}")`;
120
120
  console.group("Available URL parameters:" + n);
121
121
  for (const o of Object.keys(s).sort())
122
- typeof Uo == "string" && !o.toLowerCase().includes(Uo.toLowerCase()) || (console.groupCollapsed(o), console.log("Reload with this flag enabled:"), console.log(s[o]), console.groupEnd());
122
+ typeof No == "string" && !o.toLowerCase().includes(No.toLowerCase()) || (console.groupCollapsed(o), console.log("Reload with this flag enabled:"), console.log(s[o]), console.groupEnd());
123
123
  console.groupEnd();
124
124
  }
125
125
  }, 100);
@@ -127,7 +127,7 @@ function jd() {
127
127
  return new URLSearchParams(globalThis.location?.search);
128
128
  }
129
129
  function w(s) {
130
- Uo && !np.includes(s) && np.push(s);
130
+ No && !np.includes(s) && np.push(s);
131
131
  const e = jd();
132
132
  if (e.has(s)) {
133
133
  const t = e.get(s);
@@ -138,7 +138,7 @@ function w(s) {
138
138
  }
139
139
  return !1;
140
140
  }
141
- Uo = w("help");
141
+ No = w("help");
142
142
  function KA(s, e) {
143
143
  const t = jd();
144
144
  t.has(s) ? t.set(s, e) : t.append(s, e), document.location.search = t.toString();
@@ -224,9 +224,9 @@ function Fd(s, e) {
224
224
  }
225
225
  const Hc = w("debugresolveurl"), oC = "rel:";
226
226
  function eI(s, e) {
227
- return dr(s, e);
227
+ return ur(s, e);
228
228
  }
229
- function dr(s, e) {
229
+ function ur(s, e) {
230
230
  if (e === void 0)
231
231
  return Hc && console.warn("getPath: uri is undefined, returning uri", e), e;
232
232
  if (e.startsWith("./"))
@@ -1036,7 +1036,7 @@ function ua(s, e, t, i) {
1036
1036
  const n = bm.get();
1037
1037
  return n.set(e, t, i), ut(s, n), s;
1038
1038
  }
1039
- const Kh = new Vi(() => new $(), 100), Go = new $(), Qu = new $();
1039
+ const Kh = new Vi(() => new $(), 100), qo = new $(), Qu = new $();
1040
1040
  function be(s, e = null) {
1041
1041
  if (!s) return Kh.get().identity();
1042
1042
  const t = e ?? Kh.get();
@@ -1044,14 +1044,14 @@ function be(s, e = null) {
1044
1044
  }
1045
1045
  function cn(s, e) {
1046
1046
  if (!s) return;
1047
- e !== Go && Go.copy(e);
1048
- const t = Go;
1047
+ e !== qo && qo.copy(e);
1048
+ const t = qo;
1049
1049
  s?.parent?.getWorldQuaternion(Qu), Qu.invert();
1050
1050
  const n = Qu.multiply(t);
1051
1051
  s.quaternion.set(n.x, n.y, n.z, n.w);
1052
1052
  }
1053
1053
  function Fb(s, e, t, i, n) {
1054
- Go.set(e, t, i, n), cn(s, Go);
1054
+ qo.set(e, t, i, n), cn(s, qo);
1055
1055
  }
1056
1056
  const RC = new Vi(() => new b(), 100), TC = new b();
1057
1057
  function $e(s, e = null) {
@@ -1091,7 +1091,7 @@ function DC(s, e) {
1091
1091
  Ud(s, e.x, e.y, e.z, !0);
1092
1092
  }
1093
1093
  function Ud(s, e, t, i, n = !0) {
1094
- n && (e = B.toRadians(e), t = B.toRadians(t), i = B.toRadians(i)), fy.set(e, t, i), Go.setFromEuler(fy), cn(s, Go);
1094
+ n && (e = B.toRadians(e), t = B.toRadians(t), i = B.toRadians(i)), fy.set(e, t, i), qo.setFromEuler(fy), cn(s, qo);
1095
1095
  }
1096
1096
  function lp(s, e = !0) {
1097
1097
  s && (e ? (function t(i) {
@@ -1160,14 +1160,14 @@ void main(){
1160
1160
  this.uniforms.map.value = null, this.uniforms.flipY.value = !0, this.uniforms.writeDepth.value = !1, this.uniforms.depthTexture.value = null, this.needsUpdate = !0, this.uniformsNeedUpdate = !0;
1161
1161
  }
1162
1162
  }
1163
- class ir {
1163
+ class nr {
1164
1164
  static planeGeometry = new Nn(2, 2, 1, 1);
1165
- static renderer = new hr({ antialias: !1, alpha: !0 });
1165
+ static renderer = new dr({ antialias: !1, alpha: !0 });
1166
1166
  static perspectiveCam = new pe();
1167
1167
  static orthographicCam = new Md();
1168
1168
  static scene = new bi();
1169
1169
  static blitMaterial = new Zh();
1170
- static mesh = new H(ir.planeGeometry, ir.blitMaterial);
1170
+ static mesh = new H(nr.planeGeometry, nr.blitMaterial);
1171
1171
  /**
1172
1172
  * Copy a texture to a new texture
1173
1173
  * @param texture the texture to copy
@@ -1223,10 +1223,10 @@ class ir {
1223
1223
  }
1224
1224
  }
1225
1225
  function BC(s) {
1226
- return ir.copyTexture(s);
1226
+ return nr.copyTexture(s);
1227
1227
  }
1228
1228
  function bI(s, e = !1) {
1229
- return ir.textureToCanvas(s, e);
1229
+ return nr.textureToCanvas(s, e);
1230
1230
  }
1231
1231
  function FC(s) {
1232
1232
  return typeof HTMLImageElement < "u" && s instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && s instanceof HTMLCanvasElement || typeof OffscreenCanvas < "u" && s instanceof OffscreenCanvas || typeof ImageBitmap < "u" && s instanceof ImageBitmap;
@@ -1471,9 +1471,9 @@ class WC {
1471
1471
  return this.root = new Ce.Block(t), this.root;
1472
1472
  }
1473
1473
  }
1474
- let qo = null;
1474
+ let Xo = null;
1475
1475
  function VC() {
1476
- qo || (qo = new WC()), qo.onEnable();
1476
+ Xo || (Xo = new WC()), Xo.onEnable();
1477
1477
  for (const s in Fl) {
1478
1478
  Fl[s] = console[s];
1479
1479
  let e = !1;
@@ -1488,7 +1488,7 @@ function VC() {
1488
1488
  }
1489
1489
  }
1490
1490
  function HC() {
1491
- qo?.onDisable();
1491
+ Xo?.onDisable();
1492
1492
  for (const s in Fl)
1493
1493
  console[s] = Fl[s];
1494
1494
  }
@@ -1497,13 +1497,13 @@ function Wb(s, ...e) {
1497
1497
  try {
1498
1498
  switch (Za.clear(), s) {
1499
1499
  case "log":
1500
- qo?.addLog("log", t());
1500
+ Xo?.addLog("log", t());
1501
1501
  break;
1502
1502
  case "warn":
1503
- qo?.addLog("warn", t());
1503
+ Xo?.addLog("warn", t());
1504
1504
  break;
1505
1505
  case "error":
1506
- qo?.addLog("error", t());
1506
+ Xo?.addLog("error", t());
1507
1507
  break;
1508
1508
  }
1509
1509
  } catch (o) {
@@ -1785,11 +1785,11 @@ po('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
1785
1785
  po('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
1786
1786
  po('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
1787
1787
  po('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
1788
- po('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.8.1";');
1788
+ po('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.8.2-alpha";');
1789
1789
  po('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1790
- po('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Aug 14 2025 13:35:32 GMT+0000 (Coordinated Universal Time)";');
1790
+ po('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Aug 15 2025 12:08:23 GMT+0000 (Coordinated Universal Time)";');
1791
1791
  po('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
1792
- const Ln = "4.8.1", wm = "undefined", Qb = "Thu Aug 14 2025 13:35:32 GMT+0000 (Coordinated Universal Time)";
1792
+ const Ln = "4.8.2-alpha", wm = "undefined", Qb = "Fri Aug 15 2025 12:08:23 GMT+0000 (Coordinated Universal Time)";
1793
1793
  Xb && console.log(`Engine version: ${Ln} (generator: ${wm})
1794
1794
  Project built at ${Qb}`);
1795
1795
  const vl = NEEDLE_PUBLIC_KEY, ro = "needle_isActiveInHierarchy", jr = "builtin_components", Oh = "needle_editor_guid";
@@ -3288,18 +3288,18 @@ class wy {
3288
3288
  var up = /* @__PURE__ */ ((s) => (s.Visible = "application-visible", s.Hidden = "application-hidden", s.MuteChanged = "application-mutechanged", s))(up || {});
3289
3289
  let Jh = !1;
3290
3290
  const Wr = [];
3291
- function ur() {
3291
+ function fr() {
3292
3292
  if (Jh) return;
3293
3293
  L() && console.debug("User interaction registered: audio can now be played"), Jh = !0;
3294
3294
  const s = [...Wr];
3295
3295
  Wr.length = 0, s.forEach((e) => e());
3296
3296
  }
3297
- document.addEventListener("mousedown", ur);
3298
- document.addEventListener("pointerup", ur);
3299
- document.addEventListener("click", ur);
3300
- document.addEventListener("dragstart", ur);
3301
- document.addEventListener("touchend", ur);
3302
- document.addEventListener("keydown", ur);
3297
+ document.addEventListener("mousedown", fr);
3298
+ document.addEventListener("pointerup", fr);
3299
+ document.addEventListener("click", fr);
3300
+ document.addEventListener("dragstart", fr);
3301
+ document.addEventListener("touchend", fr);
3302
+ document.addEventListener("keydown", fr);
3303
3303
  class zn extends EventTarget {
3304
3304
  static get userInteractionRegistered() {
3305
3305
  return Jh;
@@ -4385,7 +4385,7 @@ class ga {
4385
4385
  _camera;
4386
4386
  _scene;
4387
4387
  constructor(e, t, i) {
4388
- this._mode = e, this._init = t, this._session = i, this._session.addEventListener("end", this.onEnd), this._renderer = new hr({ alpha: !0 }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new pe(), this._scene = new bi(), this._scene.fog = new hb(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
4388
+ this._mode = e, this._init = t, this._session = i, this._session.addEventListener("end", this.onEnd), this._renderer = new dr({ alpha: !0 }), this._renderer.setAnimationLoop(this.onFrame), this._renderer.xr.setSession(i), this._renderer.xr.enabled = !0, this._camera = new pe(), this._scene = new bi(), this._scene.fog = new hb(4473924, 10, 250), this._scene.add(this._camera), this.setupScene();
4389
4389
  }
4390
4390
  end() {
4391
4391
  return this._session ? this._session.end() : Promise.resolve();
@@ -5149,7 +5149,7 @@ class K {
5149
5149
  }
5150
5150
  }
5151
5151
  }
5152
- s1({ session: this }), ur();
5152
+ s1({ session: this }), fr();
5153
5153
  for (const o of K._xrStartListeners)
5154
5154
  o(i);
5155
5155
  const n = [...this._xr_scripts];
@@ -5720,7 +5720,7 @@ class Ei {
5720
5720
  }
5721
5721
  }
5722
5722
  const Wt = w("debugphysics"), Iy = new lo();
5723
- class fr {
5723
+ class pr {
5724
5724
  static AllLayers = 4294967295;
5725
5725
  ray;
5726
5726
  cam;
@@ -5786,7 +5786,7 @@ class nc {
5786
5786
  }
5787
5787
  // raycasting
5788
5788
  raycaster = new Td();
5789
- defaultRaycastOptions = new fr();
5789
+ defaultRaycastOptions = new pr();
5790
5790
  targetBuffer = new Array(1);
5791
5791
  defaultThresholds = {
5792
5792
  Mesh: {},
@@ -5909,7 +5909,7 @@ class nc {
5909
5909
  function Ly(s) {
5910
5910
  return !(s.index && s.index.array.length < 3);
5911
5911
  }
5912
- const Io = new Ed(), Jc = new tr(), D1 = new lb();
5912
+ const Lo = new Ed(), Jc = new ir(), D1 = new lb();
5913
5913
  function j1(s, e, t) {
5914
5914
  const i = s._computeIntersections;
5915
5915
  if (!i)
@@ -5922,17 +5922,17 @@ function j1(s, e, t) {
5922
5922
  Jc.setFromNormalAndCoplanarPoint(G(0, 1, 0), G(0, -l.position.y, 0)), Jc.applyMatrix4(l.matrixWorld, D1);
5923
5923
  const d = o.ray.intersectPlane(Jc, G());
5924
5924
  if (d) {
5925
- Io.copy(c), Io.applyMatrix4(l.matrixWorld);
5926
- const p = G(d).sub(o.ray.origin).length(), g = Io.radius * 0.5;
5925
+ Lo.copy(c), Lo.applyMatrix4(l.matrixWorld);
5926
+ const p = G(d).sub(o.ray.origin).length(), g = Lo.radius * 0.5;
5927
5927
  p < g && r.push({ distance: p, point: d, object: l, normal: Jc.normal.clone() });
5928
5928
  }
5929
5929
  return;
5930
5930
  }
5931
- Io.copy(c), Io.applyMatrix4(l.matrixWorld);
5932
- const h = o.ray.intersectSphere(Io, G());
5931
+ Lo.copy(c), Lo.applyMatrix4(l.matrixWorld);
5932
+ const h = o.ray.intersectSphere(Lo, G());
5933
5933
  if (h) {
5934
5934
  const d = G(h).sub(o.ray.origin), f = d.length();
5935
- if (f > Io.radius) {
5935
+ if (f > Lo.radius) {
5936
5936
  const p = d.clone().normalize();
5937
5937
  r.push({ distance: f, point: h, object: l, normal: p });
5938
5938
  }
@@ -6089,17 +6089,17 @@ const $d = w("trackresources");
6089
6089
  function l0() {
6090
6090
  return $d === "dispose";
6091
6091
  }
6092
- let pr = !0;
6093
- $d === 0 && (pr = !1);
6092
+ let mr = !0;
6093
+ $d === 0 && (mr = !1);
6094
6094
  function TI(s) {
6095
- pr = s;
6095
+ mr = s;
6096
6096
  }
6097
6097
  function z1() {
6098
- return pr;
6098
+ return mr;
6099
6099
  }
6100
6100
  const c0 = Symbol("disposable");
6101
6101
  function Rm(s, e) {
6102
- s && (s[c0] = e, Xo && console.warn("Set disposable", e, s));
6102
+ s && (s[c0] = e, Qo && console.warn("Set disposable", e, s));
6103
6103
  }
6104
6104
  const h0 = Symbol("disposed");
6105
6105
  function EI(s) {
@@ -6108,7 +6108,7 @@ function EI(s) {
6108
6108
  function Oe(s) {
6109
6109
  if (s) {
6110
6110
  if (s[c0] === !1) {
6111
- Xo && console.warn("Object is marked as not disposable", s);
6111
+ Qo && console.warn("Object is marked as not disposable", s);
6112
6112
  return;
6113
6113
  }
6114
6114
  if (typeof s == "object" && (s[h0] = !0), s instanceof bi)
@@ -6124,7 +6124,7 @@ function Oe(s) {
6124
6124
  Oe(t);
6125
6125
  }
6126
6126
  } else if (s instanceof ht || s instanceof fb)
6127
- Xo && console.warn("BufferAttribute dispose not supported", s.count);
6127
+ Qo && console.warn("BufferAttribute dispose not supported", s.count);
6128
6128
  else if (s instanceof Array)
6129
6129
  for (const e of s)
6130
6130
  e instanceof _e && Oe(e);
@@ -6140,11 +6140,11 @@ function Oe(s) {
6140
6140
  const i = e[t];
6141
6141
  i instanceof Te ? (Oe(i), e[t] = null) : i instanceof Ui && (Oe(i.value), i.value = null);
6142
6142
  }
6143
- } else s instanceof Te ? (kr(s), kr(s.source), s.source?.data instanceof ImageBitmap && kr(s.source.data)) : s instanceof ex ? (kr(s.boneTexture), s.boneTexture = null) : s instanceof tx || !(s instanceof M) && Xo && console.warn("Unknown object type", s);
6143
+ } else s instanceof Te ? (kr(s), kr(s.source), s.source?.data instanceof ImageBitmap && kr(s.source.data)) : s instanceof ex ? (kr(s.boneTexture), s.boneTexture = null) : s instanceof tx || !(s instanceof M) && Qo && console.warn("Unknown object type", s);
6144
6144
  }
6145
6145
  }
6146
6146
  function kr(s) {
6147
- s && ((Xo || l0() || $d) && console.warn("🧨 FREE", s), s instanceof ImageBitmap ? s.close() : s instanceof ix ? s.data = null : s.dispose());
6147
+ s && ((Qo || l0() || $d) && console.warn("🧨 FREE", s), s instanceof ImageBitmap ? s.close() : s instanceof ix ? s.data = null : s.dispose());
6148
6148
  }
6149
6149
  function U1(s) {
6150
6150
  (s instanceof H || s instanceof ys) && (s.material = null, s.geometry = null);
@@ -6161,21 +6161,21 @@ function d0(s, e, t = null, i) {
6161
6161
  function AI(s) {
6162
6162
  return s[wl];
6163
6163
  }
6164
- const Xo = w("debugresourceusers") || w("debugmemory"), sc = Symbol("needle-resource-users"), wl = Symbol("needle-resource-users-count");
6164
+ const Qo = w("debugresourceusers") || w("debugmemory"), sc = Symbol("needle-resource-users"), wl = Symbol("needle-resource-users-count");
6165
6165
  function Bt(s, e) {
6166
6166
  xm(s, e, function(t, i) {
6167
- pr && !nc.raycasting && (td(sc, this, t, !1), td(sc, this, i, !0));
6167
+ mr && !nc.raycasting && (td(sc, this, t, !1), td(sc, this, i, !0));
6168
6168
  });
6169
6169
  }
6170
- pr && (Bt(H.prototype, "material"), Bt(H.prototype, "geometry"), Bt(_e.prototype, "map"), Bt(_e.prototype, "bumpMap"), Bt(_e.prototype, "alphaMap"), Bt(_e.prototype, "normalMap"), Bt(_e.prototype, "displacementMap"), Bt(_e.prototype, "roughnessMap"), Bt(_e.prototype, "metalnessMap"), Bt(_e.prototype, "emissiveMap"), Bt(_e.prototype, "specularMap"), Bt(_e.prototype, "envMap"), Bt(_e.prototype, "lightMap"), Bt(_e.prototype, "aoMap"), Bt(_e.prototype, "gradientMap"));
6170
+ mr && (Bt(H.prototype, "material"), Bt(H.prototype, "geometry"), Bt(_e.prototype, "map"), Bt(_e.prototype, "bumpMap"), Bt(_e.prototype, "alphaMap"), Bt(_e.prototype, "normalMap"), Bt(_e.prototype, "displacementMap"), Bt(_e.prototype, "roughnessMap"), Bt(_e.prototype, "metalnessMap"), Bt(_e.prototype, "emissiveMap"), Bt(_e.prototype, "specularMap"), Bt(_e.prototype, "envMap"), Bt(_e.prototype, "lightMap"), Bt(_e.prototype, "aoMap"), Bt(_e.prototype, "gradientMap"));
6171
6171
  function $1(s) {
6172
- if (pr === !1) return;
6172
+ if (mr === !1) return;
6173
6173
  const e = s[sc];
6174
6174
  if (e)
6175
6175
  for (const t of e)
6176
6176
  td(sc, t, s, !1);
6177
6177
  }
6178
- pr && xm(_e.prototype, "dispose", function() {
6178
+ mr && xm(_e.prototype, "dispose", function() {
6179
6179
  $1(this);
6180
6180
  });
6181
6181
  let mp = 0;
@@ -6192,18 +6192,18 @@ function td(s, e, t, i) {
6192
6192
  if (e && !n.has(e)) {
6193
6193
  n.add(e);
6194
6194
  let o = t[wl] || 0;
6195
- o += 1, t[wl] = o, Xo && console.warn(`🟢 Added user of "${t.type}"`, e, t, o, "users:", n);
6195
+ o += 1, t[wl] = o, Qo && console.warn(`🟢 Added user of "${t.type}"`, e, t, o, "users:", n);
6196
6196
  }
6197
6197
  } else if (e && n.has(e)) {
6198
6198
  n.delete(e);
6199
6199
  let o = t[wl] || 0;
6200
- o > 0 && (o -= 1, t[wl] = o), Xo && console.warn(`🔴 Removed user of "${t.type}"`, e, t, o, "users:", n), o <= 0 && (Jr.isLoading(t) || ($d && console.warn(`🔴 Removed all user of "${t.type}"`, t), l0() && Oe(t)));
6200
+ o > 0 && (o -= 1, t[wl] = o), Qo && console.warn(`🔴 Removed user of "${t.type}"`, e, t, o, "users:", n), o <= 0 && (Jr.isLoading(t) || ($d && console.warn(`🔴 Removed all user of "${t.type}"`, t), l0() && Oe(t)));
6201
6201
  }
6202
6202
  t[s] = n;
6203
6203
  }
6204
6204
  try {
6205
6205
  xm(
6206
- hr.prototype,
6206
+ dr.prototype,
6207
6207
  "render",
6208
6208
  function() {
6209
6209
  mp++;
@@ -7506,7 +7506,7 @@ class oe extends se {
7506
7506
  return new oe(e);
7507
7507
  }
7508
7508
  }
7509
- const Th = w("debuggetcomponent"), Qo = w("debuginstantiate");
7509
+ const Th = w("debuggetcomponent"), Yo = w("debuginstantiate");
7510
7510
  class $n {
7511
7511
  idProvider;
7512
7512
  parent;
@@ -7659,7 +7659,7 @@ function A0(s, e, t, i, n, o) {
7659
7659
  const a = e.children;
7660
7660
  e.children = [];
7661
7661
  const l = e.clone(!1);
7662
- if (Dm(l), e.userData = r, e.children = a, n[e.uuid] = { original: e, clone: l }, Qo && console.log("ADD", e, l), e.type === "SkinnedMesh" && (o[e.uuid] = { original: e, clone: l }), t?.visible !== void 0 && (l.visible = t.visible), t?.idProvider) {
7662
+ if (Dm(l), e.userData = r, e.children = a, n[e.uuid] = { original: e, clone: l }, Yo && console.log("ADD", e, l), e.type === "SkinnedMesh" && (o[e.uuid] = { original: e, clone: l }), t?.visible !== void 0 && (l.visible = t.visible), t?.idProvider) {
7663
7663
  l.uuid = t.idProvider.generateUUID();
7664
7664
  const h = l;
7665
7665
  h && (h.guid = l.uuid);
@@ -7738,11 +7738,11 @@ function LP(s) {
7738
7738
  continue;
7739
7739
  }
7740
7740
  const f = Gy(o, a, d, s);
7741
- f !== void 0 ? (Qo && console.log("Found new instance for", a, d, "->", f), c.push(f)) : (Qo && console.warn("Could not find new instance for", a, d), c.push(d));
7741
+ f !== void 0 ? (Yo && console.log("Found new instance for", a, d, "->", f), c.push(f)) : (Yo && console.warn("Could not find new instance for", a, d), c.push(d));
7742
7742
  }
7743
7743
  } else if (typeof l == "object") {
7744
7744
  const c = Gy(o, a, l, s);
7745
- c !== void 0 ? o[a] = c : Qo && console.warn("Could not find new instance for", a, l);
7745
+ c !== void 0 ? o[a] = c : Yo && console.warn("Could not find new instance for", a, l);
7746
7746
  }
7747
7747
  }
7748
7748
  }
@@ -7754,12 +7754,12 @@ function Gy(s, e, t, i) {
7754
7754
  if (n) {
7755
7755
  const o = n.uuid, r = i[o]?.clone;
7756
7756
  if (!r) {
7757
- Qo && console.log("reference did not change", e, s, t);
7757
+ Yo && console.log("reference did not change", e, s, t);
7758
7758
  return;
7759
7759
  }
7760
7760
  const a = n.userData.components.indexOf(t);
7761
7761
  if (a >= 0 && r.isObject3D)
7762
- return Qo && console.log(e, o), r.userData.components[a];
7762
+ return Yo && console.log(e, o), r.userData.components[a];
7763
7763
  console.warn("could not find component", e, t);
7764
7764
  }
7765
7765
  } else if (t.isObject3D === !0) {
@@ -7768,7 +7768,7 @@ function Gy(s, e, t, i) {
7768
7768
  if (n) {
7769
7769
  const o = n.uuid, r = i[o]?.clone;
7770
7770
  if (r)
7771
- return Qo && console.log(e, "old", t, "new", r), r;
7771
+ return Yo && console.log(e, "old", t, "new", r), r;
7772
7772
  }
7773
7773
  } else {
7774
7774
  if (t.isVector4 || t.isVector3 || t.isVector2 || t.isQuaternion || t.isEuler)
@@ -7948,7 +7948,7 @@ class ie {
7948
7948
  throw new Error('Context is required when sourceId is a string. When you call this method from a component you can call it with "getOrCreate(this, url)" where "this" is the component.');
7949
7949
  } else
7950
7950
  i = e.context, e = e.sourceId;
7951
- const n = dr(e, t);
7951
+ const n = ur(e, t);
7952
7952
  Bs && console.log("GetOrCreate Addressable from", e, t, "FinalPath=", n);
7953
7953
  const o = i.addressables, r = o.findAssetReference(n);
7954
7954
  if (r) return r;
@@ -8188,7 +8188,7 @@ class FP extends Yi {
8188
8188
  }
8189
8189
  onDeserialize(e, t) {
8190
8190
  if (typeof e == "string") {
8191
- const i = dr(t.gltfId, e);
8191
+ const i = ur(t.gltfId, e);
8192
8192
  return ia.getOrCreate(i);
8193
8193
  }
8194
8194
  }
@@ -8228,7 +8228,7 @@ class zP extends Yi {
8228
8228
  }
8229
8229
  onDeserialize(e, t) {
8230
8230
  if (typeof e == "string") {
8231
- const i = dr(t.gltfId, e);
8231
+ const i = ur(t.gltfId, e);
8232
8232
  return na.getOrCreate(i);
8233
8233
  }
8234
8234
  }
@@ -8374,7 +8374,7 @@ class $P {
8374
8374
  tl && console.log("Load texture from gltf", c.pointer), h = Im(this.parser, c.pointer).then((d) => this.resolveTexture(c, d));
8375
8375
  else if (typeof c.pointer == "string") {
8376
8376
  tl && console.log("Load texture from path", c.pointer);
8377
- const d = dr(this.source, c.pointer);
8377
+ const d = ur(this.source, c.pointer);
8378
8378
  let f;
8379
8379
  d.endsWith(".exr") ? f = new Xh(this.parser.options.manager) : d.endsWith(".hdr") ? f = new ip(this.parser.options.manager) : f = new Qr(this.parser.options.manager), h = f.loadAsync(d, void 0).then((p) => this.resolveTexture(c, p));
8380
8380
  } else c.pointer;
@@ -8458,6 +8458,8 @@ irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );
8458
8458
  ox.lightmap.lightmapScaleOffset = { value: new de(1, 1, 0, 0) };
8459
8459
  const cf = w("debugprogressive"), eh = new yi(), th = new Ed();
8460
8460
  class VP {
8461
+ /** The type of the @needle-tools/gltf-progressive LODsManager - can be used to set static settings */
8462
+ static GLTF_PROGRESSIVE_LODSMANAGER_TYPE = Io;
8461
8463
  context;
8462
8464
  _lodsManager;
8463
8465
  _settings = {};
@@ -8494,10 +8496,10 @@ class VP {
8494
8496
  }
8495
8497
  /** @internal */
8496
8498
  setRenderer(e) {
8497
- this._lodsManager?.disable(), Or.removePlugin(this), Or.addPlugin(this), Or.debugDrawLine = F.DrawLine, this._lodsManager = Or.get(e, { engine: "needle-engine" }), this.applySettings(), this._lodsManager.enable();
8499
+ this._lodsManager?.disable(), Io.removePlugin(this), Io.addPlugin(this), Io.debugDrawLine = F.DrawLine, this._lodsManager = Io.get(e, { engine: "needle-engine" }), this.applySettings(), this._lodsManager.enable();
8498
8500
  }
8499
8501
  disable() {
8500
- this._lodsManager?.disable(), Or.removePlugin(this);
8502
+ this._lodsManager?.disable(), Io.removePlugin(this);
8501
8503
  }
8502
8504
  /** @internal */
8503
8505
  onAfterUpdatedLOD(e, t, i, n, o) {
@@ -8505,7 +8507,7 @@ class VP {
8505
8507
  }
8506
8508
  onRenderDebug(e, t, i) {
8507
8509
  if (!t.geometry || !We.hasLODLevelAvailable(t.geometry) && !We.hasLODLevelAvailable(t.material)) return;
8508
- const n = Or.getObjectLODState(t);
8510
+ const n = Io.getObjectLODState(t);
8509
8511
  if (!n) return;
8510
8512
  let o = i.mesh_lod;
8511
8513
  const r = i.mesh_lod != n.lastLodLevel_Mesh || i.texture_lod != n.lastLodLevel_Texture;
@@ -8541,7 +8543,7 @@ TEX ` + i.texture_lod;
8541
8543
  }
8542
8544
  }
8543
8545
  const HP = w("debugplayerview");
8544
- var Yo = /* @__PURE__ */ ((s) => (s.Browser = "browser", s.Headset = "headset", s.Handheld = "handheld", s))(Yo || {});
8546
+ var Ko = /* @__PURE__ */ ((s) => (s.Browser = "browser", s.Headset = "headset", s.Handheld = "handheld", s))(Ko || {});
8545
8547
  class GP {
8546
8548
  userId;
8547
8549
  context;
@@ -9649,7 +9651,7 @@ class Jy {
9649
9651
  e.use(), this.onclick();
9650
9652
  }
9651
9653
  }
9652
- const No = "needle-menu", $l = w("debugmenu"), e_ = w("debugnoncommercial");
9654
+ const $o = "needle-menu", $l = w("debugmenu"), e_ = w("debugnoncommercial");
9653
9655
  let lO = class {
9654
9656
  _context;
9655
9657
  _menu;
@@ -9759,11 +9761,11 @@ let lO = class {
9759
9761
  };
9760
9762
  class Xd extends HTMLElement {
9761
9763
  static create() {
9762
- return document.createElement(No, { is: No });
9764
+ return document.createElement($o, { is: $o });
9763
9765
  }
9764
9766
  static getOrCreate(e, t) {
9765
- let i = e.querySelector(No);
9766
- return !i && e.shadowRoot && (i = e.shadowRoot.querySelector(No)), i || (i = window.document.body.querySelector(No)), i || (i = Xd.create(), e.shadowRoot ? e.shadowRoot.appendChild(i) : e.appendChild(i)), i._domElement = e, i._context = t, i;
9767
+ let i = e.querySelector($o);
9768
+ return !i && e.shadowRoot && (i = e.shadowRoot.querySelector($o)), i || (i = window.document.body.querySelector($o)), i || (i = Xd.create(), e.shadowRoot ? e.shadowRoot.appendChild(i) : e.appendChild(i)), i._domElement = e, i._context = t, i;
9767
9769
  }
9768
9770
  _domElement = null;
9769
9771
  _context = null;
@@ -10367,7 +10369,7 @@ class Xd extends HTMLElement {
10367
10369
  }), this.appendChild(t);
10368
10370
  }
10369
10371
  }
10370
- customElements.get(No) || customElements.define(No, Xd);
10372
+ customElements.get($o) || customElements.define($o, Xd);
10371
10373
  const Xe = w("debugcontext"), cO = w("stats"), hO = w("debugactive"), dO = w("debugframerate"), uO = w("debugcoroutine"), BI = {};
10372
10374
  class FI {
10373
10375
  name;
@@ -10746,7 +10748,7 @@ class N {
10746
10748
  const t = this.domElement?.shadowRoot?.querySelector("canvas");
10747
10749
  t && (e.canvas = t, Xe && console.log("Using canvas from shadow root", t));
10748
10750
  }
10749
- return Xe && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new hr(e), this.renderer.debug.checkShaderErrors = L() || w("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Vh, this.renderer.setClearColor(new se("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = ax, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = Cs, this.renderer.nodes = {
10751
+ return Xe && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new dr(e), this.renderer.debug.checkShaderErrors = L() || w("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Vh, this.renderer.setClearColor(new se("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = ax, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = Cs, this.renderer.nodes = {
10750
10752
  library: new lx(),
10751
10753
  modelViewMatrix: null,
10752
10754
  modelNormalViewMatrix: null
@@ -10787,7 +10789,7 @@ class N {
10787
10789
  this.maxRenderResolution && (this.maxRenderResolution.x = Math.max(1, this.maxRenderResolution.x), i = Math.min(this.maxRenderResolution.x, i), this.maxRenderResolution.y = Math.max(1, this.maxRenderResolution.y), n = Math.min(this.maxRenderResolution.y, n));
10788
10790
  const o = this.mainCamera;
10789
10791
  this.updateAspect(o), this.renderer.setSize(i, n, !0), this.renderer.domElement.style.width = "100%", this.renderer.domElement.style.height = "100%";
10790
- const r = typeof this.devicePixelRatio == "number" ? this.devicePixelRatio : this.devicePixelRatio === "auto" ? window.devicePixelRatio : void 0;
10792
+ const r = typeof this.devicePixelRatio == "number" ? this.devicePixelRatio : this.devicePixelRatio === "auto" ? Math.min(2, window.devicePixelRatio) : void 0;
10791
10793
  r !== void 0 && this.renderer.setPixelRatio(r), this.composer && (this.composer.setSize?.call(this.composer, i, n), r !== void 0 && "setPixelRatio" in this.composer && typeof this.composer.setPixelRatio == "function" && this.composer.setPixelRatio?.call(this.composer, window.devicePixelRatio));
10792
10794
  }
10793
10795
  }
@@ -12500,7 +12502,7 @@ $0([
12500
12502
  $0([
12501
12503
  u(x)
12502
12504
  ], Yd.prototype, "to");
12503
- var OO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, mr = (s, e, t, i) => {
12505
+ var OO = Object.defineProperty, kO = Object.getOwnPropertyDescriptor, gr = (s, e, t, i) => {
12504
12506
  for (var n = i > 1 ? void 0 : i ? kO(e, t) : e, o = s.length - 1, r; o >= 0; o--)
12505
12507
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
12506
12508
  return i && n && OO(e, t, n), n;
@@ -12756,25 +12758,25 @@ class Ht extends T {
12756
12758
  this.context.animations.registerAnimationMixer(this.mixer);
12757
12759
  }
12758
12760
  }
12759
- mr([
12761
+ gr([
12760
12762
  u()
12761
12763
  ], Ht.prototype, "playAutomatically", 2);
12762
- mr([
12764
+ gr([
12763
12765
  u()
12764
12766
  ], Ht.prototype, "randomStartTime", 2);
12765
- mr([
12767
+ gr([
12766
12768
  u(W0)
12767
12769
  ], Ht.prototype, "minMaxSpeed", 2);
12768
- mr([
12770
+ gr([
12769
12771
  u(W0)
12770
12772
  ], Ht.prototype, "minMaxOffsetNormalized", 2);
12771
- mr([
12773
+ gr([
12772
12774
  u()
12773
12775
  ], Ht.prototype, "loop", 2);
12774
- mr([
12776
+ gr([
12775
12777
  u()
12776
12778
  ], Ht.prototype, "clampWhenFinished", 2);
12777
- mr([
12779
+ gr([
12778
12780
  u(so)
12779
12781
  ], Ht.prototype, "clips", 1);
12780
12782
  class MO {
@@ -12861,7 +12863,7 @@ function TO(s, e) {
12861
12863
  clip: new so(s, 0, [])
12862
12864
  };
12863
12865
  }
12864
- var zo = /* @__PURE__ */ ((s) => (s[s.If = 1] = "If", s[s.IfNot = 2] = "IfNot", s[s.Greater = 3] = "Greater", s[s.Less = 4] = "Less", s[s.Equals = 6] = "Equals", s[s.NotEqual = 7] = "NotEqual", s))(zo || {}), V0 = /* @__PURE__ */ ((s) => (s[s.Float = 1] = "Float", s[s.Int = 3] = "Int", s[s.Bool = 4] = "Bool", s[s.Trigger = 9] = "Trigger", s))(V0 || {});
12866
+ var Uo = /* @__PURE__ */ ((s) => (s[s.If = 1] = "If", s[s.IfNot = 2] = "IfNot", s[s.Greater = 3] = "Greater", s[s.Less = 4] = "Less", s[s.Equals = 6] = "Equals", s[s.NotEqual = 7] = "NotEqual", s))(Uo || {}), V0 = /* @__PURE__ */ ((s) => (s[s.Float = 1] = "Float", s[s.Int = 3] = "Int", s[s.Bool = 4] = "Bool", s[s.Trigger = 9] = "Trigger", s))(V0 || {});
12865
12867
  const et = w("debuganimatorcontroller"), oh = w("debugrootmotion");
12866
12868
  class ln {
12867
12869
  /**
@@ -13320,17 +13322,17 @@ Exit Time: ` + c, o.hasExitTime);
13320
13322
  const t = this.model.parameters.find((i) => i.name === e.parameter);
13321
13323
  if (!t) return !1;
13322
13324
  switch (e.mode) {
13323
- case zo.If:
13325
+ case Uo.If:
13324
13326
  return t.value === !0;
13325
- case zo.IfNot:
13327
+ case Uo.IfNot:
13326
13328
  return t.value === !1;
13327
- case zo.Greater:
13329
+ case Uo.Greater:
13328
13330
  return t.value > e.threshold;
13329
- case zo.Less:
13331
+ case Uo.Less:
13330
13332
  return t.value < e.threshold;
13331
- case zo.Equals:
13333
+ case Uo.Equals:
13332
13334
  return t.value === e.threshold;
13333
- case zo.NotEqual:
13335
+ case Uo.NotEqual:
13334
13336
  return t.value !== e.threshold;
13335
13337
  }
13336
13338
  return !1;
@@ -13837,7 +13839,7 @@ class fs extends Bn {
13837
13839
  render(e, t, i) {
13838
13840
  if ("addPass" in i)
13839
13841
  this._unsupported_effectcomposer_warning || (console.warn("RenderTexture.render() does not yet support EffectComposer"), this._unsupported_effectcomposer_warning = !0);
13840
- else if (i instanceof hr) {
13842
+ else if (i instanceof dr) {
13841
13843
  this.onBeforeRender();
13842
13844
  const o = i.getRenderTarget(), r = i.xr.enabled;
13843
13845
  i.xr.enabled = !1, i.setRenderTarget(this), i.clear(!0, !0, !0), i.render(e, t), i.setRenderTarget(o), i.xr.enabled = r, this.onAfterRender();
@@ -13985,7 +13987,7 @@ class Rs extends T {
13985
13987
  fragmentShader: FO
13986
13988
  }), this._blurrynessShader.depthWrite = !1, this._blurrynessShader.uniforms.map.value = e, this._blurrynessShader.uniforms.blurriness.value = t, this._lastBlurriness = t, e.needsUpdate = !0;
13987
13989
  const i = this._projection.material.transparent;
13988
- this._projection.material.transparent = (this.context.xr?.isAR === !0 && this.arBlending > 1e-6) ?? !1, this._projection.material.transparent ? this._blurrynessShader.uniforms.blending.value = this.arBlending : this._blurrynessShader.uniforms.blending.value = 0, this.context.isInPassThrough ? this._blurrynessShader.uniforms.alphaFactor.value = 0.95 : this._blurrynessShader.uniforms.alphaFactor.value = 1, i !== this._projection.material.transparent && (this._projection.material.needsUpdate = !0), this._projection.material.map = ir.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
13990
+ this._projection.material.transparent = (this.context.xr?.isAR === !0 && this.arBlending > 1e-6) ?? !1, this._projection.material.transparent ? this._blurrynessShader.uniforms.blending.value = this.arBlending : this._blurrynessShader.uniforms.blending.value = 0, this.context.isInPassThrough ? this._blurrynessShader.uniforms.alphaFactor.value = 0.95 : this._blurrynessShader.uniforms.alphaFactor.value = 1, i !== this._projection.material.transparent && (this._projection.material.needsUpdate = !0), this._projection.material.map = nr.copyTexture(e, this._blurrynessShader), this._projection.material.depthTest = !0, this._projection.material.depthWrite = !1;
13989
13991
  }
13990
13992
  }
13991
13993
  bc([
@@ -14092,7 +14094,7 @@ $m([
14092
14094
  $m([
14093
14095
  u(M)
14094
14096
  ], Ra.prototype, "sources");
14095
- let Ko = class {
14097
+ let Zo = class {
14096
14098
  bb = null;
14097
14099
  bb_pos = 0;
14098
14100
  __init(e, t) {
@@ -14121,13 +14123,13 @@ class H0 {
14121
14123
  return this.bb_pos = e, this.bb = t, this;
14122
14124
  }
14123
14125
  position(e) {
14124
- return (e || new Ko()).__init(this.bb_pos, this.bb);
14126
+ return (e || new Zo()).__init(this.bb_pos, this.bb);
14125
14127
  }
14126
14128
  rotation(e) {
14127
- return (e || new Ko()).__init(this.bb_pos + 12, this.bb);
14129
+ return (e || new Zo()).__init(this.bb_pos + 12, this.bb);
14128
14130
  }
14129
14131
  scale(e) {
14130
- return (e || new Ko()).__init(this.bb_pos + 24, this.bb);
14132
+ return (e || new Zo()).__init(this.bb_pos + 24, this.bb);
14131
14133
  }
14132
14134
  static sizeOf() {
14133
14135
  return 36;
@@ -15306,7 +15308,7 @@ class JO extends Yi {
15306
15308
  }
15307
15309
  onDeserialize(e, t) {
15308
15310
  if (typeof e == "string" && e.length > 0)
15309
- return dr(t.gltfId, e);
15311
+ return ur(t.gltfId, e);
15310
15312
  }
15311
15313
  }
15312
15314
  new JO();
@@ -15335,7 +15337,7 @@ class Gi extends Sa {
15335
15337
  }
15336
15338
  performRaycast(e = null) {
15337
15339
  if (!this.targets) return null;
15338
- e ??= new fr(), e.targets = this.targets, e.results = this.raycastHits, e.useAcceleratedRaycast = !0;
15340
+ e ??= new pr(), e.targets = this.targets, e.results = this.raycastHits, e.useAcceleratedRaycast = !0;
15339
15341
  const t = e.testObject;
15340
15342
  this.ignoreSkinnedMeshes && (e.testObject = (n) => n instanceof ys ? "continue in children" : t ? t(n) : !0);
15341
15343
  const i = this.context.physics.raycast(e);
@@ -15508,7 +15510,7 @@ class ei extends T {
15508
15510
  if (e === void 0 || e.propagationStopped || e.defaultPrevented || e.used) return;
15509
15511
  const t = new Zd(this.context.input, e);
15510
15512
  this._currentPointerEventName = e.type, t.inputSource = this.context.input, t.isClick = e.isClick, t.isDoubleClick = e.isDoubleClick, t.isDown = e.type == Le.PointerDown, t.isUp = e.type == Le.PointerUp, t.isPressed = this.context.input.getPointerPressed(e.pointerId);
15511
- const i = new fr();
15513
+ const i = new pr();
15512
15514
  e.hasRay ? i.ray = e.ray : i.screenPoint = this.context.input.getPointerPositionRC(e.pointerId), i.allowSlowRaycastFallback = e.isClick || e.isDoubleClick;
15513
15515
  const n = this.performRaycast(i);
15514
15516
  if (Gs && (t.isDown ? console.log("DOWN", { id: t.pointerId, hits: n.length }) : t.isUp && console.log("UP", { id: t.pointerId, hits: n.length }), t.isClick && console.log("CLICK", { id: t.pointerId, hits: n.length })), n) {
@@ -16107,7 +16109,7 @@ class ge extends T {
16107
16109
  Li && F.DrawLine(i, o, 5592575, 10), this.setLookTargetPosition(o, !0);
16108
16110
  }
16109
16111
  if (!this.setLookTargetFromConstraint()) {
16110
- const i = new fr();
16112
+ const i = new pr();
16111
16113
  i.screenPoint = new J(0, 0), i.lineThreshold = 0.1;
16112
16114
  const n = this.context.physics.raycast(i);
16113
16115
  n.length > 0 && this.setLookTargetPosition(n[0].point, !0), nl && console.log("OrbitControls hits", ...n);
@@ -17707,7 +17709,7 @@ var Sk = Object.defineProperty, Xm = (s, e, t, i) => {
17707
17709
  return n && Sk(e, t, n), n;
17708
17710
  };
17709
17711
  const Ck = "noVoip", Pk = w("debugvoip");
17710
- class gr extends T {
17712
+ class yr extends T {
17711
17713
  autoConnect = !0;
17712
17714
  runInBackground = !0;
17713
17715
  createMenuButton = !0;
@@ -17862,13 +17864,13 @@ class gr extends T {
17862
17864
  }
17863
17865
  Xm([
17864
17866
  u()
17865
- ], gr.prototype, "autoConnect");
17867
+ ], yr.prototype, "autoConnect");
17866
17868
  Xm([
17867
17869
  u()
17868
- ], gr.prototype, "runInBackground");
17870
+ ], yr.prototype, "runInBackground");
17869
17871
  Xm([
17870
17872
  u()
17871
- ], gr.prototype, "createMenuButton");
17873
+ ], yr.prototype, "createMenuButton");
17872
17874
  var Ok = Object.defineProperty, Q0 = (s, e, t, i) => {
17873
17875
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
17874
17876
  (r = s[o]) && (n = r(e, t, n) || n);
@@ -17884,7 +17886,7 @@ class eu extends T {
17884
17886
  mouthChangeLength = 0;
17885
17887
  awake() {
17886
17888
  setTimeout(() => {
17887
- this.voip = x.findObjectOfType(gr, this.context), this.marker || (this.marker = x.getComponentInParent(this.gameObject, De));
17889
+ this.voip = x.findObjectOfType(yr, this.context), this.marker || (this.marker = x.getComponentInParent(this.gameObject, De));
17888
17890
  }, 3e3);
17889
17891
  }
17890
17892
  update() {
@@ -17942,7 +17944,7 @@ class Y0 extends T {
17942
17944
  marker = null;
17943
17945
  _startPosition = null;
17944
17946
  awake() {
17945
- this.voip = x.findObjectOfType(gr, this.context), this.marker = x.getComponentInParent(this.gameObject, De);
17947
+ this.voip = x.findObjectOfType(yr, this.context), this.marker = x.getComponentInParent(this.gameObject, De);
17946
17948
  }
17947
17949
  update() {
17948
17950
  if (!this.voip || !this.marker || this.context.time.frameCount % 10 !== 0) return;
@@ -18383,7 +18385,7 @@ ni([
18383
18385
  u(b)
18384
18386
  ], Km.prototype, "center");
18385
18387
  let Zm = Km;
18386
- class yr extends Si {
18388
+ class _r extends Si {
18387
18389
  sharedMesh;
18388
18390
  convex = !1;
18389
18391
  /**
@@ -18421,10 +18423,10 @@ class yr extends Si {
18421
18423
  }
18422
18424
  ni([
18423
18425
  u(H)
18424
- ], yr.prototype, "sharedMesh");
18426
+ ], _r.prototype, "sharedMesh");
18425
18427
  ni([
18426
18428
  u()
18427
- ], yr.prototype, "convex");
18429
+ ], _r.prototype, "convex");
18428
18430
  class uo extends Si {
18429
18431
  center = new b(0, 0, 0);
18430
18432
  radius = 0.5;
@@ -18562,7 +18564,7 @@ class go extends T {
18562
18564
  } else this.animator?.setBool("falling", !1);
18563
18565
  }
18564
18566
  }
18565
- _raycastOptions = new fr();
18567
+ _raycastOptions = new pr();
18566
18568
  }
18567
18569
  Ts([
18568
18570
  u(Ea)
@@ -18596,7 +18598,7 @@ U0((s) => {
18596
18598
  isNaN(i) || (t.opacity = i, t.darkness = i);
18597
18599
  }
18598
18600
  });
18599
- const _r = class Pl extends T {
18601
+ const br = class Pl extends T {
18600
18602
  static _instances = /* @__PURE__ */ new Map();
18601
18603
  /**
18602
18604
  * Create contact shadows for the scene. Automatically fits the shadows to the scene.
@@ -18766,23 +18768,23 @@ const _r = class Pl extends T {
18766
18768
  };
18767
18769
  Aa([
18768
18770
  u()
18769
- ], _r.prototype, "autoFit");
18771
+ ], br.prototype, "autoFit");
18770
18772
  Aa([
18771
18773
  u()
18772
- ], _r.prototype, "darkness");
18774
+ ], br.prototype, "darkness");
18773
18775
  Aa([
18774
18776
  u()
18775
- ], _r.prototype, "opacity");
18777
+ ], br.prototype, "opacity");
18776
18778
  Aa([
18777
18779
  u()
18778
- ], _r.prototype, "blur");
18780
+ ], br.prototype, "blur");
18779
18781
  Aa([
18780
18782
  u()
18781
- ], _r.prototype, "occludeBelowGround");
18783
+ ], br.prototype, "occludeBelowGround");
18782
18784
  Aa([
18783
18785
  u()
18784
- ], _r.prototype, "backfaceShadows");
18785
- let nu = _r;
18786
+ ], br.prototype, "backfaceShadows");
18787
+ let nu = br;
18786
18788
  const m_ = [], _f = new Array(), Fk = w("logstats");
18787
18789
  class nv extends T {
18788
18790
  onEnable() {
@@ -18802,19 +18804,19 @@ class su extends T {
18802
18804
  class sv extends T {
18803
18805
  }
18804
18806
  const g_ = w("debugdeletable");
18805
- class Zo extends Ct {
18807
+ class Jo extends Ct {
18806
18808
  static _instances = [];
18807
18809
  onEnable() {
18808
- Zo._instances.push(this);
18810
+ Jo._instances.push(this);
18809
18811
  }
18810
18812
  onDisable() {
18811
- const e = Zo._instances.indexOf(this);
18812
- e >= 0 && Zo._instances.splice(e, 1);
18813
+ const e = Jo._instances.indexOf(this);
18814
+ e >= 0 && Jo._instances.splice(e, 1);
18813
18815
  }
18814
18816
  }
18815
18817
  class ov extends T {
18816
18818
  update() {
18817
- for (const e of Zo._instances) {
18819
+ for (const e of Jo._instances) {
18818
18820
  const t = this.gameObject;
18819
18821
  if (e.isInBox(t) === !0) {
18820
18822
  const n = x.getComponentInParent(this.gameObject, su);
@@ -18856,7 +18858,7 @@ class Jm extends T {
18856
18858
  Uk([
18857
18859
  u()
18858
18860
  ], Jm.prototype, "visibleOn");
18859
- var Nk = Object.defineProperty, br = (s, e, t, i) => {
18861
+ var Nk = Object.defineProperty, vr = (s, e, t, i) => {
18860
18862
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
18861
18863
  (r = s[o]) && (n = r(e, t, n) || n);
18862
18864
  return n && Nk(e, t, n), n;
@@ -19075,25 +19077,25 @@ const yo = class Di extends T {
19075
19077
  Tn && console.log("DRAG END", t, t?.visible), this._dragHelper.setSelected(null, this.context);
19076
19078
  }
19077
19079
  };
19078
- br([
19080
+ vr([
19079
19081
  u()
19080
19082
  ], yo.prototype, "dragMode");
19081
- br([
19083
+ vr([
19082
19084
  u()
19083
19085
  ], yo.prototype, "snapGridResolution");
19084
- br([
19086
+ vr([
19085
19087
  u()
19086
19088
  ], yo.prototype, "keepRotation");
19087
- br([
19089
+ vr([
19088
19090
  u()
19089
19091
  ], yo.prototype, "xrDragMode");
19090
- br([
19092
+ vr([
19091
19093
  u()
19092
19094
  ], yo.prototype, "xrKeepRotation");
19093
- br([
19095
+ vr([
19094
19096
  u()
19095
19097
  ], yo.prototype, "xrDistanceDragFactor");
19096
- br([
19098
+ vr([
19097
19099
  u()
19098
19100
  ], yo.prototype, "showGizmo");
19099
19101
  let Hr = yo;
@@ -19230,7 +19232,7 @@ class vf {
19230
19232
  _backCenter = new b();
19231
19233
  _backBottomCenter = new b();
19232
19234
  _bounds = new yi();
19233
- _dragPlane = new tr(new b(0, 1, 0));
19235
+ _dragPlane = new ir(new b(0, 1, 0));
19234
19236
  _draggedOverObject = null;
19235
19237
  _draggedOverObjectLastSetUp = null;
19236
19238
  _draggedOverObjectLastNormal = new b();
@@ -19428,9 +19430,9 @@ class av {
19428
19430
  _selected = null;
19429
19431
  _context = null;
19430
19432
  _camera;
19431
- _cameraPlane = new tr();
19433
+ _cameraPlane = new ir();
19432
19434
  _hasGroundPlane = !1;
19433
- _groundPlane = new tr();
19435
+ _groundPlane = new ir();
19434
19436
  _groundOffset = new b();
19435
19437
  _groundOffsetFactor = 0;
19436
19438
  _groundDistance = 0;
@@ -19488,7 +19490,7 @@ class av {
19488
19490
  }
19489
19491
  onUpdateGroundPlane() {
19490
19492
  if (!this._selected || !this._context) return;
19491
- const e = Z(this._selected), t = new co(G(0, 0.1, 0).add(e), G(0, -1, 0)), i = new fr();
19493
+ const e = Z(this._selected), t = new co(G(0, 0.1, 0).add(e), G(0, -1, 0)), i = new pr();
19492
19494
  i.testObject = (o) => o !== this._selected;
19493
19495
  const n = this._context.physics.raycastFromRay(t, i);
19494
19496
  for (let o = 0; o < n.length; o++) {
@@ -19528,7 +19530,7 @@ class eL {
19528
19530
  this.seed = t, this.guid = i, this.file_name = n, this.file_hash = o, this.file_size = r, this.position = a, this.scale = l, this.sender = e, this.downloadUrl = c;
19529
19531
  }
19530
19532
  }
19531
- var $o;
19533
+ var Wo;
19532
19534
  ((s) => {
19533
19535
  const e = /* @__PURE__ */ new Map();
19534
19536
  function t(n) {
@@ -19568,7 +19570,7 @@ var $o;
19568
19570
  o && (e.delete(n), o.removeFromParent());
19569
19571
  }
19570
19572
  s.removePreview = i;
19571
- })($o || ($o = {}));
19573
+ })(Wo || (Wo = {}));
19572
19574
  const Gr = [], jh = [];
19573
19575
  var y_;
19574
19576
  ((s) => {
@@ -20054,7 +20056,7 @@ var fd;
20054
20056
  return new Promise(async (o, r) => {
20055
20057
  const a = new Et(n.guid), l = i.toString();
20056
20058
  li && F.DrawWireSphere(n.point, 0.1, 16711680, 3);
20057
- const c = $o.addPreview({
20059
+ const c = Wo.addPreview({
20058
20060
  guid: n.guid,
20059
20061
  parent: n.parent,
20060
20062
  position: n?.point,
@@ -20064,9 +20066,9 @@ var fd;
20064
20066
  }).catch(console.warn);
20065
20067
  if (h) {
20066
20068
  const d = await fetch(l).then((p) => p.arrayBuffer()), f = wa.hashMD5(d);
20067
- li ? setTimeout(() => $o.removePreview(n.guid), 3e3) : $o.removePreview(n.guid), o({ model: h, contentMD5: f });
20069
+ li ? setTimeout(() => Wo.removePreview(n.guid), 3e3) : Wo.removePreview(n.guid), o({ model: h, contentMD5: f });
20068
20070
  } else
20069
- li ? setTimeout(() => $o.removePreview(n.guid), 3e3) : $o.removePreview(n.guid), console.warn("Unsupported file type: " + i.toString());
20071
+ li ? setTimeout(() => Wo.removePreview(n.guid), 3e3) : Wo.removePreview(n.guid), console.warn("Unsupported file type: " + i.toString());
20070
20072
  });
20071
20073
  }
20072
20074
  s.loadFileFromURL = t;
@@ -20948,13 +20950,13 @@ const uM = w("debugextensions");
20948
20950
  let pd;
20949
20951
  const fM = import("./three-examples-BIuXQPSf.js").then((s) => s.GLTFLoaderAnimationPointer).then(async (s) => (pd = s.GLTFAnimationPointerExtension, pd)).catch((s) => {
20950
20952
  console.warn("Failed to import GLTFLoaderAnimationPointer. Please use @needle-tools/three for full KHR_animation support", s);
20951
- }), nr = new Array();
20953
+ }), sr = new Array();
20952
20954
  function tL(s) {
20953
- nr.includes(s) || nr.push(s);
20955
+ sr.includes(s) || sr.push(s);
20954
20956
  }
20955
20957
  function iL(s) {
20956
- const e = nr.indexOf(s);
20957
- e >= 0 && nr.splice(e, 1);
20958
+ const e = sr.indexOf(s);
20959
+ e >= 0 && sr.splice(e, 1);
20958
20960
  }
20959
20961
  function mv(s) {
20960
20962
  if (s instanceof Ps) {
@@ -20980,15 +20982,15 @@ async function jp(s, e, t) {
20980
20982
  name: "KHR_animation_pointer_NOT_AVAILABLE"
20981
20983
  };
20982
20984
  });
20983
- for (const n of nr)
20985
+ for (const n of sr)
20984
20986
  n.onImport && n.onImport(s, t, e);
20985
20987
  }
20986
20988
  function gv(s, e) {
20987
- for (const t of nr)
20989
+ for (const t of sr)
20988
20990
  t.onExport && t.onExport(s, e);
20989
20991
  }
20990
20992
  function mM(s, e, t) {
20991
- for (const i of nr)
20993
+ for (const i of sr)
20992
20994
  i.onLoaded && i.onLoaded(s, e, t);
20993
20995
  }
20994
20996
  class yv {
@@ -21225,13 +21227,13 @@ class ra {
21225
21227
  /** The mesh information of the object - this tries to also calculate the LOD info */
21226
21228
  meshInformation;
21227
21229
  constructor(e, t) {
21228
- this.__instanceIndex = -1, this.object = e, this.renderer = t, e[f0] = t, this.meshInformation = Wo(e.geometry), ra.all.push(this);
21230
+ this.__instanceIndex = -1, this.object = e, this.renderer = t, e[f0] = t, this.meshInformation = Vo(e.geometry), ra.all.push(this);
21229
21231
  }
21230
21232
  /** Calculates the mesh information again
21231
21233
  * @returns true if the vertex count or index count has changed
21232
21234
  */
21233
21235
  updateMeshInformation() {
21234
- const e = Wo(this.object.geometry), t = this.meshInformation.vertexCount, i = this.meshInformation.indexCount;
21236
+ const e = Vo(this.object.geometry), t = this.meshInformation.vertexCount, i = this.meshInformation.indexCount;
21235
21237
  return Object.assign(this.meshInformation, e), t !== this.meshInformation.vertexCount || i !== this.meshInformation.indexCount;
21236
21238
  }
21237
21239
  /** Updates the matrix from the rendered object. Will also call updateWorldMatrix internally */
@@ -21375,7 +21377,7 @@ class yM {
21375
21377
  this._batchedMesh.setMatrixAt(t, e), this.markNeedsUpdate();
21376
21378
  }
21377
21379
  updateGeometry(e, t) {
21378
- return this.validateGeometry(e) ? (this.mustGrow() && this.grow(e), Kt && console.debug("[Instancing] UPDATE GEOMETRY at " + t, this._batchedMesh._geometryCount, e.name, Wo(e), e.attributes.position.count, e.index ? e.index.count : 0), this._batchedMesh.setGeometryAt(t, e), this._geometryIds.set(e, t), this.markNeedsUpdate(), !0) : !1;
21380
+ return this.validateGeometry(e) ? (this.mustGrow() && this.grow(e), Kt && console.debug("[Instancing] UPDATE GEOMETRY at " + t, this._batchedMesh._geometryCount, e.name, Vo(e), e.attributes.position.count, e.index ? e.index.count : 0), this._batchedMesh.setGeometryAt(t, e), this._geometryIds.set(e, t), this.markNeedsUpdate(), !0) : !1;
21379
21381
  }
21380
21382
  onBeforeRender = () => {
21381
21383
  this._batchedMesh.layers.enableAll(), this._needUpdateBounds && this._batchedMesh[xl] === !0 && (Kt === "verbose" && console.log("Update instancing bounds", this.name, this._batchedMesh.matrixWorldNeedsUpdate), this.updateBounds());
@@ -21399,13 +21401,13 @@ class yM {
21399
21401
  mustGrow(e) {
21400
21402
  if (this.count >= this._maxInstanceCount) return !0;
21401
21403
  if (!e || !e.attributes) return !1;
21402
- const t = Wo(e), i = t.vertexCount, n = t.indexCount;
21404
+ const t = Vo(e), i = t.vertexCount, n = t.indexCount;
21403
21405
  return this._currentVertexCount + i > this._maxVertexCount || this._currentIndexCount + n > this._maxIndexCount;
21404
21406
  }
21405
21407
  grow(e) {
21406
21408
  const i = Math.ceil(this._maxInstanceCount * 2), n = this.tryEstimateVertexCountSize(i, [e]), o = Math.max(this._maxVertexCount, n.vertexCount), r = Math.max(this._maxIndexCount, n.indexCount, Math.ceil(this._maxVertexCount * 2));
21407
21409
  if (Kt) {
21408
- const c = Wo(e);
21410
+ const c = Vo(e);
21409
21411
  console.warn(`[Instancing] Growing Buffer
21410
21412
  Mesh: "${this.name}${e.name?.length ? "/" + e.name : ""}"
21411
21413
  ${c.vertexCount} vertices, ${c.indexCount} indices
@@ -21434,7 +21436,7 @@ Max index count ${this._maxIndexCount} -> ${r}`);
21434
21436
  const f = n.get(d.object.geometry);
21435
21437
  f.count += 1;
21436
21438
  } else {
21437
- const p = { count: 1, ...Wo(d.object.geometry) };
21439
+ const p = { count: 1, ...Vo(d.object.geometry) };
21438
21440
  n.set(d.object.geometry, p);
21439
21441
  }
21440
21442
  let o = 0, r = 0;
@@ -21443,7 +21445,7 @@ Max index count ${this._maxIndexCount} -> ${r}`);
21443
21445
  let l = Math.ceil(o / Math.max(1, this._currentInstanceCount)) * e, h = Math.ceil(r / Math.max(1, this._currentInstanceCount)) * e * 2;
21444
21446
  if (t)
21445
21447
  for (const d of t) {
21446
- const f = Wo(d);
21448
+ const f = Vo(d);
21447
21449
  f != null && (l += f.vertexCount * i, h += f.indexCount * i);
21448
21450
  }
21449
21451
  return { vertexCount: l, indexCount: h };
@@ -21474,7 +21476,7 @@ ${this._currentInstanceCount} instances
21474
21476
  Index: ${e.__instanceIndex}`), this._batchedMesh.deleteInstance(e.__instanceIndex);
21475
21477
  }
21476
21478
  }
21477
- function Wo(s) {
21479
+ function Vo(s) {
21478
21480
  if (!s)
21479
21481
  return L() && console.error("Cannot get mesh information from null geometry"), { vertexCount: 0, indexCount: 0 };
21480
21482
  let e = s.attributes?.position?.count || 0, t = s.index ? s.index.count : 0;
@@ -22926,7 +22928,7 @@ let jM = class {
22926
22928
  const p = i.document.buildHeader(i) + `
22927
22929
  ` + i.output;
22928
22930
  this.debug && console.log(p), n[o] = xb(p), i.output = "", le.report("export-usdz", { message: "Exporting textures", autoStep: 10 }), le.start("export-usdz-textures", { parentScope: "export-usdz", logTimings: !1 });
22929
- const g = new hr({
22931
+ const g = new dr({
22930
22932
  antialias: !1,
22931
22933
  alpha: !0,
22932
22934
  premultipliedAlpha: !1,
@@ -23131,7 +23133,7 @@ async function FM(s, e = 1 / 0, t = null, i = void 0) {
23131
23133
  const n = Ar.uniforms;
23132
23134
  n.blitTexture.value = s, n.flipY.value = !1, n.scale.value = new de(1, 1, 1, 1), i !== void 0 && n.scale.value.copy(i), Ar.defines.IS_SRGB = s.colorSpace == Cs, Ar.needsUpdate = !0, uh || (uh = new H(Of, Ar), uh.frustumCulled = !1);
23133
23135
  const o = new pe(), r = new bi();
23134
- r.add(uh), t || (t = dh = new hr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
23136
+ r.add(uh), t || (t = dh = new dr({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
23135
23137
  const a = Math.min(s.image.width, e), l = Math.min(s.image.height, e);
23136
23138
  Ft && (Ft.width !== a || Ft.height !== l) && (Ft.dispose(), Ft = null), Ft || (Ft = new Bn(a, l, { format: Ad, type: $x, minFilter: Gh, magFilter: Gh })), t.setRenderTarget(Ft), t.setSize(a, l), t.clear(), t.render(r, o), dh && (dh.dispose(), dh = null);
23137
23139
  const c = new Uint8ClampedArray(Ft.width * Ft.height * 4);
@@ -23669,7 +23671,7 @@ function zp(s, e) {
23669
23671
  }
23670
23672
  return t;
23671
23673
  }
23672
- class Jo {
23674
+ class er {
23673
23675
  static global_id = 0;
23674
23676
  id;
23675
23677
  targetId;
@@ -23677,7 +23679,7 @@ class Jo {
23677
23679
  type;
23678
23680
  distance;
23679
23681
  constructor(e, t) {
23680
- e && (this.targetId = e), t ? this.id = t : this.id = "Trigger_" + Jo.global_id++;
23682
+ e && (this.targetId = e), t ? this.id = t : this.id = "Trigger_" + er.global_id++;
23681
23683
  }
23682
23684
  writeTo(e, t) {
23683
23685
  t.beginBlock(`def Preliminary_Trigger "${this.id}"`), this.targetId && (typeof this.targetId != "string" && (this.targetId = zp(this.targetId, e)), t.appendLine("rel affectedObjects = " + this.targetId)), this.tokenId && t.appendLine(`token info:id = "${this.tokenId}"`), this.type && t.appendLine(`token type = "${this.type}"`), typeof this.distance == "number" && t.appendLine(`double distance = ${this.distance}`), t.closeBlock();
@@ -23693,14 +23695,14 @@ class Gt {
23693
23695
  static __sceneStartTrigger;
23694
23696
  static sceneStartTrigger() {
23695
23697
  if (this.__sceneStartTrigger !== void 0) return this.__sceneStartTrigger;
23696
- const e = new Jo(void 0, "SceneStart");
23698
+ const e = new er(void 0, "SceneStart");
23697
23699
  return e.tokenId = "SceneTransition", e.type = "enter", this.__sceneStartTrigger = e, e;
23698
23700
  }
23699
23701
  /** Trigger that fires when an object has been tapped/clicked.
23700
23702
  * @param targetObject The object or list of objects that can be interacted with.
23701
23703
  * @param inputMode Input Mode (direct and/or indirect). Only available for USDObject targets. Only supported on Vision OS at the moment. */
23702
23704
  static tapTrigger(e, t = { direct: !0, indirect: !0 }) {
23703
- const i = new Jo(e);
23705
+ const i = new er(e);
23704
23706
  if (Array.isArray(e) && e.length > 1)
23705
23707
  for (const n of e)
23706
23708
  n instanceof st && E_(n, t);
@@ -23712,7 +23714,7 @@ class Gt {
23712
23714
  return e?.tokenId === "TapGesture";
23713
23715
  }
23714
23716
  static proximityToCameraTrigger(e, t) {
23715
- const i = new Jo(e);
23717
+ const i = new er(e);
23716
23718
  return i.tokenId = "ProximityToCamera", i.distance = t, i;
23717
23719
  }
23718
23720
  }
@@ -23942,7 +23944,7 @@ class YM {
23942
23944
  }
23943
23945
  }
23944
23946
  const Pn = w("debugusdzanimation"), Up = w("debugusdzanimationserialization");
23945
- class Ho {
23947
+ class Go {
23946
23948
  _start;
23947
23949
  get start() {
23948
23950
  return this._start === void 0 && (this._start = this.ext.getStartTimeByClip(this.clip)), this._start;
@@ -23985,11 +23987,11 @@ class Ho {
23985
23987
  if (n)
23986
23988
  if (!e) e = n;
23987
23989
  else {
23988
- if (n === e || Ho.isDescendantOf(e, n)) continue;
23989
- if (!Ho.isDescendantOf(n, e)) {
23990
- for (; !Ho.isDescendantOf(n, e) && n.parent; )
23990
+ if (n === e || Go.isDescendantOf(e, n)) continue;
23991
+ if (!Go.isDescendantOf(n, e)) {
23992
+ for (; !Go.isDescendantOf(n, e) && n.parent; )
23991
23993
  n = n.parent;
23992
- Ho.isDescendantOf(n, e) || console.error("USDZExporter: Animation clip targets multiple roots that are not parent/child. Please report a bug", this.root, this.clip, e, n);
23994
+ Go.isDescendantOf(n, e) || console.error("USDZExporter: Animation clip targets multiple roots that are not parent/child. Please report a bug", this.root, this.clip, e, n);
23993
23995
  }
23994
23996
  e = n;
23995
23997
  }
@@ -24223,7 +24225,7 @@ class ag {
24223
24225
  let d = h[o];
24224
24226
  d || (Pn && console.log("Adding padding clip for ", c, t, "at slot", o), d = new ze(e, c, t), h[o] = d);
24225
24227
  }
24226
- const l = new Ho(this, e, t);
24228
+ const l = new Go(this, e, t);
24227
24229
  if (this.rootAndClipToRegisteredAnimationMap.set(i, l), Pn && console.log({ root: e, clip: t, info: l }), t) {
24228
24230
  const c = this.rootToRegisteredClip.get(e);
24229
24231
  if (c ? c.push(t) : this.rootToRegisteredClip.set(e, [t]), !this.clipToStartTime.get(t)) {
@@ -24344,17 +24346,17 @@ class KM {
24344
24346
  let Vc;
24345
24347
  Ri ? console.assert(Ri.length === Se, "We should have the same number of TransformData entries for each bone", Ri, U) : Vc = new ze(null, Je, null);
24346
24348
  for (let js = 0; js < Se; js++) {
24347
- const Uu = Ri ? Ri[js] : Vc, Pr = U[js];
24348
- for (const { time: Ya, translation: Ka } of Uu.getValues(Pr.pos, !0, !1, !1)) {
24349
- const Ji = (Ya + Pr.timeOffset) * 60;
24349
+ const Uu = Ri ? Ri[js] : Vc, Or = U[js];
24350
+ for (const { time: Ya, translation: Ka } of Uu.getValues(Or.pos, !0, !1, !1)) {
24351
+ const Ji = (Ya + Or.timeOffset) * 60;
24350
24352
  ne.has(Ji) || ne.set(Ji, new Array()), ne.get(Ji).push(Ka.clone());
24351
24353
  }
24352
- for (const { time: Ya, rotation: Ka } of Uu.getValues(Pr.rot, !1, !0, !1)) {
24353
- const Ji = (Ya + Pr.timeOffset) * 60;
24354
+ for (const { time: Ya, rotation: Ka } of Uu.getValues(Or.rot, !1, !0, !1)) {
24355
+ const Ji = (Ya + Or.timeOffset) * 60;
24354
24356
  re.has(Ji) || re.set(Ji, new Array()), re.get(Ji).push(Ka.clone());
24355
24357
  }
24356
- for (const { time: Ya, scale: Ka } of Uu.getValues(Pr.scale, !1, !1, !0)) {
24357
- const Ji = (Ya + Pr.timeOffset) * 60;
24358
+ for (const { time: Ya, scale: Ka } of Uu.getValues(Or.scale, !1, !1, !0)) {
24359
+ const Ji = (Ya + Or.timeOffset) * 60;
24358
24360
  ue.has(Ji) || ue.set(Ji, new Array()), ue.get(Ji).push(Ka.clone());
24359
24361
  }
24360
24362
  }
@@ -24880,7 +24882,7 @@ Be([
24880
24882
  Be([
24881
24883
  u()
24882
24884
  ], Cc.prototype, "motionType");
24883
- class sr extends T {
24885
+ class or extends T {
24884
24886
  target;
24885
24887
  clip = "";
24886
24888
  toggleOnClick = !1;
@@ -24938,13 +24940,13 @@ class sr extends T {
24938
24940
  }
24939
24941
  Be([
24940
24942
  u(hn)
24941
- ], sr.prototype, "target");
24943
+ ], or.prototype, "target");
24942
24944
  Be([
24943
24945
  u(URL)
24944
- ], sr.prototype, "clip");
24946
+ ], or.prototype, "clip");
24945
24947
  Be([
24946
24948
  u()
24947
- ], sr.prototype, "toggleOnClick");
24949
+ ], or.prototype, "toggleOnClick");
24948
24950
  const lg = class bn extends T {
24949
24951
  animator;
24950
24952
  stateName;
@@ -25190,10 +25192,10 @@ Be([
25190
25192
  ], hu.prototype, "duration");
25191
25193
  class Dv extends cu {
25192
25194
  }
25193
- class er {
25195
+ class tr {
25194
25196
  static _instance;
25195
25197
  static create() {
25196
- return new er();
25198
+ return new tr();
25197
25199
  }
25198
25200
  static getOrCreate() {
25199
25201
  return this._instance || (this._instance = this.create()), this._instance;
@@ -25313,12 +25315,12 @@ var eR = Object.defineProperty, tR = Object.getOwnPropertyDescriptor, mt = (s, e
25313
25315
  return i && n && eR(e, t, n), n;
25314
25316
  };
25315
25317
  const yd = w("debugspriterenderer"), iR = w("wireframe");
25316
- class or {
25318
+ class rr {
25317
25319
  static cache = {};
25318
25320
  static getOrCreateGeometry(e) {
25319
25321
  if (e.__cached_geometry) return e.__cached_geometry;
25320
- if (e.guid && or.cache[e.guid])
25321
- return yd && console.log("Take cached geometry for sprite", e.guid), or.cache[e.guid];
25322
+ if (e.guid && rr.cache[e.guid])
25323
+ return yd && console.log("Take cached geometry for sprite", e.guid), rr.cache[e.guid];
25322
25324
  const t = new In();
25323
25325
  e.__cached_geometry = t;
25324
25326
  const i = new Float32Array(e.triangles.length * 3), n = new Float32Array(e.triangles.length * 2);
@@ -25353,7 +25355,7 @@ let bo = class {
25353
25355
  * The mesh that represents the sprite
25354
25356
  */
25355
25357
  get mesh() {
25356
- return this._mesh || (this._mesh = new H(or.getOrCreateGeometry(this), this.material)), this._mesh;
25358
+ return this._mesh || (this._mesh = new H(rr.getOrCreateGeometry(this), this.material)), this._mesh;
25357
25359
  }
25358
25360
  _mesh;
25359
25361
  /**
@@ -25372,7 +25374,7 @@ let bo = class {
25372
25374
  * The geometry of the sprite that can be used to create a mesh
25373
25375
  */
25374
25376
  getGeometry() {
25375
- return or.getOrCreateGeometry(this);
25377
+ return rr.getOrCreateGeometry(this);
25376
25378
  }
25377
25379
  };
25378
25380
  mt([
@@ -25538,14 +25540,14 @@ class Ci extends T {
25538
25540
  if (!i)
25539
25541
  return yd && console.warn("Sprite not found", this.spriteIndex, t.spriteSheet.sprites), !1;
25540
25542
  if (this._currentSprite)
25541
- this._currentSprite.geometry = or.getOrCreateGeometry(i), this._currentSprite.material.map = i.texture;
25543
+ this._currentSprite.geometry = rr.getOrCreateGeometry(i), this._currentSprite.material.map = i.texture;
25542
25544
  else {
25543
25545
  const n = new we({ color: 16777215, side: vi });
25544
25546
  if (iR && (n.wireframe = !0), this.color && (n.color || (n.color = new se()), n.color.copy(this.color), n.opacity = this.color.alpha), n.transparent = !0, n.toneMapped = this.toneMapped, n.depthWrite = !1, i.texture && !n.wireframe) {
25545
25547
  let o = i.texture;
25546
25548
  o[Tf] !== void 0 && o[Tf] !== this && this.spriteFrames > 1 && (o = i.texture = o.clone()), o[Tf] = this, n.map = o;
25547
25549
  }
25548
- this.sharedMaterial = n, this._currentSprite = new H(or.getOrCreateGeometry(i), n), this._currentSprite.renderOrder = Math.round(this.renderOrder), We.assignTextureLOD(n, 0);
25550
+ this.sharedMaterial = n, this._currentSprite = new H(rr.getOrCreateGeometry(i), n), this._currentSprite.renderOrder = Math.round(this.renderOrder), We.assignTextureLOD(n, 0);
25549
25551
  }
25550
25552
  return this._currentSprite.parent !== this.gameObject && (this.drawMode === 2 && this._currentSprite.scale.set(this.size.x, this.size.y, 1), this.gameObject && this.gameObject.add(this._currentSprite)), this._currentSprite && this._currentSprite.layers.set(this.layer), this.sharedMaterial && (this.sharedMaterial.alphaTest = this.cutoutThreshold, this.sharedMaterial.transparent = this.transparent), this._currentSprite.castShadow = this.castShadows, t?.update(this.sharedMaterial), !0;
25551
25553
  }
@@ -25844,7 +25846,7 @@ class _d {
25844
25846
  // readonly rotation: Quaternion = new Quaternion();
25845
25847
  // readonly scale: Vector3 = new Vector3(1, 1, 1);
25846
25848
  constructor(e) {
25847
- this.context = e, this.offset = new te(), this.plane = new tr(), this.plane.setFromNormalAndCoplanarPoint(_d.up, _d.zero);
25849
+ this.context = e, this.offset = new te(), this.plane = new ir(), this.plane.setFromNormalAndCoplanarPoint(_d.up, _d.zero);
25848
25850
  }
25849
25851
  _enabled = !1;
25850
25852
  reset() {
@@ -26377,7 +26379,7 @@ var fR = Object.defineProperty, dg = (s, e, t, i) => {
26377
26379
  return n && fR(e, t, n), n;
26378
26380
  };
26379
26381
  const rl = w("debugwebxr"), L_ = new $().setFromAxisAngle(new b(0, 1, 0), Math.PI);
26380
- class rr extends T {
26382
+ class ar extends T {
26381
26383
  head;
26382
26384
  leftHand;
26383
26385
  rightHand;
@@ -26491,13 +26493,13 @@ class rr extends T {
26491
26493
  }
26492
26494
  dg([
26493
26495
  u(ie)
26494
- ], rr.prototype, "head");
26496
+ ], ar.prototype, "head");
26495
26497
  dg([
26496
26498
  u(ie)
26497
- ], rr.prototype, "leftHand");
26499
+ ], ar.prototype, "leftHand");
26498
26500
  dg([
26499
26501
  u(ie)
26500
- ], rr.prototype, "rightHand");
26502
+ ], ar.prototype, "rightHand");
26501
26503
  var pR = Object.defineProperty, fu = (s, e, t, i) => {
26502
26504
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
26503
26505
  (r = s[o]) && (n = r(e, t, n) || n);
@@ -26727,7 +26729,7 @@ class Xi extends T {
26727
26729
  }
26728
26730
  let o = n?.point;
26729
26731
  if (!o && !this.useTeleportTarget) {
26730
- this._plane || (this._plane = new tr(new b(0, 1, 0), 0));
26732
+ this._plane || (this._plane = new ir(new b(0, 1, 0), 0));
26731
26733
  const r = t.worldPosition;
26732
26734
  this._plane.setFromNormalAndCoplanarPoint(new b(0, 1, 0), r);
26733
26735
  const a = e.ray;
@@ -27084,8 +27086,8 @@ const al = w("debugwebxr"), _R = w("debugusdz"), rt = class $r extends T {
27084
27086
  */
27085
27087
  onAvatarSpawned = (e) => {
27086
27088
  al && console.log("WebXR.onAvatarSpawned", e);
27087
- let t = x.getComponentInChildren(e, rr);
27088
- t ??= x.addComponent(e, rr);
27089
+ let t = x.getComponentInChildren(e, ar);
27090
+ t ??= x.addComponent(e, ar);
27089
27091
  };
27090
27092
  // HTML UI
27091
27093
  /** @deprecated use {@link getButtonsFactory} or directly access {@link WebXRButtonFactory.getOrCreate} */
@@ -27098,7 +27100,7 @@ const al = w("debugwebxr"), _R = w("debugusdz"), rt = class $r extends T {
27098
27100
  * @returns The WebXRButtonFactory instance
27099
27101
  */
27100
27102
  getButtonsFactory() {
27101
- return this._buttonFactory || (this._buttonFactory = er.getOrCreate()), this._buttonFactory;
27103
+ return this._buttonFactory || (this._buttonFactory = tr.getOrCreate()), this._buttonFactory;
27102
27104
  }
27103
27105
  /**
27104
27106
  * Reference to the WebXR button factory used by this component.
@@ -27298,7 +27300,7 @@ ${f}] -- ${f} --> ${g.uuid}(("${g.displayName || g.name || g.uuid}"))
27298
27300
  if (Array.isArray(d))
27299
27301
  for (const p of d)
27300
27302
  h(p, f);
27301
- else if (d instanceof Jo) {
27303
+ else if (d instanceof er) {
27302
27304
  let p = d.tokenId;
27303
27305
  d.type !== void 0 && (p += ":" + d.type), typeof d.targetId == "object" && (t.add(d.targetId), r && (l += `${d.targetId.uuid}(("${d.targetId.displayName}")) --> ${d.id}[${d.id}
27304
27306
  ${p}]
@@ -27410,7 +27412,7 @@ class Nv {
27410
27412
  } else if (a instanceof uo) {
27411
27413
  const f = a;
27412
27414
  l.appendLine('token shapeType = "Capsule"'), l.appendLine(`float radius = ${f.radius}`), l.appendLine(`float height = ${f.height}`);
27413
- } else if (a instanceof yr && a.sharedMesh?.geometry) {
27415
+ } else if (a instanceof _r && a.sharedMesh?.geometry) {
27414
27416
  const f = a.sharedMesh.geometry;
27415
27417
  f.boundingBox || f.computeBoundingBox();
27416
27418
  const p = a.sharedMesh.geometry.boundingBox;
@@ -27880,7 +27882,7 @@ var kR = Object.defineProperty, MR = Object.getOwnPropertyDescriptor, Is = (s, e
27880
27882
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
27881
27883
  return i && n && kR(e, t, n), n;
27882
27884
  };
27883
- const Lo = w("debugtext");
27885
+ const Do = w("debugtext");
27884
27886
  var it = /* @__PURE__ */ ((s) => (s[s.UpperLeft = 0] = "UpperLeft", s[s.UpperCenter = 1] = "UpperCenter", s[s.UpperRight = 2] = "UpperRight", s[s.MiddleLeft = 3] = "MiddleLeft", s[s.MiddleCenter = 4] = "MiddleCenter", s[s.MiddleRight = 5] = "MiddleRight", s[s.LowerLeft = 6] = "LowerLeft", s[s.LowerCenter = 7] = "LowerCenter", s[s.LowerRight = 8] = "LowerRight", s))(it || {}), Hv = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Bold = 1] = "Bold", s[s.Italic = 2] = "Italic", s[s.BoldAndItalic = 3] = "BoldAndItalic", s))(Hv || {});
27885
27887
  class Xt extends mu {
27886
27888
  alignment = 0;
@@ -27930,9 +27932,9 @@ class Xt extends mu {
27930
27932
  e && (e._needsUpdate = !0);
27931
27933
  }
27932
27934
  onCreate(e) {
27933
- Lo && console.log(this), this.horizontalOverflow == 1 && (e.whiteSpace = "pre"), this.verticalOverflow == 0 && (this.context.renderer.localClippingEnabled = !0, e.overflow = "hidden"), this.horizontalOverflow == 1 && this.verticalOverflow == 0, e.lineHeight = this.lineSpacing, delete e.backgroundOpacity, delete e.backgroundColor, Lo && (e.backgroundColor = 16750848, e.backgroundOpacity = 0.5);
27935
+ Do && console.log(this), this.horizontalOverflow == 1 && (e.whiteSpace = "pre"), this.verticalOverflow == 0 && (this.context.renderer.localClippingEnabled = !0, e.overflow = "hidden"), this.horizontalOverflow == 1 && this.verticalOverflow == 0, e.lineHeight = this.lineSpacing, delete e.backgroundOpacity, delete e.backgroundColor, Do && (e.backgroundColor = 16750848, e.backgroundOpacity = 0.5);
27934
27936
  const t = this.rectTransform;
27935
- e = { ...e, ...this.getTextOpts() }, this.getAlignment(e), Lo && (e.backgroundColor = Math.random() * 16777215, e.backgroundOpacity = 0.1), this.uiObject = t.createNewText(e), this.feedText(this.text, this.supportRichText);
27937
+ e = { ...e, ...this.getTextOpts() }, this.getAlignment(e), Do && (e.backgroundColor = Math.random() * 16777215, e.backgroundOpacity = 0.1), this.uiObject = t.createNewText(e), this.feedText(this.text, this.supportRichText);
27936
27938
  }
27937
27939
  onAfterAddedToScene() {
27938
27940
  super.onAfterAddedToScene(), this.handleTextRenderOnTop();
@@ -27996,7 +27998,7 @@ class Xt extends mu {
27996
27998
  return e;
27997
27999
  }
27998
28000
  feedText(e, t) {
27999
- if (Lo && console.log("feedText", this.uiObject, e, t), !!this.uiObject)
28001
+ if (Do && console.log("feedText", this.uiObject, e, t), !!this.uiObject)
28000
28002
  if (this._textMeshUi || (this._textMeshUi = []), this.uiObject.children.length = 0, !t || e.length === 0)
28001
28003
  this.uiObject.textContent = e;
28002
28004
  else {
@@ -28115,7 +28117,7 @@ class Xt extends mu {
28115
28117
  setFont(e, t) {
28116
28118
  if (!this.font) return;
28117
28119
  const i = this.font, n = this.getFamilyNameWithCorrectSuffix(i, t);
28118
- Lo && console.log("Selected font family:" + n);
28120
+ Do && console.log("Selected font family:" + n);
28119
28121
  let o = ey.getFontFamily(n);
28120
28122
  switch (o || (o = ey.addFontFamily(n)), e.fontFamily = o, t) {
28121
28123
  default:
@@ -28146,12 +28148,12 @@ class Xt extends mu {
28146
28148
  if (i < 0) return e;
28147
28149
  const n = e.substring(i + 1)?.toLowerCase();
28148
28150
  if (RR.includes(n))
28149
- return Lo && console.warn("Unsupported font style: " + n), e;
28151
+ return Do && console.warn("Unsupported font style: " + n), e;
28150
28152
  const o = e.lastIndexOf("/");
28151
28153
  let r = e;
28152
28154
  o >= 0 && (r = r.substring(o + 1));
28153
28155
  const a = r[0] === r[0].toUpperCase(), l = e.substring(0, i);
28154
- switch (Lo && console.log("Select font: ", e, Hv[t], r, a, l), t) {
28156
+ switch (Do && console.log("Select font: ", e, Hv[t], r, a, l), t) {
28155
28157
  case 0:
28156
28158
  return a ? l + "-Regular" : l + "-regular";
28157
28159
  case 1:
@@ -28750,7 +28752,7 @@ var DR = Object.defineProperty, jR = Object.getOwnPropertyDescriptor, gg = (s, e
28750
28752
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
28751
28753
  return i && n && DR(e, t, n), n;
28752
28754
  };
28753
- class ar extends T {
28755
+ class lr extends T {
28754
28756
  get alpha() {
28755
28757
  return this._alpha;
28756
28758
  }
@@ -28781,13 +28783,13 @@ class ar extends T {
28781
28783
  }
28782
28784
  gg([
28783
28785
  u()
28784
- ], ar.prototype, "alpha", 1);
28786
+ ], lr.prototype, "alpha", 1);
28785
28787
  gg([
28786
28788
  u()
28787
- ], ar.prototype, "interactable", 2);
28789
+ ], lr.prototype, "interactable", 2);
28788
28790
  gg([
28789
28791
  u()
28790
- ], ar.prototype, "blocksRaycasts", 2);
28792
+ ], lr.prototype, "blocksRaycasts", 2);
28791
28793
  class Zv {
28792
28794
  get extensionName() {
28793
28795
  return "tmui";
@@ -28797,7 +28799,7 @@ class Zv {
28797
28799
  onExportObject(e, t, i) {
28798
28800
  const n = x.getComponent(e, hc);
28799
28801
  if (n && n.enabled && n.renderMode === Yv.WorldSpace) {
28800
- const o = new mg(), r = x.getComponent(e, Un), a = x.getComponent(e, ar), l = new Array();
28802
+ const o = new mg(), r = x.getComponent(e, Un), a = x.getComponent(e, lr), l = new Array();
28801
28803
  if (r) {
28802
28804
  if (!x.isActiveSelf(e)) {
28803
28805
  const d = x.isActiveSelf(e);
@@ -28836,7 +28838,7 @@ class Zv {
28836
28838
  _.setMatrix(g.matrix);
28837
28839
  const m = g.parent, v = !!m && typeof m.textContent == "string" && m.textContent.length > 0;
28838
28840
  let y = p.get(m) || 1;
28839
- const S = x.getComponent(g, ar);
28841
+ const S = x.getComponent(g, lr);
28840
28842
  if (S && (y *= S.alpha), g instanceof H && v) {
28841
28843
  const O = g[ui];
28842
28844
  O ? o.exportText(O.gameObject, _, i) : console.error("Error when exporting UI: shadow component owner not found. This is likely a bug.", g);
@@ -28923,7 +28925,7 @@ function BR(s, e) {
28923
28925
  return r;
28924
28926
  }
28925
28927
  function FR(s, e) {
28926
- const t = x.getComponentsInChildren(s, hn), i = x.getComponentsInChildren(s, sr), n = new Array(), o = new Array();
28928
+ const t = x.getComponentsInChildren(s, hn), i = x.getComponentsInChildren(s, or), n = new Array(), o = new Array();
28927
28929
  Tl && console.log({ audioSources: t, playAudioOnClicks: i });
28928
28930
  for (const r of i) {
28929
28931
  if (!r.target) continue;
@@ -28932,7 +28934,7 @@ function FR(s, e) {
28932
28934
  }
28933
28935
  for (const r of t) {
28934
28936
  if (!r || !r.clip || r.volume <= 0 || n.includes(r)) continue;
28935
- const a = new sr();
28937
+ const a = new or();
28936
28938
  a.target = r, a.name = "PlayAudioOnClick_implicitAtStart_", a.trigger = "start";
28937
28939
  const l = new M();
28938
28940
  x.addComponent(l, a), console.log("implicit PlayAudioOnStart", l, a), o.push(l), n.push(r), s.add(l);
@@ -29210,7 +29212,7 @@ const si = class Wp extends T {
29210
29212
  e.position.copy(this._rootPositionBeforeExport), e.quaternion.copy(this._rootRotationBeforeExport), e.scale.copy(this._rootScaleBeforeExport), e.updateMatrix(), e.updateMatrixWorld(!0), this._rootSessionRootWasAppliedTo = null;
29211
29213
  }
29212
29214
  createQuicklookButton() {
29213
- const t = er.getOrCreate().createQuicklookButton();
29215
+ const t = tr.getOrCreate().createQuicklookButton();
29214
29216
  return t.parentNode || this.context.menu.appendChild(t), t;
29215
29217
  }
29216
29218
  };
@@ -29926,7 +29928,7 @@ class Na extends T {
29926
29928
  this.offset.copy(this.positionOffset);
29927
29929
  const i = this.offset.length();
29928
29930
  if (this.referenceSpace && this.offset.transformDirection(this.referenceSpace.matrixWorld).multiplyScalar(i), e.add(this.offset), this.levelPosition && this.referenceSpace) {
29929
- const a = new tr(this.gameObject.up, 0), l = Z(this.referenceSpace);
29931
+ const a = new ir(this.gameObject.up, 0), l = Z(this.referenceSpace);
29930
29932
  a.setFromNormalAndCoplanarPoint(this.gameObject.up, l);
29931
29933
  const c = new b(0, 0, 0);
29932
29934
  a.projectPoint(e, c), e.copy(c);
@@ -31637,7 +31639,7 @@ class hT extends Pg {
31637
31639
  return this.system.isPlaying, 0;
31638
31640
  }
31639
31641
  }
31640
- class vr {
31642
+ class wr {
31641
31643
  system;
31642
31644
  get context() {
31643
31645
  return this.system.context;
@@ -31661,7 +31663,7 @@ class vr {
31661
31663
  reset() {
31662
31664
  }
31663
31665
  }
31664
- class dT extends vr {
31666
+ class dT extends wr {
31665
31667
  type = "NeedleTextureSheet";
31666
31668
  // initialize(_particle: Particle): void {
31667
31669
  // _particle[$startFrame] = this.system.textureSheetAnimation.getStartIndex();
@@ -31675,7 +31677,7 @@ class dT extends vr {
31675
31677
  }
31676
31678
  }
31677
31679
  const F_ = Symbol("particleRotation");
31678
- class uT extends vr {
31680
+ class uT extends wr {
31679
31681
  type = "NeedleRotation";
31680
31682
  initialize(e) {
31681
31683
  e[F_] = Math.random();
@@ -31690,7 +31692,7 @@ class uT extends vr {
31690
31692
  }
31691
31693
  }
31692
31694
  const z_ = Symbol("sizeLerpFactor"), fT = new b();
31693
- class pT extends vr {
31695
+ class pT extends wr {
31694
31696
  type = "NeedleSize";
31695
31697
  _minSize = 0;
31696
31698
  _maxSize = 1;
@@ -31711,7 +31713,7 @@ class pT extends vr {
31711
31713
  }
31712
31714
  }
31713
31715
  const Xr = Symbol("particleLife"), zf = Symbol("trailLifetime"), U_ = Symbol("trailStartLength"), Uf = Symbol("trailWidthRandom");
31714
- class mT extends vr {
31716
+ class mT extends wr {
31715
31717
  type = "NeedleTrail";
31716
31718
  initialize(e) {
31717
31719
  e instanceof Jg && (e[Xr] = e.life, this.system.trails.enabled && this.system.trails.dieWithParticles === !1 && (e[zf] = this.system.trails.lifetime.evaluate(Math.random(), Math.random()), e.life += e[zf]), e[U_] = e.length, e[Uf] = Math.random());
@@ -31736,7 +31738,7 @@ class mT extends vr {
31736
31738
  }
31737
31739
  }
31738
31740
  const wh = Symbol("startVelocity"), N_ = Symbol("gravityModifier"), Nf = Symbol("gravitySpeed"), xh = Symbol("velocity lerp factor"), Qp = new b();
31739
- class gT extends vr {
31741
+ class gT extends wr {
31740
31742
  type = "NeedleVelocity";
31741
31743
  _gravityDirection = new b();
31742
31744
  initialize(e) {
@@ -31771,14 +31773,14 @@ class gT extends vr {
31771
31773
  }
31772
31774
  }
31773
31775
  }
31774
- const $_ = Symbol("colorLerpFactor"), W_ = new oe(1, 1, 1, 1), Do = new oe(1, 1, 1, 1);
31775
- class yT extends vr {
31776
+ const $_ = Symbol("colorLerpFactor"), W_ = new oe(1, 1, 1, 1), jo = new oe(1, 1, 1, 1);
31777
+ class yT extends wr {
31776
31778
  type = "NeedleColor";
31777
31779
  initialize(e) {
31778
31780
  }
31779
31781
  _init(e) {
31780
31782
  const t = this.system.renderer.particleMaterial;
31781
- Do.copy(this.system.main.startColor.evaluate(Math.random())), t?.color && (W_.copy(t.color), Do.multiply(W_)), Do.convertLinearToSRGB(), e.startColor.set(Do.r, Do.g, Do.b, Do.alpha), e.color.copy(e.startColor), e[$_] = Math.random();
31783
+ jo.copy(this.system.main.startColor.evaluate(Math.random())), t?.color && (W_.copy(t.color), jo.multiply(W_)), jo.convertLinearToSRGB(), e.startColor.set(jo.r, jo.g, jo.b, jo.alpha), e.color.copy(e.startColor), e[$_] = Math.random();
31782
31784
  }
31783
31785
  update(e, t) {
31784
31786
  if (e.age === 0 && this._init(e), this.system.colorOverLifetime.enabled) {
@@ -32052,7 +32054,7 @@ const jt = class Uh extends T {
32052
32054
  * ```
32053
32055
  */
32054
32056
  addBehaviour(e) {
32055
- return this._particleSystem ? (e instanceof vr && (e.system = this), Qs && console.debug("Add custom ParticleSystem Behaviour", e), this._particleSystem.addBehavior(e), !0) : !1;
32057
+ return this._particleSystem ? (e instanceof wr && (e.system = this), Qs && console.debug("Add custom ParticleSystem Behaviour", e), this._particleSystem.addBehavior(e), !0) : !1;
32056
32058
  }
32057
32059
  /** Remove a custom quarks behaviour from the particle system. **/
32058
32060
  removeBehaviour(e) {
@@ -32751,7 +32753,7 @@ var UT = Object.defineProperty, hw = (s, e, t, i) => {
32751
32753
  return n && UT(e, t, n), n;
32752
32754
  };
32753
32755
  const Vf = w("debugpost");
32754
- class lr extends ot {
32756
+ class cr extends ot {
32755
32757
  get typeName() {
32756
32758
  return "ToneMapping";
32757
32759
  }
@@ -32798,17 +32800,17 @@ class lr extends ot {
32798
32800
  }
32799
32801
  hw([
32800
32802
  u(j)
32801
- ], lr.prototype, "mode");
32803
+ ], cr.prototype, "mode");
32802
32804
  hw([
32803
32805
  u(j)
32804
- ], lr.prototype, "exposure");
32805
- gn("Tonemapping", lr);
32806
+ ], cr.prototype, "exposure");
32807
+ gn("Tonemapping", cr);
32806
32808
  var NT = Object.defineProperty, Pu = (s, e, t, i) => {
32807
32809
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
32808
32810
  (r = s[o]) && (n = r(e, t, n) || n);
32809
32811
  return n && NT(e, t, n), n;
32810
32812
  };
32811
- class wr extends ot {
32813
+ class xr extends ot {
32812
32814
  get typeName() {
32813
32815
  return "ColorAdjustments";
32814
32816
  }
@@ -32829,8 +32831,8 @@ class wr extends ot {
32829
32831
  }
32830
32832
  onCreateEffect() {
32831
32833
  const e = [];
32832
- let t = this.postprocessingContext?.components.find((o) => o instanceof lr);
32833
- t || (t = new lr(), this.postprocessingContext?.components.push(t)), this.postExposure.onValueChanged = (o) => {
32834
+ let t = this.postprocessingContext?.components.find((o) => o instanceof cr);
32835
+ t || (t = new cr(), this.postprocessingContext?.components.push(t)), this.postExposure.onValueChanged = (o) => {
32834
32836
  this.postExposure.overrideState && t ? t.exposure.value = o : console.warn("[PostProcessing] PostExposure is set to override but no ToneMappingEffect found in the postprocessing stack. Please add a ToneMappingEffect to your postprocessing stack to use PostExposure.");
32835
32837
  };
32836
32838
  const i = new R.POSTPROCESSING.MODULE.BrightnessContrastEffect();
@@ -32841,18 +32843,18 @@ class wr extends ot {
32841
32843
  }
32842
32844
  Pu([
32843
32845
  u(j)
32844
- ], wr.prototype, "postExposure");
32846
+ ], xr.prototype, "postExposure");
32845
32847
  Pu([
32846
32848
  u(j)
32847
- ], wr.prototype, "contrast");
32849
+ ], xr.prototype, "contrast");
32848
32850
  Pu([
32849
32851
  u(j)
32850
- ], wr.prototype, "hueShift");
32852
+ ], xr.prototype, "hueShift");
32851
32853
  Pu([
32852
32854
  u(j)
32853
- ], wr.prototype, "saturation");
32854
- gn("ColorAdjustments", wr);
32855
- var $T = Object.defineProperty, xr = (s, e, t, i) => {
32855
+ ], xr.prototype, "saturation");
32856
+ gn("ColorAdjustments", xr);
32857
+ var $T = Object.defineProperty, Sr = (s, e, t, i) => {
32856
32858
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
32857
32859
  (r = s[o]) && (n = r(e, t, n) || n);
32858
32860
  return n && $T(e, t, n), n;
@@ -32898,25 +32900,25 @@ class qn extends ot {
32898
32900
  unapply() {
32899
32901
  }
32900
32902
  }
32901
- xr([
32903
+ Sr([
32902
32904
  u()
32903
32905
  ], qn.prototype, "mode");
32904
- xr([
32906
+ Sr([
32905
32907
  u(j)
32906
32908
  ], qn.prototype, "focusDistance");
32907
- xr([
32909
+ Sr([
32908
32910
  u(j)
32909
32911
  ], qn.prototype, "focalLength");
32910
- xr([
32912
+ Sr([
32911
32913
  u(j)
32912
32914
  ], qn.prototype, "aperture");
32913
- xr([
32915
+ Sr([
32914
32916
  u(j)
32915
32917
  ], qn.prototype, "gaussianMaxRadius");
32916
- xr([
32918
+ Sr([
32917
32919
  u(j)
32918
32920
  ], qn.prototype, "resolutionScale");
32919
- xr([
32921
+ Sr([
32920
32922
  u(j)
32921
32923
  ], qn.prototype, "bokehScale");
32922
32924
  gn("DepthOfField", qn);
@@ -33021,7 +33023,7 @@ Lc([
33021
33023
  u(j)
33022
33024
  ], Po.prototype, "luminanceInfluence");
33023
33025
  gn("ScreenSpaceAmbientOcclusion", Po);
33024
- var qT = Object.defineProperty, Sr = (s, e, t, i) => {
33026
+ var qT = Object.defineProperty, Cr = (s, e, t, i) => {
33025
33027
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
33026
33028
  (r = s[o]) && (n = r(e, t, n) || n);
33027
33029
  return n && qT(e, t, n), n;
@@ -33072,27 +33074,27 @@ class Xn extends ot {
33072
33074
  }, n;
33073
33075
  }
33074
33076
  }
33075
- Sr([
33077
+ Cr([
33076
33078
  Lt(),
33077
33079
  u()
33078
33080
  ], Xn.prototype, "gammaCorrection");
33079
- Sr([
33081
+ Cr([
33080
33082
  u(j)
33081
33083
  ], Xn.prototype, "aoRadius");
33082
- Sr([
33084
+ Cr([
33083
33085
  u(j)
33084
33086
  ], Xn.prototype, "falloff");
33085
- Sr([
33087
+ Cr([
33086
33088
  u(j)
33087
33089
  ], Xn.prototype, "intensity");
33088
- Sr([
33090
+ Cr([
33089
33091
  u(j)
33090
33092
  ], Xn.prototype, "color");
33091
- Sr([
33093
+ Cr([
33092
33094
  Lt(),
33093
33095
  u()
33094
33096
  ], Xn.prototype, "screenspaceRadius");
33095
- Sr([
33097
+ Cr([
33096
33098
  Lt(),
33097
33099
  u()
33098
33100
  ], Xn.prototype, "quality");
@@ -33435,7 +33437,7 @@ class uw {
33435
33437
  minFilter: d.texture.minFilter ?? Gh,
33436
33438
  magFilter: d.texture.magFilter ?? Gh,
33437
33439
  generateMipmaps: d.texture.generateMipmaps
33438
- }), this._customInputBufferId++, this._customInputBuffer.texture.name = `CustomInputBuffer-${this._customInputBufferId}`, this._customInputBuffer.depthTexture && d.depthTexture && (this._customInputBuffer.depthTexture.format = d.depthTexture.format, this._customInputBuffer.depthTexture.type = d.depthTexture.type), this._customInputBuffer.samples > 0 && (this._customInputBuffer.ignoreDepthForMultisampleCopy = !1), es && console.warn(`[PostProcessing] Input buffer created with size ${this._customInputBuffer.width}x${this._customInputBuffer.height} and samples ${this._customInputBuffer.samples}`)), l.call(a, h, this._customInputBuffer, f, p, g), ir.blit(this._customInputBuffer.texture, d, {
33440
+ }), this._customInputBufferId++, this._customInputBuffer.texture.name = `CustomInputBuffer-${this._customInputBufferId}`, this._customInputBuffer.depthTexture && d.depthTexture && (this._customInputBuffer.depthTexture.format = d.depthTexture.format, this._customInputBuffer.depthTexture.type = d.depthTexture.type), this._customInputBuffer.samples > 0 && (this._customInputBuffer.ignoreDepthForMultisampleCopy = !1), es && console.warn(`[PostProcessing] Input buffer created with size ${this._customInputBuffer.width}x${this._customInputBuffer.height} and samples ${this._customInputBuffer.samples}`)), l.call(a, h, this._customInputBuffer, f, p, g), nr.blit(this._customInputBuffer.texture, d, {
33439
33441
  renderer: h,
33440
33442
  depthTexture: this._customInputBuffer.depthTexture,
33441
33443
  depthWrite: !0,
@@ -33533,7 +33535,7 @@ var eE = Object.defineProperty, fw = (s, e, t, i) => {
33533
33535
  (r = s[o]) && (n = r(e, t, n) || n);
33534
33536
  return n && eE(e, t, n), n;
33535
33537
  };
33536
- const jo = w("debugpost");
33538
+ const Bo = w("debugpost");
33537
33539
  class Dc extends T {
33538
33540
  get isPostProcessingManager() {
33539
33541
  return !0;
@@ -33581,7 +33583,7 @@ class Dc extends T {
33581
33583
  }
33582
33584
  /** @internal */
33583
33585
  awake() {
33584
- jo && (console.log("PostprocessingManager Awake", this), console.log("Press P to toggle post processing"), window.addEventListener("keydown", (e) => {
33586
+ Bo && (console.log("PostprocessingManager Awake", this), console.log("Press P to toggle post processing"), window.addEventListener("keydown", (e) => {
33585
33587
  e.key === "p" && (this.enabled = !this.enabled, je("Toggle PostProcessing " + this.name + ": Enabled=" + this.enabled), this.markDirty());
33586
33588
  })), this.sharedProfile?.__init(this);
33587
33589
  }
@@ -33601,7 +33603,7 @@ class Dc extends T {
33601
33603
  if (!this.context.isInXR && (this.context.mainCamera && this._isDirty && this.apply(), this.context.composer && this._postprocessing && this._postprocessing.composer === this.context.composer)) {
33602
33604
  if (this.context.renderer.getContext().isContextLost() && this.context.renderer.forceContextRestore(), this.context.composer.getRenderer() !== this.context.renderer && this.context.composer.setRenderer(this.context.renderer), this.context.composer.setMainScene(this.context.scene), this.multisampling === "auto")
33603
33605
  if (this._postprocessing && this._postprocessing.hasSmaaEffect)
33604
- this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (jo || L()) && console.log(`[PostProcessing] multisampling is disabled because it's set to 'auto' on your PostprocessingManager/Volume component that also has an SMAA effect.
33606
+ this._postprocessing.multisampling !== 0 && (this._postprocessing.multisampling = 0, (Bo || L()) && console.log(`[PostProcessing] multisampling is disabled because it's set to 'auto' on your PostprocessingManager/Volume component that also has an SMAA effect.
33605
33607
 
33606
33608
  If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`));
33607
33609
  else {
@@ -33611,11 +33613,11 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
33611
33613
  if (this._postprocessing.multisampling > 0 && this.context.time.smoothedFps <= 50) {
33612
33614
  this._multisampleAutoChangeTime = this.context.time.realtimeSinceStartup, this._multisampleAutoDecreaseTime = this.context.time.realtimeSinceStartup;
33613
33615
  let i = this._postprocessing.multisampling * 0.5;
33614
- i = Math.floor(i), i != this._postprocessing.multisampling && (this._postprocessing.multisampling = i), jo && console.debug(`[PostProcessing] Reduced multisampling from ${t} to ${this._postprocessing.multisampling}`);
33616
+ i = Math.floor(i), i != this._postprocessing.multisampling && (this._postprocessing.multisampling = i), Bo && console.debug(`[PostProcessing] Reduced multisampling from ${t} to ${this._postprocessing.multisampling}`);
33615
33617
  } else if (e > 1 && this.context.time.smoothedFps >= 59 && this._postprocessing.multisampling < this.context.renderer.capabilities.maxSamples && this.context.time.realtimeSinceStartup - this._multisampleAutoDecreaseTime > 10) {
33616
33618
  this._multisampleAutoChangeTime = this.context.time.realtimeSinceStartup;
33617
33619
  let i = this._postprocessing.multisampling <= 0 ? 1 : this._postprocessing.multisampling * 2;
33618
- i = Math.floor(i), i !== this._postprocessing.multisampling && (this._postprocessing.multisampling = i), jo && console.debug(`[PostProcessing] Increased multisampling from ${t} to ${this._postprocessing.multisampling}`);
33620
+ i = Math.floor(i), i !== this._postprocessing.multisampling && (this._postprocessing.multisampling = i), Bo && console.debug(`[PostProcessing] Increased multisampling from ${t} to ${this._postprocessing.multisampling}`);
33619
33621
  }
33620
33622
  }
33621
33623
  }
@@ -33641,7 +33643,7 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
33641
33643
  _rapidApplyCount = 0;
33642
33644
  _isDirty = !1;
33643
33645
  apply() {
33644
- if (jo && console.log(`Apply PostProcessing "${this.name || "unnamed"}"`), L() && (this._lastApplyTime !== void 0 && Date.now() - this._lastApplyTime < 100 && (this._rapidApplyCount++, this._rapidApplyCount === 5 && console.warn("Detected rapid post processing modifications - this might be a bug", this)), this._lastApplyTime = Date.now()), this._isDirty = !1, this._activeEffects.length = 0, this.sharedProfile?.components) {
33646
+ if (Bo && console.log(`Apply PostProcessing "${this.name || "unnamed"}"`), L() && (this._lastApplyTime !== void 0 && Date.now() - this._lastApplyTime < 100 && (this._rapidApplyCount++, this._rapidApplyCount === 5 && console.warn("Detected rapid post processing modifications - this might be a bug", this)), this._lastApplyTime = Date.now()), this._isDirty = !1, this._activeEffects.length = 0, this.sharedProfile?.components) {
33645
33647
  const e = this.sharedProfile.components;
33646
33648
  for (const t of e)
33647
33649
  t.active && t.enabled && !this._activeEffects.includes(t) && this._activeEffects.push(t);
@@ -33649,7 +33651,7 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
33649
33651
  for (const e of this._effects)
33650
33652
  e.active && e.enabled && !this._activeEffects.includes(e) && this._activeEffects.push(e);
33651
33653
  this._activeEffects.length > 0 ? (this._postprocessing || (this._postprocessing = new uw(this.context)), this._postprocessing.apply(this._activeEffects)?.then(() => {
33652
- this.activeAndEnabled && (this._applyPostQueue(), this._postprocessing ? (this.multisampling === "auto" ? this._postprocessing.multisampling = q.isMobileDevice() ? 2 : 4 : this._postprocessing.multisampling = Math.max(0, Math.min(this.multisampling, this.context.renderer.capabilities.maxSamples)), jo && console.debug(`[PostProcessing] Set multisampling to ${this._postprocessing.multisampling} (Is Mobile: ${q.isMobileDevice()})`)) : jo && console.warn("[PostProcessing] No composer found"));
33654
+ this.activeAndEnabled && (this._applyPostQueue(), this._postprocessing ? (this.multisampling === "auto" ? this._postprocessing.multisampling = q.isMobileDevice() ? 2 : 4 : this._postprocessing.multisampling = Math.max(0, Math.min(this.multisampling, this.context.renderer.capabilities.maxSamples)), Bo && console.debug(`[PostProcessing] Set multisampling to ${this._postprocessing.multisampling} (Is Mobile: ${q.isMobileDevice()})`)) : Bo && console.warn("[PostProcessing] No composer found"));
33653
33655
  })) : this._postprocessing?.unapply(!1);
33654
33656
  }
33655
33657
  _applyPostQueue() {
@@ -34882,7 +34884,7 @@ var uE = Object.defineProperty, fE = Object.getOwnPropertyDescriptor, jc = (s, e
34882
34884
  };
34883
34885
  const vt = w("debugscreensharing");
34884
34886
  var yw = /* @__PURE__ */ ((s) => (s[s.Screen = 0] = "Screen", s[s.Camera = 1] = "Camera", s[s.Canvas = 2] = "Canvas", s[s.Microphone = 3] = "Microphone", s))(yw || {});
34885
- class Cr extends T {
34887
+ class Pr extends T {
34886
34888
  allowStartOnClick = !0;
34887
34889
  /** @internal */
34888
34890
  onPointerEnter() {
@@ -35150,19 +35152,19 @@ class Cr extends T {
35150
35152
  }
35151
35153
  jc([
35152
35154
  u()
35153
- ], Cr.prototype, "allowStartOnClick", 2);
35155
+ ], Pr.prototype, "allowStartOnClick", 2);
35154
35156
  jc([
35155
35157
  u()
35156
- ], Cr.prototype, "autoConnect", 2);
35158
+ ], Pr.prototype, "autoConnect", 2);
35157
35159
  jc([
35158
35160
  u(pt)
35159
- ], Cr.prototype, "videoPlayer", 1);
35161
+ ], Pr.prototype, "videoPlayer", 1);
35160
35162
  jc([
35161
35163
  u()
35162
- ], Cr.prototype, "device", 2);
35164
+ ], Pr.prototype, "device", 2);
35163
35165
  jc([
35164
35166
  u()
35165
- ], Cr.prototype, "deviceName", 2);
35167
+ ], Pr.prototype, "deviceName", 2);
35166
35168
  var pE = Object.defineProperty, _w = (s, e, t, i) => {
35167
35169
  for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
35168
35170
  (r = s[o]) && (n = r(e, t, n) || n);
@@ -35320,7 +35322,7 @@ function yE(s, e) {
35320
35322
  }
35321
35323
  e.then((i) => Rm(i, !1)), t.push({ src: s, texture: e });
35322
35324
  }
35323
- const cr = class extends T {
35325
+ const hr = class extends T {
35324
35326
  url;
35325
35327
  allowDrop = !0;
35326
35328
  background = !0;
@@ -35461,22 +35463,22 @@ const cr = class extends T {
35461
35463
  };
35462
35464
  };
35463
35465
  Bc([
35464
- Bv(cr.prototype.urlChangedSyncField),
35466
+ Bv(hr.prototype.urlChangedSyncField),
35465
35467
  u(URL)
35466
- ], cr.prototype, "url");
35468
+ ], hr.prototype, "url");
35467
35469
  Bc([
35468
35470
  u()
35469
- ], cr.prototype, "allowDrop");
35471
+ ], hr.prototype, "allowDrop");
35470
35472
  Bc([
35471
35473
  u()
35472
- ], cr.prototype, "background");
35474
+ ], hr.prototype, "background");
35473
35475
  Bc([
35474
35476
  u()
35475
- ], cr.prototype, "environment");
35477
+ ], hr.prototype, "environment");
35476
35478
  Bc([
35477
35479
  u()
35478
- ], cr.prototype, "allowNetworking");
35479
- let Eg = cr;
35480
+ ], hr.prototype, "allowNetworking");
35481
+ let Eg = hr;
35480
35482
  function _E(s, e, t) {
35481
35483
  const i = e && !t;
35482
35484
  switch (s?.toLowerCase()) {
@@ -35810,7 +35812,7 @@ class Lg extends T {
35810
35812
  * Sets the target to follow the local player
35811
35813
  */
35812
35814
  followSelf() {
35813
- this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, Yo.Headset), this.target = this.context.players.getPlayerView(this.localId)), pi && console.log("Follow self", this.target);
35815
+ this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, Ko.Headset), this.target = this.context.players.getPlayerView(this.localId)), pi && console.log("Follow self", this.target);
35814
35816
  }
35815
35817
  // TODO: only show Spectator cam for DesktopVR;
35816
35818
  // don't show for AR, don't show on Quest
@@ -35929,13 +35931,13 @@ class CE {
35929
35931
  if (!(!i || !this.follow)) {
35930
35932
  switch (e) {
35931
35933
  case 0:
35932
- this.view?.viewDevice !== Yo.Browser ? (this.follow.followFactor = 5, this.follow.rotateFactor = 5) : (this.follow.followFactor = 50, this.follow.rotateFactor = 50), i.position.set(0, 0, 0);
35934
+ this.view?.viewDevice !== Ko.Browser ? (this.follow.followFactor = 5, this.follow.rotateFactor = 5) : (this.follow.followFactor = 50, this.follow.rotateFactor = 50), i.position.set(0, 0, 0);
35933
35935
  break;
35934
35936
  case 1:
35935
35937
  this.follow.followFactor = 3, this.follow.rotateFactor = 2, i.position.set(0, 0.5, 1.5);
35936
35938
  break;
35937
35939
  }
35938
- this.follow.flipForward = !1, this.view?.viewDevice !== Yo.Browser ? i.quaternion.copy(PE) : i.quaternion.identity();
35940
+ this.follow.flipForward = !1, this.view?.viewDevice !== Ko.Browser ? i.quaternion.copy(PE) : i.quaternion.identity();
35939
35941
  }
35940
35942
  }
35941
35943
  }
@@ -35960,7 +35962,7 @@ class OE {
35960
35962
  * Attempts to select an avatar to spectate through raycasting
35961
35963
  */
35962
35964
  trySelectObject() {
35963
- const e = new fr();
35965
+ const e = new pr();
35964
35966
  e.setMask(16777215);
35965
35967
  const t = this.context.physics.raycast(e);
35966
35968
  if (pi && console.log(...t), t?.length)
@@ -36125,11 +36127,11 @@ class On {
36125
36127
  }
36126
36128
  pos(e) {
36127
36129
  const t = this.bb.__offset(this.bb_pos, 10);
36128
- return t ? (e || new Ko()).__init(this.bb_pos + t, this.bb) : null;
36130
+ return t ? (e || new Zo()).__init(this.bb_pos + t, this.bb) : null;
36129
36131
  }
36130
36132
  rot(e) {
36131
36133
  const t = this.bb.__offset(this.bb_pos, 12);
36132
- return t ? (e || new Ko()).__init(this.bb_pos + t, this.bb) : null;
36134
+ return t ? (e || new Zo()).__init(this.bb_pos + t, this.bb) : null;
36133
36135
  }
36134
36136
  static startSyncedCameraModel(e) {
36135
36137
  e.startObject(5);
@@ -36182,7 +36184,7 @@ class AE {
36182
36184
  const i = ri.createString(this.guid), n = ri.createString(this.userId);
36183
36185
  On.startSyncedCameraModel(ri), On.addGuid(ri, i), On.addUserId(ri, n);
36184
36186
  const o = Z(e), r = vm(e);
36185
- On.addPos(ri, Ko.createVec3(ri, o.x, o.y, o.z)), On.addRot(ri, Ko.createVec3(ri, r.x, r.y, r.z));
36187
+ On.addPos(ri, Zo.createVec3(ri, o.x, o.y, o.z)), On.addRot(ri, Zo.createVec3(ri, r.x, r.y, r.z));
36186
36188
  const a = On.endSyncedCameraModel(ri);
36187
36189
  ri.finish(a, xd), t.sendBinary(ri.asUint8Array());
36188
36190
  }
@@ -36221,7 +36223,7 @@ const xw = class em extends T {
36221
36223
  for (const n in this.remoteCams) {
36222
36224
  const o = this.remoteCams[n], r = this.context.time.realtimeSinceStartup - o.lastUpdate;
36223
36225
  if (!o || r > this._camTimeoutInSeconds) {
36224
- L() && console.log("Remote cam timeout", n), o?.obj && x.destroy(o.obj), delete this.remoteCams[n], o && delete this.userToCamMap[o.userId], em.instances.push(o), this.context.players.removePlayerView(o.userId, Yo.Browser);
36226
+ L() && console.log("Remote cam timeout", n), o?.obj && x.destroy(o.obj), delete this.remoteCams[n], o && delete this.userToCamMap[o.userId], em.instances.push(o), this.context.players.removePlayerView(o.userId, Ko.Browser);
36225
36227
  continue;
36226
36228
  }
36227
36229
  }
@@ -36234,7 +36236,7 @@ const xw = class em extends T {
36234
36236
  if (!this.context.connection.isConnected || this.context.connection.connectionId === null) return;
36235
36237
  this._model === null && (this._model = new AE(this.context.connection.connectionId, this.context.connection.connectionId + "_camera"));
36236
36238
  const t = Z(e), i = be(e);
36237
- (t.distanceTo(this._lastWorldPosition) > 1e-3 || i.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(t), this._lastWorldQuaternion.copy(i), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(e, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, e, Yo.Browser));
36239
+ (t.distanceTo(this._lastWorldPosition) > 1e-3 || i.angleTo(this._lastWorldQuaternion) > 0.01) && (this._needsUpdate = !0), this._lastWorldPosition.copy(t), this._lastWorldQuaternion.copy(i), !((!this._needsUpdate || this.context.time.frameCount % 2 !== 0) && !(this.context.time.realtimeSinceStartup - this._lastUpdateTime > this._camTimeoutInSeconds * 0.5)) && (this._lastUpdateTime = this.context.time.realtimeSinceStartup, this._needsUpdate = !1, this._model.send(e, this.context.connection), this.context.isInXR || this.context.players.setPlayerView(this.context.connection.connectionId, e, Ko.Browser));
36238
36240
  }
36239
36241
  onReceivedRemoteCameraInfoBin(e) {
36240
36242
  const t = e.guid();
@@ -36253,7 +36255,7 @@ const xw = class em extends T {
36253
36255
  } else
36254
36256
  return;
36255
36257
  const o = n.obj;
36256
- this.context.players.setPlayerView(i, o, Yo.Browser), n.lastUpdate = this.context.time.realtimeSinceStartup, an.markDirty(o);
36258
+ this.context.players.setPlayerView(i, o, Ko.Browser), n.lastUpdate = this.context.time.realtimeSinceStartup, an.markDirty(o);
36257
36259
  const r = e.pos();
36258
36260
  r && ua(o, r.x(), r.y(), r.z());
36259
36261
  const a = e.rot();
@@ -36901,7 +36903,7 @@ class io extends Iu {
36901
36903
  _audioLoader = null;
36902
36904
  getAudioFilePath(e) {
36903
36905
  const t = this.director.sourceId;
36904
- return dr(t, e);
36906
+ return ur(t, e);
36905
36907
  }
36906
36908
  onAllowAudioChanged(e) {
36907
36909
  for (let t = 0; t < this.models.length; t++) {
@@ -37719,7 +37721,7 @@ var GE = Object.defineProperty, qE = Object.getOwnPropertyDescriptor, Mi = (s, e
37719
37721
  (r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
37720
37722
  return i && n && GE(e, t, n), n;
37721
37723
  };
37722
- const Bo = w("debugbutton");
37724
+ const Fo = w("debugbutton");
37723
37725
  class ko {
37724
37726
  colorMultiplier;
37725
37727
  disabledColor;
@@ -37768,19 +37770,19 @@ class Mo extends T {
37768
37770
  _isHovered = 0;
37769
37771
  onPointerEnter(e) {
37770
37772
  const t = e.event.pointerType === "mouse" && e.button === 0;
37771
- t && (this._isHovered += 1), Bo && console.warn("Button Enter", t, this._isHovered, this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.highlightedTrigger) : this.transition === 1 && this.colors && this._image?.setState("hovered"), t && this.context.input.setCursor("pointer"));
37773
+ t && (this._isHovered += 1), Fo && console.warn("Button Enter", t, this._isHovered, this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.highlightedTrigger) : this.transition === 1 && this.colors && this._image?.setState("hovered"), t && this.context.input.setCursor("pointer"));
37772
37774
  }
37773
37775
  onPointerExit() {
37774
- this._isHovered -= 1, this._isHovered < 0 && (this._isHovered = 0), Bo && console.log("Button Exit", this._isHovered, this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this._isHovered > 0 || (this._isHovered = 0, this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && this._image?.setState("normal"), this.context.input.unsetCursor("pointer")));
37776
+ this._isHovered -= 1, this._isHovered < 0 && (this._isHovered = 0), Fo && console.log("Button Exit", this._isHovered, this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this._isHovered > 0 || (this._isHovered = 0, this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && this._image?.setState("normal"), this.context.input.unsetCursor("pointer")));
37775
37777
  }
37776
37778
  onPointerDown(e) {
37777
- Bo && console.log("Button Down", this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.pressedTrigger) : this.transition === 1 && this.colors && this._image?.setState("pressed"));
37779
+ Fo && console.log("Button Down", this.animationTriggers?.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.pressedTrigger) : this.transition === 1 && this.colors && this._image?.setState("pressed"));
37778
37780
  }
37779
37781
  onPointerUp(e) {
37780
- Bo && console.warn("Button Up", this.animationTriggers?.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && this._image?.setState(this._isHovered ? "hovered" : "normal"));
37782
+ Fo && console.warn("Button Up", this.animationTriggers?.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && this._image?.setState(this._isHovered ? "hovered" : "normal"));
37781
37783
  }
37782
37784
  onPointerClick(e) {
37783
- if (this.interactable && !(e.button !== 0 && e.event.pointerType === Pm.Mouse) && (Bo && (console.warn("Button Click", this.onClick), je("CLICKED button " + this.name + " at " + this.context.time.frameCount)), this.onClick && this.onClick.listenerCount > 0 && (this.onClick.invoke(), e.use(), Bo))) {
37785
+ if (this.interactable && !(e.button !== 0 && e.event.pointerType === Pm.Mouse) && (Fo && (console.warn("Button Click", this.onClick), je("CLICKED button " + this.name + " at " + this.context.time.frameCount)), this.onClick && this.onClick.listenerCount > 0 && (this.onClick.invoke(), e.use(), Fo))) {
37784
37786
  const t = this.gameObject.worldPosition;
37785
37787
  t.add(this.gameObject.worldUp.multiplyScalar(1 + Math.random() * 0.5)), F.DrawLabel(t, "CLICK:" + Date.now(), 0.1, 1 + Math.random() * 0.5);
37786
37788
  }
@@ -37800,7 +37802,7 @@ class Mo extends T {
37800
37802
  this.interactable = e;
37801
37803
  }
37802
37804
  awake() {
37803
- super.awake(), Bo && console.log(this), this._isInit = !1, this.init();
37805
+ super.awake(), Fo && console.log(this), this._isInit = !1, this.init();
37804
37806
  }
37805
37807
  start() {
37806
37808
  this._image?.setInteractable(this.interactable), this.gameObject.getComponentInParent(Sa) || this.gameObject.addComponent(Hm);
@@ -39084,7 +39086,7 @@ var hA = Object.defineProperty, Qa = (s, e, t, i) => {
39084
39086
  (r = s[o]) && (n = r(e, t, n) || n);
39085
39087
  return n && hA(e, t, n), n;
39086
39088
  };
39087
- const Fo = w("debugplanetracking");
39089
+ const zo = w("debugplanetracking");
39088
39090
  class Ao extends T {
39089
39091
  dataTemplate;
39090
39092
  occluder = !0;
@@ -39129,7 +39131,7 @@ class Ao extends T {
39129
39131
  const i = e.xr.frame;
39130
39132
  if (!this.context.renderer.xr.getReferenceSpace()) return;
39131
39133
  const r = i.detectedPlanes, a = i.detectedMeshes, l = r !== void 0 && r.size > 0, c = a !== void 0 && a.size > 0;
39132
- if (this.initiateRoomCaptureIfNoData && (!l && !c && this.firstTimeNoPlanesDetected < -10 && (this.firstTimeNoPlanesDetected = Date.now()), (l || c) && (this.firstTimeNoPlanesDetected = -1), this.firstTimeNoPlanesDetected > 0 && Date.now() - this.firstTimeNoPlanesDetected > 2500 && "initiateRoomCapture" in i.session && (i.session.initiateRoomCapture(), this.firstTimeNoPlanesDetected = -1)), r !== void 0 && this.processFrameData(e.xr, t.gameObject, i, r, this._allPlanes), a !== void 0 && this.processFrameData(e.xr, t.gameObject, i, a, this._allMeshes), Fo) {
39134
+ if (this.initiateRoomCaptureIfNoData && (!l && !c && this.firstTimeNoPlanesDetected < -10 && (this.firstTimeNoPlanesDetected = Date.now()), (l || c) && (this.firstTimeNoPlanesDetected = -1), this.firstTimeNoPlanesDetected > 0 && Date.now() - this.firstTimeNoPlanesDetected > 2500 && "initiateRoomCapture" in i.session && (i.session.initiateRoomCapture(), this.firstTimeNoPlanesDetected = -1)), r !== void 0 && this.processFrameData(e.xr, t.gameObject, i, r, this._allPlanes), a !== void 0 && this.processFrameData(e.xr, t.gameObject, i, a, this._allMeshes), zo) {
39133
39135
  const h = this.context.mainCameraComponent.gameObject.worldPosition;
39134
39136
  for (const d of this._allPlanes.values())
39135
39137
  !d.mesh || !d.mesh.visible || (this.bounds.makeEmpty(), d.mesh.traverse((f) => {
@@ -39148,9 +39150,9 @@ class Ao extends T {
39148
39150
  removeData(e, t) {
39149
39151
  const i = t.get(e);
39150
39152
  if (!i) return;
39151
- t.delete(e), Fo && console.log("Plane no longer tracked, id=" + i.id), i.mesh && (i.mesh.removeFromParent(), i.mesh.traverse((o) => {
39153
+ t.delete(e), zo && console.log("Plane no longer tracked, id=" + i.id), i.mesh && (i.mesh.removeFromParent(), i.mesh.traverse((o) => {
39152
39154
  const r = o.userData.normalsHelper;
39153
- r ? (r.dispose(), r.removeFromParent()) : Fo && console.warn("No normals helper found for mesh", i.mesh);
39155
+ r ? (r.dispose(), r.removeFromParent()) : zo && console.warn("No normals helper found for mesh", i.mesh);
39154
39156
  }), Hi(i.mesh, !0, !0));
39155
39157
  const n = new CustomEvent("plane-tracking", {
39156
39158
  detail: {
@@ -39198,7 +39200,7 @@ class Ao extends T {
39198
39200
  const _ = f.mesh;
39199
39201
  f.collider.sharedMesh = _, f.collider.convex = this.checkIfContextShouldBeConvex(_, f.xrData), f.collider.onDisable(), f.collider.onEnable();
39200
39202
  }
39201
- Fo && (console.log("Plane updated, id=" + f.id, f), f.mesh.traverse((_) => {
39203
+ zo && (console.log("Plane updated, id=" + f.id, f), f.mesh.traverse((_) => {
39202
39204
  if (!(_ instanceof H)) return;
39203
39205
  const m = _.userData.normalsHelper;
39204
39206
  m && m.update();
@@ -39215,7 +39217,7 @@ class Ao extends T {
39215
39217
  } else {
39216
39218
  if (!this.dataTemplate) {
39217
39219
  const f = new H();
39218
- Fo ? f.material = new oS() : this.occluder ? (f.material = new we(), this.makeOccluder(f, f.material, !0)) : f.material = new we({ wireframe: !0, opacity: 0.5, transparent: !0, color: 3355443 }), this.dataTemplate = new ie("", "", f);
39220
+ zo ? f.material = new oS() : this.occluder ? (f.material = new we(), this.makeOccluder(f, f.material, !0)) : f.material = new we({ wireframe: !0, opacity: 0.5, transparent: !0, color: 3355443 }), this.dataTemplate = new ie("", "", f);
39219
39221
  }
39220
39222
  if (!this.dataTemplate.asset)
39221
39223
  this.dataTemplate.loadAssetAsync();
@@ -39226,7 +39228,7 @@ class Ao extends T {
39226
39228
  else if (f instanceof no)
39227
39229
  for (const _ of f.children)
39228
39230
  _ instanceof H && (Oe(_.geometry), _.geometry = this.createGeometry(l), this.makeOccluder(_, _.material, this.occluder && !this.dataTemplate));
39229
- const p = f.getComponent(yr);
39231
+ const p = f.getComponent(_r);
39230
39232
  if (p) {
39231
39233
  const _ = f;
39232
39234
  p.sharedMesh = _, p.convex = this.checkIfContextShouldBeConvex(_, l), p.onDisable(), p.onEnable();
@@ -39239,7 +39241,7 @@ class Ao extends T {
39239
39241
  mesh: f,
39240
39242
  collider: p
39241
39243
  };
39242
- o.set(l, g), Fo && console.log("New plane detected, id=" + g.id, g, { hasCollider: !!p, isGroup: f instanceof no });
39244
+ o.set(l, g), zo && console.log("New plane detected, id=" + g.id, g, { hasCollider: !!p, isGroup: f instanceof no });
39243
39245
  try {
39244
39246
  const _ = new CustomEvent("plane-tracking", {
39245
39247
  detail: {
@@ -39253,7 +39255,7 @@ class Ao extends T {
39253
39255
  }
39254
39256
  }
39255
39257
  }
39256
- d && (h ? (d.visible = !0, d.matrix.fromArray(h.transform.matrix), d.matrix.premultiply(this._flipForwardMatrix)) : d.visible = !1, Fo && d.traverse((f) => {
39258
+ d && (h ? (d.visible = !0, d.matrix.fromArray(h.transform.matrix), d.matrix.premultiply(this._flipForwardMatrix)) : d.visible = !1, zo && d.traverse((f) => {
39257
39259
  if (f instanceof H)
39258
39260
  if (f.userData.normalsHelper)
39259
39261
  f.userData.normalsHelper.update();
@@ -39410,11 +39412,11 @@ P.add("CharacterControllerInput", go);
39410
39412
  P.add("Collider", Si);
39411
39413
  P.add("SphereCollider", wc);
39412
39414
  P.add("BoxCollider", Zm);
39413
- P.add("MeshCollider", yr);
39415
+ P.add("MeshCollider", _r);
39414
39416
  P.add("CapsuleCollider", uo);
39415
39417
  P.add("ContactShadows", nu);
39416
39418
  P.add("LogStats", nv);
39417
- P.add("DeleteBox", Zo);
39419
+ P.add("DeleteBox", Jo);
39418
39420
  P.add("Deletable", ov);
39419
39421
  P.add("DeviceFlag", Jm);
39420
39422
  P.add("DragControls", Hr);
@@ -39430,7 +39432,7 @@ P.add("ChangeMaterialOnClick", Iv);
39430
39432
  P.add("SetActiveOnClick", Lv);
39431
39433
  P.add("HideOnStart", on);
39432
39434
  P.add("EmphasizeOnClick", Cc);
39433
- P.add("PlayAudioOnClick", sr);
39435
+ P.add("PlayAudioOnClick", or);
39434
39436
  P.add("PlayAnimationOnClick", gd);
39435
39437
  P.add("PreliminaryAction", Pc);
39436
39438
  P.add("PreliminaryTrigger", cu);
@@ -39460,7 +39462,7 @@ P.add("PlayerColor", uc);
39460
39462
  P.add("Antialiasing", xu);
39461
39463
  P.add("BloomEffect", Mg);
39462
39464
  P.add("ChromaticAberration", Cu);
39463
- P.add("ColorAdjustments", wr);
39465
+ P.add("ColorAdjustments", xr);
39464
39466
  P.add("DepthOfField", qn);
39465
39467
  P.add("EffectWrapper", vd);
39466
39468
  P.add("PixelationEffect", Ou);
@@ -39468,7 +39470,7 @@ P.add("ScreenSpaceAmbientOcclusion", Po);
39468
39470
  P.add("ScreenSpaceAmbientOcclusionN8", Xn);
39469
39471
  P.add("SharpeningEffect", ku);
39470
39472
  P.add("TiltShiftEffect", Ds);
39471
- P.add("ToneMappingEffect", lr);
39473
+ P.add("ToneMappingEffect", cr);
39472
39474
  P.add("Vignette", Ga);
39473
39475
  P.add("Volume", Dc);
39474
39476
  P.add("ReflectionProbe", md);
@@ -39477,7 +39479,7 @@ P.add("MeshRenderer", ru);
39477
39479
  P.add("SkinnedMeshRenderer", bv);
39478
39480
  P.add("Rigidbody", ft);
39479
39481
  P.add("SceneSwitcher", Ze);
39480
- P.add("ScreenCapture", Cr);
39482
+ P.add("ScreenCapture", Pr);
39481
39483
  P.add("ShadowCatcher", Mu);
39482
39484
  P.add("RemoteSkybox", Eg);
39483
39485
  P.add("SmoothFollow", Ag);
@@ -39501,7 +39503,7 @@ P.add("BaseUIComponent", un);
39501
39503
  P.add("UIRootComponent", pu);
39502
39504
  P.add("Button", Mo);
39503
39505
  P.add("Canvas", hc);
39504
- P.add("CanvasGroup", ar);
39506
+ P.add("CanvasGroup", lr);
39505
39507
  P.add("EventSystem", ei);
39506
39508
  P.add("Graphic", mu);
39507
39509
  P.add("MaskableGraphic", gu);
@@ -39522,8 +39524,8 @@ P.add("EnvironmentScene", Ng);
39522
39524
  P.add("LookAt", Aw);
39523
39525
  P.add("OpenURL", Wc);
39524
39526
  P.add("VideoPlayer", pt);
39525
- P.add("Voip", gr);
39526
- P.add("Avatar", rr);
39527
+ P.add("Voip", yr);
39528
+ P.add("Avatar", ar);
39527
39529
  P.add("XRControllerFollow", Ro);
39528
39530
  P.add("XRControllerModel", fo);
39529
39531
  P.add("XRControllerMovement", Xi);
@@ -39907,16 +39909,16 @@ class PA {
39907
39909
  return t.shadowRoot ? t.shadowRoot.appendChild(e) : t.appendChild(e);
39908
39910
  }
39909
39911
  }
39910
- const Vo = w("debugloading"), pl = w("debugloadingrendering"), eb = w("debuglicense");
39912
+ const Ho = w("debugloading"), pl = w("debugloadingrendering"), eb = w("debuglicense");
39911
39913
  class hL {
39912
39914
  className;
39913
39915
  additionalClasses;
39914
39916
  }
39915
39917
  let ml = 0, tb;
39916
39918
  function Nw(s) {
39917
- Vo && console.log(s.progress.loaded.toFixed(0) + "/" + s.progress.total.toFixed(0), s);
39919
+ Ho && console.log(s.progress.loaded.toFixed(0) + "/" + s.progress.total.toFixed(0), s);
39918
39920
  const e = s.count, t = s.progress.total;
39919
- t === 0 || t === void 0 ? (tb !== s.name && (ml = 0), tb = s.name, ml += (1 - ml) * 1e-3, Vo && me("Loading " + s.name + " did not report total size")) : ml = s.progress.loaded / t;
39921
+ t === 0 || t === void 0 ? (tb !== s.name && (ml = 0), tb = s.name, ml += (1 - ml) * 1e-3, Ho && me("Loading " + s.name + " did not report total size")) : ml = s.progress.loaded / t;
39920
39922
  const i = s.index / e + ml / e;
39921
39923
  return B.clamp01(i);
39922
39924
  }
@@ -39942,12 +39944,12 @@ class Od {
39942
39944
  }
39943
39945
  async onLoadingBegin(e) {
39944
39946
  const t = this._element.shadowRoot || this._element;
39945
- if (Vo && console.warn("Begin Loading"), !this._loadingElement) {
39947
+ if (Ho && console.warn("Begin Loading"), !this._loadingElement) {
39946
39948
  for (let i = 0; i < t.children.length; i++) {
39947
39949
  const n = t.children[i];
39948
39950
  if (n.classList.contains(Od.LoadingContainerClassName)) {
39949
39951
  if (!this._allowCustomLoadingElement) {
39950
- Vo && console.warn("Remove custom loading container"), t.removeChild(n);
39952
+ Ho && console.warn("Remove custom loading container"), t.removeChild(n);
39951
39953
  continue;
39952
39954
  }
39953
39955
  this._loadingElement = this.createLoadingElement(n);
@@ -39964,7 +39966,7 @@ class Od {
39964
39966
  typeof e == "number" ? i = e : ("index" in e && (i = Nw(e)), !t && "name" in e && this.setMessage("loading " + e.name)), this.loadingProgress = i, t && this.setMessage(t), this.updateDisplay();
39965
39967
  }
39966
39968
  onLoadingFinished() {
39967
- Vo && console.warn("Finished Loading"), pl || (this.loadingProgress = 1, this.onDoneLoading());
39969
+ Ho && console.warn("Finished Loading"), pl || (this.loadingProgress = 1, this.onDoneLoading());
39968
39970
  }
39969
39971
  setMessage(e) {
39970
39972
  this._messageContainer && (this._messageContainer.innerText = e);
@@ -39978,14 +39980,14 @@ class Od {
39978
39980
  }, e);
39979
39981
  }
39980
39982
  onDoneLoading() {
39981
- this._loadingElement && (Vo && console.log("Hiding loading element"), this._loadingElement.style.display = "none", this._loadingElement.remove()), this._progressLoop && clearInterval(this._progressLoop), this._progressLoop = null;
39983
+ this._loadingElement && (Ho && console.log("Hiding loading element"), this._loadingElement.style.display = "none", this._loadingElement.remove()), this._progressLoop && clearInterval(this._progressLoop), this._progressLoop = null;
39982
39984
  }
39983
39985
  updateDisplay() {
39984
39986
  const e = this._progress, t = (e * 100).toFixed(0) + "%";
39985
39987
  this._loadingBar && (this._loadingBar.style.width = e * 100 + "%"), this._loadingTextContainer && (this._loadingTextContainer.textContent = t);
39986
39988
  }
39987
39989
  createLoadingElement(e) {
39988
- Vo && !e && console.log("Creating loading element"), this._loadingElement = e || document.createElement("div");
39990
+ Ho && !e && console.log("Creating loading element"), this._loadingElement = e || document.createElement("div");
39989
39991
  let t = this._element.getAttribute("loading-style");
39990
39992
  (!t || t === "auto") && (window.matchMedia("(prefers-color-scheme: dark)").matches ? t = "dark" : t = "light");
39991
39993
  const i = bs();
@@ -41267,7 +41269,7 @@ class IA {
41267
41269
  if (h || Yf) {
41268
41270
  if (!o) {
41269
41271
  const d = [], f = a.normal();
41270
- i instanceof yr && i.convex && (f.x = -f.x, f.y = -f.y, f.z = -f.z);
41272
+ i instanceof _r && i.convex && (f.x = -f.x, f.y = -f.y, f.z = -f.z);
41271
41273
  for (let p = 0; p < a.numSolverContacts(); p++) {
41272
41274
  const g = a.solverContactPoint(p), _ = a.contactImpulse(p);
41273
41275
  if (g) {
@@ -41501,11 +41503,11 @@ class BA extends HTMLElement {
41501
41503
  #o;
41502
41504
  #a() {
41503
41505
  if (this.#e?.remove(), this.getAttribute("ar") != null)
41504
- this.#i ??= new er(), this.#e = this.#i.createARButton();
41506
+ this.#i ??= new tr(), this.#e = this.#i.createARButton();
41505
41507
  else if (this.getAttribute("vr") != null)
41506
- this.#i ??= new er(), this.#e = this.#i.createVRButton();
41508
+ this.#i ??= new tr(), this.#e = this.#i.createVRButton();
41507
41509
  else if (this.getAttribute("quicklook") != null)
41508
- this.#i ??= new er(), this.#e = this.#i.createQuicklookButton();
41510
+ this.#i ??= new tr(), this.#e = this.#i.createQuicklookButton();
41509
41511
  else {
41510
41512
  Kf ? console.warn("No button type specified for <needle-button>. Use either ar, vr or quicklook attribute.") : console.debug("No button type specified for <needle-button>. Use either ar, vr or quicklook attribute.");
41511
41513
  return;
@@ -41728,7 +41730,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41728
41730
  AudioListener: eo,
41729
41731
  AudioSource: hn,
41730
41732
  AudioTrackHandler: io,
41731
- Avatar: rr,
41733
+ Avatar: ar,
41732
41734
  AvatarBlink_Simple: Ta,
41733
41735
  AvatarEyeLook_Rotation: ev,
41734
41736
  AvatarLoader: FA,
@@ -41752,7 +41754,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41752
41754
  Camera: mi,
41753
41755
  CameraTargetReachedEvent: dd,
41754
41756
  Canvas: hc,
41755
- CanvasGroup: ar,
41757
+ CanvasGroup: lr,
41756
41758
  CapsuleCollider: uo,
41757
41759
  ChangeMaterialOnClick: Iv,
41758
41760
  ChangeTransformOnClick: Da,
@@ -41760,14 +41762,14 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41760
41762
  CharacterControllerInput: go,
41761
41763
  ChromaticAberration: Cu,
41762
41764
  Collider: Si,
41763
- ColorAdjustments: wr,
41765
+ ColorAdjustments: xr,
41764
41766
  ColorBySpeedModule: Ic,
41765
41767
  ColorOverLifetimeModule: Cg,
41766
41768
  ContactShadows: nu,
41767
41769
  ControlTrackHandler: Bg,
41768
41770
  CustomBranding: za,
41769
41771
  Deletable: ov,
41770
- DeleteBox: Zo,
41772
+ DeleteBox: Jo,
41771
41773
  DepthOfField: qn,
41772
41774
  DeviceFlag: Jm,
41773
41775
  DocumentExtension: zA,
@@ -41813,7 +41815,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41813
41815
  LookAtConstraint: Ra,
41814
41816
  MainModule: Qt,
41815
41817
  MaskableGraphic: gu,
41816
- MeshCollider: yr,
41818
+ MeshCollider: _r,
41817
41819
  MeshRenderer: ru,
41818
41820
  MinMaxCurve: Y,
41819
41821
  MinMaxGradient: Wa,
@@ -41834,7 +41836,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41834
41836
  PhysicsExtension: Nv,
41835
41837
  PixelationEffect: Ou,
41836
41838
  PlayAnimationOnClick: gd,
41837
- PlayAudioOnClick: sr,
41839
+ PlayAudioOnClick: or,
41838
41840
  PlayableDirector: fc,
41839
41841
  PlayerColor: uc,
41840
41842
  PointerEventData: Zd,
@@ -41845,7 +41847,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41845
41847
  Rect: SR,
41846
41848
  RectTransform: Un,
41847
41849
  ReflectionProbe: md,
41848
- RegisteredAnimationInfo: Ho,
41850
+ RegisteredAnimationInfo: Go,
41849
41851
  RemoteSkybox: Eg,
41850
41852
  Renderer: qi,
41851
41853
  RendererLightmap: Bp,
@@ -41853,7 +41855,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41853
41855
  RotationBySpeedModule: pn,
41854
41856
  RotationOverLifetimeModule: Gn,
41855
41857
  SceneSwitcher: Ze,
41856
- ScreenCapture: Cr,
41858
+ ScreenCapture: Pr,
41857
41859
  ScreenSpaceAmbientOcclusion: Po,
41858
41860
  ScreenSpaceAmbientOcclusionN8: Xn,
41859
41861
  SetActiveOnClick: Lv,
@@ -41892,12 +41894,12 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41892
41894
  TextExtension: mg,
41893
41895
  TextureSheetAnimationModule: Yt,
41894
41896
  TiltShiftEffect: Ds,
41895
- ToneMappingEffect: lr,
41897
+ ToneMappingEffect: cr,
41896
41898
  TrailModule: Ue,
41897
41899
  TransformData: ze,
41898
41900
  TransformGizmo: qa,
41899
41901
  TriggerBuilder: Gt,
41900
- TriggerModel: Jo,
41902
+ TriggerModel: er,
41901
41903
  UIRaycastUtils: q0,
41902
41904
  UIRootComponent: pu,
41903
41905
  USDZExporter: ws,
@@ -41910,7 +41912,7 @@ const pL = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41910
41912
  VideoPlayer: pt,
41911
41913
  Vignette: Ga,
41912
41914
  VisibilityAction: hu,
41913
- Voip: gr,
41915
+ Voip: yr,
41914
41916
  Volume: Dc,
41915
41917
  VolumeParameter: j,
41916
41918
  VolumeProfile: Og,
@@ -42059,7 +42061,7 @@ export {
42059
42061
  jg as AnimationTrackHandler,
42060
42062
  rc as AnimationUtils,
42061
42063
  It as Animator,
42062
- zo as AnimatorConditionMode,
42064
+ Uo as AnimatorConditionMode,
42063
42065
  ln as AnimatorController,
42064
42066
  V0 as AnimatorControllerParameterType,
42065
42067
  sh as AnimatorStateInfo,
@@ -42071,7 +42073,7 @@ export {
42071
42073
  eo as AudioListener,
42072
42074
  hn as AudioSource,
42073
42075
  io as AudioTrackHandler,
42074
- rr as Avatar,
42076
+ ar as Avatar,
42075
42077
  Ta as AvatarBlink_Simple,
42076
42078
  ev as AvatarEyeLook_Rotation,
42077
42079
  FA as AvatarLoader,
@@ -42100,7 +42102,7 @@ export {
42100
42102
  mi as Camera,
42101
42103
  dd as CameraTargetReachedEvent,
42102
42104
  hc as Canvas,
42103
- ar as CanvasGroup,
42105
+ lr as CanvasGroup,
42104
42106
  uo as CapsuleCollider,
42105
42107
  Iv as ChangeMaterialOnClick,
42106
42108
  Da as ChangeTransformOnClick,
@@ -42113,7 +42115,7 @@ export {
42113
42115
  Si as Collider,
42114
42116
  yk as Collision,
42115
42117
  Wm as CollisionDetectionMode,
42116
- wr as ColorAdjustments,
42118
+ xr as ColorAdjustments,
42117
42119
  Ic as ColorBySpeedModule,
42118
42120
  Cg as ColorOverLifetimeModule,
42119
42121
  HI as Component,
@@ -42132,7 +42134,7 @@ export {
42132
42134
  Re as CustomShader,
42133
42135
  Pp as DefaultReflectionMode,
42134
42136
  ov as Deletable,
42135
- Zo as DeleteBox,
42137
+ Jo as DeleteBox,
42136
42138
  qn as DepthOfField,
42137
42139
  Jm as DeviceFlag,
42138
42140
  q as DeviceUtilities,
@@ -42166,7 +42168,7 @@ export {
42166
42168
  $a as Gradient,
42167
42169
  mu as Graphic,
42168
42170
  Hm as GraphicRaycaster,
42169
- ir as Graphics,
42171
+ nr as Graphics,
42170
42172
  Rc as GridHelper,
42171
42173
  Qv as GridLayoutGroup,
42172
42174
  Rs as GroundProjectedEnv,
@@ -42211,7 +42213,7 @@ export {
42211
42213
  kw as MarkerType,
42212
42214
  gu as MaskableGraphic,
42213
42215
  B as Mathf,
42214
- yr as MeshCollider,
42216
+ _r as MeshCollider,
42215
42217
  ru as MeshRenderer,
42216
42218
  Y as MinMaxCurve,
42217
42219
  Wa as MinMaxGradient,
@@ -42248,7 +42250,7 @@ export {
42248
42250
  qp as ParticleBurst,
42249
42251
  ow as ParticleSubEmitter,
42250
42252
  bd as ParticleSystem,
42251
- vr as ParticleSystemBaseBehaviour,
42253
+ wr as ParticleSystemBaseBehaviour,
42252
42254
  mn as ParticleSystemRenderer,
42253
42255
  Hp as ParticleSystemShapeType,
42254
42256
  to as PeerHandle,
@@ -42258,7 +42260,7 @@ export {
42258
42260
  wt as PhysicsMaterialCombine,
42259
42261
  Ou as PixelationEffect,
42260
42262
  gd as PlayAnimationOnClick,
42261
- sr as PlayAudioOnClick,
42263
+ or as PlayAudioOnClick,
42262
42264
  fc as PlayableDirector,
42263
42265
  uc as PlayerColor,
42264
42266
  En as PlayerState,
@@ -42273,7 +42275,7 @@ export {
42273
42275
  uw as PostProcessingHandler,
42274
42276
  Pc as PreliminaryAction,
42275
42277
  cu as PreliminaryTrigger,
42276
- $o as PreviewHelper,
42278
+ Wo as PreviewHelper,
42277
42279
  ma as PrimitiveType,
42278
42280
  le as Progress,
42279
42281
  Tb as PromiseAllWithErrors,
@@ -42281,11 +42283,11 @@ export {
42281
42283
  oe as RGBAColor,
42282
42284
  Kl as RapierPhysics,
42283
42285
  Ug as RawImage,
42284
- fr as RaycastOptions,
42286
+ pr as RaycastOptions,
42285
42287
  SR as Rect,
42286
42288
  Un as RectTransform,
42287
42289
  md as ReflectionProbe,
42288
- Ho as RegisteredAnimationInfo,
42290
+ Go as RegisteredAnimationInfo,
42289
42291
  Eg as RemoteSkybox,
42290
42292
  fs as RenderTexture,
42291
42293
  ZO as RenderTextureSerializer,
@@ -42299,7 +42301,7 @@ export {
42299
42301
  Gn as RotationOverLifetimeModule,
42300
42302
  Dp as SceneLightSettings,
42301
42303
  Ze as SceneSwitcher,
42302
- Cr as ScreenCapture,
42304
+ Pr as ScreenCapture,
42303
42305
  Po as ScreenSpaceAmbientOcclusion,
42304
42306
  Xn as ScreenSpaceAmbientOcclusionN8,
42305
42307
  xn as SendQueue,
@@ -42347,14 +42349,14 @@ export {
42347
42349
  Yt as TextureSheetAnimationModule,
42348
42350
  Ds as TiltShiftEffect,
42349
42351
  iO as Time,
42350
- lr as ToneMappingEffect,
42352
+ cr as ToneMappingEffect,
42351
42353
  Iu as TrackHandler,
42352
42354
  Bi as TrackType,
42353
42355
  Ue as TrailModule,
42354
42356
  ze as TransformData,
42355
42357
  qa as TransformGizmo,
42356
42358
  Gt as TriggerBuilder,
42357
- Jo as TriggerModel,
42359
+ er as TriggerModel,
42358
42360
  P as TypeStore,
42359
42361
  q0 as UIRaycastUtils,
42360
42362
  pu as UIRootComponent,
@@ -42373,10 +42375,10 @@ export {
42373
42375
  Ve as VelocityOverLifetimeModule,
42374
42376
  qv as VerticalLayoutGroup,
42375
42377
  pt as VideoPlayer,
42376
- Yo as ViewDevice,
42378
+ Ko as ViewDevice,
42377
42379
  Ga as Vignette,
42378
42380
  hu as VisibilityAction,
42379
- gr as Voip,
42381
+ yr as Voip,
42380
42382
  Dc as Volume,
42381
42383
  j as VolumeParameter,
42382
42384
  Og as VolumeProfile,
@@ -42387,7 +42389,7 @@ export {
42387
42389
  zu as WebARCameraBackground,
42388
42390
  $i as WebARSessionRoot,
42389
42391
  fg as WebXR,
42390
- er as WebXRButtonFactory,
42392
+ tr as WebXRButtonFactory,
42391
42393
  Pd as WebXRImageTracking,
42392
42394
  Eo as WebXRImageTrackingModel,
42393
42395
  Ao as WebXRPlaneTracking,
@@ -42563,7 +42565,7 @@ export {
42563
42565
  O0 as removeComponent,
42564
42566
  iL as removeCustomImportExtensionType,
42565
42567
  wI as removePatch,
42566
- dr as resolveUrl,
42568
+ ur as resolveUrl,
42567
42569
  sC as sanitizeString,
42568
42570
  sA as saveImage,
42569
42571
  lL as screenshot,