@needle-tools/engine 2.60.0-pre → 2.60.2-pre

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.
@@ -370,7 +370,7 @@ function dJ(t, A) {
370
370
  * Copyright 2010-2022 Three.js Authors
371
371
  * SPDX-License-Identifier: MIT
372
372
  */
373
- const Ul = "147dev", kB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, MB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, XM = 0, $w = 1, $M = 2, wJ = 3, uJ = 0, bp = 1, xp = 2, oQ = 3, Je = 0, oe = 1, Tg = 2, PC = 0, WC = 1, es = 2, Au = 3, Iu = 4, AU = 5, KB = 100, IU = 101, gU = 102, gu = 103, iu = 104, iU = 200, eU = 201, tU = 202, CU = 203, Hp = 204, vp = 205, oU = 206, BU = 207, sU = 208, QU = 209, nU = 210, aU = 0, Tp = 1, Op = 2, ja = 3, _p = 4, Pp = 5, Wp = 6, Zp = 7, kE = 0, EU = 1, rU = 2, ft = 0, pa = 1, jp = 2, hU = 3, Gc = 4, cU = 5, Rl = 300, Wo = 301, Zo = 302, Gt = 303, NQ = 304, XQ = 306, kt = 1e3, oi = 1001, XC = 1002, tg = 1003, mQ = 1004, pJ = 1004, KQ = 1005, yJ = 1005, TI = 1006, ME = 1007, SJ = 1007, Ut = 1008, fJ = 1008, Fi = 1009, lU = 1010, DU = 1011, Vp = 1012, dU = 1013, Yo = 1014, zg = 1015, Bi = 1016, wU = 1017, uU = 1018, jB = 1020, pU = 1021, yU = 1022, hg = 1023, SU = 1024, fU = 1025, Oo = 1026, ts = 1027, bB = 1028, GU = 1029, BQ = 1030, kU = 1031, MU = 1033, ya = 33776, _h = 33777, Ph = 33778, Sa = 33779, kc = 35840, eu = 35841, Mc = 35842, tu = 35843, zp = 36196, Uc = 37492, Rc = 37496, Fc = 37808, Cu = 37809, ou = 37810, Bu = 37811, su = 37812, Qu = 37813, nu = 37814, au = 37815, Eu = 37816, ru = 37817, hu = 37818, cu = 37819, lu = 37820, Du = 37821, Nc = 36492, Va = 2200, Xp = 2201, UU = 2202, Cs = 2300, $C = 2301, Wh = 2302, xB = 2400, HB = 2401, za = 2402, Fl = 2500, $p = 2501, GJ = 0, RU = 1, Ay = 2, $g = 3e3, DI = 3001, FU = 3200, NU = 3201, gB = 0, mU = 1, kJ = "", Dt = "srgb", JQ = "srgb-linear", KU = 0, fa = 7680, JU = 7681, qU = 7682, LU = 7683, YU = 34055, bU = 34056, xU = 5386, HU = 512, vU = 513, TU = 514, OU = 515, _U = 516, PU = 517, WU = 518, Iy = 519, Xa = 35044, Ri = 35048, MJ = 35040, UJ = 35045, RJ = 35049, FJ = 35041, NJ = 35046, mJ = 35050, KJ = 35042, JJ = "100", du = "300 es", mc = 1035;
373
+ const Ul = "147dev", kB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, MB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, XM = 0, $w = 1, $M = 2, wJ = 3, uJ = 0, bp = 1, xp = 2, oQ = 3, Je = 0, Be = 1, Tg = 2, PC = 0, WC = 1, es = 2, Au = 3, Iu = 4, AU = 5, KB = 100, IU = 101, gU = 102, gu = 103, iu = 104, iU = 200, eU = 201, tU = 202, CU = 203, Hp = 204, vp = 205, oU = 206, BU = 207, sU = 208, QU = 209, nU = 210, aU = 0, Tp = 1, Op = 2, ja = 3, _p = 4, Pp = 5, Wp = 6, Zp = 7, kE = 0, EU = 1, rU = 2, ft = 0, pa = 1, jp = 2, hU = 3, Gc = 4, cU = 5, Rl = 300, Wo = 301, Zo = 302, Gt = 303, NQ = 304, XQ = 306, kt = 1e3, oi = 1001, XC = 1002, tg = 1003, mQ = 1004, pJ = 1004, KQ = 1005, yJ = 1005, TI = 1006, ME = 1007, SJ = 1007, Ut = 1008, fJ = 1008, Fi = 1009, lU = 1010, DU = 1011, Vp = 1012, dU = 1013, Yo = 1014, zg = 1015, Bi = 1016, wU = 1017, uU = 1018, jB = 1020, pU = 1021, yU = 1022, hg = 1023, SU = 1024, fU = 1025, Oo = 1026, ts = 1027, bB = 1028, GU = 1029, BQ = 1030, kU = 1031, MU = 1033, ya = 33776, _h = 33777, Ph = 33778, Sa = 33779, kc = 35840, eu = 35841, Mc = 35842, tu = 35843, zp = 36196, Uc = 37492, Rc = 37496, Fc = 37808, Cu = 37809, ou = 37810, Bu = 37811, su = 37812, Qu = 37813, nu = 37814, au = 37815, Eu = 37816, ru = 37817, hu = 37818, cu = 37819, lu = 37820, Du = 37821, Nc = 36492, Va = 2200, Xp = 2201, UU = 2202, Cs = 2300, $C = 2301, Wh = 2302, xB = 2400, HB = 2401, za = 2402, Fl = 2500, $p = 2501, GJ = 0, RU = 1, Ay = 2, $g = 3e3, DI = 3001, FU = 3200, NU = 3201, gB = 0, mU = 1, kJ = "", Dt = "srgb", JQ = "srgb-linear", KU = 0, fa = 7680, JU = 7681, qU = 7682, LU = 7683, YU = 34055, bU = 34056, xU = 5386, HU = 512, vU = 513, TU = 514, OU = 515, _U = 516, PU = 517, WU = 518, Iy = 519, Xa = 35044, Ri = 35048, MJ = 35040, UJ = 35045, RJ = 35049, FJ = 35041, NJ = 35046, mJ = 35050, KJ = 35042, JJ = "100", du = "300 es", mc = 1035;
374
374
  class Vi {
375
375
  addEventListener(A, I) {
376
376
  this._listeners === void 0 && (this._listeners = {});
@@ -525,7 +525,7 @@ function Ig(t, A) {
525
525
  throw new Error("Invalid component type.");
526
526
  }
527
527
  }
528
- var ne = /* @__PURE__ */ Object.freeze({
528
+ var ae = /* @__PURE__ */ Object.freeze({
529
529
  __proto__: null,
530
530
  DEG2RAD: VB,
531
531
  RAD2DEG: $a,
@@ -4088,7 +4088,7 @@ class MA extends HA {
4088
4088
  }
4089
4089
  function cq(t, A, I, g, i, e, C, o) {
4090
4090
  let B;
4091
- if (A.side === oe ? B = g.intersectTriangle(C, e, i, !0, o) : B = g.intersectTriangle(i, e, C, A.side !== Tg, o), B === null)
4091
+ if (A.side === Be ? B = g.intersectTriangle(C, e, i, !0, o) : B = g.intersectTriangle(i, e, C, A.side !== Tg, o), B === null)
4092
4092
  return null;
4093
4093
  qr.copy(o), qr.applyMatrix4(t.matrixWorld);
4094
4094
  const s = I.ray.origin.distanceTo(qr);
@@ -4124,7 +4124,7 @@ function Lr(t, A, I, g, i, e, C, o, B, s, Q, a) {
4124
4124
  }
4125
4125
  return r;
4126
4126
  }
4127
- class zI extends hI {
4127
+ class XI extends hI {
4128
4128
  constructor(A = 1, I = 1, g = 1, i = 1, e = 1, C = 1) {
4129
4129
  super(), this.type = "BoxGeometry", this.parameters = {
4130
4130
  width: A,
@@ -4159,7 +4159,7 @@ class zI extends hI {
4159
4159
  }
4160
4160
  }
4161
4161
  static fromJSON(A) {
4162
- return new zI(A.width, A.height, A.depth, A.widthSegments, A.heightSegments, A.depthSegments);
4162
+ return new XI(A.width, A.height, A.depth, A.widthSegments, A.heightSegments, A.depthSegments);
4163
4163
  }
4164
4164
  }
4165
4165
  function qQ(t) {
@@ -4469,12 +4469,12 @@ class ml extends qi {
4469
4469
  }
4470
4470
  `
4471
4471
  )
4472
- }, i = new zI(5, 5, 5), e = new Dg({
4472
+ }, i = new XI(5, 5, 5), e = new Dg({
4473
4473
  name: "CubemapFromEquirect",
4474
4474
  uniforms: qQ(g.uniforms),
4475
4475
  vertexShader: g.vertexShader,
4476
4476
  fragmentShader: g.fragmentShader,
4477
- side: oe,
4477
+ side: Be,
4478
4478
  blending: PC
4479
4479
  });
4480
4480
  e.uniforms.tEquirect.value = I;
@@ -4712,7 +4712,7 @@ function pq(t, A) {
4712
4712
  update: B
4713
4713
  };
4714
4714
  }
4715
- class ae extends hI {
4715
+ class zi extends hI {
4716
4716
  constructor(A = 1, I = 1, g = 1, i = 1) {
4717
4717
  super(), this.type = "PlaneGeometry", this.parameters = {
4718
4718
  width: A,
@@ -4736,7 +4736,7 @@ class ae extends hI {
4736
4736
  this.setIndex(r), this.setAttribute("position", new $A(h, 3)), this.setAttribute("normal", new $A(c, 3)), this.setAttribute("uv", new $A(l, 2));
4737
4737
  }
4738
4738
  static fromJSON(A) {
4739
- return new ae(A.width, A.height, A.widthSegments, A.heightSegments);
4739
+ return new zi(A.width, A.height, A.widthSegments, A.heightSegments);
4740
4740
  }
4741
4741
  }
4742
4742
  var yq = `#ifdef USE_ALPHAMAP
@@ -8198,13 +8198,13 @@ function Ib(t, A, I, g, i, e, C) {
8198
8198
  D && D.isTexture && (D = (w.backgroundBlurriness > 0 ? I : A).get(D));
8199
8199
  const d = t.xr, u = d.getSession && d.getSession();
8200
8200
  u && u.environmentBlendMode === "additive" && (D = null), D === null ? c(o, B) : D && D.isColor && (c(D, 1), p = !0), (t.autoClear || p) && t.clear(t.autoClearColor, t.autoClearDepth, t.autoClearStencil), D && (D.isCubeTexture || D.mapping === XQ) ? (Q === void 0 && (Q = new MA(
8201
- new zI(1, 1, 1),
8201
+ new XI(1, 1, 1),
8202
8202
  new Dg({
8203
8203
  name: "BackgroundCubeMaterial",
8204
8204
  uniforms: qQ(dt.backgroundCube.uniforms),
8205
8205
  vertexShader: dt.backgroundCube.vertexShader,
8206
8206
  fragmentShader: dt.backgroundCube.fragmentShader,
8207
- side: oe,
8207
+ side: Be,
8208
8208
  depthTest: !1,
8209
8209
  depthWrite: !1,
8210
8210
  fog: !1
@@ -8216,7 +8216,7 @@ function Ib(t, A, I, g, i, e, C) {
8216
8216
  return this.uniforms.envMap.value;
8217
8217
  }
8218
8218
  }), i.update(Q)), Q.material.uniforms.envMap.value = D, Q.material.uniforms.flipEnvMap.value = D.isCubeTexture && D.isRenderTargetTexture === !1 ? -1 : 1, Q.material.uniforms.backgroundBlurriness.value = w.backgroundBlurriness, Q.material.uniforms.backgroundIntensity.value = w.backgroundIntensity, (a !== D || n !== D.version || r !== t.toneMapping) && (Q.material.needsUpdate = !0, a = D, n = D.version, r = t.toneMapping), Q.layers.enableAll(), l.unshift(Q, Q.geometry, Q.material, 0, 0, null)) : D && D.isTexture && (s === void 0 && (s = new MA(
8219
- new ae(2, 2),
8219
+ new zi(2, 2),
8220
8220
  new Dg({
8221
8221
  name: "BackgroundMaterial",
8222
8222
  uniforms: qQ(dt.background.uniforms),
@@ -8771,10 +8771,10 @@ class uu {
8771
8771
  Q.getClearColor(B0), Q.toneMapping = ft, Q.autoClear = !1;
8772
8772
  const r = new Cg({
8773
8773
  name: "PMREM.Background",
8774
- side: oe,
8774
+ side: Be,
8775
8775
  depthWrite: !1,
8776
8776
  depthTest: !1
8777
- }), h = new MA(new zI(), r);
8777
+ }), h = new MA(new XI(), r);
8778
8778
  let c = !1;
8779
8779
  const l = A.background;
8780
8780
  l ? l.isColor && (r.color.copy(l), A.background = null, c = !0) : (r.color.copy(B0), c = !0);
@@ -10492,7 +10492,7 @@ function Mx(t, A, I, g, i, e, C) {
10492
10492
  physicallyCorrectLights: t.physicallyCorrectLights,
10493
10493
  premultipliedAlpha: S.premultipliedAlpha,
10494
10494
  doubleSided: S.side === Tg,
10495
- flipSided: S.side === oe,
10495
+ flipSided: S.side === Be,
10496
10496
  useDepthPacking: !!S.depthPacking,
10497
10497
  depthPacking: S.depthPacking || 0,
10498
10498
  index0AttributeName: S.index0AttributeName,
@@ -10961,7 +10961,7 @@ void main() {
10961
10961
  }`;
10962
10962
  function xx(t, A, I) {
10963
10963
  let g = new Kl();
10964
- const i = new QA(), e = new QA(), C = new sI(), o = new sy({ depthPacking: NU }), B = new Qy(), s = {}, Q = I.maxTextureSize, a = { 0: oe, 1: Je, 2: Tg }, n = new Dg({
10964
+ const i = new QA(), e = new QA(), C = new sI(), o = new sy({ depthPacking: NU }), B = new Qy(), s = {}, Q = I.maxTextureSize, a = { 0: Be, 1: Je, 2: Tg }, n = new Dg({
10965
10965
  defines: {
10966
10966
  VSM_SAMPLES: 8
10967
10967
  },
@@ -11142,11 +11142,11 @@ function Hx(t, A, I) {
11142
11142
  setMask: function(gg) {
11143
11143
  V !== gg && !Z && (t.stencilMask(gg), V = gg);
11144
11144
  },
11145
- setFunc: function(gg, Bt, $i) {
11146
- (mA !== gg || II !== Bt || QI !== $i) && (t.stencilFunc(gg, Bt, $i), mA = gg, II = Bt, QI = $i);
11145
+ setFunc: function(gg, Bt, Ae) {
11146
+ (mA !== gg || II !== Bt || QI !== Ae) && (t.stencilFunc(gg, Bt, Ae), mA = gg, II = Bt, QI = Ae);
11147
11147
  },
11148
- setOp: function(gg, Bt, $i) {
11149
- (OI !== gg || Lg !== Bt || ii !== $i) && (t.stencilOp(gg, Bt, $i), OI = gg, Lg = Bt, ii = $i);
11148
+ setOp: function(gg, Bt, Ae) {
11149
+ (OI !== gg || Lg !== Bt || ii !== Ae) && (t.stencilOp(gg, Bt, Ae), OI = gg, Lg = Bt, ii = Ae);
11150
11150
  },
11151
11151
  setLocked: function(gg) {
11152
11152
  Z = gg;
@@ -11279,7 +11279,7 @@ function Hx(t, A, I) {
11279
11279
  }
11280
11280
  function jA(Z, V) {
11281
11281
  Z.side === Tg ? qA(2884) : _A(2884);
11282
- let mA = Z.side === oe;
11282
+ let mA = Z.side === Be;
11283
11283
  V && (mA = !mA), KA(mA), Z.blending === WC && Z.transparent === !1 ? RA(PC) : RA(Z.blending, Z.blendEquation, Z.blendSrc, Z.blendDst, Z.blendEquationAlpha, Z.blendSrcAlpha, Z.blendDstAlpha, Z.premultipliedAlpha), B.setFunc(Z.depthFunc), B.setTest(Z.depthTest), B.setMask(Z.depthWrite), o.setMask(Z.colorWrite);
11284
11284
  const II = Z.stencilWrite;
11285
11285
  s.setTest(II), II && (s.setMask(Z.stencilWriteMask), s.setFunc(Z.stencilFunc, Z.stencilRef, Z.stencilFuncMask), s.setOp(Z.stencilFail, Z.stencilZFail, Z.stencilZPass)), AI(Z.polygonOffset, Z.polygonOffsetFactor, Z.polygonOffsetUnits), Z.alphaToCoverage === !0 ? _A(32926) : qA(32926);
@@ -12339,7 +12339,7 @@ function _x(t, A) {
12339
12339
  l.isMeshBasicMaterial || l.isMeshLambertMaterial ? i(c, l) : l.isMeshToonMaterial ? (i(c, l), Q(c, l)) : l.isMeshPhongMaterial ? (i(c, l), s(c, l)) : l.isMeshStandardMaterial ? (i(c, l), a(c, l), l.isMeshPhysicalMaterial && n(c, l, D)) : l.isMeshMatcapMaterial ? (i(c, l), r(c, l)) : l.isMeshDepthMaterial ? i(c, l) : l.isMeshDistanceMaterial ? (i(c, l), h(c, l)) : l.isMeshNormalMaterial ? i(c, l) : l.isLineBasicMaterial ? (e(c, l), l.isLineDashedMaterial && C(c, l)) : l.isPointsMaterial ? o(c, l, w, p) : l.isSpriteMaterial ? B(c, l) : l.isShadowMaterial ? (c.color.value.copy(l.color), c.opacity.value = l.opacity) : l.isShaderMaterial && (l.uniformsNeedUpdate = !1);
12340
12340
  }
12341
12341
  function i(c, l) {
12342
- c.opacity.value = l.opacity, l.color && c.diffuse.value.copy(l.color), l.emissive && c.emissive.value.copy(l.emissive).multiplyScalar(l.emissiveIntensity), l.map && (c.map.value = l.map), l.alphaMap && (c.alphaMap.value = l.alphaMap), l.bumpMap && (c.bumpMap.value = l.bumpMap, c.bumpScale.value = l.bumpScale, l.side === oe && (c.bumpScale.value *= -1)), l.displacementMap && (c.displacementMap.value = l.displacementMap, c.displacementScale.value = l.displacementScale, c.displacementBias.value = l.displacementBias), l.emissiveMap && (c.emissiveMap.value = l.emissiveMap), l.normalMap && (c.normalMap.value = l.normalMap, c.normalScale.value.copy(l.normalScale), l.side === oe && c.normalScale.value.negate()), l.specularMap && (c.specularMap.value = l.specularMap), l.alphaTest > 0 && (c.alphaTest.value = l.alphaTest);
12342
+ c.opacity.value = l.opacity, l.color && c.diffuse.value.copy(l.color), l.emissive && c.emissive.value.copy(l.emissive).multiplyScalar(l.emissiveIntensity), l.map && (c.map.value = l.map), l.alphaMap && (c.alphaMap.value = l.alphaMap), l.bumpMap && (c.bumpMap.value = l.bumpMap, c.bumpScale.value = l.bumpScale, l.side === Be && (c.bumpScale.value *= -1)), l.displacementMap && (c.displacementMap.value = l.displacementMap, c.displacementScale.value = l.displacementScale, c.displacementBias.value = l.displacementBias), l.emissiveMap && (c.emissiveMap.value = l.emissiveMap), l.normalMap && (c.normalMap.value = l.normalMap, c.normalScale.value.copy(l.normalScale), l.side === Be && c.normalScale.value.negate()), l.specularMap && (c.specularMap.value = l.specularMap), l.alphaTest > 0 && (c.alphaTest.value = l.alphaTest);
12343
12343
  const w = A.get(l).envMap;
12344
12344
  if (w && (c.envMap.value = w, c.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, c.reflectivity.value = l.reflectivity, c.ior.value = l.ior, c.refractionRatio.value = l.refractionRatio), l.lightMap) {
12345
12345
  c.lightMap.value = l.lightMap;
@@ -12378,7 +12378,7 @@ function _x(t, A) {
12378
12378
  c.roughness.value = l.roughness, c.metalness.value = l.metalness, l.roughnessMap && (c.roughnessMap.value = l.roughnessMap), l.metalnessMap && (c.metalnessMap.value = l.metalnessMap), A.get(l).envMap && (c.envMapIntensity.value = l.envMapIntensity);
12379
12379
  }
12380
12380
  function n(c, l, w) {
12381
- c.ior.value = l.ior, l.sheen > 0 && (c.sheenColor.value.copy(l.sheenColor).multiplyScalar(l.sheen), c.sheenRoughness.value = l.sheenRoughness, l.sheenColorMap && (c.sheenColorMap.value = l.sheenColorMap), l.sheenRoughnessMap && (c.sheenRoughnessMap.value = l.sheenRoughnessMap)), l.clearcoat > 0 && (c.clearcoat.value = l.clearcoat, c.clearcoatRoughness.value = l.clearcoatRoughness, l.clearcoatMap && (c.clearcoatMap.value = l.clearcoatMap), l.clearcoatRoughnessMap && (c.clearcoatRoughnessMap.value = l.clearcoatRoughnessMap), l.clearcoatNormalMap && (c.clearcoatNormalScale.value.copy(l.clearcoatNormalScale), c.clearcoatNormalMap.value = l.clearcoatNormalMap, l.side === oe && c.clearcoatNormalScale.value.negate())), l.iridescence > 0 && (c.iridescence.value = l.iridescence, c.iridescenceIOR.value = l.iridescenceIOR, c.iridescenceThicknessMinimum.value = l.iridescenceThicknessRange[0], c.iridescenceThicknessMaximum.value = l.iridescenceThicknessRange[1], l.iridescenceMap && (c.iridescenceMap.value = l.iridescenceMap), l.iridescenceThicknessMap && (c.iridescenceThicknessMap.value = l.iridescenceThicknessMap)), l.transmission > 0 && (c.transmission.value = l.transmission, c.transmissionSamplerMap.value = w.texture, c.transmissionSamplerSize.value.set(w.width, w.height), l.transmissionMap && (c.transmissionMap.value = l.transmissionMap), c.thickness.value = l.thickness, l.thicknessMap && (c.thicknessMap.value = l.thicknessMap), c.attenuationDistance.value = l.attenuationDistance, c.attenuationColor.value.copy(l.attenuationColor)), c.specularIntensity.value = l.specularIntensity, c.specularColor.value.copy(l.specularColor), l.specularIntensityMap && (c.specularIntensityMap.value = l.specularIntensityMap), l.specularColorMap && (c.specularColorMap.value = l.specularColorMap);
12381
+ c.ior.value = l.ior, l.sheen > 0 && (c.sheenColor.value.copy(l.sheenColor).multiplyScalar(l.sheen), c.sheenRoughness.value = l.sheenRoughness, l.sheenColorMap && (c.sheenColorMap.value = l.sheenColorMap), l.sheenRoughnessMap && (c.sheenRoughnessMap.value = l.sheenRoughnessMap)), l.clearcoat > 0 && (c.clearcoat.value = l.clearcoat, c.clearcoatRoughness.value = l.clearcoatRoughness, l.clearcoatMap && (c.clearcoatMap.value = l.clearcoatMap), l.clearcoatRoughnessMap && (c.clearcoatRoughnessMap.value = l.clearcoatRoughnessMap), l.clearcoatNormalMap && (c.clearcoatNormalScale.value.copy(l.clearcoatNormalScale), c.clearcoatNormalMap.value = l.clearcoatNormalMap, l.side === Be && c.clearcoatNormalScale.value.negate())), l.iridescence > 0 && (c.iridescence.value = l.iridescence, c.iridescenceIOR.value = l.iridescenceIOR, c.iridescenceThicknessMinimum.value = l.iridescenceThicknessRange[0], c.iridescenceThicknessMaximum.value = l.iridescenceThicknessRange[1], l.iridescenceMap && (c.iridescenceMap.value = l.iridescenceMap), l.iridescenceThicknessMap && (c.iridescenceThicknessMap.value = l.iridescenceThicknessMap)), l.transmission > 0 && (c.transmission.value = l.transmission, c.transmissionSamplerMap.value = w.texture, c.transmissionSamplerSize.value.set(w.width, w.height), l.transmissionMap && (c.transmissionMap.value = l.transmissionMap), c.thickness.value = l.thickness, l.thicknessMap && (c.thicknessMap.value = l.thicknessMap), c.attenuationDistance.value = l.attenuationDistance, c.attenuationColor.value.copy(l.attenuationColor)), c.specularIntensity.value = l.specularIntensity, c.specularColor.value.copy(l.specularColor), l.specularIntensityMap && (c.specularIntensityMap.value = l.specularIntensityMap), l.specularColorMap && (c.specularColorMap.value = l.specularColorMap);
12382
12382
  }
12383
12383
  function r(c, l) {
12384
12384
  l.matcap && (c.matcap.value = l.matcap);
@@ -12671,7 +12671,7 @@ function An(t = {}) {
12671
12671
  WA.render(kA, SA);
12672
12672
  }, this.compile = function(b, tA) {
12673
12673
  function eA(iA, wA, U) {
12674
- iA.transparent === !0 && iA.side === Tg ? (iA.side = oe, iA.needsUpdate = !0, $i(iA, wA, U), iA.side = Je, iA.needsUpdate = !0, $i(iA, wA, U), iA.side = Tg) : $i(iA, wA, U);
12674
+ iA.transparent === !0 && iA.side === Tg ? (iA.side = Be, iA.needsUpdate = !0, Ae(iA, wA, U), iA.side = Je, iA.needsUpdate = !0, Ae(iA, wA, U), iA.side = Tg) : Ae(iA, wA, U);
12675
12675
  }
12676
12676
  n = x.get(b), n.init(), h.push(n), b.traverseVisible(function(iA) {
12677
12677
  iA.isLight && iA.layers.test(tA.layers) && (n.pushLight(iA), iA.castShadow && n.pushShadow(iA));
@@ -12777,9 +12777,9 @@ function An(t = {}) {
12777
12777
  }
12778
12778
  }
12779
12779
  function Bt(b, tA, eA, iA, wA, U) {
12780
- b.onBeforeRender(c, tA, eA, iA, wA, U), b.modelViewMatrix.multiplyMatrices(eA.matrixWorldInverse, b.matrixWorld), b.normalMatrix.getNormalMatrix(b.modelViewMatrix), wA.onBeforeRender(c, tA, eA, iA, b, U), wA.transparent === !0 && wA.side === Tg ? (wA.side = oe, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Je, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Tg) : c.renderBufferDirect(eA, tA, iA, wA, b, U), b.onAfterRender(c, tA, eA, iA, wA, U);
12780
+ b.onBeforeRender(c, tA, eA, iA, wA, U), b.modelViewMatrix.multiplyMatrices(eA.matrixWorldInverse, b.matrixWorld), b.normalMatrix.getNormalMatrix(b.modelViewMatrix), wA.onBeforeRender(c, tA, eA, iA, b, U), wA.transparent === !0 && wA.side === Tg ? (wA.side = Be, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Je, wA.needsUpdate = !0, c.renderBufferDirect(eA, tA, iA, wA, b, U), wA.side = Tg) : c.renderBufferDirect(eA, tA, iA, wA, b, U), b.onAfterRender(c, tA, eA, iA, wA, U);
12781
12781
  }
12782
- function $i(b, tA, eA) {
12782
+ function Ae(b, tA, eA) {
12783
12783
  tA.isScene !== !0 && (tA = uA);
12784
12784
  const iA = cA.get(b), wA = n.state.lights, U = n.state.shadowsArray, J = wA.state.version, v = AI.getParameters(b, wA.state, U, tA, eA), j = AI.getProgramCacheKey(v);
12785
12785
  let oA = iA.programs;
@@ -12809,7 +12809,7 @@ function An(t = {}) {
12809
12809
  let BI = !1;
12810
12810
  iA.version === NA.__version ? (NA.needsLights && NA.lightsStateVersion !== cI.state.version || NA.outputEncoding !== v || wA.isInstancedMesh && NA.instancing === !1 || !wA.isInstancedMesh && NA.instancing === !0 || wA.isSkinnedMesh && NA.skinning === !1 || !wA.isSkinnedMesh && NA.skinning === !0 || NA.envMap !== j || iA.fog === !0 && NA.fog !== U || NA.numClippingPlanes !== void 0 && (NA.numClippingPlanes !== L.numPlanes || NA.numIntersection !== L.numIntersection) || NA.vertexAlphas !== oA || NA.vertexTangents !== IA || NA.morphTargets !== lA || NA.morphNormals !== kA || NA.morphColors !== LA || NA.toneMapping !== SA || PA.isWebGL2 === !0 && NA.morphTargetsCount !== WA) && (BI = !0) : (BI = !0, NA.__version = iA.version);
12811
12811
  let iI = NA.currentProgram;
12812
- BI === !0 && (iI = $i(iA, tA, wA));
12812
+ BI === !0 && (iI = Ae(iA, tA, wA));
12813
12813
  let nI = !1, GI = !1, ig = !1;
12814
12814
  const JI = iI.getUniforms(), kg = NA.uniforms;
12815
12815
  if (UA.useProgram(iI.program) && (nI = !0, GI = !0, ig = !0), iA.id !== d && (d = iA.id, GI = !0), nI || u !== b) {
@@ -12834,7 +12834,7 @@ function An(t = {}) {
12834
12834
  const jI = eA.morphAttributes;
12835
12835
  if ((jI.position !== void 0 || jI.normal !== void 0 || jI.color !== void 0 && PA.isWebGL2 === !0) && FA.update(wA, eA, iA, iI), (GI || NA.receiveShadow !== wA.receiveShadow) && (NA.receiveShadow = wA.receiveShadow, JI.setValue(z, "receiveShadow", wA.receiveShadow)), iA.isMeshGouraudMaterial && iA.envMap !== null && (kg.envMap.value = j, kg.flipEnvMap.value = j.isCubeTexture && j.isRenderTargetTexture === !1 ? -1 : 1), GI && (JI.setValue(z, "toneMappingExposure", c.toneMappingExposure), NA.needsLights && Gs(kg, ig), U && iA.fog === !0 && MI.refreshFogUniforms(kg, U), MI.refreshMaterialUniforms(kg, iA, N, M, EA), jh.upload(z, NA.uniformsList, kg, DA)), iA.isShaderMaterial && iA.uniformsNeedUpdate === !0 && (jh.upload(z, NA.uniformsList, kg, DA), iA.uniformsNeedUpdate = !1), iA.isSpriteMaterial && JI.setValue(z, "center", wA.center), JI.setValue(z, "modelViewMatrix", wA.modelViewMatrix), JI.setValue(z, "normalMatrix", wA.normalMatrix), JI.setValue(z, "modelMatrix", wA.matrixWorld), iA.isShaderMaterial || iA.isRawShaderMaterial) {
12836
12836
  const dI = iA.uniformsGroups;
12837
- for (let rg = 0, Ae = dI.length; rg < Ae; rg++)
12837
+ for (let rg = 0, Ie = dI.length; rg < Ie; rg++)
12838
12838
  if (PA.isWebGL2) {
12839
12839
  const Mg = dI[rg];
12840
12840
  pA.update(Mg, iI), pA.bind(Mg, iI);
@@ -15811,7 +15811,7 @@ function V0(t, A, I) {
15811
15811
  }
15812
15812
  var z0 = /* @__PURE__ */ Object.freeze({
15813
15813
  __proto__: null,
15814
- BoxGeometry: zI,
15814
+ BoxGeometry: XI,
15815
15815
  CapsuleGeometry: KE,
15816
15816
  CircleGeometry: JE,
15817
15817
  ConeGeometry: qE,
@@ -15822,7 +15822,7 @@ var z0 = /* @__PURE__ */ Object.freeze({
15822
15822
  IcosahedronGeometry: gn,
15823
15823
  LatheGeometry: In,
15824
15824
  OctahedronGeometry: zt,
15825
- PlaneGeometry: ae,
15825
+ PlaneGeometry: zi,
15826
15826
  PolyhedronGeometry: Co,
15827
15827
  RingGeometry: en,
15828
15828
  ShapeGeometry: bE,
@@ -19959,7 +19959,7 @@ class Sv extends RE {
19959
19959
  console.warn("THREE.DataTexture3D has been renamed to Data3DTexture."), super(A, I, g, i);
19960
19960
  }
19961
19961
  }
19962
- class fv extends zI {
19962
+ class fv extends XI {
19963
19963
  constructor(A, I, g, i, e, C) {
19964
19964
  console.warn("THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry."), super(A, I, g, i, e, C);
19965
19965
  }
@@ -20009,7 +20009,7 @@ class Kv extends zt {
20009
20009
  console.warn("THREE.OctahedronBufferGeometry has been renamed to THREE.OctahedronGeometry."), super(A, I);
20010
20010
  }
20011
20011
  }
20012
- class HR extends ae {
20012
+ class HR extends zi {
20013
20013
  constructor(A, I, g, i) {
20014
20014
  console.warn("THREE.PlaneBufferGeometry has been renamed to THREE.PlaneGeometry."), super(A, I, g, i);
20015
20015
  }
@@ -20084,7 +20084,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20084
20084
  AudioListener: Ly,
20085
20085
  AudioLoader: Jc,
20086
20086
  AxesHelper: on,
20087
- BackSide: oe,
20087
+ BackSide: Be,
20088
20088
  BasicDepthPacking: FU,
20089
20089
  BasicShadowMap: uJ,
20090
20090
  Bone: Yl,
@@ -20093,7 +20093,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20093
20093
  Box3: Ji,
20094
20094
  Box3Helper: rv,
20095
20095
  BoxBufferGeometry: fv,
20096
- BoxGeometry: zI,
20096
+ BoxGeometry: XI,
20097
20097
  BoxHelper: zl,
20098
20098
  BufferAttribute: EI,
20099
20099
  BufferGeometry: hI,
@@ -20259,7 +20259,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20259
20259
  MOUSE: kB,
20260
20260
  Material: fg,
20261
20261
  MaterialLoader: Wl,
20262
- MathUtils: ne,
20262
+ MathUtils: ae,
20263
20263
  Matrix3: Og,
20264
20264
  Matrix4: XA,
20265
20265
  MaxEquation: iu,
@@ -20312,7 +20312,7 @@ const Tv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20312
20312
  PerspectiveCamera: Eg,
20313
20313
  Plane: $e,
20314
20314
  PlaneBufferGeometry: HR,
20315
- PlaneGeometry: ae,
20315
+ PlaneGeometry: zi,
20316
20316
  PlaneHelper: hv,
20317
20317
  PointLight: _l,
20318
20318
  PointLightHelper: Qv,
@@ -21582,7 +21582,7 @@ const lQ = class {
21582
21582
  }
21583
21583
  };
21584
21584
  let Et = lQ;
21585
- E(Et, "planeGeometry", new ae(2, 2, 1, 1)), E(Et, "renderer", new An({ antialias: !1 })), E(Et, "perspectiveCam", new Eg()), E(Et, "scene", new jo()), E(Et, "vertex", `
21585
+ E(Et, "planeGeometry", new zi(2, 2, 1, 1)), E(Et, "renderer", new An({ antialias: !1 })), E(Et, "perspectiveCam", new Eg()), E(Et, "scene", new jo()), E(Et, "vertex", `
21586
21586
  varying vec2 vUv;
21587
21587
  void main(){
21588
21588
  vUv = uv;
@@ -22325,7 +22325,7 @@ Object.getOwnPropertyDescriptor(HA.prototype, "activeSelf") || Object.defineProp
22325
22325
  });
22326
22326
  ZT(HA);
22327
22327
  const Hu = Symbol("NEEDLE_NEED_UPDATE_INSTANCE");
22328
- class Be {
22328
+ class se {
22329
22329
  static isUsingInstancing(A) {
22330
22330
  return A.__isUsingInstancing === !0;
22331
22331
  }
@@ -22333,7 +22333,7 @@ class Be {
22333
22333
  static markDirty(A, I = !0) {
22334
22334
  if (A && (this.isUsingInstancing(A) && (A[Hu] = !0, A.matrixWorldNeedsUpdate = !0), I))
22335
22335
  for (const g of A.children)
22336
- Be.markDirty(g, !0);
22336
+ se.markDirty(g, !0);
22337
22337
  }
22338
22338
  }
22339
22339
  const Is = yA("debuggetcomponent");
@@ -22367,7 +22367,7 @@ function e2(t, A) {
22367
22367
  t.__isUsingInstancing = A;
22368
22368
  }
22369
22369
  function Wy(t) {
22370
- return Be.isUsingInstancing(t);
22370
+ return se.isUsingInstancing(t);
22371
22371
  }
22372
22372
  function ID(t, A) {
22373
22373
  return FQ(t, A, !0, !0);
@@ -24520,10 +24520,10 @@ class FI {
24520
24520
  A.x = I.x, A.y = I.y, A.z = I.z, A.w = I.w;
24521
24521
  }
24522
24522
  }
24523
- var te, Zg, Tu, we, vQ, xI, Wc, OB, Ou, Zc, _u, Pu;
24523
+ var Ce, Zg, Tu, we, vQ, xI, Wc, OB, Ou, Zc, _u, Pu;
24524
24524
  (function(t) {
24525
24525
  t[t.Dynamic = 0] = "Dynamic", t[t.Fixed = 1] = "Fixed", t[t.KinematicPositionBased = 2] = "KinematicPositionBased", t[t.KinematicVelocityBased = 3] = "KinematicVelocityBased";
24526
- })(te || (te = {}));
24526
+ })(Ce || (Ce = {}));
24527
24527
  class jc {
24528
24528
  constructor(A, I, g) {
24529
24529
  this.rawSet = A, this.colliderSet = I, this.handle = g;
@@ -24706,28 +24706,28 @@ class vt {
24706
24706
  this.status = A, this.translation = CA.zeros(), this.rotation = FI.identity(), this.gravityScale = 1, this.linvel = CA.zeros(), this.mass = 0, this.massOnly = !1, this.centerOfMass = CA.zeros(), this.translationsEnabledX = !0, this.translationsEnabledY = !0, this.angvel = CA.zeros(), this.principalAngularInertia = CA.zeros(), this.angularInertiaLocalFrame = FI.identity(), this.translationsEnabledZ = !0, this.rotationsEnabledX = !0, this.rotationsEnabledY = !0, this.rotationsEnabledZ = !0, this.linearDamping = 0, this.angularDamping = 0, this.canSleep = !0, this.sleeping = !1, this.ccdEnabled = !1, this.dominanceGroup = 0;
24707
24707
  }
24708
24708
  static dynamic() {
24709
- return new vt(te.Dynamic);
24709
+ return new vt(Ce.Dynamic);
24710
24710
  }
24711
24711
  static kinematicPositionBased() {
24712
- return new vt(te.KinematicPositionBased);
24712
+ return new vt(Ce.KinematicPositionBased);
24713
24713
  }
24714
24714
  static kinematicVelocityBased() {
24715
- return new vt(te.KinematicVelocityBased);
24715
+ return new vt(Ce.KinematicVelocityBased);
24716
24716
  }
24717
24717
  static fixed() {
24718
- return new vt(te.Fixed);
24718
+ return new vt(Ce.Fixed);
24719
24719
  }
24720
24720
  static newDynamic() {
24721
- return new vt(te.Dynamic);
24721
+ return new vt(Ce.Dynamic);
24722
24722
  }
24723
24723
  static newKinematicPositionBased() {
24724
- return new vt(te.KinematicPositionBased);
24724
+ return new vt(Ce.KinematicPositionBased);
24725
24725
  }
24726
24726
  static newKinematicVelocityBased() {
24727
- return new vt(te.KinematicVelocityBased);
24727
+ return new vt(Ce.KinematicVelocityBased);
24728
24728
  }
24729
24729
  static newStatic() {
24730
- return new vt(te.Fixed);
24730
+ return new vt(Ce.Fixed);
24731
24731
  }
24732
24732
  setDominanceGroup(A) {
24733
24733
  return this.dominanceGroup = A, this;
@@ -26206,41 +26206,41 @@ class XE {
26206
26206
  this.bodies.forEachActiveRigidBody(this.islands, A);
26207
26207
  }
26208
26208
  castRay(A, I, g, i, e, C, o, B) {
26209
- return this.queryPipeline.castRay(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26209
+ return this.queryPipeline.castRay(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26210
26210
  }
26211
26211
  castRayAndGetNormal(A, I, g, i, e, C, o, B) {
26212
- return this.queryPipeline.castRayAndGetNormal(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26212
+ return this.queryPipeline.castRayAndGetNormal(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26213
26213
  }
26214
26214
  intersectionsWithRay(A, I, g, i, e, C, o, B, s) {
26215
- this.queryPipeline.intersectionsWithRay(this.bodies, this.colliders, A, I, g, i, e, C, o ? o.handle : null, B ? B.handle : null, Ie(this.colliders, s));
26215
+ this.queryPipeline.intersectionsWithRay(this.bodies, this.colliders, A, I, g, i, e, C, o ? o.handle : null, B ? B.handle : null, ge(this.colliders, s));
26216
26216
  }
26217
26217
  intersectionWithShape(A, I, g, i, e, C, o, B) {
26218
- let s = this.queryPipeline.intersectionWithShape(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, Ie(this.colliders, B));
26218
+ let s = this.queryPipeline.intersectionWithShape(this.bodies, this.colliders, A, I, g, i, e, C ? C.handle : null, o ? o.handle : null, ge(this.colliders, B));
26219
26219
  return s != null ? this.colliders.get(s) : null;
26220
26220
  }
26221
26221
  projectPoint(A, I, g, i, e, C, o) {
26222
- return this.queryPipeline.projectPoint(this.bodies, this.colliders, A, I, g, i, e ? e.handle : null, C ? C.handle : null, Ie(this.colliders, o));
26222
+ return this.queryPipeline.projectPoint(this.bodies, this.colliders, A, I, g, i, e ? e.handle : null, C ? C.handle : null, ge(this.colliders, o));
26223
26223
  }
26224
26224
  projectPointAndGetFeature(A, I, g, i, e, C) {
26225
- return this.queryPipeline.projectPointAndGetFeature(this.bodies, this.colliders, A, I, g, i ? i.handle : null, e ? e.handle : null, Ie(this.colliders, C));
26225
+ return this.queryPipeline.projectPointAndGetFeature(this.bodies, this.colliders, A, I, g, i ? i.handle : null, e ? e.handle : null, ge(this.colliders, C));
26226
26226
  }
26227
26227
  intersectionsWithPoint(A, I, g, i, e, C, o) {
26228
- this.queryPipeline.intersectionsWithPoint(this.bodies, this.colliders, A, Ie(this.colliders, I), g, i, e ? e.handle : null, C ? C.handle : null, Ie(this.colliders, o));
26228
+ this.queryPipeline.intersectionsWithPoint(this.bodies, this.colliders, A, ge(this.colliders, I), g, i, e ? e.handle : null, C ? C.handle : null, ge(this.colliders, o));
26229
26229
  }
26230
26230
  castShape(A, I, g, i, e, C, o, B, s, Q) {
26231
- return this.queryPipeline.castShape(this.bodies, this.colliders, A, I, g, i, e, C, o, B ? B.handle : null, s ? s.handle : null, Ie(this.colliders, Q));
26231
+ return this.queryPipeline.castShape(this.bodies, this.colliders, A, I, g, i, e, C, o, B ? B.handle : null, s ? s.handle : null, ge(this.colliders, Q));
26232
26232
  }
26233
26233
  intersectionsWithShape(A, I, g, i, e, C, o, B, s) {
26234
- this.queryPipeline.intersectionsWithShape(this.bodies, this.colliders, A, I, g, Ie(this.colliders, i), e, C, o ? o.handle : null, B ? B.handle : null, Ie(this.colliders, s));
26234
+ this.queryPipeline.intersectionsWithShape(this.bodies, this.colliders, A, I, g, ge(this.colliders, i), e, C, o ? o.handle : null, B ? B.handle : null, ge(this.colliders, s));
26235
26235
  }
26236
26236
  collidersWithAabbIntersectingAabb(A, I, g) {
26237
- this.queryPipeline.collidersWithAabbIntersectingAabb(A, I, Ie(this.colliders, g));
26237
+ this.queryPipeline.collidersWithAabbIntersectingAabb(A, I, ge(this.colliders, g));
26238
26238
  }
26239
26239
  contactsWith(A, I) {
26240
- this.narrowPhase.contactsWith(A.handle, Ie(this.colliders, I));
26240
+ this.narrowPhase.contactsWith(A.handle, ge(this.colliders, I));
26241
26241
  }
26242
26242
  intersectionsWith(A, I) {
26243
- this.narrowPhase.intersectionsWith(A.handle, Ie(this.colliders, I));
26243
+ this.narrowPhase.intersectionsWith(A.handle, ge(this.colliders, I));
26244
26244
  }
26245
26245
  contactPair(A, I, g) {
26246
26246
  this.narrowPhase.contactPair(A.handle, I.handle, g);
@@ -26249,7 +26249,7 @@ class XE {
26249
26249
  return this.narrowPhase.intersectionPair(A.handle, I.handle);
26250
26250
  }
26251
26251
  }
26252
- function Ie(t, A) {
26252
+ function ge(t, A) {
26253
26253
  return (I) => A ? A(t.get(I)) : void 0;
26254
26254
  }
26255
26255
  (function(t) {
@@ -26389,7 +26389,7 @@ function c2() {
26389
26389
  }
26390
26390
  je["-".charCodeAt(0)] = 62, je["_".charCodeAt(0)] = 63;
26391
26391
  var MC = Object.freeze({ __proto__: null, version: c2, Vector3: wF, VectorOps: CA, Quaternion: vu, RotationOps: FI, get RigidBodyType() {
26392
- return te;
26392
+ return Ce;
26393
26393
  }, RigidBody: jc, RigidBodyDesc: vt, RigidBodySet: uF, IntegrationParameters: pF, get JointType() {
26394
26394
  return Zg;
26395
26395
  }, get MotorModel() {
@@ -26451,7 +26451,7 @@ class OQ {
26451
26451
  }
26452
26452
  }
26453
26453
  E(OQ, "_up", new k(0, 1, 0));
26454
- const l2 = new zI(1, 1, 1);
26454
+ const l2 = new XI(1, 1, 1);
26455
26455
  function _F(t = null) {
26456
26456
  const A = new T(t ?? 14540253), I = new Sy(l2);
26457
26457
  return new Ye(I, new qg({ color: A }));
@@ -26462,7 +26462,7 @@ class Wi {
26462
26462
  static getBox(A) {
26463
26463
  let I = this.boxesCache.pop();
26464
26464
  if (!I) {
26465
- const g = new zI(1, 1, 1);
26465
+ const g = new XI(1, 1, 1);
26466
26466
  I = new MA(g);
26467
26467
  }
26468
26468
  return this.registerTimedObject(NI.Current, I, A, this.boxesCache), I;
@@ -26856,9 +26856,9 @@ const LB = class {
26856
26856
  syncPhysicsBody(A, I, g, i) {
26857
26857
  const e = yI(A, this._tempPosition), C = Fe(A, this._tempQuaternion);
26858
26858
  switch (I.bodyType()) {
26859
- case te.Fixed:
26860
- case te.KinematicPositionBased:
26861
- case te.KinematicVelocityBased:
26859
+ case Ce.Fixed:
26860
+ case Ce.KinematicPositionBased:
26861
+ case Ce.KinematicVelocityBased:
26862
26862
  g && I.setNextKinematicTranslation(e), i && I.setNextKinematicRotation(C);
26863
26863
  break;
26864
26864
  default:
@@ -32122,7 +32122,7 @@ class J2 extends K2 {
32122
32122
  }
32123
32123
  }
32124
32124
  let ah = "wss://needle-tiny-starter.glitch.me/socket";
32125
- const ie = !!yA("debugnet"), Eh = !!(ie || yA("debugowner"));
32125
+ const ee = !!yA("debugnet"), Eh = !!(ee || yA("debugowner"));
32126
32126
  var Vg = /* @__PURE__ */ ((t) => (t.Join = "join-room", t.Leave = "leave-room", t.JoinedRoom = "joined-room", t.LeftRoom = "left-room", t.UserJoinedRoom = "user-joined-room", t.UserLeftRoom = "user-left-room", t))(Vg || {});
32127
32127
  class cS {
32128
32128
  constructor(A, I) {
@@ -32225,7 +32225,7 @@ class q2 {
32225
32225
  return this._connectionId;
32226
32226
  }
32227
32227
  get isDebugEnabled() {
32228
- return ie;
32228
+ return ee;
32229
32229
  }
32230
32230
  get isConnected() {
32231
32231
  return this.connected;
@@ -32256,7 +32256,7 @@ class q2 {
32256
32256
  return A;
32257
32257
  }
32258
32258
  joinRoom(A, I = !1) {
32259
- this.connect(), ie && console.log("join: " + A), this.send("join-room", { room: A, viewOnly: I }, ye.OnConnection);
32259
+ this.connect(), ee && console.log("join: " + A), this.send("join-room", { room: A, viewOnly: I }, ye.OnConnection);
32260
32260
  }
32261
32261
  leaveRoom(A = null) {
32262
32262
  if (A || (A = this.currentRoomName), !A) {
@@ -32280,7 +32280,7 @@ class q2 {
32280
32280
  }
32281
32281
  sendBinary(A) {
32282
32282
  var I;
32283
- ie && console.log("<< bin", A.length), (I = this._ws) == null || I.send(A);
32283
+ ee && console.log("<< bin", A.length), (I = this._ws) == null || I.send(A);
32284
32284
  }
32285
32285
  sendBufferedMessagesNow() {
32286
32286
  var g;
@@ -32297,7 +32297,7 @@ class q2 {
32297
32297
  const C = this.toMessage(e.key, e.value);
32298
32298
  this._defaultMessagesBufferArray.push(C);
32299
32299
  }
32300
- if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && ie && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
32300
+ if (this._defaultMessagesBuffer.length = 0, this._defaultMessagesBufferArray.length > 0 && ee && console.log("SEND BUFFERED", this._defaultMessagesBufferArray.length), this._defaultMessagesBufferArray.length <= 0)
32301
32301
  return;
32302
32302
  const I = JSON.stringify(this._defaultMessagesBufferArray);
32303
32303
  (g = this._ws) == null || g.send(I);
@@ -32327,7 +32327,7 @@ class q2 {
32327
32327
  var I;
32328
32328
  if (this.connected)
32329
32329
  return;
32330
- ie && console.log("connecting");
32330
+ ee && console.log("connecting");
32331
32331
  const A = (I = this.netWebSocketUrlProvider) == null ? void 0 : I.getWebsocketUrl();
32332
32332
  A ? ah = A : QJ() && (ah = "wss://" + window.location.host + "/socket"), this.connectWebsocket();
32333
32333
  }
@@ -32360,7 +32360,7 @@ class q2 {
32360
32360
  this.handleIncomingStringMessage(i);
32361
32361
  return;
32362
32362
  } catch {
32363
- ie && g === "pong" && console.log("<<", g);
32363
+ ee && g === "pong" && console.log("<<", g);
32364
32364
  }
32365
32365
  }
32366
32366
  async handleIncomingBinaryMessage(A) {
@@ -32375,7 +32375,7 @@ class q2 {
32375
32375
  }
32376
32376
  handleIncomingStringMessage(A) {
32377
32377
  var i, e;
32378
- if (ie && console.log("<<", A.key ?? A), A.key)
32378
+ if (ee && console.log("<<", A.key ?? A), A.key)
32379
32379
  switch (A.key) {
32380
32380
  case "connection-start-info":
32381
32381
  if (A.data) {
@@ -32389,10 +32389,10 @@ class q2 {
32389
32389
  console.warn("Expected connection id in " + A.key);
32390
32390
  break;
32391
32391
  case "joined-room":
32392
- if (ie && console.log(A), A) {
32392
+ if (ee && console.log(A), A) {
32393
32393
  this._isInRoom = !0;
32394
32394
  const B = A;
32395
- this._currentRoomName = B.room, this._currentRoomViewId = B.viewId, this._currentRoomAllowEditing = B.allowEditing ?? !0, console.log("Room view id", this._currentRoomViewId), this._currentInRoom.length = 0, this._currentInRoom.push(...B.inRoom), ie && console.log("joined room with", this._currentInRoom, this.context.alias ?? "");
32395
+ this._currentRoomName = B.room, this._currentRoomViewId = B.viewId, this._currentRoomAllowEditing = B.allowEditing ?? !0, console.log("Room view id", this._currentRoomViewId), this._currentInRoom.length = 0, this._currentInRoom.push(...B.inRoom), ee && console.log("joined room with", this._currentInRoom, this.context.alias ?? "");
32396
32396
  }
32397
32397
  this.onSendQueued(ye.OnRoomJoin);
32398
32398
  break;
@@ -32402,7 +32402,7 @@ class q2 {
32402
32402
  case "user-joined-room":
32403
32403
  if (A.data) {
32404
32404
  const B = A.data;
32405
- this._currentInRoom.push(B.userId), ie && console.log(B.userId + " joined", "now in room:", this._currentInRoom);
32405
+ this._currentInRoom.push(B.userId), ee && console.log(B.userId + " joined", "now in room:", this._currentInRoom);
32406
32406
  }
32407
32407
  break;
32408
32408
  case "user-left-room":
@@ -32412,12 +32412,12 @@ class q2 {
32412
32412
  }
32413
32413
  break;
32414
32414
  case "all-room-state-deleted":
32415
- ie && console.log("RECEIVED all-room-state-deleted"), this._state = {};
32415
+ ee && console.log("RECEIVED all-room-state-deleted"), this._state = {};
32416
32416
  break;
32417
32417
  case "ping":
32418
32418
  case "pong":
32419
32419
  const o = (i = A.data) == null ? void 0 : i.time;
32420
- o && (this._currentDelay = this.context.time.time - o), ie && console.log("Current latency: " + this._currentDelay.toFixed(1) + " sec", "Clients in room: " + ((e = this._currentInRoom) == null ? void 0 : e.length));
32420
+ o && (this._currentDelay = this.context.time.time - o), ee && console.log("Current latency: " + this._currentDelay.toFixed(1) + " sec", "Clients in room: " + ((e = this._currentInRoom) == null ? void 0 : e.length));
32421
32421
  break;
32422
32422
  }
32423
32423
  const I = this._listeners[A.key];
@@ -32440,7 +32440,7 @@ class q2 {
32440
32440
  return;
32441
32441
  }
32442
32442
  const i = JSON.stringify(this.toMessage(A, I));
32443
- ie && console.log(">>", A), this._ws.send(i);
32443
+ ee && console.log(">>", A), this._ws.send(i);
32444
32444
  }
32445
32445
  onSendQueued(A) {
32446
32446
  const I = this._waitingForSocket[A];
@@ -34599,7 +34599,7 @@ function wO(t, A) {
34599
34599
  return {
34600
34600
  name: "",
34601
34601
  isLooping: !1,
34602
- guid: (A == null ? void 0 : A.generateUUID()) ?? ne.generateUUID(),
34602
+ guid: (A == null ? void 0 : A.generateUUID()) ?? ae.generateUUID(),
34603
34603
  index: -1,
34604
34604
  clip: new BC(t, 1, [])
34605
34605
  };
@@ -35256,7 +35256,7 @@ class tC extends vA {
35256
35256
  this.mixer.update(this.context.time.deltaTime);
35257
35257
  for (const g of this._handles)
35258
35258
  g._update();
35259
- ((I = this._handles) == null ? void 0 : I.length) > 0 && Be.markDirty(this.gameObject);
35259
+ ((I = this._handles) == null ? void 0 : I.length) > 0 && se.markDirty(this.gameObject);
35260
35260
  }
35261
35261
  }
35262
35262
  getAction(I) {
@@ -36900,7 +36900,7 @@ class A_ {
36900
36900
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
36901
36901
  return;
36902
36902
  }
36903
- return g.type === "perspective" ? I = new Eg(ne.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : g.type === "orthographic" && (I = new iB(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), g.name && (I.name = this.createUniqueName(g.name)), mo(I, g), Promise.resolve(I);
36903
+ return g.type === "perspective" ? I = new Eg(ae.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : g.type === "orthographic" && (I = new iB(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), g.name && (I.name = this.createUniqueName(g.name)), mo(I, g), Promise.resolve(I);
36904
36904
  }
36905
36905
  /**
36906
36906
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -38107,7 +38107,7 @@ class h_ {
38107
38107
  h.side = Tg;
38108
38108
  break;
38109
38109
  case 1:
38110
- h.side = oe;
38110
+ h.side = Be;
38111
38111
  break;
38112
38112
  case 2:
38113
38113
  h.side = Je;
@@ -38944,7 +38944,7 @@ function ON(t, A, I) {
38944
38944
  function tr(t, A) {
38945
38945
  return cs(t, A || {}, 0, 0);
38946
38946
  }
38947
- var se = /* @__PURE__ */ function() {
38947
+ var Qe = /* @__PURE__ */ function() {
38948
38948
  function t(A) {
38949
38949
  this.s = {}, this.p = new bI(0), this.ondata = A;
38950
38950
  }
@@ -38967,10 +38967,10 @@ var se = /* @__PURE__ */ function() {
38967
38967
  this.ondata = A, Dn([
38968
38968
  hn,
38969
38969
  function() {
38970
- return [et, se];
38970
+ return [et, Qe];
38971
38971
  }
38972
38972
  ], this, 0, function() {
38973
- var I = new se();
38973
+ var I = new Qe();
38974
38974
  onmessage = et(I);
38975
38975
  }, 7);
38976
38976
  }
@@ -39036,10 +39036,10 @@ function tl(t, A) {
39036
39036
  }
39037
39037
  var Cl = /* @__PURE__ */ function() {
39038
39038
  function t(A) {
39039
- this.v = 1, se.call(this, A);
39039
+ this.v = 1, Qe.call(this, A);
39040
39040
  }
39041
39041
  return t.prototype.push = function(A, I) {
39042
- if (se.prototype.e.call(this, A), this.v) {
39042
+ if (Qe.prototype.e.call(this, A), this.v) {
39043
39043
  var g = this.p.length > 3 ? kS(this.p) : 4;
39044
39044
  if (g >= this.p.length && !I)
39045
39045
  return;
@@ -39050,7 +39050,7 @@ var Cl = /* @__PURE__ */ function() {
39050
39050
  throw "invalid gzip stream";
39051
39051
  this.p = this.p.subarray(0, -8);
39052
39052
  }
39053
- se.prototype.c.call(this, I);
39053
+ Qe.prototype.c.call(this, I);
39054
39054
  }, t;
39055
39055
  }(), _N = /* @__PURE__ */ function() {
39056
39056
  function t(A) {
@@ -39058,7 +39058,7 @@ var Cl = /* @__PURE__ */ function() {
39058
39058
  hn,
39059
39059
  YN,
39060
39060
  function() {
39061
- return [et, se, Cl];
39061
+ return [et, Qe, Cl];
39062
39062
  }
39063
39063
  ], this, 0, function() {
39064
39064
  var I = new Cl();
@@ -39131,10 +39131,10 @@ function np(t, A) {
39131
39131
  }
39132
39132
  var Bl = /* @__PURE__ */ function() {
39133
39133
  function t(A) {
39134
- this.v = 1, se.call(this, A);
39134
+ this.v = 1, Qe.call(this, A);
39135
39135
  }
39136
39136
  return t.prototype.push = function(A, I) {
39137
- if (se.prototype.e.call(this, A), this.v) {
39137
+ if (Qe.prototype.e.call(this, A), this.v) {
39138
39138
  if (this.p.length < 2 && !I)
39139
39139
  return;
39140
39140
  this.p = this.p.subarray(2), this.v = 0;
@@ -39144,7 +39144,7 @@ var Bl = /* @__PURE__ */ function() {
39144
39144
  throw "invalid zlib stream";
39145
39145
  this.p = this.p.subarray(0, -4);
39146
39146
  }
39147
- se.prototype.c.call(this, I);
39147
+ Qe.prototype.c.call(this, I);
39148
39148
  }, t;
39149
39149
  }(), WN = /* @__PURE__ */ function() {
39150
39150
  function t(A) {
@@ -39152,7 +39152,7 @@ var Bl = /* @__PURE__ */ function() {
39152
39152
  hn,
39153
39153
  xN,
39154
39154
  function() {
39155
- return [et, se, Bl];
39155
+ return [et, Qe, Bl];
39156
39156
  }
39157
39157
  ], this, 0, function() {
39158
39158
  var I = new Bl();
@@ -39179,7 +39179,7 @@ function vo(t, A) {
39179
39179
  }
39180
39180
  var jN = /* @__PURE__ */ function() {
39181
39181
  function t(A) {
39182
- this.G = Cl, this.I = se, this.Z = Bl, this.ondata = A;
39182
+ this.G = Cl, this.I = Qe, this.Z = Bl, this.ondata = A;
39183
39183
  }
39184
39184
  return t.prototype.push = function(A, I) {
39185
39185
  if (!this.ondata)
@@ -39551,7 +39551,7 @@ var im = /* @__PURE__ */ function() {
39551
39551
  }(), N_ = /* @__PURE__ */ function() {
39552
39552
  function t() {
39553
39553
  var A = this;
39554
- this.i = new se(function(I, g) {
39554
+ this.i = new Qe(function(I, g) {
39555
39555
  A.ondata(null, I, g);
39556
39556
  });
39557
39557
  }
@@ -39565,7 +39565,7 @@ var im = /* @__PURE__ */ function() {
39565
39565
  }(), m_ = /* @__PURE__ */ function() {
39566
39566
  function t(A, I) {
39567
39567
  var g = this;
39568
- I < 32e4 ? this.i = new se(function(i, e) {
39568
+ I < 32e4 ? this.i = new Qe(function(i, e) {
39569
39569
  g.ondata(null, i, e);
39570
39570
  }) : (this.i = new FS(function(i, e, C) {
39571
39571
  g.ondata(i, e, C);
@@ -39748,7 +39748,7 @@ const dk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39748
39748
  EncodeUTF8: k_,
39749
39749
  Gunzip: Cl,
39750
39750
  Gzip: el,
39751
- Inflate: se,
39751
+ Inflate: Qe,
39752
39752
  Unzip: K_,
39753
39753
  UnzipInflate: N_,
39754
39754
  UnzipPassThrough: im,
@@ -39934,8 +39934,8 @@ class em extends Fy {
39934
39934
  let jI = WA;
39935
39935
  const dI = WA + j * (v - bA);
39936
39936
  for (; jI <= dI; jI += nI) {
39937
- const rg = jI + iI, Ae = jI + cI, Mg = Ae + iI;
39938
- kA ? (_A(U[jI + J], U[Ae + J]), GI = z.a, JI = z.b, _A(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, _A(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, _A(JI, kg), U[Ae + J] = z.a, U[Mg + J] = z.b) : (qA(U[jI + J], U[Ae + J]), GI = z.a, JI = z.b, qA(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, qA(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, qA(JI, kg), U[Ae + J] = z.a, U[Mg + J] = z.b);
39937
+ const rg = jI + iI, Ie = jI + cI, Mg = Ie + iI;
39938
+ kA ? (_A(U[jI + J], U[Ie + J]), GI = z.a, JI = z.b, _A(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, _A(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, _A(JI, kg), U[Ie + J] = z.a, U[Mg + J] = z.b) : (qA(U[jI + J], U[Ie + J]), GI = z.a, JI = z.b, qA(U[rg + J], U[Mg + J]), ig = z.a, kg = z.b, qA(GI, ig), U[jI + J] = z.a, U[rg + J] = z.b, qA(JI, kg), U[Ie + J] = z.a, U[Mg + J] = z.b);
39939
39939
  }
39940
39940
  if (v & SA) {
39941
39941
  const rg = jI + cI;
@@ -40048,9 +40048,9 @@ class em extends Fy {
40048
40048
  for (let dI = 0; dI < NA; ++dI) {
40049
40049
  let rg = 8;
40050
40050
  dI == NA - 1 && (rg = BI);
40051
- let Ae = 8;
40051
+ let Ie = 8;
40052
40052
  for (let VI = 0; VI < WA; ++VI) {
40053
- VI == WA - 1 && (Ae = cI);
40053
+ VI == WA - 1 && (Ie = cI);
40054
40054
  for (let eg = 0; eg < SA; ++eg)
40055
40055
  ig[eg].fill(0), ig[eg][0] = oA[nI[eg]++], tI(iI, j, ig[eg]), zA(ig[eg], GI[eg]), AI(GI[eg]);
40056
40056
  MI(GI);
@@ -40070,7 +40070,7 @@ class em extends Fy {
40070
40070
  if (bA != WA)
40071
40071
  for (let wC = 8 * dI; wC < 8 * dI + rg; ++wC) {
40072
40072
  const Hn = kg[VI][wC] + 8 * bA * 2 * eg, qt = bA * 64 + (wC & 7) * 8;
40073
- for (let wr = 0; wr < Ae; ++wr)
40073
+ for (let wr = 0; wr < Ie; ++wr)
40074
40074
  lA.setUint16(Hn + wr * 2 * eg, JI[VI][qt + wr], !0);
40075
40075
  }
40076
40076
  }
@@ -40081,8 +40081,8 @@ class em extends Fy {
40081
40081
  v[U.idx[dI]].decoded = !0;
40082
40082
  const rg = v[U.idx[dI]].type;
40083
40083
  if (v[dI].type == 2)
40084
- for (let Ae = 0; Ae < LA; ++Ae) {
40085
- const Mg = kg[dI][Ae];
40084
+ for (let Ie = 0; Ie < LA; ++Ie) {
40085
+ const Mg = kg[dI][Ie];
40086
40086
  for (let VI = 0; VI < kA; ++VI)
40087
40087
  jI[VI] = lA.getUint16(Mg + VI * 2 * rg, !0);
40088
40088
  for (let VI = 0; VI < kA; ++VI)
@@ -40409,7 +40409,7 @@ class em extends Fy {
40409
40409
  const v = uI(U, J), j = uI(U, J), oA = uI(U, J);
40410
40410
  return [v, j, oA];
40411
40411
  }
40412
- function $i(U, J, v, j, oA) {
40412
+ function Ae(U, J, v, j, oA) {
40413
40413
  if (j === "string" || j === "stringvector" || j === "iccProfile")
40414
40414
  return Y(J, v, oA);
40415
40415
  if (j === "chlist")
@@ -40456,7 +40456,7 @@ class em extends Fy {
40456
40456
  if (lA == 0)
40457
40457
  IA = !1;
40458
40458
  else {
40459
- const kA = xA(J, v), LA = OA(U, v), SA = $i(U, J, v, kA, LA);
40459
+ const kA = xA(J, v), LA = OA(U, v), SA = Ae(U, J, v, kA, LA);
40460
40460
  SA === void 0 ? console.warn(`EXRLoader.parse: skipped unknown header attribute type '${kA}'.`) : j[lA] = SA;
40461
40461
  }
40462
40462
  }
@@ -41165,7 +41165,7 @@ class X_ {
41165
41165
  }
41166
41166
  const yl = class {
41167
41167
  static createEmptyParent(A) {
41168
- const I = new yl(ne.generateUUID(), A.name + "_empty_" + this._id++, A.matrix);
41168
+ const I = new yl(ae.generateUUID(), A.name + "_empty_" + this._id++, A.matrix);
41169
41169
  return A.parent.add(I), I.add(A), I.isDynamic = !0, A.matrix = new XA().identity(), I;
41170
41170
  }
41171
41171
  constructor(A, I, g, i, e, C) {
@@ -41178,7 +41178,7 @@ const yl = class {
41178
41178
  return !this.geometry;
41179
41179
  }
41180
41180
  clone() {
41181
- const A = new yl(ne.generateUUID(), this.name, this.matrix, this.mesh, this.material);
41181
+ const A = new yl(ae.generateUUID(), this.name, this.matrix, this.mesh, this.material);
41182
41182
  return A.isDynamic = this.isDynamic, A;
41183
41183
  }
41184
41184
  getPath() {
@@ -41763,7 +41763,7 @@ class hP extends mg {
41763
41763
  super(e, [s, B]), this.audio = A, this.range = I, this.divisionsInnerAngle = g, this.divisionsOuterAngle = i, this.type = "PositionalAudioHelper", this.update();
41764
41764
  }
41765
41765
  update() {
41766
- const A = this.audio, I = this.range, g = this.divisionsInnerAngle, i = this.divisionsOuterAngle, e = ne.degToRad(A.panner.coneInnerAngle), C = ne.degToRad(A.panner.coneOuterAngle), o = e / 2, B = C / 2;
41766
+ const A = this.audio, I = this.range, g = this.divisionsInnerAngle, i = this.divisionsOuterAngle, e = ae.degToRad(A.panner.coneInnerAngle), C = ae.degToRad(A.panner.coneOuterAngle), o = e / 2, B = C / 2;
41767
41767
  let s = 0, Q = 0, a, n;
41768
41768
  const r = this.geometry, h = r.attributes.position;
41769
41769
  r.clearGroups();
@@ -41784,7 +41784,7 @@ var cP = Object.defineProperty, lP = Object.getOwnPropertyDescriptor, BB = (t, A
41784
41784
  (C = t[e]) && (i = (g ? C(A, I, i) : C(i)) || i);
41785
41785
  return g && i && cP(A, I, i), i;
41786
41786
  };
41787
- const ge = yA("debugaudio");
41787
+ const ie = yA("debugaudio");
41788
41788
  var aa;
41789
41789
  const di = (aa = class extends vA {
41790
41790
  constructor() {
@@ -41867,7 +41867,7 @@ const di = (aa = class extends vA {
41867
41867
  return this._volume;
41868
41868
  }
41869
41869
  set volume(A) {
41870
- this._volume = A, this.sound && (ge && console.log(this.name, "audio set volume", A), this.sound.setVolume(A));
41870
+ this._volume = A, this.sound && (ie && console.log(this.name, "audio set volume", A), this.sound.setVolume(A));
41871
41871
  }
41872
41872
  get Sound() {
41873
41873
  if (!this.sound && di._userInteractionRegistered) {
@@ -41905,14 +41905,14 @@ const di = (aa = class extends vA {
41905
41905
  this.stop();
41906
41906
  }
41907
41907
  onLoaded(A) {
41908
- ge && console.log("audio buffer loaded"), di.registerWaitForAllowAudio(() => {
41909
- ge && console.log("finished loading", A);
41908
+ ie && console.log("audio buffer loaded"), di.registerWaitForAllowAudio(() => {
41909
+ ie && console.log("finished loading", A);
41910
41910
  const I = this.Sound;
41911
41911
  if (!I) {
41912
41912
  console.warn("Failed getting sound", this.name);
41913
41913
  return;
41914
41914
  }
41915
- I.isPlaying && I.stop(), I.setBuffer(A), I.loop = this._loop, I.setVolume(this.volume), I.autoplay = this.shouldPlay, this.applySpatialDistanceSettings(), I.isPlaying && I.stop(), ge && console.log(this.name, this.shouldPlay, di.userInteractionRegistered, this), this.shouldPlay && di._userInteractionRegistered && this.play();
41915
+ I.isPlaying && I.stop(), I.setBuffer(A), I.loop = this._loop, I.setVolume(this.volume), I.autoplay = this.shouldPlay, this.applySpatialDistanceSettings(), I.isPlaying && I.stop(), ie && console.log(this.name, this.shouldPlay, di.userInteractionRegistered, this), this.shouldPlay && di._userInteractionRegistered && this.play();
41916
41916
  });
41917
41917
  }
41918
41918
  applySpatialDistanceSettings() {
@@ -41921,7 +41921,7 @@ const di = (aa = class extends vA {
41921
41921
  return;
41922
41922
  this._needUpdateSpatialDistanceSettings = !1;
41923
41923
  const I = this.lerp(10 * this._maxDistance / Math.max(1e-4, this.spatialBlend), this._minDistance, this.spatialBlend);
41924
- switch (ge && console.log(this.name, this._minDistance, this._maxDistance, this.spatialBlend, "Ref distance=" + I), A.setRefDistance(I), A.setMaxDistance(Math.max(0.01, this._maxDistance)), this.rollOffMode) {
41924
+ switch (ie && console.log(this.name, this._minDistance, this._maxDistance, this.spatialBlend, "Ref distance=" + I), A.setRefDistance(I), A.setMaxDistance(Math.max(0.01, this._maxDistance)), this.rollOffMode) {
41925
41925
  case 0:
41926
41926
  A.setDistanceModel("exponential");
41927
41927
  break;
@@ -41929,15 +41929,15 @@ const di = (aa = class extends vA {
41929
41929
  A.setDistanceModel("linear");
41930
41930
  break;
41931
41931
  }
41932
- this.spatialBlend > 0 ? ge && !this.helper && (this.helper = new hP(A, A.getRefDistance()), A.add(this.helper)) : this.helper && this.helper.parent && this.helper.removeFromParent();
41932
+ this.spatialBlend > 0 ? ie && !this.helper && (this.helper = new hP(A, A.getRefDistance()), A.add(this.helper)) : this.helper && this.helper.parent && this.helper.removeFromParent();
41933
41933
  }
41934
41934
  loadAndPlay(A) {
41935
- if (A && (this.clip = A), this.clip && (ge && console.log(this.clip), this.clip.endsWith(".mp3") || this.clip.endsWith(".wav"))) {
41935
+ if (A && (this.clip = A), this.clip && (ie && console.log(this.clip), this.clip.endsWith(".mp3") || this.clip.endsWith(".wav"))) {
41936
41936
  if (this.audioLoader || (this.audioLoader = new Jc()), this.shouldPlay = !0, this._lastClipStartedLoading === this.clip) {
41937
- ge && console.log("Is currently loading:", this._lastClipStartedLoading, this);
41937
+ ie && console.log("Is currently loading:", this._lastClipStartedLoading, this);
41938
41938
  return;
41939
41939
  }
41940
- this._lastClipStartedLoading = this.clip, ge && console.log("load audio", this.clip), this.audioLoader.load(this.clip, this.onLoaded.bind(this), () => {
41940
+ this._lastClipStartedLoading = this.clip, ie && console.log("load audio", this.clip), this.audioLoader.load(this.clip, this.onLoaded.bind(this), () => {
41941
41941
  }, console.error);
41942
41942
  }
41943
41943
  }
@@ -41947,15 +41947,15 @@ const di = (aa = class extends vA {
41947
41947
  this.loadAndPlay(A);
41948
41948
  return;
41949
41949
  }
41950
- this.shouldPlay = !0, this._hasEnded = !1, ge && console.log("play", (I = this.sound) == null ? void 0 : I.getVolume(), this.sound), this.sound && !this.sound.isPlaying && this.sound.play();
41950
+ this.shouldPlay = !0, this._hasEnded = !1, ie && console.log("play", (I = this.sound) == null ? void 0 : I.getVolume(), this.sound), this.sound && !this.sound.isPlaying && this.sound.play();
41951
41951
  }
41952
41952
  pause() {
41953
41953
  var A;
41954
- ge && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.isPlaying && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, this.sound.pause());
41954
+ ie && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.isPlaying && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, this.sound.pause());
41955
41955
  }
41956
41956
  stop() {
41957
41957
  var A;
41958
- ge && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, ge && console.log(this._lastContextTime), this.sound.stop());
41958
+ ie && console.log("Pause", this), this._hasEnded = !0, this.shouldPlay = !1, this.sound && this.sound.source && (this._lastContextTime = (A = this.sound) == null ? void 0 : A.context.currentTime, ie && console.log(this._lastContextTime), this.sound.stop());
41959
41959
  }
41960
41960
  get isPlaying() {
41961
41961
  var A;
@@ -41976,7 +41976,7 @@ const di = (aa = class extends vA {
41976
41976
  }
41977
41977
  }
41978
41978
  update() {
41979
- this.helper && (this.isPlaying && this.helper.update(), this.helper.visible = this.isPlaying), this._needUpdateSpatialDistanceSettings && this.applySpatialDistanceSettings(), this.sound && !this.sound.isPlaying && this.shouldPlay && !this._hasEnded && (this._hasEnded = !0, ge && console.log("Audio clip ended", this.clip), this.sound.dispatchEvent({ type: "ended", target: this }));
41979
+ this.helper && (this.isPlaying && this.helper.update(), this.helper.visible = this.isPlaying), this._needUpdateSpatialDistanceSettings && this.applySpatialDistanceSettings(), this.sound && !this.sound.isPlaying && this.shouldPlay && !this._hasEnded && (this._hasEnded = !0, ie && console.log("Audio clip ended", this.clip), this.sound.dispatchEvent({ type: "ended", target: this }));
41980
41980
  }
41981
41981
  }, E(aa, "_didCallBeginWaitForUserInteraction", !1), E(aa, "callbacks", []), E(aa, "_userInteractionRegistered", !1), aa);
41982
41982
  let ji = di;
@@ -42079,7 +42079,7 @@ let am = class extends Vi {
42079
42079
  const kI = g.object.getWorldPosition(A.position);
42080
42080
  Y.copy(kI).sub(g.target), Y.applyQuaternion(pA), o.setFromVector3(Y), g.autoRotate && e === i.NONE && M(S()), g.enableDamping ? (o.theta += B.theta * g.dampingFactor, o.phi += B.phi * g.dampingFactor) : (o.theta += B.theta, o.phi += B.phi);
42081
42081
  let uI = g.minAzimuthAngle, Z = g.maxAzimuthAngle;
42082
- return isFinite(uI) && isFinite(Z) && (uI < -Math.PI ? uI += JA : uI > Math.PI && (uI -= JA), Z < -Math.PI ? Z += JA : Z > Math.PI && (Z -= JA), uI <= Z ? o.theta = Math.max(uI, Math.min(Z, o.theta)) : o.theta = o.theta > (uI + Z) / 2 ? Math.max(uI, o.theta) : Math.min(Z, o.theta)), o.phi = Math.max(g.minPolarAngle, Math.min(g.maxPolarAngle, o.phi)), o.makeSafe(), Q = ne.lerp(Q, s, g.dampingFactor), o.radius *= Q, o.radius = Math.max(g.minDistance, Math.min(g.maxDistance, o.radius)), g.enableDamping === !0 ? g.target.addScaledVector(a, g.dampingFactor) : g.target.add(a), Y.setFromSpherical(o), Y.applyQuaternion(VA), kI.copy(g.target).add(Y), g.object.parent ? g.object.parent.worldToLocal(kI) : g.object.position.copy(kI), g.object.lookAt(g.target), g.enableDamping === !0 ? (B.theta *= 1 - g.dampingFactor, B.phi *= 1 - g.dampingFactor, a.multiplyScalar(1 - g.dampingFactor)) : (B.set(0, 0, 0), a.set(0, 0, 0)), s = 1, n || YA.distanceToSquared(g.object.position) > C || 8 * (1 - OA.dot(g.object.quaternion)) > C ? (g.dispatchEvent(kk), YA.copy(g.object.position), OA.copy(g.object.quaternion), n = !1, !0) : !1;
42082
+ return isFinite(uI) && isFinite(Z) && (uI < -Math.PI ? uI += JA : uI > Math.PI && (uI -= JA), Z < -Math.PI ? Z += JA : Z > Math.PI && (Z -= JA), uI <= Z ? o.theta = Math.max(uI, Math.min(Z, o.theta)) : o.theta = o.theta > (uI + Z) / 2 ? Math.max(uI, o.theta) : Math.min(Z, o.theta)), o.phi = Math.max(g.minPolarAngle, Math.min(g.maxPolarAngle, o.phi)), o.makeSafe(), Q = ae.lerp(Q, s, g.dampingFactor), o.radius *= Q, o.radius = Math.max(g.minDistance, Math.min(g.maxDistance, o.radius)), g.enableDamping === !0 ? g.target.addScaledVector(a, g.dampingFactor) : g.target.add(a), Y.setFromSpherical(o), Y.applyQuaternion(VA), kI.copy(g.target).add(Y), g.object.parent ? g.object.parent.worldToLocal(kI) : g.object.position.copy(kI), g.object.lookAt(g.target), g.enableDamping === !0 ? (B.theta *= 1 - g.dampingFactor, B.phi *= 1 - g.dampingFactor, a.multiplyScalar(1 - g.dampingFactor)) : (B.set(0, 0, 0), a.set(0, 0, 0)), s = 1, n || YA.distanceToSquared(g.object.position) > C || 8 * (1 - OA.dot(g.object.quaternion)) > C ? (g.dispatchEvent(kk), YA.copy(g.object.position), OA.copy(g.object.quaternion), n = !1, !0) : !1;
42083
42083
  };
42084
42084
  }(), this.dispose = function() {
42085
42085
  g.domElement.removeEventListener("contextmenu", GA), g.domElement.removeEventListener("pointerdown", jA), g.domElement.removeEventListener("pointercancel", zA), g.domElement.removeEventListener("wheel", wI), g.domElement.removeEventListener("pointermove", KA), g.domElement.removeEventListener("pointerup", tI), g._domElementKeyEvents !== null && g._domElementKeyEvents.removeEventListener("keydown", x);
@@ -42524,7 +42524,7 @@ const Sl = class {
42524
42524
  let La = Sl;
42525
42525
  E(La, "xrSessionIsGranted", !1);
42526
42526
  La.registerSessionGrantedListener();
42527
- const sl = "noVoip", Ce = yA("debugvoip"), pP = yA("voip");
42527
+ const sl = "noVoip", oe = yA("debugvoip"), pP = yA("voip");
42528
42528
  class yP {
42529
42529
  constructor(A) {
42530
42530
  E(this, "id");
@@ -42544,7 +42544,7 @@ class SP {
42544
42544
  }
42545
42545
  close() {
42546
42546
  var A;
42547
- Ce && console.log("close voip call"), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.open && this.call.close(), (A = this.stream) == null || A.getTracks().forEach(function(I) {
42547
+ oe && console.log("close voip call"), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.open && this.call.close(), (A = this.stream) == null || A.getTracks().forEach(function(I) {
42548
42548
  I.stop();
42549
42549
  });
42550
42550
  }
@@ -42561,10 +42561,10 @@ class SP {
42561
42561
  console.warn("no permission to use microphone, can not start call");
42562
42562
  return;
42563
42563
  }
42564
- Ce && console.log("start voip call"), this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.updateMute(this.voip.muteOutput), Ce && console.log(this.stream), this.call = this.peer.call(this.peerId, this.stream, { metadata: { userId: this.userId } }), this.call.on("error", (I) => {
42564
+ oe && console.log("start voip call"), this.stream = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 }), this.updateMute(this.voip.muteOutput), oe && console.log(this.stream), this.call = this.peer.call(this.peerId, this.stream, { metadata: { userId: this.userId } }), this.call.on("error", (I) => {
42565
42565
  console.error(I);
42566
42566
  }), this.call.on("stream", (I) => {
42567
- Ce && console.log("received stream from remote again", I);
42567
+ oe && console.log("received stream from remote again", I);
42568
42568
  }), this.peer.on("close", this.onCallClose.bind(this)), this.callErrorListener = (I) => {
42569
42569
  var g;
42570
42570
  I.message.includes(this.peerId) ? (console.log("Could not connect to " + this.peerId), this.callErrorListener && this.peer.off("error", this.callErrorListener), this.call && this.call.close(), (g = this.stream) == null || g.getTracks().forEach(function(i) {
@@ -42573,7 +42573,7 @@ class SP {
42573
42573
  }, this.peer.on("error", this.callErrorListener);
42574
42574
  }
42575
42575
  onCallClose(A) {
42576
- Ce && console.log("call closed", A);
42576
+ oe && console.log("call closed", A);
42577
42577
  }
42578
42578
  }
42579
42579
  class fP {
@@ -42608,9 +42608,9 @@ class fP {
42608
42608
  console.warn("failed finding valid audio stream to begin call");
42609
42609
  }
42610
42610
  open(A) {
42611
- console.assert(A.kind === "audio", "invalid track kind, expected audio but received " + A.kind), !this.waitingForStart && (this.waitingForStart = !0, ji.userInteractionRegistered || Ce && console.log("Incoming call, waiting for user interaction before opening audio"), ji.registerWaitForAllowAudio(async () => {
42611
+ console.assert(A.kind === "audio", "invalid track kind, expected audio but received " + A.kind), !this.waitingForStart && (this.waitingForStart = !0, ji.userInteractionRegistered || oe && console.log("Incoming call, waiting for user interaction before opening audio"), ji.registerWaitForAllowAudio(async () => {
42612
42612
  if (this.call.open && !this.closed) {
42613
- Ce && console.log("Setup audio and begin listening"), this.stream = new MediaStream([A]);
42613
+ oe && console.log("Setup audio and begin listening"), this.stream = new MediaStream([A]);
42614
42614
  const I = new Ly();
42615
42615
  this.audio = new jl(I), this.audio.setVolume(this.voip.muteInput ? 0 : 1), this.audio.setMediaStreamSource(this.stream);
42616
42616
  const g = document.createElement("audio");
@@ -42623,7 +42623,7 @@ class fP {
42623
42623
  break;
42624
42624
  }
42625
42625
  }
42626
- }), Ce && console.log("call is setup, you should hear something now"), this.analyzer = new KR(this.audio, 32);
42626
+ }), oe && console.log("call is setup, you should hear something now"), this.analyzer = new KR(this.audio, 32);
42627
42627
  }
42628
42628
  }));
42629
42629
  }
@@ -42707,7 +42707,7 @@ class sB extends vA {
42707
42707
  const { userId: g } = I, i = this.connections[g];
42708
42708
  this.connections[g] = null, i && i.close();
42709
42709
  const e = this.currentIncomingCalls[g];
42710
- Ce && console.log("UserLeftRoom", I, g, e), e && (e.close(), this.currentIncomingCalls[g] = null);
42710
+ oe && console.log("UserLeftRoom", I, g, e), e && (e.close(), this.currentIncomingCalls[g] = null);
42711
42711
  }), this.peer.on("open", this.onOpenPeerConnection.bind(this));
42712
42712
  }
42713
42713
  onEnable() {
@@ -42737,9 +42737,9 @@ class sB extends vA {
42737
42737
  // }
42738
42738
  // }
42739
42739
  async onOpenPeerConnection(I) {
42740
- Ce && console.log("Peer connection established and received id"), this.model = new yP(I), this.context.connection.send("peer-update-id", this.model, ye.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(g) {
42741
- Ce && console.log("CONNECTION", g), g.on("data", function(i) {
42742
- Ce && console.log("Received", i);
42740
+ oe && console.log("Peer connection established and received id"), this.model = new yP(I), this.context.connection.send("peer-update-id", this.model, ye.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(g) {
42741
+ oe && console.log("CONNECTION", g), g.on("data", function(i) {
42742
+ oe && console.log("Received", i);
42743
42743
  });
42744
42744
  }));
42745
42745
  }
@@ -42747,14 +42747,14 @@ class sB extends vA {
42747
42747
  const { metadata: g } = I;
42748
42748
  console.assert(g.userId);
42749
42749
  const { userId: i } = g, e = this.currentIncomingCalls[i];
42750
- if (e && e.close(), Ce && console.log("received call"), await sB.HasMicrophonePermissions()) {
42750
+ if (e && e.close(), oe && console.log("received call"), await sB.HasMicrophonePermissions()) {
42751
42751
  const C = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
42752
42752
  I.answer(C);
42753
42753
  } else
42754
42754
  I.answer(null);
42755
42755
  this.currentIncomingCalls[i] = new fP(this, this.gameObject, I), I.on("stream", (C) => {
42756
42756
  var o;
42757
- Ce && console.log("receive caller stream, will setup audio now"), (o = this.currentIncomingCalls[i]) == null || o.openAudioStream(C);
42757
+ oe && console.log("receive caller stream, will setup audio now"), (o = this.currentIncomingCalls[i]) == null || o.openAudioStream(C);
42758
42758
  }), I.on("error", console.error);
42759
42759
  }
42760
42760
  // update(): void {
@@ -42826,7 +42826,7 @@ class ls extends vA {
42826
42826
  this.gameObject.visible = !0;
42827
42827
  }
42828
42828
  onEnd(I, g) {
42829
- this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), I && (I.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(I.position, I.quaternion, I.scale)), Be.markDirty(this.gameObject, !0), setTimeout(() => {
42829
+ this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), I && (I.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(I.position, I.quaternion, I.scale)), se.markDirty(this.gameObject, !0), setTimeout(() => {
42830
42830
  this.gameObject.matrixAutoUpdate = !0, this.gameObject.visible = !0;
42831
42831
  }, 100);
42832
42832
  }
@@ -43656,15 +43656,15 @@ const _a = class {
43656
43656
  if (A.guid === this.guid && (this.lastAvatarId !== A.avatarId && A.avatarId && A.avatarId.length > 0 && (this.lastAvatarId = A.avatarId, this.setupCustomAvatar(A.avatarId)), this.lastUpdate = A.time, this.head)) {
43657
43657
  const g = this.webxr.IsInAR ? jC.Handheld : jC.Headset;
43658
43658
  let i = this.head;
43659
- this.context.players.setPlayerView(A.guid, i, g), Be.markDirty(this.head), this._canInterpolate = !0;
43659
+ this.context.players.setPlayerView(A.guid, i, g), se.markDirty(this.head), this._canInterpolate = !0;
43660
43660
  const e = this.isLocalAvatar ? this.head : this._headTarget;
43661
43661
  if (e.position.set(A.position.x, A.position.y, A.position.z), e.quaternion.set(A.rotation.x, A.rotation.y, A.rotation.z, A.rotation.w), e.scale.set(A.scale, A.scale, A.scale), e.scale.multiply(this.headScale), this.handLeft) {
43662
43662
  const C = this.isLocalAvatar ? this.handLeft : this._handLeftTarget;
43663
- C.position.set(A.posLeftHand.x, A.posLeftHand.y, A.posLeftHand.z), C.quaternion.set(A.rotLeftHand._x, A.rotLeftHand._y, A.rotLeftHand._z, A.rotLeftHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handLeftScale), Be.markDirty(this.handLeft);
43663
+ C.position.set(A.posLeftHand.x, A.posLeftHand.y, A.posLeftHand.z), C.quaternion.set(A.rotLeftHand._x, A.rotLeftHand._y, A.rotLeftHand._z, A.rotLeftHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handLeftScale), se.markDirty(this.handLeft);
43664
43664
  }
43665
43665
  if (this.handRight) {
43666
43666
  const C = this.isLocalAvatar ? this.handRight : this._handRightTarget;
43667
- C.position.set(A.posRightHand.x, A.posRightHand.y, A.posRightHand.z), C.quaternion.set(A.rotRightHand._x, A.rotRightHand._y, A.rotRightHand._z, A.rotRightHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handRightScale), Be.markDirty(this.handRight);
43667
+ C.position.set(A.posRightHand.x, A.posRightHand.y, A.posRightHand.z), C.quaternion.set(A.rotRightHand._x, A.rotRightHand._y, A.rotRightHand._z, A.rotRightHand._w), C.quaternion.multiply(_a.invertRotation), C.scale.set(A.scale, A.scale, A.scale), C.scale.multiply(this.handRightScale), se.markDirty(this.handRight);
43668
43668
  }
43669
43669
  }
43670
43670
  }
@@ -43676,7 +43676,7 @@ const _a = class {
43676
43676
  }
43677
43677
  destroy() {
43678
43678
  var A, I;
43679
- Fo && console.log("Destroy avatar", this.guid), (A = this.root) == null || A.removeFromParent(), (I = this.avatarMarker) == null || I.destroy(), this.lastAvatarId = null, this.head && Qe.Remove(this.context, this.head);
43679
+ Fo && console.log("Destroy avatar", this.guid), (A = this.root) == null || A.removeFromParent(), (I = this.avatarMarker) == null || I.destroy(), this.lastAvatarId = null, this.head && ne.Remove(this.context, this.head);
43680
43680
  }
43681
43681
  updateVisibility() {
43682
43682
  const A = this.root;
@@ -43686,7 +43686,7 @@ const _a = class {
43686
43686
  var i, e, C;
43687
43687
  if (Fo && console.log("LOAD", A, this), !A || typeof A == "string" && A.length <= 0)
43688
43688
  return !1;
43689
- this.head && Qe.Remove(this.context, this.head);
43689
+ this.head && ne.Remove(this.context, this.head);
43690
43690
  const I = A;
43691
43691
  if ((I == null ? void 0 : I.loadAssetAsync) !== void 0) {
43692
43692
  await I.loadAssetAsync();
@@ -43696,7 +43696,7 @@ const _a = class {
43696
43696
  Fo && console.log(A);
43697
43697
  const g = await _a.loader.getOrCreateNewAvatarInstance(this.context, A);
43698
43698
  if (Fo && console.log(g, g == null ? void 0 : g.isValid, this.lastAvatarId, A), g != null && g.isValid) {
43699
- if (this.root = g.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = sA.addNewComponent(this.root, Si), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== g.head && ((i = this.head) == null || i.removeFromParent()), this.head = g.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && Qe.Add(this.context, this.head, this.avatarMarker), g.leftHand && ((e = this.handLeft) == null || e.removeFromParent()), this.handLeft = g.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), g.rigthHand && ((C = this.handRight) == null || C.removeFromParent()), this.handRight = g.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...sA.getComponentsInChildren(this.root, Ni)), this.flags.length <= 0 && this.head) {
43699
+ if (this.root = g.root, this.root.position.set(0, 0, 0), this.root.quaternion.set(0, 0, 0, 1), this.root.scale.set(1, 1, 1), this.avatarMarker = sA.addNewComponent(this.root, Si), this.avatarMarker.connectionId = this.guid, this.avatarMarker.avatar = this, this.head && this.head !== g.head && ((i = this.head) == null || i.removeFromParent()), this.head = g.head, this.headScale.copy(this.head.scale), this.head && !this.isLocalAvatar && ne.Add(this.context, this.head, this.avatarMarker), g.leftHand && ((e = this.handLeft) == null || e.removeFromParent()), this.handLeft = g.leftHand ?? this.handLeft, this.handLeft ? this.handLeftScale.copy(this.handLeft.scale) : this.handLeftScale.set(1, 1, 1), g.rigthHand && ((C = this.handRight) == null || C.removeFromParent()), this.handRight = g.rigthHand ?? this.handRight, this.handRight ? this.handRightScale.copy(this.handRight.scale) : this.handRightScale.set(1, 1, 1), this.context.scene.add(this.root), this.flags == null && (this.flags = []), this.flags.length = 0, this.flags.push(...sA.getComponentsInChildren(this.root, Ni)), this.flags.length <= 0 && this.head) {
43700
43700
  const o = sA.addNewComponent(this.head, Ni);
43701
43701
  o.visibleIn = jg.ThirdPerson | jg.VR, this.flags.push(o), Fo && console.log("Added flag to head: " + o.visibleIn, this.head.name);
43702
43702
  }
@@ -43707,7 +43707,7 @@ const _a = class {
43707
43707
  };
43708
43708
  let OC = _a;
43709
43709
  E(OC, "loader", new xS()), E(OC, "invertRotation", new fA().setFromAxisAngle(new k(0, 1, 0), Math.PI));
43710
- class Qe {
43710
+ class ne {
43711
43711
  static Add(A, I, g = null) {
43712
43712
  if (I) {
43713
43713
  for (const i of this.Pois)
@@ -43727,7 +43727,7 @@ class Qe {
43727
43727
  }
43728
43728
  }
43729
43729
  }
43730
- E(Qe, "Pois", []), E(Qe, "LastChangeTime", 0);
43730
+ E(ne, "Pois", []), E(ne, "LastChangeTime", 0);
43731
43731
  class XP {
43732
43732
  constructor() {
43733
43733
  E(this, "guid");
@@ -43767,7 +43767,7 @@ class Ql extends vA {
43767
43767
  }
43768
43768
  update() {
43769
43769
  var g;
43770
- if ((!this.context.connection.isConnected || (g = this._model) != null && g.hasOwnership) && (Qe.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = Qe.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
43770
+ if ((!this.context.connection.isConnected || (g = this._model) != null && g.hasOwnership) && (ne.LastChangeTime !== this._lastPoiChangedTime && (this._lastPoiChangedTime = ne.LastChangeTime, this._lookDuration = 0), this.selectTarget(), this._currentTargetObject && this.context.time.frameCount % 10 === 0 && this.target)) {
43771
43771
  const i = yI(this._currentTargetObject);
43772
43772
  fi(this.target, i), this.context.connection.isConnected && this.avatar && (this.context.connection.send("avatar-look-target-changed", this._targetModel), this._targetModel.guid = this.avatar.guid, this._targetModel.position.copy(i));
43773
43773
  }
@@ -43775,7 +43775,7 @@ class Ql extends vA {
43775
43775
  selectTarget() {
43776
43776
  if (this.context.time.time - this._lastUpdateTime > this._lookDuration) {
43777
43777
  this._lastUpdateTime = this.context.time.time, this._lookDuration = Math.random() * 0.5 + 0.2;
43778
- const g = Qe.Pois;
43778
+ const g = ne.Pois;
43779
43779
  if (g.length > 0) {
43780
43780
  const i = g[Math.floor(Math.random() * g.length)];
43781
43781
  if (i && i.obj) {
@@ -44261,7 +44261,7 @@ class ZQ extends vA {
44261
44261
  Mo && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, I), this.receivedUpdate = !0, this._receivedFastUpdate = I.fast();
44262
44262
  const i = I.transform();
44263
44263
  if (i) {
44264
- Be.markDirty(this.gameObject, !0);
44264
+ se.markDirty(this.gameObject, !0);
44265
44265
  const e = i.position();
44266
44266
  e && (this.interpolatePosition && ((g = this._targetPosition) == null || g.set(e.x(), e.y(), e.z())), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(e.x(), e.y(), e.z()));
44267
44267
  const C = i.rotation();
@@ -44287,7 +44287,7 @@ class ZQ extends vA {
44287
44287
  let I = this.worldPosition, g = this.worldQuaternion;
44288
44288
  if (this._model.isOwned && !this.receivedUpdate) {
44289
44289
  const C = I.distanceTo(this.lastWorldPos), o = g.angleTo(this.lastWorldRotation), B = this._model.hasOwnership || this.fastMode ? 1e-4 : 1e-3;
44290
- (C > B || o > B) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Mo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, I.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, g.copy(this.lastWorldRotation), Be.markDirty(this.gameObject, !0), this._needsUpdate = !1));
44290
+ (C > B || o > B) && (this._model.hasOwnership ? this._needsUpdate = !0 : (Mo && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, I.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, g.copy(this.lastWorldRotation), se.markDirty(this.gameObject, !0), this._needsUpdate = !1));
44291
44291
  }
44292
44292
  if (this._model && !this._model.hasOwnership && this._model.isOwned && this._receivedDataBefore) {
44293
44293
  const o = this._receivedFastUpdate || this.fastMode ? 0.5 : 0.3;
@@ -44300,7 +44300,7 @@ class ZQ extends vA {
44300
44300
  const s = this.worldQuaternion;
44301
44301
  s.slerp(this._targetRotation, o), this.worldQuaternion = s, B = !0;
44302
44302
  }
44303
- B && Be.markDirty(this.gameObject, !0);
44303
+ B && se.markDirty(this.gameObject, !0);
44304
44304
  }
44305
44305
  if (this.receivedUpdate = !1, this.lastWorldPos.copy(I), this.lastWorldRotation.copy(g), !this._model)
44306
44306
  return;
@@ -44433,7 +44433,7 @@ var g1 = (t) => {
44433
44433
  var A = {};
44434
44434
  return Gi.d(A, t), A;
44435
44435
  };
44436
- const YI = g1({ BufferAttribute: () => EI, BufferGeometry: () => hI, CanvasTexture: () => ly, Color: () => T, FileLoader: () => Xg, LinearFilter: () => TI, Mesh: () => MA, Object3D: () => HA, Plane: () => $e, PlaneGeometry: () => ae, ShaderMaterial: () => Dg, TextureLoader: () => ss, Vector2: () => QA, Vector3: () => k }), Ya = "row", lm = "row-reverse", kD = "column", Dm = "column-reverse";
44436
+ const YI = g1({ BufferAttribute: () => EI, BufferGeometry: () => hI, CanvasTexture: () => ly, Color: () => T, FileLoader: () => Xg, LinearFilter: () => TI, Mesh: () => MA, Object3D: () => HA, Plane: () => $e, PlaneGeometry: () => zi, ShaderMaterial: () => Dg, TextureLoader: () => ss, Vector2: () => QA, Vector3: () => k }), Ya = "row", lm = "row-reverse", kD = "column", Dm = "column-reverse";
44437
44437
  function dm(t, A, I, g) {
44438
44438
  let i = I, e = "getWidth", C = "x", o = "y";
44439
44439
  A.indexOf(kD) === 0 && (e = "getHeight", C = "y", o = "x");
@@ -47492,14 +47492,14 @@ const _i = class {
47492
47492
  const a = A.isUsingHands && o ? this.controller.getWristQuaternion().clone() : A.rayRotation.clone();
47493
47493
  Fe(this.selected, this.localQuaternionToGrab).premultiply(a.invert());
47494
47494
  const n = this.controller.webXR.Rig;
47495
- return n && this.rigPositionLastFrame.copy(yI(n)), Qe.Add(A.context, this.selected), _i.Register(this), this.sync && (this.sync.fastMode = !0), (h = _i.Events.DidTake) == null || h.forEach((c) => c(this, B)), this;
47495
+ return n && this.rigPositionLastFrame.copy(yI(n)), ne.Add(A.context, this.selected), _i.Register(this), this.sync && (this.sync.fastMode = !0), (h = _i.Events.DidTake) == null || h.forEach((c) => c(this, B)), this;
47496
47496
  }
47497
47497
  free() {
47498
47498
  var i, e, C, o;
47499
47499
  if (!this.selected)
47500
47500
  return;
47501
47501
  const A = { controller: this.controller, take: this.selected, hit: this.selected, sync: this.sync, interactable: null };
47502
- (i = _i.Events.WillFree) == null || i.forEach((B) => B(this, A)), Qe.Remove(this.controller.context, this.selected), _i.Remove(this), this.sync && (this.sync.fastMode = !1);
47502
+ (i = _i.Events.WillFree) == null || i.forEach((B) => B(this, A)), ne.Remove(this.controller.context, this.selected), _i.Remove(this), this.sync && (this.sync.fastMode = !1);
47503
47503
  const I = this.selectedMesh;
47504
47504
  I && this.originalMaterial && I.material && (I.material = this.originalMaterial);
47505
47505
  const g = this.selected;
@@ -47540,7 +47540,7 @@ const _i = class {
47540
47540
  if (this.rigidbodies != null)
47541
47541
  for (const I of this.rigidbodies)
47542
47542
  I.wakeUp();
47543
- Be.markDirty(this.selected, !0);
47543
+ se.markDirty(this.selected, !0);
47544
47544
  }
47545
47545
  }
47546
47546
  };
@@ -52044,7 +52044,7 @@ $([
52044
52044
  $([
52045
52045
  R()
52046
52046
  ], Pg.prototype, "randomPositionAmount", 2);
52047
- class XI {
52047
+ class zI {
52048
52048
  constructor() {
52049
52049
  E(this, "damping");
52050
52050
  E(this, "enabled");
@@ -52093,82 +52093,82 @@ class XI {
52093
52093
  }
52094
52094
  $([
52095
52095
  R()
52096
- ], XI.prototype, "damping", 2);
52096
+ ], zI.prototype, "damping", 2);
52097
52097
  $([
52098
52098
  R()
52099
- ], XI.prototype, "enabled", 2);
52099
+ ], zI.prototype, "enabled", 2);
52100
52100
  $([
52101
52101
  R()
52102
- ], XI.prototype, "frequency", 2);
52102
+ ], zI.prototype, "frequency", 2);
52103
52103
  $([
52104
52104
  R()
52105
- ], XI.prototype, "octaveCount", 2);
52105
+ ], zI.prototype, "octaveCount", 2);
52106
52106
  $([
52107
52107
  R()
52108
- ], XI.prototype, "octaveMultiplier", 2);
52108
+ ], zI.prototype, "octaveMultiplier", 2);
52109
52109
  $([
52110
52110
  R()
52111
- ], XI.prototype, "octaveScale", 2);
52111
+ ], zI.prototype, "octaveScale", 2);
52112
52112
  $([
52113
52113
  R(oI)
52114
- ], XI.prototype, "positionAmount", 2);
52114
+ ], zI.prototype, "positionAmount", 2);
52115
52115
  $([
52116
52116
  R()
52117
- ], XI.prototype, "quality", 2);
52117
+ ], zI.prototype, "quality", 2);
52118
52118
  $([
52119
52119
  R(oI)
52120
- ], XI.prototype, "remap", 2);
52120
+ ], zI.prototype, "remap", 2);
52121
52121
  $([
52122
52122
  R()
52123
- ], XI.prototype, "remapEnabled", 2);
52123
+ ], zI.prototype, "remapEnabled", 2);
52124
52124
  $([
52125
52125
  R()
52126
- ], XI.prototype, "remapMultiplier", 2);
52126
+ ], zI.prototype, "remapMultiplier", 2);
52127
52127
  $([
52128
52128
  R(oI)
52129
- ], XI.prototype, "remapX", 2);
52129
+ ], zI.prototype, "remapX", 2);
52130
52130
  $([
52131
52131
  R()
52132
- ], XI.prototype, "remapXMultiplier", 2);
52132
+ ], zI.prototype, "remapXMultiplier", 2);
52133
52133
  $([
52134
52134
  R(oI)
52135
- ], XI.prototype, "remapY", 2);
52135
+ ], zI.prototype, "remapY", 2);
52136
52136
  $([
52137
52137
  R()
52138
- ], XI.prototype, "remapYMultiplier", 2);
52138
+ ], zI.prototype, "remapYMultiplier", 2);
52139
52139
  $([
52140
52140
  R(oI)
52141
- ], XI.prototype, "remapZ", 2);
52141
+ ], zI.prototype, "remapZ", 2);
52142
52142
  $([
52143
52143
  R()
52144
- ], XI.prototype, "remapZMultiplier", 2);
52144
+ ], zI.prototype, "remapZMultiplier", 2);
52145
52145
  $([
52146
52146
  R()
52147
- ], XI.prototype, "scrollSpeedMultiplier", 2);
52147
+ ], zI.prototype, "scrollSpeedMultiplier", 2);
52148
52148
  $([
52149
52149
  R()
52150
- ], XI.prototype, "separateAxes", 2);
52150
+ ], zI.prototype, "separateAxes", 2);
52151
52151
  $([
52152
52152
  R()
52153
- ], XI.prototype, "strengthMultiplier", 2);
52153
+ ], zI.prototype, "strengthMultiplier", 2);
52154
52154
  $([
52155
52155
  R(oI)
52156
- ], XI.prototype, "strengthX", 2);
52156
+ ], zI.prototype, "strengthX", 2);
52157
52157
  $([
52158
52158
  R()
52159
- ], XI.prototype, "strengthXMultiplier", 2);
52159
+ ], zI.prototype, "strengthXMultiplier", 2);
52160
52160
  $([
52161
52161
  R(oI)
52162
- ], XI.prototype, "strengthY", 2);
52162
+ ], zI.prototype, "strengthY", 2);
52163
52163
  $([
52164
52164
  R()
52165
- ], XI.prototype, "strengthYMultiplier", 2);
52165
+ ], zI.prototype, "strengthYMultiplier", 2);
52166
52166
  $([
52167
52167
  R(oI)
52168
- ], XI.prototype, "strengthZ", 2);
52168
+ ], zI.prototype, "strengthZ", 2);
52169
52169
  $([
52170
52170
  R()
52171
- ], XI.prototype, "strengthZMultiplier", 2);
52171
+ ], zI.prototype, "strengthZMultiplier", 2);
52172
52172
  class dg {
52173
52173
  constructor() {
52174
52174
  E(this, "enabled");
@@ -52885,12 +52885,12 @@ const _f = class {
52885
52885
  if (this._selected && I)
52886
52886
  for (const g of this._rbs)
52887
52887
  g.wakeUp(), g.setVelocity(0, 0, 0);
52888
- if (this._selected && Qe.Remove(I, this._selected), this._selected = A, this._context = I, this._rbs.length = 0, A ? (I.scene.add(this._groundLine), I.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
52888
+ if (this._selected && ne.Remove(I, this._selected), this._selected = A, this._context = I, this._rbs.length = 0, A ? (I.scene.add(this._groundLine), I.scene.add(this._groundMarker)) : (this._groundLine.removeFromParent(), this._groundMarker.removeFromParent()), this._selected) {
52889
52889
  if (!I) {
52890
52890
  console.error("DragHelper: no context");
52891
52891
  return;
52892
52892
  }
52893
- Qe.Add(I, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
52893
+ ne.Add(I, this._selected, null), this._groundOffsetFactor = 0, this._hasGroundPlane = !0, this._groundOffset.set(0, 0, 0), this._requireUpdateGroundPlane = !0, this.onUpdateScreenSpacePlane();
52894
52894
  }
52895
52895
  }
52896
52896
  onUpdate(A) {
@@ -52957,7 +52957,7 @@ const _f = class {
52957
52957
  this._hasGroundPlane = !0, this._groundPlane.setFromNormalAndCoplanarPoint(I.direction.multiplyScalar(-1), I.origin), this._raycaster.ray.intersectPlane(this._groundPlane, this._intersection), this._groundDistance = this._intersection.distanceTo(A), this._groundOffset.copy(this._intersection).sub(A);
52958
52958
  }
52959
52959
  onDidUpdate() {
52960
- Be.markDirty(this._selected);
52960
+ se.markDirty(this._selected);
52961
52961
  for (const A of this._rbs)
52962
52962
  A.wakeUp(), A.resetForcesAndTorques(), A.setAngularVelocity(0, 0, 0);
52963
52963
  }
@@ -53077,7 +53077,7 @@ async function t4(t, A, I, g, i) {
53077
53077
  }
53078
53078
  const pp = {};
53079
53079
  function C4(t, A) {
53080
- const I = new zI(), g = new MA(I, new Cg({ color: 65280 })), i = new zl(g, 5592405);
53080
+ const I = new XI(), g = new MA(I, new Cg({ color: 65280 })), i = new zl(g, 5592405);
53081
53081
  if (pp[t.guid] = i, A.scene.add(i), t.parentGuid) {
53082
53082
  const e = ID(t.parentGuid, A.scene);
53083
53083
  e && e.add(i);
@@ -54278,7 +54278,7 @@ Ff([
54278
54278
  ], Er.prototype, "color", 1);
54279
54279
  let mw, Kw, Xs, kh;
54280
54280
  function Jw(t, A, I) {
54281
- Kw || (Kw = new ae(2, 2, 1, 1)), Xs || (Xs = new Dg({
54281
+ Kw || (Kw = new zi(2, 2, 1, 1)), Xs || (Xs = new Dg({
54282
54282
  uniforms: { blitTexture: new Me(t) },
54283
54283
  vertexShader: `
54284
54284
  varying vec2 vUv;
@@ -54979,7 +54979,7 @@ class v4 {
54979
54979
  znear: A.near < 0 ? 0 : A.near
54980
54980
  } : i.perspective = {
54981
54981
  aspectRatio: A.aspect,
54982
- yfov: ne.degToRad(A.fov),
54982
+ yfov: ae.degToRad(A.fov),
54983
54983
  zfar: A.far <= 0 ? 1e-3 : A.far,
54984
54984
  znear: A.near < 0 ? 0 : A.near
54985
54985
  }, A.name !== "" && (i.name = A.type), I.cameras.push(i) - 1;
@@ -57387,7 +57387,7 @@ var SW = /* @__PURE__ */ function(t) {
57387
57387
  return KI(t, [{
57388
57388
  key: "genValue",
57389
57389
  value: function() {
57390
- return ne.lerp(this.a, this.b, Math.random());
57390
+ return ae.lerp(this.a, this.b, Math.random());
57391
57391
  }
57392
57392
  }, {
57393
57393
  key: "toJSON",
@@ -58570,7 +58570,7 @@ var uM = /* @__PURE__ */ function() {
58570
58570
  return KI(t, [{
58571
58571
  key: "initialize",
58572
58572
  value: function(I) {
58573
- var g = Math.random(), i = ne.lerp(1 - this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58573
+ var g = Math.random(), i = ae.lerp(1 - this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58574
58574
  I.position.x = C * B, I.position.y = C * o, I.position.z = 0;
58575
58575
  var s = this.angle * C;
58576
58576
  I.velocity.set(0, 0, Math.cos(s)).addScaledVector(I.position, Math.sin(s)).multiplyScalar(I.startSpeed), I.position.multiplyScalar(this.radius);
@@ -58610,7 +58610,7 @@ var uM = /* @__PURE__ */ function() {
58610
58610
  return KI(t, [{
58611
58611
  key: "initialize",
58612
58612
  value: function(I) {
58613
- var g = Math.random(), i = ne.lerp(this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58613
+ var g = Math.random(), i = ae.lerp(this.thickness, 1, Math.random()), e = g * this.arc, C = Math.sqrt(i), o = Math.sin(e), B = Math.cos(e);
58614
58614
  I.position.x = C * B, I.position.y = C * o, I.position.z = 0;
58615
58615
  var s = this.angle * C;
58616
58616
  I.velocity.set(0, 0, Math.cos(s)).addScaledVector(I.position, Math.sin(s)).multiplyScalar(I.startSpeed), I.position.multiplyScalar(this.radius);
@@ -58678,7 +58678,7 @@ var uM = /* @__PURE__ */ function() {
58678
58678
  return KI(t, [{
58679
58679
  key: "initialize",
58680
58680
  value: function(I) {
58681
- var g = Math.random(), i = Math.random(), e = ne.lerp(1 - this.thickness, 1, Math.random()), C = g * this.arc, o = Math.acos(2 * i - 1), B = Math.cbrt(e), s = Math.sin(C), Q = Math.cos(C), a = Math.sin(o), n = Math.cos(o);
58681
+ var g = Math.random(), i = Math.random(), e = ae.lerp(1 - this.thickness, 1, Math.random()), C = g * this.arc, o = Math.acos(2 * i - 1), B = Math.cbrt(e), s = Math.sin(C), Q = Math.cos(C), a = Math.sin(o), n = Math.cos(o);
58682
58682
  I.position.x = B * a * Q, I.position.y = B * a * s, I.position.z = B * n, I.velocity.setScalar(0).addScaledVector(I.position, I.startSpeed), I.position.multiplyScalar(this.radius);
58683
58683
  }
58684
58684
  }, {
@@ -58829,7 +58829,7 @@ var kK = /* @__PURE__ */ function(t) {
58829
58829
  this.systems.delete(i);
58830
58830
  }
58831
58831
  }]), I;
58832
- }(MA), OW = new k(0, 0, 1), fM = new fA(), _W = new ae(1, 1, 1, 1), PW = /* @__PURE__ */ function() {
58832
+ }(MA), OW = new k(0, 0, 1), fM = new fA(), _W = new zi(1, 1, 1, 1), PW = /* @__PURE__ */ function() {
58833
58833
  function t(A, I) {
58834
58834
  var g, i, e, C, o, B, s, Q, a, n, r, h, c, l, w, p, D, d, u, y, f, S;
58835
58835
  mI(this, t), BA(this, "autoDestroy", void 0), BA(this, "looping", void 0), BA(this, "duration", void 0), BA(this, "startLife", void 0), BA(this, "startSpeed", void 0), BA(this, "startRotation", void 0), BA(this, "startSize", void 0), BA(this, "startColor", void 0), BA(this, "startTileIndex", void 0), BA(this, "rendererEmitterSettings", void 0), BA(this, "emissionOverTime", void 0), BA(this, "emissionOverDistance", void 0), BA(this, "emissionBursts", void 0), BA(this, "onlyUsedByOther", void 0), BA(this, "worldSpace", void 0), BA(this, "speedFactor", void 0), BA(this, "particleNum", void 0), BA(this, "paused", void 0), BA(this, "emissionState", void 0), BA(this, "emitEnded", void 0), BA(this, "markForDestroy", void 0), BA(this, "normalMatrix", new Og()), BA(this, "behaviors", void 0), BA(this, "particles", void 0), BA(this, "emitterShape", void 0), BA(this, "emitter", void 0), BA(this, "rendererSettings", void 0), BA(this, "renderer", void 0), BA(this, "neededToUpdateRender", void 0), this.renderer = A, this.autoDestroy = I.autoDestroy === void 0 ? !1 : I.autoDestroy, this.duration = (g = I.duration) !== null && g !== void 0 ? g : 1, this.looping = I.looping === void 0 ? !0 : I.looping, this.startLife = (i = I.startLife) !== null && i !== void 0 ? i : new Pi(5), this.startSpeed = (e = I.startSpeed) !== null && e !== void 0 ? e : new Pi(0), this.startRotation = (C = I.startRotation) !== null && C !== void 0 ? C : new Pi(0), this.startSize = (o = I.startSize) !== null && o !== void 0 ? o : new Pi(1), this.startColor = (B = I.startColor) !== null && B !== void 0 ? B : new wl(new sI(1, 1, 1, 1)), this.emissionOverTime = (s = I.emissionOverTime) !== null && s !== void 0 ? s : new Pi(10), this.emissionOverDistance = (Q = I.emissionOverDistance) !== null && Q !== void 0 ? Q : new Pi(0), this.emissionBursts = (a = I.emissionBursts) !== null && a !== void 0 ? a : [], this.onlyUsedByOther = (n = I.onlyUsedByOther) !== null && n !== void 0 ? n : !1, this.emitterShape = (r = I.shape) !== null && r !== void 0 ? r : new Gp(), this.behaviors = (h = I.behaviors) !== null && h !== void 0 ? h : new Array(), this.worldSpace = (c = I.worldSpace) !== null && c !== void 0 ? c : !1, this.speedFactor = (l = I.speedFactor) !== null && l !== void 0 ? l : 0, this.rendererEmitterSettings = (w = I.rendererEmitterSettings) !== null && w !== void 0 ? w : {}, this.rendererSettings = {
@@ -58900,7 +58900,7 @@ var kK = /* @__PURE__ */ function(t) {
58900
58900
  break;
58901
58901
  case rI.LocalSpace:
58902
58902
  this.rendererEmitterSettings = {
58903
- geometry: new ae(1, 1)
58903
+ geometry: new zi(1, 1)
58904
58904
  }, this.startRotation = new SK(new k(0, 1, 0), new Pi(0));
58905
58905
  break;
58906
58906
  case rI.BillBoard:
@@ -59766,7 +59766,13 @@ class qn extends vA {
59766
59766
  }
59767
59767
  getMesh(I) {
59768
59768
  let g = null;
59769
- return I === _C.HorizontalBillboard ? g = new zI(1, 1, 0) : I === _C.VerticalBillboard && (g = new zI(1, 0, 1)), g || (this.particleMesh instanceof MA && (g = this.particleMesh.geometry), g === null && (g = new zI(1, 1, 0))), new MA(g, this.getMaterial());
59769
+ if (I === _C.HorizontalBillboard ? g = new XI(1, 1, 0) : I === _C.VerticalBillboard && (g = new XI(1, 0, 1)), !g && (this.particleMesh instanceof MA && (g = this.particleMesh.geometry), g === null)) {
59770
+ g = new zi(1, 1);
59771
+ const e = g.attributes.uv;
59772
+ for (let C = 0; C < e.count; C++)
59773
+ e.setX(C, 1 - e.getX(C));
59774
+ }
59775
+ return new MA(g, this.getMaterial());
59770
59776
  }
59771
59777
  }
59772
59778
  Ei([
@@ -60314,7 +60320,7 @@ Ei([
60314
60320
  R(Pg)
60315
60321
  ], ri.prototype, "shape", 2);
60316
60322
  Ei([
60317
- R(XI)
60323
+ R(zI)
60318
60324
  ], ri.prototype, "noise", 2);
60319
60325
  Ei([
60320
60326
  R(dg)
@@ -60862,7 +60868,7 @@ class S8 {
60862
60868
  let g;
60863
60869
  switch (A) {
60864
60870
  case 0:
60865
- const i = new ae(1, 1, 1, 1), e = (I == null ? void 0 : I.material) ?? new Cg({ color: 16777215 });
60871
+ const i = new zi(1, 1, 1, 1), e = (I == null ? void 0 : I.material) ?? new Cg({ color: 16777215 });
60866
60872
  g = new MA(i, e);
60867
60873
  }
60868
60874
  return I != null && I.name && (g.name = I.name), g;
@@ -60875,7 +60881,7 @@ var f8 = Object.defineProperty, G8 = Object.getOwnPropertyDescriptor, Jt = (t, A
60875
60881
  };
60876
60882
  const mh = yA("debugvideo");
60877
60883
  var mK = /* @__PURE__ */ ((t) => (t[t.CameraFarPlane = 0] = "CameraFarPlane", t[t.CameraNearPlane = 1] = "CameraNearPlane", t[t.RenderTexture = 2] = "RenderTexture", t[t.MaterialOverride = 3] = "MaterialOverride", t))(mK || {});
60878
- class zi extends vA {
60884
+ class Xi extends vA {
60879
60885
  constructor() {
60880
60886
  super();
60881
60887
  E(this, "renderer", null);
@@ -61118,37 +61124,37 @@ class zi extends vA {
61118
61124
  }
61119
61125
  Jt([
61120
61126
  R(HA)
61121
- ], zi.prototype, "renderer", 2);
61127
+ ], Xi.prototype, "renderer", 2);
61122
61128
  Jt([
61123
61129
  R()
61124
- ], zi.prototype, "playOnAwake", 2);
61130
+ ], Xi.prototype, "playOnAwake", 2);
61125
61131
  Jt([
61126
61132
  R()
61127
- ], zi.prototype, "playOnEnable", 2);
61133
+ ], Xi.prototype, "playOnEnable", 2);
61128
61134
  Jt([
61129
61135
  R()
61130
- ], zi.prototype, "aspectMode", 2);
61136
+ ], Xi.prototype, "aspectMode", 2);
61131
61137
  Jt([
61132
61138
  R()
61133
- ], zi.prototype, "renderMode", 2);
61139
+ ], Xi.prototype, "renderMode", 2);
61134
61140
  Jt([
61135
61141
  R()
61136
- ], zi.prototype, "targetMaterialProperty", 2);
61142
+ ], Xi.prototype, "targetMaterialProperty", 2);
61137
61143
  Jt([
61138
61144
  R(ni)
61139
- ], zi.prototype, "targetMaterialRenderer", 2);
61145
+ ], Xi.prototype, "targetMaterialRenderer", 2);
61140
61146
  Jt([
61141
61147
  R(ZI)
61142
- ], zi.prototype, "targetTexture", 2);
61148
+ ], Xi.prototype, "targetTexture", 2);
61143
61149
  Jt([
61144
61150
  R()
61145
- ], zi.prototype, "time", 2);
61151
+ ], Xi.prototype, "time", 2);
61146
61152
  Jt([
61147
61153
  R()
61148
- ], zi.prototype, "playbackSpeed", 1);
61154
+ ], Xi.prototype, "playbackSpeed", 1);
61149
61155
  Jt([
61150
61156
  R()
61151
- ], zi.prototype, "isLooping", 1);
61157
+ ], Xi.prototype, "isLooping", 1);
61152
61158
  class k8 {
61153
61159
  constructor(A) {
61154
61160
  E(this, "context");
@@ -61399,7 +61405,7 @@ class Ad extends vA {
61399
61405
  });
61400
61406
  }
61401
61407
  start() {
61402
- if (this.videoPlayer || (this.videoPlayer = sA.getComponent(this.gameObject, zi) ?? void 0), !this.videoPlayer) {
61408
+ if (this.videoPlayer || (this.videoPlayer = sA.getComponent(this.gameObject, Xi) ?? void 0), !this.videoPlayer) {
61403
61409
  console.error("Screencapture did not find a VideoPlayer component");
61404
61410
  return;
61405
61411
  }
@@ -61499,7 +61505,7 @@ class Ad extends vA {
61499
61505
  // }
61500
61506
  }
61501
61507
  KK([
61502
- R(zi)
61508
+ R(Xi)
61503
61509
  ], Ad.prototype, "videoPlayer", 2);
61504
61510
  KK([
61505
61511
  R()
@@ -61858,7 +61864,7 @@ gd([
61858
61864
  ], Ss.prototype, "positionAxes", 2);
61859
61865
  class x8 extends MA {
61860
61866
  constructor(A) {
61861
- const I = new H8(A), g = new ae(I.image.width * 1e-3, I.image.height * 1e-3), i = new Cg({ map: I, toneMapped: !1, transparent: !0 });
61867
+ const I = new H8(A), g = new zi(I.image.width * 1e-3, I.image.height * 1e-3), i = new Cg({ map: I, toneMapped: !1, transparent: !0 });
61862
61868
  super(g, i);
61863
61869
  function e(C) {
61864
61870
  i.map.dispatchDOMEvent(C);
@@ -62527,7 +62533,7 @@ class IZ {
62527
62533
  }, 1e3));
62528
62534
  }
62529
62535
  }
62530
- var gZ = Object.defineProperty, iZ = Object.getOwnPropertyDescriptor, Xi = (t, A, I, g) => {
62536
+ var gZ = Object.defineProperty, iZ = Object.getOwnPropertyDescriptor, $i = (t, A, I, g) => {
62531
62537
  for (var i = g > 1 ? void 0 : g ? iZ(A, I) : A, e = t.length - 1, C; e >= 0; e--)
62532
62538
  (C = t[e]) && (i = (g ? C(A, I, i) : C(i)) || i);
62533
62539
  return g && i && gZ(A, I, i), i;
@@ -62562,19 +62568,19 @@ class rB {
62562
62568
  E(this, "_geometry");
62563
62569
  }
62564
62570
  }
62565
- Xi([
62571
+ $i([
62566
62572
  R()
62567
62573
  ], rB.prototype, "guid", 2);
62568
- Xi([
62574
+ $i([
62569
62575
  R(ZI)
62570
62576
  ], rB.prototype, "texture", 2);
62571
- Xi([
62577
+ $i([
62572
62578
  DS()
62573
62579
  ], rB.prototype, "triangles", 2);
62574
- Xi([
62580
+ $i([
62575
62581
  DS()
62576
62582
  ], rB.prototype, "uv", 2);
62577
- Xi([
62583
+ $i([
62578
62584
  DS()
62579
62585
  ], rB.prototype, "vertices", 2);
62580
62586
  class ed {
@@ -62584,13 +62590,13 @@ class ed {
62584
62590
  E(this, "size");
62585
62591
  }
62586
62592
  }
62587
- Xi([
62593
+ $i([
62588
62594
  R()
62589
62595
  ], ed.prototype, "name", 2);
62590
- Xi([
62596
+ $i([
62591
62597
  R(QA)
62592
62598
  ], ed.prototype, "offset", 2);
62593
- Xi([
62599
+ $i([
62594
62600
  R(QA)
62595
62601
  ], ed.prototype, "size", 2);
62596
62602
  const Hw = Symbol("spriteOwner");
@@ -62610,13 +62616,13 @@ class bn {
62610
62616
  g && (g.encoding = DI, g.offset.set(I.offset.x, I.offset.y), g.minFilter == tg && g.magFilter == tg && (g.anisotropy = 1), g.needsUpdate = !0);
62611
62617
  }
62612
62618
  }
62613
- Xi([
62619
+ $i([
62614
62620
  R(rB)
62615
62621
  ], bn.prototype, "sprite", 2);
62616
- Xi([
62622
+ $i([
62617
62623
  R()
62618
62624
  ], bn.prototype, "index", 2);
62619
- Xi([
62625
+ $i([
62620
62626
  R(ed)
62621
62627
  ], bn.prototype, "slices", 2);
62622
62628
  class xn extends vA {
@@ -62688,16 +62694,16 @@ class xn extends vA {
62688
62694
  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)), (i = this._spriteSheet) == null || i.update();
62689
62695
  }
62690
62696
  }
62691
- Xi([
62697
+ $i([
62692
62698
  R()
62693
62699
  ], xn.prototype, "drawMode", 2);
62694
- Xi([
62700
+ $i([
62695
62701
  R(lg)
62696
62702
  ], xn.prototype, "color", 2);
62697
- Xi([
62703
+ $i([
62698
62704
  R(fg)
62699
62705
  ], xn.prototype, "sharedMaterial", 2);
62700
- Xi([
62706
+ $i([
62701
62707
  R(bn)
62702
62708
  ], xn.prototype, "sprite", 1);
62703
62709
  class Pt {
@@ -62859,7 +62865,7 @@ const Fp = (zw = class extends vA {
62859
62865
  } else
62860
62866
  return;
62861
62867
  const e = i.obj;
62862
- this.context.players.setPlayerView(g, e, jC.Browser), i.lastUpdate = this.context.time.realtimeSinceStartup, Be.markDirty(e);
62868
+ this.context.players.setPlayerView(g, e, jC.Browser), i.lastUpdate = this.context.time.realtimeSinceStartup, se.markDirty(e);
62863
62869
  const C = A.pos();
62864
62870
  C && CE(e, C.x(), C.y(), C.z());
62865
62871
  const o = A.rot();
@@ -63063,7 +63069,7 @@ class vK {
63063
63069
  }
63064
63070
  }
63065
63071
  E(vK, "temp", new k());
63066
- const fB = new Cn(), ee = new k(), Ro = new k(), ag = new fA(), qM = {
63072
+ const fB = new Cn(), te = new k(), Ro = new k(), ag = new fA(), qM = {
63067
63073
  X: new k(1, 0, 0),
63068
63074
  Y: new k(0, 1, 0),
63069
63075
  Z: new k(0, 0, 1)
@@ -63118,18 +63124,18 @@ class aZ extends HA {
63118
63124
  const C = Ow(this._plane, fB, !0);
63119
63125
  if (C) {
63120
63126
  if (this.pointEnd.copy(C.point).sub(this.worldPositionStart), g === "translate")
63121
- this._offset.copy(this.pointEnd).sub(this.pointStart), e === "local" && I !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), I.indexOf("X") === -1 && (this._offset.x = 0), I.indexOf("Y") === -1 && (this._offset.y = 0), I.indexOf("Z") === -1 && (this._offset.z = 0), e === "local" && I !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), i.position.copy(this._offset).add(this._positionStart), this.translationSnap && (e === "local" && (i.position.applyQuaternion(ag.copy(this._quaternionStart).invert()), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), e === "world" && (i.parent && i.position.add(ee.setFromMatrixPosition(i.parent.matrixWorld)), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(ee.setFromMatrixPosition(i.parent.matrixWorld))));
63127
+ this._offset.copy(this.pointEnd).sub(this.pointStart), e === "local" && I !== "XYZ" && this._offset.applyQuaternion(this._worldQuaternionInv), I.indexOf("X") === -1 && (this._offset.x = 0), I.indexOf("Y") === -1 && (this._offset.y = 0), I.indexOf("Z") === -1 && (this._offset.z = 0), e === "local" && I !== "XYZ" ? this._offset.applyQuaternion(this._quaternionStart).divide(this._parentScale) : this._offset.applyQuaternion(this._parentQuaternionInv).divide(this._parentScale), i.position.copy(this._offset).add(this._positionStart), this.translationSnap && (e === "local" && (i.position.applyQuaternion(ag.copy(this._quaternionStart).invert()), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.position.applyQuaternion(this._quaternionStart)), e === "world" && (i.parent && i.position.add(te.setFromMatrixPosition(i.parent.matrixWorld)), I.search("X") !== -1 && (i.position.x = Math.round(i.position.x / this.translationSnap) * this.translationSnap), I.search("Y") !== -1 && (i.position.y = Math.round(i.position.y / this.translationSnap) * this.translationSnap), I.search("Z") !== -1 && (i.position.z = Math.round(i.position.z / this.translationSnap) * this.translationSnap), i.parent && i.position.sub(te.setFromMatrixPosition(i.parent.matrixWorld))));
63122
63128
  else if (g === "scale") {
63123
63129
  if (I.search("XYZ") !== -1) {
63124
63130
  let o = this.pointEnd.length() / this.pointStart.length();
63125
63131
  this.pointEnd.dot(this.pointStart) < 0 && (o *= -1), Ro.set(o, o, o);
63126
63132
  } else
63127
- ee.copy(this.pointStart), Ro.copy(this.pointEnd), ee.applyQuaternion(this._worldQuaternionInv), Ro.applyQuaternion(this._worldQuaternionInv), Ro.divide(ee), I.search("X") === -1 && (Ro.x = 1), I.search("Y") === -1 && (Ro.y = 1), I.search("Z") === -1 && (Ro.z = 1);
63133
+ te.copy(this.pointStart), Ro.copy(this.pointEnd), te.applyQuaternion(this._worldQuaternionInv), Ro.applyQuaternion(this._worldQuaternionInv), Ro.divide(te), I.search("X") === -1 && (Ro.x = 1), I.search("Y") === -1 && (Ro.y = 1), I.search("Z") === -1 && (Ro.z = 1);
63128
63134
  i.scale.copy(this._scaleStart).multiply(Ro), this.scaleSnap && (I.search("X") !== -1 && (i.scale.x = Math.round(i.scale.x / this.scaleSnap) * this.scaleSnap || this.scaleSnap), I.search("Y") !== -1 && (i.scale.y = Math.round(i.scale.y / this.scaleSnap) * this.scaleSnap || this.scaleSnap), I.search("Z") !== -1 && (i.scale.z = Math.round(i.scale.z / this.scaleSnap) * this.scaleSnap || this.scaleSnap));
63129
63135
  } else if (g === "rotate") {
63130
63136
  this._offset.copy(this.pointEnd).sub(this.pointStart);
63131
- const o = 20 / this.worldPosition.distanceTo(ee.setFromMatrixPosition(this.camera.matrixWorld));
63132
- I === "E" ? (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1) : I === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(ee.copy(this.rotationAxis).cross(this.eye)) * o) : (I === "X" || I === "Y" || I === "Z") && (this.rotationAxis.copy(qM[I]), ee.copy(qM[I]), e === "local" && ee.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(ee.cross(this.eye).normalize()) * o), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), e === "local" && I !== "E" && I !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
63137
+ const o = 20 / this.worldPosition.distanceTo(te.setFromMatrixPosition(this.camera.matrixWorld));
63138
+ I === "E" ? (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1) : I === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(te.copy(this.rotationAxis).cross(this.eye)) * o) : (I === "X" || I === "Y" || I === "Z") && (this.rotationAxis.copy(qM[I]), te.copy(qM[I]), e === "local" && te.applyQuaternion(this.worldQuaternion), this.rotationAngle = this._offset.dot(te.cross(this.eye).normalize()) * o), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), e === "local" && I !== "E" && I !== "XYZE" ? (i.quaternion.copy(this._quaternionStart), i.quaternion.multiply(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), i.quaternion.copy(ag.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), i.quaternion.multiply(this._quaternionStart).normalize());
63133
63139
  }
63134
63140
  this.dispatchEvent(Tw), this.dispatchEvent(bM);
63135
63141
  }
@@ -63260,7 +63266,7 @@ class DZ extends HA {
63260
63266
  h.color.setHex(7895160);
63261
63267
  const c = new pg(0, 0.04, 0.1, 12);
63262
63268
  c.translate(0, 0.05, 0);
63263
- const l = new zI(0.08, 0.08, 0.08);
63269
+ const l = new XI(0.08, 0.08, 0.08);
63264
63270
  l.translate(0, 0.04, 0);
63265
63271
  const w = new hI();
63266
63272
  w.setAttribute("position", new $A([0, 0, 0, 1, 0, 0], 3));
@@ -63294,13 +63300,13 @@ class DZ extends HA {
63294
63300
  [new MA(new zt(0.1, 0), a.clone()), [0, 0, 0]]
63295
63301
  ],
63296
63302
  XY: [
63297
- [new MA(new zI(0.15, 0.15, 0.01), Q.clone()), [0.15, 0.15, 0]]
63303
+ [new MA(new XI(0.15, 0.15, 0.01), Q.clone()), [0.15, 0.15, 0]]
63298
63304
  ],
63299
63305
  YZ: [
63300
- [new MA(new zI(0.15, 0.15, 0.01), B.clone()), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63306
+ [new MA(new XI(0.15, 0.15, 0.01), B.clone()), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63301
63307
  ],
63302
63308
  XZ: [
63303
- [new MA(new zI(0.15, 0.15, 0.01), s.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63309
+ [new MA(new XI(0.15, 0.15, 0.01), s.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63304
63310
  ]
63305
63311
  }, y = {
63306
63312
  X: [
@@ -63319,13 +63325,13 @@ class DZ extends HA {
63319
63325
  [new MA(new zt(0.2, 0), g)]
63320
63326
  ],
63321
63327
  XY: [
63322
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63328
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63323
63329
  ],
63324
63330
  YZ: [
63325
- [new MA(new zI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63331
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63326
63332
  ],
63327
63333
  XZ: [
63328
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63334
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63329
63335
  ]
63330
63336
  }, f = {
63331
63337
  START: [
@@ -63399,16 +63405,16 @@ class DZ extends HA {
63399
63405
  [new MA(l, o), [0, 0, -0.5], [-Math.PI / 2, 0, 0]]
63400
63406
  ],
63401
63407
  XY: [
63402
- [new MA(new zI(0.15, 0.15, 0.01), Q), [0.15, 0.15, 0]]
63408
+ [new MA(new XI(0.15, 0.15, 0.01), Q), [0.15, 0.15, 0]]
63403
63409
  ],
63404
63410
  YZ: [
63405
- [new MA(new zI(0.15, 0.15, 0.01), B), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63411
+ [new MA(new XI(0.15, 0.15, 0.01), B), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63406
63412
  ],
63407
63413
  XZ: [
63408
- [new MA(new zI(0.15, 0.15, 0.01), s), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63414
+ [new MA(new XI(0.15, 0.15, 0.01), s), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63409
63415
  ],
63410
63416
  XYZ: [
63411
- [new MA(new zI(0.1, 0.1, 0.1), a.clone())]
63417
+ [new MA(new XI(0.1, 0.1, 0.1), a.clone())]
63412
63418
  ]
63413
63419
  }, q = {
63414
63420
  X: [
@@ -63424,16 +63430,16 @@ class DZ extends HA {
63424
63430
  [new MA(new pg(0.2, 0, 0.6, 4), g), [0, 0, -0.3], [-Math.PI / 2, 0, 0]]
63425
63431
  ],
63426
63432
  XY: [
63427
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63433
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0.15, 0]]
63428
63434
  ],
63429
63435
  YZ: [
63430
- [new MA(new zI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63436
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0, 0.15, 0.15], [0, Math.PI / 2, 0]]
63431
63437
  ],
63432
63438
  XZ: [
63433
- [new MA(new zI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63439
+ [new MA(new XI(0.2, 0.2, 0.01), g), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
63434
63440
  ],
63435
63441
  XYZ: [
63436
- [new MA(new zI(0.2, 0.2, 0.2), g), [0, 0, 0]]
63442
+ [new MA(new XI(0.2, 0.2, 0.2), g), [0, 0, 0]]
63437
63443
  ]
63438
63444
  }, m = {
63439
63445
  X: [
@@ -63470,7 +63476,7 @@ class DZ extends HA {
63470
63476
  C.visible = !0, C.rotation.set(0, 0, 0), C.position.copy(this.worldPosition);
63471
63477
  let o;
63472
63478
  if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), C.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), C.tag === "helper") {
63473
- C.visible = !1, C.name === "AXIS" ? (C.position.copy(this.worldPositionStart), C.visible = !!this.axis, this.axis === "X" && (ag.setFromEuler(Jh.set(0, 0, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Y" && (ag.setFromEuler(Jh.set(0, 0, Math.PI / 2)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Z" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "XYZE" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), Ag.copy(this.rotationAxis), C.quaternion.setFromRotationMatrix(HM.lookAt(xM, Ag, mB)), C.quaternion.multiply(ag), C.visible = this.dragging), this.axis === "E" && (C.visible = !1)) : C.name === "START" ? (C.position.copy(this.worldPositionStart), C.visible = this.dragging) : C.name === "END" ? (C.position.copy(this.worldPosition), C.visible = this.dragging) : C.name === "DELTA" ? (C.position.copy(this.worldPositionStart), C.quaternion.copy(this.worldQuaternionStart), ee.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), ee.applyQuaternion(this.worldQuaternionStart.clone().invert()), C.scale.copy(ee), C.visible = this.dragging) : (C.quaternion.copy(g), this.dragging ? C.position.copy(this.worldPositionStart) : C.position.copy(this.worldPosition), this.axis && (C.visible = this.axis.search(C.name) !== -1));
63479
+ C.visible = !1, C.name === "AXIS" ? (C.position.copy(this.worldPositionStart), C.visible = !!this.axis, this.axis === "X" && (ag.setFromEuler(Jh.set(0, 0, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Y" && (ag.setFromEuler(Jh.set(0, 0, Math.PI / 2)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "Z" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), C.quaternion.copy(g).multiply(ag), Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.9 && (C.visible = !1)), this.axis === "XYZE" && (ag.setFromEuler(Jh.set(0, Math.PI / 2, 0)), Ag.copy(this.rotationAxis), C.quaternion.setFromRotationMatrix(HM.lookAt(xM, Ag, mB)), C.quaternion.multiply(ag), C.visible = this.dragging), this.axis === "E" && (C.visible = !1)) : C.name === "START" ? (C.position.copy(this.worldPositionStart), C.visible = this.dragging) : C.name === "END" ? (C.position.copy(this.worldPosition), C.visible = this.dragging) : C.name === "DELTA" ? (C.position.copy(this.worldPositionStart), C.quaternion.copy(this.worldQuaternionStart), te.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), te.applyQuaternion(this.worldQuaternionStart.clone().invert()), C.scale.copy(te), C.visible = this.dragging) : (C.quaternion.copy(g), this.dragging ? C.position.copy(this.worldPositionStart) : C.position.copy(this.worldPosition), this.axis && (C.visible = this.axis.search(C.name) !== -1));
63474
63480
  continue;
63475
63481
  }
63476
63482
  C.quaternion.copy(g), this.mode === "translate" || this.mode === "scale" ? (C.name === "X" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Y" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "Z" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) > 0.99 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XY" && Math.abs(Ag.copy(ua).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "YZ" && Math.abs(Ag.copy(wa).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1), C.name === "XZ" && Math.abs(Ag.copy(mB).applyQuaternion(g).dot(this.eye)) < 0.2 && (C.scale.set(1e-10, 1e-10, 1e-10), C.visible = !1)) : this.mode === "rotate" && (qh.copy(g), Ag.copy(this.eye).applyQuaternion(ag.copy(g).invert()), C.name.search("E") !== -1 && C.quaternion.setFromRotationMatrix(HM.lookAt(this.eye, xM, mB)), C.name === "X" && (ag.setFromAxisAngle(wa, Math.atan2(-Ag.y, Ag.z)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag)), C.name === "Y" && (ag.setFromAxisAngle(mB, Math.atan2(Ag.x, Ag.z)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag)), C.name === "Z" && (ag.setFromAxisAngle(ua, Math.atan2(Ag.y, Ag.x)), ag.multiplyQuaternions(qh, ag), C.quaternion.copy(ag))), C.visible = C.visible && (C.name.indexOf("X") === -1 || this.showX), C.visible = C.visible && (C.name.indexOf("Y") === -1 || this.showY), C.visible = C.visible && (C.name.indexOf("Z") === -1 || this.showZ), C.visible = C.visible && (C.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), C.material._color = C.material._color || C.material.color.clone(), C.material._opacity = C.material._opacity || C.material.opacity, C.material.color.copy(C.material._color), C.material.opacity = C.material._opacity, this.enabled && this.axis && (C.name === this.axis || this.axis.split("").some(function(B) {
@@ -63483,7 +63489,7 @@ class DZ extends HA {
63483
63489
  class dZ extends MA {
63484
63490
  constructor() {
63485
63491
  super(
63486
- new ae(1e5, 1e5, 2, 2),
63492
+ new zi(1e5, 1e5, 2, 2),
63487
63493
  new Cg({ visible: !1, wireframe: !0, side: Tg, transparent: !0, opacity: 0.1, toneMapped: !1 })
63488
63494
  ), this.isTransformControlsPlane = !0, this.type = "TransformControlsPlane";
63489
63495
  }
@@ -63521,7 +63527,7 @@ class dZ extends MA {
63521
63527
  default:
63522
63528
  bt.set(0, 0, 0);
63523
63529
  }
63524
- bt.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (vM.lookAt(ee.set(0, 0, 0), bt, Ag), this.quaternion.setFromRotationMatrix(vM)), super.updateMatrixWorld(A);
63530
+ bt.length() === 0 ? this.quaternion.copy(this.cameraQuaternion) : (vM.lookAt(te.set(0, 0, 0), bt, Ag), this.quaternion.setFromRotationMatrix(vM)), super.updateMatrixWorld(A);
63525
63531
  }
63526
63532
  }
63527
63533
  var wZ = Object.defineProperty, uZ = Object.getOwnPropertyDescriptor, pZ = (t, A, I, g) => {
@@ -63577,7 +63583,7 @@ class Hf extends vA {
63577
63583
  I.setSpace(I.space === "local" ? "world" : "local");
63578
63584
  break;
63579
63585
  case 16:
63580
- I.setTranslationSnap(100), I.setRotationSnap(ne.degToRad(15)), I.setScaleSnap(0.25);
63586
+ I.setTranslationSnap(100), I.setRotationSnap(ae.degToRad(15)), I.setScaleSnap(0.25);
63581
63587
  break;
63582
63588
  case 87:
63583
63589
  I.setMode("translate");
@@ -63883,7 +63889,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63883
63889
  Avatar_Brain_LookAt: Ql,
63884
63890
  Avatar_MouthShapes: JD,
63885
63891
  Avatar_MustacheShake: Wm,
63886
- Avatar_POI: Qe,
63892
+ Avatar_POI: ne,
63887
63893
  AxesHelper: Qr,
63888
63894
  BaseUIComponent: Qo,
63889
63895
  BasicIKConstraint: jm,
@@ -63948,7 +63954,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
63948
63954
  MinMaxGradient: He,
63949
63955
  NestedGltf: qf,
63950
63956
  Networking: VQ,
63951
- NoiseModule: XI,
63957
+ NoiseModule: zI,
63952
63958
  ObjectRaycaster: Kf,
63953
63959
  OffsetConstraint: mn,
63954
63960
  OrbitControls: Sn,
@@ -64012,7 +64018,7 @@ const MZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
64012
64018
  VRUserState: Vt,
64013
64019
  VelocityOverLifetimeModule: ve,
64014
64020
  VerticalLayoutGroup: lK,
64015
- VideoPlayer: zi,
64021
+ VideoPlayer: Xi,
64016
64022
  Voip: sB,
64017
64023
  Volume: uf,
64018
64024
  VolumeComponent: kn,
@@ -64147,7 +64153,7 @@ AA.add("AudioTrackHandler", Ef);
64147
64153
  AA.add("Avatar_Brain_LookAt", Ql);
64148
64154
  AA.add("Avatar_MouthShapes", JD);
64149
64155
  AA.add("Avatar_MustacheShake", Wm);
64150
- AA.add("Avatar_POI", Qe);
64156
+ AA.add("Avatar_POI", ne);
64151
64157
  AA.add("AvatarBlink_Simple", fn);
64152
64158
  AA.add("AvatarEyeLook_Rotation", sr);
64153
64159
  AA.add("AvatarLoader", xS);
@@ -64217,7 +64223,7 @@ AA.add("MinMaxCurve", oI);
64217
64223
  AA.add("MinMaxGradient", He);
64218
64224
  AA.add("NestedGltf", qf);
64219
64225
  AA.add("Networking", VQ);
64220
- AA.add("NoiseModule", XI);
64226
+ AA.add("NoiseModule", zI);
64221
64227
  AA.add("ObjectRaycaster", Kf);
64222
64228
  AA.add("OffsetConstraint", mn);
64223
64229
  AA.add("OrbitControls", Sn);
@@ -64283,7 +64289,7 @@ AA.add("UsageMarker", or);
64283
64289
  AA.add("USDZExporter", td);
64284
64290
  AA.add("VelocityOverLifetimeModule", ve);
64285
64291
  AA.add("VerticalLayoutGroup", lK);
64286
- AA.add("VideoPlayer", zi);
64292
+ AA.add("VideoPlayer", Xi);
64287
64293
  AA.add("Voip", sB);
64288
64294
  AA.add("Volume", uf);
64289
64295
  AA.add("VolumeComponent", kn);
@@ -64882,7 +64888,7 @@ export {
64882
64888
  Ql as Avatar_Brain_LookAt,
64883
64889
  JD as Avatar_MouthShapes,
64884
64890
  Wm as Avatar_MustacheShake,
64885
- Qe as Avatar_POI,
64891
+ ne as Avatar_POI,
64886
64892
  Qr as AxesHelper,
64887
64893
  Qo as BaseUIComponent,
64888
64894
  jm as BasicIKConstraint,
@@ -64939,7 +64945,7 @@ export {
64939
64945
  HD as Image,
64940
64946
  ys as InheritVelocityModule,
64941
64947
  Fn as InputField,
64942
- Be as InstancingUtil,
64948
+ se as InstancingUtil,
64943
64949
  Ao as InstantiateOptions,
64944
64950
  Cr as Interactable,
64945
64951
  uK as Keyboard,
@@ -64953,6 +64959,7 @@ export {
64953
64959
  uD as LookAtConstraint,
64954
64960
  Yi as MainModule,
64955
64961
  xD as MaskableGraphic,
64962
+ gI as Mathf,
64956
64963
  cf as MeshCollider,
64957
64964
  Mf as MeshRenderer,
64958
64965
  oI as MinMaxCurve,
@@ -64960,7 +64967,7 @@ export {
64960
64967
  jK as NeedleGltfLoader,
64961
64968
  qf as NestedGltf,
64962
64969
  VQ as Networking,
64963
- XI as NoiseModule,
64970
+ zI as NoiseModule,
64964
64971
  Kf as ObjectRaycaster,
64965
64972
  mn as OffsetConstraint,
64966
64973
  Sn as OrbitControls,
@@ -65025,7 +65032,7 @@ export {
65025
65032
  Vt as VRUserState,
65026
65033
  ve as VelocityOverLifetimeModule,
65027
65034
  lK as VerticalLayoutGroup,
65028
- zi as VideoPlayer,
65035
+ Xi as VideoPlayer,
65029
65036
  sB as Voip,
65030
65037
  uf as Volume,
65031
65038
  kn as VolumeComponent,