@alxxsck/ai-assistant 2.4.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { B as $s } from "./index-DCcf0hUc.js";
1
+ import { B as $s } from "./index-D9W50u8W.js";
2
2
  var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
3
  const Ul = "182", Hf = 0, bc = 1, Wf = 2, js = 1, Ku = 2, Gr = 3, di = 0, jt = 1, Zn = 2, $n = 0, ur = 1, Ac = 2, Ec = 3, wc = 4, Xf = 5, Ci = 100, qf = 101, Yf = 102, Kf = 103, Zf = 104, $f = 200, jf = 201, Jf = 202, Qf = 203, wo = 204, Ro = 205, ed = 206, td = 207, nd = 208, id = 209, rd = 210, sd = 211, ad = 212, od = 213, ld = 214, Co = 0, Po = 1, Io = 2, dr = 3, Do = 4, Lo = 5, Fo = 6, Uo = 7, xa = 0, cd = 1, ud = 2, Un = 0, Zu = 1, $u = 2, ju = 3, Ju = 4, Qu = 5, eh = 6, th = 7, Rc = "attached", hd = "detached", nh = 300, Oi = 301, pr = 302, aa = 303, No = 304, ya = 306, wt = 1e3, En = 1001, Oo = 1002, Lt = 1003, fd = 1004, Ss = 1005, kt = 1006, La = 1007, Ii = 1008, sn = 1009, ih = 1010, rh = 1011, ts = 1012, Nl = 1013, Bn = 1014, wn = 1015, Jn = 1016, Ol = 1017, Bl = 1018, ns = 1020, sh = 35902, ah = 35899, oh = 1021, lh = 1022, mn = 1023, Qn = 1026, Di = 1027, ch = 1028, kl = 1029, mr = 1030, Vl = 1031, zl = 1033, Js = 33776, Qs = 33777, ea = 33778, ta = 33779, Bo = 35840, ko = 35841, Vo = 35842, zo = 35843, Go = 36196, Ho = 37492, Wo = 37496, Xo = 37488, qo = 37489, Yo = 37490, Ko = 37491, Zo = 37808, $o = 37809, jo = 37810, Jo = 37811, Qo = 37812, el = 37813, tl = 37814, nl = 37815, il = 37816, rl = 37817, sl = 37818, al = 37819, ol = 37820, ll = 37821, cl = 36492, ul = 36494, hl = 36495, fl = 36283, dl = 36284, pl = 36285, ml = 36286, uh = 2200, dd = 2201, pd = 2202, oa = 2300, _l = 2301, Fa = 2302, sr = 2400, ar = 2401, la = 2402, Gl = 2500, md = 2501, _d = 3200, Sa = 0, gd = 1, ci = "", Ue = "srgb", _r = "srgb-linear", ca = "linear", nt = "srgb", Gi = 7680, Cc = 519, vd = 512, xd = 513, yd = 514, Hl = 515, Sd = 516, Md = 517, Wl = 518, Td = 519, Pc = 35044, Ic = "300 es", Fn = 2e3, ua = 2001;
