vis-core 0.24.2 → 0.24.3

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.
@@ -90,7 +90,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
90
90
  ).toString(CryptoJS.enc.Utf8), qe = JSON.parse($e), rt = Date.now();
91
91
  return !qe.s || qe.s > rt ? (this.token = void 0, "") : qe.e && qe.e < rt ? (this.token = void 0, "") : (qe.isValid = Qe, qe);
92
92
  }
93
- }, version = "0.24.2";
93
+ }, version = "0.24.3";
94
94
  /**
95
95
  * @license
96
96
  * Copyright 2010-2025 Three.js Authors
@@ -2275,8 +2275,8 @@ class Matrix4 {
2275
2275
  return this.multiplyMatrices(e, this);
2276
2276
  }
2277
2277
  multiplyMatrices(e, s) {
2278
- const r = e.elements, T = s.elements, de = this.elements, Xe = r[0], Je = r[4], Ke = r[8], Qe = r[12], _e = r[1], $e = r[5], qe = r[9], rt = r[13], dt = r[2], Wt = r[6], Yt = r[10], st = r[14], Zt = r[3], vt = r[7], Tt = r[11], Jt = r[15], $t = T[0], e0 = T[4], t0 = T[8], i0 = T[12], n0 = T[1], s0 = T[5], d0 = T[9], u0 = T[13], G0 = T[2], h0 = T[6], l0 = T[10], c0 = T[14], a0 = T[3], m0 = T[7], I0 = T[11], C0 = T[15];
2279
- return de[0] = Xe * $t + Je * n0 + Ke * G0 + Qe * a0, de[4] = Xe * e0 + Je * s0 + Ke * h0 + Qe * m0, de[8] = Xe * t0 + Je * d0 + Ke * l0 + Qe * I0, de[12] = Xe * i0 + Je * u0 + Ke * c0 + Qe * C0, de[1] = _e * $t + $e * n0 + qe * G0 + rt * a0, de[5] = _e * e0 + $e * s0 + qe * h0 + rt * m0, de[9] = _e * t0 + $e * d0 + qe * l0 + rt * I0, de[13] = _e * i0 + $e * u0 + qe * c0 + rt * C0, de[2] = dt * $t + Wt * n0 + Yt * G0 + st * a0, de[6] = dt * e0 + Wt * s0 + Yt * h0 + st * m0, de[10] = dt * t0 + Wt * d0 + Yt * l0 + st * I0, de[14] = dt * i0 + Wt * u0 + Yt * c0 + st * C0, de[3] = Zt * $t + vt * n0 + Tt * G0 + Jt * a0, de[7] = Zt * e0 + vt * s0 + Tt * h0 + Jt * m0, de[11] = Zt * t0 + vt * d0 + Tt * l0 + Jt * I0, de[15] = Zt * i0 + vt * u0 + Tt * c0 + Jt * C0, this;
2278
+ const r = e.elements, T = s.elements, de = this.elements, Xe = r[0], Je = r[4], Ke = r[8], Qe = r[12], _e = r[1], $e = r[5], qe = r[9], rt = r[13], dt = r[2], Wt = r[6], Yt = r[10], st = r[14], Zt = r[3], vt = r[7], Tt = r[11], Jt = r[15], $t = T[0], e0 = T[4], t0 = T[8], i0 = T[12], n0 = T[1], s0 = T[5], d0 = T[9], u0 = T[13], G0 = T[2], h0 = T[6], l0 = T[10], r0 = T[14], a0 = T[3], m0 = T[7], I0 = T[11], C0 = T[15];
2279
+ return de[0] = Xe * $t + Je * n0 + Ke * G0 + Qe * a0, de[4] = Xe * e0 + Je * s0 + Ke * h0 + Qe * m0, de[8] = Xe * t0 + Je * d0 + Ke * l0 + Qe * I0, de[12] = Xe * i0 + Je * u0 + Ke * r0 + Qe * C0, de[1] = _e * $t + $e * n0 + qe * G0 + rt * a0, de[5] = _e * e0 + $e * s0 + qe * h0 + rt * m0, de[9] = _e * t0 + $e * d0 + qe * l0 + rt * I0, de[13] = _e * i0 + $e * u0 + qe * r0 + rt * C0, de[2] = dt * $t + Wt * n0 + Yt * G0 + st * a0, de[6] = dt * e0 + Wt * s0 + Yt * h0 + st * m0, de[10] = dt * t0 + Wt * d0 + Yt * l0 + st * I0, de[14] = dt * i0 + Wt * u0 + Yt * r0 + st * C0, de[3] = Zt * $t + vt * n0 + Tt * G0 + Jt * a0, de[7] = Zt * e0 + vt * s0 + Tt * h0 + Jt * m0, de[11] = Zt * t0 + vt * d0 + Tt * l0 + Jt * I0, de[15] = Zt * i0 + vt * u0 + Tt * r0 + Jt * C0, this;
2280
2280
  }
2281
2281
  multiplyScalar(e) {
2282
2282
  const s = this.elements;
@@ -4202,13 +4202,13 @@ class BoxGeometry extends BufferGeometry {
4202
4202
  dt("z", "y", "x", -1, -1, r, s, e, Xe, de, 0), dt("z", "y", "x", 1, -1, r, s, -e, Xe, de, 1), dt("x", "z", "y", 1, 1, e, r, s, T, Xe, 2), dt("x", "z", "y", 1, -1, e, r, -s, T, Xe, 3), dt("x", "y", "z", 1, -1, e, s, r, T, de, 4), dt("x", "y", "z", -1, -1, e, s, -r, T, de, 5), this.setIndex(Ke), this.setAttribute("position", new Float32BufferAttribute(Qe, 3)), this.setAttribute("normal", new Float32BufferAttribute(_e, 3)), this.setAttribute("uv", new Float32BufferAttribute($e, 2));
4203
4203
  function dt(Wt, Yt, st, Zt, vt, Tt, Jt, $t, e0, t0, i0) {
4204
4204
  const n0 = Tt / e0, s0 = Jt / t0, d0 = Tt / 2, u0 = Jt / 2, G0 = $t / 2, h0 = e0 + 1, l0 = t0 + 1;
4205
- let c0 = 0, a0 = 0;
4205
+ let r0 = 0, a0 = 0;
4206
4206
  const m0 = new Vector3();
4207
4207
  for (let I0 = 0; I0 < l0; I0++) {
4208
4208
  const C0 = I0 * s0 - u0;
4209
4209
  for (let B0 = 0; B0 < h0; B0++) {
4210
4210
  const ci = B0 * n0 - d0;
4211
- m0[Wt] = ci * Zt, m0[Yt] = C0 * vt, m0[st] = G0, Qe.push(m0.x, m0.y, m0.z), m0[Wt] = 0, m0[Yt] = 0, m0[st] = $t > 0 ? 1 : -1, _e.push(m0.x, m0.y, m0.z), $e.push(B0 / e0), $e.push(1 - I0 / t0), c0 += 1;
4211
+ m0[Wt] = ci * Zt, m0[Yt] = C0 * vt, m0[st] = G0, Qe.push(m0.x, m0.y, m0.z), m0[Wt] = 0, m0[Yt] = 0, m0[st] = $t > 0 ? 1 : -1, _e.push(m0.x, m0.y, m0.z), $e.push(B0 / e0), $e.push(1 - I0 / t0), r0 += 1;
4212
4212
  }
4213
4213
  }
4214
4214
  for (let I0 = 0; I0 < t0; I0++)
@@ -4216,7 +4216,7 @@ class BoxGeometry extends BufferGeometry {
4216
4216
  const B0 = qe + C0 + h0 * I0, ci = qe + C0 + h0 * (I0 + 1), M0 = qe + (C0 + 1) + h0 * (I0 + 1), A0 = qe + (C0 + 1) + h0 * I0;
4217
4217
  Ke.push(B0, ci, A0), Ke.push(ci, M0, A0), a0 += 6;
4218
4218
  }
4219
- Je.addGroup(rt, a0, i0), rt += a0, qe += c0;
4219
+ Je.addGroup(rt, a0, i0), rt += a0, qe += r0;
4220
4220
  }
4221
4221
  }
4222
4222
  copy(e) {
@@ -7522,7 +7522,7 @@ class ExtrudeGeometry extends BufferGeometry {
7522
7522
  function h0(ti, J0, g0) {
7523
7523
  return J0 || console.error("THREE.ExtrudeGeometry: vec does not exist"), ti.clone().addScaledVector(J0, g0);
7524
7524
  }
7525
- const l0 = n0.length, c0 = u0.length;
7525
+ const l0 = n0.length, r0 = u0.length;
7526
7526
  function a0(ti, J0, g0) {
7527
7527
  let Xi, si, E0;
7528
7528
  const U0 = ti.x - J0.x, ii = ti.y - J0.y, ei = g0.x - ti.x, V0 = g0.y - ti.y, b0 = U0 * U0 + ii * ii, N0 = U0 * V0 - ii * ei;
@@ -7596,21 +7596,21 @@ class ExtrudeGeometry extends BufferGeometry {
7596
7596
  const ti = T.length / 3;
7597
7597
  if (qe) {
7598
7598
  let J0 = 0, g0 = l0 * J0;
7599
- for (let Xi = 0; Xi < c0; Xi++) {
7599
+ for (let Xi = 0; Xi < r0; Xi++) {
7600
7600
  const si = u0[Xi];
7601
7601
  bi(si[2] + g0, si[1] + g0, si[0] + g0);
7602
7602
  }
7603
7603
  J0 = _e + Yt * 2, g0 = l0 * J0;
7604
- for (let Xi = 0; Xi < c0; Xi++) {
7604
+ for (let Xi = 0; Xi < r0; Xi++) {
7605
7605
  const si = u0[Xi];
7606
7606
  bi(si[0] + g0, si[1] + g0, si[2] + g0);
7607
7607
  }
7608
7608
  } else {
7609
- for (let J0 = 0; J0 < c0; J0++) {
7609
+ for (let J0 = 0; J0 < r0; J0++) {
7610
7610
  const g0 = u0[J0];
7611
7611
  bi(g0[2], g0[1], g0[0]);
7612
7612
  }
7613
- for (let J0 = 0; J0 < c0; J0++) {
7613
+ for (let J0 = 0; J0 < r0; J0++) {
7614
7614
  const g0 = u0[J0];
7615
7615
  bi(g0[0] + l0 * _e, g0[1] + l0 * _e, g0[2] + l0 * _e);
7616
7616
  }
@@ -16963,9 +16963,9 @@ function WebGLBindingStates(c, e) {
16963
16963
  function rt(n0, s0, d0, u0) {
16964
16964
  const G0 = de.attributes, h0 = s0.attributes;
16965
16965
  let l0 = 0;
16966
- const c0 = d0.getAttributes();
16967
- for (const a0 in c0)
16968
- if (c0[a0].location >= 0) {
16966
+ const r0 = d0.getAttributes();
16967
+ for (const a0 in r0)
16968
+ if (r0[a0].location >= 0) {
16969
16969
  const I0 = G0[a0];
16970
16970
  let C0 = h0[a0];
16971
16971
  if (C0 === void 0 && (a0 === "instanceMatrix" && n0.instanceMatrix && (C0 = n0.instanceMatrix), a0 === "instanceColor" && n0.instanceColor && (C0 = n0.instanceColor)), I0 === void 0 || I0.attribute !== C0 || C0 && I0.data !== C0.data) return !0;
@@ -16976,9 +16976,9 @@ function WebGLBindingStates(c, e) {
16976
16976
  function dt(n0, s0, d0, u0) {
16977
16977
  const G0 = {}, h0 = s0.attributes;
16978
16978
  let l0 = 0;
16979
- const c0 = d0.getAttributes();
16980
- for (const a0 in c0)
16981
- if (c0[a0].location >= 0) {
16979
+ const r0 = d0.getAttributes();
16980
+ for (const a0 in r0)
16981
+ if (r0[a0].location >= 0) {
16982
16982
  let I0 = h0[a0];
16983
16983
  I0 === void 0 && (a0 === "instanceMatrix" && n0.instanceMatrix && (I0 = n0.instanceMatrix), a0 === "instanceColor" && n0.instanceColor && (I0 = n0.instanceColor));
16984
16984
  const C0 = {};
@@ -17009,11 +17009,11 @@ function WebGLBindingStates(c, e) {
17009
17009
  function Tt(n0, s0, d0, u0) {
17010
17010
  Wt();
17011
17011
  const G0 = u0.attributes, h0 = d0.getAttributes(), l0 = s0.defaultAttributeValues;
17012
- for (const c0 in h0) {
17013
- const a0 = h0[c0];
17012
+ for (const r0 in h0) {
17013
+ const a0 = h0[r0];
17014
17014
  if (a0.location >= 0) {
17015
- let m0 = G0[c0];
17016
- if (m0 === void 0 && (c0 === "instanceMatrix" && n0.instanceMatrix && (m0 = n0.instanceMatrix), c0 === "instanceColor" && n0.instanceColor && (m0 = n0.instanceColor)), m0 !== void 0) {
17015
+ let m0 = G0[r0];
17016
+ if (m0 === void 0 && (r0 === "instanceMatrix" && n0.instanceMatrix && (m0 = n0.instanceMatrix), r0 === "instanceColor" && n0.instanceColor && (m0 = n0.instanceColor)), m0 !== void 0) {
17017
17017
  const I0 = m0.normalized, C0 = m0.itemSize, B0 = e.get(m0);
17018
17018
  if (B0 === void 0) continue;
17019
17019
  const ci = B0.buffer, M0 = B0.type, A0 = B0.bytesPerElement, j0 = M0 === c.INT || M0 === c.UNSIGNED_INT || m0.gpuType === IntType;
@@ -17058,7 +17058,7 @@ function WebGLBindingStates(c, e) {
17058
17058
  );
17059
17059
  }
17060
17060
  } else if (l0 !== void 0) {
17061
- const I0 = l0[c0];
17061
+ const I0 = l0[r0];
17062
17062
  if (I0 !== void 0)
17063
17063
  switch (I0.length) {
17064
17064
  case 2:
@@ -19008,7 +19008,7 @@ function WebGLProgram(c, e, s, r) {
19008
19008
  if (h0 = !1, typeof c.debug.onShaderError == "function")
19009
19009
  c.debug.onShaderError(T, Wt, Jt, $t);
19010
19010
  else {
19011
- const c0 = getShaderErrors(T, Jt, "vertex"), a0 = getShaderErrors(T, $t, "fragment");
19011
+ const r0 = getShaderErrors(T, Jt, "vertex"), a0 = getShaderErrors(T, $t, "fragment");
19012
19012
  console.error(
19013
19013
  "THREE.WebGLProgram: Shader Error " + T.getError() + " - VALIDATE_STATUS " + T.getProgramParameter(Wt, T.VALIDATE_STATUS) + `
19014
19014
 
@@ -19016,7 +19016,7 @@ Material Name: ` + s0.name + `
19016
19016
  Material Type: ` + s0.type + `
19017
19017
 
19018
19018
  Program Info Log: ` + d0 + `
19019
- ` + c0 + `
19019
+ ` + r0 + `
19020
19020
  ` + a0
19021
19021
  );
19022
19022
  }
@@ -19115,7 +19115,7 @@ function WebGLPrograms(c, e, s, r, T, de, Xe) {
19115
19115
  return Qe.add(i0), i0 === 0 ? "uv" : `uv${i0}`;
19116
19116
  }
19117
19117
  function Yt(i0, n0, s0, d0, u0) {
19118
- const G0 = d0.fog, h0 = u0.geometry, l0 = i0.isMeshStandardMaterial ? d0.environment : null, c0 = (i0.isMeshStandardMaterial ? s : e).get(i0.envMap || l0), a0 = c0 && c0.mapping === CubeUVReflectionMapping ? c0.image.height : null, m0 = dt[i0.type];
19118
+ const G0 = d0.fog, h0 = u0.geometry, l0 = i0.isMeshStandardMaterial ? d0.environment : null, r0 = (i0.isMeshStandardMaterial ? s : e).get(i0.envMap || l0), a0 = r0 && r0.mapping === CubeUVReflectionMapping ? r0.image.height : null, m0 = dt[i0.type];
19119
19119
  i0.precision !== null && (rt = T.getMaxPrecision(i0.precision), rt !== i0.precision && console.warn("THREE.WebGLProgram.getParameters:", i0.precision, "not supported, using", rt, "instead."));
19120
19120
  const I0 = h0.morphAttributes.position || h0.morphAttributes.normal || h0.morphAttributes.color, C0 = I0 !== void 0 ? I0.length : 0;
19121
19121
  let B0 = 0;
@@ -19126,7 +19126,7 @@ function WebGLPrograms(c, e, s, r, T, de, Xe) {
19126
19126
  ci = Bi.vertexShader, M0 = Bi.fragmentShader;
19127
19127
  } else
19128
19128
  ci = i0.vertexShader, M0 = i0.fragmentShader, Ke.update(i0), A0 = Ke.getVertexShaderID(i0), j0 = Ke.getFragmentShaderID(i0);
19129
- const ni = c.getRenderTarget(), bi = c.state.buffers.depth.getReversed(), xi = u0.isInstancedMesh === !0, ui = u0.isBatchedMesh === !0, Si = !!i0.map, ti = !!i0.matcap, J0 = !!c0, g0 = !!i0.aoMap, Xi = !!i0.lightMap, si = !!i0.bumpMap, E0 = !!i0.normalMap, U0 = !!i0.displacementMap, ii = !!i0.emissiveMap, ei = !!i0.metalnessMap, V0 = !!i0.roughnessMap, b0 = i0.anisotropy > 0, N0 = i0.clearcoat > 0, P0 = i0.dispersion > 0, $0 = i0.iridescence > 0, Q0 = i0.sheen > 0, Vi = i0.transmission > 0, Gi = b0 && !!i0.anisotropyMap, Zi = N0 && !!i0.clearcoatMap, Ji = N0 && !!i0.clearcoatNormalMap, mi = N0 && !!i0.clearcoatRoughnessMap, Ri = $0 && !!i0.iridescenceMap, Ci = $0 && !!i0.iridescenceThicknessMap, vi = Q0 && !!i0.sheenColorMap, fi = Q0 && !!i0.sheenRoughnessMap, Hi = !!i0.specularMap, Ti = !!i0.specularColorMap, wi = !!i0.specularIntensityMap, H0 = Vi && !!i0.transmissionMap, _0 = Vi && !!i0.thicknessMap, D0 = !!i0.gradientMap, ri = !!i0.alphaMap, gi = i0.alphaTest > 0, Wi = !!i0.alphaHash, ki = !!i0.extensions;
19129
+ const ni = c.getRenderTarget(), bi = c.state.buffers.depth.getReversed(), xi = u0.isInstancedMesh === !0, ui = u0.isBatchedMesh === !0, Si = !!i0.map, ti = !!i0.matcap, J0 = !!r0, g0 = !!i0.aoMap, Xi = !!i0.lightMap, si = !!i0.bumpMap, E0 = !!i0.normalMap, U0 = !!i0.displacementMap, ii = !!i0.emissiveMap, ei = !!i0.metalnessMap, V0 = !!i0.roughnessMap, b0 = i0.anisotropy > 0, N0 = i0.clearcoat > 0, P0 = i0.dispersion > 0, $0 = i0.iridescence > 0, Q0 = i0.sheen > 0, Vi = i0.transmission > 0, Gi = b0 && !!i0.anisotropyMap, Zi = N0 && !!i0.clearcoatMap, Ji = N0 && !!i0.clearcoatNormalMap, mi = N0 && !!i0.clearcoatRoughnessMap, Ri = $0 && !!i0.iridescenceMap, Ci = $0 && !!i0.iridescenceThicknessMap, vi = Q0 && !!i0.sheenColorMap, fi = Q0 && !!i0.sheenRoughnessMap, Hi = !!i0.specularMap, Ti = !!i0.specularColorMap, wi = !!i0.specularIntensityMap, H0 = Vi && !!i0.transmissionMap, _0 = Vi && !!i0.thicknessMap, D0 = !!i0.gradientMap, ri = !!i0.alphaMap, gi = i0.alphaTest > 0, Wi = !!i0.alphaHash, ki = !!i0.extensions;
19130
19130
  let Ai = NoToneMapping;
19131
19131
  i0.toneMapped && (ni === null || ni.isXRRenderTarget === !0) && (Ai = c.toneMapping);
19132
19132
  const Oi = {
@@ -19152,7 +19152,7 @@ function WebGLPrograms(c, e, s, r, T, de, Xe) {
19152
19152
  map: Si,
19153
19153
  matcap: ti,
19154
19154
  envMap: J0,
19155
- envMapMode: J0 && c0.mapping,
19155
+ envMapMode: J0 && r0.mapping,
19156
19156
  envMapCubeUVHeight: a0,
19157
19157
  aoMap: g0,
19158
19158
  lightMap: Xi,
@@ -19571,17 +19571,17 @@ function WebGLLights(c) {
19571
19571
  } else if (s0.isDirectionalLight) {
19572
19572
  const l0 = e.get(s0);
19573
19573
  if (l0.color.copy(s0.color).multiplyScalar(s0.intensity), s0.castShadow) {
19574
- const c0 = s0.shadow, a0 = s.get(s0);
19575
- a0.shadowIntensity = c0.intensity, a0.shadowBias = c0.bias, a0.shadowNormalBias = c0.normalBias, a0.shadowRadius = c0.radius, a0.shadowMapSize = c0.mapSize, r.directionalShadow[rt] = a0, r.directionalShadowMap[rt] = h0, r.directionalShadowMatrix[rt] = s0.shadow.matrix, Zt++;
19574
+ const r0 = s0.shadow, a0 = s.get(s0);
19575
+ a0.shadowIntensity = r0.intensity, a0.shadowBias = r0.bias, a0.shadowNormalBias = r0.normalBias, a0.shadowRadius = r0.radius, a0.shadowMapSize = r0.mapSize, r.directionalShadow[rt] = a0, r.directionalShadowMap[rt] = h0, r.directionalShadowMatrix[rt] = s0.shadow.matrix, Zt++;
19576
19576
  }
19577
19577
  r.directional[rt] = l0, rt++;
19578
19578
  } else if (s0.isSpotLight) {
19579
19579
  const l0 = e.get(s0);
19580
19580
  l0.position.setFromMatrixPosition(s0.matrixWorld), l0.color.copy(d0).multiplyScalar(u0), l0.distance = G0, l0.coneCos = Math.cos(s0.angle), l0.penumbraCos = Math.cos(s0.angle * (1 - s0.penumbra)), l0.decay = s0.decay, r.spot[Wt] = l0;
19581
- const c0 = s0.shadow;
19582
- if (s0.map && (r.spotLightMap[Jt] = s0.map, Jt++, c0.updateMatrices(s0), s0.castShadow && $t++), r.spotLightMatrix[Wt] = c0.matrix, s0.castShadow) {
19581
+ const r0 = s0.shadow;
19582
+ if (s0.map && (r.spotLightMap[Jt] = s0.map, Jt++, r0.updateMatrices(s0), s0.castShadow && $t++), r.spotLightMatrix[Wt] = r0.matrix, s0.castShadow) {
19583
19583
  const a0 = s.get(s0);
19584
- a0.shadowIntensity = c0.intensity, a0.shadowBias = c0.bias, a0.shadowNormalBias = c0.normalBias, a0.shadowRadius = c0.radius, a0.shadowMapSize = c0.mapSize, r.spotShadow[Wt] = a0, r.spotShadowMap[Wt] = h0, Tt++;
19584
+ a0.shadowIntensity = r0.intensity, a0.shadowBias = r0.bias, a0.shadowNormalBias = r0.normalBias, a0.shadowRadius = r0.radius, a0.shadowMapSize = r0.mapSize, r.spotShadow[Wt] = a0, r.spotShadowMap[Wt] = h0, Tt++;
19585
19585
  }
19586
19586
  Wt++;
19587
19587
  } else if (s0.isRectAreaLight) {
@@ -19590,8 +19590,8 @@ function WebGLLights(c) {
19590
19590
  } else if (s0.isPointLight) {
19591
19591
  const l0 = e.get(s0);
19592
19592
  if (l0.color.copy(s0.color).multiplyScalar(s0.intensity), l0.distance = s0.distance, l0.decay = s0.decay, s0.castShadow) {
19593
- const c0 = s0.shadow, a0 = s.get(s0);
19594
- a0.shadowIntensity = c0.intensity, a0.shadowBias = c0.bias, a0.shadowNormalBias = c0.normalBias, a0.shadowRadius = c0.radius, a0.shadowMapSize = c0.mapSize, a0.shadowCameraNear = c0.camera.near, a0.shadowCameraFar = c0.camera.far, r.pointShadow[dt] = a0, r.pointShadowMap[dt] = h0, r.pointShadowMatrix[dt] = s0.shadow.matrix, vt++;
19593
+ const r0 = s0.shadow, a0 = s.get(s0);
19594
+ a0.shadowIntensity = r0.intensity, a0.shadowBias = r0.bias, a0.shadowNormalBias = r0.normalBias, a0.shadowRadius = r0.radius, a0.shadowMapSize = r0.mapSize, a0.shadowCameraNear = r0.camera.near, a0.shadowCameraFar = r0.camera.far, r.pointShadow[dt] = a0, r.pointShadowMap[dt] = h0, r.pointShadowMatrix[dt] = s0.shadow.matrix, vt++;
19595
19595
  }
19596
19596
  r.point[dt] = l0, dt++;
19597
19597
  } else if (s0.isHemisphereLight) {
@@ -19741,9 +19741,9 @@ function WebGLShadowMap(c, e, s) {
19741
19741
  d0.setBlending(NoBlending), d0.buffers.color.setClear(1, 1, 1, 1), d0.buffers.depth.setTest(!0), d0.setScissorTest(!1);
19742
19742
  const u0 = st !== VSMShadowMap && this.type === VSMShadowMap, G0 = st === VSMShadowMap && this.type !== VSMShadowMap;
19743
19743
  for (let h0 = 0, l0 = $t.length; h0 < l0; h0++) {
19744
- const c0 = $t[h0], a0 = c0.shadow;
19744
+ const r0 = $t[h0], a0 = r0.shadow;
19745
19745
  if (a0 === void 0) {
19746
- console.warn("THREE.WebGLShadowMap:", c0, "has no shadow.");
19746
+ console.warn("THREE.WebGLShadowMap:", r0, "has no shadow.");
19747
19747
  continue;
19748
19748
  }
19749
19749
  if (a0.autoUpdate === !1 && a0.needsUpdate === !1) continue;
@@ -19751,7 +19751,7 @@ function WebGLShadowMap(c, e, s) {
19751
19751
  const m0 = a0.getFrameExtents();
19752
19752
  if (T.multiply(m0), de.copy(a0.mapSize), (T.x > _e || T.y > _e) && (T.x > _e && (de.x = Math.floor(_e / m0.x), T.x = de.x * m0.x, a0.mapSize.x = de.x), T.y > _e && (de.y = Math.floor(_e / m0.y), T.y = de.y * m0.y, a0.mapSize.y = de.y)), a0.map === null || u0 === !0 || G0 === !0) {
19753
19753
  const C0 = this.type !== VSMShadowMap ? { minFilter: NearestFilter, magFilter: NearestFilter } : {};
19754
- a0.map !== null && a0.map.dispose(), a0.map = new WebGLRenderTarget(T.x, T.y, C0), a0.map.texture.name = c0.name + ".shadowMap", a0.camera.updateProjectionMatrix();
19754
+ a0.map !== null && a0.map.dispose(), a0.map = new WebGLRenderTarget(T.x, T.y, C0), a0.map.texture.name = r0.name + ".shadowMap", a0.camera.updateProjectionMatrix();
19755
19755
  }
19756
19756
  c.setRenderTarget(a0.map), c.clear();
19757
19757
  const I0 = a0.getViewportCount();
@@ -19762,7 +19762,7 @@ function WebGLShadowMap(c, e, s) {
19762
19762
  de.y * B0.y,
19763
19763
  de.x * B0.z,
19764
19764
  de.y * B0.w
19765
- ), d0.viewport(Xe), a0.updateMatrices(c0, C0), r = a0.getFrustum(), Tt(e0, t0, a0.camera, c0, this.type);
19765
+ ), d0.viewport(Xe), a0.updateMatrices(r0, C0), r = a0.getFrustum(), Tt(e0, t0, a0.camera, r0, this.type);
19766
19766
  }
19767
19767
  a0.isPointLightShadow !== !0 && this.type === VSMShadowMap && Zt(a0, t0), a0.needsUpdate = !1;
19768
19768
  }
@@ -19797,7 +19797,7 @@ function WebGLShadowMap(c, e, s) {
19797
19797
  const u0 = e.update($t), G0 = $t.material;
19798
19798
  if (Array.isArray(G0)) {
19799
19799
  const h0 = u0.groups;
19800
- for (let l0 = 0, c0 = h0.length; l0 < c0; l0++) {
19800
+ for (let l0 = 0, r0 = h0.length; l0 < r0; l0++) {
19801
19801
  const a0 = h0[l0], m0 = G0[a0.materialIndex];
19802
19802
  if (m0 && m0.visible) {
19803
19803
  const I0 = vt($t, m0, i0, n0);
@@ -19946,9 +19946,9 @@ function WebGLState(c, e) {
19946
19946
  const de = new s(), Xe = new r(), Je = new T(), Ke = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap();
19947
19947
  let _e = {}, $e = {}, qe = /* @__PURE__ */ new WeakMap(), rt = [], dt = null, Wt = !1, Yt = null, st = null, Zt = null, vt = null, Tt = null, Jt = null, $t = null, e0 = new Color$1(0, 0, 0), t0 = 0, i0 = !1, n0 = null, s0 = null, d0 = null, u0 = null, G0 = null;
19948
19948
  const h0 = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
19949
- let l0 = !1, c0 = 0;
19949
+ let l0 = !1, r0 = 0;
19950
19950
  const a0 = c.getParameter(c.VERSION);
19951
- a0.indexOf("WebGL") !== -1 ? (c0 = parseFloat(/^WebGL (\d)/.exec(a0)[1]), l0 = c0 >= 1) : a0.indexOf("OpenGL ES") !== -1 && (c0 = parseFloat(/^OpenGL ES (\d)/.exec(a0)[1]), l0 = c0 >= 2);
19951
+ a0.indexOf("WebGL") !== -1 ? (r0 = parseFloat(/^WebGL (\d)/.exec(a0)[1]), l0 = r0 >= 1) : a0.indexOf("OpenGL ES") !== -1 && (r0 = parseFloat(/^OpenGL ES (\d)/.exec(a0)[1]), l0 = r0 >= 2);
19952
19952
  let m0 = null, I0 = {};
19953
19953
  const C0 = c.getParameter(c.SCISSOR_BOX), B0 = c.getParameter(c.VIEWPORT), ci = new Vector4().fromArray(C0), M0 = new Vector4().fromArray(B0);
19954
19954
  function A0(H0, _0, D0, ri) {
@@ -20361,7 +20361,7 @@ function WebGLTextures(c, e, s, r, T, de, Xe) {
20361
20361
  }
20362
20362
  s.bindTexture(c.TEXTURE_2D_ARRAY, N0.__webglTexture, c.TEXTURE0 + b0);
20363
20363
  }
