@alxxsck/ai-assistant 3.12.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { l as Ni } from "./index-C2f2GZSd.js";
1
+ import { l as Fi } from "./index-BnH6SD6u.js";
2
2
  var Fr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
- const Ic = "182", Dd = 0, Ml = 1, Fd = 2, Jr = 1, Nd = 2, Xr = 3, ni = 0, Kt = 1, Dn = 2, ei = 0, hr = 1, Tl = 2, Al = 3, El = 4, Ud = 5, Di = 100, Od = 101, kd = 102, Bd = 103, zd = 104, Hd = 200, Gd = 201, Vd = 202, Wd = 203, So = 204, yo = 205, Xd = 206, jd = 207, qd = 208, Kd = 209, Yd = 210, Jd = 211, Qd = 212, Zd = 213, $d = 214, Mo = 0, To = 1, Ao = 2, mr = 3, Eo = 4, wo = 5, Ro = 6, Co = 7, Lc = 0, ef = 1, tf = 2, On = 0, Qu = 1, Zu = 2, $u = 3, eh = 4, th = 5, nh = 6, Dc = 7, wl = "attached", nf = "detached", ih = 300, Hi = 301, _r = 302, Po = 303, Io = 304, ga = 306, Nt = 1e3, Nn = 1001, ra = 1002, Tt = 1003, rh = 1004, jr = 1005, At = 1006, Ys = 1007, Zn = 1008, tn = 1009, sh = 1010, ah = 1011, rs = 1012, Fc = 1013, Bn = 1014, hn = 1015, ii = 1016, Nc = 1017, Uc = 1018, ss = 1020, oh = 35902, ch = 35899, lh = 1021, uh = 1022, dn = 1023, ri = 1026, Ui = 1027, Oc = 1028, kc = 1029, gr = 1030, Bc = 1031, zc = 1033, Js = 33776, Qs = 33777, Zs = 33778, $s = 33779, Lo = 35840, Do = 35841, Fo = 35842, No = 35843, Uo = 36196, Oo = 37492, ko = 37496, Bo = 37488, zo = 37489, Ho = 37490, Go = 37491, Vo = 37808, Wo = 37809, Xo = 37810, jo = 37811, qo = 37812, Ko = 37813, Yo = 37814, Jo = 37815, Qo = 37816, Zo = 37817, $o = 37818, ec = 37819, tc = 37820, nc = 37821, ic = 36492, rc = 36494, sc = 36495, ac = 36283, oc = 36284, cc = 36285, lc = 36286, hh = 2200, rf = 2201, sf = 2202, as = 2300, os = 2301, Ca = 2302, cr = 2400, lr = 2401, sa = 2402, Hc = 2500, af = 2501, of = 0, dh = 1, uc = 2, cf = 3200, Gc = 0, lf = 1, qt = "", _t = "srgb", Wt = "srgb-linear", aa = "linear", $e = "srgb", ji = 7680, Rl = 519, uf = 512, hf = 513, df = 514, Vc = 515, ff = 516, pf = 517, Wc = 518, mf = 519, hc = 35044, Cl = "300 es", Un = 2e3, oa = 2001;
3
+ const Ic = "182", Dd = 0, Ml = 1, Fd = 2, Jr = 1, Nd = 2, Xr = 3, ni = 0, Kt = 1, Dn = 2, ei = 0, hr = 1, Tl = 2, Al = 3, El = 4, Ud = 5, Li = 100, Od = 101, kd = 102, Bd = 103, zd = 104, Hd = 200, Gd = 201, Vd = 202, Wd = 203, So = 204, yo = 205, Xd = 206, jd = 207, qd = 208, Kd = 209, Yd = 210, Jd = 211, Qd = 212, Zd = 213, $d = 214, Mo = 0, To = 1, Ao = 2, mr = 3, Eo = 4, wo = 5, Ro = 6, Co = 7, Lc = 0, ef = 1, tf = 2, On = 0, Qu = 1, Zu = 2, $u = 3, eh = 4, th = 5, nh = 6, Dc = 7, wl = "attached", nf = "detached", ih = 300, Hi = 301, _r = 302, Po = 303, Io = 304, ga = 306, Nt = 1e3, Nn = 1001, ra = 1002, Tt = 1003, rh = 1004, jr = 1005, At = 1006, Ys = 1007, Zn = 1008, tn = 1009, sh = 1010, ah = 1011, rs = 1012, Fc = 1013, Bn = 1014, hn = 1015, ii = 1016, Nc = 1017, Uc = 1018, ss = 1020, oh = 35902, ch = 35899, lh = 1021, uh = 1022, dn = 1023, ri = 1026, Ni = 1027, Oc = 1028, kc = 1029, gr = 1030, Bc = 1031, zc = 1033, Js = 33776, Qs = 33777, Zs = 33778, $s = 33779, Lo = 35840, Do = 35841, Fo = 35842, No = 35843, Uo = 36196, Oo = 37492, ko = 37496, Bo = 37488, zo = 37489, Ho = 37490, Go = 37491, Vo = 37808, Wo = 37809, Xo = 37810, jo = 37811, qo = 37812, Ko = 37813, Yo = 37814, Jo = 37815, Qo = 37816, Zo = 37817, $o = 37818, ec = 37819, tc = 37820, nc = 37821, ic = 36492, rc = 36494, sc = 36495, ac = 36283, oc = 36284, cc = 36285, lc = 36286, hh = 2200, rf = 2201, sf = 2202, as = 2300, os = 2301, Ca = 2302, cr = 2400, lr = 2401, sa = 2402, Hc = 2500, af = 2501, of = 0, dh = 1, uc = 2, cf = 3200, Gc = 0, lf = 1, qt = "", _t = "srgb", Wt = "srgb-linear", aa = "linear", $e = "srgb", ji = 7680, Rl = 519, uf = 512, hf = 513, df = 514, Vc = 515, ff = 516, pf = 517, Wc = 518, mf = 519, hc = 35044, Cl = "300 es", Un = 2e3, oa = 2001;
4
4
  function fh(s) {
5
5
  for (let e = s.length - 1; e >= 0; --e)
6
6
  if (s[e] >= 65535) return !0;
@@ -4054,7 +4054,7 @@ class ai {
4054
4054
  intersectsTriangle(e) {
4055
4055
  if (this.isEmpty())
4056
4056
  return !1;
4057
- this.getCenter(Nr), ys.subVectors(this.max, Nr), Ki.subVectors(e.a, Nr), Yi.subVectors(e.b, Nr), Ji.subVectors(e.c, Nr), ci.subVectors(Yi, Ki), li.subVectors(Ji, Yi), Ai.subVectors(Ki, Ji);
4057
+ this.getCenter(Nr), ys.subVectors(this.max, Nr), Ki.subVectors(e.a, Nr), Yi.subVectors(e.b, Nr), Ji.subVectors(e.c, Nr), ci.subVectors(Yi, Ki), li.subVectors(Ji, Yi), Ti.subVectors(Ki, Ji);
4058
4058
  let t = [
4059
4059
  0,
4060
4060
  -ci.z,
@@ -4063,25 +4063,25 @@ class ai {
4063
4063
  -li.z,
4064
4064
  li.y,
4065
4065
  0,
4066
- -Ai.z,
4067
- Ai.y,
4066
+ -Ti.z,
4067
+ Ti.y,
4068
4068
  ci.z,
4069
4069
  0,
4070
4070
  -ci.x,
4071
4071
  li.z,
4072
4072
  0,
4073
4073
  -li.x,
4074
- Ai.z,
4074
+ Ti.z,
4075
4075
  0,
4076
- -Ai.x,
4076
+ -Ti.x,
4077
4077
  -ci.y,
4078
4078
  ci.x,
4079
4079
  0,
4080
4080
  -li.y,
4081
4081
  li.x,
4082
4082
  0,
4083
- -Ai.y,
4084
- Ai.x,
4083
+ -Ti.y,
4084
+ Ti.x,
4085
4085
  0
4086
4086
  ];
4087
4087
  return !Fa(t, Ki, Yi, Ji, ys) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Fa(t, Ki, Yi, Ji, ys)) ? !1 : (Ms.crossVectors(ci, li), t = [Ms.x, Ms.y, Ms.z], Fa(t, Ki, Yi, Ji, ys));
@@ -4196,11 +4196,11 @@ const Xn = [
4196
4196
  /* @__PURE__ */ new N(),
4197
4197
  /* @__PURE__ */ new N(),
4198
4198
  /* @__PURE__ */ new N()
4199
- ], gn = /* @__PURE__ */ new N(), Ss = /* @__PURE__ */ new ai(), Ki = /* @__PURE__ */ new N(), Yi = /* @__PURE__ */ new N(), Ji = /* @__PURE__ */ new N(), ci = /* @__PURE__ */ new N(), li = /* @__PURE__ */ new N(), Ai = /* @__PURE__ */ new N(), Nr = /* @__PURE__ */ new N(), ys = /* @__PURE__ */ new N(), Ms = /* @__PURE__ */ new N(), Ei = /* @__PURE__ */ new N();
4199
+ ], gn = /* @__PURE__ */ new N(), Ss = /* @__PURE__ */ new ai(), Ki = /* @__PURE__ */ new N(), Yi = /* @__PURE__ */ new N(), Ji = /* @__PURE__ */ new N(), ci = /* @__PURE__ */ new N(), li = /* @__PURE__ */ new N(), Ti = /* @__PURE__ */ new N(), Nr = /* @__PURE__ */ new N(), ys = /* @__PURE__ */ new N(), Ms = /* @__PURE__ */ new N(), Ai = /* @__PURE__ */ new N();
4200
4200
  function Fa(s, e, t, n, i) {
4201
4201
  for (let r = 0, a = s.length - 3; r <= a; r += 3) {
4202
- Ei.fromArray(s, r);
4203
- const o = i.x * Math.abs(Ei.x) + i.y * Math.abs(Ei.y) + i.z * Math.abs(Ei.z), l = e.dot(Ei), u = t.dot(Ei), d = n.dot(Ei);
4202
+ Ai.fromArray(s, r);
4203
+ const o = i.x * Math.abs(Ai.x) + i.y * Math.abs(Ai.y) + i.z * Math.abs(Ai.z), l = e.dot(Ai), u = t.dot(Ai), d = n.dot(Ai);
4204
4204
  if (Math.max(-Math.max(l, u, d), Math.min(l, u, d)) > o)
4205
4205
  return !1;
4206
4206
  }
@@ -7244,7 +7244,7 @@ class Tn extends Gi {
7244
7244
  * Constructs a new material.
7245
7245
  */
7246
7246
  constructor() {
7247
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Yf++ }), this.uuid = Mn(), this.name = "", this.type = "Material", this.blending = hr, this.side = ni, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = So, this.blendDst = yo, this.blendEquation = Di, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ce(0, 0, 0), this.blendAlpha = 0, this.depthFunc = mr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Rl, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ji, this.stencilZFail = ji, this.stencilZPass = ji, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7247
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Yf++ }), this.uuid = Mn(), this.name = "", this.type = "Material", this.blending = hr, this.side = ni, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = So, this.blendDst = yo, this.blendEquation = Li, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ce(0, 0, 0), this.blendAlpha = 0, this.depthFunc = mr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Rl, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ji, this.stencilZFail = ji, this.stencilZPass = ji, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7248
7248
  }
