@needle-tools/engine 3.6.13 → 3.6.14

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.
@@ -123,9 +123,9 @@ function H0(n) {
123
123
  }
124
124
  const xA = ae("debugresolveurl"), DN = "rel:";
125
125
  function Toe(n, e) {
126
- return iu(n, e);
126
+ return nu(n, e);
127
127
  }
128
- function iu(n, e) {
128
+ function nu(n, e) {
129
129
  if (e === void 0)
130
130
  return xA && console.warn("getPath: uri is undefined, returning uri", e), e;
131
131
  if (e.startsWith("./"))
@@ -500,7 +500,7 @@ function qN(n, e) {
500
500
  * Copyright 2010-2022 Three.js Authors
501
501
  * SPDX-License-Identifier: MIT
502
502
  */
503
- const Gc = "147dev", vh = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, yh = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, MD = 0, eC = 1, TD = 2, XN = 3, YN = 0, YS = 1, KS = 2, fd = 3, Us = 0, Tn = 1, Si = 2, Gi = 0, yl = 1, Xh = 2, tC = 3, iC = 4, PD = 5, Sh = 100, RD = 101, BD = 102, nC = 103, sC = 104, DD = 200, kD = 201, OD = 202, LD = 203, JS = 204, ZS = 205, FD = 206, UD = 207, ND = 208, zD = 209, GD = 210, $S = 0, V0 = 1, Rg = 2, Nd = 3, zd = 4, W0 = 5, j0 = 6, fm = 7, pm = 0, QD = 1, HD = 2, Ls = 0, Bg = 1, eE = 2, VD = 3, tE = 4, WD = 5, q0 = 300, Dc = 301, kc = 302, ro = 303, Gd = 304, of = 306, rr = 1e3, Wn = 1001, Sl = 1002, Yt = 1003, Qd = 1004, KN = 1004, Hd = 1005, JN = 1005, kt = 1006, gm = 1007, ZN = 1007, Ho = 1008, $N = 1008, mi = 1009, jD = 1010, qD = 1011, iE = 1012, XD = 1013, ul = 1014, mn = 1015, Pn = 1016, YD = 1017, KD = 1018, Sc = 1020, JD = 1021, ZD = 1022, Ti = 1023, X0 = 1024, $D = 1025, Ec = 1026, Oc = 1027, _c = 1028, ek = 1029, Bh = 1030, tk = 1031, ik = 1033, Xp = 33776, ey = 33777, ty = 33778, Yp = 33779, Hy = 35840, rC = 35841, Vy = 35842, oC = 35843, nE = 36196, Wy = 37492, jy = 37496, qy = 37808, aC = 37809, lC = 37810, cC = 37811, hC = 37812, uC = 37813, dC = 37814, fC = 37815, pC = 37816, gC = 37817, mC = 37818, AC = 37819, vC = 37820, yC = 37821, Xy = 36492, Dg = 2200, sE = 2201, nk = 2202, Yh = 2300, El = 2301, iy = 2302, Dh = 2400, kh = 2401, kg = 2402, Y0 = 2500, rE = 2501, ez = 0, sk = 1, oE = 2, cn = 3e3, yt = 3001, rs = 3200, K0 = 3201, Qc = 0, rk = 1, ok = "", Bo = "srgb", Vd = "srgb-linear", ak = 0, Kp = 7680, lk = 7681, ck = 7682, hk = 7683, uk = 34055, dk = 34056, fk = 5386, pk = 512, gk = 513, mk = 514, Ak = 515, vk = 516, yk = 517, bk = 518, aE = 519, Og = 35044, ms = 35048, tz = 35040, iz = 35045, nz = 35049, sz = 35041, rz = 35046, oz = 35050, az = 35042, lz = "100", bC = "300 es", Yy = 1035;
503
+ const Gc = "147dev", vh = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, yh = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, MD = 0, eC = 1, TD = 2, XN = 3, YN = 0, YS = 1, KS = 2, fd = 3, Us = 0, Tn = 1, Si = 2, Gi = 0, yl = 1, Yh = 2, tC = 3, iC = 4, PD = 5, Eh = 100, RD = 101, BD = 102, nC = 103, sC = 104, DD = 200, kD = 201, OD = 202, LD = 203, JS = 204, ZS = 205, FD = 206, UD = 207, ND = 208, zD = 209, GD = 210, $S = 0, V0 = 1, Rg = 2, Nd = 3, zd = 4, W0 = 5, j0 = 6, fm = 7, pm = 0, QD = 1, HD = 2, Ls = 0, Bg = 1, eE = 2, VD = 3, tE = 4, WD = 5, q0 = 300, Dc = 301, kc = 302, ro = 303, Gd = 304, of = 306, rr = 1e3, Wn = 1001, Sl = 1002, Yt = 1003, Qd = 1004, KN = 1004, Hd = 1005, JN = 1005, kt = 1006, gm = 1007, ZN = 1007, Ho = 1008, $N = 1008, mi = 1009, jD = 1010, qD = 1011, iE = 1012, XD = 1013, ul = 1014, mn = 1015, Pn = 1016, YD = 1017, KD = 1018, Sc = 1020, JD = 1021, ZD = 1022, Ti = 1023, X0 = 1024, $D = 1025, Ec = 1026, Oc = 1027, _c = 1028, ek = 1029, Dh = 1030, tk = 1031, ik = 1033, Xp = 33776, ey = 33777, ty = 33778, Yp = 33779, Hy = 35840, rC = 35841, Vy = 35842, oC = 35843, nE = 36196, Wy = 37492, jy = 37496, qy = 37808, aC = 37809, lC = 37810, cC = 37811, hC = 37812, uC = 37813, dC = 37814, fC = 37815, pC = 37816, gC = 37817, mC = 37818, AC = 37819, vC = 37820, yC = 37821, Xy = 36492, Dg = 2200, sE = 2201, nk = 2202, Kh = 2300, El = 2301, iy = 2302, kh = 2400, Oh = 2401, kg = 2402, Y0 = 2500, rE = 2501, ez = 0, sk = 1, oE = 2, cn = 3e3, yt = 3001, rs = 3200, K0 = 3201, Qc = 0, rk = 1, ok = "", Bo = "srgb", Vd = "srgb-linear", ak = 0, Kp = 7680, lk = 7681, ck = 7682, hk = 7683, uk = 34055, dk = 34056, fk = 5386, pk = 512, gk = 513, mk = 514, Ak = 515, vk = 516, yk = 517, bk = 518, aE = 519, Og = 35044, ms = 35048, tz = 35040, iz = 35045, nz = 35049, sz = 35041, rz = 35046, oz = 35050, az = 35042, lz = "100", bC = "300 es", Yy = 1035;
504
504
  class Ln {
505
505
  addEventListener(e, t) {
506
506
  this._listeners === void 0 && (this._listeners = {});
@@ -537,7 +537,7 @@ class Ln {
537
537
  }
538
538
  const hs = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
539
539
  let xM = 1234567;
540
- const Qh = Math.PI / 180, Wd = 180 / Math.PI;
540
+ const Hh = Math.PI / 180, Wd = 180 / Math.PI;
541
541
  function xr() {
542
542
  const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
543
543
  return (hs[n & 255] + hs[n >> 8 & 255] + hs[n >> 16 & 255] + hs[n >> 24 & 255] + "-" + hs[e & 255] + hs[e >> 8 & 255] + "-" + hs[e >> 16 & 15 | 64] + hs[e >> 24 & 255] + "-" + hs[t & 63 | 128] + hs[t >> 8 & 255] + "-" + hs[t >> 16 & 255] + hs[t >> 24 & 255] + hs[i & 255] + hs[i >> 8 & 255] + hs[i >> 16 & 255] + hs[i >> 24 & 255]).toLowerCase();
@@ -584,7 +584,7 @@ function vz(n) {
584
584
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
585
585
  }
586
586
  function yz(n) {
587
- return n * Qh;
587
+ return n * Hh;
588
588
  }
589
589
  function bz(n) {
590
590
  return n * Wd;
@@ -657,7 +657,7 @@ function _i(n, e) {
657
657
  }
658
658
  var Fs = /* @__PURE__ */ Object.freeze({
659
659
  __proto__: null,
660
- DEG2RAD: Qh,
660
+ DEG2RAD: Hh,
661
661
  RAD2DEG: Wd,
662
662
  generateUUID: xr,
663
663
  clamp: on,
@@ -1069,14 +1069,14 @@ function pd(n, e) {
1069
1069
  function Lg(n) {
1070
1070
  return document.createElementNS("http://www.w3.org/1999/xhtml", n);
1071
1071
  }
1072
- function Hh(n) {
1072
+ function Vh(n) {
1073
1073
  return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
1074
1074
  }
1075
1075
  function ny(n) {
1076
1076
  return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;
1077
1077
  }
1078
1078
  const G_ = {
1079
- [Bo]: { [Vd]: Hh },
1079
+ [Bo]: { [Vd]: Vh },
1080
1080
  [Vd]: { [Bo]: ny }
1081
1081
  }, ps = {
1082
1082
  legacyMode: !0,
@@ -1326,7 +1326,7 @@ class ye {
1326
1326
  return this.r = e.r, this.g = e.g, this.b = e.b, this;
1327
1327
  }
1328
1328
  copySRGBToLinear(e) {
1329
- return this.r = Hh(e.r), this.g = Hh(e.g), this.b = Hh(e.b), this;
1329
+ return this.r = Vh(e.r), this.g = Vh(e.g), this.b = Vh(e.b), this;
1330
1330
  }
1331
1331
  copyLinearToSRGB(e) {
1332
1332
  return this.r = ny(e.r), this.g = ny(e.g), this.b = ny(e.b), this;
@@ -1425,7 +1425,7 @@ class ye {
1425
1425
  }
1426
1426
  }
1427
1427
  ye.NAMES = wk;
1428
- let Su;
1428
+ let Eu;
1429
1429
  class cE {
1430
1430
  static getDataURL(e) {
1431
1431
  if (/^data:/i.test(e.src) || typeof HTMLCanvasElement > "u")
@@ -1434,9 +1434,9 @@ class cE {
1434
1434
  if (e instanceof HTMLCanvasElement)
1435
1435
  t = e;
1436
1436
  else {
1437
- Su === void 0 && (Su = Lg("canvas")), Su.width = e.width, Su.height = e.height;
1438
- const i = Su.getContext("2d");
1439
- e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), t = Su;
1437
+ Eu === void 0 && (Eu = Lg("canvas")), Eu.width = e.width, Eu.height = e.height;
1438
+ const i = Eu.getContext("2d");
1439
+ e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), t = Eu;
1440
1440
  }
1441
1441
  return t.width > 2048 || t.height > 2048 ? (console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons", e), t.toDataURL("image/jpeg", 0.6)) : t.toDataURL("image/png");
1442
1442
  }
@@ -1448,12 +1448,12 @@ class cE {
1448
1448
  i.drawImage(e, 0, 0, e.width, e.height);
1449
1449
  const s = i.getImageData(0, 0, e.width, e.height), r = s.data;
1450
1450
  for (let o = 0; o < r.length; o++)
1451
- r[o] = Hh(r[o] / 255) * 255;
1451
+ r[o] = Vh(r[o] / 255) * 255;
1452
1452
  return i.putImageData(s, 0, 0), t;
1453
1453
  } else if (e.data) {
1454
1454
  const t = e.data.slice(0);
1455
1455
  for (let i = 0; i < t.length; i++)
1456
- t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(Hh(t[i] / 255) * 255) : t[i] = Hh(t[i]);
1456
+ t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(Vh(t[i] / 255) * 255) : t[i] = Vh(t[i]);
1457
1457
  return {
1458
1458
  data: t,
1459
1459
  width: e.width,
@@ -2433,7 +2433,7 @@ class bs {
2433
2433
  intersectsTriangle(e) {
2434
2434
  if (this.isEmpty())
2435
2435
  return !1;
2436
- this.getCenter(np), SA.subVectors(this.max, np), Eu.subVectors(e.a, np), Iu.subVectors(e.b, np), Mu.subVectors(e.c, np), jl.subVectors(Iu, Eu), ql.subVectors(Mu, Iu), oh.subVectors(Eu, Mu);
2436
+ this.getCenter(np), SA.subVectors(this.max, np), Iu.subVectors(e.a, np), Mu.subVectors(e.b, np), Tu.subVectors(e.c, np), jl.subVectors(Mu, Iu), ql.subVectors(Tu, Mu), oh.subVectors(Iu, Tu);
2437
2437
  let t = [
2438
2438
  0,
2439
2439
  -jl.z,
@@ -2463,7 +2463,7 @@ class bs {
2463
2463
  oh.x,
2464
2464
  0
2465
2465
  ];
2466
- return !j_(t, Eu, Iu, Mu, SA) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !j_(t, Eu, Iu, Mu, SA)) ? !1 : (EA.crossVectors(jl, ql), t = [EA.x, EA.y, EA.z], j_(t, Eu, Iu, Mu, SA));
2466
+ return !j_(t, Iu, Mu, Tu, SA) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !j_(t, Iu, Mu, Tu, SA)) ? !1 : (EA.crossVectors(jl, ql), t = [EA.x, EA.y, EA.z], j_(t, Iu, Mu, Tu, SA));
2467
2467
  }
2468
2468
  clampPoint(e, t) {
2469
2469
  return t.copy(e).clamp(this.min, this.max);
@@ -2499,7 +2499,7 @@ const Na = [
2499
2499
  /* @__PURE__ */ new S(),
2500
2500
  /* @__PURE__ */ new S(),
2501
2501
  /* @__PURE__ */ new S()
2502
- ], rh = /* @__PURE__ */ new S(), W_ = /* @__PURE__ */ new bs(), Eu = /* @__PURE__ */ new S(), Iu = /* @__PURE__ */ new S(), Mu = /* @__PURE__ */ new S(), jl = /* @__PURE__ */ new S(), ql = /* @__PURE__ */ new S(), oh = /* @__PURE__ */ new S(), np = /* @__PURE__ */ new S(), SA = /* @__PURE__ */ new S(), EA = /* @__PURE__ */ new S(), ah = /* @__PURE__ */ new S();
2502
+ ], rh = /* @__PURE__ */ new S(), W_ = /* @__PURE__ */ new bs(), Iu = /* @__PURE__ */ new S(), Mu = /* @__PURE__ */ new S(), Tu = /* @__PURE__ */ new S(), jl = /* @__PURE__ */ new S(), ql = /* @__PURE__ */ new S(), oh = /* @__PURE__ */ new S(), np = /* @__PURE__ */ new S(), SA = /* @__PURE__ */ new S(), EA = /* @__PURE__ */ new S(), ah = /* @__PURE__ */ new S();
2503
2503
  function j_(n, e, t, i, s) {
2504
2504
  for (let r = 0, o = n.length - 3; r <= o; r += 3) {
2505
2505
  ah.fromArray(n, r);
@@ -2802,7 +2802,7 @@ class Pe {
2802
2802
  ), this;
2803
2803
  }
2804
2804
  extractRotation(e) {
2805
- const t = this.elements, i = e.elements, s = 1 / Tu.setFromMatrixColumn(e, 0).length(), r = 1 / Tu.setFromMatrixColumn(e, 1).length(), o = 1 / Tu.setFromMatrixColumn(e, 2).length();
2805
+ const t = this.elements, i = e.elements, s = 1 / Pu.setFromMatrixColumn(e, 0).length(), r = 1 / Pu.setFromMatrixColumn(e, 1).length(), o = 1 / Pu.setFromMatrixColumn(e, 2).length();
2806
2806
  return t[0] = i[0] * s, t[1] = i[1] * s, t[2] = i[2] * s, t[3] = 0, t[4] = i[4] * r, t[5] = i[5] * r, t[6] = i[6] * r, t[7] = 0, t[8] = i[8] * o, t[9] = i[9] * o, t[10] = i[10] * o, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
2807
2807
  }
2808
2808
  makeRotationFromEuler(e) {
@@ -3027,8 +3027,8 @@ class Pe {
3027
3027
  }
3028
3028
  decompose(e, t, i) {
3029
3029
  const s = this.elements;
3030
- let r = Tu.set(s[0], s[1], s[2]).length();
3031
- const o = Tu.set(s[4], s[5], s[6]).length(), a = Tu.set(s[8], s[9], s[10]).length();
3030
+ let r = Pu.set(s[0], s[1], s[2]).length();
3031
+ const o = Pu.set(s[4], s[5], s[6]).length(), a = Pu.set(s[8], s[9], s[10]).length();
3032
3032
  this.determinant() < 0 && (r = -r), e.x = s[12], e.y = s[13], e.z = s[14], wo.copy(this);
3033
3033
  const c = 1 / r, u = 1 / o, d = 1 / a;
3034
3034
  return wo.elements[0] *= c, wo.elements[1] *= c, wo.elements[2] *= c, wo.elements[4] *= u, wo.elements[5] *= u, wo.elements[6] *= u, wo.elements[8] *= d, wo.elements[9] *= d, wo.elements[10] *= d, t.setFromRotationMatrix(wo), i.x = r, i.y = o, i.z = a, this;
@@ -3058,7 +3058,7 @@ class Pe {
3058
3058
  return e[t] = i[0], e[t + 1] = i[1], e[t + 2] = i[2], e[t + 3] = i[3], e[t + 4] = i[4], e[t + 5] = i[5], e[t + 6] = i[6], e[t + 7] = i[7], e[t + 8] = i[8], e[t + 9] = i[9], e[t + 10] = i[10], e[t + 11] = i[11], e[t + 12] = i[12], e[t + 13] = i[13], e[t + 14] = i[14], e[t + 15] = i[15], e;
3059
3059
  }
3060
3060
  }
3061
- const Tu = /* @__PURE__ */ new S(), wo = /* @__PURE__ */ new Pe(), Mz = /* @__PURE__ */ new S(0, 0, 0), Tz = /* @__PURE__ */ new S(1, 1, 1), Yl = /* @__PURE__ */ new S(), TA = /* @__PURE__ */ new S(), hr = /* @__PURE__ */ new S(), CM = /* @__PURE__ */ new Pe(), SM = /* @__PURE__ */ new xe();
3061
+ const Pu = /* @__PURE__ */ new S(), wo = /* @__PURE__ */ new Pe(), Mz = /* @__PURE__ */ new S(0, 0, 0), Tz = /* @__PURE__ */ new S(1, 1, 1), Yl = /* @__PURE__ */ new S(), TA = /* @__PURE__ */ new S(), hr = /* @__PURE__ */ new S(), CM = /* @__PURE__ */ new Pe(), SM = /* @__PURE__ */ new xe();
3062
3062
  class vn {
3063
3063
  constructor(e = 0, t = 0, i = 0, s = vn.DefaultOrder) {
3064
3064
  this.isEuler = !0, this._x = e, this._y = t, this._z = i, this._order = s;
@@ -3185,7 +3185,7 @@ class co {
3185
3185
  }
3186
3186
  }
3187
3187
  let Pz = 0;
3188
- const EM = /* @__PURE__ */ new S(), Pu = /* @__PURE__ */ new xe(), Ga = /* @__PURE__ */ new Pe(), PA = /* @__PURE__ */ new S(), rp = /* @__PURE__ */ new S(), Rz = /* @__PURE__ */ new S(), Bz = /* @__PURE__ */ new xe(), IM = /* @__PURE__ */ new S(1, 0, 0), MM = /* @__PURE__ */ new S(0, 1, 0), TM = /* @__PURE__ */ new S(0, 0, 1), Dz = { type: "added" }, PM = { type: "removed" };
3188
+ const EM = /* @__PURE__ */ new S(), Ru = /* @__PURE__ */ new xe(), Ga = /* @__PURE__ */ new Pe(), PA = /* @__PURE__ */ new S(), rp = /* @__PURE__ */ new S(), Rz = /* @__PURE__ */ new S(), Bz = /* @__PURE__ */ new xe(), IM = /* @__PURE__ */ new S(1, 0, 0), MM = /* @__PURE__ */ new S(0, 1, 0), TM = /* @__PURE__ */ new S(0, 0, 1), Dz = { type: "added" }, PM = { type: "removed" };
3189
3189
  class Ie extends Ln {
3190
3190
  constructor() {
3191
3191
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Pz++ }), this.uuid = xr(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ie.DefaultUp.clone();
@@ -3248,10 +3248,10 @@ class Ie extends Ln {
3248
3248
  this.quaternion.copy(e);
3249
3249
  }
3250
3250
  rotateOnAxis(e, t) {
3251
- return Pu.setFromAxisAngle(e, t), this.quaternion.multiply(Pu), this;
3251
+ return Ru.setFromAxisAngle(e, t), this.quaternion.multiply(Ru), this;
3252
3252
  }
3253
3253
  rotateOnWorldAxis(e, t) {
3254
- return Pu.setFromAxisAngle(e, t), this.quaternion.premultiply(Pu), this;
3254
+ return Ru.setFromAxisAngle(e, t), this.quaternion.premultiply(Ru), this;
3255
3255
  }
3256
3256
  rotateX(e) {
3257
3257
  return this.rotateOnAxis(IM, e);
@@ -3283,7 +3283,7 @@ class Ie extends Ln {
3283
3283
  lookAt(e, t, i) {
3284
3284
  e.isVector3 ? PA.copy(e) : PA.set(e, t, i);
3285
3285
  const s = this.parent;
3286
- this.updateWorldMatrix(!0, !1), rp.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Ga.lookAt(rp, PA, this.up) : Ga.lookAt(PA, rp, this.up), this.quaternion.setFromRotationMatrix(Ga), s && (Ga.extractRotation(s.matrixWorld), Pu.setFromRotationMatrix(Ga), this.quaternion.premultiply(Pu.invert()));
3286
+ this.updateWorldMatrix(!0, !1), rp.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Ga.lookAt(rp, PA, this.up) : Ga.lookAt(PA, rp, this.up), this.quaternion.setFromRotationMatrix(Ga), s && (Ga.extractRotation(s.matrixWorld), Ru.setFromRotationMatrix(Ga), this.quaternion.premultiply(Ru.invert()));
3287
3287
  }
3288
3288
  add(e) {
3289
3289
  if (arguments.length > 1) {
@@ -3472,7 +3472,7 @@ class Ie extends Ln {
3472
3472
  Ie.DefaultUp = /* @__PURE__ */ new S(0, 1, 0);
3473
3473
  Ie.DefaultMatrixAutoUpdate = !0;
3474
3474
  Ie.DefaultMatrixWorldAutoUpdate = !0;
3475
- const Co = /* @__PURE__ */ new S(), Qa = /* @__PURE__ */ new S(), J_ = /* @__PURE__ */ new S(), Ha = /* @__PURE__ */ new S(), Ru = /* @__PURE__ */ new S(), Bu = /* @__PURE__ */ new S(), RM = /* @__PURE__ */ new S(), Z_ = /* @__PURE__ */ new S(), $_ = /* @__PURE__ */ new S(), ex = /* @__PURE__ */ new S();
3475
+ const Co = /* @__PURE__ */ new S(), Qa = /* @__PURE__ */ new S(), J_ = /* @__PURE__ */ new S(), Ha = /* @__PURE__ */ new S(), Bu = /* @__PURE__ */ new S(), Du = /* @__PURE__ */ new S(), RM = /* @__PURE__ */ new S(), Z_ = /* @__PURE__ */ new S(), $_ = /* @__PURE__ */ new S(), ex = /* @__PURE__ */ new S();
3476
3476
  class vr {
3477
3477
  constructor(e = new S(), t = new S(), i = new S()) {
3478
3478
  this.a = e, this.b = t, this.c = i;
@@ -3546,29 +3546,29 @@ class vr {
3546
3546
  closestPointToPoint(e, t) {
3547
3547
  const i = this.a, s = this.b, r = this.c;
3548
3548
  let o, a;
3549
- Ru.subVectors(s, i), Bu.subVectors(r, i), Z_.subVectors(e, i);
3550
- const l = Ru.dot(Z_), c = Bu.dot(Z_);
3549
+ Bu.subVectors(s, i), Du.subVectors(r, i), Z_.subVectors(e, i);
3550
+ const l = Bu.dot(Z_), c = Du.dot(Z_);
3551
3551
  if (l <= 0 && c <= 0)
3552
3552
  return t.copy(i);
3553
3553
  $_.subVectors(e, s);
3554
- const u = Ru.dot($_), d = Bu.dot($_);
3554
+ const u = Bu.dot($_), d = Du.dot($_);
3555
3555
  if (u >= 0 && d <= u)
3556
3556
  return t.copy(s);
3557
3557
  const f = l * d - u * c;
3558
3558
  if (f <= 0 && l >= 0 && u <= 0)
3559
- return o = l / (l - u), t.copy(i).addScaledVector(Ru, o);
3559
+ return o = l / (l - u), t.copy(i).addScaledVector(Bu, o);
3560
3560
  ex.subVectors(e, r);
3561
- const p = Ru.dot(ex), g = Bu.dot(ex);
3561
+ const p = Bu.dot(ex), g = Du.dot(ex);
3562
3562
  if (g >= 0 && p <= g)
3563
3563
  return t.copy(r);
3564
3564
  const m = p * c - l * g;
3565
3565
  if (m <= 0 && c >= 0 && g <= 0)
3566
- return a = c / (c - g), t.copy(i).addScaledVector(Bu, a);
3566
+ return a = c / (c - g), t.copy(i).addScaledVector(Du, a);
3567
3567
  const A = u * g - p * d;
3568
3568
  if (A <= 0 && d - u >= 0 && p - g >= 0)
3569
3569
  return RM.subVectors(r, s), a = (d - u) / (d - u + (p - g)), t.copy(s).addScaledVector(RM, a);
3570
3570
  const v = 1 / (A + m + f);
3571
- return o = m * v, a = f * v, t.copy(i).addScaledVector(Ru, o).addScaledVector(Bu, a);
3571
+ return o = m * v, a = f * v, t.copy(i).addScaledVector(Bu, o).addScaledVector(Du, a);
3572
3572
  }
3573
3573
  equals(e) {
3574
3574
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
@@ -3577,7 +3577,7 @@ class vr {
3577
3577
  let kz = 0;
3578
3578
  class Bt extends Ln {
3579
3579
  constructor() {
3580
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: kz++ }), this.uuid = xr(), this.name = "", this.type = "Material", this.blending = yl, this.side = Us, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = JS, this.blendDst = ZS, this.blendEquation = Sh, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Nd, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = aE, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Kp, this.stencilZFail = Kp, this.stencilZPass = Kp, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3580
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: kz++ }), this.uuid = xr(), this.name = "", this.type = "Material", this.blending = yl, this.side = Us, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = JS, this.blendDst = ZS, this.blendEquation = Eh, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Nd, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = aE, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Kp, this.stencilZFail = Kp, this.stencilZPass = Kp, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3581
3581
  }
3582
3582
  get alphaTest() {
3583
3583
  return this._alphaTest;
@@ -3839,7 +3839,7 @@ class Gz extends rt {
3839
3839
  }
3840
3840
  }
3841
3841
  let Qz = 0;
3842
- const Fr = /* @__PURE__ */ new Pe(), tx = /* @__PURE__ */ new Ie(), Du = /* @__PURE__ */ new S(), ur = /* @__PURE__ */ new bs(), op = /* @__PURE__ */ new bs(), Nn = /* @__PURE__ */ new S();
3842
+ const Fr = /* @__PURE__ */ new Pe(), tx = /* @__PURE__ */ new Ie(), ku = /* @__PURE__ */ new S(), ur = /* @__PURE__ */ new bs(), op = /* @__PURE__ */ new bs(), Nn = /* @__PURE__ */ new S();
3843
3843
  class At extends Ln {
3844
3844
  constructor() {
3845
3845
  super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Qz++ }), this.uuid = xr(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
@@ -3908,7 +3908,7 @@ class At extends Ln {
3908
3908
  return tx.lookAt(e), tx.updateMatrix(), this.applyMatrix4(tx.matrix), this;
3909
3909
  }
3910
3910
  center() {
3911
- return this.computeBoundingBox(), this.boundingBox.getCenter(Du).negate(), this.translate(Du.x, Du.y, Du.z), this;
3911
+ return this.computeBoundingBox(), this.boundingBox.getCenter(ku).negate(), this.translate(ku.x, ku.y, ku.z), this;
3912
3912
  }
3913
3913
  setFromPoints(e) {
3914
3914
  const t = [];
@@ -3960,7 +3960,7 @@ class At extends Ln {
3960
3960
  for (let r = 0, o = t.length; r < o; r++) {
3961
3961
  const a = t[r], l = this.morphTargetsRelative;
3962
3962
  for (let c = 0, u = a.count; c < u; c++)
3963
- Nn.fromBufferAttribute(a, c), l && (Du.fromBufferAttribute(e, c), Nn.add(Du)), s = Math.max(s, i.distanceToSquared(Nn));
3963
+ Nn.fromBufferAttribute(a, c), l && (ku.fromBufferAttribute(e, c), Nn.add(ku)), s = Math.max(s, i.distanceToSquared(Nn));
3964
3964
  }
3965
3965
  this.boundingSphere.radius = Math.sqrt(s), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
3966
3966
  }
@@ -4155,7 +4155,7 @@ class At extends Ln {
4155
4155
  this.dispatchEvent({ type: "dispose" });
4156
4156
  }
4157
4157
  }
4158
- const BM = /* @__PURE__ */ new Pe(), ku = /* @__PURE__ */ new Ol(), ix = /* @__PURE__ */ new Vo(), Kl = /* @__PURE__ */ new S(), Jl = /* @__PURE__ */ new S(), Zl = /* @__PURE__ */ new S(), nx = /* @__PURE__ */ new S(), sx = /* @__PURE__ */ new S(), rx = /* @__PURE__ */ new S(), BA = /* @__PURE__ */ new S(), DA = /* @__PURE__ */ new S(), kA = /* @__PURE__ */ new S(), OA = /* @__PURE__ */ new V(), LA = /* @__PURE__ */ new V(), FA = /* @__PURE__ */ new V(), ox = /* @__PURE__ */ new S(), UA = /* @__PURE__ */ new S();
4158
+ const BM = /* @__PURE__ */ new Pe(), Ou = /* @__PURE__ */ new Ol(), ix = /* @__PURE__ */ new Vo(), Kl = /* @__PURE__ */ new S(), Jl = /* @__PURE__ */ new S(), Zl = /* @__PURE__ */ new S(), nx = /* @__PURE__ */ new S(), sx = /* @__PURE__ */ new S(), rx = /* @__PURE__ */ new S(), BA = /* @__PURE__ */ new S(), DA = /* @__PURE__ */ new S(), kA = /* @__PURE__ */ new S(), OA = /* @__PURE__ */ new V(), LA = /* @__PURE__ */ new V(), FA = /* @__PURE__ */ new V(), ox = /* @__PURE__ */ new S(), UA = /* @__PURE__ */ new S();
4159
4159
  class me extends Ie {
4160
4160
  constructor(e = new At(), t = new vi()) {
4161
4161
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets();
@@ -4178,7 +4178,7 @@ class me extends Ie {
4178
4178
  }
4179
4179
  raycast(e, t) {
4180
4180
  const i = this.geometry, s = this.material, r = this.matrixWorld;
4181
- if (s === void 0 || (i.boundingSphere === null && i.computeBoundingSphere(), ix.copy(i.boundingSphere), ix.applyMatrix4(r), e.ray.intersectsSphere(ix) === !1) || (BM.copy(r).invert(), ku.copy(e.ray).applyMatrix4(BM), i.boundingBox !== null && ku.intersectsBox(i.boundingBox) === !1))
4181
+ if (s === void 0 || (i.boundingSphere === null && i.computeBoundingSphere(), ix.copy(i.boundingSphere), ix.applyMatrix4(r), e.ray.intersectsSphere(ix) === !1) || (BM.copy(r).invert(), Ou.copy(e.ray).applyMatrix4(BM), i.boundingBox !== null && Ou.intersectsBox(i.boundingBox) === !1))
4182
4182
  return;
4183
4183
  let o;
4184
4184
  const a = i.index, l = i.attributes.position, c = i.morphAttributes.position, u = i.morphTargetsRelative, d = i.attributes.uv, f = i.attributes.uv2, p = i.groups, g = i.drawRange;
@@ -4188,14 +4188,14 @@ class me extends Ie {
4188
4188
  const v = p[m], _ = s[v.materialIndex], y = Math.max(v.start, g.start), b = Math.min(a.count, Math.min(v.start + v.count, g.start + g.count));
4189
4189
  for (let C = y, E = b; C < E; C += 3) {
4190
4190
  const T = a.getX(C), x = a.getX(C + 1), M = a.getX(C + 2);
4191
- o = NA(this, _, e, ku, l, c, u, d, f, T, x, M), o && (o.faceIndex = Math.floor(C / 3), o.face.materialIndex = v.materialIndex, t.push(o));
4191
+ o = NA(this, _, e, Ou, l, c, u, d, f, T, x, M), o && (o.faceIndex = Math.floor(C / 3), o.face.materialIndex = v.materialIndex, t.push(o));
4192
4192
  }
4193
4193
  }
4194
4194
  else {
4195
4195
  const m = Math.max(0, g.start), A = Math.min(a.count, g.start + g.count);
4196
4196
  for (let v = m, _ = A; v < _; v += 3) {
4197
4197
  const y = a.getX(v), b = a.getX(v + 1), C = a.getX(v + 2);
4198
- o = NA(this, s, e, ku, l, c, u, d, f, y, b, C), o && (o.faceIndex = Math.floor(v / 3), t.push(o));
4198
+ o = NA(this, s, e, Ou, l, c, u, d, f, y, b, C), o && (o.faceIndex = Math.floor(v / 3), t.push(o));
4199
4199
  }
4200
4200
  }
4201
4201
  else if (l !== void 0)
@@ -4204,14 +4204,14 @@ class me extends Ie {
4204
4204
  const v = p[m], _ = s[v.materialIndex], y = Math.max(v.start, g.start), b = Math.min(l.count, Math.min(v.start + v.count, g.start + g.count));
4205
4205
  for (let C = y, E = b; C < E; C += 3) {
4206
4206
  const T = C, x = C + 1, M = C + 2;
4207
- o = NA(this, _, e, ku, l, c, u, d, f, T, x, M), o && (o.faceIndex = Math.floor(C / 3), o.face.materialIndex = v.materialIndex, t.push(o));
4207
+ o = NA(this, _, e, Ou, l, c, u, d, f, T, x, M), o && (o.faceIndex = Math.floor(C / 3), o.face.materialIndex = v.materialIndex, t.push(o));
4208
4208
  }
4209
4209
  }
4210
4210
  else {
4211
4211
  const m = Math.max(0, g.start), A = Math.min(l.count, g.start + g.count);
4212
4212
  for (let v = m, _ = A; v < _; v += 3) {
4213
4213
  const y = v, b = v + 1, C = v + 2;
4214
- o = NA(this, s, e, ku, l, c, u, d, f, y, b, C), o && (o.faceIndex = Math.floor(v / 3), t.push(o));
4214
+ o = NA(this, s, e, Ou, l, c, u, d, f, y, b, C), o && (o.faceIndex = Math.floor(v / 3), t.push(o));
4215
4215
  }
4216
4216
  }
4217
4217
  }
@@ -4384,7 +4384,7 @@ class Ot extends Bt {
4384
4384
  return Object.keys(i).length > 0 && (t.extensions = i), t;
4385
4385
  }
4386
4386
  }
4387
- let nu = class extends Ie {
4387
+ let su = class extends Ie {
4388
4388
  constructor() {
4389
4389
  super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new Pe(), this.projectionMatrix = new Pe(), this.projectionMatrixInverse = new Pe();
4390
4390
  }
@@ -4406,7 +4406,7 @@ let nu = class extends Ie {
4406
4406
  return new this.constructor().copy(this);
4407
4407
  }
4408
4408
  };
4409
- class ei extends nu {
4409
+ class ei extends su {
4410
4410
  constructor(e = 50, t = 1, i = 0.1, s = 2e3) {
4411
4411
  super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = i, this.far = s, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
4412
4412
  }
@@ -4429,12 +4429,12 @@ class ei extends nu {
4429
4429
  * Calculates the focal length from the current .fov and .filmGauge.
4430
4430
  */
4431
4431
  getFocalLength() {
4432
- const e = Math.tan(Qh * 0.5 * this.fov);
4432
+ const e = Math.tan(Hh * 0.5 * this.fov);
4433
4433
  return 0.5 * this.getFilmHeight() / e;
4434
4434
  }
4435
4435
  getEffectiveFOV() {
4436
4436
  return Wd * 2 * Math.atan(
4437
- Math.tan(Qh * 0.5 * this.fov) / this.zoom
4437
+ Math.tan(Hh * 0.5 * this.fov) / this.zoom
4438
4438
  );
4439
4439
  }
4440
4440
  getFilmWidth() {
@@ -4494,7 +4494,7 @@ class ei extends nu {
4494
4494
  }
4495
4495
  updateProjectionMatrix() {
4496
4496
  const e = this.near;
4497
- let t = e * Math.tan(Qh * 0.5 * this.fov) / this.zoom, i = 2 * t, s = this.aspect * i, r = -0.5 * s;
4497
+ let t = e * Math.tan(Hh * 0.5 * this.fov) / this.zoom, i = 2 * t, s = this.aspect * i, r = -0.5 * s;
4498
4498
  const o = this.view;
4499
4499
  if (this.view !== null && this.view.enabled) {
4500
4500
  const l = o.fullWidth, c = o.fullHeight;
@@ -4508,21 +4508,21 @@ class ei extends nu {
4508
4508
  return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
4509
4509
  }
4510
4510
  }
4511
- const Ou = -90, Lu = 1;
4511
+ const Lu = -90, Fu = 1;
4512
4512
  class fE extends Ie {
4513
4513
  constructor(e, t, i) {
4514
4514
  super(), this.type = "CubeCamera", this.renderTarget = i;
4515
- const s = new ei(Ou, Lu, e, t);
4515
+ const s = new ei(Lu, Fu, e, t);
4516
4516
  s.layers = this.layers, s.up.set(0, 1, 0), s.lookAt(1, 0, 0), this.add(s);
4517
- const r = new ei(Ou, Lu, e, t);
4517
+ const r = new ei(Lu, Fu, e, t);
4518
4518
  r.layers = this.layers, r.up.set(0, 1, 0), r.lookAt(-1, 0, 0), this.add(r);
4519
- const o = new ei(Ou, Lu, e, t);
4519
+ const o = new ei(Lu, Fu, e, t);
4520
4520
  o.layers = this.layers, o.up.set(0, 0, -1), o.lookAt(0, 1, 0), this.add(o);
4521
- const a = new ei(Ou, Lu, e, t);
4521
+ const a = new ei(Lu, Fu, e, t);
4522
4522
  a.layers = this.layers, a.up.set(0, 0, 1), a.lookAt(0, -1, 0), this.add(a);
4523
- const l = new ei(Ou, Lu, e, t);
4523
+ const l = new ei(Lu, Fu, e, t);
4524
4524
  l.layers = this.layers, l.up.set(0, 1, 0), l.lookAt(0, 0, 1), this.add(l);
4525
- const c = new ei(Ou, Lu, e, t);
4525
+ const c = new ei(Lu, Fu, e, t);
4526
4526
  c.layers = this.layers, c.up.set(0, 1, 0), c.lookAt(0, 0, -1), this.add(c);
4527
4527
  }
4528
4528
  update(e, t) {
@@ -4689,7 +4689,7 @@ class io {
4689
4689
  return new this.constructor().copy(this);
4690
4690
  }
4691
4691
  }
4692
- const Fu = /* @__PURE__ */ new Vo(), zA = /* @__PURE__ */ new S();
4692
+ const Uu = /* @__PURE__ */ new Vo(), zA = /* @__PURE__ */ new S();
4693
4693
  class Z0 {
4694
4694
  constructor(e = new io(), t = new io(), i = new io(), s = new io(), r = new io(), o = new io()) {
4695
4695
  this.planes = [e, t, i, s, r, o];
@@ -4710,10 +4710,10 @@ class Z0 {
4710
4710
  }
4711
4711
  intersectsObject(e) {
4712
4712
  const t = e.geometry;
4713
- return t.boundingSphere === null && t.computeBoundingSphere(), Fu.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Fu);
4713
+ return t.boundingSphere === null && t.computeBoundingSphere(), Uu.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(Uu);
4714
4714
  }
4715
4715
  intersectsSprite(e) {
4716
- return Fu.center.set(0, 0, 0), Fu.radius = 0.7071067811865476, Fu.applyMatrix4(e.matrixWorld), this.intersectsSphere(Fu);
4716
+ return Uu.center.set(0, 0, 0), Uu.radius = 0.7071067811865476, Uu.applyMatrix4(e.matrixWorld), this.intersectsSphere(Uu);
4717
4717
  }
4718
4718
  intersectsSphere(e) {
4719
4719
  const t = this.planes, i = e.center, s = -e.radius;
@@ -8755,7 +8755,7 @@ function DQ(n) {
8755
8755
  dispose: r
8756
8756
  };
8757
8757
  }
8758
- class su extends nu {
8758
+ class ru extends su {
8759
8759
  constructor(e = -1, t = 1, i = 1, s = -1, r = 0.1, o = 2e3) {
8760
8760
  super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = i, this.bottom = s, this.near = r, this.far = o, this.updateProjectionMatrix();
8761
8761
  }
@@ -8790,19 +8790,19 @@ class su extends nu {
8790
8790
  return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
8791
8791
  }
8792
8792
  }
8793
- const gd = 4, DM = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Eh = 20, lx = /* @__PURE__ */ new su(), kM = /* @__PURE__ */ new ye();
8793
+ const gd = 4, DM = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Ih = 20, lx = /* @__PURE__ */ new ru(), kM = /* @__PURE__ */ new ye();
8794
8794
  let cx = null;
8795
- const bh = (1 + Math.sqrt(5)) / 2, Uu = 1 / bh, OM = [
8795
+ const bh = (1 + Math.sqrt(5)) / 2, Nu = 1 / bh, OM = [
8796
8796
  /* @__PURE__ */ new S(1, 1, 1),
8797
8797
  /* @__PURE__ */ new S(-1, 1, 1),
8798
8798
  /* @__PURE__ */ new S(1, 1, -1),
8799
8799
  /* @__PURE__ */ new S(-1, 1, -1),
8800
- /* @__PURE__ */ new S(0, bh, Uu),
8801
- /* @__PURE__ */ new S(0, bh, -Uu),
8802
- /* @__PURE__ */ new S(Uu, 0, bh),
8803
- /* @__PURE__ */ new S(-Uu, 0, bh),
8804
- /* @__PURE__ */ new S(bh, Uu, 0),
8805
- /* @__PURE__ */ new S(-bh, Uu, 0)
8800
+ /* @__PURE__ */ new S(0, bh, Nu),
8801
+ /* @__PURE__ */ new S(0, bh, -Nu),
8802
+ /* @__PURE__ */ new S(Nu, 0, bh),
8803
+ /* @__PURE__ */ new S(-Nu, 0, bh),
8804
+ /* @__PURE__ */ new S(bh, Nu, 0),
8805
+ /* @__PURE__ */ new S(-bh, Nu, 0)
8806
8806
  ];
8807
8807
  class xC {
8808
8808
  constructor(e) {
@@ -8965,11 +8965,11 @@ class xC {
8965
8965
  o !== "latitudinal" && o !== "longitudinal" && console.error(
8966
8966
  "blur direction must be either latitudinal or longitudinal!"
8967
8967
  );
8968
- const u = 3, d = new me(this._lodPlanes[s], c), f = c.uniforms, p = this._sizeLods[i] - 1, g = isFinite(r) ? Math.PI / (2 * p) : 2 * Math.PI / (2 * Eh - 1), m = r / g, A = isFinite(r) ? 1 + Math.floor(u * m) : Eh;
8969
- A > Eh && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${A} samples when the maximum is set to ${Eh}`);
8968
+ const u = 3, d = new me(this._lodPlanes[s], c), f = c.uniforms, p = this._sizeLods[i] - 1, g = isFinite(r) ? Math.PI / (2 * p) : 2 * Math.PI / (2 * Ih - 1), m = r / g, A = isFinite(r) ? 1 + Math.floor(u * m) : Ih;
8969
+ A > Ih && console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${A} samples when the maximum is set to ${Ih}`);
8970
8970
  const v = [];
8971
8971
  let _ = 0;
8972
- for (let T = 0; T < Eh; ++T) {
8972
+ for (let T = 0; T < Ih; ++T) {
8973
8973
  const x = T / m, M = Math.exp(-x * x / 2);
8974
8974
  v.push(M), T === 0 ? _ += M : T < A && (_ += 2 * M);
8975
8975
  }
@@ -9030,11 +9030,11 @@ function QA(n, e, t, i, s) {
9030
9030
  n.viewport.set(e, t, i, s), n.scissor.set(e, t, i, s);
9031
9031
  }
9032
9032
  function kQ(n, e, t) {
9033
- const i = new Float32Array(Eh), s = new S(0, 1, 0);
9033
+ const i = new Float32Array(Ih), s = new S(0, 1, 0);
9034
9034
  return new Ot({
9035
9035
  name: "SphericalGaussianBlur",
9036
9036
  defines: {
9037
- n: Eh,
9037
+ n: Ih,
9038
9038
  CUBEUV_TEXEL_WIDTH: 1 / e,
9039
9039
  CUBEUV_TEXEL_HEIGHT: 1 / t,
9040
9040
  CUBEUV_MAX_MIP: `${n}.0`
@@ -11336,7 +11336,7 @@ function pV(n, e, t) {
11336
11336
  return A !== j ? (n.useProgram(j), A = j, !0) : !1;
11337
11337
  }
11338
11338
  const pe = {
11339
- [Sh]: 32774,
11339
+ [Eh]: 32774,
11340
11340
  [RD]: 32778,
11341
11341
  [BD]: 32779
11342
11342
  };
@@ -11366,12 +11366,12 @@ function pV(n, e, t) {
11366
11366
  }
11367
11367
  if (v === !1 && (Fe(3042), v = !0), j !== PD) {
11368
11368
  if (j !== _ || Un !== M) {
11369
- if ((y !== Sh || E !== Sh) && (n.blendEquation(32774), y = Sh, E = Sh), Un)
11369
+ if ((y !== Eh || E !== Eh) && (n.blendEquation(32774), y = Eh, E = Eh), Un)
11370
11370
  switch (j) {
11371
11371
  case yl:
11372
11372
  n.blendFuncSeparate(1, 771, 1, 771);
11373
11373
  break;
11374
- case Xh:
11374
+ case Yh:
11375
11375
  n.blendFunc(1, 1);
11376
11376
  break;
11377
11377
  case tC:
@@ -11389,7 +11389,7 @@ function pV(n, e, t) {
11389
11389
  case yl:
11390
11390
  n.blendFuncSeparate(770, 771, 1, 771);
11391
11391
  break;
11392
- case Xh:
11392
+ case Yh:
11393
11393
  n.blendFunc(770, 1);
11394
11394
  break;
11395
11395
  case tC:
@@ -12066,7 +12066,7 @@ function Pk(n, e, t) {
12066
12066
  return 6403;
12067
12067
  if (r === ek)
12068
12068
  return 36244;
12069
- if (r === Bh)
12069
+ if (r === Dh)
12070
12070
  return 33319;
12071
12071
  if (r === tk)
12072
12072
  return 33320;
@@ -12967,7 +12967,7 @@ function lf(n = {}) {
12967
12967
  Mt && (qe.floatVertexTextures ? (Mt.boneTexture === null && Mt.computeBoneTexture(), Xt.setValue(W, "boneTexture", Mt.boneTexture, fe), Xt.setValue(W, "boneTextureSize", Mt.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
12968
12968
  }
12969
12969
  const di = ne.morphAttributes;
12970
- if ((di.position !== void 0 || di.normal !== void 0 || di.color !== void 0 && qe.isWebGL2 === !0) && De.update(Ae, ne, te, tt), (Dt || Oe.receiveShadow !== Ae.receiveShadow) && (Oe.receiveShadow = Ae.receiveShadow, Xt.setValue(W, "receiveShadow", Ae.receiveShadow)), te.isMeshGouraudMaterial && te.envMap !== null && (Zi.envMap.value = q, Zi.flipEnvMap.value = q.isCubeTexture && q.isRenderTargetTexture === !1 ? -1 : 1), Dt && (Xt.setValue(W, "toneMappingExposure", m.toneMappingExposure), Oe.needsLights && Cu(Zi, wi), I && te.fog === !0 && Wt.refreshFogUniforms(Zi, I), Wt.refreshMaterialUniforms(Zi, te, k, P, he), sy.upload(W, Oe.uniformsList, Zi, fe)), te.isShaderMaterial && te.uniformsNeedUpdate === !0 && (sy.upload(W, Oe.uniformsList, Zi, fe), te.uniformsNeedUpdate = !1), te.isSpriteMaterial && Xt.setValue(W, "center", Ae.center), Xt.setValue(W, "modelViewMatrix", Ae.modelViewMatrix), Xt.setValue(W, "normalMatrix", Ae.normalMatrix), Xt.setValue(W, "modelMatrix", Ae.matrixWorld), te.isShaderMaterial || te.isRawShaderMaterial) {
12970
+ if ((di.position !== void 0 || di.normal !== void 0 || di.color !== void 0 && qe.isWebGL2 === !0) && De.update(Ae, ne, te, tt), (Dt || Oe.receiveShadow !== Ae.receiveShadow) && (Oe.receiveShadow = Ae.receiveShadow, Xt.setValue(W, "receiveShadow", Ae.receiveShadow)), te.isMeshGouraudMaterial && te.envMap !== null && (Zi.envMap.value = q, Zi.flipEnvMap.value = q.isCubeTexture && q.isRenderTargetTexture === !1 ? -1 : 1), Dt && (Xt.setValue(W, "toneMappingExposure", m.toneMappingExposure), Oe.needsLights && Su(Zi, wi), I && te.fog === !0 && Wt.refreshFogUniforms(Zi, I), Wt.refreshMaterialUniforms(Zi, te, k, P, he), sy.upload(W, Oe.uniformsList, Zi, fe)), te.isShaderMaterial && te.uniformsNeedUpdate === !0 && (sy.upload(W, Oe.uniformsList, Zi, fe), te.uniformsNeedUpdate = !1), te.isSpriteMaterial && Xt.setValue(W, "center", Ae.center), Xt.setValue(W, "modelViewMatrix", Ae.modelViewMatrix), Xt.setValue(W, "normalMatrix", Ae.normalMatrix), Xt.setValue(W, "modelMatrix", Ae.matrixWorld), te.isShaderMaterial || te.isRawShaderMaterial) {
12971
12971
  const Mt = te.uniformsGroups;
12972
12972
  for (let Fi = 0, qs = Mt.length; Fi < qs; Fi++)
12973
12973
  if (qe.isWebGL2) {
@@ -12978,7 +12978,7 @@ function lf(n = {}) {
12978
12978
  }
12979
12979
  return tt;
12980
12980
  }
12981
- function Cu(F, se) {
12981
+ function Su(F, se) {
12982
12982
  F.ambientLightColor.needsUpdate = se, F.lightProbe.needsUpdate = se, F.directionalLights.needsUpdate = se, F.directionalLightShadows.needsUpdate = se, F.pointLights.needsUpdate = se, F.pointLightShadows.needsUpdate = se, F.spotLights.needsUpdate = se, F.spotLightShadows.needsUpdate = se, F.rectAreaLights.needsUpdate = se, F.hemisphereLights.needsUpdate = se;
12983
12983
  }
12984
12984
  function O_(F) {
@@ -13280,12 +13280,12 @@ class AE extends Bt {
13280
13280
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
13281
13281
  }
13282
13282
  }
13283
- let Nu;
13284
- const ap = /* @__PURE__ */ new S(), zu = /* @__PURE__ */ new S(), Gu = /* @__PURE__ */ new S(), Qu = /* @__PURE__ */ new V(), lp = /* @__PURE__ */ new V(), kk = /* @__PURE__ */ new Pe(), HA = /* @__PURE__ */ new S(), cp = /* @__PURE__ */ new S(), VA = /* @__PURE__ */ new S(), tT = /* @__PURE__ */ new V(), dx = /* @__PURE__ */ new V(), iT = /* @__PURE__ */ new V();
13283
+ let zu;
13284
+ const ap = /* @__PURE__ */ new S(), Gu = /* @__PURE__ */ new S(), Qu = /* @__PURE__ */ new S(), Hu = /* @__PURE__ */ new V(), lp = /* @__PURE__ */ new V(), kk = /* @__PURE__ */ new Pe(), HA = /* @__PURE__ */ new S(), cp = /* @__PURE__ */ new S(), VA = /* @__PURE__ */ new S(), tT = /* @__PURE__ */ new V(), dx = /* @__PURE__ */ new V(), iT = /* @__PURE__ */ new V();
13285
13285
  let Ok = class extends Ie {
13286
13286
  constructor(e) {
13287
- if (super(), this.isSprite = !0, this.type = "Sprite", Nu === void 0) {
13288
- Nu = new At();
13287
+ if (super(), this.isSprite = !0, this.type = "Sprite", zu === void 0) {
13288
+ zu = new At();
13289
13289
  const t = new Float32Array([
13290
13290
  -0.5,
13291
13291
  -0.5,
@@ -13308,19 +13308,19 @@ let Ok = class extends Ie {
13308
13308
  0,
13309
13309
  1
13310
13310
  ]), i = new ym(t, 5);
13311
- Nu.setIndex([0, 1, 2, 0, 2, 3]), Nu.setAttribute("position", new Il(i, 3, 0, !1)), Nu.setAttribute("uv", new Il(i, 2, 3, !1));
13311
+ zu.setIndex([0, 1, 2, 0, 2, 3]), zu.setAttribute("position", new Il(i, 3, 0, !1)), zu.setAttribute("uv", new Il(i, 2, 3, !1));
13312
13312
  }
13313
- this.geometry = Nu, this.material = e !== void 0 ? e : new AE(), this.center = new V(0.5, 0.5);
13313
+ this.geometry = zu, this.material = e !== void 0 ? e : new AE(), this.center = new V(0.5, 0.5);
13314
13314
  }
13315
13315
  raycast(e, t) {
13316
- e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), zu.setFromMatrixScale(this.matrixWorld), kk.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), Gu.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && zu.multiplyScalar(-Gu.z);
13316
+ e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Gu.setFromMatrixScale(this.matrixWorld), kk.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), Qu.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Gu.multiplyScalar(-Qu.z);
13317
13317
  const i = this.material.rotation;
13318
13318
  let s, r;
13319
13319
  i !== 0 && (r = Math.cos(i), s = Math.sin(i));
13320
13320
  const o = this.center;
13321
- WA(HA.set(-0.5, -0.5, 0), Gu, o, zu, s, r), WA(cp.set(0.5, -0.5, 0), Gu, o, zu, s, r), WA(VA.set(0.5, 0.5, 0), Gu, o, zu, s, r), tT.set(0, 0), dx.set(1, 0), iT.set(1, 1);
13321
+ WA(HA.set(-0.5, -0.5, 0), Qu, o, Gu, s, r), WA(cp.set(0.5, -0.5, 0), Qu, o, Gu, s, r), WA(VA.set(0.5, 0.5, 0), Qu, o, Gu, s, r), tT.set(0, 0), dx.set(1, 0), iT.set(1, 1);
13322
13322
  let a = e.ray.intersectTriangle(HA, cp, VA, !1, ap);
13323
- if (a === null && (WA(cp.set(-0.5, 0.5, 0), Gu, o, zu, s, r), dx.set(0, 1), a = e.ray.intersectTriangle(HA, VA, cp, !1, ap), a === null))
13323
+ if (a === null && (WA(cp.set(-0.5, 0.5, 0), Qu, o, Gu, s, r), dx.set(0, 1), a = e.ray.intersectTriangle(HA, VA, cp, !1, ap), a === null))
13324
13324
  return;
13325
13325
  const l = e.ray.origin.distanceTo(ap);
13326
13326
  l < e.near || l > e.far || t.push({
@@ -13336,7 +13336,7 @@ let Ok = class extends Ie {
13336
13336
  }
13337
13337
  };
13338
13338
  function WA(n, e, t, i, s, r) {
13339
- Qu.subVectors(n, t).addScalar(0.5).multiply(i), s !== void 0 ? (lp.x = r * Qu.x - s * Qu.y, lp.y = s * Qu.x + r * Qu.y) : lp.copy(Qu), n.copy(e), n.x += lp.x, n.y += lp.y, n.applyMatrix4(kk);
13339
+ Hu.subVectors(n, t).addScalar(0.5).multiply(i), s !== void 0 ? (lp.x = r * Hu.x - s * Hu.y, lp.y = s * Hu.x + r * Hu.y) : lp.copy(Hu), n.copy(e), n.x += lp.x, n.y += lp.y, n.applyMatrix4(kk);
13340
13340
  }
13341
13341
  const jA = /* @__PURE__ */ new S(), nT = /* @__PURE__ */ new S();
13342
13342
  let vE = class extends Ie {
@@ -14887,7 +14887,7 @@ class IE extends At {
14887
14887
  geometry: e,
14888
14888
  thresholdAngle: t
14889
14889
  }, e !== null) {
14890
- const s = Math.pow(10, 4), r = Math.cos(Qh * t), o = e.getIndex(), a = e.getAttribute("position"), l = o ? o.count : a.count, c = [0, 0, 0], u = ["a", "b", "c"], d = new Array(3), f = {}, p = [];
14890
+ const s = Math.pow(10, 4), r = Math.cos(Hh * t), o = e.getIndex(), a = e.getAttribute("position"), l = o ? o.count : a.count, c = [0, 0, 0], u = ["a", "b", "c"], d = new Array(3), f = {}, p = [];
14891
14891
  for (let g = 0; g < l; g += 3) {
14892
14892
  o ? (c[0] = o.getX(g), c[1] = o.getX(g + 1), c[2] = o.getX(g + 2)) : (c[0] = g, c[1] = g + 1, c[2] = g + 2);
14893
14893
  const { a: m, b: A, c: v } = ev;
@@ -14910,7 +14910,7 @@ class IE extends At {
14910
14910
  }
14911
14911
  }
14912
14912
  }
14913
- class Vh extends Fg {
14913
+ class Wh extends Fg {
14914
14914
  constructor(e) {
14915
14915
  super(e), this.uuid = xr(), this.type = "Shape", this.holes = [];
14916
14916
  }
@@ -14980,7 +14980,7 @@ function Vk(n, e, t, i, s) {
14980
14980
  o = yT(r, n[r], n[r + 1], o);
14981
14981
  return o && ab(o, o.next) && (zg(o), o = o.next), o;
14982
14982
  }
14983
- function Kh(n, e) {
14983
+ function Jh(n, e) {
14984
14984
  if (!n)
14985
14985
  return n;
14986
14986
  e || (e = n);
@@ -15006,7 +15006,7 @@ function Ug(n, e, t, i, s, r, o) {
15006
15006
  continue;
15007
15007
  }
15008
15008
  if (n = c, n === a) {
15009
- o ? o === 1 ? (n = OV(Kh(n), e, t), Ug(n, e, t, i, s, r, 2)) : o === 2 && LV(n, e, t, i, s, r) : Ug(Kh(n), e, t, i, s, r, 1);
15009
+ o ? o === 1 ? (n = OV(Jh(n), e, t), Ug(n, e, t, i, s, r, 2)) : o === 2 && LV(n, e, t, i, s, r) : Ug(Jh(n), e, t, i, s, r, 1);
15010
15010
  break;
15011
15011
  }
15012
15012
  }
@@ -15053,7 +15053,7 @@ function OV(n, e, t) {
15053
15053
  const s = i.prev, r = i.next.next;
15054
15054
  !ab(s, r) && Wk(s, i, i.next, r) && Ng(s, r) && Ng(r, s) && (e.push(s.i / t | 0), e.push(i.i / t | 0), e.push(r.i / t | 0), zg(i), zg(i.next), i = n = r), i = i.next;
15055
15055
  } while (i !== n);
15056
- return Kh(i);
15056
+ return Jh(i);
15057
15057
  }
15058
15058
  function LV(n, e, t, i, s, r) {
15059
15059
  let o = n;
@@ -15062,7 +15062,7 @@ function LV(n, e, t, i, s, r) {
15062
15062
  for (; a !== o.prev; ) {
15063
15063
  if (o.i !== a.i && WV(o, a)) {
15064
15064
  let l = jk(o, a);
15065
- o = Kh(o, o.next), l = Kh(l, l.next), Ug(o, e, t, i, s, r, 0), Ug(l, e, t, i, s, r, 0);
15065
+ o = Jh(o, o.next), l = Jh(l, l.next), Ug(o, e, t, i, s, r, 0), Ug(l, e, t, i, s, r, 0);
15066
15066
  return;
15067
15067
  }
15068
15068
  a = a.next;
@@ -15087,7 +15087,7 @@ function NV(n, e) {
15087
15087
  if (!t)
15088
15088
  return e;
15089
15089
  const i = jk(t, n);
15090
- return Kh(i, i.next), Kh(t, t.next);
15090
+ return Jh(i, i.next), Jh(t, t.next);
15091
15091
  }
15092
15092
  function zV(n, e) {
15093
15093
  let t = e, i = -1 / 0, s;
@@ -15243,7 +15243,7 @@ function _T(n, e) {
15243
15243
  n.push(e[t].x), n.push(e[t].y);
15244
15244
  }
15245
15245
  class Sm extends At {
15246
- constructor(e = new Vh([new V(0.5, 0.5), new V(-0.5, 0.5), new V(-0.5, -0.5), new V(0.5, -0.5)]), t = {}) {
15246
+ constructor(e = new Wh([new V(0.5, 0.5), new V(-0.5, 0.5), new V(-0.5, -0.5), new V(0.5, -0.5)]), t = {}) {
15247
15247
  super(), this.type = "ExtrudeGeometry", this.parameters = {
15248
15248
  shapes: e,
15249
15249
  options: t
@@ -15664,7 +15664,7 @@ class ff extends At {
15664
15664
  }
15665
15665
  }
15666
15666
  class Em extends At {
15667
- constructor(e = new Vh([new V(0, 0.5), new V(-0.5, -0.5), new V(0.5, -0.5)]), t = 12) {
15667
+ constructor(e = new Wh([new V(0, 0.5), new V(-0.5, -0.5), new V(0.5, -0.5)]), t = 12) {
15668
15668
  super(), this.type = "ShapeGeometry", this.parameters = {
15669
15669
  shapes: e,
15670
15670
  curveSegments: t
@@ -16087,7 +16087,7 @@ class Zk extends hn {
16087
16087
  function Zr(n, e, t) {
16088
16088
  return PE(n) ? new n.constructor(n.subarray(e, t !== void 0 ? t : n.length)) : n.slice(e, t);
16089
16089
  }
16090
- function Oh(n, e, t) {
16090
+ function Lh(n, e, t) {
16091
16091
  return !n || // let 'undefined' and 'null' pass
16092
16092
  !t && n.constructor === e ? n : typeof e.BYTES_PER_ELEMENT == "number" ? new e(n) : Array.prototype.slice.call(n);
16093
16093
  }
@@ -16147,7 +16147,7 @@ function ZV(n, e, t, i, s = 30) {
16147
16147
  f.push(c.values[p * u + m]);
16148
16148
  }
16149
16149
  }
16150
- d.length !== 0 && (c.times = Oh(d, c.times.constructor), c.values = Oh(f, c.values.constructor), o.push(c));
16150
+ d.length !== 0 && (c.times = Lh(d, c.times.constructor), c.values = Lh(f, c.values.constructor), o.push(c));
16151
16151
  }
16152
16152
  r.tracks = o;
16153
16153
  let a = 1 / 0;
@@ -16212,7 +16212,7 @@ function $V(n, e = 0, t = n, i = 30) {
16212
16212
  var e5 = /* @__PURE__ */ Object.freeze({
16213
16213
  __proto__: null,
16214
16214
  arraySlice: Zr,
16215
- convertArray: Oh,
16215
+ convertArray: Lh,
16216
16216
  isTypedArray: PE,
16217
16217
  getKeyframeOrder: $k,
16218
16218
  sortedArray: IC,
@@ -16295,8 +16295,8 @@ class pf {
16295
16295
  class e2 extends pf {
16296
16296
  constructor(e, t, i, s) {
16297
16297
  super(e, t, i, s), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
16298
- endingStart: Dh,
16299
- endingEnd: Dh
16298
+ endingStart: kh,
16299
+ endingEnd: kh
16300
16300
  };
16301
16301
  }
16302
16302
  intervalChanged_(e, t, i) {
@@ -16304,7 +16304,7 @@ class e2 extends pf {
16304
16304
  let r = e - 2, o = e + 1, a = s[r], l = s[o];
16305
16305
  if (a === void 0)
16306
16306
  switch (this.getSettings_().endingStart) {
16307
- case kh:
16307
+ case Oh:
16308
16308
  r = e, a = 2 * t - i;
16309
16309
  break;
16310
16310
  case kg:
@@ -16315,7 +16315,7 @@ class e2 extends pf {
16315
16315
  }
16316
16316
  if (l === void 0)
16317
16317
  switch (this.getSettings_().endingEnd) {
16318
- case kh:
16318
+ case Oh:
16319
16319
  o = e, l = 2 * i - t;
16320
16320
  break;
16321
16321
  case kg:
@@ -16359,7 +16359,7 @@ class Mr {
16359
16359
  throw new Error("THREE.KeyframeTrack: track name is undefined");
16360
16360
  if (t === void 0 || t.length === 0)
16361
16361
  throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e);
16362
- this.name = e, this.times = Oh(t, this.TimeBufferType), this.values = Oh(i, this.ValueBufferType), this.setInterpolation(s || this.DefaultInterpolation);
16362
+ this.name = e, this.times = Lh(t, this.TimeBufferType), this.values = Lh(i, this.ValueBufferType), this.setInterpolation(s || this.DefaultInterpolation);
16363
16363
  }
16364
16364
  // Serialization (in static context, because of constructor invocation
16365
16365
  // and automatic invocation of .toJSON):
@@ -16371,8 +16371,8 @@ class Mr {
16371
16371
  else {
16372
16372
  i = {
16373
16373
  name: e.name,
16374
- times: Oh(e.times, Array),
16375
- values: Oh(e.values, Array)
16374
+ times: Lh(e.times, Array),
16375
+ values: Lh(e.values, Array)
16376
16376
  };
16377
16377
  const s = e.getInterpolation();
16378
16378
  s !== e.DefaultInterpolation && (i.interpolation = s);
@@ -16391,7 +16391,7 @@ class Mr {
16391
16391
  setInterpolation(e) {
16392
16392
  let t;
16393
16393
  switch (e) {
16394
- case Yh:
16394
+ case Kh:
16395
16395
  t = this.InterpolantFactoryMethodDiscrete;
16396
16396
  break;
16397
16397
  case El:
@@ -16415,7 +16415,7 @@ class Mr {
16415
16415
  getInterpolation() {
16416
16416
  switch (this.createInterpolant) {
16417
16417
  case this.InterpolantFactoryMethodDiscrete:
16418
- return Yh;
16418
+ return Kh;
16419
16419
  case this.InterpolantFactoryMethodLinear:
16420
16420
  return El;
16421
16421
  case this.InterpolantFactoryMethodSmooth:
@@ -16536,13 +16536,13 @@ class Mr {
16536
16536
  Mr.prototype.TimeBufferType = Float32Array;
16537
16537
  Mr.prototype.ValueBufferType = Float32Array;
16538
16538
  Mr.prototype.DefaultInterpolation = El;
16539
- class ru extends Mr {
16539
+ class ou extends Mr {
16540
16540
  }
16541
- ru.prototype.ValueTypeName = "bool";
16542
- ru.prototype.ValueBufferType = Array;
16543
- ru.prototype.DefaultInterpolation = Yh;
16544
- ru.prototype.InterpolantFactoryMethodLinear = void 0;
16545
- ru.prototype.InterpolantFactoryMethodSmooth = void 0;
16541
+ ou.prototype.ValueTypeName = "bool";
16542
+ ou.prototype.ValueBufferType = Array;
16543
+ ou.prototype.DefaultInterpolation = Kh;
16544
+ ou.prototype.InterpolantFactoryMethodLinear = void 0;
16545
+ ou.prototype.InterpolantFactoryMethodSmooth = void 0;
16546
16546
  class Pm extends Mr {
16547
16547
  }
16548
16548
  Pm.prototype.ValueTypeName = "color";
@@ -16569,13 +16569,13 @@ class Ma extends Mr {
16569
16569
  Ma.prototype.ValueTypeName = "quaternion";
16570
16570
  Ma.prototype.DefaultInterpolation = El;
16571
16571
  Ma.prototype.InterpolantFactoryMethodSmooth = void 0;
16572
- class ou extends Mr {
16572
+ class au extends Mr {
16573
16573
  }
16574
- ou.prototype.ValueTypeName = "string";
16575
- ou.prototype.ValueBufferType = Array;
16576
- ou.prototype.DefaultInterpolation = Yh;
16577
- ou.prototype.InterpolantFactoryMethodLinear = void 0;
16578
- ou.prototype.InterpolantFactoryMethodSmooth = void 0;
16574
+ au.prototype.ValueTypeName = "string";
16575
+ au.prototype.ValueBufferType = Array;
16576
+ au.prototype.DefaultInterpolation = Kh;
16577
+ au.prototype.InterpolantFactoryMethodLinear = void 0;
16578
+ au.prototype.InterpolantFactoryMethodSmooth = void 0;
16579
16579
  class Fc extends Mr {
16580
16580
  }
16581
16581
  Fc.prototype.ValueTypeName = "vector";
@@ -16758,9 +16758,9 @@ function t5(n) {
16758
16758
  return Ma;
16759
16759
  case "bool":
16760
16760
  case "boolean":
16761
- return ru;
16762
- case "string":
16763
16761
  return ou;
16762
+ case "string":
16763
+ return au;
16764
16764
  }
16765
16765
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + n);
16766
16766
  }
@@ -16774,7 +16774,7 @@ function i5(n) {
16774
16774
  }
16775
16775
  return e.parse !== void 0 ? e.parse(n) : new e(n.name, n.times, n.values, n.interpolation);
16776
16776
  }
16777
- const Jh = {
16777
+ const Zh = {
16778
16778
  enabled: !1,
16779
16779
  files: {},
16780
16780
  add: function(n, e) {
@@ -16864,7 +16864,7 @@ class Rn extends ws {
16864
16864
  }
16865
16865
  load(e, t, i, s) {
16866
16866
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
16867
- const r = Jh.get(e);
16867
+ const r = Zh.get(e);
16868
16868
  if (r !== void 0)
16869
16869
  return this.manager.itemStart(e), setTimeout(() => {
16870
16870
  t && t(r), this.manager.itemEnd(e);
@@ -16935,7 +16935,7 @@ class Rn extends ws {
16935
16935
  }
16936
16936
  }
16937
16937
  }).then((c) => {
16938
- Jh.add(e, c);
16938
+ Zh.add(e, c);
16939
16939
  const u = Va[e];
16940
16940
  delete Va[e];
16941
16941
  for (let d = 0, f = u.length; d < f; d++) {
@@ -17032,14 +17032,14 @@ class Gg extends ws {
17032
17032
  }
17033
17033
  load(e, t, i, s) {
17034
17034
  this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
17035
- const r = this, o = Jh.get(e);
17035
+ const r = this, o = Zh.get(e);
17036
17036
  if (o !== void 0)
17037
17037
  return r.manager.itemStart(e), setTimeout(function() {
17038
17038
  t && t(o), r.manager.itemEnd(e);
17039
17039
  }, 0), o;
17040
17040
  const a = Lg("img");
17041
17041
  function l() {
17042
- u(), Jh.add(e, this), t && t(this), r.manager.itemEnd(e);
17042
+ u(), Zh.add(e, this), t && t(this), r.manager.itemEnd(e);
17043
17043
  }
17044
17044
  function c(d) {
17045
17045
  u(), s && s(d), r.manager.itemError(e), r.manager.itemEnd(e);
@@ -17264,7 +17264,7 @@ class ub extends Hc {
17264
17264
  }
17265
17265
  class c5 extends OE {
17266
17266
  constructor() {
17267
- super(new su(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
17267
+ super(new ru(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
17268
17268
  }
17269
17269
  }
17270
17270
  class db extends Hc {
@@ -17650,7 +17650,7 @@ class h5 extends ws {
17650
17650
  const t = {};
17651
17651
  if (e !== void 0)
17652
17652
  for (let i = 0, s = e.length; i < s; i++) {
17653
- const r = new Vh().fromJSON(e[i]);
17653
+ const r = new Wh().fromJSON(e[i]);
17654
17654
  t[r.uuid] = r;
17655
17655
  }
17656
17656
  return t;
@@ -17826,7 +17826,7 @@ class h5 extends ws {
17826
17826
  o = new ei(e.fov, e.aspect, e.near, e.far), e.focus !== void 0 && (o.focus = e.focus), e.zoom !== void 0 && (o.zoom = e.zoom), e.filmGauge !== void 0 && (o.filmGauge = e.filmGauge), e.filmOffset !== void 0 && (o.filmOffset = e.filmOffset), e.view !== void 0 && (o.view = Object.assign({}, e.view));
17827
17827
  break;
17828
17828
  case "OrthographicCamera":
17829
- o = new su(e.left, e.right, e.top, e.bottom, e.near, e.far), e.zoom !== void 0 && (o.zoom = e.zoom), e.view !== void 0 && (o.view = Object.assign({}, e.view));
17829
+ o = new ru(e.left, e.right, e.top, e.bottom, e.near, e.far), e.zoom !== void 0 && (o.zoom = e.zoom), e.view !== void 0 && (o.view = Object.assign({}, e.view));
17830
17830
  break;
17831
17831
  case "AmbientLight":
17832
17832
  o = new LE(e.color, e.intensity);
@@ -17947,7 +17947,7 @@ class o2 extends ws {
17947
17947
  }
17948
17948
  load(e, t, i, s) {
17949
17949
  e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
17950
- const r = this, o = Jh.get(e);
17950
+ const r = this, o = Zh.get(e);
17951
17951
  if (o !== void 0)
17952
17952
  return r.manager.itemStart(e), setTimeout(function() {
17953
17953
  t && t(o), r.manager.itemEnd(e);
@@ -17958,7 +17958,7 @@ class o2 extends ws {
17958
17958
  }).then(function(l) {
17959
17959
  return createImageBitmap(l, Object.assign(r.options, { colorSpaceConversion: "none" }));
17960
17960
  }).then(function(l) {
17961
- Jh.add(e, l), t && t(l), r.manager.itemEnd(e);
17961
+ Zh.add(e, l), t && t(l), r.manager.itemEnd(e);
17962
17962
  }).catch(function(l) {
17963
17963
  s && s(l), r.manager.itemError(e), r.manager.itemEnd(e);
17964
17964
  }), r.manager.itemStart(e);
@@ -18022,7 +18022,7 @@ class p5 {
18022
18022
  const t = this._cache;
18023
18023
  if (t.focus !== e.focus || t.fov !== e.fov || t.aspect !== e.aspect * this.aspect || t.near !== e.near || t.far !== e.far || t.zoom !== e.zoom || t.eyeSep !== this.eyeSep) {
18024
18024
  t.focus = e.focus, t.fov = e.fov, t.aspect = e.aspect * this.aspect, t.near = e.near, t.far = e.far, t.zoom = e.zoom, t.eyeSep = this.eyeSep, lh.copy(e.projectionMatrix);
18025
- const s = t.eyeSep / 2, r = s * t.near / t.focus, o = t.near * Math.tan(Qh * t.fov * 0.5) / t.zoom;
18025
+ const s = t.eyeSep / 2, r = s * t.near / t.focus, o = t.near * Math.tan(Hh * t.fov * 0.5) / t.zoom;
18026
18026
  let a, l;
18027
18027
  PT.elements[12] = -s, TT.elements[12] = s, a = -o * t.aspect + r, l = o * t.aspect + r, lh.elements[0] = 2 * t.near / (l - a), lh.elements[8] = (l + a) / (l - a), this.cameraL.projectionMatrix.copy(lh), a = -o * t.aspect - r, l = o * t.aspect - r, lh.elements[0] = 2 * t.near / (l - a), lh.elements[8] = (l + a) / (l - a), this.cameraR.projectionMatrix.copy(lh);
18028
18028
  }
@@ -18805,8 +18805,8 @@ class I5 {
18805
18805
  constructor(e, t, i = null, s = t.blendMode) {
18806
18806
  this._mixer = e, this._clip = t, this._localRoot = i, this.blendMode = s;
18807
18807
  const r = t.tracks, o = r.length, a = new Array(o), l = {
18808
- endingStart: Dh,
18809
- endingEnd: Dh
18808
+ endingStart: kh,
18809
+ endingEnd: kh
18810
18810
  };
18811
18811
  for (let c = 0; c !== o; ++c) {
18812
18812
  const u = r[c].createInterpolant(null);
@@ -19015,7 +19015,7 @@ class I5 {
19015
19015
  }
19016
19016
  _setEndings(e, t, i) {
19017
19017
  const s = this._interpolantSettings;
19018
- i ? (s.endingStart = kh, s.endingEnd = kh) : (e ? s.endingStart = this.zeroSlopeAtStart ? kh : Dh : s.endingStart = kg, t ? s.endingEnd = this.zeroSlopeAtEnd ? kh : Dh : s.endingEnd = kg);
19018
+ i ? (s.endingStart = Oh, s.endingEnd = Oh) : (e ? s.endingStart = this.zeroSlopeAtStart ? Oh : kh : s.endingStart = kg, t ? s.endingEnd = this.zeroSlopeAtEnd ? Oh : kh : s.endingEnd = kg);
19019
19019
  }
19020
19020
  _scheduleFading(e, t, i) {
19021
19021
  const s = this._mixer, r = s.time;
@@ -19764,7 +19764,7 @@ class d2 extends Ie {
19764
19764
  this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), zT.setFromMatrixPosition(this.light.matrixWorld), ov.setFromMatrixPosition(this.light.target.matrixWorld), GT.subVectors(ov, zT), this.lightPlane.lookAt(ov), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(ov), this.targetLine.scale.z = GT.length();
19765
19765
  }
19766
19766
  }
19767
- const av = /* @__PURE__ */ new S(), Vi = /* @__PURE__ */ new nu();
19767
+ const av = /* @__PURE__ */ new S(), Vi = /* @__PURE__ */ new su();
19768
19768
  class f2 extends Pr {
19769
19769
  constructor(e) {
19770
19770
  const t = new At(), i = new hn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), s = [], r = [], o = {};
@@ -19956,7 +19956,7 @@ class H5 {
19956
19956
  function t(v) {
19957
19957
  const _ = [];
19958
19958
  for (let y = 0, b = v.length; y < b; y++) {
19959
- const C = v[y], E = new Vh();
19959
+ const C = v[y], E = new Wh();
19960
19960
  E.curves = C.curves, _.push(E);
19961
19961
  }
19962
19962
  return _;
@@ -19995,14 +19995,14 @@ class H5 {
19995
19995
  let o, a, l;
19996
19996
  const c = [];
19997
19997
  if (r.length === 1)
19998
- return a = r[0], l = new Vh(), l.curves = a.curves, c.push(l), c;
19998
+ return a = r[0], l = new Wh(), l.curves = a.curves, c.push(l), c;
19999
19999
  let u = !s(r[0].getPoints());
20000
20000
  u = e ? !u : u;
20001
20001
  const d = [], f = [];
20002
20002
  let p = [], g = 0, m;
20003
20003
  f[g] = void 0, p[g] = [];
20004
20004
  for (let v = 0, _ = r.length; v < _; v++)
20005
- a = r[v], m = a.getPoints(), o = s(m), o = e ? !o : o, o ? (!u && f[g] && g++, f[g] = { s: new Vh(), p: m }, f[g].s.curves = a.curves, u && g++, p[g] = []) : p[g].push({ h: a, p: m[0] });
20005
+ a = r[v], m = a.getPoints(), o = s(m), o = e ? !o : o, o ? (!u && f[g] && g++, f[g] = { s: new Wh(), p: m }, f[g].s.curves = a.curves, u && g++, p[g] = []) : p[g].push({ h: a, p: m[0] });
20006
20006
  if (!f[0])
20007
20007
  return t(r);
20008
20008
  if (f.length > 1) {
@@ -20073,7 +20073,7 @@ function j5(n) {
20073
20073
  const e = n >> 10;
20074
20074
  return sl.uint32View[0] = sl.mantissaTable[sl.offsetTable[e] + (n & 1023)] + sl.exponentTable[e], sl.floatView[0];
20075
20075
  }
20076
- var Lh = /* @__PURE__ */ Object.freeze({
20076
+ var Fh = /* @__PURE__ */ Object.freeze({
20077
20077
  __proto__: null,
20078
20078
  toHalfFloat: W5,
20079
20079
  fromHalfFloat: j5
@@ -20198,10 +20198,10 @@ typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple insta
20198
20198
  const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20199
20199
  __proto__: null,
20200
20200
  ACESFilmicToneMapping: tE,
20201
- AddEquation: Sh,
20201
+ AddEquation: Eh,
20202
20202
  AddOperation: HD,
20203
20203
  AdditiveAnimationBlendMode: rE,
20204
- AdditiveBlending: Xh,
20204
+ AdditiveBlending: Yh,
20205
20205
  AlphaFormat: JD,
20206
20206
  AlwaysDepth: V0,
20207
20207
  AlwaysStencilFunc: aE,
@@ -20225,7 +20225,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20225
20225
  BasicDepthPacking: rs,
20226
20226
  BasicShadowMap: YN,
20227
20227
  Bone: bm,
20228
- BooleanKeyframeTrack: ru,
20228
+ BooleanKeyframeTrack: ou,
20229
20229
  Box2: k5,
20230
20230
  Box3: bs,
20231
20231
  Box3Helper: PC,
@@ -20236,8 +20236,8 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20236
20236
  BufferGeometry: At,
20237
20237
  BufferGeometryLoader: r2,
20238
20238
  ByteType: jD,
20239
- Cache: Jh,
20240
- Camera: nu,
20239
+ Cache: Zh,
20240
+ Camera: su,
20241
20241
  CameraHelper: f2,
20242
20242
  CanvasTexture: Uk,
20243
20243
  CapsuleBufferGeometry: Z5,
@@ -20282,7 +20282,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20282
20282
  DataTexture2DArray: Y5,
20283
20283
  DataTexture3D: K5,
20284
20284
  DataTextureLoader: DE,
20285
- DataUtils: Lh,
20285
+ DataUtils: Fh,
20286
20286
  DecrementStencilOp: hk,
20287
20287
  DecrementWrapStencilOp: dk,
20288
20288
  DefaultLoadingManager: n2,
@@ -20352,7 +20352,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20352
20352
  InterleavedBuffer: ym,
20353
20353
  InterleavedBufferAttribute: Il,
20354
20354
  Interpolant: pf,
20355
- InterpolateDiscrete: Yh,
20355
+ InterpolateDiscrete: Kh,
20356
20356
  InterpolateLinear: El,
20357
20357
  InterpolateSmooth: iy,
20358
20358
  InvertStencilOp: fk,
@@ -20441,7 +20441,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20441
20441
  OneMinusDstColorFactor: zD,
20442
20442
  OneMinusSrcAlphaFactor: ZS,
20443
20443
  OneMinusSrcColorFactor: LD,
20444
- OrthographicCamera: su,
20444
+ OrthographicCamera: ru,
20445
20445
  PCFShadowMap: YS,
20446
20446
  PCFSoftShadowMap: KS,
20447
20447
  PMREMGenerator: xC,
@@ -20497,7 +20497,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20497
20497
  RGB_PVRTC_2BPPV1_Format: rC,
20498
20498
  RGB_PVRTC_4BPPV1_Format: Hy,
20499
20499
  RGB_S3TC_DXT1_Format: Xp,
20500
- RGFormat: Bh,
20500
+ RGFormat: Dh,
20501
20501
  RGIntegerFormat: tk,
20502
20502
  RawShaderMaterial: lb,
20503
20503
  Ray: Ol,
@@ -20517,7 +20517,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20517
20517
  ShaderLib: Ar,
20518
20518
  ShaderMaterial: Ot,
20519
20519
  ShadowMaterial: ME,
20520
- Shape: Vh,
20520
+ Shape: Wh,
20521
20521
  ShapeBufferGeometry: h8,
20522
20522
  ShapeGeometry: Em,
20523
20523
  ShapePath: H5,
@@ -20547,7 +20547,7 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20547
20547
  StreamCopyUsage: az,
20548
20548
  StreamDrawUsage: tz,
20549
20549
  StreamReadUsage: sz,
20550
- StringKeyframeTrack: ou,
20550
+ StringKeyframeTrack: au,
20551
20551
  SubtractEquation: RD,
20552
20552
  SubtractiveBlending: tC,
20553
20553
  TOUCH: yh,
@@ -20598,9 +20598,9 @@ const m8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20598
20598
  WebGLUtils: Pk,
20599
20599
  WireframeGeometry: qk,
20600
20600
  WrapAroundEnding: kg,
20601
- ZeroCurvatureEnding: Dh,
20601
+ ZeroCurvatureEnding: kh,
20602
20602
  ZeroFactor: DD,
20603
- ZeroSlopeEnding: kh,
20603
+ ZeroSlopeEnding: Oh,
20604
20604
  ZeroStencilOp: ak,
20605
20605
  _SRGBAFormat: Yy,
20606
20606
  sRGBEncoding: yt
@@ -21146,7 +21146,7 @@ function LC(n, e, t, i, s) {
21146
21146
  if (!u.$serializedTypes && o.prototype.$serializedTypes && (u.$serializedTypes = o.prototype.$serializedTypes), u.$serializedTypes && OC(u, n, t), s && o !== void 0)
21147
21147
  try {
21148
21148
  const d = new o();
21149
- ys && console.log("Create concrete instance for persistent asset", s, "instance:", d), Zh(d, s), s.__concreteInstance = d, s = d;
21149
+ ys && console.log("Create concrete instance for persistent asset", s, "instance:", d), $h(d, s), s.__concreteInstance = d, s = d;
21150
21150
  } catch (d) {
21151
21151
  console.error("Error creating instance or creating values on instance", d, s, o);
21152
21152
  }
@@ -21185,7 +21185,7 @@ function U8(n) {
21185
21185
  return ry;
21186
21186
  }
21187
21187
  const FC = Symbol("assigned component properties");
21188
- function Zh(n, e, t) {
21188
+ function $h(n, e, t) {
21189
21189
  var s;
21190
21190
  if (e == null || n == null)
21191
21191
  return;
@@ -21661,7 +21661,7 @@ class G8 extends EventTarget {
21661
21661
  try {
21662
21662
  Nt.Current = this.context;
21663
21663
  const r = new Event(t);
21664
- Zh(r, i), this.dispatchEvent(r);
21664
+ $h(r, i), this.dispatchEvent(r);
21665
21665
  } finally {
21666
21666
  Nt.Current = s;
21667
21667
  }
@@ -21734,7 +21734,7 @@ function Qg(n, e, t, i) {
21734
21734
  const s = VE.get();
21735
21735
  s.set(e, t, i), yn(n, s);
21736
21736
  }
21737
- const e0 = new Cl(() => new xe(), 100), Wh = new xe(), Sx = new xe();
21737
+ const e0 = new Cl(() => new xe(), 100), jh = new xe(), Sx = new xe();
21738
21738
  function qn(n, e = null) {
21739
21739
  if (!n)
21740
21740
  return e0.get().identity();
@@ -21744,14 +21744,14 @@ function qn(n, e = null) {
21744
21744
  function Tr(n, e) {
21745
21745
  if (!n)
21746
21746
  return;
21747
- e !== Wh && Wh.copy(e);
21748
- const t = Wh, i = n == null ? void 0 : n.parent;
21747
+ e !== jh && jh.copy(e);
21748
+ const t = jh, i = n == null ? void 0 : n.parent;
21749
21749
  i == null || i.getWorldQuaternion(Sx), Sx.invert();
21750
21750
  const s = Sx.multiply(t);
21751
21751
  n.quaternion.set(s.x, s.y, s.z, s.w);
21752
21752
  }
21753
21753
  function W8(n, e, t, i, s) {
21754
- Wh.set(e, t, i, s), Tr(n, Wh);
21754
+ jh.set(e, t, i, s), Tr(n, jh);
21755
21755
  }
21756
21756
  const j8 = new Cl(() => new S(), 100), q8 = new S();
21757
21757
  function As(n, e = null) {
@@ -21792,7 +21792,7 @@ function $8(n, e) {
21792
21792
  jE(n, e.x, e.y, e.z, !0);
21793
21793
  }
21794
21794
  function jE(n, e, t, i, s = !0) {
21795
- s && (e = $e.toRadians(e), t = $e.toRadians(t), i = $e.toRadians(i)), KT.set(e, t, i), Wh.setFromEuler(KT), Tr(n, Wh);
21795
+ s && (e = $e.toRadians(e), t = $e.toRadians(t), i = $e.toRadians(i)), KT.set(e, t, i), jh.setFromEuler(KT), Tr(n, jh);
21796
21796
  }
21797
21797
  function UC(n, e = !0) {
21798
21798
  n && (e ? function t(i) {
@@ -22282,7 +22282,7 @@ var qE = {};
22282
22282
  var Cb = {};
22283
22283
  Object.defineProperty(Cb, "__esModule", { value: !0 });
22284
22284
  Cb.WebsocketBuilder = void 0;
22285
- var Hu = qE, d6 = (
22285
+ var Vu = qE, d6 = (
22286
22286
  /** @class */
22287
22287
  function() {
22288
22288
  function n(e) {
@@ -22306,21 +22306,21 @@ var Hu = qE, d6 = (
22306
22306
  return this.onRetryListeners.push({ listener: e, options: t }), this;
22307
22307
  }, n.prototype.build = function() {
22308
22308
  var e = this;
22309
- return this.ws !== null ? this.ws : (this.ws = new Hu.Websocket(this.url, this.protocols, this.buffer, this.backoff), this.onOpenListeners.forEach(function(t) {
22309
+ return this.ws !== null ? this.ws : (this.ws = new Vu.Websocket(this.url, this.protocols, this.buffer, this.backoff), this.onOpenListeners.forEach(function(t) {
22310
22310
  var i;
22311
- return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Hu.WebsocketEvents.open, t.listener, t.options);
22311
+ return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Vu.WebsocketEvents.open, t.listener, t.options);
22312
22312
  }), this.onCloseListeners.forEach(function(t) {
22313
22313
  var i;
22314
- return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Hu.WebsocketEvents.close, t.listener, t.options);
22314
+ return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Vu.WebsocketEvents.close, t.listener, t.options);
22315
22315
  }), this.onErrorListeners.forEach(function(t) {
22316
22316
  var i;
22317
- return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Hu.WebsocketEvents.error, t.listener, t.options);
22317
+ return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Vu.WebsocketEvents.error, t.listener, t.options);
22318
22318
  }), this.onMessageListeners.forEach(function(t) {
22319
22319
  var i;
22320
- return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Hu.WebsocketEvents.message, t.listener, t.options);
22320
+ return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Vu.WebsocketEvents.message, t.listener, t.options);
22321
22321
  }), this.onRetryListeners.forEach(function(t) {
22322
22322
  var i;
22323
- return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Hu.WebsocketEvents.retry, t.listener, t.options);
22323
+ return (i = e.ws) === null || i === void 0 ? void 0 : i.addEventListener(Vu.WebsocketEvents.retry, t.listener, t.options);
22324
22324
  }), this.ws);
22325
22325
  }, n;
22326
22326
  }()
@@ -28377,7 +28377,7 @@ mO('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
28377
28377
  mO('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
28378
28378
  const e1 = NEEDLE_ENGINE_VERSION, gO = "undefined";
28379
28379
  pO && console.log(`Engine version: ${e1} (generator: ${gO})`);
28380
- const Mc = "needle_isActiveInHierarchy", nd = "builtin_components", hy = "needle_editor_guid";
28380
+ const Mc = "needle_isActiveInHierarchy", sd = "builtin_components", hy = "needle_editor_guid";
28381
28381
  function mO(n) {
28382
28382
  try {
28383
28383
  (0, eval)(n);
@@ -29047,7 +29047,7 @@ function Ni(n) {
29047
29047
  else if (n instanceof me)
29048
29048
  Ni(n.geometry), Ni(n.material), Ni(n.customDepthMaterial), Ni(n.customDistanceMaterial), n.geometry = null, n.material = null;
29049
29049
  else if (n instanceof At) {
29050
- Vu(n);
29050
+ Wu(n);
29051
29051
  for (const t of Object.keys(n.attributes)) {
29052
29052
  const i = n.attributes[t];
29053
29053
  Ni(i);
@@ -29058,7 +29058,7 @@ function Ni(n) {
29058
29058
  for (const t of n)
29059
29059
  t && Ni(t);
29060
29060
  else if (n instanceof Bt) {
29061
- Vu(n);
29061
+ Wu(n);
29062
29062
  for (const i of Object.keys(n)) {
29063
29063
  const s = n[i];
29064
29064
  s instanceof Gt && (Ni(s), n[i] = null);
@@ -29070,10 +29070,10 @@ function Ni(n) {
29070
29070
  s instanceof Gt ? (Ni(s), t[i] = null) : s instanceof _e && (Ni(s.value), s.value = null);
29071
29071
  }
29072
29072
  } else
29073
- n instanceof Gt ? (Vu(n), Vu(n.source), ((e = n.source) == null ? void 0 : e.data) instanceof ImageBitmap && Vu(n.source.data)) : n instanceof hf ? (Vu(n.boneTexture), n.boneTexture = null) : n instanceof bm || !(n instanceof Ie) && ig && console.warn("Unknown object type", n);
29073
+ n instanceof Gt ? (Wu(n), Wu(n.source), ((e = n.source) == null ? void 0 : e.data) instanceof ImageBitmap && Wu(n.source.data)) : n instanceof hf ? (Wu(n.boneTexture), n.boneTexture = null) : n instanceof bm || !(n instanceof Ie) && ig && console.warn("Unknown object type", n);
29074
29074
  }
29075
29075
  }
29076
- function Vu(n) {
29076
+ function Wu(n) {
29077
29077
  n && ((ig || B9() || tg) && console.warn("🧨 FREE", n), n instanceof ImageBitmap ? n.close() : n instanceof fl ? n.data = null : n.dispose());
29078
29078
  }
29079
29079
  function k9(n) {
@@ -29267,7 +29267,7 @@ function FO(n, e, t, i, s, r) {
29267
29267
  l.userData.components = f;
29268
29268
  for (let p = 0; p < d.length; p++) {
29269
29269
  const g = d[p], m = new g.constructor();
29270
- Zh(m, g), g[hy] !== void 0 && (m[hy] = g[hy]), f.push(m), m.gameObject = l, i.push(m), Mb.dispatchComponentLifecycleEvent(Ib.Added, m);
29270
+ $h(m, g), g[hy] !== void 0 && (m[hy] = g[hy]), f.push(m), m.gameObject = l, i.push(m), Mb.dispatchComponentLifecycleEvent(Ib.Added, m);
29271
29271
  }
29272
29272
  }
29273
29273
  t && (t.position = void 0, t.rotation = void 0, t.scale = void 0, t.parent = void 0);
@@ -29693,7 +29693,7 @@ function er(n, e) {
29693
29693
  function vd(n, e, t) {
29694
29694
  return n * (e - t) - e;
29695
29695
  }
29696
- function Fh(n, e, t) {
29696
+ function Uh(n, e, t) {
29697
29697
  return Math.min(Math.max((n + e) / (e - t), 0), 1);
29698
29698
  }
29699
29699
  var eW = `#include <common>
@@ -29806,7 +29806,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
29806
29806
  return -vd(this.focusDistance, this.near, this.far);
29807
29807
  }
29808
29808
  set worldFocusDistance(n) {
29809
- this.focusDistance = Fh(-n, this.near, this.far);
29809
+ this.focusDistance = Uh(-n, this.near, this.far);
29810
29810
  }
29811
29811
  /**
29812
29812
  * Returns the focus distance.
@@ -29858,7 +29858,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
29858
29858
  return -vd(this.focusRange, this.near, this.far);
29859
29859
  }
29860
29860
  set worldFocusRange(n) {
29861
- this.focusRange = Fh(-n, this.near, this.far);
29861
+ this.focusRange = Uh(-n, this.near, this.far);
29862
29862
  }
29863
29863
  /**
29864
29864
  * Returns the focal length.
@@ -29969,7 +29969,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
29969
29969
  DISABLED: 0,
29970
29970
  DEPTH: 1,
29971
29971
  CUSTOM: 2
29972
- }, sd = {
29972
+ }, rd = {
29973
29973
  LOW: 0,
29974
29974
  MEDIUM: 1,
29975
29975
  HIGH: 2,
@@ -32334,7 +32334,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
32334
32334
  return -vd(this.distanceThreshold, this.near, this.far);
32335
32335
  }
32336
32336
  set worldDistanceThreshold(n) {
32337
- this.distanceThreshold = Fh(-n, this.near, this.far);
32337
+ this.distanceThreshold = Uh(-n, this.near, this.far);
32338
32338
  }
32339
32339
  /**
32340
32340
  * The occlusion distance falloff. Range: [0.0, 1.0].
@@ -32356,7 +32356,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
32356
32356
  return -vd(this.distanceFalloff, this.near, this.far);
32357
32357
  }
32358
32358
  set worldDistanceFalloff(n) {
32359
- this.distanceFalloff = Fh(-n, this.near, this.far);
32359
+ this.distanceFalloff = Uh(-n, this.near, this.far);
32360
32360
  }
32361
32361
  /**
32362
32362
  * Sets the occlusion distance cutoff.
@@ -32394,7 +32394,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
32394
32394
  return -vd(this.proximityThreshold, this.near, this.far);
32395
32395
  }
32396
32396
  set worldProximityThreshold(n) {
32397
- this.proximityThreshold = Fh(-n, this.near, this.far);
32397
+ this.proximityThreshold = Uh(-n, this.near, this.far);
32398
32398
  }
32399
32399
  /**
32400
32400
  * The occlusion proximity falloff. Range: [0.0, 1.0].
@@ -32416,7 +32416,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
32416
32416
  return -vd(this.proximityFalloff, this.near, this.far);
32417
32417
  }
32418
32418
  set worldProximityFalloff(n) {
32419
- this.proximityFalloff = Fh(-n, this.near, this.far);
32419
+ this.proximityFalloff = Uh(-n, this.near, this.far);
32420
32420
  }
32421
32421
  /**
32422
32422
  * Sets the occlusion proximity cutoff.
@@ -32628,7 +32628,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
32628
32628
  setSize(n, e) {
32629
32629
  this.uniforms.texelSize.value.set(1 / n, 1 / e);
32630
32630
  }
32631
- }, FW = new nu(), tc = null;
32631
+ }, FW = new su(), tc = null;
32632
32632
  function UW() {
32633
32633
  if (tc === null) {
32634
32634
  const n = new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0]), e = new Float32Array([0, 0, 2, 0, 0, 2]);
@@ -36014,7 +36014,7 @@ uniform lowp sampler2D nearCoCBuffer;uniform float scale;void mainImage(const in
36014
36014
  */
36015
36015
  calculateFocusDistance(n) {
36016
36016
  const e = this.camera, t = e.position.distanceTo(n);
36017
- return Fh(-t, e.near, e.far);
36017
+ return Uh(-t, e.near, e.far);
36018
36018
  }
36019
36019
  /**
36020
36020
  * Sets the depth texture.
@@ -36069,7 +36069,7 @@ function Lj(n, e, t) {
36069
36069
  const i = /* @__PURE__ */ new Map([
36070
36070
  [X0, 1],
36071
36071
  [_c, 1],
36072
- [Bh, 2],
36072
+ [Dh, 2],
36073
36073
  [Ti, 4]
36074
36074
  ]);
36075
36075
  let s;
@@ -36398,7 +36398,7 @@ var $O = class extends d1 {
36398
36398
  */
36399
36399
  constructor({
36400
36400
  blendFunction: n = Ut.SRC,
36401
- preset: e = sd.MEDIUM,
36401
+ preset: e = rd.MEDIUM,
36402
36402
  edgeDetectionMode: t = l1.COLOR,
36403
36403
  predicationMode: i = iW.DISABLED
36404
36404
  } = {}) {
@@ -36527,16 +36527,16 @@ var $O = class extends d1 {
36527
36527
  applyPreset(n) {
36528
36528
  const e = this.edgeDetectionMaterial, t = this.weightsMaterial;
36529
36529
  switch (n) {
36530
- case sd.LOW:
36530
+ case rd.LOW:
36531
36531
  e.edgeDetectionThreshold = 0.15, t.orthogonalSearchSteps = 4, t.diagonalDetection = !1, t.cornerDetection = !1;
36532
36532
  break;
36533
- case sd.MEDIUM:
36533
+ case rd.MEDIUM:
36534
36534
  e.edgeDetectionThreshold = 0.1, t.orthogonalSearchSteps = 8, t.diagonalDetection = !1, t.cornerDetection = !1;
36535
36535
  break;
36536
- case sd.HIGH:
36536
+ case rd.HIGH:
36537
36537
  e.edgeDetectionThreshold = 0.1, t.orthogonalSearchSteps = 16, t.diagonalSearchSteps = 8, t.cornerRounding = 25, t.diagonalDetection = !0, t.cornerDetection = !0;
36538
36538
  break;
36539
- case sd.ULTRA:
36539
+ case rd.ULTRA:
36540
36540
  e.edgeDetectionThreshold = 0.05, t.orthogonalSearchSteps = 32, t.diagonalSearchSteps = 16, t.cornerRounding = 25, t.diagonalDetection = !0, t.cornerDetection = !0;
36541
36541
  break;
36542
36542
  }
@@ -37721,7 +37721,7 @@ const Ox = Symbol("assetReference"), Ed = class {
37721
37721
  this._url = e, this._hash = t, e.includes("?v=") ? this._hashedUri = e : this._hashedUri = t ? e + "?v=" + t : e, i !== null && (this.asset = i), v9(this._url, this.onResolvePrefab.bind(this));
37722
37722
  }
37723
37723
  static getOrCreate(e, t, i) {
37724
- const s = iu(e, t);
37724
+ const s = nu(e, t);
37725
37725
  nc && console.log("GetOrCreate Addressable from", e, t, "FinalPath=", s);
37726
37726
  const r = i.addressables, o = r.findAssetReference(s);
37727
37727
  if (o)
@@ -37913,7 +37913,7 @@ class u7 extends Vc {
37913
37913
  }
37914
37914
  onDeserialize(e, t) {
37915
37915
  if (typeof e == "string") {
37916
- const i = iu(t.gltfId, e);
37916
+ const i = nu(t.gltfId, e);
37917
37917
  return og.getOrCreate(i);
37918
37918
  }
37919
37919
  }
@@ -38292,7 +38292,7 @@ class b7 {
38292
38292
  (i == null ? void 0 : i.viewDevice) === t && (v7 && console.log("REMOVE", e), i.removed = !0, this.playerViews.delete(e));
38293
38293
  }
38294
38294
  }
38295
- const Wu = ae("debugcontext"), _7 = ae("stats"), x7 = ae("debugactive"), w7 = ae("debugframerate"), C7 = ae("debugcoroutine"), aae = {};
38295
+ const ju = ae("debugcontext"), _7 = ae("stats"), x7 = ae("debugactive"), w7 = ae("debugframerate"), C7 = ae("debugcoroutine"), aae = {};
38296
38296
  class lae {
38297
38297
  constructor(e) {
38298
38298
  h(this, "name");
@@ -38664,7 +38664,7 @@ const tn = class {
38664
38664
  if (!i)
38665
38665
  return !1;
38666
38666
  if (this.internalOnUpdateVisible(), !this.renderer)
38667
- return Wu && console.warn("Context has no renderer (perhaps it was disconnected?", this.domElement.isConnected), !1;
38667
+ return ju && console.warn("Context has no renderer (perhaps it was disconnected?", this.domElement.isConnected), !1;
38668
38668
  !this.isManagedExternally && !this.domElement.shadowRoot && this.domElement.prepend(this.renderer.domElement), tn.Current = this, tn.Current = this;
38669
38669
  for (let o = 0; o < this.new_scripts.length; o++) {
38670
38670
  const a = this.new_scripts[o];
@@ -38695,7 +38695,7 @@ const tn = class {
38695
38695
  const o = new Lb(this.scene, this.mainCamera);
38696
38696
  this.renderer.setSize(this.domWidth, this.domHeight), this.composer.addPass(o), this.composer.setSize(this.domWidth, this.domHeight);
38697
38697
  }
38698
- return this._sizeChanged = !0, this._stats && (this._stats.showPanel(1), this.domElement.appendChild(this._stats.dom)), Wu && UC(this.scene, !0), this.targetFrameRate === void 0 ? (Wu && console.warn("No target framerate set, using default", tn.DefaultTargetFrameRate), this.targetFrameRate = tn._defaultTargetFramerate) : Wu && console.log("Target framerate set to", this.targetFrameRate), this._isCreating = !1, this.restartRenderLoop(), this._dispatchReadyAfterFrame = !0, Xi.dispatchCallback(Zs.ContextCreated, this, { files: s });
38698
+ return this._sizeChanged = !0, this._stats && (this._stats.showPanel(1), this.domElement.appendChild(this._stats.dom)), ju && UC(this.scene, !0), this.targetFrameRate === void 0 ? (ju && console.warn("No target framerate set, using default", tn.DefaultTargetFrameRate), this.targetFrameRate = tn._defaultTargetFramerate) : ju && console.log("Target framerate set to", this.targetFrameRate), this._isCreating = !1, this.restartRenderLoop(), this._dispatchReadyAfterFrame = !0, Xi.dispatchCallback(Zs.ContextCreated, this, { files: s });
38699
38699
  }
38700
38700
  /** Sets the animation loop.
38701
38701
  * Can not be done while creating the context or when disposed
@@ -38709,11 +38709,11 @@ const tn = class {
38709
38709
  return this.renderer.setAnimationLoop(e), !0;
38710
38710
  }
38711
38711
  render(e, t) {
38712
- if (Ns() || Wu || j9())
38712
+ if (Ns() || ju || j9())
38713
38713
  try {
38714
38714
  this.internalRender(e, t);
38715
38715
  } catch (i) {
38716
- (Ns() || Wu) && i instanceof Error && is("Exception during render-loop.<br/>See console for details.", ya.Error), console.error(i), console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null), this.domElement.dispatchEvent(new CustomEvent("error", { detail: i }));
38716
+ (Ns() || ju) && i instanceof Error && is("Exception during render-loop.<br/>See console for details.", ya.Error), console.error(i), console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null), this.domElement.dispatchEvent(new CustomEvent("error", { detail: i }));
38717
38717
  }
38718
38718
  else
38719
38719
  this.internalRender(e, t);
@@ -38877,7 +38877,7 @@ const tn = class {
38877
38877
  };
38878
38878
  let Nt = tn;
38879
38879
  h(Nt, "_defaultTargetFramerate", { value: 60 });
38880
- const S7 = ae("debugaroverlay"), Ih = "ar", KP = "quit-ar";
38880
+ const S7 = ae("debugaroverlay"), Mh = "ar", KP = "quit-ar";
38881
38881
  class E7 {
38882
38882
  constructor() {
38883
38883
  h(this, "arContainer", null);
@@ -38895,7 +38895,7 @@ class E7 {
38895
38895
  this.onRequestedEndAR();
38896
38896
  }
38897
38897
  onBegin(e, t, i) {
38898
- this.currentSession = i, this.arContainer = t, e.domElement.querySelectorAll(`.${Ih}`).forEach((o) => {
38898
+ this.currentSession = i, this.arContainer = t, e.domElement.querySelectorAll(`.${Mh}`).forEach((o) => {
38899
38899
  var a;
38900
38900
  o && o !== this.arContainer && (this._reparentedObjects.push({ el: o, previousParent: o.parentElement }), (a = this.arContainer) == null || a.appendChild(o));
38901
38901
  });
@@ -38927,20 +38927,20 @@ class E7 {
38927
38927
  }, 10);
38928
38928
  }
38929
38929
  findOrCreateARContainer(e) {
38930
- if (e.classList.contains(Ih))
38930
+ if (e.classList.contains(Mh))
38931
38931
  return e;
38932
38932
  if (e.children)
38933
38933
  for (let s = 0; s < e.children.length; s++) {
38934
38934
  const r = e.children[s];
38935
- if (!(!r || !r.classList) && r.classList.contains(Ih))
38935
+ if (!(!r || !r.classList) && r.classList.contains(Mh))
38936
38936
  return r;
38937
38937
  }
38938
- const t = document.getElementsByClassName(Ih);
38938
+ const t = document.getElementsByClassName(Mh);
38939
38939
  if (t && t.length > 0)
38940
38940
  return t[0];
38941
38941
  S7 && console.log("No overlay container found in document - generating new ony");
38942
38942
  const i = document.createElement("div");
38943
- return i.classList.add(Ih), i.style.position = "absolute", i.style.width = "100%", i.style.height = "100%", i.style.display = "flex", i.style.visibility = "visible", e.appendChild(i);
38943
+ return i.classList.add(Mh), i.style.position = "absolute", i.style.width = "100%", i.style.height = "100%", i.style.display = "flex", i.style.visibility = "visible", e.appendChild(i);
38944
38944
  }
38945
38945
  onRequestedEndAR() {
38946
38946
  if (this.currentSession) {
@@ -39138,7 +39138,7 @@ class $ extends Ie {
39138
39138
  }
39139
39139
  }
39140
39140
  var qi;
39141
- let au = (qi = class {
39141
+ let lu = (qi = class {
39142
39142
  /** @internal */
39143
39143
  constructor() {
39144
39144
  h(this, "__context");
@@ -39358,12 +39358,12 @@ let au = (qi = class {
39358
39358
  }, // TODO move this to threeutils
39359
39359
  // we need a copy for modifying the values to local space
39360
39360
  h(qi, "_worldPositionBuffer", new S()), h(qi, "_worldQuaternionBuffer", new xe()), h(qi, "_worldEulerBuffer", new vn()), h(qi, "_tempQuaternionBuffer2", new xe()), h(qi, "_forward", new S()), h(qi, "_right", new S()), h(qi, "_up", new S()), qi);
39361
- class Se extends au {
39361
+ class Se extends lu {
39362
39362
  }
39363
39363
  const I7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39364
39364
  __proto__: null,
39365
39365
  Behaviour: Se,
39366
- Component: au,
39366
+ Component: lu,
39367
39367
  GameObject: $
39368
39368
  }, Symbol.toStringTag, { value: "Module" })), M7 = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 160 187.74"><defs><linearGradient id="a" x1="89.64" y1="184.81" x2="90.48" y2="21.85" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#62d399"/><stop offset=".51" stop-color="#acd842"/><stop offset=".9" stop-color="#d7db0a"/></linearGradient><linearGradient id="b" x1="69.68" y1="178.9" x2="68.08" y2="16.77" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0ba398"/><stop offset=".5" stop-color="#4ca352"/><stop offset="1" stop-color="#76a30a"/></linearGradient><linearGradient id="c" x1="36.6" y1="152.17" x2="34.7" y2="84.19" gradientUnits="userSpaceOnUse"><stop offset=".19" stop-color="#36a382"/><stop offset=".54" stop-color="#49a459"/><stop offset="1" stop-color="#76a30b"/></linearGradient><linearGradient id="d" x1="15.82" y1="153.24" x2="18" y2="90.86" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#267880"/><stop offset=".51" stop-color="#457a5c"/><stop offset="1" stop-color="#717516"/></linearGradient><linearGradient id="e" x1="135.08" y1="135.43" x2="148.93" y2="63.47" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b0d939"/><stop offset="1" stop-color="#eadb04"/></linearGradient><linearGradient id="f" x1="-4163.25" y1="2285.12" x2="-4160.81" y2="2215.34" gradientTransform="rotate(20 4088.49 13316.712)" gradientUnits="userSpaceOnUse"><stop offset=".17" stop-color="#74af52"/><stop offset=".48" stop-color="#99be32"/><stop offset="1" stop-color="#c0c40a"/></linearGradient><symbol id="g" viewBox="0 0 160 187.74"><path style="fill:url(#a)" d="M79.32 36.98v150.76L95 174.54l6.59-156.31-22.27 18.75z"/><path style="fill:url(#b)" d="M79.32 36.98 57.05 18.23l6.59 156.31 15.68 13.2V36.98z"/><path style="fill:url(#c)" d="m25.19 104.83 8.63 49.04 12.5-14.95-2.46-56.42-18.67 22.33z"/><path style="fill:url(#d)" d="M25.19 104.83 0 90.24l16.97 53.86 16.85 9.77-8.63-49.04z"/><path style="fill:#9c3" d="M43.86 82.5 18.69 67.98 0 90.24l25.18 14.59L43.86 82.5z"/><path style="fill:url(#e)" d="m134.82 78.69-9.97 56.5 15.58-9.04L160 64.1l-25.18 14.59z"/><path style="fill:url(#f)" d="m134.82 78.69-18.68-22.33-2.86 65 11.57 13.83 9.97-56.5z"/><path style="fill:#ffe113" d="m160 64.1-18.69-22.26-25.17 14.52 18.67 22.33L160 64.1z"/><path style="fill:#f3e600" d="M101.59 18.23 79.32 0 57.05 18.23l22.27 18.75 22.27-18.75z"/></symbol></defs><use width="160" height="187.74" xlink:href="#g"/></svg>', T7 = new Blob([M7], { type: "image/svg+xml;charset=utf-8" }), P7 = URL.createObjectURL(T7), uL = P7, gl = ae("debuglicense");
39369
39369
  let Yd = "basic";
@@ -39605,7 +39605,7 @@ async function U7() {
39605
39605
  gl && console.log("Failed to send non-commercial usage message to analytics backend", n);
39606
39606
  }
39607
39607
  }
39608
- const Mh = ae("debugloading"), pp = ae("debugloadingrendering");
39608
+ const Th = ae("debugloading"), pp = ae("debugloadingrendering");
39609
39609
  class cae {
39610
39610
  constructor() {
39611
39611
  h(this, "className");
@@ -39614,9 +39614,9 @@ class cae {
39614
39614
  }
39615
39615
  let gp = 0, ZP;
39616
39616
  function pL(n) {
39617
- Mh && console.log(n.progress.loaded.toFixed(0) + "/" + n.progress.total.toFixed(0), n);
39617
+ Th && console.log(n.progress.loaded.toFixed(0) + "/" + n.progress.total.toFixed(0), n);
39618
39618
  const e = n.count, t = n.progress.total;
39619
- t === 0 || t === void 0 ? (ZP !== n.name && (gp = 0), ZP = n.name, gp += (1 - gp) * 1e-3, Mh && Go("Loading " + n.name + " did not report total size")) : gp = n.progress.loaded / t;
39619
+ t === 0 || t === void 0 ? (ZP !== n.name && (gp = 0), ZP = n.name, gp += (1 - gp) * 1e-3, Th && Go("Loading " + n.name + " did not report total size")) : gp = n.progress.loaded / t;
39620
39620
  const i = n.index / e + gp / e;
39621
39621
  return $e.clamp01(i);
39622
39622
  }
@@ -39642,12 +39642,12 @@ const F0 = class {
39642
39642
  }
39643
39643
  onLoadingBegin(e) {
39644
39644
  const t = this._element.shadowRoot || this._element;
39645
- if (Mh && console.warn("Begin Loading"), !this._loadingElement) {
39645
+ if (Th && console.warn("Begin Loading"), !this._loadingElement) {
39646
39646
  for (let i = 0; i < t.children.length; i++) {
39647
39647
  const s = t.children[i];
39648
39648
  if (s.classList.contains(F0.LoadingContainerClassName)) {
39649
39649
  if (!this._allowCustomLoadingElement) {
39650
- Mh && console.warn("Remove custom loading container"), t.removeChild(s);
39650
+ Th && console.warn("Remove custom loading container"), t.removeChild(s);
39651
39651
  continue;
39652
39652
  }
39653
39653
  this._loadingElement = this.createLoadingElement(s);
@@ -39665,7 +39665,7 @@ const F0 = class {
39665
39665
  typeof e == "number" ? i = e : ("index" in e && (i = pL(e)), !t && "name" in e && this.setMessage("loading " + e.name)), this.loadingProgress = i, t && this.setMessage(t), this.updateDisplay();
39666
39666
  }
39667
39667
  onLoadingFinished() {
39668
- Mh && console.warn("Finished Loading"), pp || (this.loadingProgress = 1, this.onDoneLoading());
39668
+ Th && console.warn("Finished Loading"), pp || (this.loadingProgress = 1, this.onDoneLoading());
39669
39669
  }
39670
39670
  setMessage(e) {
39671
39671
  this._messageContainer && (this._messageContainer.innerText = e);
@@ -39679,7 +39679,7 @@ const F0 = class {
39679
39679
  }, e);
39680
39680
  }
39681
39681
  onDoneLoading() {
39682
- this._loadingElement && (Mh && console.log("Hiding loading element"), this._loadingElement.style.display = "none", this._loadingElement.remove()), this._progressLoop && clearInterval(this._progressLoop), this._progressLoop = null;
39682
+ this._loadingElement && (Th && console.log("Hiding loading element"), this._loadingElement.style.display = "none", this._loadingElement.remove()), this._progressLoop && clearInterval(this._progressLoop), this._progressLoop = null;
39683
39683
  }
39684
39684
  updateDisplay() {
39685
39685
  const e = this._progress, t = (e * 100).toFixed(0) + "%";
@@ -39687,7 +39687,7 @@ const F0 = class {
39687
39687
  }
39688
39688
  createLoadingElement(e) {
39689
39689
  var d, f;
39690
- Mh && !e && console.log("Creating loading element"), this._loadingElement = e || document.createElement("div");
39690
+ Th && !e && console.log("Creating loading element"), this._loadingElement = e || document.createElement("div");
39691
39691
  const t = this._element.getAttribute("loading-style"), i = lg();
39692
39692
  if (!e && (this._loadingElement.style.position = "absolute", this._loadingElement.style.width = "100%", this._loadingElement.style.height = "100%", this._loadingElement.style.left = "0", this._loadingElement.style.top = "0", t === "light" ? this._loadingElement.style.backgroundColor = "#ddd" : this._loadingElement.style.backgroundColor = "#222", this._loadingElement.style.display = "flex", this._loadingElement.style.alignItems = "center", this._loadingElement.style.justifyContent = "center", this._loadingElement.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), this._loadingElement.style.flexDirection = "column", this._loadingElement.style.pointerEvents = "none", this._loadingElement.style.color = "white", t === "light" ? this._loadingElement.style.color = "rgba(0,0,0,.8)" : this._loadingElement.style.color = "rgba(255,255,255,.5)", i && this._element)) {
39693
39693
  const p = this._element.getAttribute("loading-background-color");
@@ -40365,10 +40365,10 @@ const tR = {
40365
40365
  [bL]: Ti,
40366
40366
  [AL]: Ti,
40367
40367
  [A1]: Ti,
40368
- [xL]: Bh,
40369
- [yL]: Bh,
40370
- [mL]: Bh,
40371
- [m1]: Bh,
40368
+ [xL]: Dh,
40369
+ [yL]: Dh,
40370
+ [mL]: Dh,
40371
+ [m1]: Dh,
40372
40372
  [_L]: _c,
40373
40373
  [vL]: _c,
40374
40374
  [g1]: _c,
@@ -41452,7 +41452,7 @@ const Kr = {
41452
41452
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
41453
41453
  // keyframe track will be initialized with a default interpolation type, then modified.
41454
41454
  LINEAR: El,
41455
- STEP: Yh
41455
+ STEP: Kh
41456
41456
  }, jx = {
41457
41457
  OPAQUE: "OPAQUE",
41458
41458
  MASK: "MASK",
@@ -42052,7 +42052,7 @@ class Sq {
42052
42052
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
42053
42053
  return;
42054
42054
  }
42055
- return i.type === "perspective" ? t = new ei(Fs.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new su(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (t.name = this.createUniqueName(i.name)), pc(t, i), Promise.resolve(t);
42055
+ return i.type === "perspective" ? t = new ei(Fs.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new ru(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (t.name = this.createUniqueName(i.name)), pc(t, i), Promise.resolve(t);
42056
42056
  }
42057
42057
  /**
42058
42058
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -42343,7 +42343,7 @@ function fR(n, e) {
42343
42343
  return r.setIndex(s), r;
42344
42344
  }
42345
42345
  var TL = /* @__PURE__ */ ((n) => (n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", n[n.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", n[n.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", n[n.INT_VEC2 = 35667] = "INT_VEC2", n[n.INT_VEC3 = 35668] = "INT_VEC3", n[n.INT_VEC4 = 35669] = "INT_VEC4", n[n.BOOL = 35670] = "BOOL", n[n.BOOL_VEC2 = 35671] = "BOOL_VEC2", n[n.BOOL_VEC3 = 35672] = "BOOL_VEC3", n[n.BOOL_VEC4 = 35673] = "BOOL_VEC4", n[n.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", n[n.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", n[n.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", n[n.SAMPLER_2D = 35678] = "SAMPLER_2D", n[n.SAMPLER_3D = 35680] = "SAMPLER_3D", n[n.SAMPLER_CUBE = 35681] = "SAMPLER_CUBE", n[n.UNKNOWN = 0] = "UNKNOWN", n))(TL || {});
42346
- const tl = ae("debugcustomshader"), ju = "NEEDLE_techniques_webgl";
42346
+ const tl = ae("debugcustomshader"), qu = "NEEDLE_techniques_webgl";
42347
42347
  class Iq {
42348
42348
  constructor() {
42349
42349
  h(this, "objectToWorldMatrix", new Pe());
@@ -42451,18 +42451,18 @@ class Mq {
42451
42451
  this.parser = e, this.identifier = t;
42452
42452
  }
42453
42453
  get name() {
42454
- return ju;
42454
+ return qu;
42455
42455
  }
42456
42456
  loadMaterial(e) {
42457
42457
  const t = this.parser.json.materials[e];
42458
42458
  if (!t)
42459
42459
  return tl && console.log(e, this.parser.json.materials), null;
42460
- if (!t.extensions || !t.extensions[ju])
42460
+ if (!t.extensions || !t.extensions[qu])
42461
42461
  return tl && console.log("material " + e + " does not use NEEDLE_techniques_webgl"), null;
42462
- const i = t.extensions[ju].technique;
42462
+ const i = t.extensions[qu].technique;
42463
42463
  if (i < 0)
42464
42464
  return null;
42465
- const s = this.parser.json.extensions[ju];
42465
+ const s = this.parser.json.extensions[qu];
42466
42466
  if (!s)
42467
42467
  return null;
42468
42468
  tl && console.log(s);
@@ -42509,8 +42509,8 @@ class Mq {
42509
42509
  }
42510
42510
  }
42511
42511
  let p = !1;
42512
- if (t.extensions && t.extensions[ju]) {
42513
- const b = t.extensions[ju];
42512
+ if (t.extensions && t.extensions[qu]) {
42513
+ const b = t.extensions[qu];
42514
42514
  if (b.technique === i) {
42515
42515
  tl && console.log(t.name, "Material Properties", b);
42516
42516
  for (const C in b.values) {
@@ -42622,7 +42622,7 @@ class Pq {
42622
42622
  h(this, woe);
42623
42623
  }
42624
42624
  }
42625
- woe = nd;
42625
+ woe = sd;
42626
42626
  class Rq {
42627
42627
  constructor(e, t, i) {
42628
42628
  h(this, "node");
@@ -42696,7 +42696,7 @@ class RL {
42696
42696
  const f = wa().writeBuiltinComponentData(d, this.context);
42697
42697
  f !== null && u.push(f);
42698
42698
  }
42699
- u.length > 0 && (c[nd] = u, rc && console.log("DID WRITE", r, "nodeIndex", a, u));
42699
+ u.length > 0 && (c[sd] = u, rc && console.log("DID WRITE", r, "nodeIndex", a, u));
42700
42700
  }
42701
42701
  }
42702
42702
  // -------------------------------------
@@ -42740,7 +42740,7 @@ class RL {
42740
42740
  async createComponents(e, t) {
42741
42741
  if (!t)
42742
42742
  return;
42743
- const i = t[nd];
42743
+ const i = t[sd];
42744
42744
  if (i) {
42745
42745
  const s = new Array();
42746
42746
  rc && console.log(e.name, i);
@@ -42749,7 +42749,7 @@ class RL {
42749
42749
  rc && console.log("Serialized data", JSON.parse(JSON.stringify(o))), o && this.parser && s.push(
42750
42750
  HE(this.parser, o).catch((a) => console.error(`Error while resolving references (see console for details)
42751
42751
  `, a, e, o))
42752
- ), e.userData = e.userData || {}, e.userData[nd] = e.userData[nd] || [], e.userData[nd].push(o);
42752
+ ), e.userData = e.userData || {}, e.userData[sd] = e.userData[sd] || [], e.userData[sd].push(o);
42753
42753
  }
42754
42754
  await Promise.all(s).catch((r) => {
42755
42755
  console.error("Error while loading components", r);
@@ -43034,7 +43034,7 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43034
43034
  t <<= e & 7;
43035
43035
  var i = e / 8 | 0;
43036
43036
  n[i] |= t, n[i + 1] |= t >>> 8;
43037
- }, rd = function(n, e, t) {
43037
+ }, od = function(n, e, t) {
43038
43038
  t <<= e & 7;
43039
43039
  var i = e / 8 | 0;
43040
43040
  n[i] |= t, n[i + 1] |= t >>> 8, n[i + 2] |= t >>> 16;
@@ -43104,7 +43104,7 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43104
43104
  r = 1, s = n[a];
43105
43105
  }
43106
43106
  return [t.subarray(0, i), e];
43107
- }, od = function(n, e) {
43107
+ }, ad = function(n, e) {
43108
43108
  for (var t = 0, i = 0; i < e.length; ++i)
43109
43109
  t += n[i] * e[i];
43110
43110
  return t;
@@ -43122,7 +43122,7 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43122
43122
  T[C[x] & 31]++;
43123
43123
  for (var M = _y(T, 7), P = M[0], k = M[1], G = 19; G > 4 && !P[jg[G - 1]]; --G)
43124
43124
  ;
43125
- var z = c + 5 << 3, L = od(s, Dl) + od(r, Kd) + o, H = od(s, f) + od(r, m) + o + 14 + 3 * G + od(T, P) + (2 * T[16] + 3 * T[17] + 7 * T[18]);
43125
+ var z = c + 5 << 3, L = ad(s, Dl) + ad(r, Kd) + o, H = ad(s, f) + ad(r, m) + o + 14 + 3 * G + ad(T, P) + (2 * T[16] + 3 * T[17] + 7 * T[18]);
43126
43126
  if (z <= L && z <= H)
43127
43127
  return cg(e, u, n.subarray(l, l + c));
43128
43128
  var Z, J, K, ue;
@@ -43143,12 +43143,12 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43143
43143
  for (var x = 0; x < a; ++x)
43144
43144
  if (i[x] > 255) {
43145
43145
  var le = i[x] >>> 18 & 31;
43146
- rd(e, u, Z[le + 257]), u += J[le + 257], le > 7 && (na(e, u, i[x] >>> 23 & 31), u += xf[le]);
43146
+ od(e, u, Z[le + 257]), u += J[le + 257], le > 7 && (na(e, u, i[x] >>> 23 & 31), u += xf[le]);
43147
43147
  var we = i[x] & 31;
43148
- rd(e, u, K[we]), u += ue[we], we > 3 && (rd(e, u, i[x] >>> 5 & 8191), u += wf[we]);
43148
+ od(e, u, K[we]), u += ue[we], we > 3 && (od(e, u, i[x] >>> 5 & 8191), u += wf[we]);
43149
43149
  } else
43150
- rd(e, u, Z[i[x]]), u += J[i[x]];
43151
- return rd(e, u, Z[256]), u + J[256];
43150
+ od(e, u, Z[i[x]]), u += J[i[x]];
43151
+ return od(e, u, Z[256]), u + J[256];
43152
43152
  }, GL = /* @__PURE__ */ new Bl([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), ml = /* @__PURE__ */ new Kt(0), QL = function(n, e, t, i, s, r) {
43153
43153
  var o = n.length, a = new Kt(i + o + 5 * (1 + Math.ceil(o / 7e3)) + s), l = a.subarray(i, a.length - s), c = 0;
43154
43154
  if (!e || o < 8)
@@ -43232,7 +43232,7 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43232
43232
  return n %= 65521, e %= 65521, (n & 255) << 24 | n >>> 8 << 16 | (e & 255) << 8 | e >>> 8;
43233
43233
  }
43234
43234
  };
43235
- }, lu = function(n, e, t, i, s) {
43235
+ }, cu = function(n, e, t, i, s) {
43236
43236
  return QL(n, e.level == null ? 6 : e.level, e.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(n.length))) * 1.5) : 12 + e.mem, t, i, !s);
43237
43237
  }, zm = function(n, e) {
43238
43238
  var t = {};
@@ -43279,7 +43279,7 @@ var FL = /* @__PURE__ */ ao(Dl, 9, 0), UL = /* @__PURE__ */ ao(Dl, 9, 1), NL = /
43279
43279
  }, Sf = function() {
43280
43280
  return [Kt, jn, Bl, xf, wf, jg, v1, LL, UL, zL, qg, ao, yy, Vr, by, Um, lo, Nm, Tf, Wc, b1];
43281
43281
  }, Ef = function() {
43282
- return [Kt, jn, Bl, xf, wf, jg, c0, aS, FL, Dl, NL, Kd, qg, GL, ml, ao, na, rd, _y, h0, lS, od, cg, cS, Um, lo, QL, lu, Gm, Wc];
43282
+ return [Kt, jn, Bl, xf, wf, jg, c0, aS, FL, Dl, NL, Kd, qg, GL, ml, ao, na, od, _y, h0, lS, ad, cg, cS, Um, lo, QL, cu, Gm, Wc];
43283
43283
  }, WL = function() {
43284
43284
  return [_1, w1, li, Cf, HL];
43285
43285
  }, jL = function() {
@@ -43364,7 +43364,7 @@ var Ca = /* @__PURE__ */ function() {
43364
43364
  !t && typeof e == "function" && (t = e, e = {}), this.ondata = t, this.o = e || {};
43365
43365
  }
43366
43366
  return n.prototype.p = function(e, t) {
43367
- this.ondata(lu(e, this.o, 0, 0, !t), t);
43367
+ this.ondata(cu(e, this.o, 0, 0, !t), t);
43368
43368
  }, n.prototype.push = function(e, t) {
43369
43369
  if (this.d)
43370
43370
  throw "stream finished";
@@ -43396,7 +43396,7 @@ function ZL(n, e, t) {
43396
43396
  }, 0, t);
43397
43397
  }
43398
43398
  function Gm(n, e) {
43399
- return lu(n, e || {}, 0, 0);
43399
+ return cu(n, e || {}, 0, 0);
43400
43400
  }
43401
43401
  var ir = /* @__PURE__ */ function() {
43402
43402
  function n(e) {
@@ -43450,7 +43450,7 @@ var u0 = /* @__PURE__ */ function() {
43450
43450
  Ca.prototype.push.call(this, e, t);
43451
43451
  }, n.prototype.p = function(e, t) {
43452
43452
  this.c.p(e), this.l += e.length;
43453
- var i = lu(e, this.o, this.v && w1(this.o), t && 8, !t);
43453
+ var i = cu(e, this.o, this.v && w1(this.o), t && 8, !t);
43454
43454
  this.v && (_1(i, this.o), this.v = 0), t && (li(i, i.length - 8, this.c.d()), li(i, i.length - 4, this.l)), this.ondata(i, t);
43455
43455
  }, n;
43456
43456
  }(), mR = /* @__PURE__ */ function() {
@@ -43485,7 +43485,7 @@ function d0(n, e) {
43485
43485
  e || (e = {});
43486
43486
  var t = Cf(), i = n.length;
43487
43487
  t.p(n);
43488
- var s = lu(n, e, w1(e), 8), r = s.length;
43488
+ var s = cu(n, e, w1(e), 8), r = s.length;
43489
43489
  return _1(s, e), li(s, r - 8, t.d()), li(s, r - 4, i), s;
43490
43490
  }
43491
43491
  var f0 = /* @__PURE__ */ function() {
@@ -43545,7 +43545,7 @@ var hS = /* @__PURE__ */ function() {
43545
43545
  Ca.prototype.push.call(this, e, t);
43546
43546
  }, n.prototype.p = function(e, t) {
43547
43547
  this.c.p(e);
43548
- var i = lu(e, this.o, this.v && 2, t && 4, !t);
43548
+ var i = cu(e, this.o, this.v && 2, t && 4, !t);
43549
43549
  this.v && (C1(i, this.o), this.v = 0), t && li(i, i.length - 4, this.c.d()), this.ondata(i, t);
43550
43550
  }, n;
43551
43551
  }(), kq = /* @__PURE__ */ function() {
@@ -43580,7 +43580,7 @@ function uS(n, e) {
43580
43580
  e || (e = {});
43581
43581
  var t = y1();
43582
43582
  t.p(n);
43583
- var i = lu(n, e, 2, 4);
43583
+ var i = cu(n, e, 2, 4);
43584
43584
  return C1(i, e), li(i, i.length - 4, t.d()), i;
43585
43585
  }
43586
43586
  var g0 = /* @__PURE__ */ function() {
@@ -44569,7 +44569,7 @@ class fS extends DE {
44569
44569
  }
44570
44570
  function Lt(I, R, N) {
44571
44571
  for (let q = 0; q < 64; ++q)
44572
- R[N + q] = Lh.toHalfFloat(U(I[q]));
44572
+ R[N + q] = Fh.toHalfFloat(U(I[q]));
44573
44573
  }
44574
44574
  function U(I) {
44575
44575
  return I <= 1 ? Math.sign(I) * Math.pow(Math.abs(I), 2.2) : Math.sign(I) * Math.pow(M, Math.abs(I) - 1);
@@ -44797,7 +44797,7 @@ class fS extends DE {
44797
44797
  return R.value += 4, N;
44798
44798
  }
44799
44799
  function j(I, R) {
44800
- return Lh.toHalfFloat(Tt(I, R));
44800
+ return Fh.toHalfFloat(Tt(I, R));
44801
44801
  }
44802
44802
  function X(I) {
44803
44803
  const R = (I & 31744) >> 10, N = I & 1023;
@@ -45001,10 +45001,10 @@ class fS extends DE {
45001
45001
  }
45002
45002
  return ee.bytesPerLine = ee.width * ee.inputSize * ee.channels, ee.outputChannels == 4 ? (ee.format = Ti, ee.encoding = cn) : (ee.format = _c, ee.encoding = cn), ee;
45003
45003
  }
45004
- const Cu = new DataView(e), O_ = new Uint8Array(e), F = { value: 0 }, se = bA(Cu, e, F), ne = k_(se, Cu, O_, F, this.type), te = { value: 0 }, Ae = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
45004
+ const Su = new DataView(e), O_ = new Uint8Array(e), F = { value: 0 }, se = bA(Su, e, F), ne = k_(se, Su, O_, F, this.type), te = { value: 0 }, Ae = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
45005
45005
  for (let I = 0; I < ne.height / ne.scanlineBlockSize; I++) {
45006
- const R = We(Cu, F);
45007
- ne.size = We(Cu, F), ne.lines = R + ne.scanlineBlockSize > ne.height ? ne.height - R : ne.scanlineBlockSize;
45006
+ const R = We(Su, F);
45007
+ ne.size = We(Su, F), ne.lines = R + ne.scanlineBlockSize > ne.height ? ne.height - R : ne.scanlineBlockSize;
45008
45008
  const q = ne.size < ne.lines * ne.bytesPerLine ? ne.uncompress(ne) : D(ne);
45009
45009
  F.value += ne.size;
45010
45010
  for (let re = 0; re < ne.scanlineBlockSize; re++) {
@@ -45205,7 +45205,7 @@ const Yx = ae("debugstencil");
45205
45205
  function $q(n, e) {
45206
45206
  return (n & 1 << e.layer) != 0;
45207
45207
  }
45208
- const eX = Symbol("stencils"), Ph = class {
45208
+ const eX = Symbol("stencils"), Rh = class {
45209
45209
  constructor(e, t) {
45210
45210
  h(this, "parser");
45211
45211
  h(this, "source");
@@ -45215,9 +45215,9 @@ const eX = Symbol("stencils"), Ph = class {
45215
45215
  if (!e)
45216
45216
  return;
45217
45217
  const t = e.sourceId;
45218
- if (Yx && console.log(t, Ph.stencils), !t)
45218
+ if (Yx && console.log(t, Rh.stencils), !t)
45219
45219
  return;
45220
- const i = Ph.stencils[t];
45220
+ const i = Rh.stencils[t];
45221
45221
  if (i)
45222
45222
  for (let s = i.length - 1; s >= 0; s--) {
45223
45223
  const r = i[s];
@@ -45244,14 +45244,14 @@ const eX = Symbol("stencils"), Ph = class {
45244
45244
  if (s && Array.isArray(s))
45245
45245
  for (const r of s) {
45246
45246
  const o = { ...r };
45247
- o.compareFunc = tX(o.compareFunc), o.passOp = Kx(o.passOp), o.failOp = Kx(o.failOp), o.zFailOp = Kx(o.zFailOp), Ph.stencils[this.source] || (Ph.stencils[this.source] = []), Ph.stencils[this.source].push(o);
45247
+ o.compareFunc = tX(o.compareFunc), o.passOp = Kx(o.passOp), o.failOp = Kx(o.failOp), o.zFailOp = Kx(o.zFailOp), Rh.stencils[this.source] || (Rh.stencils[this.source] = []), Rh.stencils[this.source].push(o);
45248
45248
  }
45249
45249
  }
45250
45250
  }
45251
45251
  return null;
45252
45252
  }
45253
45253
  };
45254
- let hg = Ph;
45254
+ let hg = Rh;
45255
45255
  h(hg, "stencils", {});
45256
45256
  function Kx(n) {
45257
45257
  switch (n) {
@@ -45355,7 +45355,7 @@ const Cg = class {
45355
45355
  let l;
45356
45356
  if (r.source && r.source[Zx] && (l = r.source[Zx]), l || (l = Cg.cache.get(a)), l) {
45357
45357
  Sn && console.log(a, l.uri, l.guid);
45358
- const c = iu(t, l.uri);
45358
+ const c = nu(t, l.uri);
45359
45359
  if (c.endsWith(".glb") || c.endsWith(".gltf")) {
45360
45360
  if (!l.guid)
45361
45361
  return console.warn("missing pointer for glb/gltf texture", l), null;
@@ -45764,8 +45764,8 @@ const CR = Symbol("previous-visibility"), Id = class extends si {
45764
45764
  Id._userSet.clear();
45765
45765
  }
45766
45766
  };
45767
- let jh = Id;
45768
- h(jh, "_userSet", /* @__PURE__ */ new Set());
45767
+ let qh = Id;
45768
+ h(qh, "_userSet", /* @__PURE__ */ new Set());
45769
45769
  class aX extends Vc {
45770
45770
  constructor() {
45771
45771
  super([ye, Ei]);
@@ -45810,7 +45810,7 @@ class lX extends Vc {
45810
45810
  const cX = new lX();
45811
45811
  class hX extends Vc {
45812
45812
  constructor() {
45813
- super([au, Se]);
45813
+ super([lu, Se]);
45814
45814
  }
45815
45815
  onSerialize(e, t) {
45816
45816
  if (e != null && e.guid)
@@ -45914,13 +45914,13 @@ class dX extends Vc {
45914
45914
  const vae = new dX();
45915
45915
  class fX extends Vc {
45916
45916
  constructor() {
45917
- super([jh, si]);
45917
+ super([qh, si]);
45918
45918
  }
45919
45919
  onSerialize(e, t) {
45920
45920
  }
45921
45921
  onDeserialize(e, t) {
45922
- if (e instanceof Gt && t.type === jh) {
45923
- const i = e, s = new jh(i.image.width, i.image.height);
45922
+ if (e instanceof Gt && t.type === qh) {
45923
+ const i = e, s = new qh(i.image.width, i.image.height);
45924
45924
  return s.texture = i, s;
45925
45925
  }
45926
45926
  }
@@ -45935,7 +45935,7 @@ class pX extends Vc {
45935
45935
  }
45936
45936
  onDeserialize(e, t) {
45937
45937
  if (typeof e == "string" && e.length > 0)
45938
- return iu(t.gltfId, e);
45938
+ return nu(t.gltfId, e);
45939
45939
  }
45940
45940
  }
45941
45941
  new pX();
@@ -46088,7 +46088,7 @@ var vX = Object.defineProperty, yX = Object.getOwnPropertyDescriptor, pF = (n, e
46088
46088
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
46089
46089
  return i && s && vX(e, t, s), s;
46090
46090
  };
46091
- const Th = ae("debugreflectionprobe"), MR = ae("noreflectionprobe"), bX = Symbol("reflectionProbeKey"), _X = Symbol("original material");
46091
+ const Ph = ae("debugreflectionprobe"), MR = ae("noreflectionprobe"), bX = Symbol("reflectionProbeKey"), _X = Symbol("original material");
46092
46092
  var Kv;
46093
46093
  const qa = (Kv = class extends Se {
46094
46094
  constructor() {
@@ -46111,10 +46111,10 @@ const qa = (Kv = class extends Se {
46111
46111
  if (o.gameObject === s)
46112
46112
  return o;
46113
46113
  } else if (o.isInBox(e, void 0))
46114
- return Th && console.log("Found reflection probe", e.name, o.name), o;
46114
+ return Ph && console.log("Found reflection probe", e.name, o.name), o;
46115
46115
  }
46116
46116
  }
46117
- return Th && console.debug("Did not find reflection probe", e.name, i, e), null;
46117
+ return Ph && console.debug("Did not find reflection probe", e.name, i, e), null;
46118
46118
  }
46119
46119
  set texture(e) {
46120
46120
  if (e && !(e instanceof Gt)) {
@@ -46131,7 +46131,7 @@ const qa = (Kv = class extends Se {
46131
46131
  return (i = this._boxHelper) == null ? void 0 : i.isInBox(e, t);
46132
46132
  }
46133
46133
  awake() {
46134
- this._boxHelper = this.gameObject.addNewComponent(Oo), this._boxHelper.updateBox(!0), Th && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = ro, this.texture.encoding = yt, this.texture.needsUpdate = !0);
46134
+ this._boxHelper = this.gameObject.addNewComponent(Oo), this._boxHelper.updateBox(!0), Ph && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = ro, this.texture.encoding = yt, this.texture.needsUpdate = !0);
46135
46135
  }
46136
46136
  onDestroy() {
46137
46137
  const e = qa._probes.get(this.context);
@@ -46152,7 +46152,7 @@ const qa = (Kv = class extends Se {
46152
46152
  continue;
46153
46153
  let o = t[s], a = r === (o == null ? void 0 : o.copy), l = !o || o.material.uuid !== r.uuid || o.copy.version !== r.version;
46154
46154
  if (!a && l) {
46155
- if (Th) {
46155
+ if (Ph) {
46156
46156
  let d = "";
46157
46157
  o ? o.material !== r ? d = "reference changed; cached instance?: " + a : o.copy.version !== r.version && (d = "version changed") : d = "not cached", console.warn("Cloning material", r.name, r.version, "Reason:", d, `
46158
46158
  `, r.uuid, `
@@ -46163,7 +46163,7 @@ const qa = (Kv = class extends Se {
46163
46163
  u.version = r.version, o ? (o.copy = u, o.material = r) : (o = {
46164
46164
  material: r,
46165
46165
  copy: u
46166
- }, t.push(o)), u[bX] = this, u[_X] = r, Th && console.log("Set reflection", e.name, e.guid);
46166
+ }, t.push(o)), u[bX] = this, u[_X] = r, Ph && console.log("Set reflection", e.name, e.guid);
46167
46167
  }
46168
46168
  const c = o == null ? void 0 : o.copy;
46169
46169
  c.envMap = this.texture, e.sharedMaterials[s] = c;
@@ -46409,7 +46409,7 @@ const yF = class extends Se {
46409
46409
  this.enabled || this.setVisibility(!1);
46410
46410
  }
46411
46411
  awake() {
46412
- if (mF && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && Th && this.probeAnchor.add(new mf(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
46412
+ if (mF && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && Ph && this.probeAnchor.add(new mf(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
46413
46413
  for (const e of this.gameObject.children)
46414
46414
  this.context.addBeforeRenderListener(e, this.onBeforeRenderThree.bind(this)), e.layers.mask = this.gameObject.layers.mask;
46415
46415
  if (this.renderOrder !== void 0) {
@@ -46458,7 +46458,7 @@ const yF = class extends Se {
46458
46458
  }
46459
46459
  }
46460
46460
  } else
46461
- Th && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
46461
+ Ph && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
46462
46462
  }
46463
46463
  }
46464
46464
  clearInstancingState() {
@@ -46740,7 +46740,7 @@ h(xy, "nullMatrix", new Pe());
46740
46740
  function D1(n) {
46741
46741
  return n = n.replace(/[^a-zA-Z0-9_]/g, ""), n.match(/^[a-zA-Z_]/) || (n = "_" + n), n;
46742
46742
  }
46743
- const Rh = class {
46743
+ const Bh = class {
46744
46744
  constructor(e, t, i, s = null, r = null, o = null) {
46745
46745
  h(this, "uuid");
46746
46746
  h(this, "name");
@@ -46761,11 +46761,11 @@ const Rh = class {
46761
46761
  this._isDynamic = e;
46762
46762
  }
46763
46763
  static createEmptyParent(e) {
46764
- const t = new Rh(Fs.generateUUID(), e.name + "_empty_" + Rh.USDObject_export_id++, e.matrix);
46764
+ const t = new Bh(Fs.generateUUID(), e.name + "_empty_" + Bh.USDObject_export_id++, e.matrix);
46765
46765
  return e.parent.add(t), t.add(e), t.isDynamic = !0, e.matrix = new Pe().identity(), t;
46766
46766
  }
46767
46767
  static createEmpty() {
46768
- const e = new Rh(Fs.generateUUID(), "Empty_" + Rh.USDObject_export_id++, new Pe());
46768
+ const e = new Bh(Fs.generateUUID(), "Empty_" + Bh.USDObject_export_id++, new Pe());
46769
46769
  return e.isDynamic = !0, e;
46770
46770
  }
46771
46771
  is(e) {
@@ -46775,7 +46775,7 @@ const Rh = class {
46775
46775
  return !this.geometry;
46776
46776
  }
46777
46777
  clone() {
46778
- const e = new Rh(Fs.generateUUID(), this.name, this.matrix, this.geometry, this.material);
46778
+ const e = new Bh(Fs.generateUUID(), this.name, this.matrix, this.geometry, this.material);
46779
46779
  return e.isDynamic = this.isDynamic, e;
46780
46780
  }
46781
46781
  getPath() {
@@ -46805,7 +46805,7 @@ const Rh = class {
46805
46805
  i && i.forEach((s) => s(e, t));
46806
46806
  }
46807
46807
  };
46808
- let Fo = Rh;
46808
+ let Fo = Bh;
46809
46809
  h(Fo, "USDObject_export_id", 0);
46810
46810
  class _F extends Fo {
46811
46811
  constructor() {
@@ -46864,7 +46864,7 @@ class _F extends Fo {
46864
46864
  `;
46865
46865
  }
46866
46866
  }
46867
- const qu = `
46867
+ const Xu = `
46868
46868
  `;
46869
46869
  class BX {
46870
46870
  constructor() {
@@ -46876,19 +46876,19 @@ class BX {
46876
46876
  this.str = "", this.indent = 0;
46877
46877
  }
46878
46878
  beginBlock(e) {
46879
- e = this.applyIndent(e), this.str += e, this.str += qu, this.str += this.applyIndent("{"), this.str += qu, this.indent += 1;
46879
+ e = this.applyIndent(e), this.str += e, this.str += Xu, this.str += this.applyIndent("{"), this.str += Xu, this.indent += 1;
46880
46880
  }
46881
46881
  closeBlock() {
46882
- this.indent -= 1, this.str += this.applyIndent("}") + qu;
46882
+ this.indent -= 1, this.str += this.applyIndent("}") + Xu;
46883
46883
  }
46884
46884
  beginArray(e) {
46885
- e = this.applyIndent(e + " = ["), this.str += e, this.str += qu, this.indent += 1;
46885
+ e = this.applyIndent(e + " = ["), this.str += e, this.str += Xu, this.indent += 1;
46886
46886
  }
46887
46887
  closeArray() {
46888
- this.indent -= 1, this.str += this.applyIndent("]") + qu;
46888
+ this.indent -= 1, this.str += this.applyIndent("]") + Xu;
46889
46889
  }
46890
46890
  appendLine(e = "") {
46891
- e = this.applyIndent(e), this.str += e, this.str += qu;
46891
+ e = this.applyIndent(e), this.str += e, this.str += Xu;
46892
46892
  }
46893
46893
  toString() {
46894
46894
  return this.str;
@@ -46975,7 +46975,7 @@ function xF(n, e, t) {
46975
46975
  if (o && !o.enabled && (s = void 0, r = void 0), n instanceof me && r && (r instanceof Ml || r instanceof vi) && !(n instanceof cf)) {
46976
46976
  const a = bv(n);
46977
46977
  i = new Fo(n.uuid, a, n.matrix, s, r);
46978
- } else if (n instanceof nu) {
46978
+ } else if (n instanceof su) {
46979
46979
  const a = bv(n);
46980
46980
  i = new Fo(n.uuid, a, n.matrix, void 0, void 0, n);
46981
46981
  } else {
@@ -47395,7 +47395,7 @@ class Er {
47395
47395
  return i.tokenId = "ProximityToCamera", i.distance = t, i;
47396
47396
  }
47397
47397
  }
47398
- class Uh {
47398
+ class Nh {
47399
47399
  constructor(e, t) {
47400
47400
  h(this, "id");
47401
47401
  h(this, "actions");
@@ -47432,7 +47432,7 @@ class Uh {
47432
47432
  t.closeBlock();
47433
47433
  }
47434
47434
  }
47435
- h(Uh, "global_id", 0);
47435
+ h(Nh, "global_id", 0);
47436
47436
  var k1 = /* @__PURE__ */ ((n) => (n[n.pop = 0] = "pop", n[n.blink = 1] = "blink", n[n.bounce = 2] = "bounce", n[n.flip = 3] = "flip", n[n.float = 4] = "float", n[n.jiggle = 5] = "jiggle", n[n.pulse = 6] = "pulse", n[n.spin = 7] = "spin", n))(k1 || {}), AS = /* @__PURE__ */ ((n) => (n.Relative = "relative", n.Absolute = "absolute", n))(AS || {});
47437
47437
  const U0 = class {
47438
47438
  constructor(e, t) {
@@ -47468,7 +47468,7 @@ const U0 = class {
47468
47468
  };
47469
47469
  let to = U0;
47470
47470
  h(to, "global_id", 0);
47471
- let yd = class ad {
47471
+ let yd = class ld {
47472
47472
  constructor(e, t, i) {
47473
47473
  h(this, "x", 0);
47474
47474
  h(this, "y", 0);
@@ -47476,28 +47476,28 @@ let yd = class ad {
47476
47476
  this.x = e, this.y = t, this.z = i;
47477
47477
  }
47478
47478
  static get up() {
47479
- return new ad(0, 1, 0);
47479
+ return new ld(0, 1, 0);
47480
47480
  }
47481
47481
  static get right() {
47482
- return new ad(1, 0, 0);
47482
+ return new ld(1, 0, 0);
47483
47483
  }
47484
47484
  static get forward() {
47485
- return new ad(0, 0, 1);
47485
+ return new ld(0, 0, 1);
47486
47486
  }
47487
47487
  static get back() {
47488
- return new ad(0, 0, -1);
47488
+ return new ld(0, 0, -1);
47489
47489
  }
47490
47490
  static get zero() {
47491
- return new ad(0, 0, 0);
47491
+ return new ld(0, 0, 0);
47492
47492
  }
47493
47493
  };
47494
47494
  var IF = /* @__PURE__ */ ((n) => (n.Play = "play", n.Pause = "pause", n.Stop = "stop", n))(IF || {}), vS = /* @__PURE__ */ ((n) => (n.Spatial = "spatial", n.NonSpatial = "nonSpatial", n.Ambient = "ambient", n))(vS || {});
47495
47495
  class ci {
47496
47496
  static sequence(...e) {
47497
- return new Uh("group_" + Uh.getId(), e).makeSequence();
47497
+ return new Nh("group_" + Nh.getId(), e).makeSequence();
47498
47498
  }
47499
47499
  static parallel(...e) {
47500
- return new Uh("group_" + Uh.getId(), e).makeParallel();
47500
+ return new Nh("group_" + Nh.getId(), e).makeParallel();
47501
47501
  }
47502
47502
  static fadeAction(e, t, i) {
47503
47503
  const s = new to(e);
@@ -48403,7 +48403,7 @@ class Zd {
48403
48403
  if (!(l != null && l.typeName))
48404
48404
  continue;
48405
48405
  const c = Q.get(l.typeName), u = new c();
48406
- u.isStateMachineBehaviour && (u._context = this.context ?? void 0, Zh(u, l.properties), l.instance = u), Zo && console.log("Created animator controller behaviour", a.name, l.typeName, l.properties, u);
48406
+ u.isStateMachineBehaviour && (u._context = this.context ?? void 0, $h(u, l.properties), l.instance = u), Zo && console.log("Created animator controller behaviour", a.name, l.typeName, l.properties, u);
48407
48407
  }
48408
48408
  }
48409
48409
  }
@@ -49714,7 +49714,7 @@ var AY = Object.defineProperty, vY = Object.getOwnPropertyDescriptor, DF = (n, e
49714
49714
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
49715
49715
  return i && s && AY(e, t, s), s;
49716
49716
  };
49717
- class cu extends Se {
49717
+ class hu extends Se {
49718
49718
  constructor() {
49719
49719
  super(...arguments);
49720
49720
  h(this, "webAR", null);
@@ -49786,10 +49786,10 @@ class cu extends Se {
49786
49786
  }
49787
49787
  DF([
49788
49788
  w()
49789
- ], cu.prototype, "invertForward", 2);
49789
+ ], hu.prototype, "invertForward", 2);
49790
49790
  DF([
49791
49791
  w()
49792
- ], cu.prototype, "arScale", 1);
49792
+ ], hu.prototype, "arScale", 1);
49793
49793
  const yY = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/";
49794
49794
  class bY {
49795
49795
  constructor(e, t, i, s, r = null) {
@@ -49872,7 +49872,7 @@ class wY extends Ie {
49872
49872
  this.intersectBoxObject(e) ? e.onPress() : e.onClear(), e.isPressed() && e.whilePressed();
49873
49873
  }
49874
49874
  }
49875
- const CY = 0.05, zR = 0.02, Cv = 0.01, GR = 0.02, QR = 1, Xu = 0.4, SY = 2e-3, yp = 0.01, Sv = 3e-3, HR = 0.035, yi = 16, Nr = 12, rw = 110, EY = new S(0, 1, 0), IY = new S(0, 0, 1), MY = 0.02, TY = 1.5;
49875
+ const CY = 0.05, zR = 0.02, Cv = 0.01, GR = 0.02, QR = 1, Yu = 0.4, SY = 2e-3, yp = 0.01, Sv = 3e-3, HR = 0.035, yi = 16, Nr = 12, rw = 110, EY = new S(0, 1, 0), IY = new S(0, 0, 1), MY = 0.02, TY = 1.5;
49876
49876
  class PY extends Ie {
49877
49877
  constructor(e, t) {
49878
49878
  super(), this.hand = e, this.controller = t, this.motionController = null, this.envMap = null, this.mesh = null, this.pointerGeometry = null, this.pointerMesh = null, this.pointerObject = null, this.pinched = !1, this.attached = !1, this.cursorObject = null, this.raycaster = null, e.addEventListener("connected", (i) => {
@@ -49959,9 +49959,9 @@ class PY extends Ie {
49959
49959
  yi * Nr
49960
49960
  );
49961
49961
  const a = new vi();
49962
- a.transparent = !0, a.opacity = Xu, this.pointerGeometry.setIndex(s), this.pointerMesh = new me(this.pointerGeometry, a), this.pointerMesh.position.set(0, 0, -1 * yp), this.pointerObject = new Ie(), this.pointerObject.add(this.pointerMesh), this.raycaster = new gf();
49962
+ a.transparent = !0, a.opacity = Yu, this.pointerGeometry.setIndex(s), this.pointerMesh = new me(this.pointerGeometry, a), this.pointerMesh.position.set(0, 0, -1 * yp), this.pointerObject = new Ie(), this.pointerObject.add(this.pointerMesh), this.raycaster = new gf();
49963
49963
  const l = new Rr(MY, 10, 10), c = new vi();
49964
- c.transparent = !0, c.opacity = Xu, this.cursorObject = new me(l, c), this.pointerObject.add(this.cursorObject), this.add(this.pointerObject), this.pointerObject.layers.mask = this.layers.mask, this.pointerMesh.layers.mask = this.layers.mask;
49964
+ c.transparent = !0, c.opacity = Yu, this.cursorObject = new me(l, c), this.pointerObject.add(this.cursorObject), this.add(this.pointerObject), this.pointerObject.layers.mask = this.layers.mask, this.pointerMesh.layers.mask = this.layers.mask;
49965
49965
  }
49966
49966
  _updateRaycaster() {
49967
49967
  if (this.raycaster) {
@@ -49975,14 +49975,14 @@ class PY extends Ie {
49975
49975
  this.pointerObject.position.copy(s), this.pointerObject.quaternion.copy(this.controller.quaternion), this.pinched = i <= zR;
49976
49976
  const r = (i - Cv) / (CY - Cv), o = (i - Cv) / (zR - Cv);
49977
49977
  if (r > 1)
49978
- this._updatePointerVertices(yp), this.pointerMesh.position.set(0, 0, -1 * yp), this.pointerMesh.material.opacity = Xu;
49978
+ this._updatePointerVertices(yp), this.pointerMesh.position.set(0, 0, -1 * yp), this.pointerMesh.material.opacity = Yu;
49979
49979
  else if (r > 0) {
49980
49980
  const a = (yp - Sv) * r + Sv;
49981
49981
  this._updatePointerVertices(a), o < 1 ? (this.pointerMesh.position.set(
49982
49982
  0,
49983
49983
  0,
49984
49984
  -1 * a - (1 - o) * GR
49985
- ), this.pointerMesh.material.opacity = Xu + (1 - o) * (QR - Xu)) : (this.pointerMesh.position.set(0, 0, -1 * a), this.pointerMesh.material.opacity = Xu);
49985
+ ), this.pointerMesh.material.opacity = Yu + (1 - o) * (QR - Yu)) : (this.pointerMesh.position.set(0, 0, -1 * a), this.pointerMesh.material.opacity = Yu);
49986
49986
  } else
49987
49987
  this._updatePointerVertices(Sv), this.pointerMesh.position.set(
49988
49988
  0,
@@ -50448,7 +50448,7 @@ class N1 {
50448
50448
  return e;
50449
50449
  }
50450
50450
  }
50451
- const ld = ae("debugflags");
50451
+ const cd = ae("debugflags");
50452
50452
  var Mn = /* @__PURE__ */ ((n) => (n[n.Never = 0] = "Never", n[n.Browser = 1] = "Browser", n[n.AR = 2] = "AR", n[n.VR = 4] = "VR", n[n.FirstPerson = 8] = "FirstPerson", n[n.ThirdPerson = 16] = "ThirdPerson", n[n.All = 4294967295] = "All", n))(Mn || {});
50453
50453
  const mM = class {
50454
50454
  constructor() {
@@ -50458,7 +50458,7 @@ const mM = class {
50458
50458
  return (this.Mask & e) !== 0;
50459
50459
  }
50460
50460
  Set(e) {
50461
- ld && console.warn("Set XR flag state to", e), this.Mask = e, vs.Apply();
50461
+ cd && console.warn("Set XR flag state to", e), this.Mask = e, vs.Apply();
50462
50462
  }
50463
50463
  Enable(e) {
50464
50464
  this.Mask |= e, vs.Apply();
@@ -50503,13 +50503,13 @@ const ra = class extends Se {
50503
50503
  UpdateVisible(t = null) {
50504
50504
  let i;
50505
50505
  const s = t;
50506
- s && typeof s == "number" && (console.assert(typeof s == "number", "XRFlag.UpdateVisible: state must be a number", s), ld && console.log(s), ra.buffer.Mask = s, t = ra.buffer);
50506
+ s && typeof s == "number" && (console.assert(typeof s == "number", "XRFlag.UpdateVisible: state must be a number", s), cd && console.log(s), ra.buffer.Mask = s, t = ra.buffer);
50507
50507
  const r = t;
50508
- if (r ? (ld && console.warn(this.name, "use passed in mask", r.Mask, this.visibleIn), i = r.Has(this.visibleIn)) : (ld && console.log(this.name, "use global mask"), Uo.Global.Has(this.visibleIn)), i !== void 0)
50508
+ if (r ? (cd && console.warn(this.name, "use passed in mask", r.Mask, this.visibleIn), i = r.Has(this.visibleIn)) : (cd && console.log(this.name, "use global mask"), Uo.Global.Has(this.visibleIn)), i !== void 0)
50509
50509
  if (i)
50510
- ld && console.log(this.name, "is visible", this.gameObject.uuid), $.setActive(this.gameObject, !0);
50510
+ cd && console.log(this.name, "is visible", this.gameObject.uuid), $.setActive(this.gameObject, !0);
50511
50511
  else {
50512
- if (ld && console.log(this.name, "is not visible", this.gameObject.uuid), !this.gameObject.visible)
50512
+ if (cd && console.log(this.name, "is not visible", this.gameObject.uuid), !this.gameObject.visible)
50513
50513
  return;
50514
50514
  this.gameObject.visible = !1;
50515
50515
  }
@@ -51207,7 +51207,7 @@ function LF(n, e, t = !0) {
51207
51207
  const a = al.endSyncedTransformModel($o);
51208
51208
  return $o.finish(a, Jg), $o.asUint8Array();
51209
51209
  }
51210
- class $h extends Se {
51210
+ class eu extends Se {
51211
51211
  constructor() {
51212
51212
  super(...arguments);
51213
51213
  // public autoOwnership: boolean = true;
@@ -51365,7 +51365,7 @@ zo.d(bn, {
51365
51365
  ),
51366
51366
  zV: () => (
51367
51367
  /* reexport */
51368
- eu
51368
+ tu
51369
51369
  ),
51370
51370
  HS: () => (
51371
51371
  /* reexport */
@@ -51373,7 +51373,7 @@ zo.d(bn, {
51373
51373
  ),
51374
51374
  Ec: () => (
51375
51375
  /* reexport */
51376
- hu
51376
+ uu
51377
51377
  ),
51378
51378
  gF: () => (
51379
51379
  /* reexport */
@@ -51628,7 +51628,7 @@ class YY extends ui {
51628
51628
  return this._value;
51629
51629
  }
51630
51630
  }
51631
- class hu extends ui {
51631
+ class uu extends ui {
51632
51632
  /**
51633
51633
  *
51634
51634
  * @param {string} propertyId
@@ -51666,7 +51666,7 @@ class hu extends ui {
51666
51666
  return this._value === "inherit" ? this._notInheritedValue : this._value;
51667
51667
  }
51668
51668
  }
51669
- class KY extends hu {
51669
+ class KY extends uu {
51670
51670
  constructor() {
51671
51671
  super("offset", "inherit", !1);
51672
51672
  }
@@ -51675,7 +51675,7 @@ class KY extends hu {
51675
51675
  super.update(e, t), e._parent._value !== null && (e.position.z = this._notInheritedValue);
51676
51676
  }
51677
51677
  }
51678
- class JY extends hu {
51678
+ class JY extends uu {
51679
51679
  constructor() {
51680
51680
  super("fontSmooth", "inherit", !0), this._needsUpdate = !1, this.isValid = $Y, this.output = this._outputValue;
51681
51681
  }
@@ -52019,7 +52019,7 @@ class jR extends ui {
52019
52019
  return this._value;
52020
52020
  }
52021
52021
  }
52022
- class qR extends hu {
52022
+ class qR extends uu {
52023
52023
  /**
52024
52024
  *
52025
52025
  * @param {string} propertyId
@@ -54000,7 +54000,7 @@ class uJ extends qm {
54000
54000
  * @returns {string|null}
54001
54001
  */
54002
54002
  _getFallbackCharacter(e) {
54003
- return eu.missingCharacter(this, e);
54003
+ return tu.missingCharacter(this, e);
54004
54004
  }
54005
54005
  /**
54006
54006
  *
@@ -54190,7 +54190,7 @@ const _J = {
54190
54190
  prepare: mJ,
54191
54191
  setMissingCharacterHandler: yJ,
54192
54192
  missingCharacter: bJ
54193
- }, eu = _J;
54193
+ }, tu = _J;
54194
54194
  class ZF extends Oi {
54195
54195
  constructor() {
54196
54196
  super("fontFamily", "inherit", !0);
@@ -54205,7 +54205,7 @@ class ZF extends Oi {
54205
54205
  this._value = this._input;
54206
54206
  else if (this._input !== "inherit")
54207
54207
  if (typeof this._input == "string") {
54208
- const t = eu.getFontFamily(this._input);
54208
+ const t = tu.getFontFamily(this._input);
54209
54209
  t ? this._value = t : console.warn(`(.style) fontFamily, the font '${this._input}' is not registered. Aborted.`);
54210
54210
  } else
54211
54211
  console.warn("(.style) fontFamily requires a registered fontFamily instance, or the id of a registered fontFamily."), console.warn("If you want to set a specific font, please use .font property instead.");
@@ -54259,7 +54259,7 @@ class i3 extends ui {
54259
54259
  super("segments", 1, !1);
54260
54260
  }
54261
54261
  }
54262
- class SJ extends hu {
54262
+ class SJ extends uu {
54263
54263
  constructor() {
54264
54264
  super("invertAlpha", "inherit");
54265
54265
  }
@@ -54273,7 +54273,7 @@ const EJ = ["normal", "none", "inherit"];
54273
54273
  function IJ(n) {
54274
54274
  return EJ.indexOf(n) === -1 ? (console.warn(`(.style) fontKerning value '${n}' is not valid. Aborted`), !1) : !0;
54275
54275
  }
54276
- class Mv extends hu {
54276
+ class Mv extends uu {
54277
54277
  /**
54278
54278
  *
54279
54279
  * @param {string} propertyId
@@ -54282,7 +54282,7 @@ class Mv extends hu {
54282
54282
  super(e, "inherit", !0);
54283
54283
  }
54284
54284
  }
54285
- class XR extends hu {
54285
+ class XR extends uu {
54286
54286
  /**
54287
54287
  *
54288
54288
  * @param {string} propertyId
@@ -54463,7 +54463,7 @@ var o3 = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, no = /(?:\s|\/\/.*|\/\
54463
54463
  }, YR = Array.isArray || function(n) {
54464
54464
  return LJ.call(n) === "[object Array]";
54465
54465
  };
54466
- function Nh(n) {
54466
+ function zh(n) {
54467
54467
  return new RegExp("^(?:" + n.replace(/ /g, "|") + ")$");
54468
54468
  }
54469
54469
  function Nc(n) {
@@ -54606,11 +54606,11 @@ function sI(n, e) {
54606
54606
  return Bf | (n ? tI : 0) | (e ? c3 : 0);
54607
54607
  }
54608
54608
  var _0 = 0, rI = 1, xl = 2, f3 = 3, p3 = 4, g3 = 5, Xn = function(e, t, i) {
54609
- this.options = e = UJ(e), this.sourceFile = e.sourceFile, this.keywords = Nh(PJ[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
54609
+ this.options = e = UJ(e), this.sourceFile = e.sourceFile, this.keywords = zh(PJ[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
54610
54610
  var s = "";
54611
- e.allowReserved !== !0 && (s = aw[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (s += " await")), this.reservedWords = Nh(s);
54611
+ e.allowReserved !== !0 && (s = aw[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (s += " await")), this.reservedWords = zh(s);
54612
54612
  var r = (s ? s + " " : "") + aw.strict;
54613
- this.reservedWordsStrict = Nh(r), this.reservedWordsStrictBind = Nh(r + " " + aw.strictBind), this.input = String(t), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
54613
+ this.reservedWordsStrict = zh(r), this.reservedWordsStrictBind = zh(r + " " + aw.strictBind), this.input = String(t), this.containsEsc = !1, i ? (this.pos = i, this.lineStart = this.input.lastIndexOf(`
54614
54614
  `, i - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(go).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = B.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = e.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(em), this.regexpState = null, this.privateNameStack = [];
54615
54615
  }, Ra = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
54616
54616
  Xn.prototype.parse = function() {
@@ -55946,10 +55946,10 @@ var y3 = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control
55946
55946
  }, I3 = {};
55947
55947
  function KJ(n) {
55948
55948
  var e = I3[n] = {
55949
- binary: Nh(qJ[n] + " " + JR),
55949
+ binary: zh(qJ[n] + " " + JR),
55950
55950
  nonBinary: {
55951
- General_Category: Nh(JR),
55952
- Script: Nh(YJ[n])
55951
+ General_Category: zh(JR),
55952
+ Script: zh(YJ[n])
55953
55953
  }
55954
55954
  };
55955
55955
  e.nonBinary.Script_Extensions = e.nonBinary.Script, e.nonBinary.gc = e.nonBinary.General_Category, e.nonBinary.sc = e.nonBinary.Script, e.nonBinary.scx = e.nonBinary.Script_Extensions;
@@ -57206,10 +57206,10 @@ class Jm extends Je.Object3D {
57206
57206
  set(t) {
57207
57207
  if (t.fontTexture && (console.warn("ThreeMeshUI::set( {fontTexture} ) is deprecated. Please use fontLibrary to register font families and variants."), t.fontFamily)) {
57208
57208
  const i = t.fontFamily.pages ? t.fontFamily.info.face : t.fontFamily;
57209
- let s = eu.getFontFamily(i);
57209
+ let s = tu.getFontFamily(i);
57210
57210
  if (!s) {
57211
57211
  const r = t.fontStyle ? t.fontStyle : "normal", o = t.fontWeight ? t.fontWeight : "400";
57212
- s = eu.addFontFamily(i).addVariant(o, r, t.fontFamily, t.fontTexture);
57212
+ s = tu.addFontFamily(i).addVariant(o, r, t.fontFamily, t.fontTexture);
57213
57213
  }
57214
57214
  t.fontFamily = s, delete t.fontTexture;
57215
57215
  }
@@ -59138,7 +59138,7 @@ class W3 extends ZF {
59138
59138
  if (t === "inherit" && (t = this.getInheritedInput(e)), t instanceof Qb)
59139
59139
  this._value = t, e._font._needsUpdate = !0;
59140
59140
  else if (typeof t == "string") {
59141
- const i = eu.getFontFamily(t);
59141
+ const i = tu.getFontFamily(t);
59142
59142
  i ? (this._value = i, e._font._needsUpdate = !0) : console.warn(`(.style) fontFamily, the font '${t}' is not registered. Aborted.`);
59143
59143
  } else
59144
59144
  console.warn("(.style) fontFamily requires a registered fontFamily instance, or the id of a registered fontFamily."), console.warn("If you want to set a specific font, please use .font property instead.");
@@ -60117,7 +60117,7 @@ const tU = () => C0.update(), iU = {
60117
60117
  InlineBlock: sm,
60118
60118
  // Keyboard : KeyboardElement,
60119
60119
  MeshUIBaseElement: Jm,
60120
- FontLibrary: eu,
60120
+ FontLibrary: tu,
60121
60121
  update: tU,
60122
60122
  MSDFFontMaterialUtils: $r,
60123
60123
  ShaderChunkUI: L3,
@@ -60335,7 +60335,7 @@ const Qn = class extends Se {
60335
60335
  const a = t.context;
60336
60336
  o.controller = a.renderer.xr.getController(i), o.controllerGrip = a.renderer.xr.getControllerGrip(i), o.controllerModel = this.Factory.createControllerModel(o.controller), o.controllerGrip.add(o.controllerModel), o.hand = a.renderer.xr.getHand(i);
60337
60337
  const l = new _f();
60338
- Fm(l, a), o.webXR.handModelPath && o.webXR.handModelPath !== "" ? l.setPath(iu(t.sourceId, o.webXR.handModelPath)) : l.setPath("https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/");
60338
+ Fm(l, a), o.webXR.handModelPath && o.webXR.handModelPath !== "" ? l.setPath(nu(t.sourceId, o.webXR.handModelPath)) : l.setPath("https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/");
60339
60339
  const c = new wY(o.hand, l);
60340
60340
  return o.hand.add(c), o.hand.traverse((u) => u.layers.set(2)), o.handPointerModel = new PY(o.hand, o.controller), o.controller.addEventListener("connected", (u) => {
60341
60341
  o.setControllerLayers(o.controllerModel, 2), o.setControllerLayers(o.controllerGrip, 2), o.setControllerLayers(o.hand, 2), setTimeout(() => {
@@ -60718,7 +60718,7 @@ const Rs = class {
60718
60718
  else
60719
60719
  return Np && console.warn("Prevented taking object that is not interactable", t), null;
60720
60720
  let o = t;
60721
- const a = $.getComponentInParent(t, $h);
60721
+ const a = $.getComponentInParent(t, eu);
60722
60722
  a && (a.requestOwnership(), o = a.gameObject);
60723
60723
  for (const c of this.Current)
60724
60724
  if (c.selected === o)
@@ -61195,8 +61195,8 @@ async function nee() {
61195
61195
  let Ey = !1, Iy = !1;
61196
61196
  iee().then((n) => Ey = n);
61197
61197
  nee().then((n) => Iy = n);
61198
- var Mi = /* @__PURE__ */ ((n) => (n.XRStarted = "xrStarted", n.XRStopped = "xrStopped", n.XRUpdate = "xrUpdate", n.RequestVRSession = "requestVRSession", n.ModifyAROptions = "modify-ar-options", n))(Mi || {}), id;
61199
- const En = (id = class extends Se {
61198
+ var Mi = /* @__PURE__ */ ((n) => (n.XRStarted = "xrStarted", n.XRStopped = "xrStopped", n.XRUpdate = "xrUpdate", n.RequestVRSession = "requestVRSession", n.ModifyAROptions = "modify-ar-options", n))(Mi || {}), nd;
61199
+ const En = (nd = class extends Se {
61200
61200
  constructor() {
61201
61201
  super(...arguments);
61202
61202
  h(this, "enableVR", !0);
@@ -61437,7 +61437,7 @@ const En = (id = class extends Se {
61437
61437
  });
61438
61438
  }, 1e3);
61439
61439
  }
61440
- }, h(id, "_isInXr", !1), h(id, "events", new Ln()), h(id, "_optionalFeatures_VR", ["local-floor", "bounded-floor", "hand-tracking", "high-fixed-foveation-level", "layers"]), h(id, "_optionalFeatures_AR", ["anchors", "local-floor", "hand-tracking", "layers"]), id);
61440
+ }, h(nd, "_isInXr", !1), h(nd, "events", new Ln()), h(nd, "_optionalFeatures_VR", ["local-floor", "bounded-floor", "hand-tracking", "high-fixed-foveation-level", "layers"]), h(nd, "_optionalFeatures_AR", ["anchors", "local-floor", "hand-tracking", "layers"]), nd);
61441
61441
  let St = En;
61442
61442
  Of([
61443
61443
  w()
@@ -61496,7 +61496,7 @@ const Md = class {
61496
61496
  const i = (o = navigator.userAgent) != null && o.includes("OculusBrowser") ? fg.PhysicalDevice : fg.Touch, s = i === fg.Touch ? 4 : 2;
61497
61497
  for (let u = 0; u < s; u++)
61498
61498
  sn.Create(this.webxr, u, this.webxr.gameObject, i);
61499
- (!this.sessionRoot || this.sessionRoot.destroyed || !this.sessionRoot.activeAndEnabled) && (this.sessionRoot = $.findObjectOfType(cu, t)), this.previousBackground = t.scene.background, this.previousEnvironment = t.scene.environment, t.scene.background = null, e.requestReferenceSpace("viewer").then((u) => {
61499
+ (!this.sessionRoot || this.sessionRoot.destroyed || !this.sessionRoot.activeAndEnabled) && (this.sessionRoot = $.findObjectOfType(hu, t)), this.previousBackground = t.scene.background, this.previousEnvironment = t.scene.environment, t.scene.background = null, e.requestReferenceSpace("viewer").then((u) => {
61500
61500
  var d, f;
61501
61501
  (f = (d = e.requestHitTestSource) == null ? void 0 : d.call(e, { space: u })) == null || f.then((p) => {
61502
61502
  this.hitTestSource = p;
@@ -62030,7 +62030,7 @@ class Jc extends Se {
62030
62030
  const s = this.targetElement ?? this.context.domElement, r = i == null ? void 0 : i.quaternion.clone();
62031
62031
  this._controls = new uY(i, s), i == null || i.quaternion.copy(r), pw === void 0 && (pw = { ...this._controls.keys });
62032
62032
  }
62033
- this._controls && (Pv && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, rf() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (i == null ? void 0 : i.type) === "PerspectiveCamera" ? Pv || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Pv || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = $.getComponent(this.gameObject, $h) ?? void 0;
62033
+ this._controls && (Pv && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, rf() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (i == null ? void 0 : i.type) === "PerspectiveCamera" ? Pv || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Pv || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = $.getComponent(this.gameObject, eu) ?? void 0;
62034
62034
  }
62035
62035
  onDisable() {
62036
62036
  var t;
@@ -62285,7 +62285,7 @@ const Qp = (Jv = class extends Se {
62285
62285
  t = new ei(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), this.fieldOfView && (t.fov = this.fieldOfView), this.gameObject.add(t);
62286
62286
  else {
62287
62287
  const i = this.orthographicSize * 100;
62288
- t = new su(window.innerWidth / -i, window.innerWidth / i, window.innerHeight / i, window.innerHeight / -i, this._nearClipPlane, this._farClipPlane), this.gameObject.add(t);
62288
+ t = new ru(window.innerWidth / -i, window.innerWidth / i, window.innerHeight / i, window.innerHeight / -i, this._nearClipPlane, this._farClipPlane), this.gameObject.add(t);
62289
62289
  }
62290
62290
  this._cam = t, this._cam.layers.mask = this._cullingMask, this.tag == "MainCamera" && this.context.setCurrentCamera(this);
62291
62291
  }
@@ -62372,7 +62372,7 @@ mo([
62372
62372
  w(Ei)
62373
62373
  ], Qi.prototype, "backgroundColor", 1);
62374
62374
  mo([
62375
- w(jh)
62375
+ w(qh)
62376
62376
  ], Qi.prototype, "targetTexture", 1);
62377
62377
  class fee {
62378
62378
  constructor(e) {
@@ -62846,7 +62846,7 @@ const xp = ae("debugtimeline"), z0 = class extends Se {
62846
62846
  };
62847
62847
  let Rc = z0;
62848
62848
  h(Rc, "createTrackFunctions", {});
62849
- const qh = ae("debugtimeline");
62849
+ const Xh = ae("debugtimeline");
62850
62850
  class Jb {
62851
62851
  constructor() {
62852
62852
  h(this, "director");
@@ -62907,12 +62907,12 @@ class Aee {
62907
62907
  const t = e.getClip();
62908
62908
  this.clip = t;
62909
62909
  const i = e.getRoot(), s = i.name + ".position", r = i.name + ".quaternion";
62910
- qh && console.log(t.name, t.tracks, s);
62910
+ Xh && console.log(t.name, t.tracks, s);
62911
62911
  for (const o of t.tracks)
62912
62912
  if (!(o.times.length <= 0)) {
62913
62913
  if (o.name.endsWith(s))
62914
- this.rootStartPosition = new S().fromArray(o.values, 0), this.rootEndPosition = new S().fromArray(o.values, o.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition), qh && console.log(this.rootPositionOffset);
62915
- else if (o.name.endsWith(r) && (this.rootStartQuaternion = new xe().fromArray(o.values, 0), this.rootEndQuaternion = new xe().fromArray(o.values, o.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), qh)) {
62914
+ this.rootStartPosition = new S().fromArray(o.values, 0), this.rootEndPosition = new S().fromArray(o.values, o.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition), Xh && console.log(this.rootPositionOffset);
62915
+ else if (o.name.endsWith(r) && (this.rootStartQuaternion = new xe().fromArray(o.values, 0), this.rootEndQuaternion = new xe().fromArray(o.values, o.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), Xh)) {
62916
62916
  const a = new vn().setFromQuaternion(this.rootQuaternionOffset);
62917
62917
  console.log("ROT", a);
62918
62918
  }
@@ -62966,13 +62966,13 @@ class _I extends Jb {
62966
62966
  if (l) {
62967
62967
  if (!c) {
62968
62968
  const _ = i.tracks[0].name.substring(0, g) + ".quaternion";
62969
- qh && console.warn("Create quaternion track", A, v);
62969
+ Xh && console.warn("Create quaternion track", A, v);
62970
62970
  const y = v.quaternion, b = new Ma(_, [0, i.duration], [y.x, y.y, y.z, y.w, y.x, y.y, y.z, y.w]);
62971
62971
  i.tracks.push(b), this.createRotationInterpolant(i, t, b);
62972
62972
  }
62973
62973
  } else {
62974
62974
  const _ = m + ".position";
62975
- qh && console.warn("Create position track", A, v);
62975
+ Xh && console.warn("Create position track", A, v);
62976
62976
  const y = v.position, b = new Fc(_, [0, i.duration], [y.x, y.y, y.z, y.x, y.y, y.z]);
62977
62977
  i.tracks.push(b), this.createPositionInterpolant(i, t, b);
62978
62978
  }
@@ -62980,7 +62980,7 @@ class _I extends Jb {
62980
62980
  }
62981
62981
  bind() {
62982
62982
  if (!this._didBind) {
62983
- this._didBind = !0, qh && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
62983
+ this._didBind = !0, Xh && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
62984
62984
  for (const t of this.actions) {
62985
62985
  const i = new Aee(t);
62986
62986
  this._actionOffsets.push(i);
@@ -63090,7 +63090,7 @@ const vee = ae("mutetimeline"), Td = class extends Jb {
63090
63090
  }
63091
63091
  getAudioFilePath(t) {
63092
63092
  const i = this.director.sourceId;
63093
- return iu(i, t);
63093
+ return nu(i, t);
63094
63094
  }
63095
63095
  onAllowAudioChanged(t) {
63096
63096
  for (let i = 0; i < this.models.length; i++) {
@@ -63182,7 +63182,7 @@ const vee = ae("mutetimeline"), Td = class extends Jb {
63182
63182
  a && i.setBuffer(a);
63183
63183
  }), o;
63184
63184
  }
63185
- qh && console.warn("LOAD audio track", s, this.director.sourceId);
63185
+ Xh && console.warn("LOAD audio track", s, this.director.sourceId);
63186
63186
  const r = new Promise((o, a) => {
63187
63187
  this._audioLoader.load(
63188
63188
  s,
@@ -63339,7 +63339,7 @@ var _ee = Object.defineProperty, xee = Object.getOwnPropertyDescriptor, wee = (n
63339
63339
  return i && s && _ee(e, t, s), s;
63340
63340
  };
63341
63341
  const Cee = ae("debugpost");
63342
- class Vs extends au {
63342
+ class Vs extends lu {
63343
63343
  constructor(t = void 0) {
63344
63344
  super();
63345
63345
  h(this, "active", !0);
@@ -63457,7 +63457,7 @@ class $b extends Vs {
63457
63457
  }
63458
63458
  onCreateEffect() {
63459
63459
  const t = new Qj({
63460
- preset: sd.HIGH,
63460
+ preset: rd.HIGH,
63461
63461
  edgeDetectionMode: l1.DEPTH
63462
63462
  });
63463
63463
  return this.preset.onValueChanged = (i) => {
@@ -63956,7 +63956,7 @@ class s_ extends zl {
63956
63956
  Yo([
63957
63957
  w()
63958
63958
  ], s_.prototype, "convex", 2);
63959
- class tu extends zl {
63959
+ class iu extends zl {
63960
63960
  constructor() {
63961
63961
  super(...arguments);
63962
63962
  h(this, "center", new S(0, 0, 0));
@@ -63970,13 +63970,13 @@ class tu extends zl {
63970
63970
  }
63971
63971
  Yo([
63972
63972
  w(S)
63973
- ], tu.prototype, "center", 2);
63973
+ ], iu.prototype, "center", 2);
63974
63974
  Yo([
63975
63975
  w()
63976
- ], tu.prototype, "radius", 2);
63976
+ ], iu.prototype, "radius", 2);
63977
63977
  Yo([
63978
63978
  w()
63979
- ], tu.prototype, "height", 2);
63979
+ ], iu.prototype, "height", 2);
63980
63980
  function MI(n) {
63981
63981
  const e = n[ll];
63982
63982
  return e || (n.parent ? MI(n.parent) : null);
@@ -63992,7 +63992,7 @@ function M0(n, e) {
63992
63992
  for (const i of n.children)
63993
63993
  M0(i, e);
63994
63994
  }
63995
- function cd(n, e, t) {
63995
+ function hd(n, e, t) {
63996
63996
  n[e] === void 0 && console.warn("Field", e, "is undefined on", n);
63997
63997
  const i = Proxy.revocable(n[e], {
63998
63998
  // get(target, prop, receiver) {
@@ -64022,7 +64022,7 @@ function jee(n, e, t = uo.OnBeforeRender) {
64022
64022
  const l = n.startCoroutine(a(), t);
64023
64023
  r[s] = l;
64024
64024
  }
64025
- var qee = Object.defineProperty, Xee = Object.getOwnPropertyDescriptor, uu = (n, e, t, i) => {
64025
+ var qee = Object.defineProperty, Xee = Object.getOwnPropertyDescriptor, du = (n, e, t, i) => {
64026
64026
  for (var s = i > 1 ? void 0 : i ? Xee(e, t) : e, r = n.length - 1, o; r >= 0; r--)
64027
64027
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
64028
64028
  return i && s && qee(e, t, s), s;
@@ -64106,15 +64106,15 @@ const So = new S(), wp = new Pe(), Rv = new xe(), gU = class extends Ea {
64106
64106
  return this.sizeDelta.y;
64107
64107
  }
64108
64108
  awake() {
64109
- super.awake(), this._anchoredPosition || (this._anchoredPosition = new V()), this.lastMatrix = new Pe(), this.rectBlock = new Ie(), this.rectBlock.name = this.name, this._initialPosition = this.gameObject.position.clone(), this._initialPosition.z = 0, this.onApplyTransform("RectTransform awake"), cd(this, "_anchoredPosition", () => {
64109
+ super.awake(), this._anchoredPosition || (this._anchoredPosition = new V()), this.lastMatrix = new Pe(), this.rectBlock = new Ie(), this.rectBlock.name = this.name, this._initialPosition = this.gameObject.position.clone(), this._initialPosition.z = 0, this.onApplyTransform("RectTransform awake"), hd(this, "_anchoredPosition", () => {
64110
64110
  this.markDirty();
64111
- }), cd(this, "sizeDelta", () => {
64111
+ }), hd(this, "sizeDelta", () => {
64112
64112
  this.markDirty();
64113
- }), cd(this, "pivot", () => {
64113
+ }), hd(this, "pivot", () => {
64114
64114
  this.markDirty();
64115
- }), cd(this, "anchorMin", () => {
64115
+ }), hd(this, "anchorMin", () => {
64116
64116
  this.markDirty();
64117
- }), cd(this, "anchorMax", () => {
64117
+ }), hd(this, "anchorMax", () => {
64118
64118
  this.markDirty();
64119
64119
  });
64120
64120
  }
@@ -64225,25 +64225,25 @@ const So = new S(), wp = new Pe(), Rv = new xe(), gU = class extends Ea {
64225
64225
  }
64226
64226
  };
64227
64227
  let Gs = gU;
64228
- uu([
64228
+ du([
64229
64229
  w(V)
64230
64230
  ], Gs.prototype, "anchoredPosition", 1);
64231
- uu([
64231
+ du([
64232
64232
  w(V)
64233
64233
  ], Gs.prototype, "sizeDelta", 2);
64234
- uu([
64234
+ du([
64235
64235
  w(V)
64236
64236
  ], Gs.prototype, "pivot", 2);
64237
- uu([
64237
+ du([
64238
64238
  w(V)
64239
64239
  ], Gs.prototype, "anchorMin", 2);
64240
- uu([
64240
+ du([
64241
64241
  w(V)
64242
64242
  ], Gs.prototype, "anchorMax", 2);
64243
- uu([
64243
+ du([
64244
64244
  w(V)
64245
64245
  ], Gs.prototype, "offsetMin", 2);
64246
- uu([
64246
+ du([
64247
64247
  w(V)
64248
64248
  ], Gs.prototype, "offsetMax", 2);
64249
64249
  class Yee extends nU {
@@ -64385,7 +64385,7 @@ const Ty = (Vw = class extends Ea {
64385
64385
  this.makePanel(), this.uiObject && this.uiObject.set(e);
64386
64386
  }
64387
64387
  awake() {
64388
- super.awake(), this.makePanel(), cd(this, "_color", () => jee(this, this.onColorChanged));
64388
+ super.awake(), this.makePanel(), hd(this, "_color", () => jee(this, this.onColorChanged));
64389
64389
  }
64390
64390
  onEnable() {
64391
64391
  var e;
@@ -64534,8 +64534,8 @@ var ite = Object.defineProperty, nte = Object.getOwnPropertyDescriptor, Br = (n,
64534
64534
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
64535
64535
  return i && s && ite(e, t, s), s;
64536
64536
  };
64537
- const Yu = ae("debugbutton");
64538
- class du {
64537
+ const Ku = ae("debugbutton");
64538
+ class fu {
64539
64539
  constructor() {
64540
64540
  h(this, "colorMultiplier");
64541
64541
  h(this, "disabledColor");
@@ -64548,25 +64548,25 @@ class du {
64548
64548
  }
64549
64549
  Br([
64550
64550
  w()
64551
- ], du.prototype, "colorMultiplier", 2);
64551
+ ], fu.prototype, "colorMultiplier", 2);
64552
64552
  Br([
64553
64553
  w(Ei)
64554
- ], du.prototype, "disabledColor", 2);
64554
+ ], fu.prototype, "disabledColor", 2);
64555
64555
  Br([
64556
64556
  w()
64557
- ], du.prototype, "fadeDuration", 2);
64557
+ ], fu.prototype, "fadeDuration", 2);
64558
64558
  Br([
64559
64559
  w(Ei)
64560
- ], du.prototype, "highlightedColor", 2);
64560
+ ], fu.prototype, "highlightedColor", 2);
64561
64561
  Br([
64562
64562
  w(Ei)
64563
- ], du.prototype, "normalColor", 2);
64563
+ ], fu.prototype, "normalColor", 2);
64564
64564
  Br([
64565
64565
  w(Ei)
64566
- ], du.prototype, "pressedColor", 2);
64566
+ ], fu.prototype, "pressedColor", 2);
64567
64567
  Br([
64568
64568
  w(Ei)
64569
- ], du.prototype, "selectedColor", 2);
64569
+ ], fu.prototype, "selectedColor", 2);
64570
64570
  class Zc extends Se {
64571
64571
  constructor() {
64572
64572
  super(...arguments);
@@ -64583,23 +64583,23 @@ class Zc extends Se {
64583
64583
  }
64584
64584
  onPointerEnter(t) {
64585
64585
  var i, s;
64586
- Yu && console.log("Button Enter", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator), this._isHovered = !0, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.highlightedTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState("hovered")), this.context.input.setCursorPointer());
64586
+ Ku && console.log("Button Enter", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator), this._isHovered = !0, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.highlightedTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState("hovered")), this.context.input.setCursorPointer());
64587
64587
  }
64588
64588
  onPointerExit() {
64589
64589
  var t, i;
64590
- Yu && console.log("Button Exit", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator), this._isHovered = !1, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((i = this._image) == null || i.setState("normal")), this.context.input.setCursorNormal());
64590
+ Ku && console.log("Button Exit", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator), this._isHovered = !1, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((i = this._image) == null || i.setState("normal")), this.context.input.setCursorNormal());
64591
64591
  }
64592
64592
  onPointerDown(t) {
64593
64593
  var i, s;
64594
- Yu && console.log("Button Down", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.pressedTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState("pressed")));
64594
+ Ku && console.log("Button Down", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.pressedTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState("pressed")));
64595
64595
  }
64596
64596
  onPointerUp(t) {
64597
64597
  var i, s;
64598
- Yu && console.warn("Button Up", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState(this._isHovered ? "hovered" : "normal")));
64598
+ Ku && console.warn("Button Up", (i = this.animationTriggers) == null ? void 0 : i.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((s = this._image) == null || s.setState(this._isHovered ? "hovered" : "normal")));
64599
64599
  }
64600
64600
  onPointerClick(t) {
64601
64601
  var i;
64602
- this.interactable && (Yu && (console.warn("Button Click", this.onClick), is("CLICKED button " + this.name + " at " + this.context.time.frameCount)), (i = this.onClick) == null || i.invoke());
64602
+ this.interactable && (Ku && (console.warn("Button Click", this.onClick), is("CLICKED button " + this.name + " at " + this.context.time.frameCount)), (i = this.onClick) == null || i.invoke());
64603
64603
  }
64604
64604
  set interactable(t) {
64605
64605
  this._interactable = t, this._image && (this._image.setInteractable(t), t ? this._image.setState("normal") : this._image.setState("disabled"));
@@ -64611,7 +64611,7 @@ class Zc extends Se {
64611
64611
  this.interactable = t;
64612
64612
  }
64613
64613
  awake() {
64614
- super.awake(), Yu && console.log(this), this._isInit = !1, this.init();
64614
+ super.awake(), Ku && console.log(this), this._isInit = !1, this.init();
64615
64615
  }
64616
64616
  start() {
64617
64617
  var t;
@@ -64700,7 +64700,7 @@ var ste = Object.defineProperty, rte = Object.getOwnPropertyDescriptor, _n = (n,
64700
64700
  return i && s && ste(e, t, s), s;
64701
64701
  };
64702
64702
  const lB = ae("debuguilayout");
64703
- class fu {
64703
+ class pu {
64704
64704
  constructor() {
64705
64705
  h(this, "left", 0);
64706
64706
  h(this, "right", 0);
@@ -64716,16 +64716,16 @@ class fu {
64716
64716
  }
64717
64717
  _n([
64718
64718
  w()
64719
- ], fu.prototype, "left", 2);
64719
+ ], pu.prototype, "left", 2);
64720
64720
  _n([
64721
64721
  w()
64722
- ], fu.prototype, "right", 2);
64722
+ ], pu.prototype, "right", 2);
64723
64723
  _n([
64724
64724
  w()
64725
- ], fu.prototype, "top", 2);
64725
+ ], pu.prototype, "top", 2);
64726
64726
  _n([
64727
64727
  w()
64728
- ], fu.prototype, "bottom", 2);
64728
+ ], pu.prototype, "bottom", 2);
64729
64729
  class Dr extends Se {
64730
64730
  constructor() {
64731
64731
  super(...arguments);
@@ -64787,7 +64787,7 @@ _n([
64787
64787
  w()
64788
64788
  ], Dr.prototype, "spacing", 2);
64789
64789
  _n([
64790
- w(fu)
64790
+ w(pu)
64791
64791
  ], Dr.prototype, "padding", 2);
64792
64792
  _n([
64793
64793
  w()
@@ -65215,14 +65215,14 @@ Li([
65215
65215
  w()
65216
65216
  ], Nf.prototype, "relativeMotion", 2);
65217
65217
  var Ww;
65218
- const hd = (Ww = class extends Se {
65218
+ const Ch = (Ww = class extends Se {
65219
65219
  constructor() {
65220
65220
  super(...arguments);
65221
65221
  h(this, "materialToSwitch");
65222
65222
  h(this, "variantMaterial");
65223
65223
  h(this, "_objectsWithThisMaterial", []);
65224
65224
  h(this, "selfModel");
65225
- h(this, "targetModels", []);
65225
+ h(this, "targetModels");
65226
65226
  }
65227
65227
  awake() {
65228
65228
  if (this.variantMaterial && this.materialToSwitch) {
@@ -65236,13 +65236,16 @@ const hd = (Ww = class extends Se {
65236
65236
  for (const e of this._objectsWithThisMaterial)
65237
65237
  e.sharedMaterial = this.variantMaterial;
65238
65238
  }
65239
+ beforeCreateDocument(e, t) {
65240
+ this.targetModels = [], Ch._materialTriggersPerId = {};
65241
+ }
65239
65242
  createBehaviours(e, t, i) {
65240
- this._objectsWithThisMaterial.find((r) => r.gameObject.uuid === t.uuid) && this.targetModels.push(t), this.gameObject.uuid === t.uuid && (this.selfModel = t, this.materialToSwitch && (hd._materialTriggersPerId[this.materialToSwitch.uuid] || (hd._materialTriggersPerId[this.materialToSwitch.uuid] = []), hd._materialTriggersPerId[this.materialToSwitch.uuid].push(this)));
65243
+ this._objectsWithThisMaterial.find((r) => r.gameObject.uuid === t.uuid) && this.targetModels.push(t), this.gameObject.uuid === t.uuid && (this.selfModel = t, this.materialToSwitch && (Ch._materialTriggersPerId[this.materialToSwitch.uuid] || (Ch._materialTriggersPerId[this.materialToSwitch.uuid] = []), Ch._materialTriggersPerId[this.materialToSwitch.uuid].push(this)));
65241
65244
  }
65242
65245
  afterCreateDocument(e, t) {
65243
65246
  if (!this.materialToSwitch)
65244
65247
  return;
65245
- const i = hd._materialTriggersPerId[this.materialToSwitch.uuid];
65248
+ const i = Ch._materialTriggersPerId[this.materialToSwitch.uuid];
65246
65249
  if (i) {
65247
65250
  const s = {};
65248
65251
  for (const o of i) {
@@ -65256,7 +65259,7 @@ const hd = (Ww = class extends Se {
65256
65259
  o.createAndAttachBehaviors(e, s[o.selfModel.uuid], r);
65257
65260
  }
65258
65261
  }
65259
- delete hd._materialTriggersPerId[this.materialToSwitch.uuid];
65262
+ delete Ch._materialTriggersPerId[this.materialToSwitch.uuid];
65260
65263
  }
65261
65264
  createAndAttachBehaviors(e, t, i) {
65262
65265
  const s = [], r = [];
@@ -65293,7 +65296,7 @@ const hd = (Ww = class extends Se {
65293
65296
  return e;
65294
65297
  }
65295
65298
  }, h(Ww, "_materialTriggersPerId", {}), Ww);
65296
- let a_ = hd;
65299
+ let a_ = Ch;
65297
65300
  Li([
65298
65301
  w(Bt)
65299
65302
  ], a_.prototype, "materialToSwitch", 2);
@@ -65513,22 +65516,22 @@ const ud = (jw = class extends Se {
65513
65516
  }
65514
65517
  }
65515
65518
  }, h(jw, "animationActions", []), jw);
65516
- let pu = ud;
65519
+ let gu = ud;
65517
65520
  Li([
65518
65521
  w(Ie)
65519
- ], pu.prototype, "target", 2);
65522
+ ], gu.prototype, "target", 2);
65520
65523
  Li([
65521
65524
  w(ar)
65522
- ], pu.prototype, "animator", 2);
65525
+ ], gu.prototype, "animator", 2);
65523
65526
  Li([
65524
65527
  w()
65525
- ], pu.prototype, "stateName", 2);
65528
+ ], gu.prototype, "stateName", 2);
65526
65529
  Li([
65527
65530
  w()
65528
- ], pu.prototype, "stateNameAfterPlaying", 2);
65531
+ ], gu.prototype, "stateNameAfterPlaying", 2);
65529
65532
  Li([
65530
65533
  w()
65531
- ], pu.prototype, "loopAfterPlaying", 2);
65534
+ ], gu.prototype, "loopAfterPlaying", 2);
65532
65535
  class cA extends Se {
65533
65536
  constructor() {
65534
65537
  super(...arguments);
@@ -65595,8 +65598,8 @@ class zf extends Se {
65595
65598
  return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(Ki), this._rigidbody || (this._rigidbody = this.gameObject.addNewComponent(Ki)), this.rigidbody);
65596
65599
  }
65597
65600
  onEnable() {
65598
- let t = this.rigidbody, i = this.gameObject.getComponent(tu);
65599
- i || (i = this.gameObject.addNewComponent(tu)), i.center.copy(this.center), i.radius = this.radius, i.height = this.height, this.gameObject.rotation.x = 0, this.gameObject.rotation.z = 0, t.lockRotationX = !0, t.lockRotationY = !0, t.lockRotationZ = !0;
65601
+ let t = this.rigidbody, i = this.gameObject.getComponent(iu);
65602
+ i || (i = this.gameObject.addNewComponent(iu)), i.center.copy(this.center), i.radius = this.radius, i.height = this.height, this.gameObject.rotation.x = 0, this.gameObject.rotation.z = 0, t.lockRotationX = !0, t.lockRotationY = !0, t.lockRotationZ = !0;
65600
65603
  }
65601
65604
  move(t) {
65602
65605
  this.gameObject.position.add(t);
@@ -65725,7 +65728,7 @@ var Ate = Object.defineProperty, vte = Object.getOwnPropertyDescriptor, u_ = (n,
65725
65728
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
65726
65729
  return i && s && Ate(e, t, s), s;
65727
65730
  };
65728
- class gu extends Vs {
65731
+ class mu extends Vs {
65729
65732
  constructor() {
65730
65733
  super(...arguments);
65731
65734
  h(this, "postExposure");
@@ -65773,17 +65776,17 @@ class gu extends Vs {
65773
65776
  }
65774
65777
  u_([
65775
65778
  w(It)
65776
- ], gu.prototype, "postExposure", 2);
65779
+ ], mu.prototype, "postExposure", 2);
65777
65780
  u_([
65778
65781
  w(It)
65779
- ], gu.prototype, "contrast", 2);
65782
+ ], mu.prototype, "contrast", 2);
65780
65783
  u_([
65781
65784
  w(It)
65782
- ], gu.prototype, "hueShift", 2);
65785
+ ], mu.prototype, "hueShift", 2);
65783
65786
  u_([
65784
65787
  w(It)
65785
- ], gu.prototype, "saturation", 2);
65786
- Xo("ColorAdjustments", gu);
65788
+ ], mu.prototype, "saturation", 2);
65789
+ Xo("ColorAdjustments", mu);
65787
65790
  const yte = (Math.sqrt(5) - 1) / 4, Kn = (5 - Math.sqrt(5)) / 20, Dv = (n) => Math.floor(n) | 0, kv = /* @__PURE__ */ new Float64Array([
65788
65791
  0,
65789
65792
  1,
@@ -65979,7 +65982,7 @@ var xte = Object.defineProperty, wte = Object.getOwnPropertyDescriptor, Y = (n,
65979
65982
  };
65980
65983
  const Ov = ae("debugparticles");
65981
65984
  var cl = /* @__PURE__ */ ((n) => (n[n.Billboard = 0] = "Billboard", n[n.Stretch = 1] = "Stretch", n[n.HorizontalBillboard = 2] = "HorizontalBillboard", n[n.VerticalBillboard = 3] = "VerticalBillboard", n[n.Mesh = 4] = "Mesh", n))(cl || {});
65982
- class mu {
65985
+ class Au {
65983
65986
  constructor() {
65984
65987
  h(this, "alphaKeys");
65985
65988
  h(this, "colorKeys");
@@ -66014,10 +66017,10 @@ class mu {
66014
66017
  }
66015
66018
  Y([
66016
66019
  w()
66017
- ], mu.prototype, "alphaKeys", 2);
66020
+ ], Au.prototype, "alphaKeys", 2);
66018
66021
  Y([
66019
66022
  w()
66020
- ], mu.prototype, "colorKeys", 2);
66023
+ ], Au.prototype, "colorKeys", 2);
66021
66024
  var d_ = /* @__PURE__ */ ((n) => (n[n.Local = 0] = "Local", n[n.World = 1] = "World", n[n.Custom = 2] = "Custom", n))(d_ || {}), CU = /* @__PURE__ */ ((n) => (n[n.Sphere = 0] = "Sphere", n[n.SphereShell = 1] = "SphereShell", n[n.Hemisphere = 2] = "Hemisphere", n[n.HemisphereShell = 3] = "HemisphereShell", n[n.Cone = 4] = "Cone", n[n.Box = 5] = "Box", n[n.Mesh = 6] = "Mesh", n[n.ConeShell = 7] = "ConeShell", n[n.ConeVolume = 8] = "ConeVolume", n[n.ConeVolumeShell = 9] = "ConeVolumeShell", n[n.Circle = 10] = "Circle", n[n.CircleEdge = 11] = "CircleEdge", n[n.SingleSidedEdge = 12] = "SingleSidedEdge", n[n.MeshRenderer = 13] = "MeshRenderer", n[n.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", n[n.BoxShell = 15] = "BoxShell", n[n.BoxEdge = 16] = "BoxEdge", n[n.Donut = 17] = "Donut", n[n.Rectangle = 18] = "Rectangle", n[n.Sprite = 19] = "Sprite", n[n.SpriteRenderer = 20] = "SpriteRenderer", n))(CU || {});
66022
66025
  class ct {
66023
66026
  constructor() {
@@ -66134,13 +66137,13 @@ Y([
66134
66137
  w(Ei)
66135
66138
  ], kr.prototype, "colorMax", 2);
66136
66139
  Y([
66137
- w(mu)
66140
+ w(Au)
66138
66141
  ], kr.prototype, "gradient", 2);
66139
66142
  Y([
66140
- w(mu)
66143
+ w(Au)
66141
66144
  ], kr.prototype, "gradientMin", 2);
66142
66145
  Y([
66143
- w(mu)
66146
+ w(Au)
66144
66147
  ], kr.prototype, "gradientMax", 2);
66145
66148
  class Cs {
66146
66149
  constructor() {
@@ -66323,7 +66326,7 @@ class f_ {
66323
66326
  Y([
66324
66327
  w(kr)
66325
66328
  ], f_.prototype, "color", 2);
66326
- class Au {
66329
+ class vu {
66327
66330
  constructor() {
66328
66331
  h(this, "enabled");
66329
66332
  h(this, "separateAxes");
@@ -66352,16 +66355,16 @@ class Au {
66352
66355
  }
66353
66356
  Y([
66354
66357
  w(ct)
66355
- ], Au.prototype, "size", 2);
66358
+ ], vu.prototype, "size", 2);
66356
66359
  Y([
66357
66360
  w(ct)
66358
- ], Au.prototype, "x", 2);
66361
+ ], vu.prototype, "x", 2);
66359
66362
  Y([
66360
66363
  w(ct)
66361
- ], Au.prototype, "y", 2);
66364
+ ], vu.prototype, "y", 2);
66362
66365
  Y([
66363
66366
  w(ct)
66364
- ], Au.prototype, "z", 2);
66367
+ ], vu.prototype, "z", 2);
66365
66368
  var $v;
66366
66369
  const Hp = ($v = class {
66367
66370
  constructor() {
@@ -67140,7 +67143,7 @@ Y([
67140
67143
  Y([
67141
67144
  w()
67142
67145
  ], Fn.prototype, "space", 2);
67143
- class vu {
67146
+ class yu {
67144
67147
  constructor() {
67145
67148
  h(this, "enabled");
67146
67149
  h(this, "curve");
@@ -67170,16 +67173,16 @@ class vu {
67170
67173
  }
67171
67174
  Y([
67172
67175
  w()
67173
- ], vu.prototype, "enabled", 2);
67176
+ ], yu.prototype, "enabled", 2);
67174
67177
  Y([
67175
67178
  w(ct)
67176
- ], vu.prototype, "curve", 2);
67179
+ ], yu.prototype, "curve", 2);
67177
67180
  Y([
67178
67181
  w()
67179
- ], vu.prototype, "curveMultiplier", 2);
67182
+ ], yu.prototype, "curveMultiplier", 2);
67180
67183
  Y([
67181
67184
  w()
67182
- ], vu.prototype, "mode", 2);
67185
+ ], yu.prototype, "mode", 2);
67183
67186
  class lr {
67184
67187
  constructor() {
67185
67188
  h(this, "enabled");
@@ -67618,7 +67621,7 @@ class vw {
67618
67621
  this.tag = e, this.previousValues = t;
67619
67622
  }
67620
67623
  }
67621
- class zh {
67624
+ class Gh {
67622
67625
  constructor(e) {
67623
67626
  h(this, "id");
67624
67627
  h(this, "content", "");
@@ -67655,14 +67658,14 @@ class zh {
67655
67658
  t.appendLine(`string[] font = [ ${i} ]`), t.appendLine(`double pointSize = ${this.pointSize}`), typeof this.width == "number" && t.appendLine(`double width = ${this.width}`), typeof this.height == "number" && t.appendLine(`double height = ${this.height}`), typeof this.depth == "number" && t.appendLine(`double depth = ${this.depth}`), this.wrapMode && t.appendLine(`token wrapMode = "${this.wrapMode}"`), this.horizontalAlignment && t.appendLine(`token horizontalAlignment = "${this.horizontalAlignment}"`), this.verticalAlignment && t.appendLine(`token verticalAlignment = "${this.verticalAlignment}"`), this.material !== void 0 && t.appendLine(`rel material:binding = </Materials/Material_${this.material.id}>`), t.closeBlock();
67656
67659
  }
67657
67660
  }
67658
- h(zh, "global_id", 0);
67661
+ h(Gh, "global_id", 0);
67659
67662
  class BI {
67660
67663
  static singleLine(e, t, i) {
67661
- const s = new zh("text_" + zh.getId());
67664
+ const s = new Gh("text_" + Gh.getId());
67662
67665
  return s.content = e, t && (s.pointSize = t), i && (s.depth = i), s;
67663
67666
  }
67664
67667
  static multiLine(e, t, i, s, r, o) {
67665
- const a = new zh("text_" + zh.getId());
67668
+ const a = new Gh("text_" + Gh.getId());
67666
67669
  return a.content = e, a.width = t, a.height = i, a.horizontalAlignment = s, a.verticalAlignment = r, o !== void 0 && (a.wrapMode = o), a;
67667
67670
  }
67668
67671
  }
@@ -67743,7 +67746,7 @@ var Pte = Object.defineProperty, Rte = Object.getOwnPropertyDescriptor, Or = (n,
67743
67746
  return i && s && Pte(e, t, s), s;
67744
67747
  };
67745
67748
  const Eo = ae("debugusdz");
67746
- class yu {
67749
+ class bu {
67747
67750
  constructor() {
67748
67751
  h(this, "callToAction");
67749
67752
  h(this, "checkoutTitle");
@@ -67753,16 +67756,16 @@ class yu {
67753
67756
  }
67754
67757
  Or([
67755
67758
  w()
67756
- ], yu.prototype, "callToAction", 2);
67759
+ ], bu.prototype, "callToAction", 2);
67757
67760
  Or([
67758
67761
  w()
67759
- ], yu.prototype, "checkoutTitle", 2);
67762
+ ], bu.prototype, "checkoutTitle", 2);
67760
67763
  Or([
67761
67764
  w()
67762
- ], yu.prototype, "checkoutSubtitle", 2);
67765
+ ], bu.prototype, "checkoutSubtitle", 2);
67763
67766
  Or([
67764
67767
  w()
67765
- ], yu.prototype, "callToActionURL", 2);
67768
+ ], bu.prototype, "callToActionURL", 2);
67766
67769
  class vo extends Se {
67767
67770
  constructor() {
67768
67771
  super(...arguments);
@@ -67801,7 +67804,7 @@ class vo extends Se {
67801
67804
  onEnable() {
67802
67805
  var s;
67803
67806
  const t = Gy(), i = mc();
67804
- (Eo || t && i) && ((Eo || this.allowCreateQuicklookButton) && this.addQuicklookButton(), this.webARSessionRoot = $.findObjectOfType(cu) ?? void 0, this.lastCallback = this.quicklookCallback.bind(this), this.link = Cte(this.context), this.link.addEventListener("message", this.lastCallback)), Eo && is("USDZ Exporter enabled: " + this.name), (s = document.getElementById("open-in-ar")) == null || s.addEventListener("click", this.onClickedOpenInARElement);
67807
+ (Eo || t && i) && ((Eo || this.allowCreateQuicklookButton) && this.addQuicklookButton(), this.webARSessionRoot = $.findObjectOfType(hu) ?? void 0, this.lastCallback = this.quicklookCallback.bind(this), this.link = Cte(this.context), this.link.addEventListener("message", this.lastCallback)), Eo && is("USDZ Exporter enabled: " + this.name), (s = document.getElementById("open-in-ar")) == null || s.addEventListener("click", this.onClickedOpenInARElement);
67805
67808
  }
67806
67809
  onDisable() {
67807
67810
  var s, r;
@@ -67908,7 +67911,7 @@ Or([
67908
67911
  w(URL)
67909
67912
  ], vo.prototype, "customUsdzFile", 2);
67910
67913
  Or([
67911
- w(yu)
67914
+ w(bu)
67912
67915
  ], vo.prototype, "customBranding", 2);
67913
67916
  Or([
67914
67917
  w()
@@ -67943,7 +67946,7 @@ class SU extends Se {
67943
67946
  }
67944
67947
  }
67945
67948
  }
67946
- var Bte = Object.defineProperty, Dte = Object.getOwnPropertyDescriptor, bu = (n, e, t, i) => {
67949
+ var Bte = Object.defineProperty, Dte = Object.getOwnPropertyDescriptor, _u = (n, e, t, i) => {
67947
67950
  for (var s = i > 1 ? void 0 : i ? Dte(e, t) : e, r = n.length - 1, o; r >= 0; r--)
67948
67951
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
67949
67952
  return i && s && Bte(e, t, s), s;
@@ -67994,25 +67997,25 @@ class Da extends Vs {
67994
67997
  unapply() {
67995
67998
  }
67996
67999
  }
67997
- bu([
68000
+ _u([
67998
68001
  w()
67999
68002
  ], Da.prototype, "mode", 2);
68000
- bu([
68003
+ _u([
68001
68004
  w(It)
68002
68005
  ], Da.prototype, "focusDistance", 2);
68003
- bu([
68006
+ _u([
68004
68007
  w(It)
68005
68008
  ], Da.prototype, "focalLength", 2);
68006
- bu([
68009
+ _u([
68007
68010
  w(It)
68008
68011
  ], Da.prototype, "aperture", 2);
68009
- bu([
68012
+ _u([
68010
68013
  w(It)
68011
68014
  ], Da.prototype, "gaussianMaxRadius", 2);
68012
- bu([
68015
+ _u([
68013
68016
  w(It)
68014
68017
  ], Da.prototype, "resolutionScale", 2);
68015
- bu([
68018
+ _u([
68016
68019
  w(It)
68017
68020
  ], Da.prototype, "bokehScale", 2);
68018
68021
  Xo("DepthOfField", Da);
@@ -68146,7 +68149,7 @@ const Za = class extends Wm {
68146
68149
  if (this._activePointerId = t.pointerId, !r.attached)
68147
68150
  return;
68148
68151
  r.attached, s = r.attached, this._isDragging = !0, this._dragHelper.setSelected(s, this.context), this.orbit && (this.orbit.enabled = !1);
68149
- const o = $.getComponentInChildren(s, $h);
68152
+ const o = $.getComponentInChildren(s, eu);
68150
68153
  o && (o.fastMode = !0, o == null || o.requestOwnership()), this._marker = $.addNewComponent(s, jm), this._draggingRigidbodies.length = 0;
68151
68154
  const a = $.getComponentsInChildren(s, Ki);
68152
68155
  a && this._draggingRigidbodies.push(...a);
@@ -68168,7 +68171,7 @@ const Za = class extends Wm {
68168
68171
  this._draggingRigidbodies.length = 0;
68169
68172
  const i = this._dragHelper.selected;
68170
68173
  if (this._dragHelper.setSelected(null, this.context), this.orbit && (this.orbit.enabled = !0), t != null && t.object) {
68171
- const r = $.getComponentInChildren(t.object, $h);
68174
+ const r = $.getComponentInChildren(t.object, eu);
68172
68175
  r && (r.fastMode = !1);
68173
68176
  }
68174
68177
  this._marker && this._marker.destroy();
@@ -68178,8 +68181,8 @@ const Za = class extends Wm {
68178
68181
  $.invokeOnChildren(i, s("onDragEnd"));
68179
68182
  }
68180
68183
  };
68181
- let Gh = Za;
68182
- h(Gh, "_active", 0), h(Gh, "lastHovered");
68184
+ let Qh = Za;
68185
+ h(Qh, "_active", 0), h(Qh, "lastHovered");
68183
68186
  const AM = class {
68184
68187
  constructor(e) {
68185
68188
  h(this, "_selected", null);
@@ -68574,7 +68577,7 @@ class Hf extends Wm {
68574
68577
  }
68575
68578
  this.object.visible = !1, this._startPosition = ((i = this.object.position) == null ? void 0 : i.clone()) ?? new S(0, 0, 0), this._startQuaternion = ((s = this.object.quaternion) == null ? void 0 : s.clone()) ?? new xe(0, 0, 0, 1);
68576
68579
  }
68577
- const t = $.getComponentInParent(this.gameObject, Gh);
68580
+ const t = $.getComponentInParent(this.gameObject, Qh);
68578
68581
  t ? t.addDragEventListener(IU.SelectStart, (r, o) => {
68579
68582
  if (this._currentCount >= this.limitCount) {
68580
68583
  o.attached = null;
@@ -68955,9 +68958,9 @@ HI([
68955
68958
  HI([
68956
68959
  w(ye)
68957
68960
  ], hA.prototype, "color", 1);
68958
- let yw, bw, Ku, Nv;
68961
+ let yw, bw, Ju, Nv;
68959
68962
  function _w(n, e, t) {
68960
- bw || (bw = new Yn(2, 2, 1, 1)), Ku || (Ku = new Ot({
68963
+ bw || (bw = new Yn(2, 2, 1, 1)), Ju || (Ju = new Ot({
68961
68964
  uniforms: { blitTexture: new _e(n) },
68962
68965
  vertexShader: `
68963
68966
  varying vec2 vUv;
@@ -68983,7 +68986,7 @@ function _w(n, e, t) {
68983
68986
  gl_FragColor = texture2D( blitTexture, vUv);
68984
68987
  #endif
68985
68988
  }`
68986
- })), Ku.uniforms.blitTexture.value = n, Ku.defines.IS_SRGB = n.encoding == yt, Ku.needsUpdate = !0, Nv || (Nv = new me(bw, Ku), Nv.frustrumCulled = !1);
68989
+ })), Ju.uniforms.blitTexture.value = n, Ju.defines.IS_SRGB = n.encoding == yt, Ju.needsUpdate = !0, Nv || (Nv = new me(bw, Ju), Nv.frustrumCulled = !1);
68987
68990
  const i = new ei(), s = new or();
68988
68991
  s.add(Nv), t || (yw || (yw = new lf({ antialias: !1 })), t = yw), t.setSize(Math.min(n.image.width, e), Math.min(n.image.height, e)), t.clear(), t.render(s, i);
68989
68992
  const r = new Gt(t.domElement);
@@ -69687,7 +69690,7 @@ class fie {
69687
69690
  let g = c.values.length / c.times.length;
69688
69691
  f === dB.morphTargetInfluences && (g /= d.morphTargetInfluences.length);
69689
69692
  let m;
69690
- c.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline === !0 ? (m = "CUBICSPLINE", g /= 3) : c.getInterpolation() === Yh ? m = "STEP" : m = "LINEAR", a.push({
69693
+ c.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline === !0 ? (m = "CUBICSPLINE", g /= 3) : c.getInterpolation() === Kh ? m = "STEP" : m = "LINEAR", a.push({
69691
69694
  input: this.processAccessor(new rt(c.times, p)),
69692
69695
  output: this.processAccessor(new rt(c.values, g)),
69693
69696
  interpolation: m
@@ -70553,7 +70556,7 @@ var Mie = Object.defineProperty, Tie = Object.getOwnPropertyDescriptor, ka = (n,
70553
70556
  function ww(n) {
70554
70557
  return n * Math.PI / 180;
70555
70558
  }
70556
- const AB = 300, Ju = ae("debuglights");
70559
+ const AB = 300, Zu = ae("debuglights");
70557
70560
  class Lr extends Se {
70558
70561
  constructor() {
70559
70562
  super(...arguments);
@@ -70674,16 +70677,16 @@ class Lr extends Se {
70674
70677
  // this.intensity = this._intensity;
70675
70678
  // }
70676
70679
  awake() {
70677
- this.color = new ye(this.color ?? 16777215), Ju && console.log(this.name, this);
70680
+ this.color = new ye(this.color ?? 16777215), Zu && console.log(this.name, this);
70678
70681
  }
70679
70682
  onEnable() {
70680
- Ju && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), uo.LateUpdate), this._webXRStartedListener = St.addEventListener(Mi.XRStarted, this.onWebXRStarted.bind(this)), this._webXREndedListener = St.addEventListener(Mi.XRStopped, this.onWebXREnded.bind(this)));
70683
+ Zu && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), uo.LateUpdate), this._webXRStartedListener = St.addEventListener(Mi.XRStarted, this.onWebXRStarted.bind(this)), this._webXREndedListener = St.addEventListener(Mi.XRStopped, this.onWebXREnded.bind(this)));
70681
70684
  }
70682
70685
  onDisable() {
70683
- Ju && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1), St.removeEventListener(Mi.XRStarted, this._webXRStartedListener), St.removeEventListener(Mi.XRStopped, this._webXREndedListener);
70686
+ Zu && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1), St.removeEventListener(Mi.XRStarted, this._webXRStartedListener), St.removeEventListener(Mi.XRStopped, this._webXREndedListener);
70684
70687
  }
70685
70688
  onWebXRStarted() {
70686
- this._webARRoot = $.getComponentInParent(this.gameObject, cu) ?? void 0;
70689
+ this._webARRoot = $.getComponentInParent(this.gameObject, hu) ?? void 0;
70687
70690
  }
70688
70691
  // private *_updateLightIntensityInARRoutine() {
70689
70692
  // while (this.context.isInAR) {
@@ -70706,7 +70709,7 @@ class Lr extends Se {
70706
70709
  switch (this.type) {
70707
70710
  case 1:
70708
70711
  const i = new db(this.color, this.intensity * Math.PI);
70709
- if (i.position.set(0, 0, -AB * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(i.target), Qg(i.target, 0, 0, 0), this.light = i, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), Ju) {
70712
+ if (i.position.set(0, 0, -AB * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(i.target), Qg(i.target, 0, 0, 0), this.light = i, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), Zu) {
70710
70713
  const a = new d2(this.light, 0.2, this.color);
70711
70714
  this.context.scene.add(a);
70712
70715
  }
@@ -70723,7 +70726,7 @@ class Lr extends Se {
70723
70726
  break;
70724
70727
  }
70725
70728
  if (this.light) {
70726
- this._intensity >= 0 ? this.light.intensity = this._intensity : this._intensity = this.light.intensity, this.shadows !== 0 ? this.light.castShadow = !0 : this.light.castShadow = !1, this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048), Ju && console.log("Override shadow bias?", this._overrideShadowBiasSettings, this.shadowBias, this.shadowNormalBias), this.light.shadow.bias = this.shadowBias, this.light.shadow.normalBias = this.shadowNormalBias, this.updateShadowSoftHard();
70729
+ this._intensity >= 0 ? this.light.intensity = this._intensity : this._intensity = this.light.intensity, this.shadows !== 0 ? this.light.castShadow = !0 : this.light.castShadow = !1, this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048), Zu && console.log("Override shadow bias?", this._overrideShadowBiasSettings, this.shadowBias, this.shadowNormalBias), this.light.shadow.bias = this.shadowBias, this.light.shadow.normalBias = this.shadowNormalBias, this.updateShadowSoftHard();
70727
70730
  const i = this.light.shadow.camera;
70728
70731
  if (i.near = this.shadowNearPlane, this._shadowDistance !== void 0 && typeof this._shadowDistance == "number" ? i.far = this._shadowDistance : i.far = AB * Math.abs(this.gameObject.scale.z), this.gameObject.scale.set(1, 1, 1), this.shadowWidth !== void 0)
70729
70732
  i.left = -this.shadowWidth / 2, i.right = this.shadowWidth / 2;
@@ -70737,7 +70740,7 @@ class Lr extends Se {
70737
70740
  const s = this.gameObject.scale.y;
70738
70741
  i.top *= s, i.bottom *= s;
70739
70742
  }
70740
- this.light.shadow.needsUpdate = !0, Ju && this.context.scene.add(new f2(i)), this.isBaked ? this.light.removeFromParent() : t || this.gameObject.add(this.light);
70743
+ this.light.shadow.needsUpdate = !0, Zu && this.context.scene.add(new f2(i)), this.isBaked ? this.light.removeFromParent() : t || this.gameObject.add(this.light);
70741
70744
  }
70742
70745
  }
70743
70746
  *updateMainLightRoutine() {
@@ -73469,7 +73472,7 @@ var _ne = /* @__PURE__ */ function(n) {
73469
73472
  fragmentShader: VB,
73470
73473
  transparent: this.settings.transparent,
73471
73474
  depthWrite: !this.settings.transparent,
73472
- blending: this.settings.blending || Xh,
73475
+ blending: this.settings.blending || Yh,
73473
73476
  side: c
73474
73477
  });
73475
73478
  } else if (this.settings.renderMode === vt.StretchedBillBoard)
@@ -73480,7 +73483,7 @@ var _ne = /* @__PURE__ */ function(n) {
73480
73483
  fragmentShader: VB,
73481
73484
  transparent: this.settings.transparent,
73482
73485
  depthWrite: !this.settings.transparent,
73483
- blending: this.settings.blending || Xh
73486
+ blending: this.settings.blending || Yh
73484
73487
  });
73485
73488
  else
73486
73489
  throw new Error("render mode unavailable");
@@ -73707,7 +73710,7 @@ var Cne = /* @__PURE__ */ function(n) {
73707
73710
  transparent: this.settings.transparent,
73708
73711
  depthWrite: !this.settings.transparent,
73709
73712
  side: Si,
73710
- blending: this.settings.blending || Xh
73713
+ blending: this.settings.blending || Yh
73711
73714
  });
73712
73715
  else
73713
73716
  throw new Error("render mode unavailable");
@@ -74324,7 +74327,7 @@ const Ry = class extends Se {
74324
74327
  const i = e[t];
74325
74328
  if (!(i instanceof T0)) {
74326
74329
  const s = new T0();
74327
- Zh(s, i), e[t] = s;
74330
+ $h(s, i), e[t] = s;
74328
74331
  }
74329
74332
  }
74330
74333
  this._bursts = e;
@@ -74335,7 +74338,7 @@ const Ry = class extends Se {
74335
74338
  const i = e[t];
74336
74339
  if (!(i instanceof D0)) {
74337
74340
  const s = new D0();
74338
- Zh(s, i), e[t] = s;
74341
+ $h(s, i), e[t] = s;
74339
74342
  }
74340
74343
  }
74341
74344
  pg && e.length > 0 && console.log("SubEmitters: ", e, this), this._subEmitterSystems = e;
@@ -74435,7 +74438,7 @@ wn([
74435
74438
  w(Ql)
74436
74439
  ], On.prototype, "emission", 2);
74437
74440
  wn([
74438
- w(Au)
74441
+ w(vu)
74439
74442
  ], On.prototype, "sizeOverLifetime", 2);
74440
74443
  wn([
74441
74444
  w(xn)
@@ -74453,7 +74456,7 @@ wn([
74453
74456
  w(Fn)
74454
74457
  ], On.prototype, "limitVelocityOverLifetime", 2);
74455
74458
  wn([
74456
- w(vu)
74459
+ w(yu)
74457
74460
  ], On.prototype, "inheritVelocity", 2);
74458
74461
  wn([
74459
74462
  w(Gf)
@@ -74854,7 +74857,7 @@ class JB extends DE {
74854
74857
  C[E + 0] = y[b + 0] * x, C[E + 1] = y[b + 1] * x, C[E + 2] = y[b + 2] * x, C[E + 3] = 1;
74855
74858
  }, A = function(y, b, C, E) {
74856
74859
  const T = y[b + 3], x = Math.pow(2, T - 128) / 255;
74857
- C[E + 0] = Lh.toHalfFloat(Math.min(y[b + 0] * x, 65504)), C[E + 1] = Lh.toHalfFloat(Math.min(y[b + 1] * x, 65504)), C[E + 2] = Lh.toHalfFloat(Math.min(y[b + 2] * x, 65504)), C[E + 3] = Lh.toHalfFloat(1);
74860
+ C[E + 0] = Fh.toHalfFloat(Math.min(y[b + 0] * x, 65504)), C[E + 1] = Fh.toHalfFloat(Math.min(y[b + 1] * x, 65504)), C[E + 2] = Fh.toHalfFloat(Math.min(y[b + 2] * x, 65504)), C[E + 3] = Fh.toHalfFloat(1);
74858
74861
  }, v = new Uint8Array(e);
74859
74862
  v.pos = 0;
74860
74863
  const _ = p(v);
@@ -76576,7 +76579,7 @@ gA.setAttribute("uv", new rt(new Float32Array([
76576
76579
  gA.boundingSphere = new Vo();
76577
76580
  gA.computeBoundingSphere = function() {
76578
76581
  };
76579
- const _se = new su();
76582
+ const _se = new ru();
76580
76583
  class Vv {
76581
76584
  constructor(e) {
76582
76585
  this._mesh = new me(gA, e), this._mesh.frustumCulled = !1;
@@ -77322,7 +77325,7 @@ class Ese extends ls {
77322
77325
  }
77323
77326
  }
77324
77327
  Uint8Array.from(atob(jU), (n) => n.charCodeAt(0));
77325
- var Ise = Object.defineProperty, Mse = Object.getOwnPropertyDescriptor, _u = (n, e, t, i) => {
77328
+ var Ise = Object.defineProperty, Mse = Object.getOwnPropertyDescriptor, xu = (n, e, t, i) => {
77326
77329
  for (var s = i > 1 ? void 0 : i ? Mse(e, t) : e, r = n.length - 1, o; r >= 0; r--)
77327
77330
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
77328
77331
  return i && s && Ise(e, t, s), s;
@@ -77365,27 +77368,27 @@ class La extends Vs {
77365
77368
  return r.push(i), r;
77366
77369
  }
77367
77370
  }
77368
- _u([
77371
+ xu([
77369
77372
  po(),
77370
77373
  w()
77371
77374
  ], La.prototype, "gammaCorrection", 2);
77372
- _u([
77375
+ xu([
77373
77376
  w(It)
77374
77377
  ], La.prototype, "intensity", 2);
77375
- _u([
77378
+ xu([
77376
77379
  w(It)
77377
77380
  ], La.prototype, "falloff", 2);
77378
- _u([
77381
+ xu([
77379
77382
  w(It)
77380
77383
  ], La.prototype, "aoRadius", 2);
77381
- _u([
77384
+ xu([
77382
77385
  po(),
77383
77386
  w()
77384
77387
  ], La.prototype, "screenspaceRadius", 2);
77385
- _u([
77388
+ xu([
77386
77389
  w(It)
77387
77390
  ], La.prototype, "color", 2);
77388
- _u([
77391
+ xu([
77389
77392
  po(),
77390
77393
  w()
77391
77394
  ], La.prototype, "quality", 2);
@@ -77423,7 +77426,7 @@ class S_ extends Se {
77423
77426
  const t = $.getComponent(this.gameObject, Yi);
77424
77427
  if (t) {
77425
77428
  const i = t.sharedMaterial;
77426
- i.blending = Xh, this.applyMaterialOptions(i), i.onBeforeCompile = (s) => {
77429
+ i.blending = Yh, this.applyMaterialOptions(i), i.onBeforeCompile = (s) => {
77427
77430
  s.fragmentShader = s.fragmentShader.replace(
77428
77431
  "vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;",
77429
77432
  `vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
@@ -77507,19 +77510,19 @@ const YU = (Xw = class extends Se {
77507
77510
  }
77508
77511
  }
77509
77512
  }, h(Xw, "_invertForward", new xe().setFromAxisAngle(new S(0, 1, 0), Math.PI)), Xw);
77510
- let xu = YU;
77513
+ let wu = YU;
77511
77514
  E_([
77512
77515
  w(Ie)
77513
- ], xu.prototype, "target", 2);
77516
+ ], wu.prototype, "target", 2);
77514
77517
  E_([
77515
77518
  w()
77516
- ], xu.prototype, "followFactor", 2);
77519
+ ], wu.prototype, "followFactor", 2);
77517
77520
  E_([
77518
77521
  w()
77519
- ], xu.prototype, "rotateFactor", 2);
77522
+ ], wu.prototype, "rotateFactor", 2);
77520
77523
  E_([
77521
77524
  w()
77522
- ], xu.prototype, "positionAxes", 2);
77525
+ ], wu.prototype, "positionAxes", 2);
77523
77526
  class Dse extends me {
77524
77527
  constructor(e) {
77525
77528
  const t = new kse(e), i = new Yn(t.image.width * 1e-3, t.image.height * 1e-3), s = new vi({ map: t, toneMapped: !1, transparent: !0 });
@@ -77679,7 +77682,7 @@ function Ose(n, e, t, i) {
77679
77682
  }
77680
77683
  o(n);
77681
77684
  }
77682
- const Oy = new V(), Zu = { type: "", data: Oy };
77685
+ const Oy = new V(), $u = { type: "", data: Oy };
77683
77686
  class Lse extends so {
77684
77687
  constructor(e, t) {
77685
77688
  super();
@@ -77691,7 +77694,7 @@ class Lse extends so {
77691
77694
  const g = s.intersectObjects(i.children, !1);
77692
77695
  if (g.length > 0) {
77693
77696
  const m = g[0], A = m.object, v = m.uv;
77694
- Zu.type = f.type, Zu.data.set(v.x, 1 - v.y), A.dispatchEvent(Zu);
77697
+ $u.type = f.type, $u.data.set(v.x, 1 - v.y), A.dispatchEvent($u);
77695
77698
  }
77696
77699
  }
77697
77700
  o.addEventListener("pointerdown", a), o.addEventListener("pointerup", a), o.addEventListener("pointermove", a), o.addEventListener("mousedown", a), o.addEventListener("mouseup", a), o.addEventListener("mousemove", a), o.addEventListener("click", a);
@@ -77707,7 +77710,7 @@ class Lse extends so {
77707
77710
  const g = s.intersectObjects(i.children, !1);
77708
77711
  if (g.length > 0) {
77709
77712
  const m = g[0], A = m.object, v = m.uv;
77710
- Zu.type = l[f.type], Zu.data.set(v.x, 1 - v.y), A.dispatchEvent(Zu);
77713
+ $u.type = l[f.type], $u.data.set(v.x, 1 - v.y), A.dispatchEvent($u);
77711
77714
  }
77712
77715
  }
77713
77716
  const u = e.xr.getController(0);
@@ -78035,7 +78038,7 @@ class Hse {
78035
78038
  this.spectator.stopSpectating();
78036
78039
  return;
78037
78040
  }
78038
- t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = $.addNewComponent(this.cam.gameObject, xu)), this.target || (this.target = new Ie()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, yr && console.log("FOLLOW", t), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
78041
+ t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = $.addNewComponent(this.cam.gameObject, wu)), this.target || (this.target = new Ie()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, yr && console.log("FOLLOW", t), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
78039
78042
  }
78040
78043
  disable() {
78041
78044
  yr && console.log("STOP FOLLOW", this.currentObject), this.view = void 0, this.currentObject = void 0, this.context.removeCamera(this.cam), this.follow && (this.follow.enabled = !1);
@@ -78531,7 +78534,7 @@ var ire = Object.defineProperty, nre = Object.getOwnPropertyDescriptor, vA = (n,
78531
78534
  return i && s && ire(e, t, s), s;
78532
78535
  };
78533
78536
  const Bw = "view", Dw = ae("debugsyncedroom");
78534
- class wu extends Se {
78537
+ class Cu extends Se {
78535
78538
  constructor() {
78536
78539
  super(...arguments);
78537
78540
  h(this, "roomName");
@@ -78604,19 +78607,19 @@ class wu extends Se {
78604
78607
  }
78605
78608
  vA([
78606
78609
  w()
78607
- ], wu.prototype, "roomName", 2);
78610
+ ], Cu.prototype, "roomName", 2);
78608
78611
  vA([
78609
78612
  w()
78610
- ], wu.prototype, "urlParameterName", 2);
78613
+ ], Cu.prototype, "urlParameterName", 2);
78611
78614
  vA([
78612
78615
  w()
78613
- ], wu.prototype, "joinRandomRoom", 2);
78616
+ ], Cu.prototype, "joinRandomRoom", 2);
78614
78617
  vA([
78615
78618
  w()
78616
- ], wu.prototype, "requireRoomParameter", 2);
78619
+ ], Cu.prototype, "requireRoomParameter", 2);
78617
78620
  vA([
78618
78621
  w()
78619
- ], wu.prototype, "autoRejoin", 2);
78622
+ ], Cu.prototype, "autoRejoin", 2);
78620
78623
  function sre() {
78621
78624
  const n = ae("testwindowcount") || 0;
78622
78625
  n && n > 0 && rre(n);
@@ -78971,7 +78974,7 @@ function Ow(n, e, t) {
78971
78974
  return i[s];
78972
78975
  return !1;
78973
78976
  }
78974
- const Wv = new vn(), bi = new S(0, 1, 0), oD = new S(0, 0, 0), aD = new Pe(), jv = new xe(), Fy = new xe(), ia = new S(), lD = new Pe(), Wp = new S(1, 0, 0), Ch = new S(0, 1, 0), jp = new S(0, 0, 1), qv = new S(), Ep = new S(), Ip = new S();
78977
+ const Wv = new vn(), bi = new S(0, 1, 0), oD = new S(0, 0, 0), aD = new Pe(), jv = new xe(), Fy = new xe(), ia = new S(), lD = new Pe(), Wp = new S(1, 0, 0), Sh = new S(0, 1, 0), jp = new S(0, 0, 1), qv = new S(), Ep = new S(), Ip = new S();
78975
78978
  class Are extends Ie {
78976
78979
  constructor() {
78977
78980
  super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
@@ -79221,10 +79224,10 @@ class Are extends Ie {
79221
79224
  o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
79222
79225
  let a;
79223
79226
  if (this.camera.isOrthographicCamera ? a = (this.camera.top - this.camera.bottom) / this.camera.zoom : a = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), o.scale.set(1, 1, 1).multiplyScalar(a * this.size / 4), o.tag === "helper") {
79224
- o.visible = !1, o.name === "AXIS" ? (o.position.copy(this.worldPositionStart), o.visible = !!this.axis, this.axis === "X" && (Bi.setFromEuler(Wv.set(0, 0, 0)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (Bi.setFromEuler(Wv.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(Ch).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (Bi.setFromEuler(Wv.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (Bi.setFromEuler(Wv.set(0, Math.PI / 2, 0)), bi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(aD.lookAt(oD, bi, Ch)), o.quaternion.multiply(Bi), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), Js.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Js.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(Js), o.visible = this.dragging) : (o.quaternion.copy(i), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
79227
+ o.visible = !1, o.name === "AXIS" ? (o.position.copy(this.worldPositionStart), o.visible = !!this.axis, this.axis === "X" && (Bi.setFromEuler(Wv.set(0, 0, 0)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (Bi.setFromEuler(Wv.set(0, 0, Math.PI / 2)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(Sh).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (Bi.setFromEuler(Wv.set(0, Math.PI / 2, 0)), o.quaternion.copy(i).multiply(Bi), Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (Bi.setFromEuler(Wv.set(0, Math.PI / 2, 0)), bi.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(aD.lookAt(oD, bi, Sh)), o.quaternion.multiply(Bi), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), Js.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Js.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(Js), o.visible = this.dragging) : (o.quaternion.copy(i), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
79225
79228
  continue;
79226
79229
  }
79227
- o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(bi.copy(Ch).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(bi.copy(Ch).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (jv.copy(i), bi.copy(this.eye).applyQuaternion(Bi.copy(i).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(aD.lookAt(this.eye, oD, Ch)), o.name === "X" && (Bi.setFromAxisAngle(Wp, Math.atan2(-bi.y, bi.z)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi)), o.name === "Y" && (Bi.setFromAxisAngle(Ch, Math.atan2(bi.x, bi.z)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi)), o.name === "Z" && (Bi.setFromAxisAngle(jp, Math.atan2(bi.y, bi.x)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(l) {
79230
+ o.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(bi.copy(Sh).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(bi.copy(jp).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(bi.copy(Wp).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(bi.copy(Sh).applyQuaternion(i).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (jv.copy(i), bi.copy(this.eye).applyQuaternion(Bi.copy(i).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(aD.lookAt(this.eye, oD, Sh)), o.name === "X" && (Bi.setFromAxisAngle(Wp, Math.atan2(-bi.y, bi.z)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi)), o.name === "Y" && (Bi.setFromAxisAngle(Sh, Math.atan2(bi.x, bi.z)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi)), o.name === "Z" && (Bi.setFromAxisAngle(jp, Math.atan2(bi.y, bi.x)), Bi.multiplyQuaternions(jv, Bi), o.quaternion.copy(Bi))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(l) {
79228
79231
  return o.name === l;
79229
79232
  })) && (o.material.color.setHex(16776960), o.material.opacity = 1);
79230
79233
  }
@@ -79240,7 +79243,7 @@ class vre extends me {
79240
79243
  }
79241
79244
  updateMatrixWorld(e) {
79242
79245
  let t = this.space;
79243
- switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), qv.copy(Wp).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), Ep.copy(Ch).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), Ip.copy(jp).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), bi.copy(Ep), this.mode) {
79246
+ switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), qv.copy(Wp).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), Ep.copy(Sh).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), Ip.copy(jp).applyQuaternion(t === "local" ? this.worldQuaternion : Fy), bi.copy(Ep), this.mode) {
79244
79247
  case "translate":
79245
79248
  case "scale":
79246
79249
  switch (this.axis) {
@@ -79316,7 +79319,7 @@ class $f extends Se {
79316
79319
  onControlChangedEvent(t) {
79317
79320
  const i = this.orbit;
79318
79321
  if (i && (i.enabled = !t.value), t.value) {
79319
- const s = $.getComponentInParent(this.gameObject, $h);
79322
+ const s = $.getComponentInParent(this.gameObject, eu);
79320
79323
  s && s.requestOwnership();
79321
79324
  }
79322
79325
  }
@@ -79556,7 +79559,7 @@ class nM extends Se {
79556
79559
  h(this, "forceTextureInitialization", function() {
79557
79560
  const t = new vi(), i = new Yn(), s = new or();
79558
79561
  s.add(new me(i, t));
79559
- const r = new nu();
79562
+ const r = new su();
79560
79563
  return function(a, l) {
79561
79564
  t.map = l, a.render(s, r);
79562
79565
  };
@@ -80131,25 +80134,25 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80131
80134
  Camera: Qi,
80132
80135
  Canvas: Qs,
80133
80136
  CanvasGroup: rA,
80134
- CapsuleCollider: tu,
80137
+ CapsuleCollider: iu,
80135
80138
  ChangeMaterialOnClick: a_,
80136
80139
  ChangeTransformOnClick: Nf,
80137
80140
  CharacterController: zf,
80138
80141
  CharacterControllerInput: eh,
80139
80142
  ChromaticAberration: h_,
80140
80143
  Collider: zl,
80141
- ColorAdjustments: gu,
80144
+ ColorAdjustments: mu,
80142
80145
  ColorBySpeedModule: Gf,
80143
80146
  ColorOverLifetimeModule: f_,
80144
- Component: au,
80147
+ Component: lu,
80145
80148
  ControlTrackHandler: xI,
80146
- CustomBranding: yu,
80149
+ CustomBranding: bu,
80147
80150
  Deletable: SU,
80148
80151
  DeleteBox: kI,
80149
80152
  DepthOfField: Da,
80150
80153
  DeviceFlag: OI,
80151
80154
  DocumentExtension: EU,
80152
- DragControls: Gh,
80155
+ DragControls: Qh,
80153
80156
  DropListener: p_,
80154
80157
  Duplicatable: Hf,
80155
80158
  EmissionModule: Ql,
@@ -80164,18 +80167,18 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80164
80167
  Fog: hA,
80165
80168
  GltfExport: vc,
80166
80169
  GltfExportBox: BU,
80167
- Gradient: mu,
80170
+ Gradient: Au,
80168
80171
  Graphic: Uf,
80169
80172
  GraphicRaycaster: oU,
80170
80173
  GridHelper: uA,
80171
80174
  GridLayoutGroup: bU,
80172
80175
  GroundProjectedEnv: Vf,
80173
- GroupActionModel: Uh,
80176
+ GroupActionModel: Nh,
80174
80177
  HideOnStart: xU,
80175
80178
  HingeJoint: m_,
80176
80179
  HorizontalLayoutGroup: yU,
80177
80180
  Image: sA,
80178
- InheritVelocityModule: vu,
80181
+ InheritVelocityModule: yu,
80179
80182
  InputField: Wf,
80180
80183
  Interactable: Wm,
80181
80184
  LODGroup: y_,
@@ -80199,13 +80202,13 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80199
80202
  OpenURL: fA,
80200
80203
  OrbitControls: Jc,
80201
80204
  Outline: nA,
80202
- Padding: fu,
80205
+ Padding: pu,
80203
80206
  ParticleBurst: T0,
80204
80207
  ParticleSubEmitter: YI,
80205
80208
  ParticleSystem: On,
80206
80209
  ParticleSystemRenderer: th,
80207
80210
  PixelationEffect: x_,
80208
- PlayAnimationOnClick: pu,
80211
+ PlayAnimationOnClick: gu,
80209
80212
  PlayAudioOnClick: lA,
80210
80213
  PlayableDirector: Rc,
80211
80214
  PlayerColor: sf,
@@ -80239,9 +80242,9 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80239
80242
  SignalTrackHandler: I0,
80240
80243
  Size: fU,
80241
80244
  SizeBySpeedModule: lr,
80242
- SizeOverLifetimeModule: Au,
80245
+ SizeOverLifetimeModule: vu,
80243
80246
  SkinnedMeshRenderer: bF,
80244
- SmoothFollow: xu,
80247
+ SmoothFollow: wu,
80245
80248
  SpatialHtml: KU,
80246
80249
  SpatialTrigger: I_,
80247
80250
  SpatialTriggerReceiver: wl,
@@ -80253,8 +80256,8 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80253
80256
  SpriteSheet: M_,
80254
80257
  SubEmitterSystem: D0,
80255
80258
  SyncedCamera: eM,
80256
- SyncedRoom: wu,
80257
- SyncedTransform: $h,
80259
+ SyncedRoom: Cu,
80260
+ SyncedTransform: eu,
80258
80261
  TapGestureTrigger: wU,
80259
80262
  TeleportTarget: AI,
80260
80263
  TestRunner: JU,
@@ -80273,7 +80276,7 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80273
80276
  UIRaycastUtils: rm,
80274
80277
  UIRootComponent: Xb,
80275
80278
  USDZExporter: vo,
80276
- USDZText: zh,
80279
+ USDZText: Gh,
80277
80280
  UsageMarker: jm,
80278
80281
  VRUserState: pa,
80279
80282
  VariantAction: MF,
@@ -80288,7 +80291,7 @@ const Fre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80288
80291
  VolumeProfile: Zb,
80289
80292
  WebAR: Od,
80290
80293
  WebARCameraBackground: nM,
80291
- WebARSessionRoot: cu,
80294
+ WebARSessionRoot: hu,
80292
80295
  WebXR: St,
80293
80296
  WebXRAvatar: vl,
80294
80297
  WebXRController: sn,
@@ -80367,7 +80370,7 @@ const $n = (Dp = class extends Se {
80367
80370
  if (e instanceof Ie) {
80368
80371
  const t = $.getComponentInParent(e, $n);
80369
80372
  return (t == null ? void 0 : t.isLocalPlayer) ?? !1;
80370
- } else if (e instanceof au) {
80373
+ } else if (e instanceof lu) {
80371
80374
  const t = $.getComponentInParent(e.gameObject, $n);
80372
80375
  return (t == null ? void 0 : t.isLocalPlayer) ?? !1;
80373
80376
  }
@@ -80490,25 +80493,25 @@ Q.add("CallInfo", Kg);
80490
80493
  Q.add("Camera", Qi);
80491
80494
  Q.add("Canvas", Qs);
80492
80495
  Q.add("CanvasGroup", rA);
80493
- Q.add("CapsuleCollider", tu);
80496
+ Q.add("CapsuleCollider", iu);
80494
80497
  Q.add("ChangeMaterialOnClick", a_);
80495
80498
  Q.add("ChangeTransformOnClick", Nf);
80496
80499
  Q.add("CharacterController", zf);
80497
80500
  Q.add("CharacterControllerInput", eh);
80498
80501
  Q.add("ChromaticAberration", h_);
80499
80502
  Q.add("Collider", zl);
80500
- Q.add("ColorAdjustments", gu);
80503
+ Q.add("ColorAdjustments", mu);
80501
80504
  Q.add("ColorBySpeedModule", Gf);
80502
80505
  Q.add("ColorOverLifetimeModule", f_);
80503
- Q.add("Component", au);
80506
+ Q.add("Component", lu);
80504
80507
  Q.add("ControlTrackHandler", xI);
80505
- Q.add("CustomBranding", yu);
80508
+ Q.add("CustomBranding", bu);
80506
80509
  Q.add("Deletable", SU);
80507
80510
  Q.add("DeleteBox", kI);
80508
80511
  Q.add("DepthOfField", Da);
80509
80512
  Q.add("DeviceFlag", OI);
80510
80513
  Q.add("DocumentExtension", EU);
80511
- Q.add("DragControls", Gh);
80514
+ Q.add("DragControls", Qh);
80512
80515
  Q.add("DropListener", p_);
80513
80516
  Q.add("Duplicatable", Hf);
80514
80517
  Q.add("EmissionModule", Ql);
@@ -80523,18 +80526,18 @@ Q.add("FlyControls", PU);
80523
80526
  Q.add("Fog", hA);
80524
80527
  Q.add("GltfExport", vc);
80525
80528
  Q.add("GltfExportBox", BU);
80526
- Q.add("Gradient", mu);
80529
+ Q.add("Gradient", Au);
80527
80530
  Q.add("Graphic", Uf);
80528
80531
  Q.add("GraphicRaycaster", oU);
80529
80532
  Q.add("GridHelper", uA);
80530
80533
  Q.add("GridLayoutGroup", bU);
80531
80534
  Q.add("GroundProjectedEnv", Vf);
80532
- Q.add("GroupActionModel", Uh);
80535
+ Q.add("GroupActionModel", Nh);
80533
80536
  Q.add("HideOnStart", xU);
80534
80537
  Q.add("HingeJoint", m_);
80535
80538
  Q.add("HorizontalLayoutGroup", yU);
80536
80539
  Q.add("Image", sA);
80537
- Q.add("InheritVelocityModule", vu);
80540
+ Q.add("InheritVelocityModule", yu);
80538
80541
  Q.add("InputField", Wf);
80539
80542
  Q.add("Interactable", Wm);
80540
80543
  Q.add("Light", Lr);
@@ -80558,14 +80561,14 @@ Q.add("OffsetConstraint", Xf);
80558
80561
  Q.add("OpenURL", fA);
80559
80562
  Q.add("OrbitControls", Jc);
80560
80563
  Q.add("Outline", nA);
80561
- Q.add("Padding", fu);
80564
+ Q.add("Padding", pu);
80562
80565
  Q.add("ParticleBurst", T0);
80563
80566
  Q.add("ParticleSubEmitter", YI);
80564
80567
  Q.add("ParticleSystem", On);
80565
80568
  Q.add("ParticleSystemRenderer", th);
80566
80569
  Q.add("PixelationEffect", x_);
80567
80570
  Q.add("PlayableDirector", Rc);
80568
- Q.add("PlayAnimationOnClick", pu);
80571
+ Q.add("PlayAnimationOnClick", gu);
80569
80572
  Q.add("PlayAudioOnClick", lA);
80570
80573
  Q.add("PlayerColor", sf);
80571
80574
  Q.add("PlayerState", vg);
@@ -80601,9 +80604,9 @@ Q.add("SignalReceiverEvent", $m);
80601
80604
  Q.add("SignalTrackHandler", I0);
80602
80605
  Q.add("Size", fU);
80603
80606
  Q.add("SizeBySpeedModule", lr);
80604
- Q.add("SizeOverLifetimeModule", Au);
80607
+ Q.add("SizeOverLifetimeModule", vu);
80605
80608
  Q.add("SkinnedMeshRenderer", bF);
80606
- Q.add("SmoothFollow", xu);
80609
+ Q.add("SmoothFollow", wu);
80607
80610
  Q.add("SpatialHtml", KU);
80608
80611
  Q.add("SpatialTrigger", I_);
80609
80612
  Q.add("SpatialTriggerReceiver", wl);
@@ -80615,8 +80618,8 @@ Q.add("SpriteRenderer", Vl);
80615
80618
  Q.add("SpriteSheet", M_);
80616
80619
  Q.add("SubEmitterSystem", D0);
80617
80620
  Q.add("SyncedCamera", eM);
80618
- Q.add("SyncedRoom", wu);
80619
- Q.add("SyncedTransform", $h);
80621
+ Q.add("SyncedRoom", Cu);
80622
+ Q.add("SyncedTransform", eu);
80620
80623
  Q.add("TapGestureTrigger", wU);
80621
80624
  Q.add("TeleportTarget", AI);
80622
80625
  Q.add("TestRunner", JU);
@@ -80636,7 +80639,7 @@ Q.add("UIRaycastUtils", rm);
80636
80639
  Q.add("UIRootComponent", Xb);
80637
80640
  Q.add("UsageMarker", jm);
80638
80641
  Q.add("USDZExporter", vo);
80639
- Q.add("USDZText", zh);
80642
+ Q.add("USDZText", Gh);
80640
80643
  Q.add("VariantAction", MF);
80641
80644
  Q.add("VelocityOverLifetimeModule", Ji);
80642
80645
  Q.add("VerticalLayoutGroup", vU);
@@ -80650,7 +80653,7 @@ Q.add("VolumeProfile", Zb);
80650
80653
  Q.add("VRUserState", pa);
80651
80654
  Q.add("WebAR", Od);
80652
80655
  Q.add("WebARCameraBackground", nM);
80653
- Q.add("WebARSessionRoot", cu);
80656
+ Q.add("WebARSessionRoot", hu);
80654
80657
  Q.add("WebXR", St);
80655
80658
  Q.add("WebXRAvatar", vl);
80656
80659
  Q.add("WebXRController", sn);
@@ -80734,7 +80737,7 @@ async function zS(n, e, t, i) {
80734
80737
  const a = Q.get(o.name);
80735
80738
  if (a != null) {
80736
80739
  const l = new a();
80737
- l.sourceId = n.gltfId, Zh(l, o, n.implementationInformation), "guid" in o && (l[hy] = o.guid), yf(e, l, !1), t.push({ instance: l, compData: o, obj: e }), l.isCamera && n.context && n.context.mainCamera === null && l.tag === "MainCamera" && n.context.setCurrentCamera(l);
80740
+ l.sourceId = n.gltfId, $h(l, o, n.implementationInformation), "guid" in o && (l[hy] = o.guid), yf(e, l, !1), t.push({ instance: l, compData: o, obj: e }), l.isCamera && n.context && n.context.mainCamera === null && l.tag === "MainCamera" && n.context.setCurrentCamera(l);
80738
80741
  } else
80739
80742
  rN && console.debug("unknown component: " + o.name), Mp.includes(o.name) || Mp.push(o.name);
80740
80743
  } catch (a) {
@@ -80857,7 +80860,7 @@ function Pae(n, e = null) {
80857
80860
  return null;
80858
80861
  }
80859
80862
  hL(oN);
80860
- const fs = ae("debugwebcomponent"), hD = "needle-engine", cN = "vr", hN = "desktop", Zre = [Ih, cN, hN], Tp = "ar-session-active", Pp = "desktop-session-active", $re = [
80863
+ const fs = ae("debugwebcomponent"), hD = "needle-engine", cN = "vr", hN = "desktop", Zre = [Mh, cN, hN], Tp = "ar-session-active", Pp = "desktop-session-active", $re = [
80861
80864
  "hash",
80862
80865
  "src",
80863
80866
  "camera-controls",
@@ -81099,7 +81102,7 @@ class uN extends HTMLElement {
81099
81102
  onSetupAR() {
81100
81103
  this.classList.add(Tp), this.classList.remove(Pp);
81101
81104
  const t = this.getAROverlayContainer();
81102
- t && (t.classList.add(Tp), t.classList.remove(Pp)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, Ih));
81105
+ t && (t.classList.add(Tp), t.classList.remove(Pp)), this.foreachHtmlElement((i) => this.setupElementsForMode(i, Mh));
81103
81106
  }
81104
81107
  onSetupVR() {
81105
81108
  this.classList.remove(Tp), this.classList.remove(Pp), this.foreachHtmlElement((t) => this.setupElementsForMode(t, cN));
@@ -82698,8 +82701,8 @@ for (var Lae = { byteLength: function(n) {
82698
82701
  for (var e, t = n.length, i = t % 3, s = [], r = 16383, o = 0, a = t - i; o < a; o += r)
82699
82702
  s.push(Aoe(n, o, o + r > a ? a : o + r));
82700
82703
  return i === 1 ? (e = n[t - 1], s.push(ua[e >> 2] + ua[e << 4 & 63] + "==")) : i === 2 && (e = (n[t - 2] << 8) + n[t - 1], s.push(ua[e >> 10] + ua[e >> 4 & 63] + ua[e << 2 & 63] + "=")), s.join("");
82701
- } }, ua = [], qr = [], goe = typeof Uint8Array < "u" ? Uint8Array : Array, Uw = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", $u = 0, moe = Uw.length; $u < moe; ++$u)
82702
- ua[$u] = Uw[$u], qr[Uw.charCodeAt($u)] = $u;
82704
+ } }, ua = [], qr = [], goe = typeof Uint8Array < "u" ? Uint8Array : Array, Uw = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ed = 0, moe = Uw.length; ed < moe; ++ed)
82705
+ ua[ed] = Uw[ed], qr[Uw.charCodeAt(ed)] = ed;
82703
82706
  function xD(n) {
82704
82707
  var e = n.length;
82705
82708
  if (e % 4 > 0)
@@ -82714,7 +82717,7 @@ function Aoe(n, e, t) {
82714
82717
  }
82715
82718
  qr["-".charCodeAt(0)] = 62, qr["_".charCodeAt(0)] = 63;
82716
82719
  const fr = ae("debugphysics"), Nw = ae("debugphysicscolliders"), zw = ae("debugcollisions"), voe = ae("showcolliders"), Xr = Symbol("needle component"), Io = Symbol("physics body"), yoe = Symbol("rigidbody");
82717
- let ed;
82720
+ let td;
82718
82721
  globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
82719
82722
  fr && console.log("Use Rapier", !1, globalThis.false);
82720
82723
  const Mg = class {
@@ -83060,12 +83063,12 @@ const Mg = class {
83060
83063
  if (i = r[Io], s = !0, !i) {
83061
83064
  const o = r.isKinematic && !Nw;
83062
83065
  fr && console.log("Create rigidbody", o);
83063
- const a = o ? ed.RigidBodyDesc.kinematicPositionBased() : ed.RigidBodyDesc.dynamic(), l = wt(e.attachedRigidbody.gameObject);
83066
+ const a = o ? td.RigidBodyDesc.kinematicPositionBased() : td.RigidBodyDesc.dynamic(), l = wt(e.attachedRigidbody.gameObject);
83064
83067
  a.setTranslation(l.x, l.y, l.z), a.setRotation(qn(e.attachedRigidbody.gameObject)), i = this.world.createRigidBody(a), this.bodies.push(i), this.objects.push(r);
83065
83068
  }
83066
83069
  i[Xr] = r, r[Io] = i, this.internalUpdateProperties(r, i), this.getRigidbodyRelativeMatrix(e.gameObject, r.gameObject, t);
83067
83070
  } else {
83068
- const r = ed.RigidBodyDesc.kinematicPositionBased(), o = wt(e.gameObject);
83071
+ const r = td.RigidBodyDesc.kinematicPositionBased(), o = wt(e.gameObject);
83069
83072
  r.setTranslation(o.x, o.y, o.z), r.setRotation(qn(e.gameObject)), i = this.world.createRigidBody(r), t.identity(), i[Xr] = null;
83070
83073
  }
83071
83074
  return e[yoe] = i, { rigidBody: i, useExplicitMassProperties: s };
@@ -83074,7 +83077,7 @@ const Mg = class {
83074
83077
  return e[Io];
83075
83078
  }
83076
83079
  internalUpdateProperties(e, t) {
83077
- t.enableCcd(e.collisionDetectionMode !== z1.Discrete), t.setLinearDamping(e.drag), t.setAngularDamping(e.angularDrag), t.setGravityScale(e.useGravity ? e.gravityScale : 0, !0), t.setEnabledRotations(!e.lockRotationX, !e.lockRotationY, !e.lockRotationZ, !0), t.setEnabledTranslations(!e.lockPositionX, !e.lockPositionY, !e.lockPositionZ, !0), e.isKinematic ? t.setBodyType(ed.RigidBodyType.KinematicPositionBased) : t.setBodyType(ed.RigidBodyType.Dynamic);
83080
+ t.enableCcd(e.collisionDetectionMode !== z1.Discrete), t.setLinearDamping(e.drag), t.setAngularDamping(e.angularDrag), t.setGravityScale(e.useGravity ? e.gravityScale : 0, !0), t.setEnabledRotations(!e.lockRotationX, !e.lockRotationY, !e.lockRotationZ, !0), t.setEnabledTranslations(!e.lockPositionX, !e.lockPositionY, !e.lockPositionZ, !0), e.isKinematic ? t.setBodyType(td.RigidBodyType.KinematicPositionBased) : t.setBodyType(td.RigidBodyType.Dynamic);
83078
83081
  }
83079
83082
  step(e) {
83080
83083
  this.world && this.enabled && (this._isUpdatingPhysicsWorld = !0, this.eventQueue || (this.eventQueue = new poe(!1)), e && (this.world.timestep = $e.lerp(this.world.timestep, e, 0.8)), this.world.step(this.eventQueue), this._isUpdatingPhysicsWorld = !1, this.updateDebugRendering(this.world));
@@ -83165,7 +83168,7 @@ const Mg = class {
83165
83168
  }
83166
83169
  const r = e[Io], o = t[Io];
83167
83170
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
83168
- let a = ed.JointData.revolute(i, this._tempPosition, s), l = this.world.createImpulseJoint(a, r, o, !0);
83171
+ let a = td.JointData.revolute(i, this._tempPosition, s), l = this.world.createImpulseJoint(a, r, o, !0);
83169
83172
  fr && console.log("ADD HINGE JOINT", l);
83170
83173
  }
83171
83174
  calculateJointRelativeMatrices(e, t, i) {
@@ -83174,8 +83177,8 @@ const Mg = class {
83174
83177
  s.elements[0] = 1, s.elements[5] = 1, s.elements[10] = 1, r.elements[0] = 1, r.elements[5] = 1, r.elements[10] = 1, i.copy(r).premultiply(s.invert()).invert();
83175
83178
  }
83176
83179
  };
83177
- let td = Mg;
83178
- h(td, "_didLoadPhysicsEngine", !1), h(td, "_matricesBuffer", []), h(td, "centerConnectionPos", { x: 0, y: 0, z: 0 }), h(td, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
83180
+ let id = Mg;
83181
+ h(id, "_didLoadPhysicsEngine", !1), h(id, "_matricesBuffer", []), h(id, "centerConnectionPos", { x: 0, y: 0, z: 0 }), h(id, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
83179
83182
  class boe {
83180
83183
  constructor(e, t) {
83181
83184
  h(this, "world");
@@ -83481,7 +83484,7 @@ export {
83481
83484
  Qi as Camera,
83482
83485
  Qs as Canvas,
83483
83486
  rA as CanvasGroup,
83484
- tu as CapsuleCollider,
83487
+ iu as CapsuleCollider,
83485
83488
  a_ as ChangeMaterialOnClick,
83486
83489
  Nf as ChangeTransformOnClick,
83487
83490
  zf as CharacterController,
@@ -83493,10 +83496,10 @@ export {
83493
83496
  zl as Collider,
83494
83497
  soe as Collision,
83495
83498
  z1 as CollisionDetectionMode,
83496
- gu as ColorAdjustments,
83499
+ mu as ColorAdjustments,
83497
83500
  Gf as ColorBySpeedModule,
83498
83501
  f_ as ColorOverLifetimeModule,
83499
- au as Component,
83502
+ lu as Component,
83500
83503
  Ib as ComponentEvents,
83501
83504
  Mb as ComponentLifecycleEvents,
83502
83505
  Z6 as ConnectionEvents,
@@ -83508,7 +83511,7 @@ export {
83508
83511
  xI as ControlTrackHandler,
83509
83512
  gc as ControllerEvents,
83510
83513
  fg as ControllerType,
83511
- yu as CustomBranding,
83514
+ bu as CustomBranding,
83512
83515
  Hr as CustomShader,
83513
83516
  ZC as DefaultReflectionMode,
83514
83517
  SU as Deletable,
@@ -83516,7 +83519,7 @@ export {
83516
83519
  Da as DepthOfField,
83517
83520
  OI as DeviceFlag,
83518
83521
  EU as DocumentExtension,
83519
- Gh as DragControls,
83522
+ Qh as DragControls,
83520
83523
  p_ as DropListener,
83521
83524
  Hf as Duplicatable,
83522
83525
  Jx as EXTENSION_NAME,
@@ -83541,14 +83544,14 @@ export {
83541
83544
  BU as GltfExportBox,
83542
83545
  Fd as GltfLoadEvent,
83543
83546
  Xre as GltfLoadEventType,
83544
- mu as Gradient,
83547
+ Au as Gradient,
83545
83548
  Uf as Graphic,
83546
83549
  oU as GraphicRaycaster,
83547
83550
  jr as Graphics,
83548
83551
  uA as GridHelper,
83549
83552
  bU as GridLayoutGroup,
83550
83553
  Vf as GroundProjectedEnv,
83551
- Uh as GroupActionModel,
83554
+ Nh as GroupActionModel,
83552
83555
  U9 as HideFlags,
83553
83556
  xU as HideOnStart,
83554
83557
  m_ as HingeJoint,
@@ -83557,7 +83560,7 @@ export {
83557
83560
  sA as Image,
83558
83561
  og as ImageReference,
83559
83562
  u7 as ImageReferenceSerializer,
83560
- vu as InheritVelocityModule,
83563
+ yu as InheritVelocityModule,
83561
83564
  G8 as Input,
83562
83565
  el as InputEvents,
83563
83566
  Wf as InputField,
@@ -83604,7 +83607,7 @@ export {
83604
83607
  nA as Outline,
83605
83608
  $6 as OwnershipEvent,
83606
83609
  $E as OwnershipModel,
83607
- fu as Padding,
83610
+ pu as Padding,
83608
83611
  T0 as ParticleBurst,
83609
83612
  YI as ParticleSubEmitter,
83610
83613
  On as ParticleSystem,
@@ -83612,7 +83615,7 @@ export {
83612
83615
  r6 as Physics,
83613
83616
  Xa as PhysicsMaterialCombine,
83614
83617
  x_ as PixelationEffect,
83615
- pu as PlayAnimationOnClick,
83618
+ gu as PlayAnimationOnClick,
83616
83619
  lA as PlayAudioOnClick,
83617
83620
  Rc as PlayableDirector,
83618
83621
  sf as PlayerColor,
@@ -83630,7 +83633,7 @@ export {
83630
83633
  HU as PrimitiveType,
83631
83634
  nX as ProgressiveLoadingInfo,
83632
83635
  Ei as RGBAColor,
83633
- td as RapierPhysics,
83636
+ id as RapierPhysics,
83634
83637
  PI as RawImage,
83635
83638
  Ta as RaycastOptions,
83636
83639
  Zm as Raycaster,
@@ -83639,7 +83642,7 @@ export {
83639
83642
  Hm as ReflectionProbe,
83640
83643
  O1 as RegisteredAnimationInfo,
83641
83644
  zc as RemoteSkybox,
83642
- jh as RenderTexture,
83645
+ qh as RenderTexture,
83643
83646
  fX as RenderTextureSerializer,
83644
83647
  Yi as Renderer,
83645
83648
  d7 as RendererData,
@@ -83664,9 +83667,9 @@ export {
83664
83667
  I0 as SignalTrackHandler,
83665
83668
  fU as Size,
83666
83669
  lr as SizeBySpeedModule,
83667
- Au as SizeOverLifetimeModule,
83670
+ vu as SizeOverLifetimeModule,
83668
83671
  bF as SkinnedMeshRenderer,
83669
- xu as SmoothFollow,
83672
+ wu as SmoothFollow,
83670
83673
  KU as SpatialHtml,
83671
83674
  I_ as SpatialTrigger,
83672
83675
  wl as SpatialTriggerReceiver,
@@ -83681,8 +83684,8 @@ export {
83681
83684
  bae as StateMachineBehaviour,
83682
83685
  D0 as SubEmitterSystem,
83683
83686
  eM as SyncedCamera,
83684
- wu as SyncedRoom,
83685
- $h as SyncedTransform,
83687
+ Cu as SyncedRoom,
83688
+ eu as SyncedTransform,
83686
83689
  wU as TapGestureTrigger,
83687
83690
  AI as TeleportTarget,
83688
83691
  JU as TestRunner,
@@ -83706,7 +83709,7 @@ export {
83706
83709
  Xb as UIRootComponent,
83707
83710
  Fo as USDObject,
83708
83711
  vo as USDZExporter,
83709
- zh as USDZText,
83712
+ Gh as USDZText,
83710
83713
  jP as Upload_Result,
83711
83714
  pX as UriSerializer,
83712
83715
  jm as UsageMarker,
@@ -83729,7 +83732,7 @@ export {
83729
83732
  Pg as Watch,
83730
83733
  Od as WebAR,
83731
83734
  nM as WebARCameraBackground,
83732
- cu as WebARSessionRoot,
83735
+ hu as WebARSessionRoot,
83733
83736
  St as WebXR,
83734
83737
  vl as WebXRAvatar,
83735
83738
  sn as WebXRController,
@@ -83762,7 +83765,7 @@ export {
83762
83765
  Gte as beginListenFileSpawn,
83763
83766
  m9 as beginListenInstantiate,
83764
83767
  aae as build_scene_functions,
83765
- nd as builtinComponentKeyName,
83768
+ sd as builtinComponentKeyName,
83766
83769
  pL as calculateProgress01,
83767
83770
  Aae as colorSerializer,
83768
83771
  ew as componentSerializer,
@@ -83862,7 +83865,7 @@ export {
83862
83865
  mae as removeCustomExtension,
83863
83866
  Tae as removeGltfLoadEventListener,
83864
83867
  tae as removePatch,
83865
- iu as resolveUrl,
83868
+ nu as resolveUrl,
83866
83869
  BN as sanitizeString,
83867
83870
  Fae as screenshot,
83868
83871
  f9 as sendDestroyed,