20364
- function c0(V0, b0) {
20364
+ function r0(V0, b0) {
20365
20365
  const N0 = r.get(V0);
20366
20366
  if (V0.version > 0 && N0.__version !== V0.version) {
20367
20367
  M0(N0, V0, b0);
@@ -20773,7 +20773,7 @@ function WebGLTextures(c, e, s, r, T, de, Xe) {
20773
20773
  function ei(V0) {
20774
20774
  return typeof HTMLImageElement != "undefined" && V0 instanceof HTMLImageElement ? (Qe.width = V0.naturalWidth || V0.width, Qe.height = V0.naturalHeight || V0.height) : typeof VideoFrame != "undefined" && V0 instanceof VideoFrame ? (Qe.width = V0.displayWidth, Qe.height = V0.displayHeight) : (Qe.width = V0.width, Qe.height = V0.height), Qe;
20775
20775
  }
20776
- this.allocateTextureUnit = u0, this.resetTextureUnits = d0, this.setTexture2D = h0, this.setTexture2DArray = l0, this.setTexture3D = c0, this.setTextureCube = a0, this.rebindTextures = ui, this.setupRenderTarget = Si, this.updateRenderTargetMipmap = ti, this.updateMultisampleRenderTarget = Xi, this.setupDepthRenderbuffer = xi, this.setupFrameBufferTexture = j0, this.useMultisampledRTT = E0;
20776
+ this.allocateTextureUnit = u0, this.resetTextureUnits = d0, this.setTexture2D = h0, this.setTexture2DArray = l0, this.setTexture3D = r0, this.setTextureCube = a0, this.rebindTextures = ui, this.setupRenderTarget = Si, this.updateRenderTargetMipmap = ti, this.updateMultisampleRenderTarget = Xi, this.setupDepthRenderbuffer = xi, this.setupFrameBufferTexture = j0, this.useMultisampledRTT = E0;
20777
20777
  }
20778
20778
  function WebGLUtils(c, e) {
20779
20779
  function s(r, T = NoColorSpace) {
@@ -21057,10 +21057,10 @@ class WebXRManager extends EventDispatcher {
21057
21057
  bi && bi.connect(j0);
21058
21058
  }
21059
21059
  }
21060
- const l0 = new Vector3(), c0 = new Vector3();
21060
+ const l0 = new Vector3(), r0 = new Vector3();
21061
21061
  function a0(M0, A0, j0) {
21062
- l0.setFromMatrixPosition(A0.matrixWorld), c0.setFromMatrixPosition(j0.matrixWorld);
21063
- const ni = l0.distanceTo(c0), bi = A0.projectionMatrix.elements, xi = j0.projectionMatrix.elements, ui = bi[14] / (bi[10] - 1), Si = bi[14] / (bi[10] + 1), ti = (bi[9] + 1) / bi[5], J0 = (bi[9] - 1) / bi[5], g0 = (bi[8] - 1) / bi[0], Xi = (xi[8] + 1) / xi[0], si = ui * g0, E0 = ui * Xi, U0 = ni / (-g0 + Xi), ii = U0 * -g0;
21062
+ l0.setFromMatrixPosition(A0.matrixWorld), r0.setFromMatrixPosition(j0.matrixWorld);
21063
+ const ni = l0.distanceTo(r0), bi = A0.projectionMatrix.elements, xi = j0.projectionMatrix.elements, ui = bi[14] / (bi[10] - 1), Si = bi[14] / (bi[10] + 1), ti = (bi[9] + 1) / bi[5], J0 = (bi[9] - 1) / bi[5], g0 = (bi[8] - 1) / bi[0], Xi = (xi[8] + 1) / xi[0], si = ui * g0, E0 = ui * Xi, U0 = ni / (-g0 + Xi), ii = U0 * -g0;
21064
21064
  if (A0.matrixWorld.decompose(M0.position, M0.quaternion, M0.scale), M0.translateX(ii), M0.translateZ(U0), M0.matrixWorld.compose(M0.position, M0.quaternion, M0.scale), M0.matrixWorldInverse.copy(M0.matrixWorld).invert(), bi[10] === -1)
21065
21065
  M0.projectionMatrix.copy(A0.projectionMatrix), M0.projectionMatrixInverse.copy(A0.projectionMatrixInverse);
21066
21066
  else {
@@ -21231,8 +21231,8 @@ function WebGLUniformsGroups(c, e, s, r) {
21231
21231
  const d0 = s0.__offset, u0 = Array.isArray(s0.value) ? s0.value : [s0.value];
21232
21232
  let G0 = 0;
21233
21233
  for (let h0 = 0; h0 < u0.length; h0++) {
21234
- const l0 = u0[h0], c0 = Wt(l0);
21235
- typeof l0 == "number" || typeof l0 == "boolean" ? (s0.__data[0] = l0, c.bufferSubData(c.UNIFORM_BUFFER, d0 + G0, s0.__data)) : l0.isMatrix3 ? (s0.__data[0] = l0.elements[0], s0.__data[1] = l0.elements[1], s0.__data[2] = l0.elements[2], s0.__data[3] = 0, s0.__data[4] = l0.elements[3], s0.__data[5] = l0.elements[4], s0.__data[6] = l0.elements[5], s0.__data[7] = 0, s0.__data[8] = l0.elements[6], s0.__data[9] = l0.elements[7], s0.__data[10] = l0.elements[8], s0.__data[11] = 0) : (l0.toArray(s0.__data, G0), G0 += c0.storage / Float32Array.BYTES_PER_ELEMENT);
21234
+ const l0 = u0[h0], r0 = Wt(l0);
21235
+ typeof l0 == "number" || typeof l0 == "boolean" ? (s0.__data[0] = l0, c.bufferSubData(c.UNIFORM_BUFFER, d0 + G0, s0.__data)) : l0.isMatrix3 ? (s0.__data[0] = l0.elements[0], s0.__data[1] = l0.elements[1], s0.__data[2] = l0.elements[2], s0.__data[3] = 0, s0.__data[4] = l0.elements[3], s0.__data[5] = l0.elements[4], s0.__data[6] = l0.elements[5], s0.__data[7] = 0, s0.__data[8] = l0.elements[6], s0.__data[9] = l0.elements[7], s0.__data[10] = l0.elements[8], s0.__data[11] = 0) : (l0.toArray(s0.__data, G0), G0 += r0.storage / Float32Array.BYTES_PER_ELEMENT);
21236
21236
  }
21237
21237
  c.bufferSubData(c.UNIFORM_BUFFER, d0, s0.__data);
21238
21238
  }
@@ -21263,8 +21263,8 @@ function WebGLUniformsGroups(c, e, s, r) {
21263
21263
  for (let n0 = 0, s0 = i0.length; n0 < s0; n0++) {
21264
21264
  const d0 = i0[n0], u0 = Array.isArray(d0.value) ? d0.value : [d0.value];
21265
21265
  for (let G0 = 0, h0 = u0.length; G0 < h0; G0++) {
21266
- const l0 = u0[G0], c0 = Wt(l0), a0 = Tt % Jt, m0 = a0 % c0.boundary, I0 = a0 + m0;
21267
- Tt += m0, I0 !== 0 && Jt - I0 < c0.storage && (Tt += Jt - I0), d0.__data = new Float32Array(c0.storage / Float32Array.BYTES_PER_ELEMENT), d0.__offset = Tt, Tt += c0.storage;
21266
+ const l0 = u0[G0], r0 = Wt(l0), a0 = Tt % Jt, m0 = a0 % r0.boundary, I0 = a0 + m0;
21267
+ Tt += m0, I0 !== 0 && Jt - I0 < r0.storage && (Tt += Jt - I0), d0.__data = new Float32Array(r0.storage / Float32Array.BYTES_PER_ELEMENT), d0.__offset = Tt, Tt += r0.storage;
21268
21268
  }
21269
21269
  }
21270
21270
  }
@@ -21340,8 +21340,8 @@ class WebGLRenderer {
21340
21340
  const s0 = new Vector4(), d0 = new Vector4();
21341
21341
  let u0 = null;
21342
21342
  const G0 = new Color$1(0);
21343
- let h0 = 0, l0 = s.width, c0 = s.height, a0 = 1, m0 = null, I0 = null;
21344
- const C0 = new Vector4(0, 0, l0, c0), B0 = new Vector4(0, 0, l0, c0);
21343
+ let h0 = 0, l0 = s.width, r0 = s.height, a0 = 1, m0 = null, I0 = null;
21344
+ const C0 = new Vector4(0, 0, l0, r0), B0 = new Vector4(0, 0, l0, r0);
21345
21345
  let ci = !1;
21346
21346
  const M0 = new Frustum();
21347
21347
  let A0 = !1, j0 = !1;
@@ -21352,11 +21352,11 @@ class WebGLRenderer {
21352
21352
  return t0 === null ? a0 : 1;
21353
21353
  }
21354
21354
  let g0 = r;
21355
- function Xi(r0, R0) {
21356
- return s.getContext(r0, R0);
21355
+ function Xi(c0, R0) {
21356
+ return s.getContext(c0, R0);
21357
21357
  }
21358
21358
  try {
21359
- const r0 = {
21359
+ const c0 = {
21360
21360
  alpha: !0,
21361
21361
  depth: T,
21362
21362
  stencil: de,
@@ -21368,11 +21368,11 @@ class WebGLRenderer {
21368
21368
  };
21369
21369
  if ("setAttribute" in s && s.setAttribute("data-engine", `three.js r${REVISION}`), s.addEventListener("webglcontextlost", ri, !1), s.addEventListener("webglcontextrestored", gi, !1), s.addEventListener("webglcontextcreationerror", Wi, !1), g0 === null) {
21370
21370
  const R0 = "webgl2";
21371
- if (g0 = Xi(R0, r0), g0 === null)
21371
+ if (g0 = Xi(R0, c0), g0 === null)
21372
21372
  throw Xi(R0) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
21373
21373
  }
21374
- } catch (r0) {
21375
- throw console.error("THREE.WebGLRenderer: " + r0.message), r0;
21374
+ } catch (c0) {
21375
+ throw console.error("THREE.WebGLRenderer: " + c0.message), c0;
21376
21376
  }
21377
21377
  let si, E0, U0, ii, ei, V0, b0, N0, P0, $0, Q0, Vi, Gi, Zi, Ji, mi, Ri, Ci, vi, fi, Hi, Ti, wi, H0;
21378
21378
  function _0() {
@@ -21385,56 +21385,56 @@ class WebGLRenderer {
21385
21385
  }, this.getContextAttributes = function() {
21386
21386
  return g0.getContextAttributes();
21387
21387
  }, this.forceContextLoss = function() {
21388
- const r0 = si.get("WEBGL_lose_context");
21389
- r0 && r0.loseContext();
21388
+ const c0 = si.get("WEBGL_lose_context");
21389
+ c0 && c0.loseContext();
21390
21390
  }, this.forceContextRestore = function() {
21391
- const r0 = si.get("WEBGL_lose_context");
21392
- r0 && r0.restoreContext();
21391
+ const c0 = si.get("WEBGL_lose_context");
21392
+ c0 && c0.restoreContext();
21393
21393
  }, this.getPixelRatio = function() {
21394
21394
  return a0;
21395
- }, this.setPixelRatio = function(r0) {
21396
- r0 !== void 0 && (a0 = r0, this.setSize(l0, c0, !1));
21397
- }, this.getSize = function(r0) {
21398
- return r0.set(l0, c0);
21399
- }, this.setSize = function(r0, R0, S0 = !0) {
21395
+ }, this.setPixelRatio = function(c0) {
21396
+ c0 !== void 0 && (a0 = c0, this.setSize(l0, r0, !1));
21397
+ }, this.getSize = function(c0) {
21398
+ return c0.set(l0, r0);
21399
+ }, this.setSize = function(c0, R0, S0 = !0) {
21400
21400
  if (D0.isPresenting) {
21401
21401
  console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");
21402
21402
  return;
21403
21403
  }
21404
- l0 = r0, c0 = R0, s.width = Math.floor(r0 * a0), s.height = Math.floor(R0 * a0), S0 === !0 && (s.style.width = r0 + "px", s.style.height = R0 + "px"), this.setViewport(0, 0, r0, R0);
21405
- }, this.getDrawingBufferSize = function(r0) {
21406
- return r0.set(l0 * a0, c0 * a0).floor();
21407
- }, this.setDrawingBufferSize = function(r0, R0, S0) {
21408
- l0 = r0, c0 = R0, a0 = S0, s.width = Math.floor(r0 * S0), s.height = Math.floor(R0 * S0), this.setViewport(0, 0, r0, R0);
21409
- }, this.getCurrentViewport = function(r0) {
21410
- return r0.copy(s0);
21411
- }, this.getViewport = function(r0) {
21412
- return r0.copy(C0);
21413
- }, this.setViewport = function(r0, R0, S0, T0) {
21414
- r0.isVector4 ? C0.set(r0.x, r0.y, r0.z, r0.w) : C0.set(r0, R0, S0, T0), U0.viewport(s0.copy(C0).multiplyScalar(a0).round());
21415
- }, this.getScissor = function(r0) {
21416
- return r0.copy(B0);
21417
- }, this.setScissor = function(r0, R0, S0, T0) {
21418
- r0.isVector4 ? B0.set(r0.x, r0.y, r0.z, r0.w) : B0.set(r0, R0, S0, T0), U0.scissor(d0.copy(B0).multiplyScalar(a0).round());
21404
+ l0 = c0, r0 = R0, s.width = Math.floor(c0 * a0), s.height = Math.floor(R0 * a0), S0 === !0 && (s.style.width = c0 + "px", s.style.height = R0 + "px"), this.setViewport(0, 0, c0, R0);
21405
+ }, this.getDrawingBufferSize = function(c0) {
21406
+ return c0.set(l0 * a0, r0 * a0).floor();
21407
+ }, this.setDrawingBufferSize = function(c0, R0, S0) {
21408
+ l0 = c0, r0 = R0, a0 = S0, s.width = Math.floor(c0 * S0), s.height = Math.floor(R0 * S0), this.setViewport(0, 0, c0, R0);
21409
+ }, this.getCurrentViewport = function(c0) {
21410
+ return c0.copy(s0);
21411
+ }, this.getViewport = function(c0) {
21412
+ return c0.copy(C0);
21413
+ }, this.setViewport = function(c0, R0, S0, T0) {
21414
+ c0.isVector4 ? C0.set(c0.x, c0.y, c0.z, c0.w) : C0.set(c0, R0, S0, T0), U0.viewport(s0.copy(C0).multiplyScalar(a0).round());
21415
+ }, this.getScissor = function(c0) {
21416
+ return c0.copy(B0);
21417
+ }, this.setScissor = function(c0, R0, S0, T0) {
21418
+ c0.isVector4 ? B0.set(c0.x, c0.y, c0.z, c0.w) : B0.set(c0, R0, S0, T0), U0.scissor(d0.copy(B0).multiplyScalar(a0).round());
21419
21419
  }, this.getScissorTest = function() {
21420
21420
  return ci;
21421
- }, this.setScissorTest = function(r0) {
21422
- U0.setScissorTest(ci = r0);
21423
- }, this.setOpaqueSort = function(r0) {
21424
- m0 = r0;
21425
- }, this.setTransparentSort = function(r0) {
21426
- I0 = r0;
21427
- }, this.getClearColor = function(r0) {
21428
- return r0.copy(Ci.getClearColor());
21421
+ }, this.setScissorTest = function(c0) {
21422
+ U0.setScissorTest(ci = c0);
21423
+ }, this.setOpaqueSort = function(c0) {
21424
+ m0 = c0;
21425
+ }, this.setTransparentSort = function(c0) {
21426
+ I0 = c0;
21427
+ }, this.getClearColor = function(c0) {
21428
+ return c0.copy(Ci.getClearColor());
21429
21429
  }, this.setClearColor = function() {
21430
21430
  Ci.setClearColor.apply(Ci, arguments);
21431
21431
  }, this.getClearAlpha = function() {
21432
21432
  return Ci.getClearAlpha();
21433
21433
  }, this.setClearAlpha = function() {
21434
21434
  Ci.setClearAlpha.apply(Ci, arguments);
21435
- }, this.clear = function(r0 = !0, R0 = !0, S0 = !0) {
21435
+ }, this.clear = function(c0 = !0, R0 = !0, S0 = !0) {
21436
21436
  let T0 = 0;
21437
- if (r0) {
21437
+ if (c0) {
21438
21438
  let L0 = !1;
21439
21439
  if (t0 !== null) {
21440
21440
  const F0 = t0.texture.format;
@@ -21456,33 +21456,33 @@ class WebGLRenderer {
21456
21456
  }, this.dispose = function() {
21457
21457
  s.removeEventListener("webglcontextlost", ri, !1), s.removeEventListener("webglcontextrestored", gi, !1), s.removeEventListener("webglcontextcreationerror", Wi, !1), Ci.dispose(), Zi.dispose(), Ji.dispose(), ei.dispose(), b0.dispose(), N0.dispose(), Q0.dispose(), wi.dispose(), H0.dispose(), Vi.dispose(), D0.dispose(), D0.removeEventListener("sessionstart", G1), D0.removeEventListener("sessionend", V1), t1.stop();
21458
21458
  };
21459
- function ri(r0) {
21460
- r0.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), Jt = !0;
21459
+ function ri(c0) {
21460
+ c0.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), Jt = !0;
21461
21461
  }
21462
21462
  function gi() {
21463
21463
  console.log("THREE.WebGLRenderer: Context Restored."), Jt = !1;
21464
- const r0 = ii.autoReset, R0 = Ri.enabled, S0 = Ri.autoUpdate, T0 = Ri.needsUpdate, L0 = Ri.type;
21465
- _0(), ii.autoReset = r0, Ri.enabled = R0, Ri.autoUpdate = S0, Ri.needsUpdate = T0, Ri.type = L0;
21464
+ const c0 = ii.autoReset, R0 = Ri.enabled, S0 = Ri.autoUpdate, T0 = Ri.needsUpdate, L0 = Ri.type;
21465
+ _0(), ii.autoReset = c0, Ri.enabled = R0, Ri.autoUpdate = S0, Ri.needsUpdate = T0, Ri.type = L0;
21466
21466
  }
21467
- function Wi(r0) {
21468
- console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", r0.statusMessage);
21467
+ function Wi(c0) {
21468
+ console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", c0.statusMessage);
21469
21469
  }
21470
- function ki(r0) {
21471
- const R0 = r0.target;
21470
+ function ki(c0) {
21471
+ const R0 = c0.target;
21472
21472
  R0.removeEventListener("dispose", ki), Ai(R0);
21473
21473
  }
21474
- function Ai(r0) {
21475
- Oi(r0), ei.remove(r0);
21474
+ function Ai(c0) {
21475
+ Oi(c0), ei.remove(c0);
21476
21476
  }
21477
- function Oi(r0) {
21478
- const R0 = ei.get(r0).programs;
21477
+ function Oi(c0) {
21478
+ const R0 = ei.get(c0).programs;
21479
21479
  R0 !== void 0 && (R0.forEach(function(S0) {
21480
21480
  Vi.releaseProgram(S0);
21481
- }), r0.isShaderMaterial && Vi.releaseShaderCache(r0));
21481
+ }), c0.isShaderMaterial && Vi.releaseShaderCache(c0));
21482
21482
  }
21483
- this.renderBufferDirect = function(r0, R0, S0, T0, L0, F0) {
21483
+ this.renderBufferDirect = function(c0, R0, S0, T0, L0, F0) {
21484
21484
  R0 === null && (R0 = Si);
21485
- const k0 = L0.isMesh && L0.matrixWorld.determinant() < 0, K0 = I1(r0, R0, S0, T0, L0);
21485
+ const k0 = L0.isMesh && L0.matrixWorld.determinant() < 0, K0 = I1(c0, R0, S0, T0, L0);
21486
21486
  U0.setMaterial(T0, k0);
21487
21487
  let O0 = S0.index, li = 1;
21488
21488
  if (T0.wireframe === !0) {
@@ -21520,17 +21520,17 @@ class WebGLRenderer {
21520
21520
  } else
21521
21521
  Mi.render(hi, Yi);
21522
21522
  };
21523
- function Bi(r0, R0, S0) {
21524
- r0.transparent === !0 && r0.side === DoubleSide && r0.forceSinglePass === !1 ? (r0.side = BackSide, r0.needsUpdate = !0, r1(r0, R0, S0), r0.side = FrontSide, r0.needsUpdate = !0, r1(r0, R0, S0), r0.side = DoubleSide) : r1(r0, R0, S0);
21523
+ function Bi(c0, R0, S0) {
21524
+ c0.transparent === !0 && c0.side === DoubleSide && c0.forceSinglePass === !1 ? (c0.side = BackSide, c0.needsUpdate = !0, r1(c0, R0, S0), c0.side = FrontSide, c0.needsUpdate = !0, r1(c0, R0, S0), c0.side = DoubleSide) : r1(c0, R0, S0);
21525
21525
  }
21526
- this.compile = function(r0, R0, S0 = null) {
21527
- S0 === null && (S0 = r0), st = Ji.get(S0), st.init(R0), vt.push(st), S0.traverseVisible(function(L0) {
21526
+ this.compile = function(c0, R0, S0 = null) {
21527
+ S0 === null && (S0 = c0), st = Ji.get(S0), st.init(R0), vt.push(st), S0.traverseVisible(function(L0) {
21528
21528
  L0.isLight && L0.layers.test(R0.layers) && (st.pushLight(L0), L0.castShadow && st.pushShadow(L0));
21529
- }), r0 !== S0 && r0.traverseVisible(function(L0) {
21529
+ }), c0 !== S0 && c0.traverseVisible(function(L0) {
21530
21530
  L0.isLight && L0.layers.test(R0.layers) && (st.pushLight(L0), L0.castShadow && st.pushShadow(L0));
21531
21531
  }), st.setupLights();
21532
21532
  const T0 = /* @__PURE__ */ new Set();
21533
- return r0.traverse(function(L0) {
21533
+ return c0.traverse(function(L0) {
21534
21534
  if (!(L0.isMesh || L0.isPoints || L0.isLine || L0.isSprite))
21535
21535
  return;
21536
21536
  const F0 = L0.material;
@@ -21543,14 +21543,14 @@ class WebGLRenderer {
21543
21543
  else
21544
21544
  Bi(F0, S0, L0), T0.add(F0);
21545
21545
  }), vt.pop(), st = null, T0;
21546
- }, this.compileAsync = function(r0, R0, S0 = null) {
21547
- const T0 = this.compile(r0, R0, S0);
21546
+ }, this.compileAsync = function(c0, R0, S0 = null) {
21547
+ const T0 = this.compile(c0, R0, S0);
21548
21548
  return new Promise((L0) => {
21549
21549
  function F0() {
21550
21550
  if (T0.forEach(function(k0) {
21551
21551
  ei.get(k0).currentProgram.isReady() && T0.delete(k0);
21552
21552
  }), T0.size === 0) {
21553
- L0(r0);
21553
+ L0(c0);
21554
21554
  return;
21555
21555
  }
21556
21556
  setTimeout(F0, 10);
@@ -21559,8 +21559,8 @@ class WebGLRenderer {
21559
21559
  });
21560
21560
  };
21561
21561
  let qi = null;
21562
- function e1(r0) {
21563
- qi && qi(r0);
21562
+ function e1(c0) {
21563
+ qi && qi(c0);
21564
21564
  }
21565
21565
  function G1() {
21566
21566
  t1.stop();
@@ -21569,73 +21569,73 @@ class WebGLRenderer {
21569
21569
  t1.start();
21570
21570
  }
21571
21571
  const t1 = new WebGLAnimation();
21572
- t1.setAnimationLoop(e1), typeof self != "undefined" && t1.setContext(self), this.setAnimationLoop = function(r0) {
21573
- qi = r0, D0.setAnimationLoop(r0), r0 === null ? t1.stop() : t1.start();
21574
- }, D0.addEventListener("sessionstart", G1), D0.addEventListener("sessionend", V1), this.render = function(r0, R0) {
21572
+ t1.setAnimationLoop(e1), typeof self != "undefined" && t1.setContext(self), this.setAnimationLoop = function(c0) {
21573
+ qi = c0, D0.setAnimationLoop(c0), c0 === null ? t1.stop() : t1.start();
21574
+ }, D0.addEventListener("sessionstart", G1), D0.addEventListener("sessionend", V1), this.render = function(c0, R0) {
21575
21575
  if (R0 !== void 0 && R0.isCamera !== !0) {
21576
21576
  console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
21577
21577
  return;
21578
21578
  }
21579
21579
  if (Jt === !0) return;
21580
- if (r0.matrixWorldAutoUpdate === !0 && r0.updateMatrixWorld(), R0.parent === null && R0.matrixWorldAutoUpdate === !0 && R0.updateMatrixWorld(), D0.enabled === !0 && D0.isPresenting === !0 && (D0.cameraAutoUpdate === !0 && D0.updateCamera(R0), R0 = D0.getCamera()), r0.isScene === !0 && r0.onBeforeRender(Tt, r0, R0, t0), st = Ji.get(r0, vt.length), st.init(R0), vt.push(st), bi.multiplyMatrices(R0.projectionMatrix, R0.matrixWorldInverse), M0.setFromProjectionMatrix(bi), j0 = this.localClippingEnabled, A0 = mi.init(this.clippingPlanes, j0), Yt = Zi.get(r0, Zt.length), Yt.init(), Zt.push(Yt), D0.enabled === !0 && D0.isPresenting === !0) {
21580
+ if (c0.matrixWorldAutoUpdate === !0 && c0.updateMatrixWorld(), R0.parent === null && R0.matrixWorldAutoUpdate === !0 && R0.updateMatrixWorld(), D0.enabled === !0 && D0.isPresenting === !0 && (D0.cameraAutoUpdate === !0 && D0.updateCamera(R0), R0 = D0.getCamera()), c0.isScene === !0 && c0.onBeforeRender(Tt, c0, R0, t0), st = Ji.get(c0, vt.length), st.init(R0), vt.push(st), bi.multiplyMatrices(R0.projectionMatrix, R0.matrixWorldInverse), M0.setFromProjectionMatrix(bi), j0 = this.localClippingEnabled, A0 = mi.init(this.clippingPlanes, j0), Yt = Zi.get(c0, Zt.length), Yt.init(), Zt.push(Yt), D0.enabled === !0 && D0.isPresenting === !0) {
21581
21581
  const F0 = Tt.xr.getDepthSensingMesh();
21582
21582
  F0 !== null && h1(F0, R0, -1 / 0, Tt.sortObjects);
21583
21583
  }
21584
- h1(r0, R0, 0, Tt.sortObjects), Yt.finish(), Tt.sortObjects === !0 && Yt.sort(m0, I0), ti = D0.enabled === !1 || D0.isPresenting === !1 || D0.hasDepthSensing() === !1, ti && Ci.addToRenderList(Yt, r0), this.info.render.frame++, A0 === !0 && mi.beginShadows();
21584
+ h1(c0, R0, 0, Tt.sortObjects), Yt.finish(), Tt.sortObjects === !0 && Yt.sort(m0, I0), ti = D0.enabled === !1 || D0.isPresenting === !1 || D0.hasDepthSensing() === !1, ti && Ci.addToRenderList(Yt, c0), this.info.render.frame++, A0 === !0 && mi.beginShadows();
21585
21585
  const S0 = st.state.shadowsArray;
21586
- Ri.render(S0, r0, R0), A0 === !0 && mi.endShadows(), this.info.autoReset === !0 && this.info.reset();
21586
+ Ri.render(S0, c0, R0), A0 === !0 && mi.endShadows(), this.info.autoReset === !0 && this.info.reset();
21587
21587
  const T0 = Yt.opaque, L0 = Yt.transmissive;
21588
21588
  if (st.setupLights(), R0.isArrayCamera) {
21589
21589
  const F0 = R0.cameras;
21590
21590
  if (L0.length > 0)
21591
21591
  for (let k0 = 0, K0 = F0.length; k0 < K0; k0++) {
21592
21592
  const O0 = F0[k0];
21593
- f1(T0, L0, r0, O0);
21593
+ f1(T0, L0, c0, O0);
21594
21594
  }
21595
- ti && Ci.render(r0);
21595
+ ti && Ci.render(c0);
21596
21596
  for (let k0 = 0, K0 = F0.length; k0 < K0; k0++) {
21597
21597
  const O0 = F0[k0];
21598
- u1(Yt, r0, O0, O0.viewport);
21598
+ u1(Yt, c0, O0, O0.viewport);
21599
21599
  }
21600
21600
  } else
21601
- L0.length > 0 && f1(T0, L0, r0, R0), ti && Ci.render(r0), u1(Yt, r0, R0);
21602
- t0 !== null && e0 === 0 && (V0.updateMultisampleRenderTarget(t0), V0.updateRenderTargetMipmap(t0)), r0.isScene === !0 && r0.onAfterRender(Tt, r0, R0), wi.resetDefaultState(), i0 = -1, n0 = null, vt.pop(), vt.length > 0 ? (st = vt[vt.length - 1], A0 === !0 && mi.setGlobalState(Tt.clippingPlanes, st.state.camera)) : st = null, Zt.pop(), Zt.length > 0 ? Yt = Zt[Zt.length - 1] : Yt = null;
21601
+ L0.length > 0 && f1(T0, L0, c0, R0), ti && Ci.render(c0), u1(Yt, c0, R0);
21602
+ t0 !== null && e0 === 0 && (V0.updateMultisampleRenderTarget(t0), V0.updateRenderTargetMipmap(t0)), c0.isScene === !0 && c0.onAfterRender(Tt, c0, R0), wi.resetDefaultState(), i0 = -1, n0 = null, vt.pop(), vt.length > 0 ? (st = vt[vt.length - 1], A0 === !0 && mi.setGlobalState(Tt.clippingPlanes, st.state.camera)) : st = null, Zt.pop(), Zt.length > 0 ? Yt = Zt[Zt.length - 1] : Yt = null;
21603
21603
  };
21604
- function h1(r0, R0, S0, T0) {
21605
- if (r0.visible === !1) return;
21606
- if (r0.layers.test(R0.layers)) {
21607
- if (r0.isGroup)
21608
- S0 = r0.renderOrder;
21609
- else if (r0.isLOD)
21610
- r0.autoUpdate === !0 && r0.update(R0);
21611
- else if (r0.isLight)
21612
- st.pushLight(r0), r0.castShadow && st.pushShadow(r0);
21613
- else if (r0.isSprite) {
21614
- if (!r0.frustumCulled || M0.intersectsSprite(r0)) {
21615
- T0 && ui.setFromMatrixPosition(r0.matrixWorld).applyMatrix4(bi);
21616
- const k0 = Q0.update(r0), K0 = r0.material;
21617
- K0.visible && Yt.push(r0, k0, K0, S0, ui.z, null);
21604
+ function h1(c0, R0, S0, T0) {
21605
+ if (c0.visible === !1) return;
21606
+ if (c0.layers.test(R0.layers)) {
21607
+ if (c0.isGroup)
21608
+ S0 = c0.renderOrder;
21609
+ else if (c0.isLOD)
21610
+ c0.autoUpdate === !0 && c0.update(R0);
21611
+ else if (c0.isLight)
21612
+ st.pushLight(c0), c0.castShadow && st.pushShadow(c0);
21613
+ else if (c0.isSprite) {
21614
+ if (!c0.frustumCulled || M0.intersectsSprite(c0)) {
21615
+ T0 && ui.setFromMatrixPosition(c0.matrixWorld).applyMatrix4(bi);
21616
+ const k0 = Q0.update(c0), K0 = c0.material;
21617
+ K0.visible && Yt.push(c0, k0, K0, S0, ui.z, null);
21618
21618
  }
21619
- } else if ((r0.isMesh || r0.isLine || r0.isPoints) && (!r0.frustumCulled || M0.intersectsObject(r0))) {
21620
- const k0 = Q0.update(r0), K0 = r0.material;
21621
- if (T0 && (r0.boundingSphere !== void 0 ? (r0.boundingSphere === null && r0.computeBoundingSphere(), ui.copy(r0.boundingSphere.center)) : (k0.boundingSphere === null && k0.computeBoundingSphere(), ui.copy(k0.boundingSphere.center)), ui.applyMatrix4(r0.matrixWorld).applyMatrix4(bi)), Array.isArray(K0)) {
21619
+ } else if ((c0.isMesh || c0.isLine || c0.isPoints) && (!c0.frustumCulled || M0.intersectsObject(c0))) {
21620
+ const k0 = Q0.update(c0), K0 = c0.material;
21621
+ if (T0 && (c0.boundingSphere !== void 0 ? (c0.boundingSphere === null && c0.computeBoundingSphere(), ui.copy(c0.boundingSphere.center)) : (k0.boundingSphere === null && k0.computeBoundingSphere(), ui.copy(k0.boundingSphere.center)), ui.applyMatrix4(c0.matrixWorld).applyMatrix4(bi)), Array.isArray(K0)) {
21622
21622
  const O0 = k0.groups;
21623
21623
  for (let li = 0, oi = O0.length; li < oi; li++) {
21624
21624
  const di = O0[li], hi = K0[di.materialIndex];
21625
- hi && hi.visible && Yt.push(r0, k0, hi, S0, ui.z, di);
21625
+ hi && hi.visible && Yt.push(c0, k0, hi, S0, ui.z, di);
21626
21626
  }
21627
- } else K0.visible && Yt.push(r0, k0, K0, S0, ui.z, null);
21627
+ } else K0.visible && Yt.push(c0, k0, K0, S0, ui.z, null);
21628
21628
  }
21629
21629
  }
21630
- const F0 = r0.children;
21630
+ const F0 = c0.children;
21631
21631
  for (let k0 = 0, K0 = F0.length; k0 < K0; k0++)
21632
21632
  h1(F0[k0], R0, S0, T0);
21633
21633
  }
21634
- function u1(r0, R0, S0, T0) {
21635
- const L0 = r0.opaque, F0 = r0.transmissive, k0 = r0.transparent;
21634
+ function u1(c0, R0, S0, T0) {
21635
+ const L0 = c0.opaque, F0 = c0.transmissive, k0 = c0.transparent;
21636
21636
  st.setupLightsView(S0), A0 === !0 && mi.setGlobalState(Tt.clippingPlanes, S0), T0 && U0.viewport(s0.copy(T0)), L0.length > 0 && o1(L0, R0, S0), F0.length > 0 && o1(F0, R0, S0), k0.length > 0 && o1(k0, R0, S0), U0.buffers.depth.setTest(!0), U0.buffers.depth.setMask(!0), U0.buffers.color.setMask(!0), U0.setPolygonOffset(!1);
21637
21637
  }
21638
- function f1(r0, R0, S0, T0) {
21638
+ function f1(c0, R0, S0, T0) {
21639
21639
  if ((S0.isScene === !0 ? S0.overrideMaterial : null) !== null)
21640
21640
  return;
21641
21641
  st.state.transmissionRenderTarget[T0.id] === void 0 && (st.state.transmissionRenderTarget[T0.id] = new WebGLRenderTarget(1, 1, {
@@ -21655,7 +21655,7 @@ class WebGLRenderer {
21655
21655
  const O0 = Tt.toneMapping;
21656
21656
  Tt.toneMapping = NoToneMapping;
21657
21657
  const li = T0.viewport;
21658
- if (T0.viewport !== void 0 && (T0.viewport = void 0), st.setupLightsView(T0), A0 === !0 && mi.setGlobalState(Tt.clippingPlanes, T0), o1(r0, S0, T0), V0.updateMultisampleRenderTarget(F0), V0.updateRenderTargetMipmap(F0), si.has("WEBGL_multisampled_render_to_texture") === !1) {
21658
+ if (T0.viewport !== void 0 && (T0.viewport = void 0), st.setupLightsView(T0), A0 === !0 && mi.setGlobalState(Tt.clippingPlanes, T0), o1(c0, S0, T0), V0.updateMultisampleRenderTarget(F0), V0.updateRenderTargetMipmap(F0), si.has("WEBGL_multisampled_render_to_texture") === !1) {
21659
21659
  let oi = !1;
21660
21660
  for (let di = 0, hi = R0.length; di < hi; di++) {
21661
21661
  const yi = R0[di], Yi = yi.object, Ni = yi.geometry, Mi = yi.material, Li = yi.group;
@@ -21668,50 +21668,50 @@ class WebGLRenderer {
21668
21668
  }
21669
21669
  Tt.setRenderTarget(K0), Tt.setClearColor(G0, h0), li !== void 0 && (T0.viewport = li), Tt.toneMapping = O0;
21670
21670
  }
21671
- function o1(r0, R0, S0) {
21671
+ function o1(c0, R0, S0) {
21672
21672
  const T0 = R0.isScene === !0 ? R0.overrideMaterial : null;
21673
- for (let L0 = 0, F0 = r0.length; L0 < F0; L0++) {
21674
- const k0 = r0[L0], K0 = k0.object, O0 = k0.geometry, li = T0 === null ? k0.material : T0, oi = k0.group;
21673
+ for (let L0 = 0, F0 = c0.length; L0 < F0; L0++) {
21674
+ const k0 = c0[L0], K0 = k0.object, O0 = k0.geometry, li = T0 === null ? k0.material : T0, oi = k0.group;
21675
21675
  K0.layers.test(S0.layers) && g1(K0, R0, S0, O0, li, oi);
21676
21676
  }
21677
21677
  }
21678
- function g1(r0, R0, S0, T0, L0, F0) {
21679
- r0.onBeforeRender(Tt, R0, S0, T0, L0, F0), r0.modelViewMatrix.multiplyMatrices(S0.matrixWorldInverse, r0.matrixWorld), r0.normalMatrix.getNormalMatrix(r0.modelViewMatrix), L0.onBeforeRender(Tt, R0, S0, T0, r0, F0), L0.transparent === !0 && L0.side === DoubleSide && L0.forceSinglePass === !1 ? (L0.side = BackSide, L0.needsUpdate = !0, Tt.renderBufferDirect(S0, R0, T0, L0, r0, F0), L0.side = FrontSide, L0.needsUpdate = !0, Tt.renderBufferDirect(S0, R0, T0, L0, r0, F0), L0.side = DoubleSide) : Tt.renderBufferDirect(S0, R0, T0, L0, r0, F0), r0.onAfterRender(Tt, R0, S0, T0, L0, F0);
21678
+ function g1(c0, R0, S0, T0, L0, F0) {
21679
+ c0.onBeforeRender(Tt, R0, S0, T0, L0, F0), c0.modelViewMatrix.multiplyMatrices(S0.matrixWorldInverse, c0.matrixWorld), c0.normalMatrix.getNormalMatrix(c0.modelViewMatrix), L0.onBeforeRender(Tt, R0, S0, T0, c0, F0), L0.transparent === !0 && L0.side === DoubleSide && L0.forceSinglePass === !1 ? (L0.side = BackSide, L0.needsUpdate = !0, Tt.renderBufferDirect(S0, R0, T0, L0, c0, F0), L0.side = FrontSide, L0.needsUpdate = !0, Tt.renderBufferDirect(S0, R0, T0, L0, c0, F0), L0.side = DoubleSide) : Tt.renderBufferDirect(S0, R0, T0, L0, c0, F0), c0.onAfterRender(Tt, R0, S0, T0, L0, F0);
21680
21680
  }
21681
- function r1(r0, R0, S0) {
21681
+ function r1(c0, R0, S0) {
21682
21682
  R0.isScene !== !0 && (R0 = Si);
21683
- const T0 = ei.get(r0), L0 = st.state.lights, F0 = st.state.shadowsArray, k0 = L0.state.version, K0 = Vi.getParameters(r0, L0.state, F0, R0, S0), O0 = Vi.getProgramCacheKey(K0);
21683
+ const T0 = ei.get(c0), L0 = st.state.lights, F0 = st.state.shadowsArray, k0 = L0.state.version, K0 = Vi.getParameters(c0, L0.state, F0, R0, S0), O0 = Vi.getProgramCacheKey(K0);
21684
21684
  let li = T0.programs;
21685
- T0.environment = r0.isMeshStandardMaterial ? R0.environment : null, T0.fog = R0.fog, T0.envMap = (r0.isMeshStandardMaterial ? N0 : b0).get(r0.envMap || T0.environment), T0.envMapRotation = T0.environment !== null && r0.envMap === null ? R0.environmentRotation : r0.envMapRotation, li === void 0 && (r0.addEventListener("dispose", ki), li = /* @__PURE__ */ new Map(), T0.programs = li);
21685
+ T0.environment = c0.isMeshStandardMaterial ? R0.environment : null, T0.fog = R0.fog, T0.envMap = (c0.isMeshStandardMaterial ? N0 : b0).get(c0.envMap || T0.environment), T0.envMapRotation = T0.environment !== null && c0.envMap === null ? R0.environmentRotation : c0.envMapRotation, li === void 0 && (c0.addEventListener("dispose", ki), li = /* @__PURE__ */ new Map(), T0.programs = li);
21686
21686
  let oi = li.get(O0);
21687
21687
  if (oi !== void 0) {
21688
21688
  if (T0.currentProgram === oi && T0.lightsStateVersion === k0)
21689
- return p1(r0, K0), oi;
21689
+ return p1(c0, K0), oi;
21690
21690
  } else
21691
- K0.uniforms = Vi.getUniforms(r0), r0.onBeforeCompile(K0, Tt), oi = Vi.acquireProgram(K0, O0), li.set(O0, oi), T0.uniforms = K0.uniforms;
21691
+ K0.uniforms = Vi.getUniforms(c0), c0.onBeforeCompile(K0, Tt), oi = Vi.acquireProgram(K0, O0), li.set(O0, oi), T0.uniforms = K0.uniforms;
21692
21692
  const di = T0.uniforms;
21693
- return (!r0.isShaderMaterial && !r0.isRawShaderMaterial || r0.clipping === !0) && (di.clippingPlanes = mi.uniform), p1(r0, K0), T0.needsLights = n1(r0), T0.lightsStateVersion = k0, T0.needsLights && (di.ambientLightColor.value = L0.state.ambient, di.lightProbe.value = L0.state.probe, di.directionalLights.value = L0.state.directional, di.directionalLightShadows.value = L0.state.directionalShadow, di.spotLights.value = L0.state.spot, di.spotLightShadows.value = L0.state.spotShadow, di.rectAreaLights.value = L0.state.rectArea, di.ltc_1.value = L0.state.rectAreaLTC1, di.ltc_2.value = L0.state.rectAreaLTC2, di.pointLights.value = L0.state.point, di.pointLightShadows.value = L0.state.pointShadow, di.hemisphereLights.value = L0.state.hemi, di.directionalShadowMap.value = L0.state.directionalShadowMap, di.directionalShadowMatrix.value = L0.state.directionalShadowMatrix, di.spotShadowMap.value = L0.state.spotShadowMap, di.spotLightMatrix.value = L0.state.spotLightMatrix, di.spotLightMap.value = L0.state.spotLightMap, di.pointShadowMap.value = L0.state.pointShadowMap, di.pointShadowMatrix.value = L0.state.pointShadowMatrix), T0.currentProgram = oi, T0.uniformsList = null, oi;
21693
+ return (!c0.isShaderMaterial && !c0.isRawShaderMaterial || c0.clipping === !0) && (di.clippingPlanes = mi.uniform), p1(c0, K0), T0.needsLights = n1(c0), T0.lightsStateVersion = k0, T0.needsLights && (di.ambientLightColor.value = L0.state.ambient, di.lightProbe.value = L0.state.probe, di.directionalLights.value = L0.state.directional, di.directionalLightShadows.value = L0.state.directionalShadow, di.spotLights.value = L0.state.spot, di.spotLightShadows.value = L0.state.spotShadow, di.rectAreaLights.value = L0.state.rectArea, di.ltc_1.value = L0.state.rectAreaLTC1, di.ltc_2.value = L0.state.rectAreaLTC2, di.pointLights.value = L0.state.point, di.pointLightShadows.value = L0.state.pointShadow, di.hemisphereLights.value = L0.state.hemi, di.directionalShadowMap.value = L0.state.directionalShadowMap, di.directionalShadowMatrix.value = L0.state.directionalShadowMatrix, di.spotShadowMap.value = L0.state.spotShadowMap, di.spotLightMatrix.value = L0.state.spotLightMatrix, di.spotLightMap.value = L0.state.spotLightMap, di.pointShadowMap.value = L0.state.pointShadowMap, di.pointShadowMatrix.value = L0.state.pointShadowMatrix), T0.currentProgram = oi, T0.uniformsList = null, oi;
21694
21694
  }
21695
- function m1(r0) {
21696
- if (r0.uniformsList === null) {
21697
- const R0 = r0.currentProgram.getUniforms();
21698
- r0.uniformsList = WebGLUniforms.seqWithValue(R0.seq, r0.uniforms);
21695
+ function m1(c0) {
21696
+ if (c0.uniformsList === null) {
21697
+ const R0 = c0.currentProgram.getUniforms();
21698
+ c0.uniformsList = WebGLUniforms.seqWithValue(R0.seq, c0.uniforms);
21699
21699
  }
21700
- return r0.uniformsList;
21700
+ return c0.uniformsList;
21701
21701
  }
21702
- function p1(r0, R0) {
21703
- const S0 = ei.get(r0);
21702
+ function p1(c0, R0) {
21703
+ const S0 = ei.get(c0);
21704
21704
  S0.outputColorSpace = R0.outputColorSpace, S0.batching = R0.batching, S0.batchingColor = R0.batchingColor, S0.instancing = R0.instancing, S0.instancingColor = R0.instancingColor, S0.instancingMorph = R0.instancingMorph, S0.skinning = R0.skinning, S0.morphTargets = R0.morphTargets, S0.morphNormals = R0.morphNormals, S0.morphColors = R0.morphColors, S0.morphTargetsCount = R0.morphTargetsCount, S0.numClippingPlanes = R0.numClippingPlanes, S0.numIntersection = R0.numClipIntersection, S0.vertexAlphas = R0.vertexAlphas, S0.vertexTangents = R0.vertexTangents, S0.toneMapping = R0.toneMapping;
21705
21705
  }
21706
- function I1(r0, R0, S0, T0, L0) {
21706
+ function I1(c0, R0, S0, T0, L0) {
21707
21707
  R0.isScene !== !0 && (R0 = Si), V0.resetTextureUnits();
21708
21708
  const F0 = R0.fog, k0 = T0.isMeshStandardMaterial ? R0.environment : null, K0 = t0 === null ? Tt.outputColorSpace : t0.isXRRenderTarget === !0 ? t0.texture.colorSpace : LinearSRGBColorSpace, O0 = (T0.isMeshStandardMaterial ? N0 : b0).get(T0.envMap || k0), li = T0.vertexColors === !0 && !!S0.attributes.color && S0.attributes.color.itemSize === 4, oi = !!S0.attributes.tangent && (!!T0.normalMap || T0.anisotropy > 0), di = !!S0.morphAttributes.position, hi = !!S0.morphAttributes.normal, yi = !!S0.morphAttributes.color;
21709
21709
  let Yi = NoToneMapping;
21710
21710
  T0.toneMapped && (t0 === null || t0.isXRRenderTarget === !0) && (Yi = Tt.toneMapping);
21711
21711
  const Ni = S0.morphAttributes.position || S0.morphAttributes.normal || S0.morphAttributes.color, Mi = Ni !== void 0 ? Ni.length : 0, Li = ei.get(T0), Ki = st.state.lights;
21712
- if (A0 === !0 && (j0 === !0 || r0 !== n0)) {
21713
- const Qi = r0 === n0 && T0.id === i0;
21714
- mi.setState(T0, r0, Qi);
21712
+ if (A0 === !0 && (j0 === !0 || c0 !== n0)) {
21713
+ const Qi = c0 === n0 && T0.id === i0;
21714
+ mi.setState(T0, c0, Qi);
21715
21715
  }
21716
21716
  let Ii = !1;
21717
21717
  T0.version === Li.__version ? (Li.needsLights && Li.lightsStateVersion !== Ki.state.version || Li.outputColorSpace !== K0 || L0.isBatchedMesh && Li.batching === !1 || !L0.isBatchedMesh && Li.batching === !0 || L0.isBatchedMesh && Li.batchingColor === !0 && L0.colorTexture === null || L0.isBatchedMesh && Li.batchingColor === !1 && L0.colorTexture !== null || L0.isInstancedMesh && Li.instancing === !1 || !L0.isInstancedMesh && Li.instancing === !0 || L0.isSkinnedMesh && Li.skinning === !1 || !L0.isSkinnedMesh && Li.skinning === !0 || L0.isInstancedMesh && Li.instancingColor === !0 && L0.instanceColor === null || L0.isInstancedMesh && Li.instancingColor === !1 && L0.instanceColor !== null || L0.isInstancedMesh && Li.instancingMorph === !0 && L0.morphTexture === null || L0.isInstancedMesh && Li.instancingMorph === !1 && L0.morphTexture !== null || Li.envMap !== O0 || T0.fog === !0 && Li.fog !== F0 || Li.numClippingPlanes !== void 0 && (Li.numClippingPlanes !== mi.numPlanes || Li.numIntersection !== mi.numIntersection) || Li.vertexAlphas !== li || Li.vertexTangents !== oi || Li.morphTargets !== di || Li.morphNormals !== hi || Li.morphColors !== yi || Li.toneMapping !== Yi || Li.morphTargetsCount !== Mi) && (Ii = !0) : (Ii = !0, Li.__version = T0.version);
@@ -21719,14 +21719,14 @@ class WebGLRenderer {
21719
21719
  Ii === !0 && (Ei = r1(T0, R0, L0));
21720
21720
  let _i = !1, Pi = !1, Ui = !1;
21721
21721
  const Fi = Ei.getUniforms(), ji = Li.uniforms;
21722
- if (U0.useProgram(Ei.program) && (_i = !0, Pi = !0, Ui = !0), T0.id !== i0 && (i0 = T0.id, Pi = !0), _i || n0 !== r0) {
21723
- U0.buffers.depth.getReversed() ? (ni.copy(r0.projectionMatrix), toNormalizedProjectionMatrix(ni), toReversedProjectionMatrix(ni), Fi.setValue(g0, "projectionMatrix", ni)) : Fi.setValue(g0, "projectionMatrix", r0.projectionMatrix), Fi.setValue(g0, "viewMatrix", r0.matrixWorldInverse);
21722
+ if (U0.useProgram(Ei.program) && (_i = !0, Pi = !0, Ui = !0), T0.id !== i0 && (i0 = T0.id, Pi = !0), _i || n0 !== c0) {
21723
+ U0.buffers.depth.getReversed() ? (ni.copy(c0.projectionMatrix), toNormalizedProjectionMatrix(ni), toReversedProjectionMatrix(ni), Fi.setValue(g0, "projectionMatrix", ni)) : Fi.setValue(g0, "projectionMatrix", c0.projectionMatrix), Fi.setValue(g0, "viewMatrix", c0.matrixWorldInverse);
21724
21724
  const Di = Fi.map.cameraPosition;
21725
- Di !== void 0 && Di.setValue(g0, xi.setFromMatrixPosition(r0.matrixWorld)), E0.logarithmicDepthBuffer && Fi.setValue(
21725
+ Di !== void 0 && Di.setValue(g0, xi.setFromMatrixPosition(c0.matrixWorld)), E0.logarithmicDepthBuffer && Fi.setValue(
21726
21726
  g0,
21727
21727
  "logDepthBufFC",
21728
- 2 / (Math.log(r0.far + 1) / Math.LN2)
21729
- ), (T0.isMeshPhongMaterial || T0.isMeshToonMaterial || T0.isMeshLambertMaterial || T0.isMeshBasicMaterial || T0.isMeshStandardMaterial || T0.isShaderMaterial) && Fi.setValue(g0, "isOrthographic", r0.isOrthographicCamera === !0), n0 !== r0 && (n0 = r0, Pi = !0, Ui = !0);
21728
+ 2 / (Math.log(c0.far + 1) / Math.LN2)
21729
+ ), (T0.isMeshPhongMaterial || T0.isMeshToonMaterial || T0.isMeshLambertMaterial || T0.isMeshBasicMaterial || T0.isMeshStandardMaterial || T0.isShaderMaterial) && Fi.setValue(g0, "isOrthographic", c0.isOrthographicCamera === !0), n0 !== c0 && (n0 = c0, Pi = !0, Ui = !0);
21730
21730
  }
21731
21731
  if (L0.isSkinnedMesh) {
21732
21732
  Fi.setOptional(g0, L0, "bindMatrix"), Fi.setOptional(g0, L0, "bindMatrixInverse");
@@ -21735,7 +21735,7 @@ class WebGLRenderer {
21735
21735
  }
21736
21736
  L0.isBatchedMesh && (Fi.setOptional(g0, L0, "batchingTexture"), Fi.setValue(g0, "batchingTexture", L0._matricesTexture, V0), Fi.setOptional(g0, L0, "batchingIdTexture"), Fi.setValue(g0, "batchingIdTexture", L0._indirectTexture, V0), Fi.setOptional(g0, L0, "batchingColorTexture"), L0._colorsTexture !== null && Fi.setValue(g0, "batchingColorTexture", L0._colorsTexture, V0));
21737
21737
  const $i = S0.morphAttributes;
21738
- if (($i.position !== void 0 || $i.normal !== void 0 || $i.color !== void 0) && vi.update(L0, S0, Ei), (Pi || Li.receiveShadow !== L0.receiveShadow) && (Li.receiveShadow = L0.receiveShadow, Fi.setValue(g0, "receiveShadow", L0.receiveShadow)), T0.isMeshGouraudMaterial && T0.envMap !== null && (ji.envMap.value = O0, ji.flipEnvMap.value = O0.isCubeTexture && O0.isRenderTargetTexture === !1 ? -1 : 1), T0.isMeshStandardMaterial && T0.envMap === null && R0.environment !== null && (ji.envMapIntensity.value = R0.environmentIntensity), Pi && (Fi.setValue(g0, "toneMappingExposure", Tt.toneMappingExposure), Li.needsLights && i1(ji, Ui), F0 && T0.fog === !0 && Gi.refreshFogUniforms(ji, F0), Gi.refreshMaterialUniforms(ji, T0, a0, c0, st.state.transmissionRenderTarget[r0.id]), WebGLUniforms.upload(g0, m1(Li), ji, V0)), T0.isShaderMaterial && T0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(g0, m1(Li), ji, V0), T0.uniformsNeedUpdate = !1), T0.isSpriteMaterial && Fi.setValue(g0, "center", L0.center), Fi.setValue(g0, "modelViewMatrix", L0.modelViewMatrix), Fi.setValue(g0, "normalMatrix", L0.normalMatrix), Fi.setValue(g0, "modelMatrix", L0.matrixWorld), T0.isShaderMaterial || T0.isRawShaderMaterial) {
21738
+ if (($i.position !== void 0 || $i.normal !== void 0 || $i.color !== void 0) && vi.update(L0, S0, Ei), (Pi || Li.receiveShadow !== L0.receiveShadow) && (Li.receiveShadow = L0.receiveShadow, Fi.setValue(g0, "receiveShadow", L0.receiveShadow)), T0.isMeshGouraudMaterial && T0.envMap !== null && (ji.envMap.value = O0, ji.flipEnvMap.value = O0.isCubeTexture && O0.isRenderTargetTexture === !1 ? -1 : 1), T0.isMeshStandardMaterial && T0.envMap === null && R0.environment !== null && (ji.envMapIntensity.value = R0.environmentIntensity), Pi && (Fi.setValue(g0, "toneMappingExposure", Tt.toneMappingExposure), Li.needsLights && i1(ji, Ui), F0 && T0.fog === !0 && Gi.refreshFogUniforms(ji, F0), Gi.refreshMaterialUniforms(ji, T0, a0, r0, st.state.transmissionRenderTarget[c0.id]), WebGLUniforms.upload(g0, m1(Li), ji, V0)), T0.isShaderMaterial && T0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(g0, m1(Li), ji, V0), T0.uniformsNeedUpdate = !1), T0.isSpriteMaterial && Fi.setValue(g0, "center", L0.center), Fi.setValue(g0, "modelViewMatrix", L0.modelViewMatrix), Fi.setValue(g0, "normalMatrix", L0.normalMatrix), Fi.setValue(g0, "modelMatrix", L0.matrixWorld), T0.isShaderMaterial || T0.isRawShaderMaterial) {
21739
21739
  const Qi = T0.uniformsGroups;
21740
21740
  for (let Di = 0, v1 = Qi.length; Di < v1; Di++) {
21741
21741
  const s1 = Qi[Di];
@@ -21744,11 +21744,11 @@ class WebGLRenderer {
21744
21744
  }
21745
21745
  return Ei;
21746
21746
  }
21747
- function i1(r0, R0) {
21748
- r0.ambientLightColor.needsUpdate = R0, r0.lightProbe.needsUpdate = R0, r0.directionalLights.needsUpdate = R0, r0.directionalLightShadows.needsUpdate = R0, r0.pointLights.needsUpdate = R0, r0.pointLightShadows.needsUpdate = R0, r0.spotLights.needsUpdate = R0, r0.spotLightShadows.needsUpdate = R0, r0.rectAreaLights.needsUpdate = R0, r0.hemisphereLights.needsUpdate = R0;
21747
+ function i1(c0, R0) {
21748
+ c0.ambientLightColor.needsUpdate = R0, c0.lightProbe.needsUpdate = R0, c0.directionalLights.needsUpdate = R0, c0.directionalLightShadows.needsUpdate = R0, c0.pointLights.needsUpdate = R0, c0.pointLightShadows.needsUpdate = R0, c0.spotLights.needsUpdate = R0, c0.spotLightShadows.needsUpdate = R0, c0.rectAreaLights.needsUpdate = R0, c0.hemisphereLights.needsUpdate = R0;
21749
21749
  }
21750
- function n1(r0) {
21751
- return r0.isMeshLambertMaterial || r0.isMeshToonMaterial || r0.isMeshPhongMaterial || r0.isMeshStandardMaterial || r0.isShadowMaterial || r0.isShaderMaterial && r0.lights === !0;
21750
+ function n1(c0) {
21751
+ return c0.isMeshLambertMaterial || c0.isMeshToonMaterial || c0.isMeshPhongMaterial || c0.isMeshStandardMaterial || c0.isShadowMaterial || c0.isShaderMaterial && c0.lights === !0;
21752
21752
  }
21753
21753
  this.getActiveCubeFace = function() {
21754
21754
  return $t;
@@ -21756,61 +21756,61 @@ class WebGLRenderer {
21756
21756
  return e0;
21757
21757
  }, this.getRenderTarget = function() {
21758
21758
  return t0;
21759
- }, this.setRenderTargetTextures = function(r0, R0, S0) {
21760
- ei.get(r0.texture).__webglTexture = R0, ei.get(r0.depthTexture).__webglTexture = S0;
21761
- const T0 = ei.get(r0);
21759
+ }, this.setRenderTargetTextures = function(c0, R0, S0) {
21760
+ ei.get(c0.texture).__webglTexture = R0, ei.get(c0.depthTexture).__webglTexture = S0;
21761
+ const T0 = ei.get(c0);
21762
21762
  T0.__hasExternalTextures = !0, T0.__autoAllocateDepthBuffer = S0 === void 0, T0.__autoAllocateDepthBuffer || si.has("WEBGL_multisampled_render_to_texture") === !0 && (console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"), T0.__useRenderToTexture = !1);
21763
- }, this.setRenderTargetFramebuffer = function(r0, R0) {
21764
- const S0 = ei.get(r0);
21763
+ }, this.setRenderTargetFramebuffer = function(c0, R0) {
21764
+ const S0 = ei.get(c0);
21765
21765
  S0.__webglFramebuffer = R0, S0.__useDefaultFramebuffer = R0 === void 0;
21766
21766
  };
21767
21767
  const o0 = g0.createFramebuffer();
21768
- this.setRenderTarget = function(r0, R0 = 0, S0 = 0) {
21769
- t0 = r0, $t = R0, e0 = S0;
21768
+ this.setRenderTarget = function(c0, R0 = 0, S0 = 0) {
21769
+ t0 = c0, $t = R0, e0 = S0;
21770
21770
  let T0 = !0, L0 = null, F0 = !1, k0 = !1;
21771
- if (r0) {
21772
- const O0 = ei.get(r0);
21771
+ if (c0) {
21772
+ const O0 = ei.get(c0);
21773
21773
  if (O0.__useDefaultFramebuffer !== void 0)
21774
21774
  U0.bindFramebuffer(g0.FRAMEBUFFER, null), T0 = !1;
21775
21775
  else if (O0.__webglFramebuffer === void 0)
21776
- V0.setupRenderTarget(r0);
21776
+ V0.setupRenderTarget(c0);
21777
21777
  else if (O0.__hasExternalTextures)
21778
- V0.rebindTextures(r0, ei.get(r0.texture).__webglTexture, ei.get(r0.depthTexture).__webglTexture);
21779
- else if (r0.depthBuffer) {
21780
- const di = r0.depthTexture;
21778
+ V0.rebindTextures(c0, ei.get(c0.texture).__webglTexture, ei.get(c0.depthTexture).__webglTexture);
21779
+ else if (c0.depthBuffer) {
21780
+ const di = c0.depthTexture;
21781
21781
  if (O0.__boundDepthTexture !== di) {
21782
- if (di !== null && ei.has(di) && (r0.width !== di.image.width || r0.height !== di.image.height))
21782
+ if (di !== null && ei.has(di) && (c0.width !== di.image.width || c0.height !== di.image.height))
21783
21783
  throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");
21784
- V0.setupDepthRenderbuffer(r0);
21784
+ V0.setupDepthRenderbuffer(c0);
21785
21785
  }
21786
21786
  }
21787
- const li = r0.texture;
21787
+ const li = c0.texture;
21788
21788
  (li.isData3DTexture || li.isDataArrayTexture || li.isCompressedArrayTexture) && (k0 = !0);
21789
- const oi = ei.get(r0).__webglFramebuffer;
21790
- r0.isWebGLCubeRenderTarget ? (Array.isArray(oi[R0]) ? L0 = oi[R0][S0] : L0 = oi[R0], F0 = !0) : r0.samples > 0 && V0.useMultisampledRTT(r0) === !1 ? L0 = ei.get(r0).__webglMultisampledFramebuffer : Array.isArray(oi) ? L0 = oi[S0] : L0 = oi, s0.copy(r0.viewport), d0.copy(r0.scissor), u0 = r0.scissorTest;
21789
+ const oi = ei.get(c0).__webglFramebuffer;
21790
+ c0.isWebGLCubeRenderTarget ? (Array.isArray(oi[R0]) ? L0 = oi[R0][S0] : L0 = oi[R0], F0 = !0) : c0.samples > 0 && V0.useMultisampledRTT(c0) === !1 ? L0 = ei.get(c0).__webglMultisampledFramebuffer : Array.isArray(oi) ? L0 = oi[S0] : L0 = oi, s0.copy(c0.viewport), d0.copy(c0.scissor), u0 = c0.scissorTest;
21791
21791
  } else
21792
21792
  s0.copy(C0).multiplyScalar(a0).floor(), d0.copy(B0).multiplyScalar(a0).floor(), u0 = ci;
21793
- if (S0 !== 0 && (L0 = o0), U0.bindFramebuffer(g0.FRAMEBUFFER, L0) && T0 && U0.drawBuffers(r0, L0), U0.viewport(s0), U0.scissor(d0), U0.setScissorTest(u0), F0) {
21794
- const O0 = ei.get(r0.texture);
21793
+ if (S0 !== 0 && (L0 = o0), U0.bindFramebuffer(g0.FRAMEBUFFER, L0) && T0 && U0.drawBuffers(c0, L0), U0.viewport(s0), U0.scissor(d0), U0.setScissorTest(u0), F0) {
21794
+ const O0 = ei.get(c0.texture);
21795
21795
  g0.framebufferTexture2D(g0.FRAMEBUFFER, g0.COLOR_ATTACHMENT0, g0.TEXTURE_CUBE_MAP_POSITIVE_X + R0, O0.__webglTexture, S0);
21796
21796
  } else if (k0) {
21797
- const O0 = ei.get(r0.texture), li = R0;
21797
+ const O0 = ei.get(c0.texture), li = R0;
21798
21798
  g0.framebufferTextureLayer(g0.FRAMEBUFFER, g0.COLOR_ATTACHMENT0, O0.__webglTexture, S0, li);
21799
- } else if (r0 !== null && S0 !== 0) {
21800
- const O0 = ei.get(r0.texture);
21799
+ } else if (c0 !== null && S0 !== 0) {
21800
+ const O0 = ei.get(c0.texture);
21801
21801
  g0.framebufferTexture2D(g0.FRAMEBUFFER, g0.COLOR_ATTACHMENT0, g0.TEXTURE_2D, O0.__webglTexture, S0);
21802
21802
  }
21803
21803
  i0 = -1;
21804
- }, this.readRenderTargetPixels = function(r0, R0, S0, T0, L0, F0, k0) {
21805
- if (!(r0 && r0.isWebGLRenderTarget)) {
21804
+ }, this.readRenderTargetPixels = function(c0, R0, S0, T0, L0, F0, k0) {
21805
+ if (!(c0 && c0.isWebGLRenderTarget)) {
21806
21806
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
21807
21807
  return;
21808
21808
  }
21809
- let K0 = ei.get(r0).__webglFramebuffer;
21810
- if (r0.isWebGLCubeRenderTarget && k0 !== void 0 && (K0 = K0[k0]), K0) {
21809
+ let K0 = ei.get(c0).__webglFramebuffer;
21810
+ if (c0.isWebGLCubeRenderTarget && k0 !== void 0 && (K0 = K0[k0]), K0) {
21811
21811
  U0.bindFramebuffer(g0.FRAMEBUFFER, K0);
21812
21812
  try {
21813
- const O0 = r0.texture, li = O0.format, oi = O0.type;
21813
+ const O0 = c0.texture, li = O0.format, oi = O0.type;
21814
21814
  if (!E0.textureFormatReadable(li)) {
21815
21815
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
21816
21816
  return;
@@ -21819,24 +21819,24 @@ class WebGLRenderer {
21819
21819
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
21820
21820
  return;
21821
21821
  }
21822
- R0 >= 0 && R0 <= r0.width - T0 && S0 >= 0 && S0 <= r0.height - L0 && g0.readPixels(R0, S0, T0, L0, Ti.convert(li), Ti.convert(oi), F0);
21822
+ R0 >= 0 && R0 <= c0.width - T0 && S0 >= 0 && S0 <= c0.height - L0 && g0.readPixels(R0, S0, T0, L0, Ti.convert(li), Ti.convert(oi), F0);
21823
21823
  } finally {
21824
21824
  const O0 = t0 !== null ? ei.get(t0).__webglFramebuffer : null;
21825
21825
  U0.bindFramebuffer(g0.FRAMEBUFFER, O0);
21826
21826
  }
21827
21827
  }
21828
- }, this.readRenderTargetPixelsAsync = function(r0, R0, S0, T0, L0, F0, k0) {
21828
+ }, this.readRenderTargetPixelsAsync = function(c0, R0, S0, T0, L0, F0, k0) {
21829
21829
  return q0(this, null, function* () {
21830
- if (!(r0 && r0.isWebGLRenderTarget))
21830
+ if (!(c0 && c0.isWebGLRenderTarget))
21831
21831
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
21832
- let K0 = ei.get(r0).__webglFramebuffer;
21833
- if (r0.isWebGLCubeRenderTarget && k0 !== void 0 && (K0 = K0[k0]), K0) {
21834
- const O0 = r0.texture, li = O0.format, oi = O0.type;
21832
+ let K0 = ei.get(c0).__webglFramebuffer;
21833
+ if (c0.isWebGLCubeRenderTarget && k0 !== void 0 && (K0 = K0[k0]), K0) {
21834
+ const O0 = c0.texture, li = O0.format, oi = O0.type;
21835
21835
  if (!E0.textureFormatReadable(li))
21836
21836
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");
21837
21837
  if (!E0.textureTypeReadable(oi))
21838
21838
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
21839
- if (R0 >= 0 && R0 <= r0.width - T0 && S0 >= 0 && S0 <= r0.height - L0) {
21839
+ if (R0 >= 0 && R0 <= c0.width - T0 && S0 >= 0 && S0 <= c0.height - L0) {
21840
21840
  U0.bindFramebuffer(g0.FRAMEBUFFER, K0);
21841
21841
  const di = g0.createBuffer();
21842
21842
  g0.bindBuffer(g0.PIXEL_PACK_BUFFER, di), g0.bufferData(g0.PIXEL_PACK_BUFFER, F0.byteLength, g0.STREAM_READ), g0.readPixels(R0, S0, T0, L0, Ti.convert(li), Ti.convert(oi), 0);
@@ -21848,21 +21848,21 @@ class WebGLRenderer {
21848
21848
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
21849
21849
  }
21850
21850
  });
21851
- }, this.copyFramebufferToTexture = function(r0, R0 = null, S0 = 0) {
21852
- r0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyFramebufferToTexture function signature has changed."), R0 = arguments[0] || null, r0 = arguments[1]);
21853
- const T0 = Math.pow(2, -S0), L0 = Math.floor(r0.image.width * T0), F0 = Math.floor(r0.image.height * T0), k0 = R0 !== null ? R0.x : 0, K0 = R0 !== null ? R0.y : 0;
21854
- V0.setTexture2D(r0, 0), g0.copyTexSubImage2D(g0.TEXTURE_2D, S0, 0, 0, k0, K0, L0, F0), U0.unbindTexture();
21851
+ }, this.copyFramebufferToTexture = function(c0, R0 = null, S0 = 0) {
21852
+ c0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyFramebufferToTexture function signature has changed."), R0 = arguments[0] || null, c0 = arguments[1]);
21853
+ const T0 = Math.pow(2, -S0), L0 = Math.floor(c0.image.width * T0), F0 = Math.floor(c0.image.height * T0), k0 = R0 !== null ? R0.x : 0, K0 = R0 !== null ? R0.y : 0;
21854
+ V0.setTexture2D(c0, 0), g0.copyTexSubImage2D(g0.TEXTURE_2D, S0, 0, 0, k0, K0, L0, F0), U0.unbindTexture();
21855
21855
  };
21856
21856
  const f0 = g0.createFramebuffer(), v0 = g0.createFramebuffer();
21857
- this.copyTextureToTexture = function(r0, R0, S0 = null, T0 = null, L0 = 0, F0 = null) {
21858
- r0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed."), T0 = arguments[0] || null, r0 = arguments[1], R0 = arguments[2], F0 = arguments[3] || 0, S0 = null), F0 === null && (L0 !== 0 ? (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), F0 = L0, L0 = 0) : F0 = 0);
21857
+ this.copyTextureToTexture = function(c0, R0, S0 = null, T0 = null, L0 = 0, F0 = null) {
21858
+ c0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed."), T0 = arguments[0] || null, c0 = arguments[1], R0 = arguments[2], F0 = arguments[3] || 0, S0 = null), F0 === null && (L0 !== 0 ? (warnOnce("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), F0 = L0, L0 = 0) : F0 = 0);
21859
21859
  let k0, K0, O0, li, oi, di, hi, yi, Yi;
21860
- const Ni = r0.isCompressedTexture ? r0.mipmaps[F0] : r0.image;
21860
+ const Ni = c0.isCompressedTexture ? c0.mipmaps[F0] : c0.image;
21861
21861
  if (S0 !== null)
21862
21862
  k0 = S0.max.x - S0.min.x, K0 = S0.max.y - S0.min.y, O0 = S0.isBox3 ? S0.max.z - S0.min.z : 1, li = S0.min.x, oi = S0.min.y, di = S0.isBox3 ? S0.min.z : 0;
21863
21863
  else {
21864
21864
  const $i = Math.pow(2, -L0);
21865
- k0 = Math.floor(Ni.width * $i), K0 = Math.floor(Ni.height * $i), r0.isDataArrayTexture ? O0 = Ni.depth : r0.isData3DTexture ? O0 = Math.floor(Ni.depth * $i) : O0 = 1, li = 0, oi = 0, di = 0;
21865
+ k0 = Math.floor(Ni.width * $i), K0 = Math.floor(Ni.height * $i), c0.isDataArrayTexture ? O0 = Ni.depth : c0.isData3DTexture ? O0 = Math.floor(Ni.depth * $i) : O0 = 1, li = 0, oi = 0, di = 0;
21866
21866
  }
21867
21867
  T0 !== null ? (hi = T0.x, yi = T0.y, Yi = T0.z) : (hi = 0, yi = 0, Yi = 0);
21868
21868
  const Mi = Ti.convert(R0.format), Li = Ti.convert(R0.type);
@@ -21870,28 +21870,28 @@ class WebGLRenderer {
21870
21870
  R0.isData3DTexture ? (V0.setTexture3D(R0, 0), Ki = g0.TEXTURE_3D) : R0.isDataArrayTexture || R0.isCompressedArrayTexture ? (V0.setTexture2DArray(R0, 0), Ki = g0.TEXTURE_2D_ARRAY) : (V0.setTexture2D(R0, 0), Ki = g0.TEXTURE_2D), g0.pixelStorei(g0.UNPACK_FLIP_Y_WEBGL, R0.flipY), g0.pixelStorei(g0.UNPACK_PREMULTIPLY_ALPHA_WEBGL, R0.premultiplyAlpha), g0.pixelStorei(g0.UNPACK_ALIGNMENT, R0.unpackAlignment);
21871
21871
  const Ii = g0.getParameter(g0.UNPACK_ROW_LENGTH), Ei = g0.getParameter(g0.UNPACK_IMAGE_HEIGHT), _i = g0.getParameter(g0.UNPACK_SKIP_PIXELS), Pi = g0.getParameter(g0.UNPACK_SKIP_ROWS), Ui = g0.getParameter(g0.UNPACK_SKIP_IMAGES);
21872
21872
  g0.pixelStorei(g0.UNPACK_ROW_LENGTH, Ni.width), g0.pixelStorei(g0.UNPACK_IMAGE_HEIGHT, Ni.height), g0.pixelStorei(g0.UNPACK_SKIP_PIXELS, li), g0.pixelStorei(g0.UNPACK_SKIP_ROWS, oi), g0.pixelStorei(g0.UNPACK_SKIP_IMAGES, di);
21873
- const Fi = r0.isDataArrayTexture || r0.isData3DTexture, ji = R0.isDataArrayTexture || R0.isData3DTexture;
21874
- if (r0.isDepthTexture) {
21875
- const $i = ei.get(r0), Qi = ei.get(R0), Di = ei.get($i.__renderTarget), v1 = ei.get(Qi.__renderTarget);
21873
+ const Fi = c0.isDataArrayTexture || c0.isData3DTexture, ji = R0.isDataArrayTexture || R0.isData3DTexture;
21874
+ if (c0.isDepthTexture) {
21875
+ const $i = ei.get(c0), Qi = ei.get(R0), Di = ei.get($i.__renderTarget), v1 = ei.get(Qi.__renderTarget);
21876
21876
  U0.bindFramebuffer(g0.READ_FRAMEBUFFER, Di.__webglFramebuffer), U0.bindFramebuffer(g0.DRAW_FRAMEBUFFER, v1.__webglFramebuffer);
21877
21877
  for (let s1 = 0; s1 < O0; s1++)
21878
- Fi && (g0.framebufferTextureLayer(g0.READ_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, ei.get(r0).__webglTexture, L0, di + s1), g0.framebufferTextureLayer(g0.DRAW_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, ei.get(R0).__webglTexture, F0, Yi + s1)), g0.blitFramebuffer(li, oi, k0, K0, hi, yi, k0, K0, g0.DEPTH_BUFFER_BIT, g0.NEAREST);
21878
+ Fi && (g0.framebufferTextureLayer(g0.READ_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, ei.get(c0).__webglTexture, L0, di + s1), g0.framebufferTextureLayer(g0.DRAW_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, ei.get(R0).__webglTexture, F0, Yi + s1)), g0.blitFramebuffer(li, oi, k0, K0, hi, yi, k0, K0, g0.DEPTH_BUFFER_BIT, g0.NEAREST);
21879
21879
  U0.bindFramebuffer(g0.READ_FRAMEBUFFER, null), U0.bindFramebuffer(g0.DRAW_FRAMEBUFFER, null);
21880
- } else if (L0 !== 0 || r0.isRenderTargetTexture || ei.has(r0)) {
21881
- const $i = ei.get(r0), Qi = ei.get(R0);
21880
+ } else if (L0 !== 0 || c0.isRenderTargetTexture || ei.has(c0)) {
21881
+ const $i = ei.get(c0), Qi = ei.get(R0);
21882
21882
  U0.bindFramebuffer(g0.READ_FRAMEBUFFER, f0), U0.bindFramebuffer(g0.DRAW_FRAMEBUFFER, v0);
21883
21883
  for (let Di = 0; Di < O0; Di++)
21884
21884
  Fi ? g0.framebufferTextureLayer(g0.READ_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, $i.__webglTexture, L0, di + Di) : g0.framebufferTexture2D(g0.READ_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, g0.TEXTURE_2D, $i.__webglTexture, L0), ji ? g0.framebufferTextureLayer(g0.DRAW_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, Qi.__webglTexture, F0, Yi + Di) : g0.framebufferTexture2D(g0.DRAW_FRAMEBUFFER, g0.COLOR_ATTACHMENT0, g0.TEXTURE_2D, Qi.__webglTexture, F0), L0 !== 0 ? g0.blitFramebuffer(li, oi, k0, K0, hi, yi, k0, K0, g0.COLOR_BUFFER_BIT, g0.NEAREST) : ji ? g0.copyTexSubImage3D(Ki, F0, hi, yi, Yi + Di, li, oi, k0, K0) : g0.copyTexSubImage2D(Ki, F0, hi, yi, li, oi, k0, K0);
21885
21885
  U0.bindFramebuffer(g0.READ_FRAMEBUFFER, null), U0.bindFramebuffer(g0.DRAW_FRAMEBUFFER, null);
21886
21886
  } else
21887
- ji ? r0.isDataTexture || r0.isData3DTexture ? g0.texSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Li, Ni.data) : R0.isCompressedArrayTexture ? g0.compressedTexSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Ni.data) : g0.texSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Li, Ni) : r0.isDataTexture ? g0.texSubImage2D(g0.TEXTURE_2D, F0, hi, yi, k0, K0, Mi, Li, Ni.data) : r0.isCompressedTexture ? g0.compressedTexSubImage2D(g0.TEXTURE_2D, F0, hi, yi, Ni.width, Ni.height, Mi, Ni.data) : g0.texSubImage2D(g0.TEXTURE_2D, F0, hi, yi, k0, K0, Mi, Li, Ni);
21887
+ ji ? c0.isDataTexture || c0.isData3DTexture ? g0.texSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Li, Ni.data) : R0.isCompressedArrayTexture ? g0.compressedTexSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Ni.data) : g0.texSubImage3D(Ki, F0, hi, yi, Yi, k0, K0, O0, Mi, Li, Ni) : c0.isDataTexture ? g0.texSubImage2D(g0.TEXTURE_2D, F0, hi, yi, k0, K0, Mi, Li, Ni.data) : c0.isCompressedTexture ? g0.compressedTexSubImage2D(g0.TEXTURE_2D, F0, hi, yi, Ni.width, Ni.height, Mi, Ni.data) : g0.texSubImage2D(g0.TEXTURE_2D, F0, hi, yi, k0, K0, Mi, Li, Ni);
21888
21888
  g0.pixelStorei(g0.UNPACK_ROW_LENGTH, Ii), g0.pixelStorei(g0.UNPACK_IMAGE_HEIGHT, Ei), g0.pixelStorei(g0.UNPACK_SKIP_PIXELS, _i), g0.pixelStorei(g0.UNPACK_SKIP_ROWS, Pi), g0.pixelStorei(g0.UNPACK_SKIP_IMAGES, Ui), F0 === 0 && R0.generateMipmaps && g0.generateMipmap(Ki), U0.unbindTexture();
21889
- }, this.copyTextureToTexture3D = function(r0, R0, S0 = null, T0 = null, L0 = 0) {
21890
- return r0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture3D function signature has changed."), S0 = arguments[0] || null, T0 = arguments[1] || null, r0 = arguments[2], R0 = arguments[3], L0 = arguments[4] || 0), warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(r0, R0, S0, T0, L0);
21891
- }, this.initRenderTarget = function(r0) {
21892
- ei.get(r0).__webglFramebuffer === void 0 && V0.setupRenderTarget(r0);
21893
- }, this.initTexture = function(r0) {
21894
- r0.isCubeTexture ? V0.setTextureCube(r0, 0) : r0.isData3DTexture ? V0.setTexture3D(r0, 0) : r0.isDataArrayTexture || r0.isCompressedArrayTexture ? V0.setTexture2DArray(r0, 0) : V0.setTexture2D(r0, 0), U0.unbindTexture();
21889
+ }, this.copyTextureToTexture3D = function(c0, R0, S0 = null, T0 = null, L0 = 0) {
21890
+ return c0.isTexture !== !0 && (warnOnce("WebGLRenderer: copyTextureToTexture3D function signature has changed."), S0 = arguments[0] || null, T0 = arguments[1] || null, c0 = arguments[2], R0 = arguments[3], L0 = arguments[4] || 0), warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(c0, R0, S0, T0, L0);
21891
+ }, this.initRenderTarget = function(c0) {
21892
+ ei.get(c0).__webglFramebuffer === void 0 && V0.setupRenderTarget(c0);
21893
+ }, this.initTexture = function(c0) {
21894
+ c0.isCubeTexture ? V0.setTextureCube(c0, 0) : c0.isData3DTexture ? V0.setTexture3D(c0, 0) : c0.isDataArrayTexture || c0.isCompressedArrayTexture ? V0.setTexture2DArray(c0, 0) : V0.setTexture2D(c0, 0), U0.unbindTexture();
21895
21895
  }, this.resetState = function() {
21896
21896
  $t = 0, e0 = 0, t0 = null, U0.reset(), wi.reset();
21897
21897
  }, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
@@ -25266,10 +25266,10 @@ function clipCircle(c) {
25266
25266
  if (!(d0 < 0)) {
25267
25267
  var u0 = sqrt$2(d0), G0 = cartesianScale(i0, (-n0 - u0) / s0);
25268
25268
  if (cartesianAddInPlace(G0, e0), G0 = spherical$1(G0), !qe) return G0;
25269
- var h0 = _e[0], l0 = $e[0], c0 = _e[1], a0 = $e[1], m0;
25269
+ var h0 = _e[0], l0 = $e[0], r0 = _e[1], a0 = $e[1], m0;
25270
25270
  l0 < h0 && (m0 = h0, h0 = l0, l0 = m0);
25271
25271
  var I0 = l0 - h0, C0 = abs(I0 - pi$2) < epsilon$2, B0 = C0 || I0 < epsilon$2;
25272
- if (!C0 && a0 < c0 && (m0 = c0, c0 = a0, a0 = m0), B0 ? C0 ? c0 + a0 > 0 ^ G0[1] < (abs(G0[0] - h0) < epsilon$2 ? c0 : a0) : c0 <= G0[1] && G0[1] <= a0 : I0 > pi$2 ^ (h0 <= G0[0] && G0[0] <= l0)) {
25272
+ if (!C0 && a0 < r0 && (m0 = r0, r0 = a0, a0 = m0), B0 ? C0 ? r0 + a0 > 0 ^ G0[1] < (abs(G0[0] - h0) < epsilon$2 ? r0 : a0) : r0 <= G0[1] && G0[1] <= a0 : I0 > pi$2 ^ (h0 <= G0[0] && G0[0] <= l0)) {
25273
25273
  var ci = cartesianScale(i0, (-n0 + u0) / s0);
25274
25274
  return cartesianAddInPlace(ci, e0), [G0, spherical$1(ci)];
25275
25275
  }
@@ -25357,7 +25357,7 @@ function clipRectangle(c, e, s, r) {
25357
25357
  T(h0, l0) && _e.point(h0, l0);
25358
25358
  }
25359
25359
  function i0() {
25360
- for (var h0 = 0, l0 = 0, c0 = rt.length; l0 < c0; ++l0)
25360
+ for (var h0 = 0, l0 = 0, r0 = rt.length; l0 < r0; ++l0)
25361
25361
  for (var a0 = rt[l0], m0 = 1, I0 = a0.length, C0 = a0[0], B0, ci, M0 = C0[0], A0 = C0[1]; m0 < I0; ++m0)
25362
25362
  B0 = M0, ci = A0, C0 = a0[m0], M0 = C0[0], A0 = C0[1], ci <= r ? A0 > r && (M0 - B0) * (r - ci) > (A0 - ci) * (c - B0) && ++h0 : A0 <= r && (M0 - B0) * (r - ci) < (A0 - ci) * (c - B0) && --h0;
25363
25363
  return h0;
@@ -25366,8 +25366,8 @@ function clipRectangle(c, e, s, r) {
25366
25366
  _e = $e, qe = [], rt = [], $t = !0;
25367
25367
  }
25368
25368
  function s0() {
25369
- var h0 = i0(), l0 = $t && h0, c0 = (qe = merge(qe)).length;
25370
- (l0 || c0) && (Qe.polygonStart(), l0 && (Qe.lineStart(), de(null, null, 1, Qe), Qe.lineEnd()), c0 && clipRejoin(qe, Je, h0, de, Qe), Qe.polygonEnd()), _e = Qe, qe = rt = dt = null;
25369
+ var h0 = i0(), l0 = $t && h0, r0 = (qe = merge(qe)).length;
25370
+ (l0 || r0) && (Qe.polygonStart(), l0 && (Qe.lineStart(), de(null, null, 1, Qe), Qe.lineEnd()), r0 && clipRejoin(qe, Je, h0, de, Qe), Qe.polygonEnd()), _e = Qe, qe = rt = dt = null;
25371
25371
  }
25372
25372
  function d0() {
25373
25373
  e0.point = G0, rt && rt.push(dt = []), Jt = !0, Tt = !1, Zt = vt = NaN;
@@ -25376,15 +25376,15 @@ function clipRectangle(c, e, s, r) {
25376
25376
  qe && (G0(Wt, Yt), st && Tt && $e.rejoin(), qe.push($e.result())), e0.point = t0, Tt && _e.lineEnd();
25377
25377
  }
25378
25378
  function G0(h0, l0) {
25379
- var c0 = T(h0, l0);
25379
+ var r0 = T(h0, l0);
25380
25380
  if (rt && dt.push([h0, l0]), Jt)
25381
- Wt = h0, Yt = l0, st = c0, Jt = !1, c0 && (_e.lineStart(), _e.point(h0, l0));
25382
- else if (c0 && Tt) _e.point(h0, l0);
25381
+ Wt = h0, Yt = l0, st = r0, Jt = !1, r0 && (_e.lineStart(), _e.point(h0, l0));
25382
+ else if (r0 && Tt) _e.point(h0, l0);
25383
25383
  else {
25384
25384
  var a0 = [Zt = Math.max(clipMin, Math.min(clipMax, Zt)), vt = Math.max(clipMin, Math.min(clipMax, vt))], m0 = [h0 = Math.max(clipMin, Math.min(clipMax, h0)), l0 = Math.max(clipMin, Math.min(clipMax, l0))];
25385
- clipLine(a0, m0, c, e, s, r) ? (Tt || (_e.lineStart(), _e.point(a0[0], a0[1])), _e.point(m0[0], m0[1]), c0 || _e.lineEnd(), $t = !1) : c0 && (_e.lineStart(), _e.point(h0, l0), $t = !1);
25385
+ clipLine(a0, m0, c, e, s, r) ? (Tt || (_e.lineStart(), _e.point(a0[0], a0[1])), _e.point(m0[0], m0[1]), r0 || _e.lineEnd(), $t = !1) : r0 && (_e.lineStart(), _e.point(h0, l0), $t = !1);
25386
25386
  }
25387
- Zt = h0, vt = l0, Tt = c0;
25387
+ Zt = h0, vt = l0, Tt = r0;
25388
25388
  }
25389
25389
  return e0;
25390
25390
  };
@@ -25816,7 +25816,7 @@ class ViewHelper extends Object3D {
25816
25816
  const A0 = s.offsetWidth - d0;
25817
25817
  M0.clearDepth(), M0.getViewport(a0), M0.setViewport(A0, 0, d0, d0), M0.render(this, qe), M0.setViewport(a0.x, a0.y, a0.z, a0.w);
25818
25818
  };
25819
- const G0 = new Vector3(), h0 = new Quaternion(), l0 = new Quaternion(), c0 = new Quaternion(), a0 = new Vector4();
25819
+ const G0 = new Vector3(), h0 = new Quaternion(), l0 = new Quaternion(), r0 = new Quaternion(), a0 = new Vector4();
25820
25820
  let m0 = 0;
25821
25821
  this.handleClick = function(M0) {
25822
25822
  if (this.animating === !0) return !1;
@@ -25834,7 +25834,7 @@ class ViewHelper extends Object3D {
25834
25834
  Je.font = M0, Je.color = A0, Je.radius = j0, ci();
25835
25835
  }, this.update = function(M0) {
25836
25836
  const A0 = M0 * u0;
25837
- l0.rotateTowards(c0, A0), e.position.set(0, 0, 1).applyQuaternion(l0).multiplyScalar(m0).add(this.center), e.quaternion.rotateTowards(h0, A0), l0.angleTo(c0) === 0 && (this.animating = !1);
25837
+ l0.rotateTowards(r0, A0), e.position.set(0, 0, 1).applyQuaternion(l0).multiplyScalar(m0).add(this.center), e.quaternion.rotateTowards(h0, A0), l0.angleTo(r0) === 0 && (this.animating = !1);
25838
25838
  }, this.dispose = function() {
25839
25839
  rt.dispose(), dt.material.dispose(), Wt.material.dispose(), Yt.material.dispose(), Jt.material.map.dispose(), $t.material.map.dispose(), e0.material.map.dispose(), t0.material.map.dispose(), i0.material.map.dispose(), n0.material.map.dispose(), Jt.material.dispose(), $t.material.dispose(), e0.material.dispose(), t0.material.dispose(), i0.material.dispose(), n0.material.dispose();
25840
25840
  };
@@ -25861,7 +25861,7 @@ class ViewHelper extends Object3D {
25861
25861
  default:
25862
25862
  console.error("ViewHelper: Invalid axis.");
25863
25863
  }
25864
- m0 = e.position.distanceTo(A0), G0.multiplyScalar(m0).add(A0), $e.position.copy(A0), $e.lookAt(e.position), l0.copy($e.quaternion), $e.lookAt(G0), c0.copy($e.quaternion);
25864
+ m0 = e.position.distanceTo(A0), G0.multiplyScalar(m0).add(A0), $e.position.copy(A0), $e.lookAt(e.position), l0.copy($e.quaternion), $e.lookAt(G0), r0.copy($e.quaternion);
25865
25865
  }
25866
25866
  function C0(M0) {
25867
25867
  return new MeshBasicMaterial({ color: M0, toneMapped: !1 });
@@ -26102,8 +26102,8 @@ class TransformControlsGizmo extends Object3D {
26102
26102
  const Zt = new CylinderGeometry(75e-4, 75e-4, 0.5, 3);
26103
26103
  Zt.translate(0, 0.25, 0);
26104
26104
  function vt(h0, l0) {
26105
- const c0 = new TorusGeometry(h0, 75e-4, 3, 64, l0 * Math.PI * 2);
26106
- return c0.rotateY(Math.PI / 2), c0.rotateX(Math.PI / 2), c0;
26105
+ const r0 = new TorusGeometry(h0, 75e-4, 3, 64, l0 * Math.PI * 2);
26106
+ return r0.rotateY(Math.PI / 2), r0.rotateX(Math.PI / 2), r0;
26107
26107
  }
26108
26108
  function Tt() {
26109
26109
  const h0 = new BufferGeometry();
@@ -26283,10 +26283,10 @@ class TransformControlsGizmo extends Object3D {
26283
26283
  };
26284
26284
  function G0(h0) {
26285
26285
  const l0 = new Object3D();
26286
- for (const c0 in h0)
26287
- for (let a0 = h0[c0].length; a0--; ) {
26288
- const m0 = h0[c0][a0][0].clone(), I0 = h0[c0][a0][1], C0 = h0[c0][a0][2], B0 = h0[c0][a0][3], ci = h0[c0][a0][4];
26289
- m0.name = c0, m0.tag = ci, I0 && m0.position.set(I0[0], I0[1], I0[2]), C0 && m0.rotation.set(C0[0], C0[1], C0[2]), B0 && m0.scale.set(B0[0], B0[1], B0[2]), m0.updateMatrix();
26286
+ for (const r0 in h0)
26287
+ for (let a0 = h0[r0].length; a0--; ) {
26288
+ const m0 = h0[r0][a0][0].clone(), I0 = h0[r0][a0][1], C0 = h0[r0][a0][2], B0 = h0[r0][a0][3], ci = h0[r0][a0][4];
26289
+ m0.name = r0, m0.tag = ci, I0 && m0.position.set(I0[0], I0[1], I0[2]), C0 && m0.rotation.set(C0[0], C0[1], C0[2]), B0 && m0.scale.set(B0[0], B0[1], B0[2]), m0.updateMatrix();
26290
26290
  const M0 = m0.geometry.clone();
26291
26291
  M0.applyMatrix4(m0.matrix), m0.geometry = M0, m0.renderOrder = 1 / 0, m0.position.set(0, 0, 0), m0.rotation.set(0, 0, 0), m0.scale.set(1, 1, 1), l0.add(m0);
26292
26292
  }
@@ -26698,21 +26698,21 @@ class SimplexNoise {
26698
26698
  const Qe = (e + s + r) * 0.3333333333333333, _e = Math.floor(e + Qe), $e = Math.floor(s + Qe), qe = Math.floor(r + Qe), rt = 1 / 6, dt = (_e + $e + qe) * rt, Wt = _e - dt, Yt = $e - dt, st = qe - dt, Zt = e - Wt, vt = s - Yt, Tt = r - st;
26699
26699
  let Jt, $t, e0, t0, i0, n0;
26700
26700
  Zt >= vt ? vt >= Tt ? (Jt = 1, $t = 0, e0 = 0, t0 = 1, i0 = 1, n0 = 0) : Zt >= Tt ? (Jt = 1, $t = 0, e0 = 0, t0 = 1, i0 = 0, n0 = 1) : (Jt = 0, $t = 0, e0 = 1, t0 = 1, i0 = 0, n0 = 1) : vt < Tt ? (Jt = 0, $t = 0, e0 = 1, t0 = 0, i0 = 1, n0 = 1) : Zt < Tt ? (Jt = 0, $t = 1, e0 = 0, t0 = 0, i0 = 1, n0 = 1) : (Jt = 0, $t = 1, e0 = 0, t0 = 1, i0 = 1, n0 = 0);
26701
- const s0 = Zt - Jt + rt, d0 = vt - $t + rt, u0 = Tt - e0 + rt, G0 = Zt - t0 + 2 * rt, h0 = vt - i0 + 2 * rt, l0 = Tt - n0 + 2 * rt, c0 = Zt - 1 + 3 * rt, a0 = vt - 1 + 3 * rt, m0 = Tt - 1 + 3 * rt, I0 = _e & 255, C0 = $e & 255, B0 = qe & 255, ci = this.perm[I0 + this.perm[C0 + this.perm[B0]]] % 12, M0 = this.perm[I0 + Jt + this.perm[C0 + $t + this.perm[B0 + e0]]] % 12, A0 = this.perm[I0 + t0 + this.perm[C0 + i0 + this.perm[B0 + n0]]] % 12, j0 = this.perm[I0 + 1 + this.perm[C0 + 1 + this.perm[B0 + 1]]] % 12;
26701
+ const s0 = Zt - Jt + rt, d0 = vt - $t + rt, u0 = Tt - e0 + rt, G0 = Zt - t0 + 2 * rt, h0 = vt - i0 + 2 * rt, l0 = Tt - n0 + 2 * rt, r0 = Zt - 1 + 3 * rt, a0 = vt - 1 + 3 * rt, m0 = Tt - 1 + 3 * rt, I0 = _e & 255, C0 = $e & 255, B0 = qe & 255, ci = this.perm[I0 + this.perm[C0 + this.perm[B0]]] % 12, M0 = this.perm[I0 + Jt + this.perm[C0 + $t + this.perm[B0 + e0]]] % 12, A0 = this.perm[I0 + t0 + this.perm[C0 + i0 + this.perm[B0 + n0]]] % 12, j0 = this.perm[I0 + 1 + this.perm[C0 + 1 + this.perm[B0 + 1]]] % 12;
26702
26702
  let ni = 0.6 - Zt * Zt - vt * vt - Tt * Tt;
26703
26703
  ni < 0 ? T = 0 : (ni *= ni, T = ni * ni * this.dot3(this.grad3[ci], Zt, vt, Tt));
26704
26704
  let bi = 0.6 - s0 * s0 - d0 * d0 - u0 * u0;
26705
26705
  bi < 0 ? de = 0 : (bi *= bi, de = bi * bi * this.dot3(this.grad3[M0], s0, d0, u0));
26706
26706
  let xi = 0.6 - G0 * G0 - h0 * h0 - l0 * l0;
26707
26707
  xi < 0 ? Xe = 0 : (xi *= xi, Xe = xi * xi * this.dot3(this.grad3[A0], G0, h0, l0));
26708
- let ui = 0.6 - c0 * c0 - a0 * a0 - m0 * m0;
26709
- return ui < 0 ? Je = 0 : (ui *= ui, Je = ui * ui * this.dot3(this.grad3[j0], c0, a0, m0)), 32 * (T + de + Xe + Je);
26708
+ let ui = 0.6 - r0 * r0 - a0 * a0 - m0 * m0;
26709
+ return ui < 0 ? Je = 0 : (ui *= ui, Je = ui * ui * this.dot3(this.grad3[j0], r0, a0, m0)), 32 * (T + de + Xe + Je);
26710
26710
  }
26711
26711
  // 4D simplex noise
26712
26712
  noise4d(e, s, r, T) {
26713
26713
  const de = this.grad4, Xe = this.simplex, Je = this.perm, Ke = (Math.sqrt(5) - 1) / 4, Qe = (5 - Math.sqrt(5)) / 20;
26714
26714
  let _e, $e, qe, rt, dt;
26715
- const Wt = (e + s + r + T) * Ke, Yt = Math.floor(e + Wt), st = Math.floor(s + Wt), Zt = Math.floor(r + Wt), vt = Math.floor(T + Wt), Tt = (Yt + st + Zt + vt) * Qe, Jt = Yt - Tt, $t = st - Tt, e0 = Zt - Tt, t0 = vt - Tt, i0 = e - Jt, n0 = s - $t, s0 = r - e0, d0 = T - t0, u0 = i0 > n0 ? 32 : 0, G0 = i0 > s0 ? 16 : 0, h0 = n0 > s0 ? 8 : 0, l0 = i0 > d0 ? 4 : 0, c0 = n0 > d0 ? 2 : 0, a0 = s0 > d0 ? 1 : 0, m0 = u0 + G0 + h0 + l0 + c0 + a0, I0 = Xe[m0][0] >= 3 ? 1 : 0, C0 = Xe[m0][1] >= 3 ? 1 : 0, B0 = Xe[m0][2] >= 3 ? 1 : 0, ci = Xe[m0][3] >= 3 ? 1 : 0, M0 = Xe[m0][0] >= 2 ? 1 : 0, A0 = Xe[m0][1] >= 2 ? 1 : 0, j0 = Xe[m0][2] >= 2 ? 1 : 0, ni = Xe[m0][3] >= 2 ? 1 : 0, bi = Xe[m0][0] >= 1 ? 1 : 0, xi = Xe[m0][1] >= 1 ? 1 : 0, ui = Xe[m0][2] >= 1 ? 1 : 0, Si = Xe[m0][3] >= 1 ? 1 : 0, ti = i0 - I0 + Qe, J0 = n0 - C0 + Qe, g0 = s0 - B0 + Qe, Xi = d0 - ci + Qe, si = i0 - M0 + 2 * Qe, E0 = n0 - A0 + 2 * Qe, U0 = s0 - j0 + 2 * Qe, ii = d0 - ni + 2 * Qe, ei = i0 - bi + 3 * Qe, V0 = n0 - xi + 3 * Qe, b0 = s0 - ui + 3 * Qe, N0 = d0 - Si + 3 * Qe, P0 = i0 - 1 + 4 * Qe, $0 = n0 - 1 + 4 * Qe, Q0 = s0 - 1 + 4 * Qe, Vi = d0 - 1 + 4 * Qe, Gi = Yt & 255, Zi = st & 255, Ji = Zt & 255, mi = vt & 255, Ri = Je[Gi + Je[Zi + Je[Ji + Je[mi]]]] % 32, Ci = Je[Gi + I0 + Je[Zi + C0 + Je[Ji + B0 + Je[mi + ci]]]] % 32, vi = Je[Gi + M0 + Je[Zi + A0 + Je[Ji + j0 + Je[mi + ni]]]] % 32, fi = Je[Gi + bi + Je[Zi + xi + Je[Ji + ui + Je[mi + Si]]]] % 32, Hi = Je[Gi + 1 + Je[Zi + 1 + Je[Ji + 1 + Je[mi + 1]]]] % 32;
26715
+ const Wt = (e + s + r + T) * Ke, Yt = Math.floor(e + Wt), st = Math.floor(s + Wt), Zt = Math.floor(r + Wt), vt = Math.floor(T + Wt), Tt = (Yt + st + Zt + vt) * Qe, Jt = Yt - Tt, $t = st - Tt, e0 = Zt - Tt, t0 = vt - Tt, i0 = e - Jt, n0 = s - $t, s0 = r - e0, d0 = T - t0, u0 = i0 > n0 ? 32 : 0, G0 = i0 > s0 ? 16 : 0, h0 = n0 > s0 ? 8 : 0, l0 = i0 > d0 ? 4 : 0, r0 = n0 > d0 ? 2 : 0, a0 = s0 > d0 ? 1 : 0, m0 = u0 + G0 + h0 + l0 + r0 + a0, I0 = Xe[m0][0] >= 3 ? 1 : 0, C0 = Xe[m0][1] >= 3 ? 1 : 0, B0 = Xe[m0][2] >= 3 ? 1 : 0, ci = Xe[m0][3] >= 3 ? 1 : 0, M0 = Xe[m0][0] >= 2 ? 1 : 0, A0 = Xe[m0][1] >= 2 ? 1 : 0, j0 = Xe[m0][2] >= 2 ? 1 : 0, ni = Xe[m0][3] >= 2 ? 1 : 0, bi = Xe[m0][0] >= 1 ? 1 : 0, xi = Xe[m0][1] >= 1 ? 1 : 0, ui = Xe[m0][2] >= 1 ? 1 : 0, Si = Xe[m0][3] >= 1 ? 1 : 0, ti = i0 - I0 + Qe, J0 = n0 - C0 + Qe, g0 = s0 - B0 + Qe, Xi = d0 - ci + Qe, si = i0 - M0 + 2 * Qe, E0 = n0 - A0 + 2 * Qe, U0 = s0 - j0 + 2 * Qe, ii = d0 - ni + 2 * Qe, ei = i0 - bi + 3 * Qe, V0 = n0 - xi + 3 * Qe, b0 = s0 - ui + 3 * Qe, N0 = d0 - Si + 3 * Qe, P0 = i0 - 1 + 4 * Qe, $0 = n0 - 1 + 4 * Qe, Q0 = s0 - 1 + 4 * Qe, Vi = d0 - 1 + 4 * Qe, Gi = Yt & 255, Zi = st & 255, Ji = Zt & 255, mi = vt & 255, Ri = Je[Gi + Je[Zi + Je[Ji + Je[mi]]]] % 32, Ci = Je[Gi + I0 + Je[Zi + C0 + Je[Ji + B0 + Je[mi + ci]]]] % 32, vi = Je[Gi + M0 + Je[Zi + A0 + Je[Ji + j0 + Je[mi + ni]]]] % 32, fi = Je[Gi + bi + Je[Zi + xi + Je[Ji + ui + Je[mi + Si]]]] % 32, Hi = Je[Gi + 1 + Je[Zi + 1 + Je[Ji + 1 + Je[mi + 1]]]] % 32;
26716
26716
  let Ti = 0.6 - i0 * i0 - n0 * n0 - s0 * s0 - d0 * d0;
26717
26717
  Ti < 0 ? _e = 0 : (Ti *= Ti, _e = Ti * Ti * this.dot4(de[Ri], i0, n0, s0, d0));
26718
26718
  let wi = 0.6 - ti * ti - J0 * J0 - g0 * g0 - Xi * Xi;
@@ -28470,8 +28470,8 @@ function orient2dadapt(c, e, s, r, T, de, Xe) {
28470
28470
  Tt = i0 * _e, qe = splitter * i0, rt = qe - (qe - i0), dt = i0 - rt, qe = splitter * _e, Wt = qe - (qe - _e), Yt = _e - Wt, Jt = dt * Yt - (Tt - rt * Wt - dt * Wt - rt * Yt), $t = s0 * Qe, qe = splitter * s0, rt = qe - (qe - s0), dt = s0 - rt, qe = splitter * Qe, Wt = qe - (qe - Qe), Yt = Qe - Wt, e0 = dt * Yt - ($t - rt * Wt - dt * Wt - rt * Yt), st = Jt - e0, $e = Jt - st, u[0] = Jt - (st + $e) + ($e - e0), Zt = Tt + st, $e = Zt - Tt, vt = Tt - (Zt - $e) + (st - $e), st = vt - $t, $e = vt - st, u[1] = vt - (st + $e) + ($e - $t), t0 = Zt + st, $e = t0 - Zt, u[2] = Zt - (t0 - $e) + (st - $e), u[3] = t0;
28471
28471
  const l0 = sum(h0, C1, 4, u, C2);
28472
28472
  Tt = Je * _e, qe = splitter * Je, rt = qe - (qe - Je), dt = Je - rt, qe = splitter * _e, Wt = qe - (qe - _e), Yt = _e - Wt, Jt = dt * Yt - (Tt - rt * Wt - dt * Wt - rt * Yt), $t = Ke * Qe, qe = splitter * Ke, rt = qe - (qe - Ke), dt = Ke - rt, qe = splitter * Qe, Wt = qe - (qe - Qe), Yt = Qe - Wt, e0 = dt * Yt - ($t - rt * Wt - dt * Wt - rt * Yt), st = Jt - e0, $e = Jt - st, u[0] = Jt - (st + $e) + ($e - e0), Zt = Tt + st, $e = Zt - Tt, vt = Tt - (Zt - $e) + (st - $e), st = vt - $t, $e = vt - st, u[1] = vt - (st + $e) + ($e - $t), t0 = Zt + st, $e = t0 - Zt, u[2] = Zt - (t0 - $e) + (st - $e), u[3] = t0;
28473
- const c0 = sum(l0, C2, 4, u, D);
28474
- return D[c0 - 1];
28473
+ const r0 = sum(l0, C2, 4, u, D);
28474
+ return D[r0 - 1];
28475
28475
  }
28476
28476
  function orient2d(c, e, s, r, T, de) {
28477
28477
  const Xe = (e - de) * (s - T), Je = (c - T) * (r - de), Ke = Xe - Je, Qe = Math.abs(Xe + Je);
@@ -28552,22 +28552,22 @@ class Delaunator {
28552
28552
  for (let C0 = 0, B0 = this._hashKey(G0, h0); C0 < this._hashSize && (l0 = de[(B0 + C0) % this._hashSize], !(l0 !== -1 && l0 !== r[l0])); C0++)
28553
28553
  ;
28554
28554
  l0 = s[l0];
28555
- let c0 = l0, a0;
28556
- for (; a0 = r[c0], orient2d(G0, h0, e[2 * c0], e[2 * c0 + 1], e[2 * a0], e[2 * a0 + 1]) >= 0; )
28557
- if (c0 = a0, c0 === l0) {
28558
- c0 = -1;
28555
+ let r0 = l0, a0;
28556
+ for (; a0 = r[r0], orient2d(G0, h0, e[2 * r0], e[2 * r0 + 1], e[2 * a0], e[2 * a0 + 1]) >= 0; )
28557
+ if (r0 = a0, r0 === l0) {
28558
+ r0 = -1;
28559
28559
  break;
28560
28560
  }
28561
- if (c0 === -1) continue;
28562
- let m0 = this._addTriangle(c0, u0, r[c0], -1, -1, T[c0]);
28563
- T[u0] = this._legalize(m0 + 2), T[c0] = m0, i0++;
28564
- let I0 = r[c0];
28561
+ if (r0 === -1) continue;
28562
+ let m0 = this._addTriangle(r0, u0, r[r0], -1, -1, T[r0]);
28563
+ T[u0] = this._legalize(m0 + 2), T[r0] = m0, i0++;
28564
+ let I0 = r[r0];
28565
28565
  for (; a0 = r[I0], orient2d(G0, h0, e[2 * I0], e[2 * I0 + 1], e[2 * a0], e[2 * a0 + 1]) < 0; )
28566
28566
  m0 = this._addTriangle(I0, u0, a0, T[u0], -1, T[I0]), T[u0] = this._legalize(m0 + 2), r[I0] = I0, i0--, I0 = a0;
28567
- if (c0 === l0)
28568
- for (; a0 = s[c0], orient2d(G0, h0, e[2 * a0], e[2 * a0 + 1], e[2 * c0], e[2 * c0 + 1]) < 0; )
28569
- m0 = this._addTriangle(a0, u0, c0, -1, T[c0], T[a0]), this._legalize(m0 + 2), T[a0] = m0, r[c0] = c0, i0--, c0 = a0;
28570
- this._hullStart = s[u0] = c0, r[c0] = s[I0] = u0, r[u0] = I0, de[this._hashKey(G0, h0)] = u0, de[this._hashKey(e[2 * c0], e[2 * c0 + 1])] = c0;
28567
+ if (r0 === l0)
28568
+ for (; a0 = s[r0], orient2d(G0, h0, e[2 * a0], e[2 * a0 + 1], e[2 * r0], e[2 * r0 + 1]) < 0; )
28569
+ m0 = this._addTriangle(a0, u0, r0, -1, T[r0], T[a0]), this._legalize(m0 + 2), T[a0] = m0, r[r0] = r0, i0--, r0 = a0;
28570
+ this._hullStart = s[u0] = r0, r[r0] = s[I0] = u0, r[u0] = I0, de[this._hashKey(G0, h0)] = u0, de[this._hashKey(e[2 * r0], e[2 * r0 + 1])] = r0;
28571
28571
  }
28572
28572
  this.hull = new Uint32Array(i0);
28573
28573
  for (let n0 = 0, s0 = this._hullStart; n0 < i0; n0++)
@@ -28805,8 +28805,8 @@ class Voronoi {
28805
28805
  let de, Xe;
28806
28806
  const Je = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
28807
28807
  for (let Wt = 0, Yt = 0, st = r.length, Zt, vt; Wt < st; Wt += 3, Yt += 2) {
28808
- const Tt = r[Wt] * 2, Jt = r[Wt + 1] * 2, $t = r[Wt + 2] * 2, e0 = e[Tt], t0 = e[Tt + 1], i0 = e[Jt], n0 = e[Jt + 1], s0 = e[$t], d0 = e[$t + 1], u0 = i0 - e0, G0 = n0 - t0, h0 = s0 - e0, l0 = d0 - t0, c0 = (u0 * l0 - G0 * h0) * 2;
28809
- if (Math.abs(c0) < 1e-9) {
28808
+ const Tt = r[Wt] * 2, Jt = r[Wt + 1] * 2, $t = r[Wt + 2] * 2, e0 = e[Tt], t0 = e[Tt + 1], i0 = e[Jt], n0 = e[Jt + 1], s0 = e[$t], d0 = e[$t + 1], u0 = i0 - e0, G0 = n0 - t0, h0 = s0 - e0, l0 = d0 - t0, r0 = (u0 * l0 - G0 * h0) * 2;
28809
+ if (Math.abs(r0) < 1e-9) {
28810
28810
  if (de === void 0) {
28811
28811
  de = Xe = 0;
28812
28812
  for (const m0 of s) de += e[m0 * 2], Xe += e[m0 * 2 + 1];
@@ -28815,7 +28815,7 @@ class Voronoi {
28815
28815
  const a0 = 1e9 * Math.sign((de - e0) * l0 - (Xe - t0) * h0);
28816
28816
  Zt = (e0 + s0) / 2 - a0 * l0, vt = (t0 + d0) / 2 + a0 * h0;
28817
28817
  } else {
28818
- const a0 = 1 / c0, m0 = u0 * u0 + G0 * G0, I0 = h0 * h0 + l0 * l0;
28818
+ const a0 = 1 / r0, m0 = u0 * u0 + G0 * G0, I0 = h0 * h0 + l0 * l0;
28819
28819
  Zt = e0 + (l0 * m0 - G0 * I0) * a0, vt = t0 + (u0 * I0 - h0 * m0) * a0;
28820
28820
  }
28821
28821
  Je[Yt] = Zt, Je[Yt + 1] = vt;
@@ -30119,8 +30119,8 @@ function formatLocale(c) {
30119
30119
  u0 = t0(s0) + u0, s0 = "";
30120
30120
  else {
30121
30121
  s0 = +s0;
30122
- var c0 = s0 < 0 || 1 / s0 < 0;
30123
- if (s0 = isNaN(s0) ? Ke : t0(Math.abs(s0), vt), Tt && (s0 = formatTrim(s0)), c0 && +s0 == 0 && dt !== "+" && (c0 = !1), d0 = (c0 ? dt === "(" ? dt : Je : dt === "-" || dt === "(" ? "" : dt) + d0, u0 = (Jt === "s" ? prefixes[8 + prefixExponent / 3] : "") + u0 + (c0 && dt === "(" ? ")" : ""), i0) {
30122
+ var r0 = s0 < 0 || 1 / s0 < 0;
30123
+ if (s0 = isNaN(s0) ? Ke : t0(Math.abs(s0), vt), Tt && (s0 = formatTrim(s0)), r0 && +s0 == 0 && dt !== "+" && (r0 = !1), d0 = (r0 ? dt === "(" ? dt : Je : dt === "-" || dt === "(" ? "" : dt) + d0, u0 = (Jt === "s" ? prefixes[8 + prefixExponent / 3] : "") + u0 + (r0 && dt === "(" ? ")" : ""), i0) {
30124
30124
  for (G0 = -1, h0 = s0.length; ++G0 < h0; )
30125
30125
  if (l0 = s0.charCodeAt(G0), 48 > l0 || l0 > 57) {
30126
30126
  u0 = (l0 === 46 ? T + s0.slice(G0 + 1) : s0.slice(G0)) + u0, s0 = s0.slice(0, G0);
@@ -31379,8 +31379,8 @@ function buildTree(c, e, s, r, T) {
31379
31379
  Jt.splitAxis = n0.axis;
31380
31380
  const d0 = new MeshBVHNode(), u0 = $t, G0 = s0 - $t;
31381
31381
  Jt.left = d0, getBounds(e, u0, G0, d0.boundingData, Yt), Tt(d0, u0, G0, Yt, i0 + 1);
31382
- const h0 = new MeshBVHNode(), l0 = s0, c0 = e0 - G0;
31383
- Jt.right = h0, getBounds(e, l0, c0, h0.boundingData, Yt), Tt(h0, l0, c0, Yt, i0 + 1);
31382
+ const h0 = new MeshBVHNode(), l0 = s0, r0 = e0 - G0;
31383
+ Jt.right = h0, getBounds(e, l0, r0, h0.boundingData, Yt), Tt(h0, l0, r0, Yt, i0 + 1);
31384
31384
  }
31385
31385
  return Jt;
31386
31386
  }
@@ -31959,8 +31959,8 @@ function refit(c, e = null) {
31959
31959
  const d0 = n0 || s0;
31960
31960
  if (d0)
31961
31961
  for (let u0 = 0; u0 < 3; u0++) {
31962
- const G0 = st + u0, h0 = Zt + u0, l0 = Ke[G0], c0 = Ke[G0 + 3], a0 = Ke[h0], m0 = Ke[h0 + 3];
31963
- Ke[qe + u0] = l0 < a0 ? l0 : a0, Ke[qe + u0 + 3] = c0 > m0 ? c0 : m0;
31962
+ const G0 = st + u0, h0 = Zt + u0, l0 = Ke[G0], r0 = Ke[G0 + 3], a0 = Ke[h0], m0 = Ke[h0 + 3];
31963
+ Ke[qe + u0] = l0 < a0 ? l0 : a0, Ke[qe + u0 + 3] = r0 > m0 ? r0 : m0;
31964
31964
  }
31965
31965
  return d0;
31966
31966
  }
@@ -32152,8 +32152,8 @@ function refit_indirect(c, e = null) {
32152
32152
  const d0 = n0 || s0;
32153
32153
  if (d0)
32154
32154
  for (let u0 = 0; u0 < 3; u0++) {
32155
- const G0 = st + u0, h0 = Zt + u0, l0 = Ke[G0], c0 = Ke[G0 + 3], a0 = Ke[h0], m0 = Ke[h0 + 3];
32156
- Ke[qe + u0] = l0 < a0 ? l0 : a0, Ke[qe + u0 + 3] = c0 > m0 ? c0 : m0;
32155
+ const G0 = st + u0, h0 = Zt + u0, l0 = Ke[G0], r0 = Ke[G0 + 3], a0 = Ke[h0], m0 = Ke[h0 + 3];
32156
+ Ke[qe + u0] = l0 < a0 ? l0 : a0, Ke[qe + u0 + 3] = r0 > m0 ? r0 : m0;
32157
32157
  }
32158
32158
  return d0;
32159
32159
  }
@@ -33463,14 +33463,14 @@ function performSplitTriangleOperations(c, e, s, r, T, de, Xe, Je = 0) {
33463
33463
  const u0 = n0[s0], G0 = de.coplanarTriangleUsed ? getHitSideWithCoplanarCheck(u0, qe) : getHitSide(u0, qe);
33464
33464
  _attr.length = 0, _actions.length = 0;
33465
33465
  for (let h0 = 0, l0 = r.length; h0 < l0; h0++) {
33466
- const c0 = getOperationAction(r[h0], G0, T);
33467
- c0 !== SKIP_TRI && (_actions.push(c0), _attr.push(Xe[h0].getGroupAttrSet(Tt)));
33466
+ const r0 = getOperationAction(r[h0], G0, T);
33467
+ r0 !== SKIP_TRI && (_actions.push(r0), _attr.push(Xe[h0].getGroupAttrSet(Tt)));
33468
33468
  }
33469
33469
  if (_attr.length !== 0) {
33470
33470
  _triA.getBarycoord(u0.a, _barycoordTri.a), _triA.getBarycoord(u0.b, _barycoordTri.b), _triA.getBarycoord(u0.c, _barycoordTri.c);
33471
33471
  for (let h0 = 0, l0 = _attr.length; h0 < l0; h0++) {
33472
- const c0 = _attr[h0], m0 = _actions[h0] === INVERT_TRI;
33473
- appendAttributeFromTriangle(vt, _barycoordTri, c.geometry, c.matrixWorld, _normalMatrix, c0, Ke !== m0);
33472
+ const r0 = _attr[h0], m0 = _actions[h0] === INVERT_TRI;
33473
+ appendAttributeFromTriangle(vt, _barycoordTri, c.geometry, c.matrixWorld, _normalMatrix, r0, Ke !== m0);
33474
33474
  }
33475
33475
  }
33476
33476
  }
@@ -33504,8 +33504,8 @@ function performWholeTriangleOperations(c, e, s, r, T, de, Xe = 0) {
33504
33504
  const t0 = 3 * e0, i0 = _e.getX(t0 + 0), n0 = _e.getX(t0 + 1), s0 = _e.getX(t0 + 2), d0 = Xe === -1 ? 0 : Qe[e0] + Xe;
33505
33505
  if (_tri.a.fromBufferAttribute(qe, i0), _tri.b.fromBufferAttribute(qe, n0), _tri.c.fromBufferAttribute(qe, s0), !isTriDegenerate(_tri))
33506
33506
  for (let u0 = 0, G0 = _attr.length; u0 < G0; u0++) {
33507
- const h0 = _actions[u0], l0 = _attr[u0].getGroupAttrSet(d0), c0 = h0 === INVERT_TRI;
33508
- appendAttributesFromIndices(i0, n0, s0, $e, c.matrixWorld, _normalMatrix, l0, c0 !== Je);
33507
+ const h0 = _actions[u0], l0 = _attr[u0].getGroupAttrSet(d0), r0 = h0 === INVERT_TRI;
33508
+ appendAttributesFromIndices(i0, n0, s0, $e, c.matrixWorld, _normalMatrix, l0, r0 !== Je);
33509
33509
  }
33510
33510
  }
33511
33511
  }
@@ -36542,7 +36542,6 @@ let Ge$1 = class {
36542
36542
  })), this.finalComposerRender());
36543
36543
  } else
36544
36544
  this.finalComposerRender();
36545
- this.finalComposerRender();
36546
36545
  }
36547
36546
  dispose() {
36548
36547
  var e;
@@ -37574,17 +37573,17 @@ let K$1 = class H1 extends BufferGeometry {
37574
37573
  Tt && (i0 = Tt.getSpacedPoints(rt), n0 = !0, Wt = !1, s0 = Tt.computeFrenetFrames(rt, !1), d0 = new Vector3(), u0 = new Vector3(), G0 = new Vector3()), Wt || (vt = 0, Yt = 0, st = 0, Zt = 0);
37575
37574
  const h0 = Je.extractPoints(qe);
37576
37575
  let l0 = h0.shape;
37577
- const c0 = h0.holes;
37576
+ const r0 = h0.holes;
37578
37577
  if (!ShapeUtils.isClockWise(l0)) {
37579
37578
  l0 = l0.reverse();
37580
- for (let E0 = 0, U0 = c0.length; E0 < U0; E0++) {
37581
- const ii = c0[E0];
37582
- ShapeUtils.isClockWise(ii) && (c0[E0] = ii.reverse());
37579
+ for (let E0 = 0, U0 = r0.length; E0 < U0; E0++) {
37580
+ const ii = r0[E0];
37581
+ ShapeUtils.isClockWise(ii) && (r0[E0] = ii.reverse());
37583
37582
  }
37584
37583
  }
37585
- const a0 = ShapeUtils.triangulateShape(l0, c0), m0 = l0;
37586
- for (let E0 = 0, U0 = c0.length; E0 < U0; E0++) {
37587
- const ii = c0[E0];
37584
+ const a0 = ShapeUtils.triangulateShape(l0, r0), m0 = l0;
37585
+ for (let E0 = 0, U0 = r0.length; E0 < U0; E0++) {
37586
+ const ii = r0[E0];
37588
37587
  l0 = l0.concat(ii);
37589
37588
  }
37590
37589
  function I0(E0, U0, ii) {
@@ -37614,8 +37613,8 @@ let K$1 = class H1 extends BufferGeometry {
37614
37613
  ii === U0 && (ii = 0), ei === U0 && (ei = 0), M0[E0] = ci(m0[E0], m0[ii], m0[ei]);
37615
37614
  const A0 = [];
37616
37615
  let j0, ni = M0.concat();
37617
- for (let E0 = 0, U0 = c0.length; E0 < U0; E0++) {
37618
- const ii = c0[E0];
37616
+ for (let E0 = 0, U0 = r0.length; E0 < U0; E0++) {
37617
+ const ii = r0[E0];
37619
37618
  j0 = [];
37620
37619
  for (let ei = 0, V0 = ii.length, b0 = V0 - 1, N0 = ei + 1; ei < V0; ei++, b0++, N0++)
37621
37620
  b0 === V0 && (b0 = 0), N0 === V0 && (N0 = 0), j0[ei] = ci(ii[ei], ii[b0], ii[N0]);
@@ -37627,8 +37626,8 @@ let K$1 = class H1 extends BufferGeometry {
37627
37626
  const N0 = I0(m0[V0], M0[V0], ei);
37628
37627
  ti(N0.x, N0.y, -ii);
37629
37628
  }
37630
- for (let V0 = 0, b0 = c0.length; V0 < b0; V0++) {
37631
- const N0 = c0[V0];
37629
+ for (let V0 = 0, b0 = r0.length; V0 < b0; V0++) {
37630
+ const N0 = r0[V0];
37632
37631
  j0 = A0[V0];
37633
37632
  for (let P0 = 0, $0 = N0.length; P0 < $0; P0++) {
37634
37633
  const Q0 = I0(N0[P0], j0[P0], ei);
@@ -37652,8 +37651,8 @@ let K$1 = class H1 extends BufferGeometry {
37652
37651
  const N0 = I0(m0[V0], M0[V0], ei);
37653
37652
  ti(N0.x, N0.y, dt + ii);
37654
37653
  }
37655
- for (let V0 = 0, b0 = c0.length; V0 < b0; V0++) {
37656
- const N0 = c0[V0];
37654
+ for (let V0 = 0, b0 = r0.length; V0 < b0; V0++) {
37655
+ const N0 = r0[V0];
37657
37656
  j0 = A0[V0];
37658
37657
  for (let P0 = 0, $0 = N0.length; P0 < $0; P0++) {
37659
37658
  const Q0 = I0(N0[P0], j0[P0], ei);
@@ -37702,8 +37701,8 @@ let K$1 = class H1 extends BufferGeometry {
37702
37701
  const E0 = T.length / 3;
37703
37702
  let U0 = 0;
37704
37703
  Si(m0, U0), U0 += m0.length;
37705
- for (let ii = 0, ei = c0.length; ii < ei; ii++) {
37706
- const V0 = c0[ii];
37704
+ for (let ii = 0, ei = r0.length; ii < ei; ii++) {
37705
+ const V0 = r0[ii];
37707
37706
  Si(V0, U0), U0 += V0.length;
37708
37707
  }
37709
37708
  r.addGroup(E0, T.length / 3 - E0, 1);
@@ -40676,8 +40675,8 @@ var flrm = /* @__PURE__ */ hMap(flt, 9, 1), fdrm = /* @__PURE__ */ hMap(fdt, 5,
40676
40675
  if (vt < 16)
40677
40676
  i0[s0++] = vt;
40678
40677
  else {
40679
- var l0 = 0, c0 = 0;
40680
- for (vt == 16 ? (c0 = 3 + bits(c, $e, 3), $e += 2, l0 = i0[s0 - 1]) : vt == 17 ? (c0 = 3 + bits(c, $e, 7), $e += 3) : vt == 18 && (c0 = 11 + bits(c, $e, 127), $e += 7); c0--; )
40678
+ var l0 = 0, r0 = 0;
40679
+ for (vt == 16 ? (r0 = 3 + bits(c, $e, 3), $e += 2, l0 = i0[s0 - 1]) : vt == 17 ? (r0 = 3 + bits(c, $e, 7), $e += 3) : vt == 18 && (r0 = 11 + bits(c, $e, 127), $e += 7); r0--; )
40681
40680
  i0[s0++] = l0;
40682
40681
  }
40683
40682
  }
@@ -40763,18 +40762,18 @@ class EXRLoader extends DataTextureLoader {
40763
40762
  let v0 = 0;
40764
40763
  for (let R0 = 0; R0 < 65536; ++R0)
40765
40764
  (R0 == 0 || o0[R0 >> 3] & 1 << (R0 & 7)) && (f0[v0++] = R0);
40766
- const r0 = v0 - 1;
40765
+ const c0 = v0 - 1;
40767
40766
  for (; v0 < 65536; ) f0[v0++] = 0;
40768
- return r0;
40767
+ return c0;
40769
40768
  }
40770
40769
  function s0(o0) {
40771
40770
  for (let f0 = 0; f0 < 16384; f0++)
40772
40771
  o0[f0] = {}, o0[f0].len = 0, o0[f0].lit = 0, o0[f0].p = null;
40773
40772
  }
40774
40773
  const d0 = { l: 0, c: 0, lc: 0 };
40775
- function u0(o0, f0, v0, r0, R0) {
40774
+ function u0(o0, f0, v0, c0, R0) {
40776
40775
  for (; v0 < o0; )
40777
- f0 = f0 << 8 | fi(r0, R0), v0 += 8;
40776
+ f0 = f0 << 8 | fi(c0, R0), v0 += 8;
40778
40777
  v0 -= o0, d0.l = f0 >> v0 & (1 << o0) - 1, d0.c = f0, d0.lc = v0;
40779
40778
  }
40780
40779
  const G0 = new Array(59);
@@ -40783,53 +40782,53 @@ class EXRLoader extends DataTextureLoader {
40783
40782
  for (let v0 = 0; v0 < 65537; ++v0) G0[o0[v0]] += 1;
40784
40783
  let f0 = 0;
40785
40784
  for (let v0 = 58; v0 > 0; --v0) {
40786
- const r0 = f0 + G0[v0] >> 1;
40787
- G0[v0] = f0, f0 = r0;
40785
+ const c0 = f0 + G0[v0] >> 1;
40786
+ G0[v0] = f0, f0 = c0;
40788
40787
  }
40789
40788
  for (let v0 = 0; v0 < 65537; ++v0) {
40790
- const r0 = o0[v0];
40791
- r0 > 0 && (o0[v0] = r0 | G0[r0]++ << 6);
40789
+ const c0 = o0[v0];
40790
+ c0 > 0 && (o0[v0] = c0 | G0[c0]++ << 6);
40792
40791
  }
40793
40792
  }
40794
- function l0(o0, f0, v0, r0, R0, S0) {
40793
+ function l0(o0, f0, v0, c0, R0, S0) {
40795
40794
  const T0 = f0;
40796
40795
  let L0 = 0, F0 = 0;
40797
- for (; r0 <= R0; r0++) {
40796
+ for (; c0 <= R0; c0++) {
40798
40797
  if (T0.value - f0.value > v0) return !1;
40799
40798
  u0(6, L0, F0, o0, T0);
40800
40799
  const k0 = d0.l;
40801
- if (L0 = d0.c, F0 = d0.lc, S0[r0] = k0, k0 == 63) {
40800
+ if (L0 = d0.c, F0 = d0.lc, S0[c0] = k0, k0 == 63) {
40802
40801
  if (T0.value - f0.value > v0)
40803
40802
  throw new Error("Something wrong with hufUnpackEncTable");
40804
40803
  u0(8, L0, F0, o0, T0);
40805
40804
  let K0 = d0.l + 6;
40806
- if (L0 = d0.c, F0 = d0.lc, r0 + K0 > R0 + 1)
40805
+ if (L0 = d0.c, F0 = d0.lc, c0 + K0 > R0 + 1)
40807
40806
  throw new Error("Something wrong with hufUnpackEncTable");
40808
- for (; K0--; ) S0[r0++] = 0;
40809
- r0--;
40807
+ for (; K0--; ) S0[c0++] = 0;
40808
+ c0--;
40810
40809
  } else if (k0 >= 59) {
40811
40810
  let K0 = k0 - 59 + 2;
40812
- if (r0 + K0 > R0 + 1)
40811
+ if (c0 + K0 > R0 + 1)
40813
40812
  throw new Error("Something wrong with hufUnpackEncTable");
40814
- for (; K0--; ) S0[r0++] = 0;
40815
- r0--;
40813
+ for (; K0--; ) S0[c0++] = 0;
40814
+ c0--;
40816
40815
  }
40817
40816
  }
40818
40817
  h0(S0);
40819
40818
  }
40820
- function c0(o0) {
40819
+ function r0(o0) {
40821
40820
  return o0 & 63;
40822
40821
  }
40823
40822
  function a0(o0) {
40824
40823
  return o0 >> 6;
40825
40824
  }
40826
- function m0(o0, f0, v0, r0) {
40825
+ function m0(o0, f0, v0, c0) {
40827
40826
  for (; f0 <= v0; f0++) {
40828
- const R0 = a0(o0[f0]), S0 = c0(o0[f0]);
40827
+ const R0 = a0(o0[f0]), S0 = r0(o0[f0]);
40829
40828
  if (R0 >> S0)
40830
40829
  throw new Error("Invalid table entry");
40831
40830
  if (S0 > 14) {
40832
- const T0 = r0[R0 >> S0 - 14];
40831
+ const T0 = c0[R0 >> S0 - 14];
40833
40832
  if (T0.len)
40834
40833
  throw new Error("Invalid table entry");
40835
40834
  if (T0.lit++, T0.p) {
@@ -40843,7 +40842,7 @@ class EXRLoader extends DataTextureLoader {
40843
40842
  } else if (S0) {
40844
40843
  let T0 = 0;
40845
40844
  for (let L0 = 1 << 14 - S0; L0 > 0; L0--) {
40846
- const F0 = r0[(R0 << 14 - S0) + T0];
40845
+ const F0 = c0[(R0 << 14 - S0) + T0];
40847
40846
  if (F0.len || F0.p)
40848
40847
  throw new Error("Invalid table entry");
40849
40848
  F0.len = S0, F0.lit = f0, T0++;
@@ -40853,14 +40852,14 @@ class EXRLoader extends DataTextureLoader {
40853
40852
  return !0;
40854
40853
  }
40855
40854
  const I0 = { c: 0, lc: 0 };
40856
- function C0(o0, f0, v0, r0) {
40857
- o0 = o0 << 8 | fi(v0, r0), f0 += 8, I0.c = o0, I0.lc = f0;
40855
+ function C0(o0, f0, v0, c0) {
40856
+ o0 = o0 << 8 | fi(v0, c0), f0 += 8, I0.c = o0, I0.lc = f0;
40858
40857
  }
40859
40858
  const B0 = { c: 0, lc: 0 };
40860
- function ci(o0, f0, v0, r0, R0, S0, T0, L0, F0) {
40859
+ function ci(o0, f0, v0, c0, R0, S0, T0, L0, F0) {
40861
40860
  if (o0 == f0) {
40862
- r0 < 8 && (C0(v0, r0, R0, S0), v0 = I0.c, r0 = I0.lc), r0 -= 8;
40863
- let k0 = v0 >> r0;
40861
+ c0 < 8 && (C0(v0, c0, R0, S0), v0 = I0.c, c0 = I0.lc), c0 -= 8;
40862
+ let k0 = v0 >> c0;
40864
40863
  if (k0 = new Uint8Array([k0])[0], L0.value + k0 > F0)
40865
40864
  return !1;
40866
40865
  const K0 = T0[L0.value - 1];
@@ -40870,7 +40869,7 @@ class EXRLoader extends DataTextureLoader {
40870
40869
  T0[L0.value++] = o0;
40871
40870
  else
40872
40871
  return !1;
40873
- B0.c = v0, B0.lc = r0;
40872
+ B0.c = v0, B0.lc = c0;
40874
40873
  }
40875
40874
  function M0(o0) {
40876
40875
  return o0 & 65535;
@@ -40885,20 +40884,20 @@ class EXRLoader extends DataTextureLoader {
40885
40884
  j0.a = T0, j0.b = L0;
40886
40885
  }
40887
40886
  function bi(o0, f0) {
40888
- const v0 = M0(o0), r0 = M0(f0), R0 = v0 - (r0 >> 1) & 65535, S0 = r0 + R0 - 32768 & 65535;
40887
+ const v0 = M0(o0), c0 = M0(f0), R0 = v0 - (c0 >> 1) & 65535, S0 = c0 + R0 - 32768 & 65535;
40889
40888
  j0.a = S0, j0.b = R0;
40890
40889
  }
40891
- function xi(o0, f0, v0, r0, R0, S0, T0) {
40890
+ function xi(o0, f0, v0, c0, R0, S0, T0) {
40892
40891
  const L0 = T0 < 16384, F0 = v0 > R0 ? R0 : v0;
40893
40892
  let k0 = 1, K0, O0;
40894
40893
  for (; k0 <= F0; ) k0 <<= 1;
40895
40894
  for (k0 >>= 1, K0 = k0, k0 >>= 1; k0 >= 1; ) {
40896
40895
  O0 = 0;
40897
- const li = O0 + S0 * (R0 - K0), oi = S0 * k0, di = S0 * K0, hi = r0 * k0, yi = r0 * K0;
40896
+ const li = O0 + S0 * (R0 - K0), oi = S0 * k0, di = S0 * K0, hi = c0 * k0, yi = c0 * K0;
40898
40897
  let Yi, Ni, Mi, Li;
40899
40898
  for (; O0 <= li; O0 += di) {
40900
40899
  let Ki = O0;
40901
- const Ii = O0 + r0 * (v0 - K0);
40900
+ const Ii = O0 + c0 * (v0 - K0);
40902
40901
  for (; Ki <= Ii; Ki += yi) {
40903
40902
  const Ei = Ki + hi, _i = Ki + oi, Pi = _i + hi;
40904
40903
  L0 ? (ni(o0[Ki + f0], o0[_i + f0]), Yi = j0.a, Mi = j0.b, ni(o0[Ei + f0], o0[Pi + f0]), Ni = j0.a, Li = j0.b, ni(Yi, Ni), o0[Ki + f0] = j0.a, o0[Ei + f0] = j0.b, ni(Mi, Li), o0[_i + f0] = j0.a, o0[Pi + f0] = j0.b) : (bi(o0[Ki + f0], o0[_i + f0]), Yi = j0.a, Mi = j0.b, bi(o0[Ei + f0], o0[Pi + f0]), Ni = j0.a, Li = j0.b, bi(Yi, Ni), o0[Ki + f0] = j0.a, o0[Ei + f0] = j0.b, bi(Mi, Li), o0[_i + f0] = j0.a, o0[Pi + f0] = j0.b);
@@ -40910,7 +40909,7 @@ class EXRLoader extends DataTextureLoader {
40910
40909
  }
40911
40910
  if (R0 & k0) {
40912
40911
  let Ki = O0;
40913
- const Ii = O0 + r0 * (v0 - K0);
40912
+ const Ii = O0 + c0 * (v0 - K0);
40914
40913
  for (; Ki <= Ii; Ki += yi) {
40915
40914
  const Ei = Ki + hi;
40916
40915
  L0 ? ni(o0[Ki + f0], o0[Ei + f0]) : bi(o0[Ki + f0], o0[Ei + f0]), Yi = j0.a, o0[Ei + f0] = j0.b, o0[Ki + f0] = Yi;
@@ -40920,24 +40919,24 @@ class EXRLoader extends DataTextureLoader {
40920
40919
  }
40921
40920
  return O0;
40922
40921
  }
40923
- function ui(o0, f0, v0, r0, R0, S0, T0, L0, F0) {
40922
+ function ui(o0, f0, v0, c0, R0, S0, T0, L0, F0) {
40924
40923
  let k0 = 0, K0 = 0;
40925
- const O0 = T0, li = Math.trunc(r0.value + (R0 + 7) / 8);
40926
- for (; r0.value < li; )
40927
- for (C0(k0, K0, v0, r0), k0 = I0.c, K0 = I0.lc; K0 >= 14; ) {
40924
+ const O0 = T0, li = Math.trunc(c0.value + (R0 + 7) / 8);
40925
+ for (; c0.value < li; )
40926
+ for (C0(k0, K0, v0, c0), k0 = I0.c, K0 = I0.lc; K0 >= 14; ) {
40928
40927
  const di = k0 >> K0 - 14 & 16383, hi = f0[di];
40929
40928
  if (hi.len)
40930
- K0 -= hi.len, ci(hi.lit, S0, k0, K0, v0, r0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40929
+ K0 -= hi.len, ci(hi.lit, S0, k0, K0, v0, c0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40931
40930
  else {
40932
40931
  if (!hi.p)
40933
40932
  throw new Error("hufDecode issues");
40934
40933
  let yi;
40935
40934
  for (yi = 0; yi < hi.lit; yi++) {
40936
- const Yi = c0(o0[hi.p[yi]]);
40937
- for (; K0 < Yi && r0.value < li; )
40938
- C0(k0, K0, v0, r0), k0 = I0.c, K0 = I0.lc;
40935
+ const Yi = r0(o0[hi.p[yi]]);
40936
+ for (; K0 < Yi && c0.value < li; )
40937
+ C0(k0, K0, v0, c0), k0 = I0.c, K0 = I0.lc;
40939
40938
  if (K0 >= Yi && a0(o0[hi.p[yi]]) == (k0 >> K0 - Yi & (1 << Yi) - 1)) {
40940
- K0 -= Yi, ci(hi.p[yi], S0, k0, K0, v0, r0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40939
+ K0 -= Yi, ci(hi.p[yi], S0, k0, K0, v0, c0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40941
40940
  break;
40942
40941
  }
40943
40942
  }
@@ -40949,13 +40948,13 @@ class EXRLoader extends DataTextureLoader {
40949
40948
  for (k0 >>= oi, K0 -= oi; K0 > 0; ) {
40950
40949
  const di = f0[k0 << 14 - K0 & 16383];
40951
40950
  if (di.len)
40952
- K0 -= di.len, ci(di.lit, S0, k0, K0, v0, r0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40951
+ K0 -= di.len, ci(di.lit, S0, k0, K0, v0, c0, L0, F0, O0), k0 = B0.c, K0 = B0.lc;
40953
40952
  else
40954
40953
  throw new Error("hufDecode issues");
40955
40954
  }
40956
40955
  return !0;
40957
40956
  }
40958
- function Si(o0, f0, v0, r0, R0, S0) {
40957
+ function Si(o0, f0, v0, c0, R0, S0) {
40959
40958
  const T0 = { value: 0 }, L0 = v0.value, F0 = vi(f0, v0), k0 = vi(f0, v0);
40960
40959
  v0.value += 4;
40961
40960
  const K0 = vi(f0, v0);
@@ -40963,14 +40962,14 @@ class EXRLoader extends DataTextureLoader {
40963
40962
  throw new Error("Something wrong with HUF_ENCSIZE");
40964
40963
  const O0 = new Array(65537), li = new Array(16384);
40965
40964
  s0(li);
40966
- const oi = r0 - (v0.value - L0);
40967
- if (l0(o0, v0, oi, F0, k0, O0), K0 > 8 * (r0 - (v0.value - L0)))
40965
+ const oi = c0 - (v0.value - L0);
40966
+ if (l0(o0, v0, oi, F0, k0, O0), K0 > 8 * (c0 - (v0.value - L0)))
40968
40967
  throw new Error("Something wrong with hufUncompress");
40969
40968
  m0(O0, F0, k0, li), ui(O0, li, o0, v0, K0, k0, S0, R0, T0);
40970
40969
  }
40971
40970
  function ti(o0, f0, v0) {
40972
- for (let r0 = 0; r0 < v0; ++r0)
40973
- f0[r0] = o0[f0[r0]];
40971
+ for (let c0 = 0; c0 < v0; ++c0)
40972
+ f0[c0] = o0[f0[c0]];
40974
40973
  }
40975
40974
  function J0(o0) {
40976
40975
  for (let f0 = 1; f0 < o0.length; f0++) {
@@ -40979,34 +40978,34 @@ class EXRLoader extends DataTextureLoader {
40979
40978
  }
40980
40979
  }
40981
40980
  function g0(o0, f0) {
40982
- let v0 = 0, r0 = Math.floor((o0.length + 1) / 2), R0 = 0;
40981
+ let v0 = 0, c0 = Math.floor((o0.length + 1) / 2), R0 = 0;
40983
40982
  const S0 = o0.length - 1;
40984
40983
  for (; !(R0 > S0 || (f0[R0++] = o0[v0++], R0 > S0)); )
40985
- f0[R0++] = o0[r0++];
40984
+ f0[R0++] = o0[c0++];
40986
40985
  }
40987
40986
  function Xi(o0) {
40988
40987
  let f0 = o0.byteLength;
40989
40988
  const v0 = new Array();
40990
- let r0 = 0;
40989
+ let c0 = 0;
40991
40990
  const R0 = new DataView(o0);
40992
40991
  for (; f0 > 0; ) {
40993
- const S0 = R0.getInt8(r0++);
40992
+ const S0 = R0.getInt8(c0++);
40994
40993
  if (S0 < 0) {
40995
40994
  const T0 = -S0;
40996
40995
  f0 -= T0 + 1;
40997
40996
  for (let L0 = 0; L0 < T0; L0++)
40998
- v0.push(R0.getUint8(r0++));
40997
+ v0.push(R0.getUint8(c0++));
40999
40998
  } else {
41000
40999
  const T0 = S0;
41001
41000
  f0 -= 2;
41002
- const L0 = R0.getUint8(r0++);
41001
+ const L0 = R0.getUint8(c0++);
41003
41002
  for (let F0 = 0; F0 < T0 + 1; F0++)
41004
41003
  v0.push(L0);
41005
41004
  }
41006
41005
  }
41007
41006
  return v0;
41008
41007
  }
41009
- function si(o0, f0, v0, r0, R0, S0) {
41008
+ function si(o0, f0, v0, c0, R0, S0) {
41010
41009
  let T0 = new DataView(S0.buffer);
41011
41010
  const L0 = v0[o0.idx[0]].width, F0 = v0[o0.idx[0]].height, k0 = 3, K0 = Math.floor(L0 / 8), O0 = Math.ceil(L0 / 8), li = Math.ceil(F0 / 8), oi = L0 - (O0 - 1) * 8, di = F0 - (li - 1) * 8, hi = { value: 0 }, yi = new Array(k0), Yi = new Array(k0), Ni = new Array(k0), Mi = new Array(k0), Li = new Array(k0);
41012
41011
  for (let Ii = 0; Ii < k0; ++Ii)
@@ -41018,7 +41017,7 @@ class EXRLoader extends DataTextureLoader {
41018
41017
  for (let Ui = 0; Ui < O0; ++Ui) {
41019
41018
  Ui == O0 - 1 && (_i = oi);
41020
41019
  for (let Fi = 0; Fi < k0; ++Fi)
41021
- Ni[Fi].fill(0), Ni[Fi][0] = R0[yi[Fi]++], E0(hi, r0, Ni[Fi]), U0(Ni[Fi], Yi[Fi]), ii(Yi[Fi]);
41020
+ Ni[Fi].fill(0), Ni[Fi][0] = R0[yi[Fi]++], E0(hi, c0, Ni[Fi]), U0(Ni[Fi], Yi[Fi]), ii(Yi[Fi]);
41022
41021
  ei(Yi);
41023
41022
  for (let Fi = 0; Fi < k0; ++Fi)
41024
41023
  V0(Yi[Fi], Mi[Fi], Ui * 64);
@@ -41057,31 +41056,31 @@ class EXRLoader extends DataTextureLoader {
41057
41056
  }
41058
41057
  }
41059
41058
  function E0(o0, f0, v0) {
41060
- let r0, R0 = 1;
41059
+ let c0, R0 = 1;
41061
41060
  for (; R0 < 64; )
41062
- r0 = f0[o0.value], r0 == 65280 ? R0 = 64 : r0 >> 8 == 255 ? R0 += r0 & 255 : (v0[R0] = r0, R0++), o0.value++;
41061
+ c0 = f0[o0.value], c0 == 65280 ? R0 = 64 : c0 >> 8 == 255 ? R0 += c0 & 255 : (v0[R0] = c0, R0++), o0.value++;
41063
41062
  }
41064
41063
  function U0(o0, f0) {
41065
41064
  f0[0] = _0(o0[0]), f0[1] = _0(o0[1]), f0[2] = _0(o0[5]), f0[3] = _0(o0[6]), f0[4] = _0(o0[14]), f0[5] = _0(o0[15]), f0[6] = _0(o0[27]), f0[7] = _0(o0[28]), f0[8] = _0(o0[2]), f0[9] = _0(o0[4]), f0[10] = _0(o0[7]), f0[11] = _0(o0[13]), f0[12] = _0(o0[16]), f0[13] = _0(o0[26]), f0[14] = _0(o0[29]), f0[15] = _0(o0[42]), f0[16] = _0(o0[3]), f0[17] = _0(o0[8]), f0[18] = _0(o0[12]), f0[19] = _0(o0[17]), f0[20] = _0(o0[25]), f0[21] = _0(o0[30]), f0[22] = _0(o0[41]), f0[23] = _0(o0[43]), f0[24] = _0(o0[9]), f0[25] = _0(o0[11]), f0[26] = _0(o0[18]), f0[27] = _0(o0[24]), f0[28] = _0(o0[31]), f0[29] = _0(o0[40]), f0[30] = _0(o0[44]), f0[31] = _0(o0[53]), f0[32] = _0(o0[10]), f0[33] = _0(o0[19]), f0[34] = _0(o0[23]), f0[35] = _0(o0[32]), f0[36] = _0(o0[39]), f0[37] = _0(o0[45]), f0[38] = _0(o0[52]), f0[39] = _0(o0[54]), f0[40] = _0(o0[20]), f0[41] = _0(o0[22]), f0[42] = _0(o0[33]), f0[43] = _0(o0[38]), f0[44] = _0(o0[46]), f0[45] = _0(o0[51]), f0[46] = _0(o0[55]), f0[47] = _0(o0[60]), f0[48] = _0(o0[21]), f0[49] = _0(o0[34]), f0[50] = _0(o0[37]), f0[51] = _0(o0[47]), f0[52] = _0(o0[50]), f0[53] = _0(o0[56]), f0[54] = _0(o0[59]), f0[55] = _0(o0[61]), f0[56] = _0(o0[35]), f0[57] = _0(o0[36]), f0[58] = _0(o0[48]), f0[59] = _0(o0[49]), f0[60] = _0(o0[57]), f0[61] = _0(o0[58]), f0[62] = _0(o0[62]), f0[63] = _0(o0[63]);
41066
41065
  }
41067
41066
  function ii(o0) {
41068
- const f0 = 0.5 * Math.cos(0.7853975), v0 = 0.5 * Math.cos(3.14159 / 16), r0 = 0.5 * Math.cos(3.14159 / 8), R0 = 0.5 * Math.cos(3 * 3.14159 / 16), S0 = 0.5 * Math.cos(5 * 3.14159 / 16), T0 = 0.5 * Math.cos(3 * 3.14159 / 8), L0 = 0.5 * Math.cos(7 * 3.14159 / 16), F0 = new Array(4), k0 = new Array(4), K0 = new Array(4), O0 = new Array(4);
41067
+ const f0 = 0.5 * Math.cos(0.7853975), v0 = 0.5 * Math.cos(3.14159 / 16), c0 = 0.5 * Math.cos(3.14159 / 8), R0 = 0.5 * Math.cos(3 * 3.14159 / 16), S0 = 0.5 * Math.cos(5 * 3.14159 / 16), T0 = 0.5 * Math.cos(3 * 3.14159 / 8), L0 = 0.5 * Math.cos(7 * 3.14159 / 16), F0 = new Array(4), k0 = new Array(4), K0 = new Array(4), O0 = new Array(4);
41069
41068
  for (let li = 0; li < 8; ++li) {
41070
41069
  const oi = li * 8;
41071
- F0[0] = r0 * o0[oi + 2], F0[1] = T0 * o0[oi + 2], F0[2] = r0 * o0[oi + 6], F0[3] = T0 * o0[oi + 6], k0[0] = v0 * o0[oi + 1] + R0 * o0[oi + 3] + S0 * o0[oi + 5] + L0 * o0[oi + 7], k0[1] = R0 * o0[oi + 1] - L0 * o0[oi + 3] - v0 * o0[oi + 5] - S0 * o0[oi + 7], k0[2] = S0 * o0[oi + 1] - v0 * o0[oi + 3] + L0 * o0[oi + 5] + R0 * o0[oi + 7], k0[3] = L0 * o0[oi + 1] - S0 * o0[oi + 3] + R0 * o0[oi + 5] - v0 * o0[oi + 7], K0[0] = f0 * (o0[oi + 0] + o0[oi + 4]), K0[3] = f0 * (o0[oi + 0] - o0[oi + 4]), K0[1] = F0[0] + F0[3], K0[2] = F0[1] - F0[2], O0[0] = K0[0] + K0[1], O0[1] = K0[3] + K0[2], O0[2] = K0[3] - K0[2], O0[3] = K0[0] - K0[1], o0[oi + 0] = O0[0] + k0[0], o0[oi + 1] = O0[1] + k0[1], o0[oi + 2] = O0[2] + k0[2], o0[oi + 3] = O0[3] + k0[3], o0[oi + 4] = O0[3] - k0[3], o0[oi + 5] = O0[2] - k0[2], o0[oi + 6] = O0[1] - k0[1], o0[oi + 7] = O0[0] - k0[0];
41070
+ F0[0] = c0 * o0[oi + 2], F0[1] = T0 * o0[oi + 2], F0[2] = c0 * o0[oi + 6], F0[3] = T0 * o0[oi + 6], k0[0] = v0 * o0[oi + 1] + R0 * o0[oi + 3] + S0 * o0[oi + 5] + L0 * o0[oi + 7], k0[1] = R0 * o0[oi + 1] - L0 * o0[oi + 3] - v0 * o0[oi + 5] - S0 * o0[oi + 7], k0[2] = S0 * o0[oi + 1] - v0 * o0[oi + 3] + L0 * o0[oi + 5] + R0 * o0[oi + 7], k0[3] = L0 * o0[oi + 1] - S0 * o0[oi + 3] + R0 * o0[oi + 5] - v0 * o0[oi + 7], K0[0] = f0 * (o0[oi + 0] + o0[oi + 4]), K0[3] = f0 * (o0[oi + 0] - o0[oi + 4]), K0[1] = F0[0] + F0[3], K0[2] = F0[1] - F0[2], O0[0] = K0[0] + K0[1], O0[1] = K0[3] + K0[2], O0[2] = K0[3] - K0[2], O0[3] = K0[0] - K0[1], o0[oi + 0] = O0[0] + k0[0], o0[oi + 1] = O0[1] + k0[1], o0[oi + 2] = O0[2] + k0[2], o0[oi + 3] = O0[3] + k0[3], o0[oi + 4] = O0[3] - k0[3], o0[oi + 5] = O0[2] - k0[2], o0[oi + 6] = O0[1] - k0[1], o0[oi + 7] = O0[0] - k0[0];
41072
41071
  }
41073
41072
  for (let li = 0; li < 8; ++li)
41074
- F0[0] = r0 * o0[16 + li], F0[1] = T0 * o0[16 + li], F0[2] = r0 * o0[48 + li], F0[3] = T0 * o0[48 + li], k0[0] = v0 * o0[8 + li] + R0 * o0[24 + li] + S0 * o0[40 + li] + L0 * o0[56 + li], k0[1] = R0 * o0[8 + li] - L0 * o0[24 + li] - v0 * o0[40 + li] - S0 * o0[56 + li], k0[2] = S0 * o0[8 + li] - v0 * o0[24 + li] + L0 * o0[40 + li] + R0 * o0[56 + li], k0[3] = L0 * o0[8 + li] - S0 * o0[24 + li] + R0 * o0[40 + li] - v0 * o0[56 + li], K0[0] = f0 * (o0[li] + o0[32 + li]), K0[3] = f0 * (o0[li] - o0[32 + li]), K0[1] = F0[0] + F0[3], K0[2] = F0[1] - F0[2], O0[0] = K0[0] + K0[1], O0[1] = K0[3] + K0[2], O0[2] = K0[3] - K0[2], O0[3] = K0[0] - K0[1], o0[0 + li] = O0[0] + k0[0], o0[8 + li] = O0[1] + k0[1], o0[16 + li] = O0[2] + k0[2], o0[24 + li] = O0[3] + k0[3], o0[32 + li] = O0[3] - k0[3], o0[40 + li] = O0[2] - k0[2], o0[48 + li] = O0[1] - k0[1], o0[56 + li] = O0[0] - k0[0];
41073
+ F0[0] = c0 * o0[16 + li], F0[1] = T0 * o0[16 + li], F0[2] = c0 * o0[48 + li], F0[3] = T0 * o0[48 + li], k0[0] = v0 * o0[8 + li] + R0 * o0[24 + li] + S0 * o0[40 + li] + L0 * o0[56 + li], k0[1] = R0 * o0[8 + li] - L0 * o0[24 + li] - v0 * o0[40 + li] - S0 * o0[56 + li], k0[2] = S0 * o0[8 + li] - v0 * o0[24 + li] + L0 * o0[40 + li] + R0 * o0[56 + li], k0[3] = L0 * o0[8 + li] - S0 * o0[24 + li] + R0 * o0[40 + li] - v0 * o0[56 + li], K0[0] = f0 * (o0[li] + o0[32 + li]), K0[3] = f0 * (o0[li] - o0[32 + li]), K0[1] = F0[0] + F0[3], K0[2] = F0[1] - F0[2], O0[0] = K0[0] + K0[1], O0[1] = K0[3] + K0[2], O0[2] = K0[3] - K0[2], O0[3] = K0[0] - K0[1], o0[0 + li] = O0[0] + k0[0], o0[8 + li] = O0[1] + k0[1], o0[16 + li] = O0[2] + k0[2], o0[24 + li] = O0[3] + k0[3], o0[32 + li] = O0[3] - k0[3], o0[40 + li] = O0[2] - k0[2], o0[48 + li] = O0[1] - k0[1], o0[56 + li] = O0[0] - k0[0];
41075
41074
  }
41076
41075
  function ei(o0) {
41077
41076
  for (let f0 = 0; f0 < 64; ++f0) {
41078
- const v0 = o0[0][f0], r0 = o0[1][f0], R0 = o0[2][f0];
41079
- o0[0][f0] = v0 + 1.5747 * R0, o0[1][f0] = v0 - 0.1873 * r0 - 0.4682 * R0, o0[2][f0] = v0 + 1.8556 * r0;
41077
+ const v0 = o0[0][f0], c0 = o0[1][f0], R0 = o0[2][f0];
41078
+ o0[0][f0] = v0 + 1.5747 * R0, o0[1][f0] = v0 - 0.1873 * c0 - 0.4682 * R0, o0[2][f0] = v0 + 1.8556 * c0;
41080
41079
  }
41081
41080
  }
41082
41081
  function V0(o0, f0, v0) {
41083
- for (let r0 = 0; r0 < 64; ++r0)
41084
- f0[v0 + r0] = DataUtils.toHalfFloat(b0(o0[r0]));
41082
+ for (let c0 = 0; c0 < 64; ++c0)
41083
+ f0[v0 + c0] = DataUtils.toHalfFloat(b0(o0[c0]));
41085
41084
  }
41086
41085
  function b0(o0) {
41087
41086
  return o0 <= 1 ? Math.sign(o0) * Math.pow(Math.abs(o0), 2.2) : Math.sign(o0) * Math.pow(i0, Math.abs(o0) - 1);
@@ -41090,15 +41089,15 @@ class EXRLoader extends DataTextureLoader {
41090
41089
  return new DataView(o0.array.buffer, o0.offset.value, o0.size);
41091
41090
  }
41092
41091
  function P0(o0) {
41093
- const f0 = o0.viewer.buffer.slice(o0.offset.value, o0.offset.value + o0.size), v0 = new Uint8Array(Xi(f0)), r0 = new Uint8Array(v0.length);
41094
- return J0(v0), g0(v0, r0), new DataView(r0.buffer);
41092
+ const f0 = o0.viewer.buffer.slice(o0.offset.value, o0.offset.value + o0.size), v0 = new Uint8Array(Xi(f0)), c0 = new Uint8Array(v0.length);
41093
+ return J0(v0), g0(v0, c0), new DataView(c0.buffer);
41095
41094
  }
41096
41095
  function $0(o0) {
41097
- const f0 = o0.array.slice(o0.offset.value, o0.offset.value + o0.size), v0 = unzlibSync(f0), r0 = new Uint8Array(v0.length);
41098
- return J0(v0), g0(v0, r0), new DataView(r0.buffer);
41096
+ const f0 = o0.array.slice(o0.offset.value, o0.offset.value + o0.size), v0 = unzlibSync(f0), c0 = new Uint8Array(v0.length);
41097
+ return J0(v0), g0(v0, c0), new DataView(c0.buffer);
41099
41098
  }
41100
41099
  function Q0(o0) {
41101
- const f0 = o0.viewer, v0 = { value: o0.offset.value }, r0 = new Uint16Array(o0.columns * o0.lines * (o0.inputChannels.length * o0.type)), R0 = new Uint8Array(8192);
41100
+ const f0 = o0.viewer, v0 = { value: o0.offset.value }, c0 = new Uint16Array(o0.columns * o0.lines * (o0.inputChannels.length * o0.type)), R0 = new Uint8Array(8192);
41102
41101
  let S0 = 0;
41103
41102
  const T0 = new Array(o0.inputChannels.length);
41104
41103
  for (let di = 0, hi = o0.inputChannels.length; di < hi; di++)
@@ -41110,12 +41109,12 @@ class EXRLoader extends DataTextureLoader {
41110
41109
  for (let di = 0; di < F0 - L0 + 1; di++)
41111
41110
  R0[di + L0] = Hi(f0, v0);
41112
41111
  const k0 = new Uint16Array(65536), K0 = n0(R0, k0), O0 = vi(f0, v0);
41113
- Si(o0.array, f0, v0, O0, r0, S0);
41112
+ Si(o0.array, f0, v0, O0, c0, S0);
41114
41113
  for (let di = 0; di < o0.inputChannels.length; ++di) {
41115
41114
  const hi = T0[di];
41116
41115
  for (let yi = 0; yi < T0[di].size; ++yi)
41117
41116
  xi(
41118
- r0,
41117
+ c0,
41119
41118
  hi.start + yi,
41120
41119
  hi.nx,
41121
41120
  hi.size,
@@ -41124,18 +41123,18 @@ class EXRLoader extends DataTextureLoader {
41124
41123
  K0
41125
41124
  );
41126
41125
  }
41127
- ti(k0, r0, S0);
41126
+ ti(k0, c0, S0);
41128
41127
  let li = 0;
41129
- const oi = new Uint8Array(r0.buffer.byteLength);
41128
+ const oi = new Uint8Array(c0.buffer.byteLength);
41130
41129
  for (let di = 0; di < o0.lines; di++)
41131
41130
  for (let hi = 0; hi < o0.inputChannels.length; hi++) {
41132
- const yi = T0[hi], Yi = yi.nx * yi.size, Ni = new Uint8Array(r0.buffer, yi.end * 2, Yi * 2);
41131
+ const yi = T0[hi], Yi = yi.nx * yi.size, Ni = new Uint8Array(c0.buffer, yi.end * 2, Yi * 2);
41133
41132
  oi.set(Ni, li), li += Yi * 2, yi.end += Yi;
41134
41133
  }
41135
41134
  return new DataView(oi.buffer);
41136
41135
  }
41137
41136
  function Vi(o0) {
41138
- const f0 = o0.array.slice(o0.offset.value, o0.offset.value + o0.size), v0 = unzlibSync(f0), r0 = o0.inputChannels.length * o0.lines * o0.columns * o0.totalBytes, R0 = new ArrayBuffer(r0), S0 = new DataView(R0);
41137
+ const f0 = o0.array.slice(o0.offset.value, o0.offset.value + o0.size), v0 = unzlibSync(f0), c0 = o0.inputChannels.length * o0.lines * o0.columns * o0.totalBytes, R0 = new ArrayBuffer(c0), S0 = new DataView(R0);
41139
41138
  let T0 = 0, L0 = 0;
41140
41139
  const F0 = new Array(4);
41141
41140
  for (let k0 = 0; k0 < o0.lines; k0++)
@@ -41161,7 +41160,7 @@ class EXRLoader extends DataTextureLoader {
41161
41160
  return S0;
41162
41161
  }
41163
41162
  function Gi(o0) {
41164
- const f0 = o0.viewer, v0 = { value: o0.offset.value }, r0 = new Uint8Array(o0.columns * o0.lines * (o0.inputChannels.length * o0.type * 2)), R0 = {
41163
+ const f0 = o0.viewer, v0 = { value: o0.offset.value }, c0 = new Uint8Array(o0.columns * o0.lines * (o0.inputChannels.length * o0.type * 2)), R0 = {
41165
41164
  version: Ti(f0, v0),
41166
41165
  unknownUncompressedSize: Ti(f0, v0),
41167
41166
  unknownCompressedSize: Ti(f0, v0),
@@ -41232,7 +41231,7 @@ class EXRLoader extends DataTextureLoader {
41232
41231
  for (let hi = 0; hi < o0.lines; ++hi)
41233
41232
  for (let yi = 0; yi < F0.length; ++yi)
41234
41233
  di[yi].push(oi), oi += F0[yi].width * o0.type * 2;
41235
- si(k0, di, F0, K0, O0, r0);
41234
+ si(k0, di, F0, K0, O0, c0);
41236
41235
  for (let hi = 0; hi < F0.length; ++hi) {
41237
41236
  const yi = F0[hi];
41238
41237
  if (!yi.decoded)
@@ -41243,7 +41242,7 @@ class EXRLoader extends DataTextureLoader {
41243
41242
  let Li = di[hi][Yi];
41244
41243
  for (let Ki = 0; Ki < yi.width; ++Ki) {
41245
41244
  for (let Ii = 0; Ii < 2 * yi.type; ++Ii)
41246
- r0[Li++] = li[Ni + Ii * yi.width * yi.height];
41245
+ c0[Li++] = li[Ni + Ii * yi.width * yi.height];
41247
41246
  Ni++;
41248
41247
  }
41249
41248
  Yi++;
@@ -41254,31 +41253,31 @@ class EXRLoader extends DataTextureLoader {
41254
41253
  throw new Error("EXRLoader.parse: unsupported channel compression");
41255
41254
  }
41256
41255
  }
41257
- return new DataView(r0.buffer);
41256
+ return new DataView(c0.buffer);
41258
41257
  }
41259
41258
  function Zi(o0, f0) {
41260
41259
  const v0 = new Uint8Array(o0);
41261
- let r0 = 0;
41262
- for (; v0[f0.value + r0] != 0; )
41263
- r0 += 1;
41260
+ let c0 = 0;
41261
+ for (; v0[f0.value + c0] != 0; )
41262
+ c0 += 1;
41264
41263
  const R0 = new TextDecoder().decode(
41265
- v0.slice(f0.value, f0.value + r0)
41264
+ v0.slice(f0.value, f0.value + c0)
41266
41265
  );
41267
- return f0.value = f0.value + r0 + 1, R0;
41266
+ return f0.value = f0.value + c0 + 1, R0;
41268
41267
  }
41269
41268
  function Ji(o0, f0, v0) {
41270
- const r0 = new TextDecoder().decode(
41269
+ const c0 = new TextDecoder().decode(
41271
41270
  new Uint8Array(o0).slice(f0.value, f0.value + v0)
41272
41271
  );
41273
- return f0.value = f0.value + v0, r0;
41272
+ return f0.value = f0.value + v0, c0;
41274
41273
  }
41275
41274
  function mi(o0, f0) {
41276
- const v0 = Ci(o0, f0), r0 = vi(o0, f0);
41277
- return [v0, r0];
41275
+ const v0 = Ci(o0, f0), c0 = vi(o0, f0);
41276
+ return [v0, c0];
41278
41277
  }
41279
41278
  function Ri(o0, f0) {
41280
- const v0 = vi(o0, f0), r0 = vi(o0, f0);
41281
- return [v0, r0];
41279
+ const v0 = vi(o0, f0), c0 = vi(o0, f0);
41280
+ return [v0, c0];
41282
41281
  }
41283
41282
  function Ci(o0, f0) {
41284
41283
  const v0 = o0.getInt32(f0.value, !0);
@@ -41318,9 +41317,9 @@ class EXRLoader extends DataTextureLoader {
41318
41317
  function ri(o0, f0) {
41319
41318
  return _0(D0(o0, f0));
41320
41319
  }
41321
- function gi(o0, f0, v0, r0) {
41320
+ function gi(o0, f0, v0, c0) {
41322
41321
  const R0 = v0.value, S0 = [];
41323
- for (; v0.value < R0 + r0 - 1; ) {
41322
+ for (; v0.value < R0 + c0 - 1; ) {
41324
41323
  const T0 = Zi(f0, v0), L0 = Ci(o0, v0), F0 = Hi(o0, v0);
41325
41324
  v0.value += 3;
41326
41325
  const k0 = Ci(o0, v0), K0 = Ci(o0, v0);
@@ -41335,8 +41334,8 @@ class EXRLoader extends DataTextureLoader {
41335
41334
  return v0.value += 1, S0;
41336
41335
  }
41337
41336
  function Wi(o0, f0) {
41338
- const v0 = wi(o0, f0), r0 = wi(o0, f0), R0 = wi(o0, f0), S0 = wi(o0, f0), T0 = wi(o0, f0), L0 = wi(o0, f0), F0 = wi(o0, f0), k0 = wi(o0, f0);
41339
- return { redX: v0, redY: r0, greenX: R0, greenY: S0, blueX: T0, blueY: L0, whiteX: F0, whiteY: k0 };
41337
+ const v0 = wi(o0, f0), c0 = wi(o0, f0), R0 = wi(o0, f0), S0 = wi(o0, f0), T0 = wi(o0, f0), L0 = wi(o0, f0), F0 = wi(o0, f0), k0 = wi(o0, f0);
41338
+ return { redX: v0, redY: c0, greenX: R0, greenY: S0, blueX: T0, blueY: L0, whiteX: F0, whiteY: k0 };
41340
41339
  }
41341
41340
  function ki(o0, f0) {
41342
41341
  const v0 = [
@@ -41350,34 +41349,34 @@ class EXRLoader extends DataTextureLoader {
41350
41349
  "B44A_COMPRESSION",
41351
41350
  "DWAA_COMPRESSION",
41352
41351
  "DWAB_COMPRESSION"
41353
- ], r0 = Hi(o0, f0);
41354
- return v0[r0];
41352
+ ], c0 = Hi(o0, f0);
41353
+ return v0[c0];
41355
41354
  }
41356
41355
  function Ai(o0, f0) {
41357
- const v0 = Ci(o0, f0), r0 = Ci(o0, f0), R0 = Ci(o0, f0), S0 = Ci(o0, f0);
41358
- return { xMin: v0, yMin: r0, xMax: R0, yMax: S0 };
41356
+ const v0 = Ci(o0, f0), c0 = Ci(o0, f0), R0 = Ci(o0, f0), S0 = Ci(o0, f0);
41357
+ return { xMin: v0, yMin: c0, xMax: R0, yMax: S0 };
41359
41358
  }
41360
41359
  function Oi(o0, f0) {
41361
41360
  const v0 = [
41362
41361
  "INCREASING_Y",
41363
41362
  "DECREASING_Y",
41364
41363
  "RANDOM_Y"
41365
- ], r0 = Hi(o0, f0);
41366
- return v0[r0];
41364
+ ], c0 = Hi(o0, f0);
41365
+ return v0[c0];
41367
41366
  }
41368
41367
  function Bi(o0, f0) {
41369
41368
  const v0 = [
41370
41369
  "ENVMAP_LATLONG",
41371
41370
  "ENVMAP_CUBE"
41372
- ], r0 = Hi(o0, f0);
41373
- return v0[r0];
41371
+ ], c0 = Hi(o0, f0);
41372
+ return v0[c0];
41374
41373
  }
41375
41374
  function qi(o0, f0) {
41376
41375
  const v0 = [
41377
41376
  "ONE_LEVEL",
41378
41377
  "MIPMAP_LEVELS",
41379
41378
  "RIPMAP_LEVELS"
41380
- ], r0 = [
41379
+ ], c0 = [
41381
41380
  "ROUND_DOWN",
41382
41381
  "ROUND_UP"
41383
41382
  ], R0 = vi(o0, f0), S0 = vi(o0, f0), T0 = Hi(o0, f0);
@@ -41385,47 +41384,47 @@ class EXRLoader extends DataTextureLoader {
41385
41384
  xSize: R0,
41386
41385
  ySize: S0,
41387
41386
  levelMode: v0[T0 & 15],
41388
- roundingMode: r0[T0 >> 4]
41387
+ roundingMode: c0[T0 >> 4]
41389
41388
  };
41390
41389
  }
41391
41390
  function e1(o0, f0) {
41392
- const v0 = wi(o0, f0), r0 = wi(o0, f0);
41393
- return [v0, r0];
41391
+ const v0 = wi(o0, f0), c0 = wi(o0, f0);
41392
+ return [v0, c0];
41394
41393
  }
41395
41394
  function G1(o0, f0) {
41396
- const v0 = wi(o0, f0), r0 = wi(o0, f0), R0 = wi(o0, f0);
41397
- return [v0, r0, R0];
41395
+ const v0 = wi(o0, f0), c0 = wi(o0, f0), R0 = wi(o0, f0);
41396
+ return [v0, c0, R0];
41398
41397
  }
41399
- function V1(o0, f0, v0, r0, R0) {
41400
- if (r0 === "string" || r0 === "stringvector" || r0 === "iccProfile")
41398
+ function V1(o0, f0, v0, c0, R0) {
41399
+ if (c0 === "string" || c0 === "stringvector" || c0 === "iccProfile")
41401
41400
  return Ji(f0, v0, R0);
41402
- if (r0 === "chlist")
41401
+ if (c0 === "chlist")
41403
41402
  return gi(o0, f0, v0, R0);
41404
- if (r0 === "chromaticities")
41403
+ if (c0 === "chromaticities")
41405
41404
  return Wi(o0, v0);
41406
- if (r0 === "compression")
41405
+ if (c0 === "compression")
41407
41406
  return ki(o0, v0);
41408
- if (r0 === "box2i")
41407
+ if (c0 === "box2i")
41409
41408
  return Ai(o0, v0);
41410
- if (r0 === "envmap")
41409
+ if (c0 === "envmap")
41411
41410
  return Bi(o0, v0);
41412
- if (r0 === "tiledesc")
41411
+ if (c0 === "tiledesc")
41413
41412
  return qi(o0, v0);
41414
- if (r0 === "lineOrder")
41413
+ if (c0 === "lineOrder")
41415
41414
  return Oi(o0, v0);
41416
- if (r0 === "float")
41415
+ if (c0 === "float")
41417
41416
  return wi(o0, v0);
41418
- if (r0 === "v2f")
41417
+ if (c0 === "v2f")
41419
41418
  return e1(o0, v0);
41420
- if (r0 === "v3f")
41419
+ if (c0 === "v3f")
41421
41420
  return G1(o0, v0);
41422
- if (r0 === "int")
41421
+ if (c0 === "int")
41423
41422
  return Ci(o0, v0);
41424
- if (r0 === "rational")
41423
+ if (c0 === "rational")
41425
41424
  return mi(o0, v0);
41426
- if (r0 === "timecode")
41425
+ if (c0 === "timecode")
41427
41426
  return Ri(o0, v0);
41428
- if (r0 === "preview")
41427
+ if (c0 === "preview")
41429
41428
  return v0.value += R0, "skipped";
41430
41429
  v0.value += R0;
41431
41430
  }
@@ -41434,25 +41433,25 @@ class EXRLoader extends DataTextureLoader {
41434
41433
  return f0 == "ROUND_DOWN" ? Math.floor(v0) : Math.ceil(v0);
41435
41434
  }
41436
41435
  function h1(o0, f0, v0) {
41437
- let r0 = 0;
41436
+ let c0 = 0;
41438
41437
  switch (o0.levelMode) {
41439
41438
  case "ONE_LEVEL":
41440
- r0 = 1;
41439
+ c0 = 1;
41441
41440
  break;
41442
41441
  case "MIPMAP_LEVELS":
41443
- r0 = t1(Math.max(f0, v0), o0.roundingMode) + 1;
41442
+ c0 = t1(Math.max(f0, v0), o0.roundingMode) + 1;
41444
41443
  break;
41445
41444
  case "RIPMAP_LEVELS":
41446
41445
  throw new Error("THREE.EXRLoader: RIPMAP_LEVELS tiles currently unsupported.");
41447
41446
  }
41448
- return r0;
41447
+ return c0;
41449
41448
  }
41450
- function u1(o0, f0, v0, r0) {
41449
+ function u1(o0, f0, v0, c0) {
41451
41450
  const R0 = new Array(o0);
41452
41451
  for (let S0 = 0; S0 < o0; S0++) {
41453
41452
  const T0 = 1 << S0;
41454
41453
  let L0 = f0 / T0 | 0;
41455
- r0 == "ROUND_UP" && L0 * T0 < f0 && (L0 += 1);
41454
+ c0 == "ROUND_UP" && L0 * T0 < f0 && (L0 += 1);
41456
41455
  const F0 = Math.max(L0, 1);
41457
41456
  R0[S0] = (F0 + v0 - 1) / v0 | 0;
41458
41457
  }
@@ -41460,7 +41459,7 @@ class EXRLoader extends DataTextureLoader {
41460
41459
  }
41461
41460
  function f1() {
41462
41461
  const o0 = this, f0 = o0.offset, v0 = { value: 0 };
41463
- for (let r0 = 0; r0 < o0.tileCount; r0++) {
41462
+ for (let c0 = 0; c0 < o0.tileCount; c0++) {
41464
41463
  const R0 = Ci(o0.viewer, f0), S0 = Ci(o0.viewer, f0);
41465
41464
  f0.value += 8, o0.size = vi(o0.viewer, f0);
41466
41465
  const T0 = R0 * o0.blockWidth, L0 = S0 * o0.blockHeight;
@@ -41484,13 +41483,13 @@ class EXRLoader extends DataTextureLoader {
41484
41483
  }
41485
41484
  function o1() {
41486
41485
  const o0 = this, f0 = o0.offset, v0 = { value: 0 };
41487
- for (let r0 = 0; r0 < o0.height / o0.blockHeight; r0++) {
41486
+ for (let c0 = 0; c0 < o0.height / o0.blockHeight; c0++) {
41488
41487
  const R0 = Ci(o0.viewer, f0) - i1.dataWindow.yMin;
41489
41488
  o0.size = vi(o0.viewer, f0), o0.lines = R0 + o0.blockHeight > o0.height ? o0.height - R0 : o0.blockHeight;
41490
41489
  const S0 = o0.columns * o0.totalBytes, L0 = o0.size < o0.lines * S0 ? o0.uncompress(o0) : N0(o0);
41491
41490
  f0.value += o0.size;
41492
41491
  for (let F0 = 0; F0 < o0.blockHeight; F0++) {
41493
- const k0 = r0 * o0.blockHeight, K0 = F0 + o0.scanOrder(k0);
41492
+ const k0 = c0 * o0.blockHeight, K0 = F0 + o0.scanOrder(k0);
41494
41493
  if (K0 >= o0.height) continue;
41495
41494
  const O0 = F0 * S0, li = (o0.height - 1 - K0) * o0.outLineWidth;
41496
41495
  for (let oi = 0; oi < o0.inputChannels.length; oi++) {
@@ -41507,12 +41506,12 @@ class EXRLoader extends DataTextureLoader {
41507
41506
  }
41508
41507
  }
41509
41508
  function g1(o0, f0, v0) {
41510
- const r0 = {};
41509
+ const c0 = {};
41511
41510
  if (o0.getUint32(0, !0) != 20000630)
41512
41511
  throw new Error("THREE.EXRLoader: Provided file doesn't appear to be in OpenEXR format.");
41513
- r0.version = o0.getUint8(4);
41512
+ c0.version = o0.getUint8(4);
41514
41513
  const R0 = o0.getUint8(5);
41515
- r0.spec = {
41514
+ c0.spec = {
41516
41515
  singleTile: !!(R0 & 2),
41517
41516
  longName: !!(R0 & 4),
41518
41517
  deepFormat: !!(R0 & 8),
@@ -41525,19 +41524,19 @@ class EXRLoader extends DataTextureLoader {
41525
41524
  S0 = !1;
41526
41525
  else {
41527
41526
  const L0 = Zi(f0, v0), F0 = vi(o0, v0), k0 = V1(o0, f0, v0, L0, F0);
41528
- k0 === void 0 ? console.warn(`THREE.EXRLoader: Skipped unknown header attribute type '${L0}'.`) : r0[T0] = k0;
41527
+ k0 === void 0 ? console.warn(`THREE.EXRLoader: Skipped unknown header attribute type '${L0}'.`) : c0[T0] = k0;
41529
41528
  }
41530
41529
  }
41531
41530
  if (R0 & -7)
41532
- throw console.error("THREE.EXRHeader:", r0), new Error("THREE.EXRLoader: Provided file is currently unsupported.");
41533
- return r0;
41531
+ throw console.error("THREE.EXRHeader:", c0), new Error("THREE.EXRLoader: Provided file is currently unsupported.");
41532
+ return c0;
41534
41533
  }
41535
- function r1(o0, f0, v0, r0, R0) {
41534
+ function r1(o0, f0, v0, c0, R0) {
41536
41535
  const S0 = {
41537
41536
  size: 0,
41538
41537
  viewer: f0,
41539
41538
  array: v0,
41540
- offset: r0,
41539
+ offset: c0,
41541
41540
  width: o0.dataWindow.xMax - o0.dataWindow.xMin + 1,
41542
41541
  height: o0.dataWindow.yMax - o0.dataWindow.yMin + 1,
41543
41542
  inputChannels: o0.channels,
@@ -41639,13 +41638,13 @@ class EXRLoader extends DataTextureLoader {
41639
41638
  for (let oi = 0; oi < K0; oi++)
41640
41639
  for (let di = 0; di < li[oi]; di++)
41641
41640
  for (let hi = 0; hi < O0[oi]; hi++)
41642
- Ti(f0, r0);
41641
+ Ti(f0, c0);
41643
41642
  S0.decode = f1.bind(S0);
41644
41643
  } else {
41645
41644
  S0.blockWidth = S0.width;
41646
41645
  const K0 = Math.ceil(S0.height / S0.blockHeight);
41647
41646
  for (let O0 = 0; O0 < K0; O0++)
41648
- Ti(f0, r0);
41647
+ Ti(f0, c0);
41649
41648
  S0.decode = o1.bind(S0);
41650
41649
  }
41651
41650
  return S0;
@@ -41860,9 +41859,9 @@ if (typeof document != "undefined") {
41860
41859
  Yt < 0 ? Yt = 0 : Yt > 1 && (Yt = 1);
41861
41860
  var vt = Ke(Yt, Zt);
41862
41861
  st = st > 1 ? 1 : st;
41863
- var Tt = Ke(st, Zt), Jt, $t = qe.length, e0 = 1 - vt, t0 = 1 - Tt, i0 = e0 * e0 * e0, n0 = vt * e0 * e0 * 3, s0 = vt * vt * e0 * 3, d0 = vt * vt * vt, u0 = e0 * e0 * t0, G0 = vt * e0 * t0 + e0 * vt * t0 + e0 * e0 * Tt, h0 = vt * vt * t0 + e0 * vt * Tt + vt * e0 * Tt, l0 = vt * vt * Tt, c0 = e0 * t0 * t0, a0 = vt * t0 * t0 + e0 * Tt * t0 + e0 * t0 * Tt, m0 = vt * Tt * t0 + e0 * Tt * Tt + vt * t0 * Tt, I0 = vt * Tt * Tt, C0 = t0 * t0 * t0, B0 = Tt * t0 * t0 + t0 * Tt * t0 + t0 * t0 * Tt, ci = Tt * Tt * t0 + t0 * Tt * Tt + Tt * t0 * Tt, M0 = Tt * Tt * Tt;
41862
+ var Tt = Ke(st, Zt), Jt, $t = qe.length, e0 = 1 - vt, t0 = 1 - Tt, i0 = e0 * e0 * e0, n0 = vt * e0 * e0 * 3, s0 = vt * vt * e0 * 3, d0 = vt * vt * vt, u0 = e0 * e0 * t0, G0 = vt * e0 * t0 + e0 * vt * t0 + e0 * e0 * Tt, h0 = vt * vt * t0 + e0 * vt * Tt + vt * e0 * Tt, l0 = vt * vt * Tt, r0 = e0 * t0 * t0, a0 = vt * t0 * t0 + e0 * Tt * t0 + e0 * t0 * Tt, m0 = vt * Tt * t0 + e0 * Tt * Tt + vt * t0 * Tt, I0 = vt * Tt * Tt, C0 = t0 * t0 * t0, B0 = Tt * t0 * t0 + t0 * Tt * t0 + t0 * t0 * Tt, ci = Tt * Tt * t0 + t0 * Tt * Tt + Tt * t0 * Tt, M0 = Tt * Tt * Tt;
41864
41863
  for (Jt = 0; Jt < $t; Jt += 1)
41865
- _e[Jt * 4] = c.round((i0 * qe[Jt] + n0 * dt[Jt] + s0 * Wt[Jt] + d0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 1] = c.round((u0 * qe[Jt] + G0 * dt[Jt] + h0 * Wt[Jt] + l0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 2] = c.round((c0 * qe[Jt] + a0 * dt[Jt] + m0 * Wt[Jt] + I0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 3] = c.round((C0 * qe[Jt] + B0 * dt[Jt] + ci * Wt[Jt] + M0 * rt[Jt]) * 1e3) / 1e3;
41864
+ _e[Jt * 4] = c.round((i0 * qe[Jt] + n0 * dt[Jt] + s0 * Wt[Jt] + d0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 1] = c.round((u0 * qe[Jt] + G0 * dt[Jt] + h0 * Wt[Jt] + l0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 2] = c.round((r0 * qe[Jt] + a0 * dt[Jt] + m0 * Wt[Jt] + I0 * rt[Jt]) * 1e3) / 1e3, _e[Jt * 4 + 3] = c.round((C0 * qe[Jt] + B0 * dt[Jt] + ci * Wt[Jt] + M0 * rt[Jt]) * 1e3) / 1e3;
41866
41865
  return _e;
41867
41866
  }
41868
41867
  return {
@@ -42866,11 +42865,11 @@ if (typeof document != "undefined") {
42866
42865
  r || (r = Xe(function(rt) {
42867
42866
  function dt() {
42868
42867
  function Yt(h0, l0) {
42869
- var c0, a0, m0 = h0.length, I0, C0, B0, ci;
42868
+ var r0, a0, m0 = h0.length, I0, C0, B0, ci;
42870
42869
  for (a0 = 0; a0 < m0; a0 += 1)
42871
- if (c0 = h0[a0], "ks" in c0 && !c0.completed) {
42872
- if (c0.completed = !0, c0.tt && (h0[a0 - 1].td = c0.tt), c0.hasMask) {
42873
- var M0 = c0.masksProperties;
42870
+ if (r0 = h0[a0], "ks" in r0 && !r0.completed) {
42871
+ if (r0.completed = !0, r0.tt && (h0[a0 - 1].td = r0.tt), r0.hasMask) {
42872
+ var M0 = r0.masksProperties;
42874
42873
  for (C0 = M0.length, I0 = 0; I0 < C0; I0 += 1)
42875
42874
  if (M0[I0].pt.k.i)
42876
42875
  Jt(M0[I0].pt.k);
@@ -42878,31 +42877,31 @@ if (typeof document != "undefined") {
42878
42877
  for (ci = M0[I0].pt.k.length, B0 = 0; B0 < ci; B0 += 1)
42879
42878
  M0[I0].pt.k[B0].s && Jt(M0[I0].pt.k[B0].s[0]), M0[I0].pt.k[B0].e && Jt(M0[I0].pt.k[B0].e[0]);
42880
42879
  }
42881
- c0.ty === 0 ? (c0.layers = vt(c0.refId, l0), Yt(c0.layers, l0)) : c0.ty === 4 ? Tt(c0.shapes) : c0.ty === 5 && u0(c0);
42880
+ r0.ty === 0 ? (r0.layers = vt(r0.refId, l0), Yt(r0.layers, l0)) : r0.ty === 4 ? Tt(r0.shapes) : r0.ty === 5 && u0(r0);
42882
42881
  }
42883
42882
  }
42884
42883
  function st(h0, l0) {
42885
42884
  if (h0) {
42886
- var c0 = 0, a0 = h0.length;
42887
- for (c0 = 0; c0 < a0; c0 += 1)
42888
- h0[c0].t === 1 && (h0[c0].data.layers = vt(h0[c0].data.refId, l0), Yt(h0[c0].data.layers, l0));
42885
+ var r0 = 0, a0 = h0.length;
42886
+ for (r0 = 0; r0 < a0; r0 += 1)
42887
+ h0[r0].t === 1 && (h0[r0].data.layers = vt(h0[r0].data.refId, l0), Yt(h0[r0].data.layers, l0));
42889
42888
  }
42890
42889
  }
42891
42890
  function Zt(h0, l0) {
42892
- for (var c0 = 0, a0 = l0.length; c0 < a0; ) {
42893
- if (l0[c0].id === h0)
42894
- return l0[c0];
42895
- c0 += 1;
42891
+ for (var r0 = 0, a0 = l0.length; r0 < a0; ) {
42892
+ if (l0[r0].id === h0)
42893
+ return l0[r0];
42894
+ r0 += 1;
42896
42895
  }
42897
42896
  return null;
42898
42897
  }
42899
42898
  function vt(h0, l0) {
42900
- var c0 = Zt(h0, l0);
42901
- return c0 ? c0.layers.__used ? JSON.parse(JSON.stringify(c0.layers)) : (c0.layers.__used = !0, c0.layers) : null;
42899
+ var r0 = Zt(h0, l0);
42900
+ return r0 ? r0.layers.__used ? JSON.parse(JSON.stringify(r0.layers)) : (r0.layers.__used = !0, r0.layers) : null;
42902
42901
  }
42903
42902
  function Tt(h0) {
42904
- var l0, c0 = h0.length, a0, m0;
42905
- for (l0 = c0 - 1; l0 >= 0; l0 -= 1)
42903
+ var l0, r0 = h0.length, a0, m0;
42904
+ for (l0 = r0 - 1; l0 >= 0; l0 -= 1)
42906
42905
  if (h0[l0].ty === "sh")
42907
42906
  if (h0[l0].ks.k.i)
42908
42907
  Jt(h0[l0].ks.k);
@@ -42912,13 +42911,13 @@ if (typeof document != "undefined") {
42912
42911
  else h0[l0].ty === "gr" && Tt(h0[l0].it);
42913
42912
  }
42914
42913
  function Jt(h0) {
42915
- var l0, c0 = h0.i.length;
42916
- for (l0 = 0; l0 < c0; l0 += 1)
42914
+ var l0, r0 = h0.i.length;
42915
+ for (l0 = 0; l0 < r0; l0 += 1)
42917
42916
  h0.i[l0][0] += h0.v[l0][0], h0.i[l0][1] += h0.v[l0][1], h0.o[l0][0] += h0.v[l0][0], h0.o[l0][1] += h0.v[l0][1];
42918
42917
  }
42919
42918
  function $t(h0, l0) {
42920
- var c0 = l0 ? l0.split(".") : [100, 100, 100];
42921
- return h0[0] > c0[0] ? !0 : c0[0] > h0[0] ? !1 : h0[1] > c0[1] ? !0 : c0[1] > h0[1] ? !1 : h0[2] > c0[2] ? !0 : c0[2] > h0[2] ? !1 : null;
42919
+ var r0 = l0 ? l0.split(".") : [100, 100, 100];
42920
+ return h0[0] > r0[0] ? !0 : r0[0] > h0[0] ? !1 : h0[1] > r0[1] ? !0 : r0[1] > h0[1] ? !1 : h0[2] > r0[2] ? !0 : r0[2] > h0[2] ? !1 : null;
42922
42921
  }
42923
42922
  var e0 = /* @__PURE__ */ function() {
42924
42923
  var h0 = [4, 4, 14];
@@ -42933,32 +42932,32 @@ if (typeof document != "undefined") {
42933
42932
  ]
42934
42933
  };
42935
42934
  }
42936
- function c0(a0) {
42935
+ function r0(a0) {
42937
42936
  var m0, I0 = a0.length;
42938
42937
  for (m0 = 0; m0 < I0; m0 += 1)
42939
42938
  a0[m0].ty === 5 && l0(a0[m0]);
42940
42939
  }
42941
42940
  return function(a0) {
42942
- if ($t(h0, a0.v) && (c0(a0.layers), a0.assets)) {
42941
+ if ($t(h0, a0.v) && (r0(a0.layers), a0.assets)) {
42943
42942
  var m0, I0 = a0.assets.length;
42944
42943
  for (m0 = 0; m0 < I0; m0 += 1)
42945
- a0.assets[m0].layers && c0(a0.assets[m0].layers);
42944
+ a0.assets[m0].layers && r0(a0.assets[m0].layers);
42946
42945
  }
42947
42946
  };
42948
42947
  }(), t0 = /* @__PURE__ */ function() {
42949
42948
  var h0 = [4, 7, 99];
42950
42949
  return function(l0) {
42951
42950
  if (l0.chars && !$t(h0, l0.v)) {
42952
- var c0, a0 = l0.chars.length;
42953
- for (c0 = 0; c0 < a0; c0 += 1) {
42954
- var m0 = l0.chars[c0];
42951
+ var r0, a0 = l0.chars.length;
42952
+ for (r0 = 0; r0 < a0; r0 += 1) {
42953
+ var m0 = l0.chars[r0];
42955
42954
  m0.data && m0.data.shapes && (Tt(m0.data.shapes), m0.data.ip = 0, m0.data.op = 99999, m0.data.st = 0, m0.data.sr = 1, m0.data.ks = {
42956
42955
  p: { k: [0, 0], a: 0 },
42957
42956
  s: { k: [100, 100], a: 0 },
42958
42957
  a: { k: [0, 0], a: 0 },
42959
42958
  r: { k: 0, a: 0 },
42960
42959
  o: { k: 100, a: 0 }
42961
- }, l0.chars[c0].t || (m0.data.shapes.push(
42960
+ }, l0.chars[r0].t || (m0.data.shapes.push(
42962
42961
  {
42963
42962
  ty: "no"
42964
42963
  }
@@ -42992,16 +42991,16 @@ if (typeof document != "undefined") {
42992
42991
  k: m0.r
42993
42992
  });
42994
42993
  }
42995
- function c0(a0) {
42994
+ function r0(a0) {
42996
42995
  var m0, I0 = a0.length;
42997
42996
  for (m0 = 0; m0 < I0; m0 += 1)
42998
42997
  a0[m0].ty === 5 && l0(a0[m0]);
42999
42998
  }
43000
42999
  return function(a0) {
43001
- if ($t(h0, a0.v) && (c0(a0.layers), a0.assets)) {
43000
+ if ($t(h0, a0.v) && (r0(a0.layers), a0.assets)) {
43002
43001
  var m0, I0 = a0.assets.length;
43003
43002
  for (m0 = 0; m0 < I0; m0 += 1)
43004
- a0.assets[m0].layers && c0(a0.assets[m0].layers);
43003
+ a0.assets[m0].layers && r0(a0.assets[m0].layers);
43005
43004
  }
43006
43005
  };
43007
43006
  }(), n0 = /* @__PURE__ */ function() {
@@ -43018,16 +43017,16 @@ if (typeof document != "undefined") {
43018
43017
  else
43019
43018
  a0[m0].c.k[0] /= 255, a0[m0].c.k[1] /= 255, a0[m0].c.k[2] /= 255, a0[m0].c.k[3] /= 255;
43020
43019
  }
43021
- function c0(a0) {
43020
+ function r0(a0) {
43022
43021
  var m0, I0 = a0.length;
43023
43022
  for (m0 = 0; m0 < I0; m0 += 1)
43024
43023
  a0[m0].ty === 4 && l0(a0[m0].shapes);
43025
43024
  }
43026
43025
  return function(a0) {
43027
- if ($t(h0, a0.v) && (c0(a0.layers), a0.assets)) {
43026
+ if ($t(h0, a0.v) && (r0(a0.layers), a0.assets)) {
43028
43027
  var m0, I0 = a0.assets.length;
43029
43028
  for (m0 = 0; m0 < I0; m0 += 1)
43030
- a0.assets[m0].layers && c0(a0.assets[m0].layers);
43029
+ a0.assets[m0].layers && r0(a0.assets[m0].layers);
43031
43030
  }
43032
43031
  };
43033
43032
  }(), s0 = /* @__PURE__ */ function() {
@@ -43043,7 +43042,7 @@ if (typeof document != "undefined") {
43043
43042
  a0[m0].ks.k[C0].s && (a0[m0].ks.k[C0].s[0].c = a0[m0].closed), a0[m0].ks.k[C0].e && (a0[m0].ks.k[C0].e[0].c = a0[m0].closed);
43044
43043
  else a0[m0].ty === "gr" && l0(a0[m0].it);
43045
43044
  }
43046
- function c0(a0) {
43045
+ function r0(a0) {
43047
43046
  var m0, I0, C0 = a0.length, B0, ci, M0, A0;
43048
43047
  for (I0 = 0; I0 < C0; I0 += 1) {
43049
43048
  if (m0 = a0[I0], m0.hasMask) {
@@ -43059,10 +43058,10 @@ if (typeof document != "undefined") {
43059
43058
  }
43060
43059
  }
43061
43060
  return function(a0) {
43062
- if ($t(h0, a0.v) && (c0(a0.layers), a0.assets)) {
43061
+ if ($t(h0, a0.v) && (r0(a0.layers), a0.assets)) {
43063
43062
  var m0, I0 = a0.assets.length;
43064
43063
  for (m0 = 0; m0 < I0; m0 += 1)
43065
- a0.assets[m0].layers && c0(a0.assets[m0].layers);
43064
+ a0.assets[m0].layers && r0(a0.assets[m0].layers);
43066
43065
  }
43067
43066
  };
43068
43067
  }();
@@ -43618,10 +43617,10 @@ if (typeof document != "undefined") {
43618
43617
  const animationManager = function() {
43619
43618
  var c = {}, e = [], s = 0, r = 0, T = 0, de = !0, Xe = !1;
43620
43619
  function Je(l0) {
43621
- for (var c0 = 0, a0 = l0.target; c0 < r; )
43622
- e[c0].animation === a0 && (e.splice(c0, 1), c0 -= 1, r -= 1, a0.isPaused || $e()), c0 += 1;
43620
+ for (var r0 = 0, a0 = l0.target; r0 < r; )
43621
+ e[r0].animation === a0 && (e.splice(r0, 1), r0 -= 1, r -= 1, a0.isPaused || $e()), r0 += 1;
43623
43622
  }
43624
- function Ke(l0, c0) {
43623
+ function Ke(l0, r0) {
43625
43624
  if (!l0)
43626
43625
  return null;
43627
43626
  for (var a0 = 0; a0 < r; ) {
@@ -43630,11 +43629,11 @@ if (typeof document != "undefined") {
43630
43629
  a0 += 1;
43631
43630
  }
43632
43631
  var m0 = new AnimationItem();
43633
- return qe(m0, l0), m0.setData(l0, c0), m0;
43632
+ return qe(m0, l0), m0.setData(l0, r0), m0;
43634
43633
  }
43635
43634
  function Qe() {
43636
- var l0, c0 = e.length, a0 = [];
43637
- for (l0 = 0; l0 < c0; l0 += 1)
43635
+ var l0, r0 = e.length, a0 = [];
43636
+ for (l0 = 0; l0 < r0; l0 += 1)
43638
43637
  a0.push(e[l0].animation);
43639
43638
  return a0;
43640
43639
  }
@@ -43644,70 +43643,70 @@ if (typeof document != "undefined") {
43644
43643
  function $e() {
43645
43644
  T -= 1;
43646
43645
  }
43647
- function qe(l0, c0) {
43648
- l0.addEventListener("destroy", Je), l0.addEventListener("_active", _e), l0.addEventListener("_idle", $e), e.push({ elem: c0, animation: l0 }), r += 1;
43646
+ function qe(l0, r0) {
43647
+ l0.addEventListener("destroy", Je), l0.addEventListener("_active", _e), l0.addEventListener("_idle", $e), e.push({ elem: r0, animation: l0 }), r += 1;
43649
43648
  }
43650
43649
  function rt(l0) {
43651
- var c0 = new AnimationItem();
43652
- return qe(c0, null), c0.setParams(l0), c0;
43650
+ var r0 = new AnimationItem();
43651
+ return qe(r0, null), r0.setParams(l0), r0;
43653
43652
  }
43654
- function dt(l0, c0) {
43653
+ function dt(l0, r0) {
43655
43654
  var a0;
43656
43655
  for (a0 = 0; a0 < r; a0 += 1)
43657
- e[a0].animation.setSpeed(l0, c0);
43656
+ e[a0].animation.setSpeed(l0, r0);
43658
43657
  }
43659
- function Wt(l0, c0) {
43658
+ function Wt(l0, r0) {
43660
43659
  var a0;
43661
43660
  for (a0 = 0; a0 < r; a0 += 1)
43662
- e[a0].animation.setDirection(l0, c0);
43661
+ e[a0].animation.setDirection(l0, r0);
43663
43662
  }
43664
43663
  function Yt(l0) {
43665
- var c0;
43666
- for (c0 = 0; c0 < r; c0 += 1)
43667
- e[c0].animation.play(l0);
43664
+ var r0;
43665
+ for (r0 = 0; r0 < r; r0 += 1)
43666
+ e[r0].animation.play(l0);
43668
43667
  }
43669
43668
  function st(l0) {
43670
- var c0 = l0 - s, a0;
43669
+ var r0 = l0 - s, a0;
43671
43670
  for (a0 = 0; a0 < r; a0 += 1)
43672
- e[a0].animation.advanceTime(c0);
43671
+ e[a0].animation.advanceTime(r0);
43673
43672
  s = l0, T && !Xe ? window.requestAnimationFrame(st) : de = !0;
43674
43673
  }
43675
43674
  function Zt(l0) {
43676
43675
  s = l0, window.requestAnimationFrame(st);
43677
43676
  }
43678
43677
  function vt(l0) {
43679
- var c0;
43680
- for (c0 = 0; c0 < r; c0 += 1)
43681
- e[c0].animation.pause(l0);
43678
+ var r0;
43679
+ for (r0 = 0; r0 < r; r0 += 1)
43680
+ e[r0].animation.pause(l0);
43682
43681
  }
43683
- function Tt(l0, c0, a0) {
43682
+ function Tt(l0, r0, a0) {
43684
43683
  var m0;
43685
43684
  for (m0 = 0; m0 < r; m0 += 1)
43686
- e[m0].animation.goToAndStop(l0, c0, a0);
43685
+ e[m0].animation.goToAndStop(l0, r0, a0);
43687
43686
  }
43688
43687
  function Jt(l0) {
43689
- var c0;
43690
- for (c0 = 0; c0 < r; c0 += 1)
43691
- e[c0].animation.stop(l0);
43688
+ var r0;
43689
+ for (r0 = 0; r0 < r; r0 += 1)
43690
+ e[r0].animation.stop(l0);
43692
43691
  }
43693
43692
  function $t(l0) {
43694
- var c0;
43695
- for (c0 = 0; c0 < r; c0 += 1)
43696
- e[c0].animation.togglePause(l0);
43693
+ var r0;
43694
+ for (r0 = 0; r0 < r; r0 += 1)
43695
+ e[r0].animation.togglePause(l0);
43697
43696
  }
43698
43697
  function e0(l0) {
43699
- var c0;
43700
- for (c0 = r - 1; c0 >= 0; c0 -= 1)
43701
- e[c0].animation.destroy(l0);
43698
+ var r0;
43699
+ for (r0 = r - 1; r0 >= 0; r0 -= 1)
43700
+ e[r0].animation.destroy(l0);
43702
43701
  }
43703
- function t0(l0, c0, a0) {
43702
+ function t0(l0, r0, a0) {
43704
43703
  var m0 = [].concat(
43705
43704
  [].slice.call(document.getElementsByClassName("lottie")),
43706
43705
  [].slice.call(document.getElementsByClassName("bodymovin"))
43707
43706
  ), I0, C0 = m0.length;
43708
43707
  for (I0 = 0; I0 < C0; I0 += 1)
43709
43708
  a0 && m0[I0].setAttribute("data-bm-type", a0), Ke(m0[I0], l0);
43710
- if (c0 && C0 === 0) {
43709
+ if (r0 && C0 === 0) {
43711
43710
  a0 || (a0 = "svg");
43712
43711
  var B0 = document.getElementsByTagName("body")[0];
43713
43712
  B0.innerText = "";
@@ -43729,20 +43728,20 @@ if (typeof document != "undefined") {
43729
43728
  function d0() {
43730
43729
  Xe = !1, n0();
43731
43730
  }
43732
- function u0(l0, c0) {
43731
+ function u0(l0, r0) {
43733
43732
  var a0;
43734
43733
  for (a0 = 0; a0 < r; a0 += 1)
43735
- e[a0].animation.setVolume(l0, c0);
43734
+ e[a0].animation.setVolume(l0, r0);
43736
43735
  }
43737
43736
  function G0(l0) {
43738
- var c0;
43739
- for (c0 = 0; c0 < r; c0 += 1)
43740
- e[c0].animation.mute(l0);
43737
+ var r0;
43738
+ for (r0 = 0; r0 < r; r0 += 1)
43739
+ e[r0].animation.mute(l0);
43741
43740
  }
43742
43741
  function h0(l0) {
43743
- var c0;
43744
- for (c0 = 0; c0 < r; c0 += 1)
43745
- e[c0].animation.unmute(l0);
43742
+ var r0;
43743
+ for (r0 = 0; r0 < r; r0 += 1)
43744
+ e[r0].animation.unmute(l0);
43746
43745
  }
43747
43746
  return c.registerAnimation = Ke, c.loadAnimation = rt, c.setSpeed = dt, c.setDirection = Wt, c.play = Yt, c.pause = vt, c.stop = Jt, c.togglePause = $t, c.searchAnimations = t0, c.resize = i0, c.goToAndStop = Tt, c.destroy = e0, c.freeze = s0, c.unfreeze = d0, c.setVolume = u0, c.mute = G0, c.unmute = h0, c.getRegisteredAnimations = Qe, c;
43748
43747
  }(), BezierFactory = function() {
@@ -43878,16 +43877,16 @@ if (typeof document != "undefined") {
43878
43877
  Jt < $t - 1 ? Jt += 1 : (Tt = 0, e0 = !1);
43879
43878
  }
43880
43879
  n0 = this.keyframesMetadata[Jt] || {};
43881
- var s0, d0, u0, G0, h0, l0, c0 = i0.t - Zt, a0 = t0.t - Zt, m0;
43880
+ var s0, d0, u0, G0, h0, l0, r0 = i0.t - Zt, a0 = t0.t - Zt, m0;
43882
43881
  if (t0.to) {
43883
43882
  n0.bezierData || (n0.bezierData = bez.buildBezierData(t0.s, i0.s || t0.e, t0.to, t0.ti));
43884
43883
  var I0 = n0.bezierData;
43885
- if (Yt >= c0 || Yt < a0) {
43886
- var C0 = Yt >= c0 ? I0.points.length - 1 : 0;
43884
+ if (Yt >= r0 || Yt < a0) {
43885
+ var C0 = Yt >= r0 ? I0.points.length - 1 : 0;
43887
43886
  for (d0 = I0.points[C0].point.length, s0 = 0; s0 < d0; s0 += 1)
43888
43887
  vt[s0] = I0.points[C0].point[s0];
43889
43888
  } else {
43890
- n0.__fnct ? l0 = n0.__fnct : (l0 = BezierFactory.getBezierEasing(t0.o.x, t0.o.y, t0.i.x, t0.i.y, t0.n).get, n0.__fnct = l0), u0 = l0((Yt - a0) / (c0 - a0));
43889
+ n0.__fnct ? l0 = n0.__fnct : (l0 = BezierFactory.getBezierEasing(t0.o.x, t0.o.y, t0.i.x, t0.i.y, t0.n).get, n0.__fnct = l0), u0 = l0((Yt - a0) / (r0 - a0));
43891
43890
  var B0 = I0.segmentLength * u0, ci, M0 = st.lastFrame < Yt && st._lastKeyframeIndex === Jt ? st._lastAddedLength : 0;
43892
43891
  for (h0 = st.lastFrame < Yt && st._lastKeyframeIndex === Jt ? st._lastPoint : 0, e0 = !0, G0 = I0.points.length; e0; ) {
43893
43892
  if (M0 += I0.points[h0].partialLength, B0 === 0 || u0 === 0 || h0 === I0.points.length - 1) {
@@ -43906,17 +43905,17 @@ if (typeof document != "undefined") {
43906
43905
  } else {
43907
43906
  var A0, j0, ni, bi, xi;
43908
43907
  if ($t = t0.s.length, m0 = i0.s || t0.e, this.sh && t0.h !== 1)
43909
- if (Yt >= c0)
43908
+ if (Yt >= r0)
43910
43909
  vt[0] = m0[0], vt[1] = m0[1], vt[2] = m0[2];
43911
43910
  else if (Yt <= a0)
43912
43911
  vt[0] = t0.s[0], vt[1] = t0.s[1], vt[2] = t0.s[2];
43913
43912
  else {
43914
- var ui = de(t0.s), Si = de(m0), ti = (Yt - a0) / (c0 - a0);
43913
+ var ui = de(t0.s), Si = de(m0), ti = (Yt - a0) / (r0 - a0);
43915
43914
  T(vt, r(ui, Si, ti));
43916
43915
  }
43917
43916
  else
43918
43917
  for (Jt = 0; Jt < $t; Jt += 1)
43919
- t0.h !== 1 && (Yt >= c0 ? u0 = 1 : Yt < a0 ? u0 = 0 : (t0.o.x.constructor === Array ? (n0.__fnct || (n0.__fnct = []), n0.__fnct[Jt] ? l0 = n0.__fnct[Jt] : (A0 = t0.o.x[Jt] === void 0 ? t0.o.x[0] : t0.o.x[Jt], j0 = t0.o.y[Jt] === void 0 ? t0.o.y[0] : t0.o.y[Jt], ni = t0.i.x[Jt] === void 0 ? t0.i.x[0] : t0.i.x[Jt], bi = t0.i.y[Jt] === void 0 ? t0.i.y[0] : t0.i.y[Jt], l0 = BezierFactory.getBezierEasing(A0, j0, ni, bi).get, n0.__fnct[Jt] = l0)) : n0.__fnct ? l0 = n0.__fnct : (A0 = t0.o.x, j0 = t0.o.y, ni = t0.i.x, bi = t0.i.y, l0 = BezierFactory.getBezierEasing(A0, j0, ni, bi).get, t0.keyframeMetadata = l0), u0 = l0((Yt - a0) / (c0 - a0)))), m0 = i0.s || t0.e, xi = t0.h === 1 ? t0.s[Jt] : t0.s[Jt] + (m0[Jt] - t0.s[Jt]) * u0, this.propType === "multidimensional" ? vt[Jt] = xi : vt = xi;
43918
+ t0.h !== 1 && (Yt >= r0 ? u0 = 1 : Yt < a0 ? u0 = 0 : (t0.o.x.constructor === Array ? (n0.__fnct || (n0.__fnct = []), n0.__fnct[Jt] ? l0 = n0.__fnct[Jt] : (A0 = t0.o.x[Jt] === void 0 ? t0.o.x[0] : t0.o.x[Jt], j0 = t0.o.y[Jt] === void 0 ? t0.o.y[0] : t0.o.y[Jt], ni = t0.i.x[Jt] === void 0 ? t0.i.x[0] : t0.i.x[Jt], bi = t0.i.y[Jt] === void 0 ? t0.i.y[0] : t0.i.y[Jt], l0 = BezierFactory.getBezierEasing(A0, j0, ni, bi).get, n0.__fnct[Jt] = l0)) : n0.__fnct ? l0 = n0.__fnct : (A0 = t0.o.x, j0 = t0.o.y, ni = t0.i.x, bi = t0.i.y, l0 = BezierFactory.getBezierEasing(A0, j0, ni, bi).get, t0.keyframeMetadata = l0), u0 = l0((Yt - a0) / (r0 - a0)))), m0 = i0.s || t0.e, xi = t0.h === 1 ? t0.s[Jt] : t0.s[Jt] + (m0[Jt] - t0.s[Jt]) * u0, this.propType === "multidimensional" ? vt[Jt] = xi : vt = xi;
43920
43919
  }
43921
43920
  return st.lastIndex = Tt, vt;
43922
43921
  }
@@ -44127,8 +44126,8 @@ if (typeof document != "undefined") {
44127
44126
  else if (st >= G0[G0.length - 1].t - this.offsetTime)
44128
44127
  Jt = G0[G0.length - 1].s ? G0[G0.length - 1].s[0] : G0[G0.length - 2].e[0], e0 = !0;
44129
44128
  else {
44130
- for (var h0 = Tt, l0 = G0.length - 1, c0 = !0, a0, m0, I0; c0 && (a0 = G0[h0], m0 = G0[h0 + 1], !(m0.t - this.offsetTime > st)); )
44131
- h0 < l0 - 1 ? h0 += 1 : c0 = !1;
44129
+ for (var h0 = Tt, l0 = G0.length - 1, r0 = !0, a0, m0, I0; r0 && (a0 = G0[h0], m0 = G0[h0 + 1], !(m0.t - this.offsetTime > st)); )
44130
+ h0 < l0 - 1 ? h0 += 1 : r0 = !1;
44132
44131
  if (I0 = this.keyframesMetadata[h0] || {}, e0 = a0.h === 1, Tt = h0, !e0) {
44133
44132
  if (st >= m0.t - this.offsetTime)
44134
44133
  d0 = 1;
@@ -44229,8 +44228,8 @@ if (typeof document != "undefined") {
44229
44228
  var l0 = this.data.d === 3 ? -1 : 1;
44230
44229
  for (this.v._length = 0, s0 = 0; s0 < Zt; s0 += 1) {
44231
44230
  d0 = Tt ? Jt : $t, u0 = Tt ? e0 : t0, G0 = Tt ? i0 : n0;
44232
- var c0 = d0 * Math.cos(h0), a0 = d0 * Math.sin(h0), m0 = c0 === 0 && a0 === 0 ? 0 : a0 / Math.sqrt(c0 * c0 + a0 * a0), I0 = c0 === 0 && a0 === 0 ? 0 : -c0 / Math.sqrt(c0 * c0 + a0 * a0);
44233
- c0 += +this.p.v[0], a0 += +this.p.v[1], this.v.setTripleAt(c0, a0, c0 - m0 * G0 * u0 * l0, a0 - I0 * G0 * u0 * l0, c0 + m0 * G0 * u0 * l0, a0 + I0 * G0 * u0 * l0, s0, !0), Tt = !Tt, h0 += vt * l0;
44231
+ var r0 = d0 * Math.cos(h0), a0 = d0 * Math.sin(h0), m0 = r0 === 0 && a0 === 0 ? 0 : a0 / Math.sqrt(r0 * r0 + a0 * a0), I0 = r0 === 0 && a0 === 0 ? 0 : -r0 / Math.sqrt(r0 * r0 + a0 * a0);
44232
+ r0 += +this.p.v[0], a0 += +this.p.v[1], this.v.setTripleAt(r0, a0, r0 - m0 * G0 * u0 * l0, a0 - I0 * G0 * u0 * l0, r0 + m0 * G0 * u0 * l0, a0 + I0 * G0 * u0 * l0, s0, !0), Tt = !Tt, h0 += vt * l0;
44234
44233
  }
44235
44234
  },
44236
44235
  convertPolygonToPath: function() {
@@ -44287,143 +44286,143 @@ if (typeof document != "undefined") {
44287
44286
  function T() {
44288
44287
  return this.props[0] = 1, this.props[1] = 0, this.props[2] = 0, this.props[3] = 0, this.props[4] = 0, this.props[5] = 1, this.props[6] = 0, this.props[7] = 0, this.props[8] = 0, this.props[9] = 0, this.props[10] = 1, this.props[11] = 0, this.props[12] = 0, this.props[13] = 0, this.props[14] = 0, this.props[15] = 1, this;
44289
44288
  }
44290
- function de(c0) {
44291
- if (c0 === 0)
44289
+ function de(r0) {
44290
+ if (r0 === 0)
44292
44291
  return this;
44293
- var a0 = c(c0), m0 = e(c0);
44292
+ var a0 = c(r0), m0 = e(r0);
44294
44293
  return this._t(a0, -m0, 0, 0, m0, a0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
44295
44294
  }
44296
- function Xe(c0) {
44297
- if (c0 === 0)
44295
+ function Xe(r0) {
44296
+ if (r0 === 0)
44298
44297
  return this;
44299
- var a0 = c(c0), m0 = e(c0);
44298
+ var a0 = c(r0), m0 = e(r0);
44300
44299
  return this._t(1, 0, 0, 0, 0, a0, -m0, 0, 0, m0, a0, 0, 0, 0, 0, 1);
44301
44300
  }
44302
- function Je(c0) {
44303
- if (c0 === 0)
44301
+ function Je(r0) {
44302
+ if (r0 === 0)
44304
44303
  return this;
44305
- var a0 = c(c0), m0 = e(c0);
44304
+ var a0 = c(r0), m0 = e(r0);
44306
44305
  return this._t(a0, 0, m0, 0, 0, 1, 0, 0, -m0, 0, a0, 0, 0, 0, 0, 1);
44307
44306
  }
44308
- function Ke(c0) {
44309
- if (c0 === 0)
44307
+ function Ke(r0) {
44308
+ if (r0 === 0)
44310
44309
  return this;
44311
- var a0 = c(c0), m0 = e(c0);
44310
+ var a0 = c(r0), m0 = e(r0);
44312
44311
  return this._t(a0, -m0, 0, 0, m0, a0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
44313
44312
  }
44314
- function Qe(c0, a0) {
44315
- return this._t(1, a0, c0, 1, 0, 0);
44313
+ function Qe(r0, a0) {
44314
+ return this._t(1, a0, r0, 1, 0, 0);
44316
44315
  }
44317
- function _e(c0, a0) {
44318
- return this.shear(s(c0), s(a0));
44316
+ function _e(r0, a0) {
44317
+ return this.shear(s(r0), s(a0));
44319
44318
  }
44320
- function $e(c0, a0) {
44319
+ function $e(r0, a0) {
44321
44320
  var m0 = c(a0), I0 = e(a0);
44322
- return this._t(m0, I0, 0, 0, -I0, m0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, s(c0), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(m0, -I0, 0, 0, I0, m0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
44321
+ return this._t(m0, I0, 0, 0, -I0, m0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, s(r0), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(m0, -I0, 0, 0, I0, m0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
44323
44322
  }
44324
- function qe(c0, a0, m0) {
44325
- return !m0 && m0 !== 0 && (m0 = 1), c0 === 1 && a0 === 1 && m0 === 1 ? this : this._t(c0, 0, 0, 0, 0, a0, 0, 0, 0, 0, m0, 0, 0, 0, 0, 1);
44323
+ function qe(r0, a0, m0) {
44324
+ return !m0 && m0 !== 0 && (m0 = 1), r0 === 1 && a0 === 1 && m0 === 1 ? this : this._t(r0, 0, 0, 0, 0, a0, 0, 0, 0, 0, m0, 0, 0, 0, 0, 1);
44326
44325
  }
44327
- function rt(c0, a0, m0, I0, C0, B0, ci, M0, A0, j0, ni, bi, xi, ui, Si, ti) {
44328
- return this.props[0] = c0, this.props[1] = a0, this.props[2] = m0, this.props[3] = I0, this.props[4] = C0, this.props[5] = B0, this.props[6] = ci, this.props[7] = M0, this.props[8] = A0, this.props[9] = j0, this.props[10] = ni, this.props[11] = bi, this.props[12] = xi, this.props[13] = ui, this.props[14] = Si, this.props[15] = ti, this;
44326
+ function rt(r0, a0, m0, I0, C0, B0, ci, M0, A0, j0, ni, bi, xi, ui, Si, ti) {
44327
+ return this.props[0] = r0, this.props[1] = a0, this.props[2] = m0, this.props[3] = I0, this.props[4] = C0, this.props[5] = B0, this.props[6] = ci, this.props[7] = M0, this.props[8] = A0, this.props[9] = j0, this.props[10] = ni, this.props[11] = bi, this.props[12] = xi, this.props[13] = ui, this.props[14] = Si, this.props[15] = ti, this;
44329
44328
  }
44330
- function dt(c0, a0, m0) {
44331
- return m0 = m0 || 0, c0 !== 0 || a0 !== 0 || m0 !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, c0, a0, m0, 1) : this;
44329
+ function dt(r0, a0, m0) {
44330
+ return m0 = m0 || 0, r0 !== 0 || a0 !== 0 || m0 !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, r0, a0, m0, 1) : this;
44332
44331
  }
44333
- function Wt(c0, a0, m0, I0, C0, B0, ci, M0, A0, j0, ni, bi, xi, ui, Si, ti) {
44332
+ function Wt(r0, a0, m0, I0, C0, B0, ci, M0, A0, j0, ni, bi, xi, ui, Si, ti) {
44334
44333
  var J0 = this.props;
44335
- if (c0 === 1 && a0 === 0 && m0 === 0 && I0 === 0 && C0 === 0 && B0 === 1 && ci === 0 && M0 === 0 && A0 === 0 && j0 === 0 && ni === 1 && bi === 0)
44336
- return J0[12] = J0[12] * c0 + J0[15] * xi, J0[13] = J0[13] * B0 + J0[15] * ui, J0[14] = J0[14] * ni + J0[15] * Si, J0[15] *= ti, this._identityCalculated = !1, this;
44334
+ if (r0 === 1 && a0 === 0 && m0 === 0 && I0 === 0 && C0 === 0 && B0 === 1 && ci === 0 && M0 === 0 && A0 === 0 && j0 === 0 && ni === 1 && bi === 0)
44335
+ return J0[12] = J0[12] * r0 + J0[15] * xi, J0[13] = J0[13] * B0 + J0[15] * ui, J0[14] = J0[14] * ni + J0[15] * Si, J0[15] *= ti, this._identityCalculated = !1, this;
44337
44336
  var g0 = J0[0], Xi = J0[1], si = J0[2], E0 = J0[3], U0 = J0[4], ii = J0[5], ei = J0[6], V0 = J0[7], b0 = J0[8], N0 = J0[9], P0 = J0[10], $0 = J0[11], Q0 = J0[12], Vi = J0[13], Gi = J0[14], Zi = J0[15];
44338
- return J0[0] = g0 * c0 + Xi * C0 + si * A0 + E0 * xi, J0[1] = g0 * a0 + Xi * B0 + si * j0 + E0 * ui, J0[2] = g0 * m0 + Xi * ci + si * ni + E0 * Si, J0[3] = g0 * I0 + Xi * M0 + si * bi + E0 * ti, J0[4] = U0 * c0 + ii * C0 + ei * A0 + V0 * xi, J0[5] = U0 * a0 + ii * B0 + ei * j0 + V0 * ui, J0[6] = U0 * m0 + ii * ci + ei * ni + V0 * Si, J0[7] = U0 * I0 + ii * M0 + ei * bi + V0 * ti, J0[8] = b0 * c0 + N0 * C0 + P0 * A0 + $0 * xi, J0[9] = b0 * a0 + N0 * B0 + P0 * j0 + $0 * ui, J0[10] = b0 * m0 + N0 * ci + P0 * ni + $0 * Si, J0[11] = b0 * I0 + N0 * M0 + P0 * bi + $0 * ti, J0[12] = Q0 * c0 + Vi * C0 + Gi * A0 + Zi * xi, J0[13] = Q0 * a0 + Vi * B0 + Gi * j0 + Zi * ui, J0[14] = Q0 * m0 + Vi * ci + Gi * ni + Zi * Si, J0[15] = Q0 * I0 + Vi * M0 + Gi * bi + Zi * ti, this._identityCalculated = !1, this;
44337
+ return J0[0] = g0 * r0 + Xi * C0 + si * A0 + E0 * xi, J0[1] = g0 * a0 + Xi * B0 + si * j0 + E0 * ui, J0[2] = g0 * m0 + Xi * ci + si * ni + E0 * Si, J0[3] = g0 * I0 + Xi * M0 + si * bi + E0 * ti, J0[4] = U0 * r0 + ii * C0 + ei * A0 + V0 * xi, J0[5] = U0 * a0 + ii * B0 + ei * j0 + V0 * ui, J0[6] = U0 * m0 + ii * ci + ei * ni + V0 * Si, J0[7] = U0 * I0 + ii * M0 + ei * bi + V0 * ti, J0[8] = b0 * r0 + N0 * C0 + P0 * A0 + $0 * xi, J0[9] = b0 * a0 + N0 * B0 + P0 * j0 + $0 * ui, J0[10] = b0 * m0 + N0 * ci + P0 * ni + $0 * Si, J0[11] = b0 * I0 + N0 * M0 + P0 * bi + $0 * ti, J0[12] = Q0 * r0 + Vi * C0 + Gi * A0 + Zi * xi, J0[13] = Q0 * a0 + Vi * B0 + Gi * j0 + Zi * ui, J0[14] = Q0 * m0 + Vi * ci + Gi * ni + Zi * Si, J0[15] = Q0 * I0 + Vi * M0 + Gi * bi + Zi * ti, this._identityCalculated = !1, this;
44339
44338
  }
44340
44339
  function Yt() {
44341
44340
  return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
44342
44341
  }
44343
- function st(c0) {
44342
+ function st(r0) {
44344
44343
  for (var a0 = 0; a0 < 16; ) {
44345
- if (c0.props[a0] !== this.props[a0])
44344
+ if (r0.props[a0] !== this.props[a0])
44346
44345
  return !1;
44347
44346
  a0 += 1;
44348
44347
  }
44349
44348
  return !0;
44350
44349
  }
44351
- function Zt(c0) {
44350
+ function Zt(r0) {
44352
44351
  var a0;
44353
44352
  for (a0 = 0; a0 < 16; a0 += 1)
44354
- c0.props[a0] = this.props[a0];
44355
- return c0;
44353
+ r0.props[a0] = this.props[a0];
44354
+ return r0;
44356
44355
  }
44357
- function vt(c0) {
44356
+ function vt(r0) {
44358
44357
  var a0;
44359
44358
  for (a0 = 0; a0 < 16; a0 += 1)
44360
- this.props[a0] = c0[a0];
44359
+ this.props[a0] = r0[a0];
44361
44360
  }
44362
- function Tt(c0, a0, m0) {
44361
+ function Tt(r0, a0, m0) {
44363
44362
  return {
44364
- x: c0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12],
44365
- y: c0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13],
44366
- z: c0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14]
44363
+ x: r0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12],
44364
+ y: r0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13],
44365
+ z: r0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14]
44367
44366
  };
44368
44367
  }
44369
- function Jt(c0, a0, m0) {
44370
- return c0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12];
44368
+ function Jt(r0, a0, m0) {
44369
+ return r0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12];
44371
44370
  }
44372
- function $t(c0, a0, m0) {
44373
- return c0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13];
44371
+ function $t(r0, a0, m0) {
44372
+ return r0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13];
44374
44373
  }
44375
- function e0(c0, a0, m0) {
44376
- return c0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14];
44374
+ function e0(r0, a0, m0) {
44375
+ return r0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14];
44377
44376
  }
44378
44377
  function t0() {
44379
- var c0 = this.props[0] * this.props[5] - this.props[1] * this.props[4], a0 = this.props[5] / c0, m0 = -this.props[1] / c0, I0 = -this.props[4] / c0, C0 = this.props[0] / c0, B0 = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / c0, ci = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / c0, M0 = new Matrix();
44378
+ var r0 = this.props[0] * this.props[5] - this.props[1] * this.props[4], a0 = this.props[5] / r0, m0 = -this.props[1] / r0, I0 = -this.props[4] / r0, C0 = this.props[0] / r0, B0 = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / r0, ci = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / r0, M0 = new Matrix();
44380
44379
  return M0.props[0] = a0, M0.props[1] = m0, M0.props[4] = I0, M0.props[5] = C0, M0.props[12] = B0, M0.props[13] = ci, M0;
44381
44380
  }
44382
- function i0(c0) {
44381
+ function i0(r0) {
44383
44382
  var a0 = this.getInverseMatrix();
44384
- return a0.applyToPointArray(c0[0], c0[1], c0[2] || 0);
44383
+ return a0.applyToPointArray(r0[0], r0[1], r0[2] || 0);
44385
44384
  }
44386
- function n0(c0) {
44387
- var a0, m0 = c0.length, I0 = [];
44385
+ function n0(r0) {
44386
+ var a0, m0 = r0.length, I0 = [];
44388
44387
  for (a0 = 0; a0 < m0; a0 += 1)
44389
- I0[a0] = i0(c0[a0]);
44388
+ I0[a0] = i0(r0[a0]);
44390
44389
  return I0;
44391
44390
  }
44392
- function s0(c0, a0, m0) {
44391
+ function s0(r0, a0, m0) {
44393
44392
  var I0 = createTypedArray("float32", 6);
44394
44393
  if (this.isIdentity())
44395
- I0[0] = c0[0], I0[1] = c0[1], I0[2] = a0[0], I0[3] = a0[1], I0[4] = m0[0], I0[5] = m0[1];
44394
+ I0[0] = r0[0], I0[1] = r0[1], I0[2] = a0[0], I0[3] = a0[1], I0[4] = m0[0], I0[5] = m0[1];
44396
44395
  else {
44397
44396
  var C0 = this.props[0], B0 = this.props[1], ci = this.props[4], M0 = this.props[5], A0 = this.props[12], j0 = this.props[13];
44398
- I0[0] = c0[0] * C0 + c0[1] * ci + A0, I0[1] = c0[0] * B0 + c0[1] * M0 + j0, I0[2] = a0[0] * C0 + a0[1] * ci + A0, I0[3] = a0[0] * B0 + a0[1] * M0 + j0, I0[4] = m0[0] * C0 + m0[1] * ci + A0, I0[5] = m0[0] * B0 + m0[1] * M0 + j0;
44397
+ I0[0] = r0[0] * C0 + r0[1] * ci + A0, I0[1] = r0[0] * B0 + r0[1] * M0 + j0, I0[2] = a0[0] * C0 + a0[1] * ci + A0, I0[3] = a0[0] * B0 + a0[1] * M0 + j0, I0[4] = m0[0] * C0 + m0[1] * ci + A0, I0[5] = m0[0] * B0 + m0[1] * M0 + j0;
44399
44398
  }
44400
44399
  return I0;
44401
44400
  }
44402
- function d0(c0, a0, m0) {
44401
+ function d0(r0, a0, m0) {
44403
44402
  var I0;
44404
- return this.isIdentity() ? I0 = [c0, a0, m0] : I0 = [
44405
- c0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12],
44406
- c0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13],
44407
- c0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14]
44403
+ return this.isIdentity() ? I0 = [r0, a0, m0] : I0 = [
44404
+ r0 * this.props[0] + a0 * this.props[4] + m0 * this.props[8] + this.props[12],
44405
+ r0 * this.props[1] + a0 * this.props[5] + m0 * this.props[9] + this.props[13],
44406
+ r0 * this.props[2] + a0 * this.props[6] + m0 * this.props[10] + this.props[14]
44408
44407
  ], I0;
44409
44408
  }
44410
- function u0(c0, a0) {
44409
+ function u0(r0, a0) {
44411
44410
  if (this.isIdentity())
44412
- return c0 + "," + a0;
44411
+ return r0 + "," + a0;
44413
44412
  var m0 = this.props;
44414
- return Math.round((c0 * m0[0] + a0 * m0[4] + m0[12]) * 100) / 100 + "," + Math.round((c0 * m0[1] + a0 * m0[5] + m0[13]) * 100) / 100;
44413
+ return Math.round((r0 * m0[0] + a0 * m0[4] + m0[12]) * 100) / 100 + "," + Math.round((r0 * m0[1] + a0 * m0[5] + m0[13]) * 100) / 100;
44415
44414
  }
44416
44415
  function G0() {
44417
- for (var c0 = 0, a0 = this.props, m0 = "matrix3d(", I0 = 1e4; c0 < 16; )
44418
- m0 += r(a0[c0] * I0) / I0, m0 += c0 === 15 ? ")" : ",", c0 += 1;
44416
+ for (var r0 = 0, a0 = this.props, m0 = "matrix3d(", I0 = 1e4; r0 < 16; )
44417
+ m0 += r(a0[r0] * I0) / I0, m0 += r0 === 15 ? ")" : ",", r0 += 1;
44419
44418
  return m0;
44420
44419
  }
44421
- function h0(c0) {
44420
+ function h0(r0) {
44422
44421
  var a0 = 1e4;
44423
- return c0 < 1e-6 && c0 > 0 || c0 > -1e-6 && c0 < 0 ? r(c0 * a0) / a0 : c0;
44422
+ return r0 < 1e-6 && r0 > 0 || r0 > -1e-6 && r0 < 0 ? r(r0 * a0) / a0 : r0;
44424
44423
  }
44425
44424
  function l0() {
44426
- var c0 = this.props, a0 = h0(c0[0]), m0 = h0(c0[1]), I0 = h0(c0[4]), C0 = h0(c0[5]), B0 = h0(c0[12]), ci = h0(c0[13]);
44425
+ var r0 = this.props, a0 = h0(r0[0]), m0 = h0(r0[1]), I0 = h0(r0[4]), C0 = h0(r0[5]), B0 = h0(r0[12]), ci = h0(r0[13]);
44427
44426
  return "matrix(" + a0 + "," + m0 + "," + I0 + "," + C0 + "," + B0 + "," + ci + ")";
44428
44427
  }
44429
44428
  return function() {
@@ -46591,15 +46590,15 @@ if (typeof document != "undefined") {
46591
46590
  c.justifyOffset = 0;
46592
46591
  }
46593
46592
  c.lineWidths = rt;
46594
- var l0 = s.a, c0, a0;
46593
+ var l0 = s.a, r0, a0;
46595
46594
  st = l0.length;
46596
46595
  var m0, I0, C0 = [];
46597
46596
  for (Yt = 0; Yt < st; Yt += 1) {
46598
- for (c0 = l0[Yt], c0.a.sc && (c.strokeColorAnim = !0), c0.a.sw && (c.strokeWidthAnim = !0), (c0.a.fc || c0.a.fh || c0.a.fs || c0.a.fb) && (c.fillColorAnim = !0), I0 = 0, m0 = c0.s.b, T = 0; T < de; T += 1)
46599
- a0 = r[T], a0.anIndexes[Yt] = I0, (m0 == 1 && a0.val !== "" || m0 == 2 && a0.val !== "" && a0.val !== " " || m0 == 3 && (a0.n || a0.val == " " || T == de - 1) || m0 == 4 && (a0.n || T == de - 1)) && (c0.s.rn === 1 && C0.push(I0), I0 += 1);
46597
+ for (r0 = l0[Yt], r0.a.sc && (c.strokeColorAnim = !0), r0.a.sw && (c.strokeWidthAnim = !0), (r0.a.fc || r0.a.fh || r0.a.fs || r0.a.fb) && (c.fillColorAnim = !0), I0 = 0, m0 = r0.s.b, T = 0; T < de; T += 1)
46598
+ a0 = r[T], a0.anIndexes[Yt] = I0, (m0 == 1 && a0.val !== "" || m0 == 2 && a0.val !== "" && a0.val !== " " || m0 == 3 && (a0.n || a0.val == " " || T == de - 1) || m0 == 4 && (a0.n || T == de - 1)) && (r0.s.rn === 1 && C0.push(I0), I0 += 1);
46600
46599
  s.a[Yt].s.totalChars = I0;
46601
46600
  var B0 = -1, ci;
46602
- if (c0.s.rn === 1)
46601
+ if (r0.s.rn === 1)
46603
46602
  for (T = 0; T < de; T += 1)
46604
46603
  a0 = r[T], B0 != a0.anIndexes[Yt] && (B0 = a0.anIndexes[Yt], ci = C0.splice(Math.floor(Math.random() * C0.length), 1)[0]), a0.anIndexes[Yt] = ci;
46605
46604
  }
@@ -46713,7 +46712,7 @@ if (typeof document != "undefined") {
46713
46712
  Jt = $t[vt].points, Tt = Jt[Zt - 1], Wt = Jt[Zt], e0 = Wt.partialLength;
46714
46713
  }
46715
46714
  $e = qe.length, Ke = 0, Qe = 0;
46716
- var G0 = c.finalSize * 1.2 * 0.714, h0 = !0, l0, c0, a0, m0, I0;
46715
+ var G0 = c.finalSize * 1.2 * 0.714, h0 = !0, l0, r0, a0, m0, I0;
46717
46716
  m0 = r.length;
46718
46717
  var C0, B0 = -1, ci, M0, A0, j0 = dt, ni = vt, bi = Zt, xi = -1, ui, Si, ti, J0, g0, Xi, si, E0, U0 = "", ii = this.defaultPropsArray, ei;
46719
46718
  if (c.j === 2 || c.j === 1) {
@@ -46725,7 +46724,7 @@ if (typeof document != "undefined") {
46725
46724
  V0 = 0, $0 = !0;
46726
46725
  } else {
46727
46726
  for (a0 = 0; a0 < m0; a0 += 1)
46728
- l0 = r[a0].a, l0.t.propType && ($0 && c.j === 2 && (b0 += l0.t.v * N0), c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? V0 += l0.t.v * C0[0] * N0 : V0 += l0.t.v * C0 * N0);
46727
+ l0 = r[a0].a, l0.t.propType && ($0 && c.j === 2 && (b0 += l0.t.v * N0), r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? V0 += l0.t.v * C0[0] * N0 : V0 += l0.t.v * C0 * N0);
46729
46728
  $0 = !1;
46730
46729
  }
46731
46730
  for (V0 && (V0 += b0); P0 < _e; )
@@ -46750,20 +46749,20 @@ if (typeof document != "undefined") {
46750
46749
  B0 !== qe[_e].ind && (qe[B0] && (dt += qe[B0].extra), dt += qe[_e].an / 2, B0 = qe[_e].ind), dt += s[0] * qe[_e].an * 5e-3;
46751
46750
  var Q0 = 0;
46752
46751
  for (a0 = 0; a0 < m0; a0 += 1)
46753
- l0 = r[a0].a, l0.p.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? Q0 += l0.p.v[0] * C0[0] : Q0 += l0.p.v[0] * C0), l0.a.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? Q0 += l0.a.v[0] * C0[0] : Q0 += l0.a.v[0] * C0);
46752
+ l0 = r[a0].a, l0.p.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? Q0 += l0.p.v[0] * C0[0] : Q0 += l0.p.v[0] * C0), l0.a.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? Q0 += l0.a.v[0] * C0[0] : Q0 += l0.a.v[0] * C0);
46754
46753
  for (st = !0, this._pathData.a.v && (dt = qe[0].an * 0.5 + (t0 - this._pathData.f.v - qe[0].an * 0.5 - qe[qe.length - 1].an * 0.5) * B0 / ($e - 1), dt += this._pathData.f.v); st; )
46755
46754
  Yt + e0 >= dt + Q0 || !Jt ? (i0 = (dt + Q0 - Yt) / Wt.partialLength, M0 = Tt.point[0] + (Wt.point[0] - Tt.point[0]) * i0, A0 = Tt.point[1] + (Wt.point[1] - Tt.point[1]) * i0, de.translate(-s[0] * qe[_e].an * 5e-3, -(s[1] * G0) * 0.01), st = !1) : Jt && (Yt += Wt.partialLength, Zt += 1, Zt >= Jt.length && (Zt = 0, vt += 1, $t[vt] ? Jt = $t[vt].points : s0.v.c ? (Zt = 0, vt = 0, Jt = $t[vt].points) : (Yt -= Wt.partialLength, Jt = null)), Jt && (Tt = Wt, Wt = Jt[Zt], e0 = Wt.partialLength));
46756
46755
  ci = qe[_e].an / 2 - qe[_e].add, de.translate(-ci, 0, 0);
46757
46756
  } else
46758
46757
  ci = qe[_e].an / 2 - qe[_e].add, de.translate(-ci, 0, 0), de.translate(-s[0] * qe[_e].an * 5e-3, -s[1] * G0 * 0.01, 0);
46759
46758
  for (a0 = 0; a0 < m0; a0 += 1)
46760
- l0 = r[a0].a, l0.t.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), (Ke !== 0 || c.j !== 0) && (this._hasMaskedPath ? C0.length ? dt += l0.t.v * C0[0] : dt += l0.t.v * C0 : C0.length ? Ke += l0.t.v * C0[0] : Ke += l0.t.v * C0));
46759
+ l0 = r[a0].a, l0.t.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), (Ke !== 0 || c.j !== 0) && (this._hasMaskedPath ? C0.length ? dt += l0.t.v * C0[0] : dt += l0.t.v * C0 : C0.length ? Ke += l0.t.v * C0[0] : Ke += l0.t.v * C0));
46761
46760
  for (c.strokeWidthAnim && (ti = c.sw || 0), c.strokeColorAnim && (c.sc ? Si = [c.sc[0], c.sc[1], c.sc[2]] : Si = [0, 0, 0]), c.fillColorAnim && c.fc && (J0 = [c.fc[0], c.fc[1], c.fc[2]]), a0 = 0; a0 < m0; a0 += 1)
46762
- l0 = r[a0].a, l0.a.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? de.translate(-l0.a.v[0] * C0[0], -l0.a.v[1] * C0[1], l0.a.v[2] * C0[2]) : de.translate(-l0.a.v[0] * C0, -l0.a.v[1] * C0, l0.a.v[2] * C0));
46761
+ l0 = r[a0].a, l0.a.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? de.translate(-l0.a.v[0] * C0[0], -l0.a.v[1] * C0[1], l0.a.v[2] * C0[2]) : de.translate(-l0.a.v[0] * C0, -l0.a.v[1] * C0, l0.a.v[2] * C0));
46763
46762
  for (a0 = 0; a0 < m0; a0 += 1)
46764
- l0 = r[a0].a, l0.s.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? de.scale(1 + (l0.s.v[0] - 1) * C0[0], 1 + (l0.s.v[1] - 1) * C0[1], 1) : de.scale(1 + (l0.s.v[0] - 1) * C0, 1 + (l0.s.v[1] - 1) * C0, 1));
46763
+ l0 = r[a0].a, l0.s.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), C0.length ? de.scale(1 + (l0.s.v[0] - 1) * C0[0], 1 + (l0.s.v[1] - 1) * C0[1], 1) : de.scale(1 + (l0.s.v[0] - 1) * C0, 1 + (l0.s.v[1] - 1) * C0, 1));
46765
46764
  for (a0 = 0; a0 < m0; a0 += 1) {
46766
- if (l0 = r[a0].a, c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), l0.sk.propType && (C0.length ? de.skewFromAxis(-l0.sk.v * C0[0], l0.sa.v * C0[1]) : de.skewFromAxis(-l0.sk.v * C0, l0.sa.v * C0)), l0.r.propType && (C0.length ? de.rotateZ(-l0.r.v * C0[2]) : de.rotateZ(-l0.r.v * C0)), l0.ry.propType && (C0.length ? de.rotateY(l0.ry.v * C0[1]) : de.rotateY(l0.ry.v * C0)), l0.rx.propType && (C0.length ? de.rotateX(l0.rx.v * C0[0]) : de.rotateX(l0.rx.v * C0)), l0.o.propType && (C0.length ? ui += (l0.o.v * C0[0] - ui) * C0[0] : ui += (l0.o.v * C0 - ui) * C0), c.strokeWidthAnim && l0.sw.propType && (C0.length ? ti += l0.sw.v * C0[0] : ti += l0.sw.v * C0), c.strokeColorAnim && l0.sc.propType)
46765
+ if (l0 = r[a0].a, r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), l0.sk.propType && (C0.length ? de.skewFromAxis(-l0.sk.v * C0[0], l0.sa.v * C0[1]) : de.skewFromAxis(-l0.sk.v * C0, l0.sa.v * C0)), l0.r.propType && (C0.length ? de.rotateZ(-l0.r.v * C0[2]) : de.rotateZ(-l0.r.v * C0)), l0.ry.propType && (C0.length ? de.rotateY(l0.ry.v * C0[1]) : de.rotateY(l0.ry.v * C0)), l0.rx.propType && (C0.length ? de.rotateX(l0.rx.v * C0[0]) : de.rotateX(l0.rx.v * C0)), l0.o.propType && (C0.length ? ui += (l0.o.v * C0[0] - ui) * C0[0] : ui += (l0.o.v * C0 - ui) * C0), c.strokeWidthAnim && l0.sw.propType && (C0.length ? ti += l0.sw.v * C0[0] : ti += l0.sw.v * C0), c.strokeColorAnim && l0.sc.propType)
46767
46766
  for (g0 = 0; g0 < 3; g0 += 1)
46768
46767
  C0.length ? Si[g0] += (l0.sc.v[g0] - Si[g0]) * C0[0] : Si[g0] += (l0.sc.v[g0] - Si[g0]) * C0;
46769
46768
  if (c.fillColorAnim && c.fc) {
@@ -46774,7 +46773,7 @@ if (typeof document != "undefined") {
46774
46773
  }
46775
46774
  }
46776
46775
  for (a0 = 0; a0 < m0; a0 += 1)
46777
- l0 = r[a0].a, l0.p.propType && (c0 = r[a0].s, C0 = c0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), this._hasMaskedPath ? C0.length ? de.translate(0, l0.p.v[1] * C0[0], -l0.p.v[2] * C0[1]) : de.translate(0, l0.p.v[1] * C0, -l0.p.v[2] * C0) : C0.length ? de.translate(l0.p.v[0] * C0[0], l0.p.v[1] * C0[1], -l0.p.v[2] * C0[2]) : de.translate(l0.p.v[0] * C0, l0.p.v[1] * C0, -l0.p.v[2] * C0));
46776
+ l0 = r[a0].a, l0.p.propType && (r0 = r[a0].s, C0 = r0.getMult(qe[_e].anIndexes[a0], T.a[a0].s.totalChars), this._hasMaskedPath ? C0.length ? de.translate(0, l0.p.v[1] * C0[0], -l0.p.v[2] * C0[1]) : de.translate(0, l0.p.v[1] * C0, -l0.p.v[2] * C0) : C0.length ? de.translate(l0.p.v[0] * C0[0], l0.p.v[1] * C0[1], -l0.p.v[2] * C0[2]) : de.translate(l0.p.v[0] * C0, l0.p.v[1] * C0, -l0.p.v[2] * C0));
46778
46777
  if (c.strokeWidthAnim && (Xi = ti < 0 ? 0 : ti), c.strokeColorAnim && (si = "rgb(" + Math.round(Si[0] * 255) + "," + Math.round(Si[1] * 255) + "," + Math.round(Si[2] * 255) + ")"), c.fillColorAnim && c.fc && (E0 = "rgb(" + Math.round(J0[0] * 255) + "," + Math.round(J0[1] * 255) + "," + Math.round(J0[2] * 255) + ")"), this._hasMaskedPath) {
46779
46778
  if (de.translate(0, -c.ls), de.translate(0, s[1] * G0 * 0.01 + Qe, 0), this._pathData.p.v) {
46780
46779
  n0 = (Wt.point[1] - Tt.point[1]) / (Wt.point[0] - Tt.point[0]);
@@ -48999,7 +48998,7 @@ class SetValue extends Command {
48999
48998
  }
49000
48999
  execute() {
49001
49000
  const e = this.properties ? this.object[this.properties] : this.object;
49002
- e && (e instanceof RectAreaLight && this.attributeName === "castShadow" || (e[this.attributeName] = this.newValue, this.fixObj(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
49001
+ e && ((e instanceof RectAreaLight || e instanceof AmbientLight) && this.attributeName === "castShadow" || (e[this.attributeName] = this.newValue, this.fixObj(), this.editor.emit("objectChanged", this.object), setTimeout(() => {
49003
49002
  this.attributeName === "name" && this.editor.pencil.event.emit("object3dListChange");
49004
49003
  })));
49005
49004
  }
@@ -49473,20 +49472,14 @@ class Viewport {
49473
49472
  w0(this, "editor");
49474
49473
  w0(this, "vis");
49475
49474
  w0(this, "extendsOptions", {});
49475
+ w0(this, "cameraState", {});
49476
49476
  w0(this, "delLoadObj");
49477
49477
  w0(this, "options");
49478
49478
  this.options = s, this.editor = e;
49479
49479
  }
49480
- setSaveCamera() {
49481
- return q0(this, null, function* () {
49482
- var T;
49483
- const e = this.vis.pencil, s = e.cameraPositon, r = e.cameraTarget;
49484
- yield this.editor.execute(
49485
- new SetPosition(this.editor, e.camera, s, s, e.controls)
49486
- ), yield this.editor.execute(
49487
- new SetTarget(this.editor, e.camera, r, r, e.controls)
49488
- ), (T = e.controls) == null || T.saveState();
49489
- });
49480
+ setSaveCamera(e) {
49481
+ var s, r;
49482
+ this.vis.setSaveCamera(e), (s = this.vis.pencil.controls) == null || s.saveState(), this.cameraState = ai({}, (r = this.vis) == null ? void 0 : r.cameraState), this.editor.emit("cameraStateChanged");
49490
49483
  }
49491
49484
  addVis(r) {
49492
49485
  return q0(this, arguments, function* (e, s = {}) {
@@ -49510,7 +49503,7 @@ class Viewport {
49510
49503
  if (this.vis = this.options.visFactories, this.vis.visName !== e)
49511
49504
  throw new Error(`visName is not match, import {${e}}`);
49512
49505
  const T = this.editor.hooks.events.beforeSetVisOptions.length ? this.editor.hooks.dispatch("beforeSetVisOptions", s) : s;
49513
- this.vis.setOptions(ai(ai({}, T), this.extendsOptions)), this.delLoadObj && (this.vis.delLoadArr = this.delLoadObj), this.vis.playing = this.editor.playing, this.vis._baseObjectByUuid = this.editor.baseObjectByUuid.bind(this.editor), this.vis.on("loaderProgress", (Je, Ke) => {
49506
+ this.vis.setOptions(ai(ai({}, T), this.extendsOptions)), this.vis.cameraState = ai({}, this.cameraState), this.delLoadObj && (this.vis.delLoadArr = this.delLoadObj), this.vis.playing = this.editor.playing, this.vis._baseObjectByUuid = this.editor.baseObjectByUuid.bind(this.editor), this.vis.on("loaderProgress", (Je, Ke) => {
49514
49507
  this.editor.emit("progress", {
49515
49508
  type: "下载资源",
49516
49509
  value: Je / Ke * 100 | 0
@@ -49581,11 +49574,12 @@ class Viewport {
49581
49574
  const e = (s = this.vis) == null ? void 0 : s.loader.getUnusedAssets();
49582
49575
  return {
49583
49576
  eo: this.extendsOptions,
49577
+ cs: this.cameraState,
49584
49578
  delLoadObj: e
49585
49579
  };
49586
49580
  }
49587
49581
  fromJSON(e) {
49588
- this.extendsOptions = e.eo || {}, e.delLoadObj && e.delLoadObj.length && (this.delLoadObj = [...e.delLoadObj]);
49582
+ this.extendsOptions = e.eo || {}, this.cameraState = e.cs || {}, e.delLoadObj && e.delLoadObj.length && (this.delLoadObj = [...e.delLoadObj]);
49589
49583
  }
49590
49584
  getLoadObj() {
49591
49585
  return this.vis ? [...this.vis.loader.assets.keys()].filter((s) => this.vis.loader.delLoadArr.indexOf(s) === -1) : [];
@@ -49597,7 +49591,7 @@ class Viewport {
49597
49591
  }
49598
49592
  dispose() {
49599
49593
  var e;
49600
- (e = this.vis) == null || e.dispose(), this.options.visFactories = void 0, this.extendsOptions = {}, this.delLoadObj = void 0, this.vis = void 0, this.editor.history.clear();
49594
+ (e = this.vis) == null || e.dispose(), this.options.visFactories = void 0, this.extendsOptions = {}, this.cameraState = {}, this.delLoadObj = void 0, this.vis = void 0, this.editor.history.clear();
49601
49595
  }
49602
49596
  }
49603
49597
  const compareVersion = (c, e) => {
@@ -50560,6 +50554,7 @@ class Base extends Event {
50560
50554
  w0(this, "visName");
50561
50555
  w0(this, "editor");
50562
50556
  w0(this, "tier0", !1);
50557
+ w0(this, "cameraState", {});
50563
50558
  w0(this, "_baseObjectByUuid");
50564
50559
  w0(this, "initSettingsObj");
50565
50560
  w0(this, "mouseButtonsActiveStore", null);
@@ -50800,9 +50795,27 @@ class Base extends Event {
50800
50795
  return r;
50801
50796
  });
50802
50797
  }
50798
+ setSaveCamera(s) {
50799
+ const r = this.pencil, T = r.cameraPositon, de = r.cameraTarget;
50800
+ this.cameraState[s] = [T.x, T.y, T.z, de.x, de.y, de.z];
50801
+ }
50802
+ useSaveCamera(s, r = !1) {
50803
+ return q0(this, null, function* () {
50804
+ const T = this.cameraState[s], de = this.pencil.controls;
50805
+ return T ? (yield de.setLookAt(
50806
+ T[0],
50807
+ T[1],
50808
+ T[2],
50809
+ T[3],
50810
+ T[4],
50811
+ T[5],
50812
+ r
50813
+ ), !0) : !1;
50814
+ });
50815
+ }
50803
50816
  show() {
50804
50817
  var s, r, T;
50805
- this.showState || this.options.disableInitShow || (this.showState = "ing", (s = this.drawController.group) == null || s.show(), (r = this.drawController.prefabGroup) == null || r.show(), this.playing && ((T = this.drawController.prefabGroup) == null || T.hide()), this.pencil.start(), this.showState = !0, this.emit("show"));
50818
+ this.useSaveCamera("visShow"), !(this.showState || this.options.disableInitShow) && (this.showState = "ing", (s = this.drawController.group) == null || s.show(), (r = this.drawController.prefabGroup) == null || r.show(), this.playing && ((T = this.drawController.prefabGroup) == null || T.hide()), this.pencil.start(), this.showState = !0, this.emit("show"));
50806
50819
  }
50807
50820
  hide() {
50808
50821
  var s, r;
@@ -50901,7 +50914,7 @@ class Base extends Event {
50901
50914
  }
50902
50915
  dispose() {
50903
50916
  var s, r, T;
50904
- super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), (s = this.pencil) == null || s.dispose(), (r = this.pmremGenerator) == null || r.dispose(), (T = this.re) == null || T.dispose();
50917
+ super.dispose(), this.editor && (this.editor.viewport.vis = void 0, this.editor.dispose()), this.cameraState = {}, (s = this.pencil) == null || s.dispose(), (r = this.pmremGenerator) == null || r.dispose(), (T = this.re) == null || T.dispose();
50905
50918
  }
50906
50919
  }
50907
50920
  w0(Base, "VisName", "base");
@@ -130866,7 +130879,7 @@ const objs$4 = zi(ai({}, objs$5), {
130866
130879
  color: "#000000"
130867
130880
  }), T = new MeshBasicMaterial({
130868
130881
  name: "侧面",
130869
- color: "#387f6b",
130882
+ color: "#051714",
130870
130883
  side: DoubleSide
130871
130884
  }), de = new it$1({
130872
130885
  color: new Color$1("#50766E"),
@@ -131065,7 +131078,7 @@ const objs$4 = zi(ai({}, objs$5), {
131065
131078
  show() {
131066
131079
  return q0(this, null, function* () {
131067
131080
  if (this.showState || this.options.disableInitShow) return;
131068
- l1(d1.prototype, this, "show").call(this);
131081
+ this.useSaveCamera(`map-${this.options.adcode}`), l1(d1.prototype, this, "show").call(this);
131069
131082
  const s = this.drawController.group;
131070
131083
  this.mapHistory[0] && (yield sinusoidalInOut({
131071
131084
  onUpdate: (r) => {
@@ -131281,41 +131294,41 @@ const objs$4 = zi(ai({}, objs$5), {
131281
131294
  }), st) {
131282
131295
  const Tt = this.options.plateInCenter && (this.mapHistory.length < 1 || this.options.drillDownPlateInCenter);
131283
131296
  if (Tt && this.fixNear(s), ($e = this.options.fixGeojson) != null && $e[s]) {
131284
- const a0 = (qe = this.options.fixGeojson) == null ? void 0 : qe[s];
131285
- if (a0.startsWith("-")) {
131286
- const m0 = +a0.slice(1);
131287
- st.features = st.features.filter((I0) => I0.properties.adcode !== m0);
131297
+ const r0 = (qe = this.options.fixGeojson) == null ? void 0 : qe[s];
131298
+ if (r0.startsWith("-")) {
131299
+ const a0 = +r0.slice(1);
131300
+ st.features = st.features.filter((m0) => m0.properties.adcode !== a0);
131288
131301
  }
131289
131302
  }
131290
- const Jt = this.options.bboxMap[s] || bbox(Zt || st), $t = !this.options.drillDownSecondLevelMats && this.mapHistory.length === 1 || !this.options.drillDownThirdLevelMats && this.mapHistory.length === 2;
131291
- this.eraseLabels(), this.map && (this.options.drillDownHideParent && this.parentBg.forEach((a0) => {
131292
- a0.hide();
131303
+ let Jt = this.options.bboxMap[s] || bbox(Zt || st);
131304
+ this.options.bboxMap[s] = Jt, this.mapHistory.length === 1 && !this.options.drillDownSecondLevelMats ? Jt = this.options.bboxMap[this.mapInfo.adcode] : this.mapHistory.length === 2 && !this.options.drillDownThirdLevelMats && (this.options.drillDownSecondLevelMats ? Jt = this.options.bboxMap[this.mapInfo.adcode] : Jt = this.options.bboxMap[this.mapHistory[0].mapInfo.adcode]), this.eraseLabels(), this.map && (this.options.drillDownHideParent && this.parentBg.forEach((r0) => {
131305
+ r0.hide();
131293
131306
  }), this.options.showOneLevel ? this.map.hide() : this.map.deactive(), (T != null ? T : this.options.handleBackKeepCamvasState) && this.saveBackCamvasState(-1));
131294
- const e0 = this.mapHistory.length, t0 = e0 - 1, i0 = this.getDepth(s, Jt), n0 = (rt = this.mapHistory[t0]) == null ? void 0 : rt.depth, s0 = e0 === 0 ? 0 : this.mapHistory[t0].z + (this.options.showOneLevel ? 0 : n0), d0 = e0 === 0 ? 0 : s0 - i0, u0 = center(st).geometry.coordinates, [G0, h0] = this.projection(u0), l0 = yield this.drawPlaneMap({
131307
+ const $t = this.mapHistory.length, e0 = $t - 1, t0 = this.getDepth(s, Jt), i0 = (rt = this.mapHistory[e0]) == null ? void 0 : rt.depth, n0 = $t === 0 ? 0 : this.mapHistory[e0].z + (this.options.showOneLevel ? 0 : i0), s0 = $t === 0 ? 0 : n0 - t0, d0 = center(st).geometry.coordinates, [u0, G0] = this.projection(d0), h0 = yield this.drawPlaneMap({
131295
131308
  geojson: st,
131296
131309
  extrudeLineGeojson: Zt,
131297
- depth: i0,
131298
- bbox: $t ? Object.values(this.options.bboxMap).pop() : Jt,
131310
+ depth: t0,
131311
+ bbox: Jt,
131299
131312
  adcode: s
131300
131313
  });
131301
- l0.position.setZ(d0), this.mapHistory.push({
131302
- map: l0,
131314
+ h0.position.setZ(s0), this.mapHistory.push({
131315
+ map: h0,
131303
131316
  mapInfo: Wt,
131304
- z: s0,
131305
- depth: i0,
131306
- cX: G0,
131307
- cY: -h0
131317
+ z: n0,
131318
+ depth: t0,
131319
+ cX: u0,
131320
+ cY: -G0
131308
131321
  });
131309
- const c0 = l0.position.z;
131310
- Tt && (l0.position.z = s0, this.fitTo(l0, {
131322
+ const l0 = h0.position.z;
131323
+ Tt && (h0.position.z = n0, this.fitTo(h0, {
131311
131324
  enableTransition: r !== 0
131312
- }), l0.position.z = c0), dt == null || dt.hide(), this.map && e0 !== 0 && (r ? yield sinusoidalInOut({
131313
- onUpdate: (a0) => {
131314
- this.map.position.z = c0 + (s0 - c0) * a0;
131325
+ }), h0.position.z = l0), dt == null || dt.hide(), this.map && $t !== 0 && (r ? yield sinusoidalInOut({
131326
+ onUpdate: (r0) => {
131327
+ this.map.position.z = l0 + (n0 - l0) * r0;
131315
131328
  }
131316
131329
  }).start({
131317
131330
  duration: r
131318
- }) : this.map.position.z = s0), this.drawLabels();
131331
+ }) : this.map.position.z = n0), this.drawLabels();
131319
131332
  } else
131320
131333
  console.log(`${Yt}的地图数据不存在`);
131321
131334
  this.event.emit("handleDrillDown", {
@@ -131344,22 +131357,12 @@ const objs$4 = zi(ai({}, objs$5), {
131344
131357
  azimuthAngle: T,
131345
131358
  enableTransition: de = !0
131346
131359
  } = {}) {
131347
- var Wt, Yt, st;
131348
- if (!(s != null && s.object3d)) return;
131349
- const Je = (Yt = this.options.lookAtMap) == null ? void 0 : Yt[(Wt = this.mapInfo) == null ? void 0 : Wt.adcode];
131350
- if (Je) {
131351
- const [Zt, vt, Tt, Jt, $t, e0] = Je;
131352
- yield (st = this.pencil.controls) == null ? void 0 : st.setLookAt(
131353
- Zt,
131354
- vt,
131355
- Tt,
131356
- Jt,
131357
- $t,
131358
- e0,
131359
- de
131360
- );
131360
+ var Wt;
131361
+ if (!(s != null && s.object3d) || (yield this.useSaveCamera(
131362
+ `map-${(Wt = this.mapInfo) == null ? void 0 : Wt.adcode}`,
131363
+ de
131364
+ )))
131361
131365
  return;
131362
- }
131363
131366
  const Ke = this.options.mapPadding, { height: Qe, width: _e } = this.pencil.getSize();
131364
131367
  Qe < Ke[0] + Ke[2] + 100 && (Ke[0] = 0, Ke[2] = 0), _e < Ke[1] + Ke[3] + 100 && (Ke[1] = 0, Ke[3] = 0);
131365
131368
  const $e = r || this.options.polarAngle, qe = T || this.options.azimuthAngle, rt = this.pencil.controls.azimuthAngle, dt = this.pencil.controls.polarAngle;
@@ -131410,6 +131413,7 @@ const objs$4 = zi(ai({}, objs$5), {
131410
131413
  depth: de,
131411
131414
  adcode: Xe
131412
131415
  }) {
131416
+ var Yt, st;
131413
131417
  const Ke = [
131414
131418
  this.mList.getMaterialObj("plane"),
131415
131419
  this.mList.getMaterialObj("secondPlane"),
@@ -131446,16 +131450,24 @@ const objs$4 = zi(ai({}, objs$5), {
131446
131450
  },
131447
131451
  this.group
131448
131452
  );
131449
- return this.mapHistory.length === 0 && (this.mList.setFixMeshList("area", ["plane#topMat", "plane#sideMat"], {
131450
- name: "板块"
131451
- }), this.mList.setFixMeshList("line", "plane#lineMat", {
131452
- name: "板块线"
131453
- }), Wt.extrudelineArr && Wt.extrudelineArr.forEach((Yt) => {
131454
- Yt.object3d.name = "板块边线", this.mList.setObject3d(Yt.object3d, "extrudeLine", {
131455
- baseObject: Yt,
131456
- replace: !0
131457
- }), this.initBaseObjectUserData(Yt);
131458
- })), Wt;
131453
+ if (this.mapHistory.length === 0)
131454
+ this.mList.setFixMeshList("area", ["plane#topMat", "plane#sideMat"], {
131455
+ name: "板块"
131456
+ }), this.mList.setFixMeshList("line", "plane#lineMat", {
131457
+ name: "板块线"
131458
+ }), Wt.extrudelineArr && Wt.extrudelineArr.forEach((Zt) => {
131459
+ Zt.object3d.name = "板块边线", this.mList.setObject3d(Zt.object3d, "extrudeLine", {
131460
+ baseObject: Zt,
131461
+ replace: !0
131462
+ }), this.initBaseObjectUserData(Zt);
131463
+ });
131464
+ else if (Wt.extrudelineArr) {
131465
+ const Zt = (st = (Yt = this.mapHistory[0].map.extrudelineArr) == null ? void 0 : Yt[0]) == null ? void 0 : st.object3d.userData.bloom;
131466
+ Zt && Wt.extrudelineArr.forEach((vt) => {
131467
+ this.initBaseObjectUserData(vt), vt.object3d.userData.bloom = Zt;
131468
+ });
131469
+ }
131470
+ return Wt;
131459
131471
  });
131460
131472
  }
131461
131473
  handleBack() {
@@ -132745,8 +132757,8 @@ const objs$2 = zi(ai({}, objs$5), {
132745
132757
  );
132746
132758
  const l0 = $t.projectionMatrix;
132747
132759
  Tt.x = (Math.sign(st.x) + l0.elements[8]) / l0.elements[0], Tt.y = (Math.sign(st.y) + l0.elements[9]) / l0.elements[5], Tt.z = -1, Tt.w = (1 + l0.elements[10]) / l0.elements[14], st.multiplyScalar(2 / st.dot(Tt)), l0.elements[2] = st.x, l0.elements[6] = st.y, l0.elements[10] = st.z + 1, l0.elements[14] = st.w, Je.setFromMatrixPosition(u0.matrixWorld);
132748
- const c0 = s0.getRenderTarget(), a0 = s0.xr.enabled, m0 = s0.shadowMap.autoUpdate;
132749
- c.visible = !1, s0.xr.enabled = !1, s0.shadowMap.autoUpdate = !1, s0.setRenderTarget(e0), s0.state.buffers.depth.setMask(!0), s0.autoClear === !1 && s0.clear(), s0.render(d0, $t), c.visible = !0, s0.xr.enabled = a0, s0.shadowMap.autoUpdate = m0, s0.setRenderTarget(c0);
132760
+ const r0 = s0.getRenderTarget(), a0 = s0.xr.enabled, m0 = s0.shadowMap.autoUpdate;
132761
+ c.visible = !1, s0.xr.enabled = !1, s0.shadowMap.autoUpdate = !1, s0.setRenderTarget(e0), s0.state.buffers.depth.setMask(!0), s0.autoClear === !1 && s0.clear(), s0.render(d0, $t), c.visible = !0, s0.xr.enabled = a0, s0.shadowMap.autoUpdate = m0, s0.setRenderTarget(r0);
132750
132762
  const I0 = u0.viewport;
132751
132763
  I0 !== void 0 && s0.state.viewport(I0);
132752
132764
  };
@@ -134018,7 +134030,7 @@ const objs = zi(ai({}, objs$5), {
134018
134030
  }
134019
134031
  initVis() {
134020
134032
  return q0(this, null, function* () {
134021
- yield Promise.all([
134033
+ const [s, r] = yield Promise.all([
134022
134034
  this.drawController.draw("Light", {
134023
134035
  type: "PointLight",
134024
134036
  intensity: 4,
@@ -134028,6 +134040,7 @@ const objs = zi(ai({}, objs$5), {
134028
134040
  }),
134029
134041
  this.drawController.draw("Earth")
134030
134042
  ]);
134043
+ yield this.pencil.controls.fitToBox(r.object3d, !1), s.position.copy(this.pencil.cameraPositon);
134031
134044
  });
134032
134045
  }
134033
134046
  show() {