7249
7249
  /**
7250
7250
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7343,7 +7343,7 @@ class Tn extends Gi {
7343
7343
  generator: "Material.toJSON"
7344
7344
  }
7345
7345
  };
7346
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== hr && (n.blending = this.blending), this.side !== ni && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== So && (n.blendSrc = this.blendSrc), this.blendDst !== yo && (n.blendDst = this.blendDst), this.blendEquation !== Di && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== mr && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Rl && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== ji && (n.stencilFail = this.stencilFail), this.stencilZFail !== ji && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== ji && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7346
+ n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== hr && (n.blending = this.blending), this.side !== ni && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== So && (n.blendSrc = this.blendSrc), this.blendDst !== yo && (n.blendDst = this.blendDst), this.blendEquation !== Li && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== mr && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Rl && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== ji && (n.stencilFail = this.stencilFail), this.stencilZFail !== ji && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== ji && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7347
7347
  function i(r) {
7348
7348
  const a = [];
7349
7349
  for (const o in r) {
@@ -7405,7 +7405,7 @@ class Tn extends Gi {
7405
7405
  e === !0 && this.version++;
7406
7406
  }
7407
7407
  }
7408
- class Oi extends Tn {
7408
+ class Ui extends Tn {
7409
7409
  /**
7410
7410
  * Constructs a new mesh basic material.
7411
7411
  *
@@ -8314,7 +8314,7 @@ class _n extends Gi {
8314
8314
  this.dispatchEvent({ type: "dispose" });
8315
8315
  }
8316
8316
  }
8317
- const Vl = /* @__PURE__ */ new Fe(), wi = /* @__PURE__ */ new ba(), Ps = /* @__PURE__ */ new Gn(), Wl = /* @__PURE__ */ new N(), Is = /* @__PURE__ */ new N(), Ls = /* @__PURE__ */ new N(), Ds = /* @__PURE__ */ new N(), Ya = /* @__PURE__ */ new N(), Fs = /* @__PURE__ */ new N(), Xl = /* @__PURE__ */ new N(), Ns = /* @__PURE__ */ new N();
8317
+ const Vl = /* @__PURE__ */ new Fe(), Ei = /* @__PURE__ */ new ba(), Ps = /* @__PURE__ */ new Gn(), Wl = /* @__PURE__ */ new N(), Is = /* @__PURE__ */ new N(), Ls = /* @__PURE__ */ new N(), Ds = /* @__PURE__ */ new N(), Ya = /* @__PURE__ */ new N(), Fs = /* @__PURE__ */ new N(), Xl = /* @__PURE__ */ new N(), Ns = /* @__PURE__ */ new N();
8318
8318
  class Jt extends dt {
8319
8319
  /**
8320
8320
  * Constructs a new mesh.
@@ -8322,7 +8322,7 @@ class Jt extends dt {
8322
8322
  * @param {BufferGeometry} [geometry] - The mesh geometry.
8323
8323
  * @param {Material|Array<Material>} [material] - The mesh material.
8324
8324
  */
8325
- constructor(e = new _n(), t = new Oi()) {
8325
+ constructor(e = new _n(), t = new Ui()) {
8326
8326
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
8327
8327
  }
8328
8328
  copy(e, t) {
@@ -8375,7 +8375,7 @@ class Jt extends dt {
8375
8375
  */
8376
8376
  raycast(e, t) {
8377
8377
  const n = this.geometry, i = this.material, r = this.matrixWorld;
8378
- i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Ps.copy(n.boundingSphere), Ps.applyMatrix4(r), wi.copy(e.ray).recast(e.near), !(Ps.containsPoint(wi.origin) === !1 && (wi.intersectSphere(Ps, Wl) === null || wi.origin.distanceToSquared(Wl) > (e.far - e.near) ** 2)) && (Vl.copy(r).invert(), wi.copy(e.ray).applyMatrix4(Vl), !(n.boundingBox !== null && wi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, wi)));
8378
+ i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Ps.copy(n.boundingSphere), Ps.applyMatrix4(r), Ei.copy(e.ray).recast(e.near), !(Ps.containsPoint(Ei.origin) === !1 && (Ei.intersectSphere(Ps, Wl) === null || Ei.origin.distanceToSquared(Wl) > (e.far - e.near) ** 2)) && (Vl.copy(r).invert(), Ei.copy(e.ray).applyMatrix4(Vl), !(n.boundingBox !== null && Ei.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Ei)));
8379
8379
  }
8380
8380
  _computeIntersections(e, t, n) {
8381
8381
  let i;
@@ -8987,7 +8987,7 @@ class Sh extends kn {
8987
8987
  e.setRenderTarget(r);
8988
8988
  }
8989
8989
  }
8990
- class _i extends dt {
8990
+ class Oi extends dt {
8991
8991
  constructor() {
8992
8992
  super(), this.isGroup = !0, this.type = "Group";
8993
8993
  }
@@ -9006,7 +9006,7 @@ class Ja {
9006
9006
  * @return {Group} A group representing the hand space of the XR controller.
9007
9007
  */
9008
9008
  getHandSpace() {
9009
- return this._hand === null && (this._hand = new _i(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
9009
+ return this._hand === null && (this._hand = new Oi(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
9010
9010
  }
9011
9011
  /**
9012
9012
  * Returns a group representing the target ray space of the XR controller.
@@ -9014,7 +9014,7 @@ class Ja {
9014
9014
  * @return {Group} A group representing the target ray space of the XR controller.
9015
9015
  */
9016
9016
  getTargetRaySpace() {
9017
- return this._targetRay === null && (this._targetRay = new _i(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new N(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new N()), this._targetRay;
9017
+ return this._targetRay === null && (this._targetRay = new Oi(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new N(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new N()), this._targetRay;
9018
9018
  }
9019
9019
  /**
9020
9020
  * Returns a group representing the grip space of the XR controller.
@@ -9022,7 +9022,7 @@ class Ja {
9022
9022
  * @return {Group} A group representing the grip space of the XR controller.
9023
9023
  */
9024
9024
  getGripSpace() {
9025
- return this._grip === null && (this._grip = new _i(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new N(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new N()), this._grip;
9025
+ return this._grip === null && (this._grip = new Oi(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new N(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new N()), this._grip;
9026
9026
  }
9027
9027
  /**
9028
9028
  * Dispatches the given event to the groups representing
@@ -9104,7 +9104,7 @@ class Ja {
9104
9104
  */
9105
9105
  _getHandJoint(e, t) {
9106
9106
  if (e.joints[t.jointName] === void 0) {
9107
- const n = new _i();
9107
+ const n = new Oi();
9108
9108
  n.matrixAutoUpdate = !1, n.visible = !1, e.joints[t.jointName] = n, e.add(n);
9109
9109
  }
9110
9110
  return e.joints[t.jointName];
@@ -9942,7 +9942,7 @@ class hp extends Jt {
9942
9942
  }
9943
9943
  }
9944
9944
  const $a = /* @__PURE__ */ new N(), dp = /* @__PURE__ */ new N(), fp = /* @__PURE__ */ new Le();
9945
- class Li {
9945
+ class Ii {
9946
9946
  /**
9947
9947
  * Constructs a new plane.
9948
9948
  *
@@ -10152,7 +10152,7 @@ class Li {
10152
10152
  return new this.constructor().copy(this);
10153
10153
  }
10154
10154
  }
10155
- const Ri = /* @__PURE__ */ new Gn(), pp = /* @__PURE__ */ new Ge(0.5, 0.5), Bs = /* @__PURE__ */ new N();
10155
+ const wi = /* @__PURE__ */ new Gn(), pp = /* @__PURE__ */ new Ge(0.5, 0.5), Bs = /* @__PURE__ */ new N();
10156
10156
  class Qc {
10157
10157
  /**
10158
10158
  * Constructs a new frustum.
@@ -10164,7 +10164,7 @@ class Qc {
10164
10164
  * @param {Plane} [p4] - The fifth plane that encloses the frustum.
10165
10165
  * @param {Plane} [p5] - The sixth plane that encloses the frustum.
10166
10166
  */
10167
- constructor(e = new Li(), t = new Li(), n = new Li(), i = new Li(), r = new Li(), a = new Li()) {
10167
+ constructor(e = new Ii(), t = new Ii(), n = new Ii(), i = new Ii(), r = new Ii(), a = new Ii()) {
10168
10168
  this.planes = [e, t, n, i, r, a];
10169
10169
  }
10170
10170
  /**
@@ -10224,12 +10224,12 @@ class Qc {
10224
10224
  */
10225
10225
  intersectsObject(e) {
10226
10226
  if (e.boundingSphere !== void 0)
10227
- e.boundingSphere === null && e.computeBoundingSphere(), Ri.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);
10227
+ e.boundingSphere === null && e.computeBoundingSphere(), wi.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);
10228
10228
  else {
10229
10229
  const t = e.geometry;
10230
- t.boundingSphere === null && t.computeBoundingSphere(), Ri.copy(t.boundingSphere).applyMatrix4(e.matrixWorld);
10230
+ t.boundingSphere === null && t.computeBoundingSphere(), wi.copy(t.boundingSphere).applyMatrix4(e.matrixWorld);
10231
10231
  }
10232
- return this.intersectsSphere(Ri);
10232
+ return this.intersectsSphere(wi);
10233
10233
  }
10234
10234
  /**
10235
10235
  * Returns `true` if the given sprite is intersecting this frustum.
@@ -10238,9 +10238,9 @@ class Qc {
10238
10238
  * @return {boolean} Whether the sprite is intersecting this frustum or not.
10239
10239
  */
10240
10240
  intersectsSprite(e) {
10241
- Ri.center.set(0, 0, 0);
10241
+ wi.center.set(0, 0, 0);
10242
10242
  const t = pp.distanceTo(e.center);
10243
- return Ri.radius = 0.7071067811865476 + t, Ri.applyMatrix4(e.matrixWorld), this.intersectsSphere(Ri);
10243
+ return wi.radius = 0.7071067811865476 + t, wi.applyMatrix4(e.matrixWorld), this.intersectsSphere(wi);
10244
10244
  }
10245
10245
  /**
10246
10246
  * Returns `true` if the given bounding sphere is intersecting this frustum.
@@ -10552,7 +10552,7 @@ class us extends Pt {
10552
10552
  * @param {number} [depth=1] - The depth of the texture.
10553
10553
  */
10554
10554
  constructor(e, t, n = Bn, i, r, a, o = Tt, l = Tt, u, d = ri, c = 1) {
10555
- if (d !== ri && d !== Ui)
10555
+ if (d !== ri && d !== Ni)
10556
10556
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
10557
10557
  const h = { width: e, height: t, depth: c };
10558
10558
  super(h, i, r, a, o, l, d, n, u), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
@@ -18324,7 +18324,7 @@ Ln.physical = {
18324
18324
  vertexShader: De.meshphysical_vert,
18325
18325
  fragmentShader: De.meshphysical_frag
18326
18326
  };
18327
- const Xs = { r: 0, b: 0, g: 0 }, Ci = /* @__PURE__ */ new En(), Ng = /* @__PURE__ */ new Fe();
18327
+ const Xs = { r: 0, b: 0, g: 0 }, Ri = /* @__PURE__ */ new En(), Ng = /* @__PURE__ */ new Fe();
18328
18328
  function Ug(s, e, t, n, i, r, a) {
18329
18329
  const o = new Ce(0);
18330
18330
  let l = r === !0 ? 0 : 1, u, d, c = null, h = 0, f = null;
@@ -18360,7 +18360,7 @@ function Ug(s, e, t, n, i, r, a) {
18360
18360
  get: function() {
18361
18361
  return this.uniforms.envMap.value;
18362
18362
  }
18363
- }), i.update(d)), Ci.copy(y.backgroundRotation), Ci.x *= -1, Ci.y *= -1, Ci.z *= -1, T.isCubeTexture && T.isRenderTargetTexture === !1 && (Ci.y *= -1, Ci.z *= -1), d.material.uniforms.envMap.value = T, d.material.uniforms.flipEnvMap.value = T.isCubeTexture && T.isRenderTargetTexture === !1 ? -1 : 1, d.material.uniforms.backgroundBlurriness.value = y.backgroundBlurriness, d.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, d.material.uniforms.backgroundRotation.value.setFromMatrix4(Ng.makeRotationFromEuler(Ci)), d.material.toneMapped = Ve.getTransfer(T.colorSpace) !== $e, (c !== T || h !== T.version || f !== s.toneMapping) && (d.material.needsUpdate = !0, c = T, h = T.version, f = s.toneMapping), d.layers.enableAll(), S.unshift(d, d.geometry, d.material, 0, 0, null)) : T && T.isTexture && (u === void 0 && (u = new Jt(
18363
+ }), i.update(d)), Ri.copy(y.backgroundRotation), Ri.x *= -1, Ri.y *= -1, Ri.z *= -1, T.isCubeTexture && T.isRenderTargetTexture === !1 && (Ri.y *= -1, Ri.z *= -1), d.material.uniforms.envMap.value = T, d.material.uniforms.flipEnvMap.value = T.isCubeTexture && T.isRenderTargetTexture === !1 ? -1 : 1, d.material.uniforms.backgroundBlurriness.value = y.backgroundBlurriness, d.material.uniforms.backgroundIntensity.value = y.backgroundIntensity, d.material.uniforms.backgroundRotation.value.setFromMatrix4(Ng.makeRotationFromEuler(Ri)), d.material.toneMapped = Ve.getTransfer(T.colorSpace) !== $e, (c !== T || h !== T.version || f !== s.toneMapping) && (d.material.needsUpdate = !0, c = T, h = T.version, f = s.toneMapping), d.layers.enableAll(), S.unshift(d, d.geometry, d.material, 0, 0, null)) : T && T.isTexture && (u === void 0 && (u = new Jt(
18364
18364
  new xa(2, 2),
18365
18365
  new zn({
18366
18366
  name: "BackgroundMaterial",
@@ -18707,7 +18707,7 @@ function Bg(s, e, t, n) {
18707
18707
  function zg(s) {
18708
18708
  const e = this;
18709
18709
  let t = null, n = 0, i = !1, r = !1;
18710
- const a = new Li(), o = new Le(), l = { value: null, needsUpdate: !1 };
18710
+ const a = new Ii(), o = new Le(), l = { value: null, needsUpdate: !1 };
18711
18711
  this.uniform = l, this.numPlanes = 0, this.numIntersection = 0, this.init = function(c, h) {
18712
18712
  const f = c.length !== 0 || h || // enable state of previous frame - the clipping code has to
18713
18713
  // run another frame in order to reset the state:
@@ -18787,7 +18787,7 @@ function Hg(s) {
18787
18787
  dispose: r
18788
18788
  };
18789
18789
  }
18790
- const gi = 4, du = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Fi = 20, Gg = 256, Gr = /* @__PURE__ */ new va(), fu = /* @__PURE__ */ new Ce();
18790
+ const _i = 4, du = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Di = 20, Gg = 256, Gr = /* @__PURE__ */ new va(), fu = /* @__PURE__ */ new Ce();
18791
18791
  let io = null, ro = 0, so = 0, ao = !1;
18792
18792
  const Vg = /* @__PURE__ */ new N();
18793
18793
  class pu {
@@ -18911,7 +18911,7 @@ class pu {
18911
18911
  const l = new Ht(90, 1, t, n), u = [1, -1, 1, 1, 1, 1], d = [1, 1, 1, -1, -1, -1], c = this._renderer, h = c.autoClear, f = c.toneMapping;
18912
18912
  c.getClearColor(fu), c.toneMapping = On, c.autoClear = !1, c.state.buffers.depth.getReversed() && (c.setRenderTarget(i), c.clearDepth(), c.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new Jt(
18913
18913
  new ms(),
18914
- new Oi({
18914
+ new Ui({
18915
18915
  name: "PMREM.Background",
18916
18916
  side: Kt,
18917
18917
  depthWrite: !1,
@@ -18962,7 +18962,7 @@ class pu {
18962
18962
  _applyGGXFilter(e, t, n) {
18963
18963
  const i = this._renderer, r = this._pingPongRenderTarget, a = this._ggxMaterial, o = this._lodMeshes[n];
18964
18964
  o.material = a;
18965
- const l = a.uniforms, u = n / (this._lodMeshes.length - 1), d = t / (this._lodMeshes.length - 1), c = Math.sqrt(u * u - d * d), h = 0 + u * 1.25, f = c * h, { _lodMax: m } = this, g = this._sizeLods[n], _ = 3 * g * (n > m - gi ? n - m + gi : 0), p = 4 * (this._cubeSize - g);
18965
+ const l = a.uniforms, u = n / (this._lodMeshes.length - 1), d = t / (this._lodMeshes.length - 1), c = Math.sqrt(u * u - d * d), h = 0 + u * 1.25, f = c * h, { _lodMax: m } = this, g = this._sizeLods[n], _ = 3 * g * (n > m - _i ? n - m + _i : 0), p = 4 * (this._cubeSize - g);
18966
18966
  l.envMap.value = e.texture, l.roughness.value = f, l.mipInt.value = m - t, or(r, _, p, 3 * g, 2 * g), i.setRenderTarget(r), i.render(o, Gr), l.envMap.value = r.texture, l.roughness.value = 0, l.mipInt.value = m - n, or(e, _, p, 3 * g, 2 * g), i.setRenderTarget(e), i.render(o, Gr);
18967
18967
  }
18968
18968
  /**
@@ -19008,11 +19008,11 @@ class pu {
19008
19008
  );
19009
19009
  const d = 3, c = this._lodMeshes[i];
19010
19010
  c.material = u;
19011
- const h = u.uniforms, f = this._sizeLods[n] - 1, m = isFinite(r) ? Math.PI / (2 * f) : 2 * Math.PI / (2 * Fi - 1), g = r / m, _ = isFinite(r) ? 1 + Math.floor(d * g) : Fi;
19012
- _ > Fi && Me(`sigmaRadians, ${r}, is too large and will clip, as it requested ${_} samples when the maximum is set to ${Fi}`);
19011
+ const h = u.uniforms, f = this._sizeLods[n] - 1, m = isFinite(r) ? Math.PI / (2 * f) : 2 * Math.PI / (2 * Di - 1), g = r / m, _ = isFinite(r) ? 1 + Math.floor(d * g) : Di;
19012
+ _ > Di && Me(`sigmaRadians, ${r}, is too large and will clip, as it requested ${_} samples when the maximum is set to ${Di}`);
19013
19013
  const p = [];
19014
19014
  let b = 0;
19015
- for (let R = 0; R < Fi; ++R) {
19015
+ for (let R = 0; R < Di; ++R) {
19016
19016
  const I = R / g, v = Math.exp(-I * I / 2);
19017
19017
  p.push(v), R === 0 ? b += v : R < _ && (b += 2 * v);
19018
19018
  }
@@ -19021,19 +19021,19 @@ class pu {
19021
19021
  h.envMap.value = e.texture, h.samples.value = _, h.weights.value = p, h.latitudinal.value = a === "latitudinal", o && (h.poleAxis.value = o);
19022
19022
  const { _lodMax: S } = this;
19023
19023
  h.dTheta.value = m, h.mipInt.value = S - n;
19024
- const y = this._sizeLods[i], T = 3 * y * (i > S - gi ? i - S + gi : 0), E = 4 * (this._cubeSize - y);
19024
+ const y = this._sizeLods[i], T = 3 * y * (i > S - _i ? i - S + _i : 0), E = 4 * (this._cubeSize - y);
19025
19025
  or(t, T, E, 3 * y, 2 * y), l.setRenderTarget(t), l.render(c, Gr);
19026
19026
  }
19027
19027
  }
19028
19028
  function Wg(s) {
19029
19029
  const e = [], t = [], n = [];
19030
19030
  let i = s;
19031
- const r = s - gi + 1 + du.length;
19031
+ const r = s - _i + 1 + du.length;
19032
19032
  for (let a = 0; a < r; a++) {
19033
19033
  const o = Math.pow(2, i);
19034
19034
  e.push(o);
19035
19035
  let l = 1 / o;
19036
- a > s - gi ? l = du[a - s + gi - 1] : a === 0 && (l = 0), t.push(l);
19036
+ a > s - _i ? l = du[a - s + _i - 1] : a === 0 && (l = 0), t.push(l);
19037
19037
  const u = 1 / (o - 2), d = -u, c = 1 + u, h = [d, d, c, d, c, c, d, d, c, c, d, c], f = 6, m = 6, g = 3, _ = 2, p = 1, b = new Float32Array(g * m * f), S = new Float32Array(_ * m * f), y = new Float32Array(p * m * f);
19038
19038
  for (let E = 0; E < f; E++) {
19039
19039
  const R = E % 3 * 2 / 3 - 1, I = E > 2 ? 0 : -1, v = [
@@ -19061,7 +19061,7 @@ function Wg(s) {
19061
19061
  y.set(A, p * m * E);
19062
19062
  }
19063
19063
  const T = new _n();
19064
- T.setAttribute("position", new Vt(b, g)), T.setAttribute("uv", new Vt(S, _)), T.setAttribute("faceIndex", new Vt(y, p)), n.push(new Jt(T, null)), i > gi && i--;
19064
+ T.setAttribute("position", new Vt(b, g)), T.setAttribute("uv", new Vt(S, _)), T.setAttribute("faceIndex", new Vt(y, p)), n.push(new Jt(T, null)), i > _i && i--;
19065
19065
  }
19066
19066
  return { lodMeshes: n, sizeLods: e, sigmas: t };
19067
19067
  }
@@ -19205,11 +19205,11 @@ function Xg(s, e, t) {
19205
19205
  });
19206
19206
  }
19207
19207
  function jg(s, e, t) {
19208
- const n = new Float32Array(Fi), i = new N(0, 1, 0);
19208
+ const n = new Float32Array(Di), i = new N(0, 1, 0);
19209
19209
  return new zn({
19210
19210
  name: "SphericalGaussianBlur",
19211
19211
  defines: {
19212
- n: Fi,
19212
+ n: Di,
19213
19213
  CUBEUV_TEXEL_WIDTH: 1 / e,
19214
19214
  CUBEUV_TEXEL_HEIGHT: 1 / t,
19215
19215
  CUBEUV_MAX_MIP: `${s}.0`
@@ -21805,7 +21805,7 @@ function O0(s, e) {
21805
21805
  return m !== L ? (s.useProgram(L), m = L, !0) : !1;
21806
21806
  }
21807
21807
  const Rt = {
21808
- [Di]: s.FUNC_ADD,
21808
+ [Li]: s.FUNC_ADD,
21809
21809
  [Od]: s.FUNC_SUBTRACT,
21810
21810
  [kd]: s.FUNC_REVERSE_SUBTRACT
21811
21811
  };
@@ -21834,7 +21834,7 @@ function O0(s, e) {
21834
21834
  }
21835
21835
  if (g === !1 && (Q(s.BLEND), g = !0), L !== Ud) {
21836
21836
  if (L !== _ || Qe !== v) {
21837
- if ((p !== Di || y !== Di) && (s.blendEquation(s.FUNC_ADD), p = Di, y = Di), Qe)
21837
+ if ((p !== Li || y !== Li) && (s.blendEquation(s.FUNC_ADD), p = Li, y = Li), Qe)
21838
21838
  switch (L) {
21839
21839
  case hr:
21840
21840
  s.blendFuncSeparate(s.ONE, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
@@ -22284,7 +22284,7 @@ function k0(s, e, t, n, i, r, a) {
22284
22284
  let ie;
22285
22285
  const Oe = x.mipmaps, L = x.isVideoTexture !== !0, le = Se.__version === void 0 || Y === !0, ee = X.dataReady, de = T(x, $);
22286
22286
  if (x.isDepthTexture)
22287
- ve = y(x.format === Ui, x.type), le && (L ? t.texStorage2D(s.TEXTURE_2D, 1, ve, $.width, $.height) : t.texImage2D(s.TEXTURE_2D, 0, ve, $.width, $.height, 0, re, _e, null));
22287
+ ve = y(x.format === Ni, x.type), le && (L ? t.texStorage2D(s.TEXTURE_2D, 1, ve, $.width, $.height) : t.texImage2D(s.TEXTURE_2D, 0, ve, $.width, $.height, 0, re, _e, null));
22288
22288
  else if (x.isDataTexture)
22289
22289
  if (Oe.length > 0) {
22290
22290
  L && le && t.texStorage2D(s.TEXTURE_2D, de, ve, Oe[0].width, Oe[0].height);
@@ -22453,16 +22453,16 @@ function k0(s, e, t, n, i, r, a) {
22453
22453
  Y.__webglTexture = s.createTexture(), t.bindTexture(s.TEXTURE_CUBE_MAP, Y.__webglTexture), ke(s.TEXTURE_CUBE_MAP, x.depthTexture);
22454
22454
  const Re = r.convert(x.depthTexture.format), $ = r.convert(x.depthTexture.type);
22455
22455
  let re;
22456
- x.depthTexture.format === ri ? re = s.DEPTH_COMPONENT24 : x.depthTexture.format === Ui && (re = s.DEPTH24_STENCIL8);
22456
+ x.depthTexture.format === ri ? re = s.DEPTH_COMPONENT24 : x.depthTexture.format === Ni && (re = s.DEPTH24_STENCIL8);
22457
22457
  for (let _e = 0; _e < 6; _e++)
22458
22458
  s.texImage2D(s.TEXTURE_CUBE_MAP_POSITIVE_X + _e, 0, re, x.width, x.height, 0, Re, $, null);
22459
22459
  }
22460
22460
  } else
22461
22461
  W(x.depthTexture, 0);
22462
- const X = Y.__webglTexture, Se = P(x), ne = j ? s.TEXTURE_CUBE_MAP_POSITIVE_X + D : s.TEXTURE_2D, be = x.depthTexture.format === Ui ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT;
22462
+ const X = Y.__webglTexture, Se = P(x), ne = j ? s.TEXTURE_CUBE_MAP_POSITIVE_X + D : s.TEXTURE_2D, be = x.depthTexture.format === Ni ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT;
22463
22463
  if (x.depthTexture.format === ri)
22464
22464
  St(x) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, be, ne, X, 0, Se) : s.framebufferTexture2D(s.FRAMEBUFFER, be, ne, X, 0);
22465
- else if (x.depthTexture.format === Ui)
22465
+ else if (x.depthTexture.format === Ni)
22466
22466
  St(x) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, be, ne, X, 0, Se) : s.framebufferTexture2D(s.FRAMEBUFFER, be, ne, X, 0);
22467
22467
  else
22468
22468
  throw new Error("Unknown depthTexture format");
@@ -22660,7 +22660,7 @@ function B0(s, e) {
22660
22660
  if (n === uh) return s.RGB;
22661
22661
  if (n === dn) return s.RGBA;
22662
22662
  if (n === ri) return s.DEPTH_COMPONENT;
22663
- if (n === Ui) return s.DEPTH_STENCIL;
22663
+ if (n === Ni) return s.DEPTH_STENCIL;
22664
22664
  if (n === Oc) return s.RED;
22665
22665
  if (n === kc) return s.RED_INTEGER;
22666
22666
  if (n === gr) return s.RG;
@@ -22886,7 +22886,7 @@ class V0 extends Gi {
22886
22886
  if (i = q, i !== null) {
22887
22887
  if (S = e.getRenderTarget(), i.addEventListener("select", W), i.addEventListener("selectstart", W), i.addEventListener("selectend", W), i.addEventListener("squeeze", W), i.addEventListener("squeezestart", W), i.addEventListener("squeezeend", W), i.addEventListener("end", H), i.addEventListener("inputsourceschange", V), b.xrCompatible !== !0 && await t.makeXRCompatible(), I = e.getPixelRatio(), e.getSize(R), g && "createProjectionLayer" in XRWebGLBinding.prototype) {
22888
22888
  let pe = null, Ie = null, ge = null;
22889
- b.depth && (ge = b.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, pe = b.stencil ? Ui : ri, Ie = b.stencil ? ss : Bn);
22889
+ b.depth && (ge = b.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, pe = b.stencil ? Ni : ri, Ie = b.stencil ? ss : Bn);
22890
22890
  const je = {
22891
22891
  colorFormat: t.RGBA8,
22892
22892
  depthFormat: ge,
@@ -23057,7 +23057,7 @@ class V0 extends Gi {
23057
23057
  };
23058
23058
  }
23059
23059
  }
23060
- const Pi = /* @__PURE__ */ new En(), W0 = /* @__PURE__ */ new Fe();
23060
+ const Ci = /* @__PURE__ */ new En(), W0 = /* @__PURE__ */ new Fe();
23061
23061
  function X0(s, e) {
23062
23062
  function t(_, p) {
23063
23063
  _.matrixAutoUpdate === !0 && _.updateMatrix(), p.value.copy(_.matrix);
@@ -23071,7 +23071,7 @@ function X0(s, e) {
23071
23071
  function r(_, p) {
23072
23072
  _.opacity.value = p.opacity, p.color && _.diffuse.value.copy(p.color), p.emissive && _.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity), p.map && (_.map.value = p.map, t(p.map, _.mapTransform)), p.alphaMap && (_.alphaMap.value = p.alphaMap, t(p.alphaMap, _.alphaMapTransform)), p.bumpMap && (_.bumpMap.value = p.bumpMap, t(p.bumpMap, _.bumpMapTransform), _.bumpScale.value = p.bumpScale, p.side === Kt && (_.bumpScale.value *= -1)), p.normalMap && (_.normalMap.value = p.normalMap, t(p.normalMap, _.normalMapTransform), _.normalScale.value.copy(p.normalScale), p.side === Kt && _.normalScale.value.negate()), p.displacementMap && (_.displacementMap.value = p.displacementMap, t(p.displacementMap, _.displacementMapTransform), _.displacementScale.value = p.displacementScale, _.displacementBias.value = p.displacementBias), p.emissiveMap && (_.emissiveMap.value = p.emissiveMap, t(p.emissiveMap, _.emissiveMapTransform)), p.specularMap && (_.specularMap.value = p.specularMap, t(p.specularMap, _.specularMapTransform)), p.alphaTest > 0 && (_.alphaTest.value = p.alphaTest);
23073
23073
  const b = e.get(p), S = b.envMap, y = b.envMapRotation;
23074
- S && (_.envMap.value = S, Pi.copy(y), Pi.x *= -1, Pi.y *= -1, Pi.z *= -1, S.isCubeTexture && S.isRenderTargetTexture === !1 && (Pi.y *= -1, Pi.z *= -1), _.envMapRotation.value.setFromMatrix4(W0.makeRotationFromEuler(Pi)), _.flipEnvMap.value = S.isCubeTexture && S.isRenderTargetTexture === !1 ? -1 : 1, _.reflectivity.value = p.reflectivity, _.ior.value = p.ior, _.refractionRatio.value = p.refractionRatio), p.lightMap && (_.lightMap.value = p.lightMap, _.lightMapIntensity.value = p.lightMapIntensity, t(p.lightMap, _.lightMapTransform)), p.aoMap && (_.aoMap.value = p.aoMap, _.aoMapIntensity.value = p.aoMapIntensity, t(p.aoMap, _.aoMapTransform));
23074
+ S && (_.envMap.value = S, Ci.copy(y), Ci.x *= -1, Ci.y *= -1, Ci.z *= -1, S.isCubeTexture && S.isRenderTargetTexture === !1 && (Ci.y *= -1, Ci.z *= -1), _.envMapRotation.value.setFromMatrix4(W0.makeRotationFromEuler(Ci)), _.flipEnvMap.value = S.isCubeTexture && S.isRenderTargetTexture === !1 ? -1 : 1, _.reflectivity.value = p.reflectivity, _.ior.value = p.ior, _.refractionRatio.value = p.refractionRatio), p.lightMap && (_.lightMap.value = p.lightMap, _.lightMapIntensity.value = p.lightMapIntensity, t(p.lightMap, _.lightMapTransform)), p.aoMap && (_.aoMap.value = p.aoMap, _.aoMapIntensity.value = p.aoMapIntensity, t(p.aoMap, _.aoMapTransform));
23075
23075
  }
23076
23076
  function a(_, p) {
23077
23077
  _.diffuse.value.copy(p.color), _.opacity.value = p.opacity, p.map && (_.map.value = p.map, t(p.map, _.mapTransform));
@@ -23920,7 +23920,7 @@ class Y0 {
23920
23920
  }, this.clearStencil = function() {
23921
23921
  this.clear(!1, !1, !0);
23922
23922
  }, this.dispose = function() {
23923
- t.removeEventListener("webglcontextlost", Pe, !1), t.removeEventListener("webglcontextrestored", ot, !1), t.removeEventListener("webglcontextcreationerror", Qe, !1), ie.dispose(), $.dispose(), re.dispose(), x.dispose(), j.dispose(), Y.dispose(), ne.dispose(), de.dispose(), Z.dispose(), be.dispose(), te.dispose(), te.removeEventListener("sessionstart", _l), te.removeEventListener("sessionend", gl), Mi.stop();
23923
+ t.removeEventListener("webglcontextlost", Pe, !1), t.removeEventListener("webglcontextrestored", ot, !1), t.removeEventListener("webglcontextcreationerror", Qe, !1), ie.dispose(), $.dispose(), re.dispose(), x.dispose(), j.dispose(), Y.dispose(), ne.dispose(), de.dispose(), Z.dispose(), be.dispose(), te.dispose(), te.removeEventListener("sessionstart", _l), te.removeEventListener("sessionend", gl), yi.stop();
23924
23924
  };
23925
23925
  function Pe(M) {
23926
23926
  M.preventDefault(), ca("WebGLRenderer: Context Lost."), A = !0;
@@ -24029,14 +24029,14 @@ class Y0 {
24029
24029
  Ea && Ea(M);
24030
24030
  }
24031
24031
  function _l() {
24032
- Mi.stop();
24032
+ yi.stop();
24033
24033
  }
24034
24034
  function gl() {
24035
- Mi.start();
24035
+ yi.start();
24036
24036
  }
24037
- const Mi = new Dh();
24038
- Mi.setAnimationLoop(Ed), typeof self < "u" && Mi.setContext(self), this.setAnimationLoop = function(M) {
24039
- Ea = M, te.setAnimationLoop(M), M === null ? Mi.stop() : Mi.start();
24037
+ const yi = new Dh();
24038
+ yi.setAnimationLoop(Ed), typeof self < "u" && yi.setContext(self), this.setAnimationLoop = function(M) {
24039
+ Ea = M, te.setAnimationLoop(M), M === null ? yi.stop() : yi.start();
24040
24040
  }, te.addEventListener("sessionstart", _l), te.addEventListener("sessionend", gl), this.render = function(M, F) {
24041
24041
  if (F !== void 0 && F.isCamera !== !0) {
24042
24042
  we("WebGLRenderer.render: camera is not an instance of THREE.Camera.");
@@ -24210,8 +24210,8 @@ class Y0 {
24210
24210
  if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && Oe.update(O, G, Qt), (Zt || Ae.receiveShadow !== O.receiveShadow) && (Ae.receiveShadow = O.receiveShadow, ct.setValue(P, "receiveShadow", O.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (Xt.envMap.value = me, Xt.flipEnvMap.value = me.isCubeTexture && me.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && F.environment !== null && (Xt.envMapIntensity.value = F.environmentIntensity), Xt.dfgLUT !== void 0 && (Xt.dfgLUT.value = K0()), Zt && (ct.setValue(P, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Rd(Xt, Dr), se && z.fog === !0 && Re.refreshFogUniforms(Xt, se), Re.refreshMaterialUniforms(Xt, z, Ne, ke, T.state.transmissionRenderTarget[M.id]), ea.upload(P, Sl(Ae), Xt, D)), z.isShaderMaterial && z.uniformsNeedUpdate === !0 && (ea.upload(P, Sl(Ae), Xt, D), z.uniformsNeedUpdate = !1), z.isSpriteMaterial && ct.setValue(P, "center", O.center), ct.setValue(P, "modelViewMatrix", O.modelViewMatrix), ct.setValue(P, "normalMatrix", O.normalMatrix), ct.setValue(P, "modelMatrix", O.matrixWorld), z.isShaderMaterial || z.isRawShaderMaterial) {
24211
24211
  const kt = z.uniformsGroups;
24212
24212
  for (let jt = 0, Ra = kt.length; jt < Ra; jt++) {
24213
- const Ti = kt[jt];
24214
- Z.update(Ti, Qt), Z.bind(Ti, Qt);
24213
+ const Mi = kt[jt];
24214
+ Z.update(Mi, Qt), Z.bind(Mi, Qt);
24215
24215
  }
24216
24216
  }
24217
24217
  return Qt;
@@ -24345,8 +24345,8 @@ class Y0 {
24345
24345
  if (M.isDepthTexture) {
24346
24346
  const an = x.get(M), kt = x.get(F), jt = x.get(an.__renderTarget), Ra = x.get(kt.__renderTarget);
24347
24347
  xe.bindFramebuffer(P.READ_FRAMEBUFFER, jt.__webglFramebuffer), xe.bindFramebuffer(P.DRAW_FRAMEBUFFER, Ra.__webglFramebuffer);
24348
- for (let Ti = 0; Ti < me; Ti++)
24349
- ct && (P.framebufferTextureLayer(P.READ_FRAMEBUFFER, P.COLOR_ATTACHMENT0, x.get(M).__webglTexture, O, Te + Ti), P.framebufferTextureLayer(P.DRAW_FRAMEBUFFER, P.COLOR_ATTACHMENT0, x.get(F).__webglTexture, se, gt + Ti)), P.blitFramebuffer(ye, Ee, fe, ce, Be, tt, fe, ce, P.DEPTH_BUFFER_BIT, P.NEAREST);
24348
+ for (let Mi = 0; Mi < me; Mi++)
24349
+ ct && (P.framebufferTextureLayer(P.READ_FRAMEBUFFER, P.COLOR_ATTACHMENT0, x.get(M).__webglTexture, O, Te + Mi), P.framebufferTextureLayer(P.DRAW_FRAMEBUFFER, P.COLOR_ATTACHMENT0, x.get(F).__webglTexture, se, gt + Mi)), P.blitFramebuffer(ye, Ee, fe, ce, Be, tt, fe, ce, P.DEPTH_BUFFER_BIT, P.NEAREST);
24350
24350
  xe.bindFramebuffer(P.READ_FRAMEBUFFER, null), xe.bindFramebuffer(P.DRAW_FRAMEBUFFER, null);
24351
24351
  } else if (O !== 0 || M.isRenderTargetTexture || x.has(M)) {
24352
24352
  const an = x.get(M), kt = x.get(F);
@@ -25630,7 +25630,7 @@ var Mr = {
25630
25630
  kill: !1
25631
25631
  }, cx = {
25632
25632
  suppressEvents: !0
25633
- }, al = {}, xi = [], vc = {}, qh, un = {}, ho = {}, Ou = 30, na = [], ol = "", cl = function(e) {
25633
+ }, al = {}, bi = [], vc = {}, qh, un = {}, ho = {}, Ou = 30, na = [], ol = "", cl = function(e) {
25634
25634
  var t = e[0], n, i;
25635
25635
  if (Hn(t) || xt(t) || (e = [e]), !(n = (t._gsap || {}).harness)) {
25636
25636
  for (i = na.length; i-- && !na[i].targetTest(t); )
@@ -25658,13 +25658,13 @@ var Mr = {
25658
25658
  ;
25659
25659
  return i < n;
25660
25660
  }, da = function() {
25661
- var e = xi.length, t = xi.slice(0), n, i;
25662
- for (vc = {}, xi.length = 0, n = 0; n < e; n++)
25661
+ var e = bi.length, t = bi.slice(0), n, i;
25662
+ for (vc = {}, bi.length = 0, n = 0; n < e; n++)
25663
25663
  i = t[n], i && i._lazy && (i.render(i._lazy[0], i._lazy[1], !0)._lazy = 0);
25664
25664
  }, ll = function(e) {
25665
25665
  return !!(e._initted || e._startAt || e.add);
25666
25666
  }, Yh = function(e, t, n, i) {
25667
- xi.length && !Lt && da(), e.render(t, n, !!(Lt && t < 0 && ll(e))), xi.length && !Lt && da();
25667
+ bi.length && !Lt && da(), e.render(t, n, !!(Lt && t < 0 && ll(e))), bi.length && !Lt && da();
25668
25668
  }, Jh = function(e) {
25669
25669
  var t = parseFloat(e);
25670
25670
  return (t || t === 0) && (e + "").match(sx).length < 2 ? t : Ot(e) ? e.trim() : e;
@@ -25712,7 +25712,7 @@ var Mr = {
25712
25712
  n === void 0 && (n = "_first"), i === void 0 && (i = "_last");
25713
25713
  var r = t._prev, a = t._next;
25714
25714
  r ? r._next = a : e[n] === t && (e[n] = a), a ? a._prev = r : e[i] === t && (e[i] = r), t._next = t._prev = t.parent = null;
25715
- }, vi = function(e, t) {
25715
+ }, xi = function(e, t) {
25716
25716
  e.parent && (!t || e.parent.autoRemoveChildren) && e.parent.remove && e.parent.remove(e), e._act = 0;
25717
25717
  }, ki = function(e, t) {
25718
25718
  if (e && (!t || t._end > e._dur || t._start < 0))
@@ -25748,14 +25748,14 @@ var Mr = {
25748
25748
  e._zTime = -st;
25749
25749
  }
25750
25750
  }, Fn = function(e, t, n, i) {
25751
- return t.parent && vi(t), t._start = pt((si(n) ? n : n || e !== mt ? cn(e, n, t) : e._time) + t._delay), t._end = pt(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Zh(e, t, "_first", "_last", e._sort ? "_start" : 0), yc(t) || (e._recent = t), i || $h(e, t), e._ts < 0 && Aa(e, e._tTime), e;
25751
+ return t.parent && xi(t), t._start = pt((si(n) ? n : n || e !== mt ? cn(e, n, t) : e._time) + t._delay), t._end = pt(t._start + (t.totalDuration() / Math.abs(t.timeScale()) || 0)), Zh(e, t, "_first", "_last", e._sort ? "_start" : 0), yc(t) || (e._recent = t), i || $h(e, t), e._ts < 0 && Aa(e, e._tTime), e;
25752
25752
  }, ed = function(e, t) {
25753
25753
  return (rn.ScrollTrigger || Xh("scrollTrigger", t)) && rn.ScrollTrigger.create(t, e);
25754
25754
  }, td = function(e, t, n, i, r) {
25755
25755
  if (dl(e, t, r), !e._initted)
25756
25756
  return 1;
25757
25757
  if (!n && e._pt && !Lt && (e._dur && e.vars.lazy !== !1 || !e._dur && e.vars.lazy) && qh !== yn.frame)
25758
- return xi.push(e), e._lazy = [r, i], 1;
25758
+ return bi.push(e), e._lazy = [r, i], 1;
25759
25759
  }, _x = function s(e) {
25760
25760
  var t = e.parent;
25761
25761
  return t && t._ts && t._initted && !t._lock && (t.rawTime() < 0 || s(t));
@@ -25769,7 +25769,7 @@ var Mr = {
25769
25769
  return;
25770
25770
  for (c = e._zTime, e._zTime = t || (n ? st : 0), n || (n = t && !c), e.ratio = a, e._from && (a = 1 - a), e._time = 0, e._tTime = l, u = e._pt; u; )
25771
25771
  u.r(a, u.d), u = u._next;
25772
- t < 0 && Sc(e, t, n, !0), e._onUpdate && !n && nn(e, "onUpdate"), l && e._repeat && !n && e.parent && nn(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && vi(e, 1), !n && !Lt && (nn(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
25772
+ t < 0 && Sc(e, t, n, !0), e._onUpdate && !n && nn(e, "onUpdate"), l && e._repeat && !n && e.parent && nn(e, "onRepeat"), (t >= e._tDur || t < 0) && e.ratio === a && (a && xi(e, 1), !n && !Lt && (nn(e, a ? "onComplete" : "onReverseComplete", !0), e._prom && e._prom()));
25773
25773
  } else e._zTime || (e._zTime = t);
25774
25774
  }, bx = function(e, t, n) {
25775
25775
  var i;
@@ -25805,14 +25805,14 @@ var Mr = {
25805
25805
  a.immediateRender = Yt(o.immediateRender), e < 2 ? a.runBackwards = 1 : a.startAt = t[r - 1];
25806
25806
  }
25807
25807
  return new Mt(t[0], a, t[r + 1]);
25808
- }, yi = function(e, t) {
25808
+ }, Si = function(e, t) {
25809
25809
  return e || e === 0 ? t(e) : t;
25810
25810
  }, bs = function(e, t, n) {
25811
25811
  return n < e ? e : n > t ? t : n;
25812
- }, Si = function(e, t) {
25812
+ }, vi = function(e, t) {
25813
25813
  return !Ot(e) || !(t = ax.exec(e)) ? "" : t[1];
25814
25814
  }, vx = function(e, t, n) {
25815
- return yi(n, function(i) {
25815
+ return Si(n, function(i) {
25816
25816
  return bs(e, t, i);
25817
25817
  });
25818
25818
  }, Mc = [].slice, nd = function(e, t) {
@@ -25853,7 +25853,7 @@ var Mr = {
25853
25853
  }
25854
25854
  for (_ = a[g] = [], p = l ? Math.min(v, g) * d - 0.5 : i % v, b = v === fn ? 0 : l ? g * c / v - 0.5 : i / v | 0, R = 0, I = fn, E = 0; E < g; E++)
25855
25855
  S = E % v - p, y = b - (E / v | 0), _[E] = T = u ? Math.abs(u === "y" ? y : S) : Bh(S * S + y * y), T > R && (R = T), T < I && (I = T);
25856
- i === "random" && id(_), _.max = R - I, _.min = I, _.v = g = (parseFloat(t.amount) || parseFloat(t.each) * (v > g ? g - 1 : u ? u === "y" ? g / v : v : Math.max(v, g / v)) || 0) * (i === "edges" ? -1 : 1), _.b = g < 0 ? r - g : r, _.u = Si(t.amount || t.each) || 0, n = n && g < 0 ? fd(n) : n;
25856
+ i === "random" && id(_), _.max = R - I, _.min = I, _.v = g = (parseFloat(t.amount) || parseFloat(t.each) * (v > g ? g - 1 : u ? u === "y" ? g / v : v : Math.max(v, g / v)) || 0) * (i === "edges" ? -1 : 1), _.b = g < 0 ? r - g : r, _.u = vi(t.amount || t.each) || 0, n = n && g < 0 ? fd(n) : n;
25857
25857
  }
25858
25858
  return g = (_[h] - _.min) / _.max || 0, pt(_.b + (n ? n(g) : g) * _.v) + _.u;
25859
25859
  };
@@ -25861,19 +25861,19 @@ var Mr = {
25861
25861
  var t = Math.pow(10, ((e + "").split(".")[1] || "").length);
25862
25862
  return function(n) {
25863
25863
  var i = pt(Math.round(parseFloat(n) / e) * e * t);
25864
- return (i - i % 1) / t + (si(n) ? 0 : Si(n));
25864
+ return (i - i % 1) / t + (si(n) ? 0 : vi(n));
25865
25865
  };
25866
25866
  }, sd = function(e, t) {
25867
25867
  var n = Ut(e), i, r;
25868
- return !n && Hn(e) && (i = n = e.radius || fn, e.values ? (e = pn(e.values), (r = !si(e[0])) && (i *= i)) : e = Ac(e.increment)), yi(t, n ? xt(e) ? function(a) {
25868
+ return !n && Hn(e) && (i = n = e.radius || fn, e.values ? (e = pn(e.values), (r = !si(e[0])) && (i *= i)) : e = Ac(e.increment)), Si(t, n ? xt(e) ? function(a) {
25869
25869
  return r = e(a), Math.abs(r - a) <= i ? r : a;
25870
25870
  } : function(a) {
25871
25871
  for (var o = parseFloat(r ? a.x : a), l = parseFloat(r ? a.y : 0), u = fn, d = 0, c = e.length, h, f; c--; )
25872
25872
  r ? (h = e[c].x - o, f = e[c].y - l, h = h * h + f * f) : h = Math.abs(e[c] - o), h < u && (u = h, d = c);
25873
- return d = !i || u <= i ? e[d] : a, r || d === a || si(a) ? d : d + Si(a);
25873
+ return d = !i || u <= i ? e[d] : a, r || d === a || si(a) ? d : d + vi(a);
25874
25874
  } : Ac(e));
25875
25875
  }, ad = function(e, t, n, i) {
25876
- return yi(Ut(e) ? !t : n === !0 ? !!(n = 0) : !i, function() {
25876
+ return Si(Ut(e) ? !t : n === !0 ? !!(n = 0) : !i, function() {
25877
25877
  return Ut(e) ? e[~~(Math.random() * e.length)] : (n = n || 1e-5) && (i = n < 1 ? Math.pow(10, (n + "").length - 2) : 1) && Math.floor(Math.round((e - n / 2 + Math.random() * (t - e + n * 0.99)) / n) * n * i) / i;
25878
25878
  });
25879
25879
  }, yx = function() {
@@ -25886,22 +25886,22 @@ var Mr = {
25886
25886
  };
25887
25887
  }, Mx = function(e, t) {
25888
25888
  return function(n) {
25889
- return e(parseFloat(n)) + (t || Si(n));
25889
+ return e(parseFloat(n)) + (t || vi(n));
25890
25890
  };
25891
25891
  }, Tx = function(e, t, n) {
25892
25892
  return cd(e, t, 0, 1, n);
25893
25893
  }, od = function(e, t, n) {
25894
- return yi(n, function(i) {
25894
+ return Si(n, function(i) {
25895
25895
  return e[~~t(i)];
25896
25896
  });
25897
25897
  }, Ax = function s(e, t, n) {
25898
25898
  var i = t - e;
25899
- return Ut(e) ? od(e, s(0, e.length), t) : yi(n, function(r) {
25899
+ return Ut(e) ? od(e, s(0, e.length), t) : Si(n, function(r) {
25900
25900
  return (i + (r - e) % i) % i + e;
25901
25901
  });
25902
25902
  }, Ex = function s(e, t, n) {
25903
25903
  var i = t - e, r = i * 2;
25904
- return Ut(e) ? od(e, s(0, e.length - 1), t) : yi(n, function(a) {
25904
+ return Ut(e) ? od(e, s(0, e.length - 1), t) : Si(n, function(a) {
25905
25905
  return a = (r + (a - e) % r) % r || 0, e + (a > i ? r - a : a);
25906
25906
  });
25907
25907
  }, ul = function(e) {
@@ -25911,7 +25911,7 @@ var Mr = {
25911
25911
  });
25912
25912
  }, cd = function(e, t, n, i, r) {
25913
25913
  var a = t - e, o = i - n;
25914
- return yi(r, function(l) {
25914
+ return Si(r, function(l) {
25915
25915
  return n + ((l - e) / a * o || 0);
25916
25916
  });
25917
25917
  }, wx = function s(e, t, n, i) {
@@ -25943,7 +25943,7 @@ var Mr = {
25943
25943
  };
25944
25944
  }
25945
25945
  }
25946
- return yi(n, r);
25946
+ return Si(n, r);
25947
25947
  }, Hu = function(e, t, n) {
25948
25948
  var i = e.labels, r = fn, a, o, l;
25949
25949
  for (a in i)
@@ -25952,9 +25952,9 @@ var Mr = {
25952
25952
  }, nn = function(e, t, n) {
25953
25953
  var i = e.vars, r = i[t], a = ht, o = e._ctx, l, u, d;
25954
25954
  if (r)
25955
- return l = i[t + "Params"], u = i.callbackScope || e, n && xi.length && da(), o && (ht = o), d = l ? r.apply(u, l) : r.call(u), ht = a, d;
25955
+ return l = i[t + "Params"], u = i.callbackScope || e, n && bi.length && da(), o && (ht = o), d = l ? r.apply(u, l) : r.call(u), ht = a, d;
25956
25956
  }, Kr = function(e) {
25957
- return vi(e), e.scrollTrigger && e.scrollTrigger.kill(!!Lt), e.progress() < 1 && nn(e, "onInterrupt"), e;
25957
+ return xi(e), e.scrollTrigger && e.scrollTrigger.kill(!!Lt), e.progress() < 1 && nn(e, "onInterrupt"), e;
25958
25958
  }, ur, ld = [], ud = function(e) {
25959
25959
  if (e)
25960
25960
  if (e = !e.name && e.default || e, rl() || e.headless) {
@@ -26392,7 +26392,7 @@ var Gt = /* @__PURE__ */ (function(s) {
26392
26392
  }
26393
26393
  if (b && !r && (this.pause(), b.render(h >= o ? 0 : -st)._zTime = h >= o ? 1 : -1, this._ts))
26394
26394
  return this._start = y, Ta(this), this.render(i, r, a);
26395
- this._onUpdate && !r && nn(this, "onUpdate", !0), (d === l && this._tTime >= this.totalDuration() || !d && o) && (y === this._start || Math.abs(S) !== Math.abs(this._ts)) && (this._lock || ((i || !u) && (d === l && this._ts > 0 || !d && this._ts < 0) && vi(this, 1), !r && !(i < 0 && !o) && (d || o || !l) && (nn(this, d === l && i >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(d < l && this.timeScale() > 0) && this._prom())));
26395
+ this._onUpdate && !r && nn(this, "onUpdate", !0), (d === l && this._tTime >= this.totalDuration() || !d && o) && (y === this._start || Math.abs(S) !== Math.abs(this._ts)) && (this._lock || ((i || !u) && (d === l && this._ts > 0 || !d && this._ts < 0) && xi(this, 1), !r && !(i < 0 && !o) && (d || o || !l) && (nn(this, d === l && i >= 0 ? "onComplete" : "onReverseComplete", !0), this._prom && !(d < l && this.timeScale() > 0) && this._prom())));
26396
26396
  }
26397
26397
  return this;
26398
26398
  }, t.add = function(i, r) {
@@ -26433,14 +26433,14 @@ var Gt = /* @__PURE__ */ (function(s) {
26433
26433
  }, t.removePause = function(i) {
26434
26434
  var r = this._first;
26435
26435
  for (i = cn(this, i); r; )
26436
- r._start === i && r.data === "isPause" && vi(r), r = r._next;
26436
+ r._start === i && r.data === "isPause" && xi(r), r = r._next;
26437
26437
  }, t.killTweensOf = function(i, r, a) {
26438
26438
  for (var o = this.getTweensOf(i, a), l = o.length; l--; )
26439
- bi !== o[l] && o[l].kill(i, r);
26439
+ gi !== o[l] && o[l].kill(i, r);
26440
26440
  return this;
26441
26441
  }, t.getTweensOf = function(i, r) {
26442
26442
  for (var a = [], o = pn(i), l = this._first, u = si(r), d; l; )
26443
- l instanceof Mt ? hx(l._targets, o) && (u ? (!bi || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && a.push(l) : (d = l.getTweensOf(o, r)).length && a.push.apply(a, d), l = l._next;
26443
+ l instanceof Mt ? hx(l._targets, o) && (u ? (!gi || l._initted && l._ts) && l.globalTime(0) <= r && l.globalTime(l.totalDuration()) > r : !r || l.isActive()) && a.push(l) : (d = l.getTweensOf(o, r)).length && a.push.apply(a, d), l = l._next;
26444
26444
  return a;
26445
26445
  }, t.tweenTo = function(i, r) {
26446
26446
  r = r || {};
@@ -26535,7 +26535,7 @@ var Ux = function(e, t, n, i, r, a, o) {
26535
26535
  }, hl = function(e, t, n, i, r, a, o, l, u, d) {
26536
26536
  xt(i) && (i = i(r || 0, e, a));
26537
26537
  var c = e[t], h = n !== "get" ? n : xt(c) ? u ? e[t.indexOf("set") || !xt(e["get" + t.substr(3)]) ? t : "get" + t.substr(3)](u) : e[t]() : c, f = xt(c) ? u ? Gx : bd : fl, m;
26538
- if (Ot(i) && (~i.indexOf("random(") && (i = ul(i)), i.charAt(1) === "=" && (m = Kh(h, i) + (Si(h) || 0), (m || m === 0) && (i = m))), !d || h !== i || Ec)
26538
+ if (Ot(i) && (~i.indexOf("random(") && (i = ul(i)), i.charAt(1) === "=" && (m = Kh(h, i) + (vi(h) || 0), (m || m === 0) && (i = m))), !d || h !== i || Ec)
26539
26539
  return !isNaN(h * i) && i !== "" ? (m = new Lr(this._pt, e, t, +h || 0, i - (h || 0), typeof c == "boolean" ? Wx : vd, 0, f), u && (m.fp = u), o && m.modifier(o, this, e), this._pt = m) : (!c && !(t in e) && Xh(t, i), Ux.call(this, e, t, h, i, f, l || Mr.stringFilter, u));
26540
26540
  }, Ox = function(e, t, n, i, r) {
26541
26541
  if (xt(e) && (e = is(e, r, t, n, i)), !Hn(e) || e.style && e.nodeType || Ut(e) || Hh(e))
@@ -26550,11 +26550,11 @@ var Ux = function(e, t, n, i, r, a, o) {
26550
26550
  for (u = n._ptLookup[n._targets.indexOf(r)], d = o._props.length; d--; )
26551
26551
  u[o._props[d]] = l;
26552
26552
  return o;
26553
- }, bi, Ec, dl = function s(e, t, n) {
26553
+ }, gi, Ec, dl = function s(e, t, n) {
26554
26554
  var i = e.vars, r = i.ease, a = i.startAt, o = i.immediateRender, l = i.lazy, u = i.onUpdate, d = i.runBackwards, c = i.yoyoEase, h = i.keyframes, f = i.autoRevert, m = e._dur, g = e._startAt, _ = e._targets, p = e.parent, b = p && p.data === "nested" ? p.vars.targets : _, S = e._overwrite === "auto" && !il, y = e.timeline, T, E, R, I, v, A, C, k, U, B, W, H, V;
26555
26555
  if (y && (!h || !r) && (r = "none"), e._ease = Bi(r, Tr.ease), e._yEase = c ? fd(Bi(c === !0 ? r : c, Tr.ease)) : 0, c && e._yoyo && !e._repeat && (c = e._yEase, e._yEase = e._ease, e._ease = c), e._from = !y && !!i.runBackwards, !y || h && !i.stagger) {
26556
26556
  if (k = _[0] ? es(_[0]).harness : 0, H = k && i[k.prop], T = fa(i, al), g && (g._zTime < 0 && g.progress(1), t < 0 && d && o && !f ? g.render(-1, !0) : g.revert(d && m ? ta : ox), g._lazy = 0), a) {
26557
- if (vi(e._startAt = Mt.set(_, sn({
26557
+ if (xi(e._startAt = Mt.set(_, sn({
26558
26558
  data: "isStart",
26559
26559
  overwrite: !1,
26560
26560
  parent: p,
@@ -26581,18 +26581,18 @@ var Ux = function(e, t, n, i, r, a, o) {
26581
26581
  stagger: 0,
26582
26582
  parent: p
26583
26583
  //ensures that nested tweens that had a stagger are handled properly, like gsap.from(".class", {y: gsap.utils.wrap([-100,100]), stagger: 0.5})
26584
- }, T), H && (R[k.prop] = H), vi(e._startAt = Mt.set(_, R)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (Lt ? e._startAt.revert(ta) : e._startAt.render(-1, !0)), e._zTime = t, !o)
26584
+ }, T), H && (R[k.prop] = H), xi(e._startAt = Mt.set(_, R)), e._startAt._dp = 0, e._startAt._sat = e, t < 0 && (Lt ? e._startAt.revert(ta) : e._startAt.render(-1, !0)), e._zTime = t, !o)
26585
26585
  s(e._startAt, st, st);
26586
26586
  else if (!t)
26587
26587
  return;
26588
26588
  }
26589
26589
  for (e._pt = e._ptCache = 0, l = m && Yt(l) || l && !m, E = 0; E < _.length; E++) {
26590
- if (v = _[E], C = v._gsap || cl(_)[E]._gsap, e._ptLookup[E] = B = {}, vc[C.id] && xi.length && da(), W = b === _ ? E : b.indexOf(v), k && (U = new k()).init(v, H || T, e, W, b) !== !1 && (e._pt = I = new Lr(e._pt, v, U.name, 0, 1, U.render, U, 0, U.priority), U._props.forEach(function(J) {
26590
+ if (v = _[E], C = v._gsap || cl(_)[E]._gsap, e._ptLookup[E] = B = {}, vc[C.id] && bi.length && da(), W = b === _ ? E : b.indexOf(v), k && (U = new k()).init(v, H || T, e, W, b) !== !1 && (e._pt = I = new Lr(e._pt, v, U.name, 0, 1, U.render, U, 0, U.priority), U._props.forEach(function(J) {
26591
26591
  B[J] = I;
26592
26592
  }), U.priority && (A = 1)), !k || H)
26593
26593
  for (R in T)
26594
26594
  un[R] && (U = kx(R, T, e, W, v, b)) ? U.priority && (A = 1) : B[R] = I = hl.call(e, v, R, "get", T[R], W, b, 0, i.stringFilter);
26595
- e._op && e._op[E] && e.kill(v, e._op[E]), S && e._pt && (bi = e, mt.killTweensOf(v, B, e.globalTime(t)), V = !e.parent, bi = 0), e._pt && l && (vc[C.id] = 1);
26595
+ e._op && e._op[E] && e.kill(v, e._op[E]), S && e._pt && (gi = e, mt.killTweensOf(v, B, e.globalTime(t)), V = !e.parent, gi = 0), e._pt && l && (vc[C.id] = 1);
26596
26596
  }
26597
26597
  A && Yx(e), e._onInit && e._onInit(e);
26598
26598
  }
@@ -26609,7 +26609,7 @@ var Ux = function(e, t, n, i, r, a, o) {
26609
26609
  u.push(d);
26610
26610
  }
26611
26611
  for (f = u.length; f--; )
26612
- c = u[f], d = c._pt || c, d.s = (i || i === 0) && !r ? i : d.s + (i || 0) + a * d.c, d.c = n - d.s, c.e && (c.e = ux(n) + Si(c.e)), c.b && (c.b = d.s + Si(c.b));
26612
+ c = u[f], d = c._pt || c, d.s = (i || i === 0) && !r ? i : d.s + (i || 0) + a * d.c, d.c = n - d.s, c.e && (c.e = ux(n) + vi(c.e)), c.b && (c.b = d.s + vi(c.b));
26613
26613
  }, zx = function(e, t) {
26614
26614
  var n = e[0] ? es(e[0]).harness : 0, i = n && n.aliases, r, a, o, l;
26615
26615
  if (!i)
@@ -26690,7 +26690,7 @@ var Mt = /* @__PURE__ */ (function(s) {
26690
26690
  u || o.duration(u = y.duration());
26691
26691
  } else
26692
26692
  o.timeline = 0;
26693
- return f === !0 && !il && (bi = Qn(o), mt.killTweensOf(S), bi = 0), Fn(b, Qn(o), r), i.reversed && o.reverse(), i.paused && o.paused(!0), (c || !u && !m && o._start === pt(b._time) && Yt(c) && mx(Qn(o)) && b.data !== "nested") && (o._tTime = -st, o.render(Math.max(0, -d) || 0)), _ && ed(Qn(o), _), o;
26693
+ return f === !0 && !il && (gi = Qn(o), mt.killTweensOf(S), gi = 0), Fn(b, Qn(o), r), i.reversed && o.reverse(), i.paused && o.paused(!0), (c || !u && !m && o._start === pt(b._time) && Yt(c) && mx(Qn(o)) && b.data !== "nested") && (o._tTime = -st, o.render(Math.max(0, -d) || 0)), _ && ed(Qn(o), _), o;
26694
26694
  }
26695
26695
  var t = e.prototype;
26696
26696
  return t.render = function(i, r, a) {
@@ -26717,7 +26717,7 @@ var Mt = /* @__PURE__ */ (function(s) {
26717
26717
  return this;
26718
26718
  for (f = this._pt; f; )
26719
26719
  f.r(b, f.d), f = f._next;
26720
- S && S.render(i < 0 ? i : S._dur * S._ease(h / this._dur), r, a) || this._startAt && (this._zTime = i), this._onUpdate && !r && (d && Sc(this, i, r, a), nn(this, "onUpdate")), this._repeat && m !== _ && this.vars.onRepeat && !r && this.parent && nn(this, "onRepeat"), (c === this._tDur || !c) && this._tTime === c && (d && !this._onUpdate && Sc(this, i, !0, !0), (i || !u) && (c === this._tDur && this._ts > 0 || !c && this._ts < 0) && vi(this, 1), !r && !(d && !o) && (c || o || p) && (nn(this, c === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(c < l && this.timeScale() > 0) && this._prom()));
26720
+ S && S.render(i < 0 ? i : S._dur * S._ease(h / this._dur), r, a) || this._startAt && (this._zTime = i), this._onUpdate && !r && (d && Sc(this, i, r, a), nn(this, "onUpdate")), this._repeat && m !== _ && this.vars.onRepeat && !r && this.parent && nn(this, "onRepeat"), (c === this._tDur || !c) && this._tTime === c && (d && !this._onUpdate && Sc(this, i, !0, !0), (i || !u) && (c === this._tDur && this._ts > 0 || !c && this._ts < 0) && xi(this, 1), !r && !(d && !o) && (c || o || p) && (nn(this, c === l ? "onComplete" : "onReverseComplete", !0), this._prom && !(c < l && this.timeScale() > 0) && this._prom()));
26721
26721
  }
26722
26722
  return this;
26723
26723
  }, t.targets = function() {
@@ -26733,7 +26733,7 @@ var Mt = /* @__PURE__ */ (function(s) {
26733
26733
  return this._lazy = this._pt = 0, this.parent ? Kr(this) : this.scrollTrigger && this.scrollTrigger.kill(!!Lt), this;
26734
26734
  if (this.timeline) {
26735
26735
  var a = this.timeline.totalDuration();
26736
- return this.timeline.killTweensOf(i, r, bi && bi.vars.overwrite !== !0)._first || Kr(this), this.parent && a !== this.timeline.totalDuration() && wr(this, this._dur * this.timeline._tDur / a, 0, 1), this;
26736
+ return this.timeline.killTweensOf(i, r, gi && gi.vars.overwrite !== !0)._first || Kr(this), this.parent && a !== this.timeline.totalDuration() && wr(this, this._dur * this.timeline._tDur / a, 0, 1), this;
26737
26737
  }
26738
26738
  var o = this._targets, l = i ? pn(i) : o, u = this._ptLookup, d = this._pt, c, h, f, m, g, _, p;
26739
26739
  if ((!r || r === "all") && fx(o, l))
@@ -27053,7 +27053,7 @@ var zi = [], ia = {}, Jx = [], Vu = 0, Qx = 0, _o = function(e) {
27053
27053
  random: ad,
27054
27054
  snap: sd,
27055
27055
  normalize: Tx,
27056
- getUnit: Si,
27056
+ getUnit: vi,
27057
27057
  clamp: vx,
27058
27058
  splitColor: hd,
27059
27059
  toArray: pn,
@@ -27492,7 +27492,7 @@ class rv {
27492
27492
  this.name = He.KHR_MATERIALS_UNLIT;
27493
27493
  }
27494
27494
  getMaterialType() {
27495
- return Oi;
27495
+ return Ui;
27496
27496
  }
27497
27497
  extendParams(e, t, n) {
27498
27498
  const i = [];
@@ -27978,7 +27978,7 @@ function Rv(s) {
27978
27978
  side: ni
27979
27979
  })), s.DefaultMaterial;
27980
27980
  }
27981
- function Ii(s, e, t) {
27981
+ function Pi(s, e, t) {
27982
27982
  for (const n in t.extensions)
27983
27983
  s[n] === void 0 && (e.userData.gltfExtensions = e.userData.gltfExtensions || {}, e.userData.gltfExtensions[n] = t.extensions[n]);
27984
27984
  }
@@ -28104,7 +28104,7 @@ class Fv {
28104
28104
  parser: n,
28105
28105
  userData: {}
28106
28106
  };
28107
- return Ii(r, o, i), Pn(o, i), Promise.all(n._invokeAll(function(l) {
28107
+ return Pi(r, o, i), Pn(o, i), Promise.all(n._invokeAll(function(l) {
28108
28108
  return l.afterRoot && l.afterRoot(o);
28109
28109
  })).then(function() {
28110
28110
  for (const l of o.scenes)
@@ -28483,17 +28483,17 @@ class Fv {
28483
28483
  }
28484
28484
  r.doubleSided === !0 && (o.side = Dn);
28485
28485
  const d = r.alphaMode || xo.OPAQUE;
28486
- if (d === xo.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, d === xo.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && a !== Oi && (u.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new Ge(1, 1), r.normalTexture.scale !== void 0)) {
28486
+ if (d === xo.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, d === xo.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && a !== Ui && (u.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new Ge(1, 1), r.normalTexture.scale !== void 0)) {
28487
28487
  const c = r.normalTexture.scale;
28488
28488
  o.normalScale.set(c, c);
28489
28489
  }
28490
- if (r.occlusionTexture !== void 0 && a !== Oi && (u.push(t.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && a !== Oi) {
28490
+ if (r.occlusionTexture !== void 0 && a !== Ui && (u.push(t.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && a !== Ui) {
28491
28491
  const c = r.emissiveFactor;
28492
28492
  o.emissive = new Ce().setRGB(c[0], c[1], c[2], Wt);
28493
28493
  }
28494
- return r.emissiveTexture !== void 0 && a !== Oi && u.push(t.assignTexture(o, "emissiveMap", r.emissiveTexture, _t)), Promise.all(u).then(function() {
28494
+ return r.emissiveTexture !== void 0 && a !== Ui && u.push(t.assignTexture(o, "emissiveMap", r.emissiveTexture, _t)), Promise.all(u).then(function() {
28495
28495
  const c = new a(o);
28496
- return r.name && (c.name = r.name), Pn(c, r), t.associations.set(c, { materials: e }), r.extensions && Ii(i, c, r), c;
28496
+ return r.name && (c.name = r.name), Pn(c, r), t.associations.set(c, { materials: e }), r.extensions && Pi(i, c, r), c;
28497
28497
  });
28498
28498
  }
28499
28499
  /**
@@ -28566,7 +28566,7 @@ class Fv {
28566
28566
  p = new gp(g, b);
28567
28567
  else
28568
28568
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + _.mode);
28569
- Object.keys(p.geometry.morphAttributes).length > 0 && Pv(p, r), p.name = t.createUniqueName(r.name || "mesh_" + e), Pn(p, r), _.extensions && Ii(i, p, _), t.assignFinalMaterial(p), c.push(p);
28569
+ Object.keys(p.geometry.morphAttributes).length > 0 && Pv(p, r), p.name = t.createUniqueName(r.name || "mesh_" + e), Pn(p, r), _.extensions && Pi(i, p, _), t.assignFinalMaterial(p), c.push(p);
28570
28570
  }
28571
28571
  for (let f = 0, m = c.length; f < m; f++)
28572
28572
  t.associations.set(c[f], {
@@ -28574,9 +28574,9 @@ class Fv {
28574
28574
  primitives: f
28575
28575
  });
28576
28576
  if (c.length === 1)
28577
- return r.extensions && Ii(i, c[0], r), c[0];
28578
- const h = new _i();
28579
- r.extensions && Ii(i, h, r), t.associations.set(h, { meshes: e });
28577
+ return r.extensions && Pi(i, c[0], r), c[0];
28578
+ const h = new Oi();
28579
+ r.extensions && Pi(i, h, r), t.associations.set(h, { meshes: e });
28580
28580
  for (let f = 0, m = c.length; f < m; f++)
28581
28581
  h.add(c[f]);
28582
28582
  return h;
@@ -28711,10 +28711,10 @@ class Fv {
28711
28711
  o.push(u);
28712
28712
  }), this.nodeCache[e] = Promise.all(o).then(function(u) {
28713
28713
  let d;
28714
- if (r.isBone === !0 ? d = new yh() : u.length > 1 ? d = new _i() : u.length === 1 ? d = u[0] : d = new dt(), d !== u[0])
28714
+ if (r.isBone === !0 ? d = new yh() : u.length > 1 ? d = new Oi() : u.length === 1 ? d = u[0] : d = new dt(), d !== u[0])
28715
28715
  for (let c = 0, h = u.length; c < h; c++)
28716
28716
  d.add(u[c]);
28717
- if (r.name && (d.userData.name = r.name, d.name = a), Pn(d, r), r.extensions && Ii(n, d, r), r.matrix !== void 0) {
28717
+ if (r.name && (d.userData.name = r.name, d.name = a), Pn(d, r), r.extensions && Pi(n, d, r), r.matrix !== void 0) {
28718
28718
  const c = new Fe();
28719
28719
  c.fromArray(r.matrix), d.applyMatrix4(c);
28720
28720
  } else
@@ -28736,8 +28736,8 @@ class Fv {
28736
28736
  * @return {Promise<Group>}
28737
28737
  */
28738
28738
  loadScene(e) {
28739
- const t = this.extensions, n = this.json.scenes[e], i = this, r = new _i();
28740
- n.name && (r.name = i.createUniqueName(n.name)), Pn(r, n), n.extensions && Ii(t, r, n);
28739
+ const t = this.extensions, n = this.json.scenes[e], i = this, r = new Oi();
28740
+ n.name && (r.name = i.createUniqueName(n.name)), Pn(r, n), n.extensions && Pi(t, r, n);
28741
28741
  const a = n.nodes || [], o = [];
28742
28742
  for (let l = 0, u = a.length; l < u; l++)
28743
28743
  o.push(i.getDependency("node", a[l]));
@@ -29215,7 +29215,7 @@ class _a {
29215
29215
  async init() {
29216
29216
  this.mixer = new $p(this.model), this.mixer.addEventListener("finished", (r) => {
29217
29217
  r.action === this.actions.get(this.activeActionName)?.animation && (this.pendingActionLoads > 0 ? this.idleFallbackPending = !0 : this.resumeIdle().catch(
29218
- (a) => Ni.warn("Avatar idle transition failed", a)
29218
+ (a) => Fi.warn("Avatar idle transition failed", a)
29219
29219
  ));
29220
29220
  });
29221
29221
  const { animationData: e, mandatoryAnimations: t } = await this.initialAssets, n = new Set(
@@ -29309,7 +29309,7 @@ class _a {
29309
29309
  try {
29310
29310
  await this.loadAction(o.name);
29311
29311
  } catch (l) {
29312
- Ni.warn(
29312
+ Fi.warn(
29313
29313
  `Avatar background animation preload failed: ${o.name}`,
29314
29314
  l
29315
29315
  );
@@ -29367,7 +29367,7 @@ class _a {
29367
29367
  if (!this.idleRotation?.includes(this.activeActionName)) return;
29368
29368
  const e = this.nextIdleName();
29369
29369
  e !== this.activeActionName && this.loadAction(e).catch(
29370
- (t) => Ni.warn(`Avatar idle prefetch failed: ${e}`, t)
29370
+ (t) => Fi.warn(`Avatar idle prefetch failed: ${e}`, t)
29371
29371
  );
29372
29372
  }
29373
29373
  async resumeIdle() {
@@ -29390,7 +29390,7 @@ class _a {
29390
29390
  this.activeActionName = e, r !== i && (r?.animation.fadeOut(a), r?.blendShapeScenario?.stop()), i.animation.reset().setEffectiveTimeScale(1).setEffectiveWeight(1).fadeIn(a).play(), i.blendShapeScenario?.play(), this.idleQueue?.[0] === e && this.idleQueue.shift(), this.prepareNextIdle(), n = !0, this.idleFallbackPending = !1;
29391
29391
  } finally {
29392
29392
  this.pendingActionLoads--, this.pendingActionLoads === 0 && this.idleFallbackPending && !n && (this.idleFallbackPending = !1, this.resumeIdle().catch(
29393
- (i) => Ni.warn("Avatar idle fallback failed", i)
29393
+ (i) => Fi.warn("Avatar idle fallback failed", i)
29394
29394
  ));
29395
29395
  }
29396
29396
  }
@@ -29612,9 +29612,6 @@ class pS extends EventTarget {
29612
29612
  };
29613
29613
  framingMode = "default";
29614
29614
  model;
29615
- modelStage;
29616
- pelvis;
29617
- placementAnchor = new N();
29618
29615
  rotationYaw = 0;
29619
29616
  locale;
29620
29617
  animationFrame = null;
@@ -29740,7 +29737,7 @@ class pS extends EventTarget {
29740
29737
  this.api.resolveAssetPath("models/female_rig.glb"),
29741
29738
  async (k) => {
29742
29739
  const U = k.scene;
29743
- this.model = U, this.pelvis = U.getObjectByName("Pelvis"), U.rotation.y = this.rotationYaw, this.modelStage = new _i(), this.modelStage.add(U), n.add(this.modelStage), U.traverse((H) => {
29740
+ this.model = U, U.rotation.y = this.rotationYaw, n.add(U), U.traverse((H) => {
29744
29741
  H instanceof Jt && (H.castShadow = !0, H.receiveShadow = !0);
29745
29742
  });
29746
29743
  const B = Wv(U), W = jv(B);
@@ -29899,7 +29896,7 @@ class pS extends EventTarget {
29899
29896
  talkingApplied = !1;
29900
29897
  lipSyncUnderrunTimer = null;
29901
29898
  reportOptionalAnimationFailure(e) {
29902
- Ni.warn("Optional avatar animation failed", e);
29899
+ Fi.warn("Optional avatar animation failed", e);
29903
29900
  }
29904
29901
  clearLipSyncUnderrunTimer() {
29905
29902
  this.lipSyncUnderrunTimer && clearTimeout(this.lipSyncUnderrunTimer), this.lipSyncUnderrunTimer = null;
@@ -29940,7 +29937,7 @@ class pS extends EventTarget {
29940
29937
  try {
29941
29938
  await Promise.all([n, this.soundsReady]);
29942
29939
  } catch (i) {
29943
- Ni.warn("Avatar sounds are unavailable", i);
29940
+ Fi.warn("Avatar sounds are unavailable", i);
29944
29941
  return;
29945
29942
  }
29946
29943
  this.speakPhrase(e);
@@ -29948,7 +29945,7 @@ class pS extends EventTarget {
29948
29945
  speakPhrase(e) {
29949
29946
  const t = this.sounds[e];
29950
29947
  if (!t) {
29951
- Ni.warn(`Avatar sound is unavailable: ${e}`);
29948
+ Fi.warn(`Avatar sound is unavailable: ${e}`);
29952
29949
  return;
29953
29950
  }
29954
29951
  this.sound = t, t.play(), t.once("end", () => {
@@ -29978,7 +29975,7 @@ class pS extends EventTarget {
29978
29975
  this.sound?.stop(), this.animationManager.showcaseBlendShape(e);
29979
29976
  }
29980
29977
  render() {
29981
- this.modelStage && this.pelvis && (this.pelvis.getWorldPosition(this.placementAnchor), this.modelStage.position.x -= this.placementAnchor.x), this.renderer.render(this.scene, this.camera);
29978
+ this.renderer.render(this.scene, this.camera);
29982
29979
  }
29983
29980
  onCriticalAssetsReady = () => {
29984
29981
  this.api.onAvatarReady(this.externalLaunchAnimationAction);