4
4
  function hh(s) {
@@ -4972,8 +4972,8 @@ class Te {
4972
4972
  * @return {Matrix4} A reference to this matrix.
4973
4973
  */
4974
4974
  multiplyMatrices(e, t) {
4975
- const n = e.elements, i = t.elements, r = this.elements, a = n[0], o = n[4], c = n[8], u = n[12], d = n[1], l = n[5], h = n[9], f = n[13], p = n[2], g = n[6], _ = n[10], m = n[14], S = n[3], x = n[7], M = n[11], A = n[15], E = i[0], R = i[4], I = i[8], y = i[12], b = i[1], C = i[5], B = i[9], N = i[13], V = i[2], H = i[6], k = i[10], z = i[14], Z = i[3], te = i[7], se = i[11], he = i[15];
4976
- return r[0] = a * E + o * b + c * V + u * Z, r[4] = a * R + o * C + c * H + u * te, r[8] = a * I + o * B + c * k + u * se, r[12] = a * y + o * N + c * z + u * he, r[1] = d * E + l * b + h * V + f * Z, r[5] = d * R + l * C + h * H + f * te, r[9] = d * I + l * B + h * k + f * se, r[13] = d * y + l * N + h * z + f * he, r[2] = p * E + g * b + _ * V + m * Z, r[6] = p * R + g * C + _ * H + m * te, r[10] = p * I + g * B + _ * k + m * se, r[14] = p * y + g * N + _ * z + m * he, r[3] = S * E + x * b + M * V + A * Z, r[7] = S * R + x * C + M * H + A * te, r[11] = S * I + x * B + M * k + A * se, r[15] = S * y + x * N + M * z + A * he, this;
4975
+ const n = e.elements, i = t.elements, r = this.elements, a = n[0], o = n[4], c = n[8], u = n[12], d = n[1], l = n[5], h = n[9], f = n[13], p = n[2], g = n[6], _ = n[10], m = n[14], S = n[3], x = n[7], M = n[11], A = n[15], E = i[0], R = i[4], I = i[8], y = i[12], b = i[1], C = i[5], B = i[9], N = i[13], V = i[2], z = i[6], k = i[10], G = i[14], Z = i[3], te = i[7], se = i[11], he = i[15];
4976
+ return r[0] = a * E + o * b + c * V + u * Z, r[4] = a * R + o * C + c * z + u * te, r[8] = a * I + o * B + c * k + u * se, r[12] = a * y + o * N + c * G + u * he, r[1] = d * E + l * b + h * V + f * Z, r[5] = d * R + l * C + h * z + f * te, r[9] = d * I + l * B + h * k + f * se, r[13] = d * y + l * N + h * G + f * he, r[2] = p * E + g * b + _ * V + m * Z, r[6] = p * R + g * C + _ * z + m * te, r[10] = p * I + g * B + _ * k + m * se, r[14] = p * y + g * N + _ * G + m * he, r[3] = S * E + x * b + M * V + A * Z, r[7] = S * R + x * C + M * z + A * te, r[11] = S * I + x * B + M * k + A * se, r[15] = S * y + x * N + M * G + A * he, this;
4977
4977
  }
4978
4978
  /**
4979
4979
  * Multiplies every component of the matrix by the given scalar.
@@ -8468,22 +8468,22 @@ class _s extends on {
8468
8468
  let h = 0, f = 0;
8469
8469
  p("z", "y", "x", -1, -1, n, t, e, a, r, 0), p("z", "y", "x", 1, -1, n, t, -e, a, r, 1), p("x", "z", "y", 1, 1, e, n, t, i, a, 2), p("x", "z", "y", 1, -1, e, n, -t, i, a, 3), p("x", "y", "z", 1, -1, e, t, n, i, r, 4), p("x", "y", "z", -1, -1, e, t, -n, i, r, 5), this.setIndex(c), this.setAttribute("position", new Bt(u, 3)), this.setAttribute("normal", new Bt(d, 3)), this.setAttribute("uv", new Bt(l, 2));
8470
8470
  function p(g, _, m, S, x, M, A, E, R, I, y) {
8471
- const b = M / R, C = A / I, B = M / 2, N = A / 2, V = E / 2, H = R + 1, k = I + 1;
8472
- let z = 0, Z = 0;
8471
+ const b = M / R, C = A / I, B = M / 2, N = A / 2, V = E / 2, z = R + 1, k = I + 1;
8472
+ let G = 0, Z = 0;
8473
8473
  const te = new U();
8474
8474
  for (let se = 0; se < k; se++) {
8475
8475
  const he = se * C - N;
8476
- for (let Fe = 0; Fe < H; Fe++) {
8476
+ for (let Fe = 0; Fe < z; Fe++) {
8477
8477
  const Pe = Fe * b - B;
8478
- te[g] = Pe * S, te[_] = he * x, te[m] = V, u.push(te.x, te.y, te.z), te[g] = 0, te[_] = 0, te[m] = E > 0 ? 1 : -1, d.push(te.x, te.y, te.z), l.push(Fe / R), l.push(1 - se / I), z += 1;
8478
+ te[g] = Pe * S, te[_] = he * x, te[m] = V, u.push(te.x, te.y, te.z), te[g] = 0, te[_] = 0, te[m] = E > 0 ? 1 : -1, d.push(te.x, te.y, te.z), l.push(Fe / R), l.push(1 - se / I), G += 1;
8479
8479
  }
8480
8480
  }
8481
8481
  for (let se = 0; se < I; se++)
8482
8482
  for (let he = 0; he < R; he++) {
8483
- const Fe = h + he + H * se, Pe = h + he + H * (se + 1), lt = h + (he + 1) + H * (se + 1), $e = h + (he + 1) + H * se;
8483
+ const Fe = h + he + z * se, Pe = h + he + z * (se + 1), lt = h + (he + 1) + z * (se + 1), $e = h + (he + 1) + z * se;
8484
8484
  c.push(Fe, Pe, $e), c.push(Pe, lt, $e), Z += 6;
8485
8485
  }
8486
- o.addGroup(f, Z, y), f += Z, h += z;
8486
+ o.addGroup(f, Z, y), f += Z, h += G;
8487
8487
  }
8488
8488
  }
8489
8489
  copy(e) {
@@ -18141,9 +18141,9 @@ function i0(s, e) {
18141
18141
  const t = s.getParameter(s.MAX_VERTEX_ATTRIBS), n = {}, i = h(null);
18142
18142
  let r = i, a = !1;
18143
18143
  function o(b, C, B, N, V) {
18144
- let H = !1;
18144
+ let z = !1;
18145
18145
  const k = l(N, B, C);
18146
- r !== k && (r = k, u(r.object)), H = f(b, N, B, V), H && p(b, N, B, V), V !== null && e.update(V, s.ELEMENT_ARRAY_BUFFER), (H || a) && (a = !1, M(b, C, B, N), V !== null && s.bindBuffer(s.ELEMENT_ARRAY_BUFFER, e.get(V).buffer));
18146
+ r !== k && (r = k, u(r.object)), z = f(b, N, B, V), z && p(b, N, B, V), V !== null && e.update(V, s.ELEMENT_ARRAY_BUFFER), (z || a) && (a = !1, M(b, C, B, N), V !== null && s.bindBuffer(s.ELEMENT_ARRAY_BUFFER, e.get(V).buffer));
18147
18147
  }
18148
18148
  function c() {
18149
18149
  return s.createVertexArray();
@@ -18158,10 +18158,10 @@ function i0(s, e) {
18158
18158
  const N = B.wireframe === !0;
18159
18159
  let V = n[b.id];
18160
18160
  V === void 0 && (V = {}, n[b.id] = V);
18161
- let H = V[C.id];
18162
- H === void 0 && (H = {}, V[C.id] = H);
18163
- let k = H[N];
18164
- return k === void 0 && (k = h(c()), H[N] = k), k;
18161
+ let z = V[C.id];
18162
+ z === void 0 && (z = {}, V[C.id] = z);
18163
+ let k = z[N];
18164
+ return k === void 0 && (k = h(c()), z[N] = k), k;
18165
18165
  }
18166
18166
  function h(b) {
18167
18167
  const C = [], B = [], N = [];
@@ -18181,25 +18181,25 @@ function i0(s, e) {
18181
18181
  };
18182
18182
  }
18183
18183
  function f(b, C, B, N) {
18184
- const V = r.attributes, H = C.attributes;
18184
+ const V = r.attributes, z = C.attributes;
18185
18185
  let k = 0;
18186
- const z = B.getAttributes();
18187
- for (const Z in z)
18188
- if (z[Z].location >= 0) {
18186
+ const G = B.getAttributes();
18187
+ for (const Z in G)
18188
+ if (G[Z].location >= 0) {
18189
18189
  const se = V[Z];
18190
- let he = H[Z];
18190
+ let he = z[Z];
18191
18191
  if (he === void 0 && (Z === "instanceMatrix" && b.instanceMatrix && (he = b.instanceMatrix), Z === "instanceColor" && b.instanceColor && (he = b.instanceColor)), se === void 0 || se.attribute !== he || he && se.data !== he.data) return !0;
18192
18192
  k++;
18193
18193
  }
18194
18194
  return r.attributesNum !== k || r.index !== N;
18195
18195
  }
18196
18196
  function p(b, C, B, N) {
18197
- const V = {}, H = C.attributes;
18197
+ const V = {}, z = C.attributes;
18198
18198
  let k = 0;
18199
- const z = B.getAttributes();
18200
- for (const Z in z)
18201
- if (z[Z].location >= 0) {
18202
- let se = H[Z];
18199
+ const G = B.getAttributes();
18200
+ for (const Z in G)
18201
+ if (G[Z].location >= 0) {
18202
+ let se = z[Z];
18203
18203
  se === void 0 && (Z === "instanceMatrix" && b.instanceMatrix && (se = b.instanceMatrix), Z === "instanceColor" && b.instanceColor && (se = b.instanceColor));
18204
18204
  const he = {};
18205
18205
  he.attribute = se, se && se.data && (he.data = se.data), V[Z] = he, k++;
@@ -18223,17 +18223,17 @@ function i0(s, e) {
18223
18223
  for (let B = 0, N = C.length; B < N; B++)
18224
18224
  C[B] !== b[B] && (s.disableVertexAttribArray(B), C[B] = 0);
18225
18225
  }
18226
- function x(b, C, B, N, V, H, k) {
18227
- k === !0 ? s.vertexAttribIPointer(b, C, B, V, H) : s.vertexAttribPointer(b, C, B, N, V, H);
18226
+ function x(b, C, B, N, V, z, k) {
18227
+ k === !0 ? s.vertexAttribIPointer(b, C, B, V, z) : s.vertexAttribPointer(b, C, B, N, V, z);
18228
18228
  }
18229
18229
  function M(b, C, B, N) {
18230
18230
  g();
18231
- const V = N.attributes, H = B.getAttributes(), k = C.defaultAttributeValues;
18232
- for (const z in H) {
18233
- const Z = H[z];
18231
+ const V = N.attributes, z = B.getAttributes(), k = C.defaultAttributeValues;
18232
+ for (const G in z) {
18233
+ const Z = z[G];
18234
18234
  if (Z.location >= 0) {
18235
- let te = V[z];
18236
- if (te === void 0 && (z === "instanceMatrix" && b.instanceMatrix && (te = b.instanceMatrix), z === "instanceColor" && b.instanceColor && (te = b.instanceColor)), te !== void 0) {
18235
+ let te = V[G];
18236
+ if (te === void 0 && (G === "instanceMatrix" && b.instanceMatrix && (te = b.instanceMatrix), G === "instanceColor" && b.instanceColor && (te = b.instanceColor)), te !== void 0) {
18237
18237
  const se = te.normalized, he = te.itemSize, Fe = e.get(te);
18238
18238
  if (Fe === void 0) continue;
18239
18239
  const Pe = Fe.buffer, lt = Fe.type, $e = Fe.bytesPerElement, Y = lt === s.INT || lt === s.UNSIGNED_INT || te.gpuType === Nl;
@@ -18278,7 +18278,7 @@ function i0(s, e) {
18278
18278
  );
18279
18279
  }
18280
18280
  } else if (k !== void 0) {
18281
- const se = k[z];
18281
+ const se = k[G];
18282
18282
  if (se !== void 0)
18283
18283
  switch (se.length) {
18284
18284
  case 2:
@@ -19380,9 +19380,9 @@ function v0(s, e, t) {
19380
19380
  const I = x * 4;
19381
19381
  for (let b = 0; b < l; b++) {
19382
19382
  const C = _[b], B = m[b], N = S[b], V = M * A * 4 * b;
19383
- for (let H = 0; H < C.count; H++) {
19384
- const k = H * I;
19385
- f === !0 && (i.fromBufferAttribute(C, H), E[V + k + 0] = i.x, E[V + k + 1] = i.y, E[V + k + 2] = i.z, E[V + k + 3] = 0), p === !0 && (i.fromBufferAttribute(B, H), E[V + k + 4] = i.x, E[V + k + 5] = i.y, E[V + k + 6] = i.z, E[V + k + 7] = 0), g === !0 && (i.fromBufferAttribute(N, H), E[V + k + 8] = i.x, E[V + k + 9] = i.y, E[V + k + 10] = i.z, E[V + k + 11] = N.itemSize === 4 ? i.w : 1);
19383
+ for (let z = 0; z < C.count; z++) {
19384
+ const k = z * I;
19385
+ f === !0 && (i.fromBufferAttribute(C, z), E[V + k + 0] = i.x, E[V + k + 1] = i.y, E[V + k + 2] = i.z, E[V + k + 3] = 0), p === !0 && (i.fromBufferAttribute(B, z), E[V + k + 4] = i.x, E[V + k + 5] = i.y, E[V + k + 6] = i.z, E[V + k + 7] = 0), g === !0 && (i.fromBufferAttribute(N, z), E[V + k + 8] = i.x, E[V + k + 9] = i.y, E[V + k + 10] = i.z, E[V + k + 11] = N.itemSize === 4 ? i.w : 1);
19386
19386
  }
19387
19387
  }
19388
19388
  h = {
@@ -20516,7 +20516,7 @@ function Ov(s, e, t, n) {
20516
20516
  i.attachShader(g, A), i.attachShader(g, E), t.index0AttributeName !== void 0 ? i.bindAttribLocation(g, 0, t.index0AttributeName) : t.morphTargets === !0 && i.bindAttribLocation(g, 0, "position"), i.linkProgram(g);
20517
20517
  function R(C) {
20518
20518
  if (s.debug.checkShaderErrors) {
20519
- const B = i.getProgramInfoLog(g) || "", N = i.getShaderInfoLog(A) || "", V = i.getShaderInfoLog(E) || "", H = B.trim(), k = N.trim(), z = V.trim();
20519
+ const B = i.getProgramInfoLog(g) || "", N = i.getShaderInfoLog(A) || "", V = i.getShaderInfoLog(E) || "", z = B.trim(), k = N.trim(), G = V.trim();
20520
20520
  let Z = !0, te = !0;
20521
20521
  if (i.getProgramParameter(g, i.LINK_STATUS) === !1)
20522
20522
  if (Z = !1, typeof s.debug.onShaderError == "function")
@@ -20529,21 +20529,21 @@ function Ov(s, e, t, n) {
20529
20529
  Material Name: ` + C.name + `
20530
20530
  Material Type: ` + C.type + `
20531
20531
 
20532
- Program Info Log: ` + H + `
20532
+ Program Info Log: ` + z + `
20533
20533
  ` + se + `
20534
20534
  ` + he
20535
20535
  );
20536
20536
  }
20537
- else H !== "" ? be("WebGLProgram: Program Info Log:", H) : (k === "" || z === "") && (te = !1);
20537
+ else z !== "" ? be("WebGLProgram: Program Info Log:", z) : (k === "" || G === "") && (te = !1);
20538
20538
  te && (C.diagnostics = {
20539
20539
  runnable: Z,
20540
- programLog: H,
20540
+ programLog: z,
20541
20541
  vertexShader: {
20542
20542
  log: k,
20543
20543
  prefix: _
20544
20544
  },
20545
20545
  fragmentShader: {
20546
- log: z,
20546
+ log: G,
20547
20547
  prefix: m
20548
20548
  }
20549
20549
  });
@@ -20629,18 +20629,18 @@ function zv(s, e, t, n, i, r, a) {
20629
20629
  return u.add(y), y === 0 ? "uv" : `uv${y}`;
20630
20630
  }
20631
20631
  function _(y, b, C, B, N) {
20632
- const V = B.fog, H = N.geometry, k = y.isMeshStandardMaterial ? B.environment : null, z = (y.isMeshStandardMaterial ? t : e).get(y.envMap || k), Z = z && z.mapping === ya ? z.image.height : null, te = p[y.type];
20632
+ const V = B.fog, z = N.geometry, k = y.isMeshStandardMaterial ? B.environment : null, G = (y.isMeshStandardMaterial ? t : e).get(y.envMap || k), Z = G && G.mapping === ya ? G.image.height : null, te = p[y.type];
20633
20633
  y.precision !== null && (f = i.getMaxPrecision(y.precision), f !== y.precision && be("WebGLProgram.getParameters:", y.precision, "not supported, using", f, "instead."));
20634
- const se = H.morphAttributes.position || H.morphAttributes.normal || H.morphAttributes.color, he = se !== void 0 ? se.length : 0;
20634
+ const se = z.morphAttributes.position || z.morphAttributes.normal || z.morphAttributes.color, he = se !== void 0 ? se.length : 0;
20635
20635
  let Fe = 0;
20636
- H.morphAttributes.position !== void 0 && (Fe = 1), H.morphAttributes.normal !== void 0 && (Fe = 2), H.morphAttributes.color !== void 0 && (Fe = 3);
20636
+ z.morphAttributes.position !== void 0 && (Fe = 1), z.morphAttributes.normal !== void 0 && (Fe = 2), z.morphAttributes.color !== void 0 && (Fe = 3);
20637
20637
  let Pe, lt, $e, Y;
20638
20638
  if (te) {
20639
20639
  const et = Dn[te];
20640
20640
  Pe = et.vertexShader, lt = et.fragmentShader;
20641
20641
  } else
20642
20642
  Pe = y.vertexShader, lt = y.fragmentShader, c.update(y), $e = c.getVertexShaderID(y), Y = c.getFragmentShaderID(y);
20643
- const j = s.getRenderTarget(), de = s.state.buffers.depth.getReversed(), De = N.isInstancedMesh === !0, _e = N.isBatchedMesh === !0, Xe = !!y.map, St = !!y.matcap, We = !!z, Qe = !!y.aoMap, rt = !!y.lightMap, ke = !!y.bumpMap, Tt = !!y.normalMap, P = !!y.displacementMap, bt = !!y.emissiveMap, je = !!y.metalnessMap, ct = !!y.roughnessMap, xe = y.anisotropy > 0, w = y.clearcoat > 0, v = y.dispersion > 0, L = y.iridescence > 0, q = y.sheen > 0, $ = y.transmission > 0, X = xe && !!y.anisotropyMap, Se = w && !!y.clearcoatMap, ie = w && !!y.clearcoatNormalMap, ve = w && !!y.clearcoatRoughnessMap, Ce = L && !!y.iridescenceMap, Q = L && !!y.iridescenceThicknessMap, ae = q && !!y.sheenColorMap, ge = q && !!y.sheenRoughnessMap, ye = !!y.specularMap, re = !!y.specularColorMap, Ve = !!y.specularIntensityMap, D = $ && !!y.transmissionMap, ue = $ && !!y.thicknessMap, ee = !!y.gradientMap, fe = !!y.alphaMap, J = y.alphaTest > 0, K = !!y.alphaHash, ne = !!y.extensions;
20643
+ const j = s.getRenderTarget(), de = s.state.buffers.depth.getReversed(), De = N.isInstancedMesh === !0, _e = N.isBatchedMesh === !0, Xe = !!y.map, St = !!y.matcap, We = !!G, Qe = !!y.aoMap, rt = !!y.lightMap, ke = !!y.bumpMap, Tt = !!y.normalMap, P = !!y.displacementMap, bt = !!y.emissiveMap, je = !!y.metalnessMap, ct = !!y.roughnessMap, xe = y.anisotropy > 0, w = y.clearcoat > 0, v = y.dispersion > 0, L = y.iridescence > 0, q = y.sheen > 0, $ = y.transmission > 0, X = xe && !!y.anisotropyMap, Se = w && !!y.clearcoatMap, ie = w && !!y.clearcoatNormalMap, ve = w && !!y.clearcoatRoughnessMap, Ce = L && !!y.iridescenceMap, Q = L && !!y.iridescenceThicknessMap, ae = q && !!y.sheenColorMap, ge = q && !!y.sheenRoughnessMap, ye = !!y.specularMap, re = !!y.specularColorMap, Ve = !!y.specularIntensityMap, D = $ && !!y.transmissionMap, ue = $ && !!y.thicknessMap, ee = !!y.gradientMap, fe = !!y.alphaMap, J = y.alphaTest > 0, K = !!y.alphaHash, ne = !!y.extensions;
20644
20644
  let Le = Un;
20645
20645
  y.toneMapped && (j === null || j.isXRRenderTarget === !0) && (Le = s.toneMapping);
20646
20646
  const ut = {
@@ -20665,7 +20665,7 @@ function zv(s, e, t, n, i, r, a) {
20665
20665
  map: Xe,
20666
20666
  matcap: St,
20667
20667
  envMap: We,
20668
- envMapMode: We && z.mapping,
20668
+ envMapMode: We && G.mapping,
20669
20669
  envMapCubeUVHeight: Z,
20670
20670
  aoMap: Qe,
20671
20671
  lightMap: rt,
@@ -20727,10 +20727,10 @@ function zv(s, e, t, n, i, r, a) {
20727
20727
  thicknessMapUv: ue && g(y.thicknessMap.channel),
20728
20728
  alphaMapUv: fe && g(y.alphaMap.channel),
20729
20729
  //
20730
- vertexTangents: !!H.attributes.tangent && (Tt || xe),
20730
+ vertexTangents: !!z.attributes.tangent && (Tt || xe),
20731
20731
  vertexColors: y.vertexColors,
20732
- vertexAlphas: y.vertexColors === !0 && !!H.attributes.color && H.attributes.color.itemSize === 4,
20733
- pointsUvs: N.isPoints === !0 && !!H.attributes.uv && (Xe || fe),
20732
+ vertexAlphas: y.vertexColors === !0 && !!z.attributes.color && z.attributes.color.itemSize === 4,
20733
+ pointsUvs: N.isPoints === !0 && !!z.attributes.uv && (Xe || fe),
20734
20734
  fog: !!V,
20735
20735
  useFog: y.fog === !0,
20736
20736
  fogExp2: !!V && V.isFogExp2,
@@ -20739,9 +20739,9 @@ function zv(s, e, t, n, i, r, a) {
20739
20739
  logarithmicDepthBuffer: h,
20740
20740
  reversedDepthBuffer: de,
20741
20741
  skinning: N.isSkinnedMesh === !0,
20742
- morphTargets: H.morphAttributes.position !== void 0,
20743
- morphNormals: H.morphAttributes.normal !== void 0,
20744
- morphColors: H.morphAttributes.color !== void 0,
20742
+ morphTargets: z.morphAttributes.position !== void 0,
20743
+ morphNormals: z.morphAttributes.normal !== void 0,
20744
+ morphColors: z.morphAttributes.color !== void 0,
20745
20745
  morphTargetsCount: he,
20746
20746
  morphTextureStride: Fe,
20747
20747
  numDirLights: b.directional.length,
@@ -21068,8 +21068,8 @@ function Zv(s) {
21068
21068
  u.sort(Kv);
21069
21069
  for (let y = 0, b = u.length; y < b; y++) {
21070
21070
  const C = u[y], B = C.color, N = C.intensity, V = C.distance;
21071
- let H = null;
21072
- if (C.shadow && C.shadow.map && (C.shadow.map.texture.format === mr ? H = C.shadow.map.texture : H = C.shadow.map.depthTexture || C.shadow.map.texture), C.isAmbientLight)
21071
+ let z = null;
21072
+ if (C.shadow && C.shadow.map && (C.shadow.map.texture.format === mr ? z = C.shadow.map.texture : z = C.shadow.map.depthTexture || C.shadow.map.texture), C.isAmbientLight)
21073
21073
  d += B.r * N, l += B.g * N, h += B.b * N;
21074
21074
  else if (C.isLightProbe) {
21075
21075
  for (let k = 0; k < 9; k++)
@@ -21078,17 +21078,17 @@ function Zv(s) {
21078
21078
  } else if (C.isDirectionalLight) {
21079
21079
  const k = e.get(C);
21080
21080
  if (k.color.copy(C.color).multiplyScalar(C.intensity), C.castShadow) {
21081
- const z = C.shadow, Z = t.get(C);
21082
- Z.shadowIntensity = z.intensity, Z.shadowBias = z.bias, Z.shadowNormalBias = z.normalBias, Z.shadowRadius = z.radius, Z.shadowMapSize = z.mapSize, n.directionalShadow[f] = Z, n.directionalShadowMap[f] = H, n.directionalShadowMatrix[f] = C.shadow.matrix, S++;
21081
+ const G = C.shadow, Z = t.get(C);
21082
+ Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, n.directionalShadow[f] = Z, n.directionalShadowMap[f] = z, n.directionalShadowMatrix[f] = C.shadow.matrix, S++;
21083
21083
  }
21084
21084
  n.directional[f] = k, f++;
21085
21085
  } else if (C.isSpotLight) {
21086
21086
  const k = e.get(C);
21087
21087
  k.position.setFromMatrixPosition(C.matrixWorld), k.color.copy(B).multiplyScalar(N), k.distance = V, k.coneCos = Math.cos(C.angle), k.penumbraCos = Math.cos(C.angle * (1 - C.penumbra)), k.decay = C.decay, n.spot[g] = k;
21088
- const z = C.shadow;
21089
- if (C.map && (n.spotLightMap[A] = C.map, A++, z.updateMatrices(C), C.castShadow && E++), n.spotLightMatrix[g] = z.matrix, C.castShadow) {
21088
+ const G = C.shadow;
21089
+ if (C.map && (n.spotLightMap[A] = C.map, A++, G.updateMatrices(C), C.castShadow && E++), n.spotLightMatrix[g] = G.matrix, C.castShadow) {
21090
21090
  const Z = t.get(C);
21091
- Z.shadowIntensity = z.intensity, Z.shadowBias = z.bias, Z.shadowNormalBias = z.normalBias, Z.shadowRadius = z.radius, Z.shadowMapSize = z.mapSize, n.spotShadow[g] = Z, n.spotShadowMap[g] = H, M++;
21091
+ Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, n.spotShadow[g] = Z, n.spotShadowMap[g] = z, M++;
21092
21092
  }
21093
21093
  g++;
21094
21094
  } else if (C.isRectAreaLight) {
@@ -21097,8 +21097,8 @@ function Zv(s) {
21097
21097
  } else if (C.isPointLight) {
21098
21098
  const k = e.get(C);
21099
21099
  if (k.color.copy(C.color).multiplyScalar(C.intensity), k.distance = C.distance, k.decay = C.decay, C.castShadow) {
21100
- const z = C.shadow, Z = t.get(C);
21101
- Z.shadowIntensity = z.intensity, Z.shadowBias = z.bias, Z.shadowNormalBias = z.normalBias, Z.shadowRadius = z.radius, Z.shadowMapSize = z.mapSize, Z.shadowCameraNear = z.camera.near, Z.shadowCameraFar = z.camera.far, n.pointShadow[p] = Z, n.pointShadowMap[p] = H, n.pointShadowMatrix[p] = C.shadow.matrix, x++;
21100
+ const G = C.shadow, Z = t.get(C);
21101
+ Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, Z.shadowCameraNear = G.camera.near, Z.shadowCameraFar = G.camera.far, n.pointShadow[p] = Z, n.pointShadowMap[p] = z, n.pointShadowMatrix[p] = C.shadow.matrix, x++;
21102
21102
  }
21103
21103
  n.point[p] = k, p++;
21104
21104
  } else if (C.isHemisphereLight) {
@@ -21262,44 +21262,44 @@ function tx(s, e, t) {
21262
21262
  B.setBlending($n), B.buffers.depth.getReversed() === !0 ? B.buffers.color.setClear(0, 0, 0, 0) : B.buffers.color.setClear(1, 1, 1, 1), B.buffers.depth.setTest(!0), B.setScissorTest(!1);
21263
21263
  const N = m !== this.type;
21264
21264
  N && R.traverse(function(V) {
21265
- V.material && (Array.isArray(V.material) ? V.material.forEach((H) => H.needsUpdate = !0) : V.material.needsUpdate = !0);
21265
+ V.material && (Array.isArray(V.material) ? V.material.forEach((z) => z.needsUpdate = !0) : V.material.needsUpdate = !0);
21266
21266
  });
21267
- for (let V = 0, H = E.length; V < H; V++) {
21268
- const k = E[V], z = k.shadow;
21269
- if (z === void 0) {
21267
+ for (let V = 0, z = E.length; V < z; V++) {
21268
+ const k = E[V], G = k.shadow;
21269
+ if (G === void 0) {
21270
21270
  be("WebGLShadowMap:", k, "has no shadow.");
21271
21271
  continue;
21272
21272
  }
21273
- if (z.autoUpdate === !1 && z.needsUpdate === !1) continue;
21274
- i.copy(z.mapSize);
21275
- const Z = z.getFrameExtents();
21276
- if (i.multiply(Z), r.copy(z.mapSize), (i.x > d || i.y > d) && (i.x > d && (r.x = Math.floor(d / Z.x), i.x = r.x * Z.x, z.mapSize.x = r.x), i.y > d && (r.y = Math.floor(d / Z.y), i.y = r.y * Z.y, z.mapSize.y = r.y)), z.map === null || N === !0) {
21277
- if (z.map !== null && (z.map.depthTexture !== null && (z.map.depthTexture.dispose(), z.map.depthTexture = null), z.map.dispose()), this.type === Gr) {
21273
+ if (G.autoUpdate === !1 && G.needsUpdate === !1) continue;
21274
+ i.copy(G.mapSize);
21275
+ const Z = G.getFrameExtents();
21276
+ if (i.multiply(Z), r.copy(G.mapSize), (i.x > d || i.y > d) && (i.x > d && (r.x = Math.floor(d / Z.x), i.x = r.x * Z.x, G.mapSize.x = r.x), i.y > d && (r.y = Math.floor(d / Z.y), i.y = r.y * Z.y, G.mapSize.y = r.y)), G.map === null || N === !0) {
21277
+ if (G.map !== null && (G.map.depthTexture !== null && (G.map.depthTexture.dispose(), G.map.depthTexture = null), G.map.dispose()), this.type === Gr) {
21278
21278
  if (k.isPointLight) {
21279
21279
  be("WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.");
21280
21280
  continue;
21281
21281
  }
21282
- z.map = new Nn(i.x, i.y, {
21282
+ G.map = new Nn(i.x, i.y, {
21283
21283
  format: mr,
21284
21284
  type: Jn,
21285
21285
  minFilter: kt,
21286
21286
  magFilter: kt,
21287
21287
  generateMipmaps: !1
21288
- }), z.map.texture.name = k.name + ".shadowMap", z.map.depthTexture = new ss(i.x, i.y, wn), z.map.depthTexture.name = k.name + ".shadowMapDepth", z.map.depthTexture.format = Qn, z.map.depthTexture.compareFunction = null, z.map.depthTexture.minFilter = Lt, z.map.depthTexture.magFilter = Lt;
21288
+ }), G.map.texture.name = k.name + ".shadowMap", G.map.depthTexture = new ss(i.x, i.y, wn), G.map.depthTexture.name = k.name + ".shadowMapDepth", G.map.depthTexture.format = Qn, G.map.depthTexture.compareFunction = null, G.map.depthTexture.minFilter = Lt, G.map.depthTexture.magFilter = Lt;
21289
21289
  } else {
21290
- k.isPointLight ? (z.map = new xh(i.x), z.map.depthTexture = new yp(i.x, Bn)) : (z.map = new Nn(i.x, i.y), z.map.depthTexture = new ss(i.x, i.y, Bn)), z.map.depthTexture.name = k.name + ".shadowMap", z.map.depthTexture.format = Qn;
21290
+ k.isPointLight ? (G.map = new xh(i.x), G.map.depthTexture = new yp(i.x, Bn)) : (G.map = new Nn(i.x, i.y), G.map.depthTexture = new ss(i.x, i.y, Bn)), G.map.depthTexture.name = k.name + ".shadowMap", G.map.depthTexture.format = Qn;
21291
21291
  const se = s.state.buffers.depth.getReversed();
21292
- this.type === js ? (z.map.depthTexture.compareFunction = se ? Wl : Hl, z.map.depthTexture.minFilter = kt, z.map.depthTexture.magFilter = kt) : (z.map.depthTexture.compareFunction = null, z.map.depthTexture.minFilter = Lt, z.map.depthTexture.magFilter = Lt);
21292
+ this.type === js ? (G.map.depthTexture.compareFunction = se ? Wl : Hl, G.map.depthTexture.minFilter = kt, G.map.depthTexture.magFilter = kt) : (G.map.depthTexture.compareFunction = null, G.map.depthTexture.minFilter = Lt, G.map.depthTexture.magFilter = Lt);
21293
21293
  }
21294
- z.camera.updateProjectionMatrix();
21294
+ G.camera.updateProjectionMatrix();
21295
21295
  }
21296
- const te = z.map.isWebGLCubeRenderTarget ? 6 : 1;
21296
+ const te = G.map.isWebGLCubeRenderTarget ? 6 : 1;
21297
21297
  for (let se = 0; se < te; se++) {
21298
- if (z.map.isWebGLCubeRenderTarget)
21299
- s.setRenderTarget(z.map, se), s.clear();
21298
+ if (G.map.isWebGLCubeRenderTarget)
21299
+ s.setRenderTarget(G.map, se), s.clear();
21300
21300
  else {
21301
- se === 0 && (s.setRenderTarget(z.map), s.clear());
21302
- const he = z.getViewport(se);
21301
+ se === 0 && (s.setRenderTarget(G.map), s.clear());
21302
+ const he = G.getViewport(se);
21303
21303
  a.set(
21304
21304
  r.x * he.x,
21305
21305
  r.y * he.y,
@@ -21308,13 +21308,13 @@ function tx(s, e, t) {
21308
21308
  ), B.viewport(a);
21309
21309
  }
21310
21310
  if (k.isPointLight) {
21311
- const he = z.camera, Fe = z.matrix, Pe = k.distance || he.far;
21312
- Pe !== he.far && (he.far = Pe, he.updateProjectionMatrix()), zr.setFromMatrixPosition(k.matrixWorld), he.position.copy(zr), po.copy(he.position), po.add(Qv[se]), he.up.copy(ex[se]), he.lookAt(po), he.updateMatrixWorld(), Fe.makeTranslation(-zr.x, -zr.y, -zr.z), Uu.multiplyMatrices(he.projectionMatrix, he.matrixWorldInverse), z._frustum.setFromProjectionMatrix(Uu, he.coordinateSystem, he.reversedDepth);
21311
+ const he = G.camera, Fe = G.matrix, Pe = k.distance || he.far;
21312
+ Pe !== he.far && (he.far = Pe, he.updateProjectionMatrix()), zr.setFromMatrixPosition(k.matrixWorld), he.position.copy(zr), po.copy(he.position), po.add(Qv[se]), he.up.copy(ex[se]), he.lookAt(po), he.updateMatrixWorld(), Fe.makeTranslation(-zr.x, -zr.y, -zr.z), Uu.multiplyMatrices(he.projectionMatrix, he.matrixWorldInverse), G._frustum.setFromProjectionMatrix(Uu, he.coordinateSystem, he.reversedDepth);
21313
21313
  } else
21314
- z.updateMatrices(k);
21315
- n = z.getFrustum(), M(R, I, z.camera, k, this.type);
21314
+ G.updateMatrices(k);
21315
+ n = G.getFrustum(), M(R, I, G.camera, k, this.type);
21316
21316
  }
21317
- z.isPointLightShadow !== !0 && this.type === Gr && S(z, I), z.needsUpdate = !1;
21317
+ G.isPointLightShadow !== !0 && this.type === Gr && S(G, I), G.needsUpdate = !1;
21318
21318
  }
21319
21319
  m = this.type, _.needsUpdate = !1, s.setRenderTarget(y, b, C);
21320
21320
  };
@@ -21334,8 +21334,8 @@ function tx(s, e, t) {
21334
21334
  const B = b.uuid, N = R.uuid;
21335
21335
  let V = u[B];
21336
21336
  V === void 0 && (V = {}, u[B] = V);
21337
- let H = V[N];
21338
- H === void 0 && (H = b.clone(), V[N] = H, R.addEventListener("dispose", A)), b = H;
21337
+ let z = V[N];
21338
+ z === void 0 && (z = b.clone(), V[N] = z, R.addEventListener("dispose", A)), b = z;
21339
21339
  }
21340
21340
  if (b.visible = R.visible, b.wireframe = R.wireframe, y === Gr ? b.side = R.shadowSide !== null ? R.shadowSide : R.side : b.side = R.shadowSide !== null ? R.shadowSide : l[R.side], b.alphaMap = R.alphaMap, b.alphaTest = R.alphaToCoverage === !0 ? 0.5 : R.alphaTest, b.map = R.map, b.clipShadows = R.clipShadows, b.clippingPlanes = R.clippingPlanes, b.clipIntersection = R.clipIntersection, b.displacementMap = R.displacementMap, b.displacementScale = R.displacementScale, b.displacementBias = R.displacementBias, b.wireframeLinewidth = R.wireframeLinewidth, b.linewidth = R.linewidth, I.isPointLight === !0 && b.isMeshDistanceMaterial === !0) {
21341
21341
  const B = s.properties.get(b);
@@ -21349,17 +21349,17 @@ function tx(s, e, t) {
21349
21349
  E.modelViewMatrix.multiplyMatrices(I.matrixWorldInverse, E.matrixWorld);
21350
21350
  const N = e.update(E), V = E.material;
21351
21351
  if (Array.isArray(V)) {
21352
- const H = N.groups;
21353
- for (let k = 0, z = H.length; k < z; k++) {
21354
- const Z = H[k], te = V[Z.materialIndex];
21352
+ const z = N.groups;
21353
+ for (let k = 0, G = z.length; k < G; k++) {
21354
+ const Z = z[k], te = V[Z.materialIndex];
21355
21355
  if (te && te.visible) {
21356
21356
  const se = x(E, te, y, b);
21357
21357
  E.onBeforeShadow(s, E, R, I, N, se, Z), s.renderBufferDirect(I, null, N, se, E, Z), E.onAfterShadow(s, E, R, I, N, se, Z);
21358
21358
  }
21359
21359
  }
21360
21360
  } else if (V.visible) {
21361
- const H = x(E, V, y, b);
21362
- E.onBeforeShadow(s, E, R, I, N, H, null), s.renderBufferDirect(I, null, N, H, E, null), E.onAfterShadow(s, E, R, I, N, H, null);
21361
+ const z = x(E, V, y, b);
21362
+ E.onBeforeShadow(s, E, R, I, N, z, null), s.renderBufferDirect(I, null, N, z, E, null), E.onAfterShadow(s, E, R, I, N, z, null);
21363
21363
  }
21364
21364
  }
21365
21365
  const B = E.children;
@@ -21497,10 +21497,10 @@ function ix(s, e) {
21497
21497
  }
21498
21498
  const r = new t(), a = new n(), o = new i(), c = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap();
21499
21499
  let d = {}, l = {}, h = /* @__PURE__ */ new WeakMap(), f = [], p = null, g = !1, _ = null, m = null, S = null, x = null, M = null, A = null, E = null, R = new Ie(0, 0, 0), I = 0, y = !1, b = null, C = null, B = null, N = null, V = null;
21500
- const H = s.getParameter(s.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
21501
- let k = !1, z = 0;
21500
+ const z = s.getParameter(s.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
21501
+ let k = !1, G = 0;
21502
21502
  const Z = s.getParameter(s.VERSION);
21503
- Z.indexOf("WebGL") !== -1 ? (z = parseFloat(/^WebGL (\d)/.exec(Z)[1]), k = z >= 1) : Z.indexOf("OpenGL ES") !== -1 && (z = parseFloat(/^OpenGL ES (\d)/.exec(Z)[1]), k = z >= 2);
21503
+ Z.indexOf("WebGL") !== -1 ? (G = parseFloat(/^WebGL (\d)/.exec(Z)[1]), k = G >= 1) : Z.indexOf("OpenGL ES") !== -1 && (G = parseFloat(/^OpenGL ES (\d)/.exec(Z)[1]), k = G >= 2);
21504
21504
  let te = null, se = {};
21505
21505
  const he = s.getParameter(s.SCISSOR_BOX), Fe = s.getParameter(s.VIEWPORT), Pe = new Je().fromArray(he), lt = new Je().fromArray(Fe);
21506
21506
  function $e(D, ue, ee, fe) {
@@ -21633,10 +21633,10 @@ function ix(s, e) {
21633
21633
  D ? j(s.SCISSOR_TEST) : de(s.SCISSOR_TEST);
21634
21634
  }
21635
21635
  function ct(D) {
21636
- D === void 0 && (D = s.TEXTURE0 + H - 1), te !== D && (s.activeTexture(D), te = D);
21636
+ D === void 0 && (D = s.TEXTURE0 + z - 1), te !== D && (s.activeTexture(D), te = D);
21637
21637
  }
21638
21638
  function xe(D, ue, ee) {
21639
- ee === void 0 && (te === null ? ee = s.TEXTURE0 + H - 1 : ee = te);
21639
+ ee === void 0 && (te === null ? ee = s.TEXTURE0 + z - 1 : ee = te);
21640
21640
  let fe = se[ee];
21641
21641
  fe === void 0 && (fe = { type: void 0, texture: void 0 }, se[ee] = fe), (fe.type !== D || fe.texture !== ue) && (te !== ee && (s.activeTexture(ee), te = ee), s.bindTexture(D, ue || Y[D]), fe.type = D, fe.texture = ue);
21642
21642
  }
@@ -21887,7 +21887,7 @@ function rx(s, e, t, n, i, r, a) {
21887
21887
  const v = [];
21888
21888
  return v.push(w.wrapS), v.push(w.wrapT), v.push(w.wrapR || 0), v.push(w.magFilter), v.push(w.minFilter), v.push(w.anisotropy), v.push(w.internalFormat), v.push(w.format), v.push(w.type), v.push(w.generateMipmaps), v.push(w.premultiplyAlpha), v.push(w.flipY), v.push(w.unpackAlignment), v.push(w.colorSpace), v.join();
21889
21889
  }
21890
- function H(w, v) {
21890
+ function z(w, v) {
21891
21891
  const L = n.get(w);
21892
21892
  if (w.isVideoTexture && je(w), w.isRenderTargetTexture === !1 && w.isExternalTexture !== !0 && w.version > 0 && L.__version !== w.version) {
21893
21893
  const q = w.image;
@@ -21910,7 +21910,7 @@ function rx(s, e, t, n, i, r, a) {
21910
21910
  } else w.isExternalTexture && (L.__webglTexture = w.sourceTexture ? w.sourceTexture : null);
21911
21911
  t.bindTexture(s.TEXTURE_2D_ARRAY, L.__webglTexture, s.TEXTURE0 + v);
21912
21912
  }
21913
- function z(w, v) {
21913
+ function G(w, v) {
21914
21914
  const L = n.get(w);
21915
21915
  if (w.isRenderTargetTexture === !1 && w.version > 0 && L.__version !== w.version) {
21916
21916
  Y(L, w, v);
@@ -22192,7 +22192,7 @@ function rx(s, e, t, n, i, r, a) {
22192
22192
  s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + ge, 0, ae, v.width, v.height, 0, Ce, Q, null);
22193
22193
  }
22194
22194
  } else
22195
- H(v.depthTexture, 0);
22195
+ z(v.depthTexture, 0);
22196
22196
  const X = $.__webglTexture, Se = P(v), ie = q ? s.TEXTURE_CUBE_MAP_POSITIVE_X + L : s.TEXTURE_2D, ve = v.depthTexture.format === Di ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT;
22197
22197
  if (v.depthTexture.format === Qn)
22198
22198
  bt(v) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, ve, ie, X, 0, Se) : s.framebufferTexture2D(s.FRAMEBUFFER, ve, ie, X, 0);
@@ -22370,7 +22370,7 @@ function rx(s, e, t, n, i, r, a) {
22370
22370
  function xe(w) {
22371
22371
  return typeof HTMLImageElement < "u" && w instanceof HTMLImageElement ? (u.width = w.naturalWidth || w.width, u.height = w.naturalHeight || w.height) : typeof VideoFrame < "u" && w instanceof VideoFrame ? (u.width = w.displayWidth, u.height = w.displayHeight) : (u.width = w.width, u.height = w.height), u;
22372
22372
  }
22373
- this.allocateTextureUnit = N, this.resetTextureUnits = B, this.setTexture2D = H, this.setTexture2DArray = k, this.setTexture3D = z, this.setTextureCube = Z, this.rebindTextures = St, this.setupRenderTarget = We, this.updateRenderTargetMipmap = Qe, this.updateMultisampleRenderTarget = Tt, this.setupDepthRenderbuffer = Xe, this.setupFrameBufferTexture = de, this.useMultisampledRTT = bt, this.isReversedDepthBuffer = function() {
22373
+ this.allocateTextureUnit = N, this.resetTextureUnits = B, this.setTexture2D = z, this.setTexture2DArray = k, this.setTexture3D = G, this.setTextureCube = Z, this.rebindTextures = St, this.setupRenderTarget = We, this.updateRenderTargetMipmap = Qe, this.updateMultisampleRenderTarget = Tt, this.setupDepthRenderbuffer = Xe, this.setupFrameBufferTexture = de, this.useMultisampledRTT = bt, this.isReversedDepthBuffer = function() {
22374
22374
  return t.buffers.depth.getReversed();
22375
22375
  };
22376
22376
  }
@@ -22582,7 +22582,7 @@ class cx extends ki {
22582
22582
  let j = A[Y];
22583
22583
  return j === void 0 && (j = new to(), A[Y] = j), j.getHandSpace();
22584
22584
  };
22585
- function H(Y) {
22585
+ function z(Y) {
22586
22586
  const j = E.indexOf(Y.inputSource);
22587
22587
  if (j === -1)
22588
22588
  return;
@@ -22590,7 +22590,7 @@ class cx extends ki {
22590
22590
  de !== void 0 && (de.update(Y.inputSource, Y.frame, u || a), de.dispatchEvent({ type: Y.type, data: Y.inputSource }));
22591
22591
  }
22592
22592
  function k() {
22593
- i.removeEventListener("select", H), i.removeEventListener("selectstart", H), i.removeEventListener("selectend", H), i.removeEventListener("squeeze", H), i.removeEventListener("squeezestart", H), i.removeEventListener("squeezeend", H), i.removeEventListener("end", k), i.removeEventListener("inputsourceschange", z);
22593
+ i.removeEventListener("select", z), i.removeEventListener("selectstart", z), i.removeEventListener("selectend", z), i.removeEventListener("squeeze", z), i.removeEventListener("squeezestart", z), i.removeEventListener("squeezeend", z), i.removeEventListener("end", k), i.removeEventListener("inputsourceschange", G);
22594
22594
  for (let Y = 0; Y < A.length; Y++) {
22595
22595
  const j = E[Y];
22596
22596
  j !== null && (E[Y] = null, A[Y].disconnect(j));
@@ -22618,7 +22618,7 @@ class cx extends ki {
22618
22618
  return i;
22619
22619
  }, this.setSession = async function(Y) {
22620
22620
  if (i = Y, i !== null) {
22621
- if (x = e.getRenderTarget(), i.addEventListener("select", H), i.addEventListener("selectstart", H), i.addEventListener("selectend", H), i.addEventListener("squeeze", H), i.addEventListener("squeezestart", H), i.addEventListener("squeezeend", H), i.addEventListener("end", k), i.addEventListener("inputsourceschange", z), S.xrCompatible !== !0 && await t.makeXRCompatible(), I = e.getPixelRatio(), e.getSize(R), g && "createProjectionLayer" in XRWebGLBinding.prototype) {
22621
+ if (x = e.getRenderTarget(), i.addEventListener("select", z), i.addEventListener("selectstart", z), i.addEventListener("selectend", z), i.addEventListener("squeeze", z), i.addEventListener("squeezestart", z), i.addEventListener("squeezeend", z), i.addEventListener("end", k), i.addEventListener("inputsourceschange", G), S.xrCompatible !== !0 && await t.makeXRCompatible(), I = e.getPixelRatio(), e.getSize(R), g && "createProjectionLayer" in XRWebGLBinding.prototype) {
22622
22622
  let de = null, De = null, _e = null;
22623
22623
  S.depth && (_e = S.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, de = S.stencil ? Di : Qn, De = S.stencil ? ns : Bn);
22624
22624
  const Xe = {
@@ -22669,7 +22669,7 @@ class cx extends ki {
22669
22669
  }, this.getDepthTexture = function() {
22670
22670
  return _.getDepthTexture();
22671
22671
  };
22672
- function z(Y) {
22672
+ function G(Y) {
22673
22673
  for (let j = 0; j < Y.removed.length; j++) {
22674
22674
  const de = Y.removed[j], De = E.indexOf(de);
22675
22675
  De >= 0 && (E[De] = null, A[De].disconnect(de));
@@ -22880,9 +22880,9 @@ function fx(s, e, t, n) {
22880
22880
  if (f(C, E, y, A) === !0) {
22881
22881
  const B = C.__offset, N = Array.isArray(C.value) ? C.value : [C.value];
22882
22882
  let V = 0;
22883
- for (let H = 0; H < N.length; H++) {
22884
- const k = N[H], z = g(k);
22885
- typeof k == "number" || typeof k == "boolean" ? (C.__data[0] = k, s.bufferSubData(s.UNIFORM_BUFFER, B + V, C.__data)) : k.isMatrix3 ? (C.__data[0] = k.elements[0], C.__data[1] = k.elements[1], C.__data[2] = k.elements[2], C.__data[3] = 0, C.__data[4] = k.elements[3], C.__data[5] = k.elements[4], C.__data[6] = k.elements[5], C.__data[7] = 0, C.__data[8] = k.elements[6], C.__data[9] = k.elements[7], C.__data[10] = k.elements[8], C.__data[11] = 0) : (k.toArray(C.__data, V), V += z.storage / Float32Array.BYTES_PER_ELEMENT);
22883
+ for (let z = 0; z < N.length; z++) {
22884
+ const k = N[z], G = g(k);
22885
+ typeof k == "number" || typeof k == "boolean" ? (C.__data[0] = k, s.bufferSubData(s.UNIFORM_BUFFER, B + V, C.__data)) : k.isMatrix3 ? (C.__data[0] = k.elements[0], C.__data[1] = k.elements[1], C.__data[2] = k.elements[2], C.__data[3] = 0, C.__data[4] = k.elements[3], C.__data[5] = k.elements[4], C.__data[6] = k.elements[5], C.__data[7] = 0, C.__data[8] = k.elements[6], C.__data[9] = k.elements[7], C.__data[10] = k.elements[8], C.__data[11] = 0) : (k.toArray(C.__data, V), V += G.storage / Float32Array.BYTES_PER_ELEMENT);
22886
22886
  }
22887
22887
  s.bufferSubData(s.UNIFORM_BUFFER, B, C.__data);
22888
22888
  }
@@ -22912,9 +22912,9 @@ function fx(s, e, t, n) {
22912
22912
  const y = Array.isArray(x[R]) ? x[R] : [x[R]];
22913
22913
  for (let b = 0, C = y.length; b < C; b++) {
22914
22914
  const B = y[b], N = Array.isArray(B.value) ? B.value : [B.value];
22915
- for (let V = 0, H = N.length; V < H; V++) {
22916
- const k = N[V], z = g(k), Z = M % A, te = Z % z.boundary, se = Z + te;
22917
- M += te, se !== 0 && A - se < z.storage && (M += A - se), B.__data = new Float32Array(z.storage / Float32Array.BYTES_PER_ELEMENT), B.__offset = M, M += z.storage;
22915
+ for (let V = 0, z = N.length; V < z; V++) {
22916
+ const k = N[V], G = g(k), Z = M % A, te = Z % G.boundary, se = Z + te;
22917
+ M += te, se !== 0 && A - se < G.storage && (M += A - se), B.__data = new Float32Array(G.storage / Float32Array.BYTES_PER_ELEMENT), B.__offset = M, M += G.storage;
22918
22918
  }
22919
22919
  }
22920
22920
  }
@@ -23524,8 +23524,8 @@ class mx {
23524
23524
  const y = this;
23525
23525
  let b = !1;
23526
23526
  this._outputColorSpace = Ue;
23527
- let C = 0, B = 0, N = null, V = -1, H = null;
23528
- const k = new Je(), z = new Je();
23527
+ let C = 0, B = 0, N = null, V = -1, z = null;
23528
+ const k = new Je(), G = new Je();
23529
23529
  let Z = null;
23530
23530
  const te = new Ie(0);
23531
23531
  let se = 0, he = t.width, Fe = t.height, Pe = 1, lt = null, $e = null;
@@ -23610,12 +23610,12 @@ class mx {
23610
23610
  return T.copy(k);
23611
23611
  }, this.getViewport = function(T) {
23612
23612
  return T.copy(Y);
23613
- }, this.setViewport = function(T, F, W, G) {
23614
- T.isVector4 ? Y.set(T.x, T.y, T.z, T.w) : Y.set(T, F, W, G), xe.viewport(k.copy(Y).multiplyScalar(Pe).round());
23613
+ }, this.setViewport = function(T, F, W, H) {
23614
+ T.isVector4 ? Y.set(T.x, T.y, T.z, T.w) : Y.set(T, F, W, H), xe.viewport(k.copy(Y).multiplyScalar(Pe).round());
23615
23615
  }, this.getScissor = function(T) {
23616
23616
  return T.copy(j);
23617
- }, this.setScissor = function(T, F, W, G) {
23618
- T.isVector4 ? j.set(T.x, T.y, T.z, T.w) : j.set(T, F, W, G), xe.scissor(z.copy(j).multiplyScalar(Pe).round());
23617
+ }, this.setScissor = function(T, F, W, H) {
23618
+ T.isVector4 ? j.set(T.x, T.y, T.z, T.w) : j.set(T, F, W, H), xe.scissor(G.copy(j).multiplyScalar(Pe).round());
23619
23619
  }, this.getScissorTest = function() {
23620
23620
  return de;
23621
23621
  }, this.setScissorTest = function(T) {
@@ -23633,7 +23633,7 @@ class mx {
23633
23633
  }, this.setClearAlpha = function() {
23634
23634
  re.setClearAlpha(...arguments);
23635
23635
  }, this.clear = function(T = !0, F = !0, W = !0) {
23636
- let G = 0;
23636
+ let H = 0;
23637
23637
  if (T) {
23638
23638
  let O = !1;
23639
23639
  if (N !== null) {
@@ -23644,9 +23644,9 @@ class mx {
23644
23644
  const oe = N.texture.type, pe = m.has(oe), ce = re.getClearColor(), me = re.getClearAlpha(), Me = ce.r, we = ce.g, Ae = ce.b;
23645
23645
  pe ? (S[0] = Me, S[1] = we, S[2] = Ae, S[3] = me, P.clearBufferuiv(P.COLOR, 0, S)) : (x[0] = Me, x[1] = we, x[2] = Ae, x[3] = me, P.clearBufferiv(P.COLOR, 0, x));
23646
23646
  } else
23647
- G |= P.COLOR_BUFFER_BIT;
23647
+ H |= P.COLOR_BUFFER_BIT;
23648
23648
  }
23649
- F && (G |= P.DEPTH_BUFFER_BIT), W && (G |= P.STENCIL_BUFFER_BIT, this.state.buffers.stencil.setMask(4294967295)), P.clear(G);
23649
+ F && (H |= P.DEPTH_BUFFER_BIT), W && (H |= P.STENCIL_BUFFER_BIT, this.state.buffers.stencil.setMask(4294967295)), P.clear(H);
23650
23650
  }, this.clearColor = function() {
23651
23651
  this.clear(!0, !1, !1);
23652
23652
  }, this.clearDepth = function() {
@@ -23661,8 +23661,8 @@ class mx {
23661
23661
  }
23662
23662
  function ut() {
23663
23663
  Lc("WebGLRenderer: Context Restored."), b = !1;
23664
- const T = w.autoReset, F = ye.enabled, W = ye.autoUpdate, G = ye.needsUpdate, O = ye.type;
23665
- K(), w.autoReset = T, ye.enabled = F, ye.autoUpdate = W, ye.needsUpdate = G, ye.type = O;
23664
+ const T = w.autoReset, F = ye.enabled, W = ye.autoUpdate, H = ye.needsUpdate, O = ye.type;
23665
+ K(), w.autoReset = T, ye.enabled = F, ye.autoUpdate = W, ye.needsUpdate = H, ye.type = O;
23666
23666
  }
23667
23667
  function et(T) {
23668
23668
  Re("WebGLRenderer: A WebGL context could not be created. Reason: ", T.statusMessage);
@@ -23680,12 +23680,12 @@ class mx {
23680
23680
  ve.releaseProgram(W);
23681
23681
  }), T.isShaderMaterial && ve.releaseShaderCache(T));
23682
23682
  }
23683
- this.renderBufferDirect = function(T, F, W, G, O, oe) {
23683
+ this.renderBufferDirect = function(T, F, W, H, O, oe) {
23684
23684
  F === null && (F = rt);
23685
- const pe = O.isMesh && O.matrixWorld.determinant() < 0, ce = Of(T, F, W, G, O);
23686
- xe.setMaterial(G, pe);
23685
+ const pe = O.isMesh && O.matrixWorld.determinant() < 0, ce = Of(T, F, W, H, O);
23686
+ xe.setMaterial(H, pe);
23687
23687
  let me = W.index, Me = 1;
23688
- if (G.wireframe === !0) {
23688
+ if (H.wireframe === !0) {
23689
23689
  if (me = Se.getWireframeAttribute(W), me === void 0) return;
23690
23690
  Me = 2;
23691
23691
  }
@@ -23694,12 +23694,12 @@ class mx {
23694
23694
  oe !== null && (Ge = Math.max(Ge, oe.start * Me), it = Math.min(it, (oe.start + oe.count) * Me)), me !== null ? (Ge = Math.max(Ge, 0), it = Math.min(it, me.count)) : Ae != null && (Ge = Math.max(Ge, 0), it = Math.min(it, Ae.count));
23695
23695
  const vt = it - Ge;
23696
23696
  if (vt < 0 || vt === 1 / 0) return;
23697
- fe.setup(O, G, ce, W, me);
23697
+ fe.setup(O, H, ce, W, me);
23698
23698
  let xt, st = D;
23699
23699
  if (me !== null && (xt = X.get(me), st = ue, st.setIndex(xt)), O.isMesh)
23700
- G.wireframe === !0 ? (xe.setLineWidth(G.wireframeLinewidth * Tt()), st.setMode(P.LINES)) : st.setMode(P.TRIANGLES);
23700
+ H.wireframe === !0 ? (xe.setLineWidth(H.wireframeLinewidth * Tt()), st.setMode(P.LINES)) : st.setMode(P.TRIANGLES);
23701
23701
  else if (O.isLine) {
23702
- let Ee = G.linewidth;
23702
+ let Ee = H.linewidth;
23703
23703
  Ee === void 0 && (Ee = 1), xe.setLineWidth(Ee * Tt()), O.isLineSegments ? st.setMode(P.LINES) : O.isLineLoop ? st.setMode(P.LINE_LOOP) : st.setMode(P.LINE_STRIP);
23704
23704
  } else O.isPoints ? st.setMode(P.POINTS) : O.isSprite && st.setMode(P.TRIANGLES);
23705
23705
  if (O.isBatchedMesh)
@@ -23708,7 +23708,7 @@ class mx {
23708
23708
  else if (je.get("WEBGL_multi_draw"))
23709
23709
  st.renderMultiDraw(O._multiDrawStarts, O._multiDrawCounts, O._multiDrawCount);
23710
23710
  else {
23711
- const Ee = O._multiDrawStarts, tt = O._multiDrawCounts, Ze = O._multiDrawCount, en = me ? X.get(me).bytesPerElement : 1, zi = v.get(G).currentProgram.getUniforms();
23711
+ const Ee = O._multiDrawStarts, tt = O._multiDrawCounts, Ze = O._multiDrawCount, en = me ? X.get(me).bytesPerElement : 1, zi = v.get(H).currentProgram.getUniforms();
23712
23712
  for (let tn = 0; tn < Ze; tn++)
23713
23713
  zi.setValue(P, "_gl_DrawID", tn), st.render(Ee[tn] / en, tt[tn]);
23714
23714
  }
@@ -23729,7 +23729,7 @@ class mx {
23729
23729
  }), T !== W && T.traverseVisible(function(O) {
23730
23730
  O.isLight && O.layers.test(F.layers) && (A.pushLight(O), O.castShadow && A.pushShadow(O));
23731
23731
  }), A.setupLights();
23732
- const G = /* @__PURE__ */ new Set();
23732
+ const H = /* @__PURE__ */ new Set();
23733
23733
  return T.traverse(function(O) {
23734
23734
  if (!(O.isMesh || O.isPoints || O.isLine || O.isSprite))
23735
23735
  return;
@@ -23738,18 +23738,18 @@ class mx {
23738
23738
  if (Array.isArray(oe))
23739
23739
  for (let pe = 0; pe < oe.length; pe++) {
23740
23740
  const ce = oe[pe];
23741
- _c(ce, W, O), G.add(ce);
23741
+ _c(ce, W, O), H.add(ce);
23742
23742
  }
23743
23743
  else
23744
- _c(oe, W, O), G.add(oe);
23745
- }), A = R.pop(), G;
23744
+ _c(oe, W, O), H.add(oe);
23745
+ }), A = R.pop(), H;
23746
23746
  }, this.compileAsync = function(T, F, W = null) {
23747
- const G = this.compile(T, F, W);
23747
+ const H = this.compile(T, F, W);
23748
23748
  return new Promise((O) => {
23749
23749
  function oe() {
23750
- if (G.forEach(function(pe) {
23751
- v.get(pe).currentProgram.isReady() && G.delete(pe);
23752
- }), G.size === 0) {
23750
+ if (H.forEach(function(pe) {
23751
+ v.get(pe).currentProgram.isReady() && H.delete(pe);
23752
+ }), H.size === 0) {
23753
23753
  O(T);
23754
23754
  return;
23755
23755
  }
@@ -23777,14 +23777,14 @@ class mx {
23777
23777
  return;
23778
23778
  }
23779
23779
  if (b === !0) return;
23780
- const W = ne.enabled === !0 && ne.isPresenting === !0, G = I !== null && (N === null || W) && I.begin(y, N);
23780
+ const W = ne.enabled === !0 && ne.isPresenting === !0, H = I !== null && (N === null || W) && I.begin(y, N);
23781
23781
  if (T.matrixWorldAutoUpdate === !0 && T.updateMatrixWorld(), F.parent === null && F.matrixWorldAutoUpdate === !0 && F.updateMatrixWorld(), ne.enabled === !0 && ne.isPresenting === !0 && (I === null || I.isCompositing() === !1) && (ne.cameraAutoUpdate === !0 && ne.updateCamera(F), F = ne.getCamera()), T.isScene === !0 && T.onBeforeRender(y, T, F, N), A = ae.get(T, R.length), A.init(F), R.push(A), St.multiplyMatrices(F.projectionMatrix, F.matrixWorldInverse), De.setFromProjectionMatrix(St, Fn, F.reversedDepth), Xe = this.localClippingEnabled, _e = ge.init(this.clippingPlanes, Xe), M = Q.get(T, E.length), M.init(), E.push(M), ne.enabled === !0 && ne.isPresenting === !0) {
23782
23782
  const pe = y.xr.getDepthSensingMesh();
23783
23783
  pe !== null && Ia(pe, F, -1 / 0, y.sortObjects);
23784
23784
  }
23785
23785
  Ia(T, F, 0, y.sortObjects), M.finish(), y.sortObjects === !0 && M.sort(lt, $e), ke = ne.enabled === !1 || ne.isPresenting === !1 || ne.hasDepthSensing() === !1, ke && re.addToRenderList(M, T), this.info.render.frame++, _e === !0 && ge.beginShadows();
23786
23786
  const O = A.state.shadowsArray;
23787
- if (ye.render(O, T, F), _e === !0 && ge.endShadows(), this.info.autoReset === !0 && this.info.reset(), (G && I.hasRenderPass()) === !1) {
23787
+ if (ye.render(O, T, F), _e === !0 && ge.endShadows(), this.info.autoReset === !0 && this.info.reset(), (H && I.hasRenderPass()) === !1) {
23788
23788
  const pe = M.opaque, ce = M.transmissive;
23789
23789
  if (A.setupLights(), F.isArrayCamera) {
23790
23790
  const me = F.cameras;
@@ -23801,9 +23801,9 @@ class mx {
23801
23801
  } else
23802
23802
  ce.length > 0 && yc(pe, ce, T, F), ke && re.render(T), xc(M, T, F);
23803
23803
  }
23804
- N !== null && B === 0 && (L.updateMultisampleRenderTarget(N), L.updateRenderTargetMipmap(N)), G && I.end(y), T.isScene === !0 && T.onAfterRender(y, T, F), fe.resetDefaultState(), V = -1, H = null, R.pop(), R.length > 0 ? (A = R[R.length - 1], _e === !0 && ge.setGlobalState(y.clippingPlanes, A.state.camera)) : A = null, E.pop(), E.length > 0 ? M = E[E.length - 1] : M = null;
23804
+ N !== null && B === 0 && (L.updateMultisampleRenderTarget(N), L.updateRenderTargetMipmap(N)), H && I.end(y), T.isScene === !0 && T.onAfterRender(y, T, F), fe.resetDefaultState(), V = -1, z = null, R.pop(), R.length > 0 ? (A = R[R.length - 1], _e === !0 && ge.setGlobalState(y.clippingPlanes, A.state.camera)) : A = null, E.pop(), E.length > 0 ? M = E[E.length - 1] : M = null;
23805
23805
  };
23806
- function Ia(T, F, W, G) {
23806
+ function Ia(T, F, W, H) {
23807
23807
  if (T.visible === !1) return;
23808
23808
  if (T.layers.test(F.layers)) {
23809
23809
  if (T.isGroup)
@@ -23814,13 +23814,13 @@ class mx {
23814
23814
  A.pushLight(T), T.castShadow && A.pushShadow(T);
23815
23815
  else if (T.isSprite) {
23816
23816
  if (!T.frustumCulled || De.intersectsSprite(T)) {
23817
- G && Qe.setFromMatrixPosition(T.matrixWorld).applyMatrix4(St);
23817
+ H && Qe.setFromMatrixPosition(T.matrixWorld).applyMatrix4(St);
23818
23818
  const pe = ie.update(T), ce = T.material;
23819
23819
  ce.visible && M.push(T, pe, ce, W, Qe.z, null);
23820
23820
  }
23821
23821
  } else if ((T.isMesh || T.isLine || T.isPoints) && (!T.frustumCulled || De.intersectsObject(T))) {
23822
23822
  const pe = ie.update(T), ce = T.material;
23823
- if (G && (T.boundingSphere !== void 0 ? (T.boundingSphere === null && T.computeBoundingSphere(), Qe.copy(T.boundingSphere.center)) : (pe.boundingSphere === null && pe.computeBoundingSphere(), Qe.copy(pe.boundingSphere.center)), Qe.applyMatrix4(T.matrixWorld).applyMatrix4(St)), Array.isArray(ce)) {
23823
+ if (H && (T.boundingSphere !== void 0 ? (T.boundingSphere === null && T.computeBoundingSphere(), Qe.copy(T.boundingSphere.center)) : (pe.boundingSphere === null && pe.computeBoundingSphere(), Qe.copy(pe.boundingSphere.center)), Qe.applyMatrix4(T.matrixWorld).applyMatrix4(St)), Array.isArray(ce)) {
23824
23824
  const me = pe.groups;
23825
23825
  for (let Me = 0, we = me.length; Me < we; Me++) {
23826
23826
  const Ae = me[Me], Ge = ce[Ae.materialIndex];
@@ -23831,18 +23831,18 @@ class mx {
23831
23831
  }
23832
23832
  const oe = T.children;
23833
23833
  for (let pe = 0, ce = oe.length; pe < ce; pe++)
23834
- Ia(oe[pe], F, W, G);
23834
+ Ia(oe[pe], F, W, H);
23835
23835
  }
23836
- function xc(T, F, W, G) {
23836
+ function xc(T, F, W, H) {
23837
23837
  const { opaque: O, transmissive: oe, transparent: pe } = T;
23838
- A.setupLightsView(W), _e === !0 && ge.setGlobalState(y.clippingPlanes, W), G && xe.viewport(k.copy(G)), O.length > 0 && xs(O, F, W), oe.length > 0 && xs(oe, F, W), pe.length > 0 && xs(pe, F, W), xe.buffers.depth.setTest(!0), xe.buffers.depth.setMask(!0), xe.buffers.color.setMask(!0), xe.setPolygonOffset(!1);
23838
+ A.setupLightsView(W), _e === !0 && ge.setGlobalState(y.clippingPlanes, W), H && xe.viewport(k.copy(H)), O.length > 0 && xs(O, F, W), oe.length > 0 && xs(oe, F, W), pe.length > 0 && xs(pe, F, W), xe.buffers.depth.setTest(!0), xe.buffers.depth.setMask(!0), xe.buffers.color.setMask(!0), xe.setPolygonOffset(!1);
23839
23839
  }
23840
- function yc(T, F, W, G) {
23840
+ function yc(T, F, W, H) {
23841
23841
  if ((W.isScene === !0 ? W.overrideMaterial : null) !== null)
23842
23842
  return;
23843
- if (A.state.transmissionRenderTarget[G.id] === void 0) {
23843
+ if (A.state.transmissionRenderTarget[H.id] === void 0) {
23844
23844
  const Ge = je.has("EXT_color_buffer_half_float") || je.has("EXT_color_buffer_float");
23845
- A.state.transmissionRenderTarget[G.id] = new Nn(1, 1, {
23845
+ A.state.transmissionRenderTarget[H.id] = new Nn(1, 1, {
23846
23846
  generateMipmaps: !0,
23847
23847
  type: Ge ? Jn : sn,
23848
23848
  minFilter: Ii,
@@ -23853,50 +23853,50 @@ class mx {
23853
23853
  colorSpace: Oe.workingColorSpace
23854
23854
  });
23855
23855
  }
23856
- const oe = A.state.transmissionRenderTarget[G.id], pe = G.viewport || k;
23856
+ const oe = A.state.transmissionRenderTarget[H.id], pe = H.viewport || k;
23857
23857
  oe.setSize(pe.z * y.transmissionResolutionScale, pe.w * y.transmissionResolutionScale);
23858
23858
  const ce = y.getRenderTarget(), me = y.getActiveCubeFace(), Me = y.getActiveMipmapLevel();
23859
23859
  y.setRenderTarget(oe), y.getClearColor(te), se = y.getClearAlpha(), se < 1 && y.setClearColor(16777215, 0.5), y.clear(), ke && re.render(W);
23860
23860
  const we = y.toneMapping;
23861
23861
  y.toneMapping = Un;
23862
- const Ae = G.viewport;
23863
- if (G.viewport !== void 0 && (G.viewport = void 0), A.setupLightsView(G), _e === !0 && ge.setGlobalState(y.clippingPlanes, G), xs(T, W, G), L.updateMultisampleRenderTarget(oe), L.updateRenderTargetMipmap(oe), je.has("WEBGL_multisampled_render_to_texture") === !1) {
23862
+ const Ae = H.viewport;
23863
+ if (H.viewport !== void 0 && (H.viewport = void 0), A.setupLightsView(H), _e === !0 && ge.setGlobalState(y.clippingPlanes, H), xs(T, W, H), L.updateMultisampleRenderTarget(oe), L.updateRenderTargetMipmap(oe), je.has("WEBGL_multisampled_render_to_texture") === !1) {
23864
23864
  let Ge = !1;
23865
23865
  for (let it = 0, vt = F.length; it < vt; it++) {
23866
23866
  const xt = F[it], { object: st, geometry: Ee, material: tt, group: Ze } = xt;
23867
- if (tt.side === Zn && st.layers.test(G.layers)) {
23867
+ if (tt.side === Zn && st.layers.test(H.layers)) {
23868
23868
  const en = tt.side;
23869
- tt.side = jt, tt.needsUpdate = !0, Sc(st, W, G, Ee, tt, Ze), tt.side = en, tt.needsUpdate = !0, Ge = !0;
23869
+ tt.side = jt, tt.needsUpdate = !0, Sc(st, W, H, Ee, tt, Ze), tt.side = en, tt.needsUpdate = !0, Ge = !0;
23870
23870
  }
23871
23871
  }
23872
23872
  Ge === !0 && (L.updateMultisampleRenderTarget(oe), L.updateRenderTargetMipmap(oe));
23873
23873
  }
23874
- y.setRenderTarget(ce, me, Me), y.setClearColor(te, se), Ae !== void 0 && (G.viewport = Ae), y.toneMapping = we;
23874
+ y.setRenderTarget(ce, me, Me), y.setClearColor(te, se), Ae !== void 0 && (H.viewport = Ae), y.toneMapping = we;
23875
23875
  }
23876
23876
  function xs(T, F, W) {
23877
- const G = F.isScene === !0 ? F.overrideMaterial : null;
23877
+ const H = F.isScene === !0 ? F.overrideMaterial : null;
23878
23878
  for (let O = 0, oe = T.length; O < oe; O++) {
23879
23879
  const pe = T[O], { object: ce, geometry: me, group: Me } = pe;
23880
23880
  let we = pe.material;
23881
- we.allowOverride === !0 && G !== null && (we = G), ce.layers.test(W.layers) && Sc(ce, F, W, me, we, Me);
23881
+ we.allowOverride === !0 && H !== null && (we = H), ce.layers.test(W.layers) && Sc(ce, F, W, me, we, Me);
23882
23882
  }
23883
23883
  }
23884
- function Sc(T, F, W, G, O, oe) {
23885
- T.onBeforeRender(y, F, W, G, O, oe), T.modelViewMatrix.multiplyMatrices(W.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), O.onBeforeRender(y, F, W, G, T, oe), O.transparent === !0 && O.side === Zn && O.forceSinglePass === !1 ? (O.side = jt, O.needsUpdate = !0, y.renderBufferDirect(W, F, G, O, T, oe), O.side = di, O.needsUpdate = !0, y.renderBufferDirect(W, F, G, O, T, oe), O.side = Zn) : y.renderBufferDirect(W, F, G, O, T, oe), T.onAfterRender(y, F, W, G, O, oe);
23884
+ function Sc(T, F, W, H, O, oe) {
23885
+ T.onBeforeRender(y, F, W, H, O, oe), T.modelViewMatrix.multiplyMatrices(W.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), O.onBeforeRender(y, F, W, H, T, oe), O.transparent === !0 && O.side === Zn && O.forceSinglePass === !1 ? (O.side = jt, O.needsUpdate = !0, y.renderBufferDirect(W, F, H, O, T, oe), O.side = di, O.needsUpdate = !0, y.renderBufferDirect(W, F, H, O, T, oe), O.side = Zn) : y.renderBufferDirect(W, F, H, O, T, oe), T.onAfterRender(y, F, W, H, O, oe);
23886
23886
  }
23887
23887
  function ys(T, F, W) {
23888
23888
  F.isScene !== !0 && (F = rt);
23889
- const G = v.get(T), O = A.state.lights, oe = A.state.shadowsArray, pe = O.state.version, ce = ve.getParameters(T, O.state, oe, F, W), me = ve.getProgramCacheKey(ce);
23890
- let Me = G.programs;
23891
- G.environment = T.isMeshStandardMaterial ? F.environment : null, G.fog = F.fog, G.envMap = (T.isMeshStandardMaterial ? $ : q).get(T.envMap || G.environment), G.envMapRotation = G.environment !== null && T.envMap === null ? F.environmentRotation : T.envMapRotation, Me === void 0 && (T.addEventListener("dispose", Cn), Me = /* @__PURE__ */ new Map(), G.programs = Me);
23889
+ const H = v.get(T), O = A.state.lights, oe = A.state.shadowsArray, pe = O.state.version, ce = ve.getParameters(T, O.state, oe, F, W), me = ve.getProgramCacheKey(ce);
23890
+ let Me = H.programs;
23891
+ H.environment = T.isMeshStandardMaterial ? F.environment : null, H.fog = F.fog, H.envMap = (T.isMeshStandardMaterial ? $ : q).get(T.envMap || H.environment), H.envMapRotation = H.environment !== null && T.envMap === null ? F.environmentRotation : T.envMapRotation, Me === void 0 && (T.addEventListener("dispose", Cn), Me = /* @__PURE__ */ new Map(), H.programs = Me);
23892
23892
  let we = Me.get(me);
23893
23893
  if (we !== void 0) {
23894
- if (G.currentProgram === we && G.lightsStateVersion === pe)
23894
+ if (H.currentProgram === we && H.lightsStateVersion === pe)
23895
23895
  return Tc(T, ce), we;
23896
23896
  } else
23897
- ce.uniforms = ve.getUniforms(T), T.onBeforeCompile(ce, y), we = ve.acquireProgram(ce, me), Me.set(me, we), G.uniforms = ce.uniforms;
23898
- const Ae = G.uniforms;
23899
- return (!T.isShaderMaterial && !T.isRawShaderMaterial || T.clipping === !0) && (Ae.clippingPlanes = ge.uniform), Tc(T, ce), G.needsLights = kf(T), G.lightsStateVersion = pe, G.needsLights && (Ae.ambientLightColor.value = O.state.ambient, Ae.lightProbe.value = O.state.probe, Ae.directionalLights.value = O.state.directional, Ae.directionalLightShadows.value = O.state.directionalShadow, Ae.spotLights.value = O.state.spot, Ae.spotLightShadows.value = O.state.spotShadow, Ae.rectAreaLights.value = O.state.rectArea, Ae.ltc_1.value = O.state.rectAreaLTC1, Ae.ltc_2.value = O.state.rectAreaLTC2, Ae.pointLights.value = O.state.point, Ae.pointLightShadows.value = O.state.pointShadow, Ae.hemisphereLights.value = O.state.hemi, Ae.directionalShadowMap.value = O.state.directionalShadowMap, Ae.directionalShadowMatrix.value = O.state.directionalShadowMatrix, Ae.spotShadowMap.value = O.state.spotShadowMap, Ae.spotLightMatrix.value = O.state.spotLightMatrix, Ae.spotLightMap.value = O.state.spotLightMap, Ae.pointShadowMap.value = O.state.pointShadowMap, Ae.pointShadowMatrix.value = O.state.pointShadowMatrix), G.currentProgram = we, G.uniformsList = null, we;
23897
+ ce.uniforms = ve.getUniforms(T), T.onBeforeCompile(ce, y), we = ve.acquireProgram(ce, me), Me.set(me, we), H.uniforms = ce.uniforms;
23898
+ const Ae = H.uniforms;
23899
+ return (!T.isShaderMaterial && !T.isRawShaderMaterial || T.clipping === !0) && (Ae.clippingPlanes = ge.uniform), Tc(T, ce), H.needsLights = kf(T), H.lightsStateVersion = pe, H.needsLights && (Ae.ambientLightColor.value = O.state.ambient, Ae.lightProbe.value = O.state.probe, Ae.directionalLights.value = O.state.directional, Ae.directionalLightShadows.value = O.state.directionalShadow, Ae.spotLights.value = O.state.spot, Ae.spotLightShadows.value = O.state.spotShadow, Ae.rectAreaLights.value = O.state.rectArea, Ae.ltc_1.value = O.state.rectAreaLTC1, Ae.ltc_2.value = O.state.rectAreaLTC2, Ae.pointLights.value = O.state.point, Ae.pointLightShadows.value = O.state.pointShadow, Ae.hemisphereLights.value = O.state.hemi, Ae.directionalShadowMap.value = O.state.directionalShadowMap, Ae.directionalShadowMatrix.value = O.state.directionalShadowMatrix, Ae.spotShadowMap.value = O.state.spotShadowMap, Ae.spotLightMatrix.value = O.state.spotLightMatrix, Ae.spotLightMap.value = O.state.spotLightMap, Ae.pointShadowMap.value = O.state.pointShadowMap, Ae.pointShadowMatrix.value = O.state.pointShadowMatrix), H.currentProgram = we, H.uniformsList = null, we;
23900
23900
  }
23901
23901
  function Mc(T) {
23902
23902
  if (T.uniformsList === null) {
@@ -23909,30 +23909,30 @@ class mx {
23909
23909
  const W = v.get(T);
23910
23910
  W.outputColorSpace = F.outputColorSpace, W.batching = F.batching, W.batchingColor = F.batchingColor, W.instancing = F.instancing, W.instancingColor = F.instancingColor, W.instancingMorph = F.instancingMorph, W.skinning = F.skinning, W.morphTargets = F.morphTargets, W.morphNormals = F.morphNormals, W.morphColors = F.morphColors, W.morphTargetsCount = F.morphTargetsCount, W.numClippingPlanes = F.numClippingPlanes, W.numIntersection = F.numClipIntersection, W.vertexAlphas = F.vertexAlphas, W.vertexTangents = F.vertexTangents, W.toneMapping = F.toneMapping;
23911
23911
  }
23912
- function Of(T, F, W, G, O) {
23912
+ function Of(T, F, W, H, O) {
23913
23913
  F.isScene !== !0 && (F = rt), L.resetTextureUnits();
23914
- const oe = F.fog, pe = G.isMeshStandardMaterial ? F.environment : null, ce = N === null ? y.outputColorSpace : N.isXRRenderTarget === !0 ? N.texture.colorSpace : _r, me = (G.isMeshStandardMaterial ? $ : q).get(G.envMap || pe), Me = G.vertexColors === !0 && !!W.attributes.color && W.attributes.color.itemSize === 4, we = !!W.attributes.tangent && (!!G.normalMap || G.anisotropy > 0), Ae = !!W.morphAttributes.position, Ge = !!W.morphAttributes.normal, it = !!W.morphAttributes.color;
23914
+ const oe = F.fog, pe = H.isMeshStandardMaterial ? F.environment : null, ce = N === null ? y.outputColorSpace : N.isXRRenderTarget === !0 ? N.texture.colorSpace : _r, me = (H.isMeshStandardMaterial ? $ : q).get(H.envMap || pe), Me = H.vertexColors === !0 && !!W.attributes.color && W.attributes.color.itemSize === 4, we = !!W.attributes.tangent && (!!H.normalMap || H.anisotropy > 0), Ae = !!W.morphAttributes.position, Ge = !!W.morphAttributes.normal, it = !!W.morphAttributes.color;
23915
23915
  let vt = Un;
23916
- G.toneMapped && (N === null || N.isXRRenderTarget === !0) && (vt = y.toneMapping);
23917
- const xt = W.morphAttributes.position || W.morphAttributes.normal || W.morphAttributes.color, st = xt !== void 0 ? xt.length : 0, Ee = v.get(G), tt = A.state.lights;
23918
- if (_e === !0 && (Xe === !0 || T !== H)) {
23919
- const Gt = T === H && G.id === V;
23920
- ge.setState(G, T, Gt);
23916
+ H.toneMapped && (N === null || N.isXRRenderTarget === !0) && (vt = y.toneMapping);
23917
+ const xt = W.morphAttributes.position || W.morphAttributes.normal || W.morphAttributes.color, st = xt !== void 0 ? xt.length : 0, Ee = v.get(H), tt = A.state.lights;
23918
+ if (_e === !0 && (Xe === !0 || T !== z)) {
23919
+ const Gt = T === z && H.id === V;
23920
+ ge.setState(H, T, Gt);
23921
23921
  }
23922
23922
  let Ze = !1;
23923
- G.version === Ee.__version ? (Ee.needsLights && Ee.lightsStateVersion !== tt.state.version || Ee.outputColorSpace !== ce || O.isBatchedMesh && Ee.batching === !1 || !O.isBatchedMesh && Ee.batching === !0 || O.isBatchedMesh && Ee.batchingColor === !0 && O.colorTexture === null || O.isBatchedMesh && Ee.batchingColor === !1 && O.colorTexture !== null || O.isInstancedMesh && Ee.instancing === !1 || !O.isInstancedMesh && Ee.instancing === !0 || O.isSkinnedMesh && Ee.skinning === !1 || !O.isSkinnedMesh && Ee.skinning === !0 || O.isInstancedMesh && Ee.instancingColor === !0 && O.instanceColor === null || O.isInstancedMesh && Ee.instancingColor === !1 && O.instanceColor !== null || O.isInstancedMesh && Ee.instancingMorph === !0 && O.morphTexture === null || O.isInstancedMesh && Ee.instancingMorph === !1 && O.morphTexture !== null || Ee.envMap !== me || G.fog === !0 && Ee.fog !== oe || Ee.numClippingPlanes !== void 0 && (Ee.numClippingPlanes !== ge.numPlanes || Ee.numIntersection !== ge.numIntersection) || Ee.vertexAlphas !== Me || Ee.vertexTangents !== we || Ee.morphTargets !== Ae || Ee.morphNormals !== Ge || Ee.morphColors !== it || Ee.toneMapping !== vt || Ee.morphTargetsCount !== st) && (Ze = !0) : (Ze = !0, Ee.__version = G.version);
23923
+ H.version === Ee.__version ? (Ee.needsLights && Ee.lightsStateVersion !== tt.state.version || Ee.outputColorSpace !== ce || O.isBatchedMesh && Ee.batching === !1 || !O.isBatchedMesh && Ee.batching === !0 || O.isBatchedMesh && Ee.batchingColor === !0 && O.colorTexture === null || O.isBatchedMesh && Ee.batchingColor === !1 && O.colorTexture !== null || O.isInstancedMesh && Ee.instancing === !1 || !O.isInstancedMesh && Ee.instancing === !0 || O.isSkinnedMesh && Ee.skinning === !1 || !O.isSkinnedMesh && Ee.skinning === !0 || O.isInstancedMesh && Ee.instancingColor === !0 && O.instanceColor === null || O.isInstancedMesh && Ee.instancingColor === !1 && O.instanceColor !== null || O.isInstancedMesh && Ee.instancingMorph === !0 && O.morphTexture === null || O.isInstancedMesh && Ee.instancingMorph === !1 && O.morphTexture !== null || Ee.envMap !== me || H.fog === !0 && Ee.fog !== oe || Ee.numClippingPlanes !== void 0 && (Ee.numClippingPlanes !== ge.numPlanes || Ee.numIntersection !== ge.numIntersection) || Ee.vertexAlphas !== Me || Ee.vertexTangents !== we || Ee.morphTargets !== Ae || Ee.morphNormals !== Ge || Ee.morphColors !== it || Ee.toneMapping !== vt || Ee.morphTargetsCount !== st) && (Ze = !0) : (Ze = !0, Ee.__version = H.version);
23924
23924
  let en = Ee.currentProgram;
23925
- Ze === !0 && (en = ys(G, F, O));
23925
+ Ze === !0 && (en = ys(H, F, O));
23926
23926
  let zi = !1, tn = !1, Lr = !1;
23927
23927
  const ht = en.getUniforms(), Zt = Ee.uniforms;
23928
- if (xe.useProgram(en.program) && (zi = !0, tn = !0, Lr = !0), G.id !== V && (V = G.id, tn = !0), zi || H !== T) {
23928
+ if (xe.useProgram(en.program) && (zi = !0, tn = !0, Lr = !0), H.id !== V && (V = H.id, tn = !0), zi || z !== T) {
23929
23929
  xe.buffers.depth.getReversed() && T.reversedDepth !== !0 && (T._reversedDepth = !0, T.updateProjectionMatrix()), ht.setValue(P, "projectionMatrix", T.projectionMatrix), ht.setValue(P, "viewMatrix", T.matrixWorldInverse);
23930
23930
  const $t = ht.map.cameraPosition;
23931
23931
  $t !== void 0 && $t.setValue(P, We.setFromMatrixPosition(T.matrixWorld)), ct.logarithmicDepthBuffer && ht.setValue(
23932
23932
  P,
23933
23933
  "logDepthBufFC",
23934
23934
  2 / (Math.log(T.far + 1) / Math.LN2)
23935
- ), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && ht.setValue(P, "isOrthographic", T.isOrthographicCamera === !0), H !== T && (H = T, tn = !0, Lr = !0);
23935
+ ), (H.isMeshPhongMaterial || H.isMeshToonMaterial || H.isMeshLambertMaterial || H.isMeshBasicMaterial || H.isMeshStandardMaterial || H.isShaderMaterial) && ht.setValue(P, "isOrthographic", T.isOrthographicCamera === !0), z !== T && (z = T, tn = !0, Lr = !0);
23936
23936
  }
23937
23937
  if (Ee.needsLights && (tt.state.directionalShadowMap.length > 0 && ht.setValue(P, "directionalShadowMap", tt.state.directionalShadowMap, L), tt.state.spotShadowMap.length > 0 && ht.setValue(P, "spotShadowMap", tt.state.spotShadowMap, L), tt.state.pointShadowMap.length > 0 && ht.setValue(P, "pointShadowMap", tt.state.pointShadowMap, L)), O.isSkinnedMesh) {
23938
23938
  ht.setOptional(P, O, "bindMatrix"), ht.setOptional(P, O, "bindMatrixInverse");
@@ -23941,8 +23941,8 @@ class mx {
23941
23941
  }
23942
23942
  O.isBatchedMesh && (ht.setOptional(P, O, "batchingTexture"), ht.setValue(P, "batchingTexture", O._matricesTexture, L), ht.setOptional(P, O, "batchingIdTexture"), ht.setValue(P, "batchingIdTexture", O._indirectTexture, L), ht.setOptional(P, O, "batchingColorTexture"), O._colorsTexture !== null && ht.setValue(P, "batchingColorTexture", O._colorsTexture, L));
23943
23943
  const un = W.morphAttributes;
23944
- if ((un.position !== void 0 || un.normal !== void 0 || un.color !== void 0) && Ve.update(O, W, en), (tn || Ee.receiveShadow !== O.receiveShadow) && (Ee.receiveShadow = O.receiveShadow, ht.setValue(P, "receiveShadow", O.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Zt.envMap.value = me, Zt.flipEnvMap.value = me.isCubeTexture && me.isRenderTargetTexture === !1 ? -1 : 1), G.isMeshStandardMaterial && G.envMap === null && F.environment !== null && (Zt.envMapIntensity.value = F.environmentIntensity), Zt.dfgLUT !== void 0 && (Zt.dfgLUT.value = px()), tn && (ht.setValue(P, "toneMappingExposure", y.toneMappingExposure), Ee.needsLights && Bf(Zt, Lr), oe && G.fog === !0 && Ce.refreshFogUniforms(Zt, oe), Ce.refreshMaterialUniforms(Zt, G, Pe, Fe, A.state.transmissionRenderTarget[T.id]), na.upload(P, Mc(Ee), Zt, L)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (na.upload(P, Mc(Ee), Zt, L), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && ht.setValue(P, "center", O.center), ht.setValue(P, "modelViewMatrix", O.modelViewMatrix), ht.setValue(P, "normalMatrix", O.normalMatrix), ht.setValue(P, "modelMatrix", O.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
23945
- const Gt = G.uniformsGroups;
23944
+ if ((un.position !== void 0 || un.normal !== void 0 || un.color !== void 0) && Ve.update(O, W, en), (tn || Ee.receiveShadow !== O.receiveShadow) && (Ee.receiveShadow = O.receiveShadow, ht.setValue(P, "receiveShadow", O.receiveShadow)), H.isMeshGouraudMaterial && H.envMap !== null && (Zt.envMap.value = me, Zt.flipEnvMap.value = me.isCubeTexture && me.isRenderTargetTexture === !1 ? -1 : 1), H.isMeshStandardMaterial && H.envMap === null && F.environment !== null && (Zt.envMapIntensity.value = F.environmentIntensity), Zt.dfgLUT !== void 0 && (Zt.dfgLUT.value = px()), tn && (ht.setValue(P, "toneMappingExposure", y.toneMappingExposure), Ee.needsLights && Bf(Zt, Lr), oe && H.fog === !0 && Ce.refreshFogUniforms(Zt, oe), Ce.refreshMaterialUniforms(Zt, H, Pe, Fe, A.state.transmissionRenderTarget[T.id]), na.upload(P, Mc(Ee), Zt, L)), H.isShaderMaterial && H.uniformsNeedUpdate === !0 && (na.upload(P, Mc(Ee), Zt, L), H.uniformsNeedUpdate = !1), H.isSpriteMaterial && ht.setValue(P, "center", O.center), ht.setValue(P, "modelViewMatrix", O.modelViewMatrix), ht.setValue(P, "normalMatrix", O.normalMatrix), ht.setValue(P, "modelMatrix", O.matrixWorld), H.isShaderMaterial || H.isRawShaderMaterial) {
23945
+ const Gt = H.uniformsGroups;
23946
23946
  for (let $t = 0, Da = Gt.length; $t < Da; $t++) {
23947
23947
  const Si = Gt[$t];
23948
23948
  J.update(Si, en), J.bind(Si, en);
@@ -23963,8 +23963,8 @@ class mx {
23963
23963
  }, this.getRenderTarget = function() {
23964
23964
  return N;
23965
23965
  }, this.setRenderTargetTextures = function(T, F, W) {
23966
- const G = v.get(T);
23967
- G.__autoAllocateDepthBuffer = T.resolveDepthBuffer === !1, G.__autoAllocateDepthBuffer === !1 && (G.__useRenderToTexture = !1), v.get(T.texture).__webglTexture = F, v.get(T.depthTexture).__webglTexture = G.__autoAllocateDepthBuffer ? void 0 : W, G.__hasExternalTextures = !0;
23966
+ const H = v.get(T);
23967
+ H.__autoAllocateDepthBuffer = T.resolveDepthBuffer === !1, H.__autoAllocateDepthBuffer === !1 && (H.__useRenderToTexture = !1), v.get(T.texture).__webglTexture = F, v.get(T.depthTexture).__webglTexture = H.__autoAllocateDepthBuffer ? void 0 : W, H.__hasExternalTextures = !0;
23968
23968
  }, this.setRenderTargetFramebuffer = function(T, F) {
23969
23969
  const W = v.get(T);
23970
23970
  W.__webglFramebuffer = F, W.__useDefaultFramebuffer = F === void 0;
@@ -23972,11 +23972,11 @@ class mx {
23972
23972
  const Vf = P.createFramebuffer();
23973
23973
  this.setRenderTarget = function(T, F = 0, W = 0) {
23974
23974
  N = T, C = F, B = W;
23975
- let G = null, O = !1, oe = !1;
23975
+ let H = null, O = !1, oe = !1;
23976
23976
  if (T) {
23977
23977
  const ce = v.get(T);
23978
23978
  if (ce.__useDefaultFramebuffer !== void 0) {
23979
- xe.bindFramebuffer(P.FRAMEBUFFER, ce.__webglFramebuffer), k.copy(T.viewport), z.copy(T.scissor), Z = T.scissorTest, xe.viewport(k), xe.scissor(z), xe.setScissorTest(Z), V = -1;
23979
+ xe.bindFramebuffer(P.FRAMEBUFFER, ce.__webglFramebuffer), k.copy(T.viewport), G.copy(T.scissor), Z = T.scissorTest, xe.viewport(k), xe.scissor(G), xe.setScissorTest(Z), V = -1;
23980
23980
  return;
23981
23981
  } else if (ce.__webglFramebuffer === void 0)
23982
23982
  L.setupRenderTarget(T);
@@ -23993,10 +23993,10 @@ class mx {
23993
23993
  const me = T.texture;
23994
23994
  (me.isData3DTexture || me.isDataArrayTexture || me.isCompressedArrayTexture) && (oe = !0);
23995
23995
  const Me = v.get(T).__webglFramebuffer;
23996
- T.isWebGLCubeRenderTarget ? (Array.isArray(Me[F]) ? G = Me[F][W] : G = Me[F], O = !0) : T.samples > 0 && L.useMultisampledRTT(T) === !1 ? G = v.get(T).__webglMultisampledFramebuffer : Array.isArray(Me) ? G = Me[W] : G = Me, k.copy(T.viewport), z.copy(T.scissor), Z = T.scissorTest;
23996
+ T.isWebGLCubeRenderTarget ? (Array.isArray(Me[F]) ? H = Me[F][W] : H = Me[F], O = !0) : T.samples > 0 && L.useMultisampledRTT(T) === !1 ? H = v.get(T).__webglMultisampledFramebuffer : Array.isArray(Me) ? H = Me[W] : H = Me, k.copy(T.viewport), G.copy(T.scissor), Z = T.scissorTest;
23997
23997
  } else
23998
- k.copy(Y).multiplyScalar(Pe).floor(), z.copy(j).multiplyScalar(Pe).floor(), Z = de;
23999
- if (W !== 0 && (G = Vf), xe.bindFramebuffer(P.FRAMEBUFFER, G) && xe.drawBuffers(T, G), xe.viewport(k), xe.scissor(z), xe.setScissorTest(Z), O) {
23998
+ k.copy(Y).multiplyScalar(Pe).floor(), G.copy(j).multiplyScalar(Pe).floor(), Z = de;
23999
+ if (W !== 0 && (H = Vf), xe.bindFramebuffer(P.FRAMEBUFFER, H) && xe.drawBuffers(T, H), xe.viewport(k), xe.scissor(G), xe.setScissorTest(Z), O) {
24000
24000
  const ce = v.get(T.texture);
24001
24001
  P.framebufferTexture2D(P.FRAMEBUFFER, P.COLOR_ATTACHMENT0, P.TEXTURE_CUBE_MAP_POSITIVE_X + F, ce.__webglTexture, W);
24002
24002
  } else if (oe) {
@@ -24010,7 +24010,7 @@ class mx {
24010
24010
  P.framebufferTexture2D(P.FRAMEBUFFER, P.COLOR_ATTACHMENT0, P.TEXTURE_2D, ce.__webglTexture, W);
24011
24011
  }
24012
24012
  V = -1;
24013
- }, this.readRenderTargetPixels = function(T, F, W, G, O, oe, pe, ce = 0) {
24013
+ }, this.readRenderTargetPixels = function(T, F, W, H, O, oe, pe, ce = 0) {
24014
24014
  if (!(T && T.isWebGLRenderTarget)) {
24015
24015
  Re("WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
24016
24016
  return;
@@ -24028,18 +24028,18 @@ class mx {
24028
24028
  Re("WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
24029
24029
  return;
24030
24030
  }
24031
- F >= 0 && F <= T.width - G && W >= 0 && W <= T.height - O && (T.textures.length > 1 && P.readBuffer(P.COLOR_ATTACHMENT0 + ce), P.readPixels(F, W, G, O, ee.convert(we), ee.convert(Ae), oe));
24031
+ F >= 0 && F <= T.width - H && W >= 0 && W <= T.height - O && (T.textures.length > 1 && P.readBuffer(P.COLOR_ATTACHMENT0 + ce), P.readPixels(F, W, H, O, ee.convert(we), ee.convert(Ae), oe));
24032
24032
  } finally {
24033
24033
  const Me = N !== null ? v.get(N).__webglFramebuffer : null;
24034
24034
  xe.bindFramebuffer(P.FRAMEBUFFER, Me);
24035
24035
  }
24036
24036
  }
24037
- }, this.readRenderTargetPixelsAsync = async function(T, F, W, G, O, oe, pe, ce = 0) {
24037
+ }, this.readRenderTargetPixelsAsync = async function(T, F, W, H, O, oe, pe, ce = 0) {
24038
24038
  if (!(T && T.isWebGLRenderTarget))
24039
24039
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
24040
24040
  let me = v.get(T).__webglFramebuffer;
24041
24041
  if (T.isWebGLCubeRenderTarget && pe !== void 0 && (me = me[pe]), me)
24042
- if (F >= 0 && F <= T.width - G && W >= 0 && W <= T.height - O) {
24042
+ if (F >= 0 && F <= T.width - H && W >= 0 && W <= T.height - O) {
24043
24043
  xe.bindFramebuffer(P.FRAMEBUFFER, me);
24044
24044
  const Me = T.textures[ce], we = Me.format, Ae = Me.type;
24045
24045
  if (!ct.textureFormatReadable(we))
@@ -24047,7 +24047,7 @@ class mx {
24047
24047
  if (!ct.textureTypeReadable(Ae))
24048
24048
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
24049
24049
  const Ge = P.createBuffer();
24050
- P.bindBuffer(P.PIXEL_PACK_BUFFER, Ge), P.bufferData(P.PIXEL_PACK_BUFFER, oe.byteLength, P.STREAM_READ), T.textures.length > 1 && P.readBuffer(P.COLOR_ATTACHMENT0 + ce), P.readPixels(F, W, G, O, ee.convert(we), ee.convert(Ae), 0);
24050
+ P.bindBuffer(P.PIXEL_PACK_BUFFER, Ge), P.bufferData(P.PIXEL_PACK_BUFFER, oe.byteLength, P.STREAM_READ), T.textures.length > 1 && P.readBuffer(P.COLOR_ATTACHMENT0 + ce), P.readPixels(F, W, H, O, ee.convert(we), ee.convert(Ae), 0);
24051
24051
  const it = N !== null ? v.get(N).__webglFramebuffer : null;
24052
24052
  xe.bindFramebuffer(P.FRAMEBUFFER, it);
24053
24053
  const vt = P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE, 0);
@@ -24055,11 +24055,11 @@ class mx {
24055
24055
  } else
24056
24056
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
24057
24057
  }, this.copyFramebufferToTexture = function(T, F = null, W = 0) {
24058
- const G = Math.pow(2, -W), O = Math.floor(T.image.width * G), oe = Math.floor(T.image.height * G), pe = F !== null ? F.x : 0, ce = F !== null ? F.y : 0;
24058
+ const H = Math.pow(2, -W), O = Math.floor(T.image.width * H), oe = Math.floor(T.image.height * H), pe = F !== null ? F.x : 0, ce = F !== null ? F.y : 0;
24059
24059
  L.setTexture2D(T, 0), P.copyTexSubImage2D(P.TEXTURE_2D, W, 0, 0, pe, ce, O, oe), xe.unbindTexture();
24060
24060
  };
24061
24061
  const zf = P.createFramebuffer(), Gf = P.createFramebuffer();
24062
- this.copyTextureToTexture = function(T, F, W = null, G = null, O = 0, oe = null) {
24062
+ this.copyTextureToTexture = function(T, F, W = null, H = null, O = 0, oe = null) {
24063
24063
  oe === null && (O !== 0 ? (rs("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), oe = O, O = 0) : oe = 0);
24064
24064
  let pe, ce, me, Me, we, Ae, Ge, it, vt;
24065
24065
  const xt = T.isCompressedTexture ? T.mipmaps[oe] : T.image;
@@ -24069,7 +24069,7 @@ class mx {
24069
24069
  const un = Math.pow(2, -O);
24070
24070
  pe = Math.floor(xt.width * un), ce = Math.floor(xt.height * un), T.isDataArrayTexture ? me = xt.depth : T.isData3DTexture ? me = Math.floor(xt.depth * un) : me = 1, Me = 0, we = 0, Ae = 0;
24071
24071
  }
24072
- G !== null ? (Ge = G.x, it = G.y, vt = G.z) : (Ge = 0, it = 0, vt = 0);
24072
+ H !== null ? (Ge = H.x, it = H.y, vt = H.z) : (Ge = 0, it = 0, vt = 0);
24073
24073
  const st = ee.convert(F.format), Ee = ee.convert(F.type);
24074
24074
  let tt;
24075
24075
  F.isData3DTexture ? (L.setTexture3D(F, 0), tt = P.TEXTURE_3D) : F.isDataArrayTexture || F.isCompressedArrayTexture ? (L.setTexture2DArray(F, 0), tt = P.TEXTURE_2D_ARRAY) : (L.setTexture2D(F, 0), tt = P.TEXTURE_2D), P.pixelStorei(P.UNPACK_FLIP_Y_WEBGL, F.flipY), P.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL, F.premultiplyAlpha), P.pixelStorei(P.UNPACK_ALIGNMENT, F.unpackAlignment);
@@ -24301,14 +24301,14 @@ var Sx = /* @__PURE__ */ $r(gs, 9, 1), Mx = /* @__PURE__ */ $r(Wh, 5, 1), mo = f
24301
24301
  b[gx[C]] = Mn(s, l + C * 3, 7);
24302
24302
  l += R * 3;
24303
24303
  for (var B = mo(b), N = (1 << B) - 1, V = $r(b, B, 1), C = 0; C < I; ) {
24304
- var H = V[Mn(s, l, N)];
24305
- l += H & 15;
24306
- var x = H >> 4;
24304
+ var z = V[Mn(s, l, N)];
24305
+ l += z & 15;
24306
+ var x = z >> 4;
24307
24307
  if (x < 16)
24308
24308
  y[C++] = x;
24309
24309
  else {
24310
- var k = 0, z = 0;
24311
- for (x == 16 ? (z = 3 + Mn(s, l, 3), l += 2, k = y[C - 1]) : x == 17 ? (z = 3 + Mn(s, l, 7), l += 3) : x == 18 && (z = 11 + Mn(s, l, 127), l += 7); z--; )
24310
+ var k = 0, G = 0;
24311
+ for (x == 16 ? (G = 3 + Mn(s, l, 3), l += 2, k = y[C - 1]) : x == 17 ? (G = 3 + Mn(s, l, 7), l += 3) : x == 18 && (G = 11 + Mn(s, l, 127), l += 7); G--; )
24312
24312
  y[C++] = k;
24313
24313
  }
24314
24314
  }
@@ -26472,8 +26472,8 @@ function jx() {
26472
26472
  l !== "__default" || m._loop ? f._endTimers[m._id] = setTimeout(f._ended.bind(f, m), A) : (f._endTimers[m._id] = function() {
26473
26473
  f._ended(m), y.removeEventListener("ended", f._endTimers[m._id], !1);
26474
26474
  }, y.addEventListener("ended", f._endTimers[m._id], !1));
26475
- } catch (H) {
26476
- f._emit("playerror", m._id, H);
26475
+ } catch (z) {
26476
+ f._emit("playerror", m._id, z);
26477
26477
  }
26478
26478
  };
26479
26479
  y.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (y.src = f._src, y.load());
@@ -28271,7 +28271,7 @@ var Oy = function(e, t, n, i, r, a, o) {
28271
28271
  u[o._props[d]] = c;
28272
28272
  return o;
28273
28273
  }, hi, Dl, dc = function s(e, t, n) {
28274
- var i = e.vars, r = i.ease, a = i.startAt, o = i.immediateRender, c = i.lazy, u = i.onUpdate, d = i.runBackwards, l = i.yoyoEase, h = i.keyframes, f = i.autoRevert, p = e._dur, g = e._startAt, _ = e._targets, m = e.parent, S = m && m.data === "nested" ? m.vars.targets : _, x = e._overwrite === "auto" && !rc, M = e.timeline, A, E, R, I, y, b, C, B, N, V, H, k, z;
28274
+ var i = e.vars, r = i.ease, a = i.startAt, o = i.immediateRender, c = i.lazy, u = i.onUpdate, d = i.runBackwards, l = i.yoyoEase, h = i.keyframes, f = i.autoRevert, p = e._dur, g = e._startAt, _ = e._targets, m = e.parent, S = m && m.data === "nested" ? m.vars.targets : _, x = e._overwrite === "auto" && !rc, M = e.timeline, A, E, R, I, y, b, C, B, N, V, z, k, G;
28275
28275
  if (M && (!h || !r) && (r = "none"), e._ease = Ui(r, Mr.ease), e._yEase = l ? Ef(Ui(l === !0 ? r : l, Mr.ease)) : 0, l && e._yoyo && !e._repeat && (l = e._yEase, e._yEase = e._ease, e._ease = l), e._from = !M && !!i.runBackwards, !M || h && !i.stagger) {
28276
28276
  if (B = _[0] ? jr(_[0]).harness : 0, k = B && i[B.prop], A = ma(i, oc), g && (g._zTime < 0 && g.progress(1), t < 0 && d && o && !f ? g.render(-1, !0) : g.revert(d && p ? ia : ly), g._lazy = 0), a) {
28277
28277
  if (mi(e._startAt = Et.set(_, cn({
@@ -28307,16 +28307,16 @@ var Oy = function(e, t, n, i, r, a, o) {
28307
28307
  return;
28308
28308
  }
28309
28309
  for (e._pt = e._ptCache = 0, c = p && Jt(c) || c && !p, E = 0; E < _.length; E++) {
28310
- if (y = _[E], C = y._gsap || cc(_)[E]._gsap, e._ptLookup[E] = V = {}, El[C.id] && fi.length && pa(), H = S === _ ? E : S.indexOf(y), B && (N = new B()).init(y, k || A, e, H, S) !== !1 && (e._pt = I = new Dr(e._pt, y, N.name, 0, 1, N.render, N, 0, N.priority), N._props.forEach(function(Z) {
28310
+ if (y = _[E], C = y._gsap || cc(_)[E]._gsap, e._ptLookup[E] = V = {}, El[C.id] && fi.length && pa(), z = S === _ ? E : S.indexOf(y), B && (N = new B()).init(y, k || A, e, z, S) !== !1 && (e._pt = I = new Dr(e._pt, y, N.name, 0, 1, N.render, N, 0, N.priority), N._props.forEach(function(Z) {
28311
28311
  V[Z] = I;
28312
28312
  }), N.priority && (b = 1)), !B || k)
28313
28313
  for (R in A)
28314
- dn[R] && (N = ky(R, A, e, H, y, S)) ? N.priority && (b = 1) : V[R] = I = fc.call(e, y, R, "get", A[R], H, S, 0, i.stringFilter);
28315
- e._op && e._op[E] && e.kill(y, e._op[E]), x && e._pt && (hi = e, _t.killTweensOf(y, V, e.globalTime(t)), z = !e.parent, hi = 0), e._pt && c && (El[C.id] = 1);
28314
+ dn[R] && (N = ky(R, A, e, z, y, S)) ? N.priority && (b = 1) : V[R] = I = fc.call(e, y, R, "get", A[R], z, S, 0, i.stringFilter);
28315
+ e._op && e._op[E] && e.kill(y, e._op[E]), x && e._pt && (hi = e, _t.killTweensOf(y, V, e.globalTime(t)), G = !e.parent, hi = 0), e._pt && c && (El[C.id] = 1);
28316
28316
  }
28317
28317
  b && $y(e), e._onInit && e._onInit(e);
28318
28318
  }
28319
- e._onUpdate = u, e._initted = (!e._op || e._pt) && !z, h && t <= 0 && M.render(_n, !0, !0);
28319
+ e._onUpdate = u, e._initted = (!e._op || e._pt) && !G, h && t <= 0 && M.render(_n, !0, !0);
28320
28320
  }, Vy = function(e, t, n, i, r, a, o, c) {
28321
28321
  var u = (e._pt && e._ptCache || (e._ptCache = {}))[t], d, l, h, f;
28322
28322
  if (!u)
@@ -28385,7 +28385,7 @@ var Et = /* @__PURE__ */ (function(s) {
28385
28385
  Jr(cn(M.vars.defaults, {
28386
28386
  ease: "none"
28387
28387
  })), M._ease = Ui(p.ease || i.ease || "none");
28388
- var B = 0, N, V, H;
28388
+ var B = 0, N, V, z;
28389
28389
  if (Vt(p))
28390
28390
  p.forEach(function(k) {
28391
28391
  return M.to(x, k, ">");
@@ -28395,13 +28395,13 @@ var Et = /* @__PURE__ */ (function(s) {
28395
28395
  for (I in p)
28396
28396
  I === "ease" || I === "easeEach" || Gy(I, p[I], E, p.easeEach);
28397
28397
  for (I in E)
28398
- for (N = E[I].sort(function(k, z) {
28399
- return k.t - z.t;
28398
+ for (N = E[I].sort(function(k, G) {
28399
+ return k.t - G.t;
28400
28400
  }), B = 0, A = 0; A < N.length; A++)
28401
- V = N[A], H = {
28401
+ V = N[A], z = {
28402
28402
  ease: V.e,
28403
28403
  duration: (V.t - (A ? N[A - 1].t : 0)) / 100 * u
28404
- }, H[I] = V.v, M.to(x, H, B), B += H.duration;
28404
+ }, z[I] = V.v, M.to(x, z, B), B += z.duration;
28405
28405
  M.duration() < u && M.to({}, {
28406
28406
  duration: u - M.duration()
28407
28407
  });
@@ -29071,7 +29071,12 @@ class va {
29071
29071
  );
29072
29072
  }
29073
29073
  async onLoadAnimation(e, t) {
29074
- const n = e.animations[0], i = this.mixer.clipAction(n);
29074
+ const n = e.animations.find(
29075
+ (a) => a.duration > 0 || a.tracks.length > 0
29076
+ );
29077
+ if (!n)
29078
+ throw new Error(`Animation asset has no playable clips: ${t.name}`);
29079
+ const i = this.mixer.clipAction(n);
29075
29080
  i.weight = 1, t.loop || (i.loop = uh, i.clampWhenFinished = !0);
29076
29081
  const r = t.blendShapeScenario ? new nS(
29077
29082
  await (await fetch(
@@ -29173,7 +29178,32 @@ class va {
29173
29178
  });
29174
29179
  }
29175
29180
  }
29176
- class aS extends EventTarget {
29181
+ function sS(s) {
29182
+ const e = new Set(
29183
+ s.groups.map(({ materialIndex: o }) => o)
29184
+ ).size;
29185
+ if (s.groups.length <= e) return !1;
29186
+ const t = s.getIndex(), n = t?.count ?? s.getAttribute("position")?.count ?? 0;
29187
+ let i = 0;
29188
+ for (const o of s.groups) {
29189
+ if (o.start !== i) return !1;
29190
+ i += o.count;
29191
+ }
29192
+ if (i !== n) return !1;
29193
+ const r = /* @__PURE__ */ new Map();
29194
+ for (const { start: o, count: c, materialIndex: u = 0 } of s.groups) {
29195
+ const d = r.get(u) ?? [];
29196
+ for (let l = o; l < o + c; l += 1)
29197
+ d.push(t?.getX(l) ?? l);
29198
+ r.set(u, d);
29199
+ }
29200
+ s.setIndex([...r.values()].flat()), s.clearGroups();
29201
+ let a = 0;
29202
+ for (const [o, c] of r)
29203
+ s.addGroup(a, c.length, o), a += c.length;
29204
+ return !0;
29205
+ }
29206
+ class oS extends EventTarget {
29177
29207
  constructor(e, t, n) {
29178
29208
  super(), this.canvas = e, this.videoContainer = t, this.api = n, this.renderer = new mx({
29179
29209
  canvas: this.canvas,
@@ -29218,16 +29248,16 @@ class aS extends EventTarget {
29218
29248
  sounds = {};
29219
29249
  soundsReady = Promise.resolve();
29220
29250
  async init() {
29221
- this.loadingManager = new Ql(), this.criticalAssetsReady = new Promise((V, H) => {
29222
- this.loadingManager.onLoad = V, this.loadingManager.onError = (k) => H(new Error(`Critical avatar asset failed to load: ${k}`));
29251
+ this.loadingManager = new Ql(), this.criticalAssetsReady = new Promise((V, z) => {
29252
+ this.loadingManager.onLoad = V, this.loadingManager.onError = (k) => z(new Error(`Critical avatar asset failed to load: ${k}`));
29223
29253
  }), this.criticalAssetsReady.catch(() => {
29224
29254
  });
29225
29255
  const e = 23;
29226
- this.loadingManager.onProgress = (V, H) => {
29227
- const k = H / e, z = new CustomEvent("loading_progress", {
29256
+ this.loadingManager.onProgress = (V, z) => {
29257
+ const k = z / e, G = new CustomEvent("loading_progress", {
29228
29258
  detail: k
29229
29259
  });
29230
- this.dispatchEvent(z);
29260
+ this.dispatchEvent(G);
29231
29261
  }, this.initialAssetsfbxLoader = new qh(this.loadingManager);
29232
29262
  const t = va.preloadInitialAssets(this);
29233
29263
  t.catch(() => {
@@ -29316,29 +29346,29 @@ class aS extends EventTarget {
29316
29346
  N.wrapS = wt, N.wrapT = wt, d.colorSpace = Ue, l.colorSpace = Ue, h.colorSpace = Ue, f.colorSpace = Ue, p.colorSpace = Ue, g.colorSpace = Ue, S.colorSpace = Ue, x.colorSpace = Ue, M.colorSpace = Ue, A.colorSpace = Ue, R.colorSpace = Ue, I.colorSpace = Ue, y.colorSpace = Ue, B.colorSpace = Ue, N.colorSpace = Ue, this.initialAssetsfbxLoader.load(
29317
29347
  this.api.resolveAssetPath("models/female_rig.fbx"),
29318
29348
  async (V) => {
29319
- n.add(V), V.traverse((H) => {
29320
- if (H instanceof vn && (H.castShadow = !0, H.receiveShadow = !0), H.name == "eye_shadows") {
29321
- const z = H.material;
29322
- z.map = B, z.alphaMap = N, z.transparent = !0;
29349
+ n.add(V), V.traverse((z) => {
29350
+ if (z instanceof vn && (sS(z.geometry), z.castShadow = !0, z.receiveShadow = !0), z.name == "eye_shadows") {
29351
+ const G = z.material;
29352
+ G.map = B, G.alphaMap = N, G.transparent = !0;
29323
29353
  return;
29324
29354
  }
29325
- if (H.name == "Hair") {
29326
- this.hair = H;
29355
+ if (z.name == "Hair") {
29356
+ this.hair = z;
29327
29357
  return;
29328
29358
  }
29329
- if (H.name == "Eyes") {
29330
- const k = H, z = new ao({
29359
+ if (z.name == "Eyes") {
29360
+ const k = z, G = new ao({
29331
29361
  map: l
29332
29362
  });
29333
- k.material = z;
29363
+ k.material = G;
29334
29364
  return;
29335
29365
  }
29336
- if (H.name == "Head") {
29337
- this.head = H;
29366
+ if (z.name == "Head") {
29367
+ this.head = z;
29338
29368
  return;
29339
29369
  }
29340
- if (H.name == "Body") {
29341
- this.body = H;
29370
+ if (z.name == "Body") {
29371
+ this.body = z;
29342
29372
  return;
29343
29373
  }
29344
29374
  }), this.hair.material = E, this.head.material = [b, C], this.body.material = [m, _], this.animationManager = new va(
@@ -29545,5 +29575,5 @@ class aS extends EventTarget {
29545
29575
  };
29546
29576
  }
29547
29577
  export {
29548
- aS as Avatar
29578
+ oS as Avatar
29549
29579
  };